Codebase list telepathy-idle / 9c3523b
Merge commit 'upstream/0.1.5' into debian Jonny Lamb 14 years ago
65 changed file(s) with 29751 addition(s) and 29007 deletion(s). Raw diff Collapse all Expand all
0 commit ee9c0c816f8bdaa8d4927a365116351b6aad2e48
1 Author: Jonny Lamb <jonny.lamb@collabora.co.uk>
2 Date: Mon Sep 14 12:20:01 2009 +0100
3
4 Version 0.1.5.
5
6 Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
7
8 NEWS | 2 +-
9 configure.ac | 4 ++--
10 2 files changed, 3 insertions(+), 3 deletions(-)
11
12 commit b7a13d8705a41a8f72aab447599ff9bc522548c4
13 Author: Jonny Lamb <jonny.lamb@collabora.co.uk>
14 Date: Mon Sep 14 12:19:23 2009 +0100
15
16 Update NEWS.
17
18 Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
19
20 NEWS | 22 +++++++++++++++++++++-
21 1 files changed, 21 insertions(+), 1 deletions(-)
22
23 commit 20388f1b00cf6e587bdb3a499458fa52cdf8d8e2
24 Author: Jonny Lamb <jonny.lamb@collabora.co.uk>
25 Date: Mon Sep 14 12:19:13 2009 +0100
26
27 Update gitignore.
28
29 Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
30
31 .gitignore | 6 ++++++
32 1 files changed, 6 insertions(+), 0 deletions(-)
33
34 commit 6a224e80aeba67f85dad46cb805f34662d483dc2
35 Merge: 524d8bc 2dc074a
36 Author: Will Thompson <will.thompson@collabora.co.uk>
37 Date: Thu Sep 10 23:34:31 2009 +0100
38
39 Merge branch 'channel-manager'
40
41 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
42 Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
43
44 commit 2dc074a6fe3f59598d1404933b2c5fafb541b04e
45 Author: Will Thompson <will.thompson@collabora.co.uk>
46 Date: Sun Aug 30 23:43:39 2009 +0100
47
48 Implement Destroyable for IM channels
49
50 src/idle-im-channel.c | 22 +++++++++++++++++++++-
51 tests/twisted/channels/requests-create.py | 10 ++++++++++
52 2 files changed, 31 insertions(+), 1 deletions(-)
53
54 commit 524d8bc287b82cb23ceb9ba619fe342fc10627e2
55 Author: elaine <elaine.xiong@sun.com>
56 Date: Sat Aug 29 15:12:08 2009 +0100
57
58 Don't explicitly return void in void functions.
59
60 Sun's C compiler doesn't support this. This is a slightly modified
61 version of the patch on fd.o #22958, removing redundant returns at the
62 end of functions.
63
64 Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
65
66 src/idle-connection.c | 2 +-
67 src/idle-muc-channel.c | 8 ++++----
68 src/idle-parser.c | 3 ++-
69 src/idle-ssl-server-connection.c | 32 +++++++++++++++++++++-----------
70 4 files changed, 28 insertions(+), 17 deletions(-)
71
72 commit 1fc2c51de60673f5a568824ddd7fc62349e4f09c
73 Author: Will Thompson <will.thompson@collabora.co.uk>
74 Date: Sat Aug 29 14:22:33 2009 +0100
75
76 Test that Connection.GetInterfaces() includes Requests
77
78 tests/twisted/channels/requests-create.py | 4 ++++
79 1 files changed, 4 insertions(+), 0 deletions(-)
80
81 commit ea054aeec99fc43a09a1896f03544b28c40d52e5
82 Author: Will Thompson <will.thompson@collabora.co.uk>
83 Date: Sat Aug 29 02:49:33 2009 +0100
84
85 Implement respawning for 1-1 channels.
86
87 src/idle-im-channel.c | 32 +++++++++++++++++++++++----
88 src/idle-im-manager.c | 20 ++++++++++++++--
89 tests/twisted/channels/requests-create.py | 34 +++++++++++++++++++++++++++-
90 3 files changed, 76 insertions(+), 10 deletions(-)
91
92 commit bddeac559400301194e05bb4250eee2c06cf9a54
93 Author: Will Thompson <will.thompson@collabora.co.uk>
94 Date: Sat Aug 29 02:27:26 2009 +0100
95
96 Implement more mandatory properties for 1-1 channels
97
98 src/idle-im-channel.c | 98 ++++++++++++++++++++++++++++++++++++++++++++-----
99 src/idle-im-manager.c | 8 ++-
100 2 files changed, 93 insertions(+), 13 deletions(-)
101
102 commit e9ca7f9a74b03be97af6d4efa72889b7f7b88fe5
103 Author: Will Thompson <will.thompson@collabora.co.uk>
104 Date: Sat Aug 29 02:27:12 2009 +0100
105
106 Use constants.py in requests-create.py
107
108 tests/twisted/channels/requests-create.py | 58 +++++++++++++----------------
109 1 files changed, 26 insertions(+), 32 deletions(-)
110
111 commit 0f6efafaeb06612660b9f0e018d934a0063dd5ba
112 Author: Will Thompson <will.thompson@collabora.co.uk>
113 Date: Sat Aug 29 02:14:02 2009 +0100
114
115 Allow parting MUCs with RemoveMembers.
116
117 Users of TpGroupMixin have to opt into this working for hysterical
118 raisins, but it works fine in Idle once we turn it on. Also hook up the
119 Group interface's D-Bus properties.
120
121 src/idle-muc-channel.c | 3 +++
122 tests/twisted/channels/requests-muc.py | 2 +-
123 2 files changed, 4 insertions(+), 1 deletions(-)
124
125 commit aa167c5c416023ef912c4db288264c2de68d1522
126 Author: Will Thompson <will.thompson@collabora.co.uk>
127 Date: Sat Aug 29 02:01:03 2009 +0100
128
129 Test Creating and Ensuring MUCs.
130
131 tests/twisted/Makefile.am | 1 +
132 tests/twisted/channels/requests-muc.py | 105 ++++++++++++++++++++++++++++++++
133 tests/twisted/idletest.py | 13 ++++-
134 3 files changed, 118 insertions(+), 1 deletions(-)
135
136 commit 56bc2adff9f42d2e614e8f3eb8c50a5c54dacff8
137 Author: Will Thompson <will.thompson@collabora.co.uk>
138 Date: Sat Aug 29 02:00:40 2009 +0100
139
140 Update test constants from Gabble
141
142 tests/twisted/constants.py | 204 ++++++++++++++++++++++++++++++++++++++++++--
143 1 files changed, 195 insertions(+), 9 deletions(-)
144
145 commit 1e41b6e37c84eef7548a272ae62b20acc0be0ff1
146 Author: Will Thompson <will.thompson@collabora.co.uk>
147 Date: Sat Aug 29 01:41:31 2009 +0100
148
149 Set Initiator and Requested on new MUC channels
150
151 src/idle-muc-channel.c | 4 +++-
152 src/idle-muc-channel.h | 2 +-
153 src/idle-muc-manager.c | 14 ++++++++------
154 3 files changed, 12 insertions(+), 8 deletions(-)
155
156 commit afdcca3d687805bfbcc75f4e09c311d2e2050a5c
157 Author: Will Thompson <will.thompson@collabora.co.uk>
158 Date: Sat Aug 29 01:13:32 2009 +0100
159
160 Add idle_muc_channel_new()
161
162 src/idle-muc-channel.c | 8 ++++++++
163 src/idle-muc-channel.h | 4 ++++
164 src/idle-muc-manager.c | 2 +-
165 3 files changed, 13 insertions(+), 1 deletions(-)
166
167 commit 46b003f23be2d157f11fc16210013666f34e73e7
168 Author: Will Thompson <will.thompson@collabora.co.uk>
169 Date: Sat Aug 29 01:01:10 2009 +0100
170
171 Add more mandatory properties to MUC channels
172
173 src/idle-muc-channel.c | 120 ++++++++++++++++++++++++++++++++++++++++++------
174 1 files changed, 106 insertions(+), 14 deletions(-)
175
176 commit 6d399432f072117d897936bbb38f809175b16423
177 Author: Will Thompson <will.thompson@collabora.co.uk>
178 Date: Thu Aug 27 10:17:13 2009 +0100
179
180 Tests: Fix a typo in room-joining code
181
182 tests/twisted/idletest.py | 2 +-
183 1 files changed, 1 insertions(+), 1 deletions(-)
184
185 commit f5aad064b926ba94e195e563f649ecac1b5fca65
186 Author: Will Thompson <will.thompson@collabora.co.uk>
187 Date: Sun Aug 23 18:34:49 2009 +0100
188
189 Don't emit NewChannels twice when joining
190
191 Before, as soon as you created the channel CreateChannel would return,
192 and NewChannels would be emitted; later, when you finish joining the
193 channel, it'd be emitted again. This patch restores the
194 currently-considered-correct behaviour whereby the new channel is only
195 announced when you've finished joining it (successfully or not).
196
197 src/idle-muc-manager.c | 82 +++++++++++++++++++---------
198 tests/twisted/channels/join-muc-channel.py | 1 +
199 2 files changed, 58 insertions(+), 25 deletions(-)
200
201 commit 17d265ec76e917e64f1490222afcde1cdb4c75d0
202 Author: Will Thompson <will.thompson@collabora.co.uk>
203 Date: Sun Aug 23 18:32:36 2009 +0100
204
205 Add "is this channel ready?" accessor
206
207 src/idle-muc-channel.c | 11 +++++++++++
208 src/idle-muc-channel.h | 2 ++
209 2 files changed, 13 insertions(+), 0 deletions(-)
210
211 commit 60adfcd869db4bee93d108fe4c2c345bb5621c4e
212 Author: Will Thompson <will.thompson@collabora.co.uk>
213 Date: Sun Aug 23 18:11:25 2009 +0100
214
215 Quiet build.
216
217 configure.ac | 5 +++++
218 extensions/Makefile.am | 19 ++++++++++---------
219 src/Makefile.am | 10 +++++-----
220 3 files changed, 20 insertions(+), 14 deletions(-)
221
222 commit bc1ecfdc0ecf1700a9585d97e7d30b26e714af41
223 Merge: 6ed3fe2 66d5954
224 Author: Will Thompson <will.thompson@collabora.co.uk>
225 Date: Tue Jul 7 15:26:36 2009 +0100
226
227 Merge branch 'master' into channel-manager
228
229 Conflicts:
230 src/idle-muc-manager.c
231 tests/twisted/Makefile.am
232
233 commit 66d5954213d167425218a9b977d6b55506e62685
234 Author: Will Thompson <will.thompson@collabora.co.uk>
235 Date: Sat Jun 20 18:22:15 2009 +0100
236
237 Define _GNU_SOURCE not __USE_GNU to get strnlen(3).
238
239 __USE_GNU is a glibc-internal macro that we should not be using; this
240 was causing a build failure in openSUSE, which has a glibc from the
241 future.
242
243 idle-connection.c doesn't actually use strnlen.
244
245 Based on a patch by Vincent Untz, which didn't compile for me: it seemed
246 like string.h was getting #included before the #define, and thus strnlen
247 wasn't exposed. Making the #define the first thing in idle-parser.c
248 fixed this.
249
250 Fixes: fd.o#22291
251
252 src/idle-connection.c | 2 --
253 src/idle-parser.c | 5 +++--
254 2 files changed, 3 insertions(+), 4 deletions(-)
255
256 commit 9f23b67b1173278af4059b757e8cea3a80b19d98
257 Author: Will Thompson <will.thompson@collabora.co.uk>
258 Date: Thu May 28 14:15:16 2009 +0100
259
260 bump to 0.1.4.1
261
262 NEWS | 3 +++
263 configure.ac | 2 +-
264 2 files changed, 4 insertions(+), 1 deletions(-)
265
266 commit c860b85b77d51e4061682ba26b7d2029d79af897
267 Author: Will Thompson <will.thompson@collabora.co.uk>
268 Date: Thu May 28 13:38:57 2009 +0100
269
270 version 0.1.4
271
272 NEWS | 19 +++++++++++++++++++
273 configure.ac | 4 ++--
274 2 files changed, 21 insertions(+), 2 deletions(-)
275
276 commit 4d0b66c6b88fe5d45b57da9b54d5282899eec8d0
277 Merge: 855eb8e 85ed21c
278 Author: Will Thompson <will.thompson@collabora.co.uk>
279 Date: Thu May 28 00:28:57 2009 +0100
280
281 Merge branch 'sent-signal'
282
283 Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
284
285 commit 855eb8ed03bc8220a407366fda9fe2dc03b538eb
286 Merge: d8d2d91 ea5267d
287 Author: Will Thompson <will.thompson@collabora.co.uk>
288 Date: Thu May 28 00:19:27 2009 +0100
289
290 Merge commit 'jonner/username-param'
291
292 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
293
294 commit d8d2d91424f10b8bfb954651aa0538ed777eb8f8
295 Merge: 6dfcce7 a50ff8a
296 Author: Will Thompson <will.thompson@collabora.co.uk>
297 Date: Thu May 28 00:07:49 2009 +0100
298
299 Merge branch 'quit-message'
300
301 Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
302
303 commit 85ed21cc3ca97811ef23a946077228504e7d68c9
304 Author: Will Thompson <will.thompson@collabora.co.uk>
305 Date: Thu May 28 00:04:48 2009 +0100
306
307 Correct the error for unsupported message types
308
309 src/idle-text.c | 4 ++--
310 1 files changed, 2 insertions(+), 2 deletions(-)
311
312 commit 29c245a7d938d915834770a91854d4cbd212f8cd
313 Author: Will Thompson <will.thompson@collabora.co.uk>
314 Date: Thu May 28 00:02:36 2009 +0100
315
316 Document what idle_text_encode_and_split does
317
318 It's not obvious at a first glance what it's doing, and why. Also, I
319 rewrapped its argument list, in contravention of the style of other Idle
320 source files, because it was ridiculously unwieldy.
321
322 src/idle-text.c | 24 +++++++++++++++++++++++-
323 1 files changed, 23 insertions(+), 1 deletions(-)
324
325 commit d1b2bec43a1597c5477041a27bc5d4cbfe4f15f2
326 Author: Will Thompson <will.thompson@collabora.co.uk>
327 Date: Wed May 27 23:54:35 2009 +0100
328
329 Don't include "PRIVMSG ..." in Sent signals
330
331 The previous fix was incorrect, as it emitted the same string in Sent
332 that it sends over the wire.
333
334 src/idle-text.c | 29 ++++++++++++++++------
335 src/idle-text.h | 2 +-
336 tests/test-text-encode-and-split.c | 8 +++++-
337 tests/twisted/messages/split-msg-sent-signal.py | 9 +++++-
338 4 files changed, 36 insertions(+), 12 deletions(-)
339
340 commit 6dfcce7fca726afaeca64e4fbe65faa14b436043
341 Author: Will Thompson <will.thompson@collabora.co.uk>
342 Date: Wed May 27 23:15:05 2009 +0100
343
344 Fix error prefix so that tests pass
345
346 tests/twisted/constants.py | 2 +-
347 1 files changed, 1 insertions(+), 1 deletions(-)
348
349 commit a3fef5fc1860f8c20e1a8233c620a80495f5fb5e
350 Author: Will Thompson <will.thompson@collabora.co.uk>
351 Date: Wed May 27 23:13:51 2009 +0100
352
353 Make nickname validation a for loop.
354
355 I think this is clearer; it makes the loop's conditions more obvious.
356
357 src/idle-handles.c | 10 ++--------
358 1 files changed, 2 insertions(+), 8 deletions(-)
359
360 commit a522bed9acfef27e9a21e505e7b39b252a0426a1
361 Author: Will Thompson <will.thompson@collabora.co.uk>
362 Date: Wed May 27 23:04:47 2009 +0100
363
364 Correct the description of accept-invalid-nicks
365
366 tests/twisted/messages/accept-invalid-nicks.py | 5 ++---
367 1 files changed, 2 insertions(+), 3 deletions(-)
368
369 commit ba698d41b168e98abe67ec1327829b74eb7c1f06
370 Author: Will Thompson <will.thompson@collabora.co.uk>
371 Date: Wed May 27 23:04:37 2009 +0100
372
373 Don't spam DEBUG for each char in a nick
374
375 src/idle-handles.c | 1 -
376 1 files changed, 0 insertions(+), 1 deletions(-)
377
378 commit b0dd049e675c1a81a71769ffaae7e2d4e19c2d52
379 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
380 Date: Wed Feb 18 23:55:43 2009 -0600
381
382 Bug #17354 - Emits Send immediately, even if the message is queued
383
384 Contrary to what the bug implies, it was decided that it's OK to emit the 'Sent'
385 signal immediately even if the message is only queued and is not yet actually
386 sent. But there is still a problem in that if the message was long enough to be
387 split into multiple messages, only one 'Sent' signal is emitted instead of one
388 for each separate message.
389
390 This patch emits a signal for each individual message.
391
392 src/idle-text.c | 6 ++--
393 tests/twisted/Makefile.am | 1 +
394 tests/twisted/messages/split-msg-sent-signal.py | 38 +++++++++++++++++++++++
395 3 files changed, 42 insertions(+), 3 deletions(-)
396
397 commit a50ff8a325473983d1ffe70e3ee9382bf2b8f797
398 Author: Will Thompson <will.thompson@collabora.co.uk>
399 Date: Fri Mar 27 23:38:00 2009 +0000
400
401 Remove spurious 'register' flags from idle.manager
402
403 data/idle.manager | 4 ++--
404 1 files changed, 2 insertions(+), 2 deletions(-)
405
406 commit deb8d8f23912550b2b80190e8dad4a76817bf95a
407 Author: Will Thompson <will.thompson@collabora.co.uk>
408 Date: Fri Mar 27 23:36:06 2009 +0000
409
410 Remove obnoxious default Quit message.
411
412 data/idle.manager | 1 -
413 src/idle-connection-manager.c | 2 +-
414 2 files changed, 1 insertions(+), 2 deletions(-)
415
416 commit ca441ef2e95230775271a92e76433a859dae2bb4
417 Author: Will Thompson <will.thompson@collabora.co.uk>
418 Date: Fri Mar 27 23:35:47 2009 +0000
419
420 Cope with Connection::quit-message being NULL.
421
422 src/idle-connection.c | 5 +++--
423 1 files changed, 3 insertions(+), 2 deletions(-)
424
425 commit 5258ef39b7e24faefd733d30b9abcf8453adb2f2
426 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
427 Date: Tue Feb 24 15:01:58 2009 -0600
428
429 Be strict for what nicks we allow, and liberal for what nicks we accept from others
430
431 Bip has a nasty habit of sending backlog activity from a fictional '-bip' user.
432 Unfortunately, a nick with a leading '-' character is illegal according to the
433 IRC RFCs, but we have to accept it since people appear to be using it in the
434 wild.
435
436 This patch adds a flag to the nick validation script that specifies whether we
437 should use strict mode or lenient mode. We use strict mode for validating local
438 nicknames, and lenient mode for validating remote nicknames.
439
440 src/idle-connection-manager.c | 2 +-
441 src/idle-connection.c | 1 +
442 src/idle-handles.c | 52 ++++++++++++++++++------
443 src/idle-handles.h | 2 +-
444 src/idle-muc-channel.c | 1 +
445 src/idle-muc-factory.c | 2 +
446 src/idle-server-connection.c | 2 +-
447 tests/twisted/Makefile.am | 1 +
448 tests/twisted/connect/invalid-nick.py | 6 +++
449 tests/twisted/messages/accept-invalid-nicks.py | 31 ++++++++++++++
450 10 files changed, 84 insertions(+), 16 deletions(-)
451
452 commit 1b6f1549a8c66356a9ea2d4a7240be98efb38ec7
453 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
454 Date: Fri Feb 20 15:49:11 2009 -0600
455
456 Bug 17430 Connections' object path etc. should contain uniquifying string
457
458 Add the hex value of the connection's memory address to the end fo the object
459 path as a uniquifier.
460
461 src/idle-connection.c | 2 +-
462 1 files changed, 1 insertions(+), 1 deletions(-)
463
464 commit 79673a760ccd017f21c15de12215fe8a569a4e1e
465 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
466 Date: Wed Feb 18 23:40:24 2009 -0600
467
468 Big test cleanup
469
470 Use constants rather than strings or magic numbers where it makes sense,
471 remove the duplicate 'irc-privmsg' event and simply use the more general
472 stream-PRIVMSG event everywhere, simplify room-contact-mixup significantly by
473 removing unnecessary setup
474
475 tests/twisted/connect/invalid-nick.py | 11 +++--
476 tests/twisted/constants.py | 1 +
477 tests/twisted/idletest.py | 8 ----
478 tests/twisted/messages/long-message-split.py | 11 ++---
479 tests/twisted/messages/message-order.py | 18 +++++---
480 tests/twisted/messages/room-contact-mixup.py | 53 +++++--------------------
481 6 files changed, 34 insertions(+), 68 deletions(-)
482
483 commit ea5267d4d861db008abe93a33878a6f1f669db31
484 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
485 Date: Wed Feb 18 14:55:21 2009 -0600
486
487 Add a CM param for 'username'
488
489 This allows clients to specify a username (that will be used by the USER
490 command). This should fix bug #16499.
491
492 src/idle-connection-manager.c | 4 ++++
493 src/idle-connection.c | 22 +++++++++++++++++++++-
494 tests/twisted/idletest.py | 1 +
495 3 files changed, 26 insertions(+), 1 deletions(-)
496
497 commit ab827a883d49e8f5f813f2e68bcb64a864264271
498 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
499 Date: Wed Feb 18 14:00:13 2009 -0600
500
501 Generate ChangeLog for tarball releases
502
503 Stole the changelog-generating machinery from gabble. This also gives the
504 maintainer-upload-release target for free as well.
505
506 Makefile.am | 2 ++
507 tools/telepathy.am | 27 +++++++++++++++++++++++++++
508 2 files changed, 29 insertions(+), 0 deletions(-)
509
510 commit 320ec658b7d96f5b975439d26948d0a86cc88077
511 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
512 Date: Wed Feb 18 11:05:32 2009 -0600
513
514 bump nano version
515
516 configure.ac | 2 +-
517 1 files changed, 1 insertions(+), 1 deletions(-)
518
519 commit ceaaab52fee088514eb79dba0bf133ee68d1e281
520 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
521 Date: Wed Feb 18 10:32:18 2009 -0600
522
523 version 0.1.3
524
525 NEWS | 27 +++++++++++++++++++++++++++
526 configure.ac | 4 ++--
527 2 files changed, 29 insertions(+), 2 deletions(-)
528
529 commit 510dc386b32adc28fc8309c538c083c413b9e09b
530 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
531 Date: Wed Feb 18 10:15:52 2009 -0600
532
533 Fix builddir!=srcdir issues
534
535 Some of the tests were not running properly in distcheck since I had forgotten a
536 couple of EXTRA_DIST incantations and was trying to load the ssl cert/key files
537 from the current directory rather than the src directory. The latter issue I
538 worked around by setting an env variable for the location of the files since I
539 really didn't want to do something like idletest.py.in to get autoconf to
540 pre-process the python source file to get the correct srcdir location
541
542 tests/twisted/Makefile.am | 5 ++++-
543 tests/twisted/idletest.py | 5 +++--
544 tests/twisted/tools/Makefile.am | 2 ++
545 3 files changed, 9 insertions(+), 3 deletions(-)
546
547 commit 4fb27c730a15b5d37ba6ce9769c71d720896af1b
548 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
549 Date: Tue Feb 17 23:31:03 2009 -0600
550
551 Update the text-encode-and-split test to the new internal API
552
553 I had added a 'max lenth' parameter to the function but apparently forgot to
554 update this test.
555
556 tests/test-text-encode-and-split.c | 2 +-
557 1 files changed, 1 insertions(+), 1 deletions(-)
558
559 commit 9807d0f50e6752f958c1ee071aaeeb1cf536f995
560 Merge: 619cc9d dbdbbb9
561 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
562 Date: Tue Feb 17 17:02:30 2009 -0600
563
564 Merge branch 'long-message-split'
565
566 Conflicts:
567 tests/twisted/Makefile.am
568
569 commit 619cc9d78913d8f0a0d48e5e52aeb404e46884c6
570 Merge: 98c90f3 8cb7eba
571 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
572 Date: Tue Feb 17 15:24:30 2009 -0600
573
574 Merge branch 'twisted-tests'
575
576 commit 98c90f34fab760c8207ae0101b79a3f8b6dff7fc
577 Merge: 6933765 57eff23
578 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
579 Date: Tue Feb 17 15:24:20 2009 -0600
580
581 Merge branch 'invalid-nick'
582
583 Conflicts:
584 tests/twisted/Makefile.am
585
586 commit 8cb7ebaddd424c08a686edf5b46f71125b3a1945
587 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
588 Date: Tue Feb 17 14:58:32 2009 -0600
589
590 Fix a test crash in connect/server-quit-ignore.py
591
592 This test was only failing when I ran the full test suite, not when I ran the
593 test by itself. Running under valgrind indicated that my _force_disconnect()
594 timeout function was attempting to use an already-freed object:
595
596 ==19693== Invalid read of size 8
597 ==19693== at 0x52B02AC: g_type_check_instance_cast (in /usr/lib/libgobject-2.0.so.0.1800.4)
598 ==19693== by 0x407719: _force_disconnect (idle-connection.c:438)
599 ==19693== by 0x55042BA: (within /usr/lib/libglib-2.0.so.0.1800.4)
600 ==19693== by 0x5503AFA: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.1800.4)
601 ==19693== by 0x55072BC: (within /usr/lib/libglib-2.0.so.0.1800.4)
602 ==19693== by 0x55077EC: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.1800.4)
603 ==19693== by 0x5E0A9C5: tp_run_connection_manager (run.c:264)
604 ==19693== by 0x406504: main (idle.c:38)
605 ==19693== Address 0x6cd3258 is 0 bytes inside a block of size 328 free'd
606 ==19693== at 0x4C2161F: free (vg_replace_malloc.c:323)
607 ==19693== by 0x52B17BA: g_type_free_instance (in /usr/lib/libgobject-2.0.so.0.1800.4)
608 ==19693== by 0x52B45C2: g_value_unset (in /usr/lib/libgobject-2.0.so.0.1800.4)
609 ==19693== by 0x52A7207: g_signal_emit_valist (in /usr/lib/libgobject-2.0.so.0.1800.4)
610 ==19693== by 0x52A76D2: g_signal_emit (in /usr/lib/libgobject-2.0.so.0.1800.4)
611 ==19693== by 0x4076F5: _finish_shutdown_idle_func (idle-connection.c:430)
612 ==19693== by 0x5503AFA: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.1800.4)
613 ==19693== by 0x55072BC: (within /usr/lib/libglib-2.0.so.0.1800.4)
614 ==19693== by 0x55077EC: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.1800.4)
615 ==19693== by 0x5E0A9C5: tp_run_connection_manager (run.c:264)
616 ==19693== by 0x406504: main (idle.c:38)
617
618 GLib-GObject-WARNING **: invalid unclassed pointer in cast to `IdleConnection'
619 aborting...
620
621 Cancelling the timeout when shutting down the connection seems to fix it. Now
622 all tests pass again \o/
623
624 src/idle-connection.c | 4 ++++
625 1 files changed, 4 insertions(+), 0 deletions(-)
626
627 commit 7ccb8c5ddc04ecaaec12b5a85ccc7a0d828269a9
628 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
629 Date: Mon Feb 16 22:16:29 2009 -0600
630
631 Fix a small leak reported by valgrind
632
633 Valgrind report was:
634 ==24778== 240 bytes in 2 blocks are definitely lost in loss record 22 of 33
635 ==24778== at 0x4C2291E: malloc (vg_replace_malloc.c:207)
636 ==24778== by 0x550C272: g_malloc (in /usr/lib/libglib-2.0.so.0.1800.4)
637 ==24778== by 0x5539314: g_io_channel_unix_new (in /usr/lib/libglib-2.0.so.0.1800.4)
638 ==24778== by 0x4100E5: ssl_do_connect (idle-ssl-server-connection.c:480)
639 ==24778== by 0x4101E6: ssl_dns_result_cb (idle-ssl-server-connection.c:504)
640 ==24778== by 0x41136D: _resolve_idle_func (idle-dns-resolver.c:154)
641 ==24778== by 0x5503AFA: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.1800.4)
642 ==24778== by 0x55072BC: (within /usr/lib/libglib-2.0.so.0.1800.4)
643 ==24778== by 0x55077EC: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.1800.4)
644 ==24778== by 0x5E0A9C5: tp_run_connection_manager (in /usr/lib/libtelepathy-glib.so.0.22.1)
645 ==24778== by 0x406504: main (idle.c:38)
646
647 This was observed while valgrind-ing the connect-ssl-fail.py test
648
649 src/idle-ssl-server-connection.c | 1 +
650 1 files changed, 1 insertions(+), 0 deletions(-)
651
652 commit 9fcc28e7ad38f40c105aaff735b284b738e921a0
653 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
654 Date: Mon Feb 16 21:32:36 2009 -0600
655
656 Fix another infinite loop on connection failure
657
658 This is similar to the ssl infinite loop that was fixed earlier. I'm not sure
659 if this was introduced in a faulty merge or if I somehow overlooked it before :/
660
661 Uncovered by the connect/connect-fail.py test
662
663 src/idle-server-connection.c | 1 +
664 1 files changed, 1 insertions(+), 0 deletions(-)
665
666 commit 36348b1fae8f1ed454183aa1be93005fde64beaa
667 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
668 Date: Tue Feb 17 12:06:27 2009 -0600
669
670 messages/leading-space.py: simplify this test significantly
671
672 wjt questioned the need for the subclassed server in his review and eliminating
673 the server actually makes things much simpler. At the same time, I realized
674 that there's really no need for the user to join a chat room in order to test
675 out this behavior, so remove that whole piece and just send a privmsg directly
676 and test whether it is parsed correctly.
677
678 tests/twisted/idletest.py | 1 +
679 tests/twisted/messages/leading-space.py | 43 +++++++-----------------------
680 2 files changed, 11 insertions(+), 33 deletions(-)
681
682 commit 44e4d1f6e6373213a52a1f5c01b86fa7fe3bdadb
683 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
684 Date: Tue Feb 17 11:19:44 2009 -0600
685
686 Rework join-muc-channel.py test to not depend on object path
687
688 Yes, this is much much cleaner. Also cleaned it up a lot by using constants
689 from constants.py
690
691 tests/twisted/channels/join-muc-channel.py | 34 +++++++++++++++++----------
692 tests/twisted/constants.py | 2 +
693 2 files changed, 23 insertions(+), 13 deletions(-)
694
695 commit 01fd11cb43fc8890bd3eba69c639a7eeba268dae
696 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
697 Date: Tue Feb 17 10:53:27 2009 -0600
698
699 message-order test: use loop to make this a bit cleaner
700
701 tests/twisted/messages/message-order.py | 20 ++++++++------------
702 1 files changed, 8 insertions(+), 12 deletions(-)
703
704 commit 44ec4723a51a3d9aa9fe0ccb8530a1c91522f147
705 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
706 Date: Mon Feb 16 22:57:42 2009 -0600
707
708 Disconnect in idletest in case the test fails and doesn't disconnect
709
710 This theoretically should prevent a failing test to affect the following tests
711 Also remove a stray mention of gabble. Findings from wjt's review
712
713 tests/twisted/idletest.py | 11 ++++++++---
714 1 files changed, 8 insertions(+), 3 deletions(-)
715
716 commit fccb2e9f055b0a539174b4e7f425f1beb93d6442
717 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
718 Date: Mon Feb 16 22:53:14 2009 -0600
719
720 Reduce test chatter when not in verbose mode
721
722 I was print()ing a lot of things in my BaseIRCServer class, which was cluttering
723 up the test output and making it hard to easily glance and see the results.
724 Modified so that it only prints out when in verbose mode.
725
726 tests/twisted/idletest.py | 20 +++++++++++++-------
727 1 files changed, 13 insertions(+), 7 deletions(-)
728
729 commit c3649eaad00b88b487d491ce119d65ebcfb01627
730 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
731 Date: Mon Feb 16 22:39:42 2009 -0600
732
733 Add the constants.py file from gabble
734
735 Use the constants in a few tests
736
737 tests/twisted/channels/join-muc-channel.py | 8 ++--
738 tests/twisted/constants.py | 45 ++++++++++++++++++++++++++++
739 2 files changed, 49 insertions(+), 4 deletions(-)
740
741 commit 57eff2309968c8ac6157194d5183bf384e823db5
742 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
743 Date: Fri Feb 13 23:52:16 2009 -0600
744
745 Clean up some connections in invalid-nick test
746
747 Also assert that the dbus exception is the correct one. Changes per wjt's
748 review.
749
750 tests/twisted/connect/invalid-nick.py | 39 +++++++++++++++-----------------
751 1 files changed, 18 insertions(+), 21 deletions(-)
752
753 commit dbdbbb96349443a48e741f07d175808899bc343f
754 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
755 Date: Fri Feb 13 23:20:35 2009 -0600
756
757 Assume worst-case relay prefix before we get user info
758
759 Finding from wjt's review. I wasn't able to find a max limit on userlength, but
760 the 3 IRC servers that I tested (freenode, gimpnet, and ircd-hybrid on localhost
761 as shipped by debian) all had limits between 8-10 characters. I added a little
762 padding and made username worst-case 18 chars.
763
764 src/idle-connection.c | 10 +++++++++-
765 1 files changed, 9 insertions(+), 1 deletions(-)
766
767 commit 6933765064960d84c71747873851393ed88f4c9b
768 Merge: ad2a004 d471f42
769 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
770 Date: Fri Feb 13 19:39:19 2009 -0600
771
772 Merge branch 'room-contact-mixup'
773
774 commit ad2a004f8aa490f756708c42b0d8b1f1759584c1
775 Merge: fda6247 4a64d98
776 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
777 Date: Fri Feb 13 19:37:25 2009 -0600
778
779 Merge branch 'gimpnet-quit'
780
781 Conflicts:
782
783 src/idle-server-connection.c
784
785 commit fda62472258ddbb0cb512de5958763ada028e5d1
786 Merge: 39ee883 ae92668
787 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
788 Date: Fri Feb 13 17:38:49 2009 -0600
789
790 Merge branch 'leakfix'
791
792 commit 39ee883cfe3ede415fee8f4ae87636cc2024053c
793 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
794 Date: Thu Jan 22 11:29:25 2009 -0600
795
796 Add documentation for IRC message spec
797
798 If you haven't worked with it in a little while, it can be a little challenging
799 to remember what the different characters mean for the IRC message spec. This
800 just adds a small comment describing each of the format letters so that it's
801 easier to add new IRC message types in the future.
802
803 src/idle-parser.c | 11 +++++++++++
804 1 files changed, 11 insertions(+), 0 deletions(-)
805
806 commit efe60c1b62ebf41c2c2f0336d7b5322454744a92
807 Merge: 18a3cd1 492c891
808 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
809 Date: Fri Feb 13 17:31:52 2009 -0600
810
811 Merge branch 'fd-double-close'
812
813 Conflicts:
814
815 src/idle-ssl-server-connection.c
816
817 commit 18a3cd12be7976cb00123537b2575d572feedf61
818 Merge: 7730041 40fa184
819 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
820 Date: Fri Feb 13 17:30:24 2009 -0600
821
822 Merge branch 'ssl-infinite-loop'
823
824 commit d471f42675222cce620a219b36791e7f0e69bb5f
825 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
826 Date: Wed Jan 28 11:27:19 2009 -0600
827
828 Re-work the room-contact-mixup test with alban's suggestions
829
830 use a signal handler on the dbus signal to set a global flag and assert that the
831 flag is false at the end rather than waiting for a signal we don't want to get.
832 I tested that this still failed without the patch and passes after, and it makes
833 the test a bit cleaner (and runs faster).
834
835 tests/twisted/messages/room-contact-mixup.py | 35 +++++++++++++------------
836 1 files changed, 18 insertions(+), 17 deletions(-)
837
838 commit a88b5955d95ba5ed1fa7cd23b574883c5a017543
839 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
840 Date: Tue Jan 27 17:24:59 2009 -0600
841
842 Fix Bug #19766: private messages no longer delivered to group chat
843
844 This could perhaps be a slightly controversial change. The reason that the bug
845 happened was that telepathy-idle's room handle repository normalizer function
846 had some special code to make joining chatrooms more user-friendly. Basically,
847 if the user specified a chatroom 'foo', it would assume you meant '#foo' and
848 automatically prepend the '#' character.
849 The way the parser currently works is that when we get in a privmsg, we try to
850 parse the 'destination' of the privmsg as both a contact and a room. The way we
851 determine if it's a valid room or not is by calling tp_handle_ensure(room_repo,
852 ...) (and same for determining valid contacts). Unfortunately, because of the
853 automatic #-prepending this means that a single privmsg destination can be both
854 a valid contact and a valid channel name, so if the user is in a channel with
855 the same name as their nick (but without the leading #), the privmsg will be
856 handled by both the IMFactory and the MUCFactory
857
858 src/idle-handles.c | 6 ------
859 1 files changed, 0 insertions(+), 6 deletions(-)
860
861 commit 919ee9b1448430737f89056209280947ec5ade72
862 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
863 Date: Tue Jan 27 17:23:12 2009 -0600
864
865 Add test for Bug #19766: private messages deliver to group chat
866
867 This test currently fails because the user joins a channel with the same name as
868 the user, and when a remote contact sends a private message to the user it gets
869 signalled as 'Received' on both the private chat channel and the group chat
870 channel
871
872 tests/twisted/Makefile.am | 1 +
873 tests/twisted/messages/room-contact-mixup.py | 87 ++++++++++++++++++++++++++
874 2 files changed, 88 insertions(+), 0 deletions(-)
875
876 commit 155488bc72498bb1c2acf78cd4a001836e21e54b
877 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
878 Date: Fri Feb 13 16:05:51 2009 -0600
879
880 Split long messages properly (Bug #17392)
881
882 Use the newly-added idle_connection_get_max_message_length() API to split long
883 messages so that they allow for the server to add a prefix onto the messages
884 that it relays to others instead of simply using 512 as the max message length
885
886 I had to modify the test a bit to get it to behave like a real IRC server, but
887 now the test passes fine, and I did quite a bit of manual testing (copy/pasting
888 large chunks of test between two accounts) and have not seen any issues yet.
889 Part of my manual testing included copy/pasting large amounts of unicode text
890 from various wikipedia articles in other languages, so I believe that the utf-8
891 splitting issue is also fixed properly in this branch.
892
893 src/idle-connection.c | 4 +++-
894 src/idle-connection.h | 2 +-
895 src/idle-text.c | 7 ++++---
896 src/idle-text.h | 2 +-
897 tests/twisted/messages/long-message-split.py | 9 ++++++++-
898 5 files changed, 17 insertions(+), 7 deletions(-)
899
900 commit 5edc8f54cafe32ac1daf37a9c940ee81b2ce92f8
901 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
902 Date: Fri Feb 13 15:20:43 2009 -0600
903
904 Store our user host prefix to calculate max msg length
905
906 After logging in, query information about ourselves so that we know what prefix
907 string will be tacked onto the beginning of our messages by the server when they
908 are relayed on to other users. This will allow us to calculate our max message
909 length properly.
910
911 This patch also adds a new API method idle_connection_get_max_message_length()
912 that allows others to query this information without knowing anything about the
913 actual host / prefix string.
914
915 src/idle-connection.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
916 src/idle-connection.h | 1 +
917 src/idle-parser.c | 1 +
918 src/idle-parser.h | 1 +
919 4 files changed, 49 insertions(+), 0 deletions(-)
920
921 commit c573b2b2cfffd13062dee546a150798ec4356cb3
922 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
923 Date: Fri Feb 13 13:54:36 2009 -0600
924
925 Don't split a utf-8 codepoint in half when splitting long message
926
927 Basic approach: find the place we would normally break the message, and walk
928 back to the previous utf-8 character start.
929
930 src/idle-text.c | 33 ++++++++++++++++-----------------
931 1 files changed, 16 insertions(+), 17 deletions(-)
932
933 commit 2c8cce859dafdd85d409010c505883a6c24da8a7
934 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
935 Date: Fri Jan 30 15:47:40 2009 -0600
936
937 Add a test for improper splitting of long messages (Bug #17392)
938
939 See the bug for details, but essentially, telepathy-idle will internally split
940 long messages (those above the IRC max length of 512) and send them in multiple
941 messages. The problem is that the server then has to relay them on to the other
942 members of the channel, and when it does this, it adds a ':nick!server.name here
943 ' prefix onto the message. So if our message was exactly 512 bytes, when this
944 prefix gets added, it needs to chop some of the message off the end to fit under
945 the 512-char limit. It does so silently, unfortunately. So we'll need to
946 either limit our max messages to a value considerably lower than 512 to leave
947 room for the server to add their prefix or we'll need to figure out a way to
948 calculate very closely what the prefix is going to be (for the longest possible
949 nickname)
950
951 tests/twisted/Makefile.am | 1 +
952 tests/twisted/messages/long-message-split.py | 63 ++++++++++++++++++++++++++
953 2 files changed, 64 insertions(+), 0 deletions(-)
954
955 commit dfb5b76c455830428d6481e6318b184a456c2b46
956 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
957 Date: Fri Jan 30 14:51:37 2009 -0600
958
959 Validate nicks per the IRC RFC
960
961 Previously we were allowing the nick to consist of any unicode alpha or digit
962 characters, but the IRC spec (RFC2812 section 2.3.1) is very explicit about
963 which characters are valid for a nick, and it's only ascii chars.
964
965 In addition, we weren't disallowing '-' as the first character of a nickname as
966 required by the IRC spec.
967
968 Added a few additional tests for valid and invalid nicks
969
970 src/idle-handles.c | 19 ++++++++++---------
971 tests/twisted/connect/invalid-nick.py | 8 ++++++++
972 2 files changed, 18 insertions(+), 9 deletions(-)
973
974 commit 00ead0bb95daa75de7be57f555f5fa5f05371cb3
975 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
976 Date: Fri Jan 30 13:45:25 2009 -0600
977
978 Expose the nick validation function and use it in the CM
979
980 Add a filter for the 'account' param of the RequestConnection method so that it
981 can check if the passed nickname is valid for an IRC nick and reject it if not.
982 Previously, telepathy-idle happily accepted invalid nicknames and then didn't
983 provide any decent feedback about what was wrong when the 'login' failed.
984
985 src/idle-connection-manager.c | 18 +++++++++++++++++-
986 src/idle-handles.c | 4 ++--
987 src/idle-handles.h | 1 +
988 3 files changed, 20 insertions(+), 3 deletions(-)
989
990 commit ac268e98767da9a2e4d10155fa612cb5b55bb8ef
991 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
992 Date: Fri Jan 30 13:43:56 2009 -0600
993
994 Add test for invalid nicknames
995
996 telepathy-idle should not blindly accept invalid nicknames -- it should do a
997 validity check on them and reject them if they're not valid IRC nicks. This
998 test does that. Fix will come soon.
999
1000 tests/twisted/Makefile.am | 1 +
1001 tests/twisted/connect/invalid-nick.py | 58 +++++++++++++++++++++++++++++++++
1002 2 files changed, 59 insertions(+), 0 deletions(-)
1003
1004 commit 6ed3fe28674529814ced37aec1005ccd60846758
1005 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1006 Date: Thu Jan 29 15:19:22 2009 -0600
1007
1008 Advertise the Requests interface, add test
1009
1010 Borrow a test from gabble for Requests.CreateChannel and modify it to fit idle.
1011 This is just a very cursory test fo the Requests interface.
1012
1013 src/idle-connection.c | 1 +
1014 tests/twisted/Makefile.am | 1 +
1015 tests/twisted/channels/requests-create.py | 83 +++++++++++++++++++++++++++++
1016 3 files changed, 85 insertions(+), 0 deletions(-)
1017
1018 commit 6d197ed30d0f4fb17d316be966206782cbbfe1e3
1019 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1020 Date: Thu Jan 29 12:24:27 2009 -0600
1021
1022 Speed up the tests a bit
1023
1024 When I was figuring out the test framework and trying to get things to work, I
1025 had bumped up the time out on a bunch of tests to 10s rather than the default 5.
1026 This means that a timeout failure takes a lot longer to happen and there's
1027 really no need for a full 10s timeout. Also, when testing that messages are
1028 sent in the right order, there's no need to send 10 messages, so cut a few of
1029 them. Since there's a built-in 2s delay between each sent message, that means
1030 the test was always taking *at least* 20s to execute.
1031
1032 tests/twisted/channels/join-muc-channel.py | 2 +-
1033 tests/twisted/connect/connect-success-ssl.py | 2 +-
1034 tests/twisted/connect/connect-success.py | 2 +-
1035 tests/twisted/messages/leading-space.py | 2 +-
1036 tests/twisted/messages/message-order.py | 12 +-----------
1037 5 files changed, 5 insertions(+), 15 deletions(-)
1038
1039 commit 6ba4f0740bd069e6925dca7cea6e1b465ffc3b42
1040 Author: Jonathon Jongsma <jjongsma@gnome.org>
1041 Date: Mon Jan 5 15:12:36 2009 -0600
1042
1043 Implement the TpExportableChannel interface
1044
1045 To complete the switch from TpChannelFactory to TpChannelManager, the
1046 IdleIMChannel and IdleMUCChannel classes must implement the TpExportableChannel
1047 interface. This implementation is highly influenced by the Salut implementation
1048
1049 src/idle-im-channel.c | 54 ++++++++++++++++++++++++++++++++++++++++-------
1050 src/idle-im-channel.h | 2 +
1051 src/idle-muc-channel.c | 39 ++++++++++++++++++++++++++++++++++
1052 src/idle-muc-channel.h | 2 +
1053 4 files changed, 89 insertions(+), 8 deletions(-)
1054
1055 commit c90f550bd7840179f78278cb6d36bc63670afed6
1056 Author: Jonathon Jongsma <jjongsma@gnome.org>
1057 Date: Mon Jan 5 13:40:58 2009 -0600
1058
1059 First pass at porting IdleMUCFactory to IdleMUCManager
1060
1061 src/idle-muc-factory.c | 632 ------------------------------------
1062 src/idle-muc-factory.h | 51 ---
1063 src/idle-muc-manager.c | 827 ++++++++++++++++++++++++++++++++++++++++++++++++
1064 src/idle-muc-manager.h | 51 +++
1065 4 files changed, 878 insertions(+), 683 deletions(-)
1066
1067 commit 027f8d666388ddcdb47e99ebed448a519074db04
1068 Author: Jonathon Jongsma <jjongsma@gnome.org>
1069 Date: Sat Jan 3 14:43:01 2009 -0600
1070
1071 Initial transition from IdleIMFactory to IdleIMManager
1072
1073 using new TpChannelManager interface instead of old TpChannelFactory interface
1074
1075 src/Makefile.am | 8 +-
1076 src/idle-connection.c | 27 ++--
1077 src/idle-im-factory.c | 260 --------------------------
1078 src/idle-im-factory.h | 51 -----
1079 src/idle-im-manager.c | 489 +++++++++++++++++++++++++++++++++++++++++++++++++
1080 src/idle-im-manager.h | 51 +++++
1081 6 files changed, 558 insertions(+), 328 deletions(-)
1082
1083 commit 4a64d982e41406d7ca738a8025d70566ca7cbbf8
1084 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1085 Date: Tue Jan 27 14:52:21 2009 -0600
1086
1087 Handle buggy servers that don't quit properly
1088
1089 This fix kills 2 related bugs at once (and thus fixes both of the tests that I
1090 just added on this branch).
1091
1092 1. It disables receiving further messages after we send our QUIT message, so
1093 that we don't process a stray "welcome" message and accidentally try to
1094 transition to CONNECTED state while we're in the middle of disconnecting.
1095 2. Schedules a forceful server disconnection for 2s after we send our QUIT
1096 message in the case that the remote server does not close the socket. This
1097 means that we send the dbus method return for Disconnect() at most 2s after
1098 receiving it, rather than depending on the remote server to disconnect us
1099 before we send the dbus method return. I suppose I could have just
1100 disconnected immediately rather than scheduling it for 2s in the future, but
1101 I wanted to stay as close to current behavior as possible.
1102
1103 src/idle-connection.c | 22 ++++++++++++++++++++++
1104 1 files changed, 22 insertions(+), 0 deletions(-)
1105
1106 commit 438f8edc058ae17998c443c80e01892658eb93fb
1107 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1108 Date: Tue Jan 27 13:52:08 2009 -0600
1109
1110 Add a couple tests for slightly buggy server behavior
1111
1112 gimpnet IRC server has a bug where if you QUIT while it's waiting for an ident
1113 response (at 'login'), it will totally ignore the QUIT message and go on to send
1114 you a welcome message. I've added a test which approximates this behavior.
1115
1116 In addition, if you send quit behavior, but the remote server doesn't close the
1117 socket, telepathy-idle will never actually quit (or even respond to the
1118 Disconnect() dbus method, in fact). So I've added a test for this case.
1119
1120 I think we should probably unilaterally close the connection and exit after a
1121 certain time if the server is misbehaving in one of these ways
1122
1123 tests/twisted/Makefile.am | 2 +
1124 tests/twisted/connect/server-quit-ignore.py | 41 ++++++++++++++++++++++++++
1125 tests/twisted/connect/server-quit-noclose.py | 34 +++++++++++++++++++++
1126 3 files changed, 77 insertions(+), 0 deletions(-)
1127
1128 commit a6e409abbcd7591e7fd8689b17f1b0074cbad624
1129 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1130 Date: Tue Jan 27 12:11:58 2009 -0600
1131
1132 Make the test server respond to QUIT messages properly
1133
1134 Previously I was just closing the connection immediately upon receiving a QUIT
1135 message, but I should have been sending an ERROR response and then closing the
1136 connection.
1137
1138 tests/twisted/idletest.py | 2 ++
1139 1 files changed, 2 insertions(+), 0 deletions(-)
1140
1141 commit ae926684ebf091e3ecc4dd29761563bb30c5fc14
1142 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1143 Date: Mon Jan 26 15:15:23 2009 -0600
1144
1145 Free a bunch more memory leaks reported by valgrind
1146
1147 Many telepathy signals take GPtrArrays of specialized dbus-glib boxed types.
1148 The basic pattern for all of these leaks is the same:
1149 - create a GValue for the specialized dbus type
1150 - call g_value_take_boxed(foo, specialized-dbus-type);
1151 - dbus_g_type_struct_set(...) /* set struct props */
1152 - g_ptr_array_add(array, g_value_get_boxed())
1153 - emit tp signal
1154 - free ptr array
1155
1156 The problem is that even though the pointer array of the boxed types are freed,
1157 the boxed types themselves are not properly freed. So you need to go through
1158 the list and call g_boxed_free on all of the array elements before freeing the
1159 array (or call g_value_unset() after you're done with the ptr array, which will
1160 result in the boxed type being freed by the GValue since it was initialized with
1161 take_boxed()).
1162
1163 In addition, there was a somewhat related/intertwined bug in the topic handlers:
1164 - in idle_muc_channel_topic_touch(), where we were calling g_value_get_boxed()
1165 and adding it to the GPtrArray, then modifying the GValue, calling
1166 g_value_get_boxed(), and adding that to the array again. The intent was to
1167 add two different objects to the array, but since we were not copying the
1168 boxed type (e.g. g_value_dup_boxed()), the result was that we were adding a
1169 pointer to a boxed type in the array, modifying the object and then adding it
1170 again, so we ended up with two identical boxed type objects in the array
1171 rather than two different objects. I'm not entirely sure what effect this bug
1172 had on things, but it should be fixed now regardless.
1173 - in idle_muc_channel_topic_full(), we had the same problem as above, but in
1174 addition, the 'subject' property was never actually added to the ptr array, so
1175 I added this call.
1176
1177 src/idle-connection.c | 6 +++++
1178 src/idle-muc-channel.c | 52 ++++++++++++++++++++++++++++++++++++++---------
1179 2 files changed, 48 insertions(+), 10 deletions(-)
1180
1181 commit 10edb283b49d35863cb2345b3fe308ba5ad40180
1182 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1183 Date: Mon Jan 26 10:15:48 2009 -0600
1184
1185 Fix a leak in change_tp_properties()
1186
1187 We were leaking all GValue* objects that we got with dbus_g_type_struct_get()
1188 every time we called change_tp_properties(). This valgrind error is
1189 representative of the leaks:
1190
1191 ==2405== 1,348 (280 direct, 1,068 indirect) bytes in 14 blocks are definitely lost in loss record 5 of 15
1192 ==2405== at 0x4023DE2: calloc (vg_replace_malloc.c:397)
1193 ==2405== by 0x4389479: g_malloc0 (gmem.c:151)
1194 ==2405== by 0x43060A1: value_copy (gboxed.c:94)
1195 ==2405== by 0x43069CE: boxed_proxy_lcopy_value (gboxed.c:362)
1196 ==2405== by 0x42B08C5: dbus_g_type_struct_get (dbus-gtype-specialized.c:978)
1197 ==2405== by 0x805D1EC: change_tp_properties (idle-muc-channel.c:526)
1198 ==2405== by 0x805F39D: idle_muc_channel_topic (idle-muc-channel.c:1222)
1199 ==2405== by 0x8053969: _numeric_topic_handler (idle-muc-factory.c:184)
1200 ==2405== by 0x8055F5D: _parse_and_forward_one (idle-parser.c:399)
1201 ==2405== by 0x8055BC7: _parse_message (idle-parser.c:321)
1202 ==2405== by 0x8055694: idle_parser_receive (idle-parser.c:214)
1203 ==2405== by 0x804EFF6: sconn_received_cb (idle-connection.c:656)
1204
1205 After this commit, this particular error message no longer appears, though there
1206 is one additional leak that I need to chase down yet.
1207
1208 src/idle-muc-channel.c | 2 ++
1209 1 files changed, 2 insertions(+), 0 deletions(-)
1210
1211 commit 8c87b6e3b219d720038420201382b1b66ab7e789
1212 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1213 Date: Mon Jan 19 16:14:02 2009 -0600
1214
1215 Handle connect()s that return success immediately
1216
1217 The documentation on connect() is cryptic about in what situations a
1218 non-blocking socket can connect immediately, but in theory it is possible. I
1219 had several test failures caused by violating the assumption that the return
1220 status from connect() is always -1 on a non-blocking socket. These turned out
1221 to be caused by attempting to connect a UDP socket (which apparently is
1222 instantaneous even on non-blocking sockets), but it seems wise to handle this
1223 case more gracefully anyway, rather than simply asserting.
1224
1225 src/idle-server-connection.c | 12 ++++++------
1226 src/idle-ssl-server-connection.c | 4 +---
1227 2 files changed, 7 insertions(+), 9 deletions(-)
1228
1229 commit 7730041cb68402b8eadafc57d767cf8626638a00
1230 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1231 Date: Mon Jan 19 15:48:41 2009 -0600
1232
1233 Only try to connect to the IRC server over TCP
1234
1235 Previously we were not specifying any socket type in our getaddrinfo call, so
1236 our address results included both TCP and UDP candidates. When connecting to
1237 the TCP one failed, it would try the UDP one, which would lead to some
1238 unexpected behavior (for instance, connect() on a UDP socket with O_NONBLOCK set
1239 will return 0 rather than -1/EINPROGRESS, which violates some assumptions in the
1240 code). If the UDP socket did manage to get connected, it would violate other
1241 assumptions (for instance, setting the TCP_NODELAY option doesn't make sense on
1242 a non-TCP socket and triggers a warning).
1243 So, it doesn't really make sense to connect to a IRC server with UDP anyway, so
1244 this patch restricts telepathy-idle to use TCP sockets only
1245
1246 src/idle-dns-resolver.c | 6 +++++-
1247 1 files changed, 5 insertions(+), 1 deletions(-)
1248
1249 commit 40fa1847606e4176432e2177a55a87934450a16b
1250 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1251 Date: Mon Jan 19 15:45:47 2009 -0600
1252
1253 Fix an infinite loop in the SslServerConnection class
1254
1255 This failure was triggered by the connect-fail-ssl test. When a ssl connection
1256 fails, it just retries the exact same address over an over in an infinite loop.
1257 It doesn't move on to the next address as it should.
1258
1259 src/idle-ssl-server-connection.c | 2 ++
1260 1 files changed, 2 insertions(+), 0 deletions(-)
1261
1262 commit fbd509b4e34f0e96fbd2a87e18fbecfdfedaef70
1263 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1264 Date: Mon Jan 19 15:44:48 2009 -0600
1265
1266 Add a little explanation to the connect-fail-ssl test
1267
1268 tests/twisted/connect/connect-fail-ssl.py | 7 ++++---
1269 1 files changed, 4 insertions(+), 3 deletions(-)
1270
1271 commit d0e9f8ddcb99f3d7b848be81c08ed1594b90b760
1272 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1273 Date: Mon Jan 19 11:39:53 2009 -0600
1274
1275 Add regression test for leading-space messages
1276
1277 There was a long-standing bug in telepathy-idle where a received message that
1278 had a leading space was not parsed correctly and was dropped silently. This bug
1279 has recently been fixed, and this is simply a regression test for it.
1280
1281 tests/twisted/Makefile.am | 1 +
1282 tests/twisted/idletest.py | 56 +++++++++++++++++++++----------
1283 tests/twisted/messages/leading-space.py | 55 ++++++++++++++++++++++++++++++
1284 3 files changed, 94 insertions(+), 18 deletions(-)
1285
1286 commit e2f80415081972431eed901679896d0576d99844
1287 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1288 Date: Fri Jan 16 22:30:28 2009 -0600
1289
1290 Add a regression test for messages delivered in proper order
1291
1292 There was a bug where messages that were queued in the same message timeout
1293 (currently 2s) were not delivered in the order they were received. This bug has
1294 been fixed, but I thought it would be useful to add a regression test for it.
1295
1296 tests/twisted/Makefile.am | 1 +
1297 tests/twisted/idletest.py | 2 +-
1298 tests/twisted/messages/message-order.py | 53 +++++++++++++++++++++++++++++++
1299 3 files changed, 55 insertions(+), 1 deletions(-)
1300
1301 commit 94d765abc6474d7ec5bd2727b26e420f6518a4c8
1302 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1303 Date: Fri Jan 16 22:07:11 2009 -0600
1304
1305 Add a very basic test for joining an IRC channel
1306
1307 I'm not sure whether this test really has a lot of value, but it essentially
1308 documents the current behavior
1309
1310 tests/twisted/Makefile.am | 1 +
1311 tests/twisted/channels/join-muc-channel.py | 40 ++++++++++++++++++++++++++++
1312 tests/twisted/idletest.py | 12 ++++++--
1313 3 files changed, 50 insertions(+), 3 deletions(-)
1314
1315 commit 480d3cea4b59e8191c4116d12b71abfdafb5101c
1316 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1317 Date: Fri Jan 16 17:16:40 2009 -0600
1318
1319 call Disconnect() asynchronously to prevent false test failures
1320
1321 previously, the -success and the -success-ssl tests were failing because they
1322 didn't get a dbus method return from the Disconnect() method. I thought that
1323 this was a problem with idle not returning the response, but it turns out it was
1324 caused by the fact that the test called Disconnect() synchronously. So while
1325 the test was waiting for the dbus return, the QUIT handler could not run, so the
1326 connection was not getting closed. Apparently idle waits for the connection to
1327 be closed before sending the dbus method return.
1328
1329 When I change the Disconnect() call to be async, the test irc client is allowed
1330 to run and the tests now pass.
1331
1332 tests/twisted/connect/connect-success-ssl.py | 9 ++++++---
1333 tests/twisted/connect/connect-success.py | 9 ++++++---
1334 2 files changed, 12 insertions(+), 6 deletions(-)
1335
1336 commit 3fd18659d75157412def057df227e61f4b7aaa6d
1337 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1338 Date: Thu Jan 15 14:23:39 2009 -0600
1339
1340 Ignore a bunch of testing logs
1341
1342 .gitignore | 4 ++++
1343 1 files changed, 4 insertions(+), 0 deletions(-)
1344
1345 commit 507bf2998e7c8b3cbabf5e1254d24926c07af92c
1346 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1347 Date: Thu Jan 15 11:01:24 2009 -0600
1348
1349 Fix some more minor twisted test issues
1350
1351 - Use expect_many() rather than expect_racy() (the latter was accidentally
1352 committed after I was playing around with it and didn't know exactly what it
1353 did).
1354 - Fix the signature of BaseIRCServer.connectionLost.
1355 - Fix some formatting (tabs vs. spaces) issues
1356 - a little more debug information to help me figure out what's going on.
1357
1358 tests/twisted/Makefile.am | 4 ++--
1359 tests/twisted/connect/connect-fail-ssl.py | 8 ++++----
1360 tests/twisted/connect/connect-fail.py | 6 +++---
1361 tests/twisted/connect/connect-success-ssl.py | 6 ++++--
1362 tests/twisted/connect/connect-success.py | 6 ++++--
1363 tests/twisted/idletest.py | 6 ++++--
1364 6 files changed, 21 insertions(+), 15 deletions(-)
1365
1366 commit ba450846d8c0ca445ab9fc6263d70c6b2380b651
1367 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1368 Date: Wed Jan 14 12:23:31 2009 -0600
1369
1370 Add support for testing ssl connections with twisted tests
1371
1372 Added a couple ssl connection tests that are just variations of the non-ssl
1373 connection tests and really only serve to excercise the IdleSSLServerConnection
1374 class a bit.
1375 Added a testing-only ssl cert / key just so we're able to start a ssl irc test
1376 server and test connections to it.
1377
1378 tests/twisted/Makefile.am | 2 ++
1379 tests/twisted/connect/connect-fail-ssl.py | 16 ++++++++++++++++
1380 tests/twisted/connect/connect-success-ssl.py | 22 ++++++++++++++++++++++
1381 tests/twisted/idletest.py | 13 +++++++++++--
1382 tests/twisted/tools/idletest.cert | 10 ++++++++++
1383 tests/twisted/tools/idletest.key | 9 +++++++++
1384 tests/twisted/tools/tmp-session-bus.conf.in | 8 ++------
1385 7 files changed, 72 insertions(+), 8 deletions(-)
1386
1387 commit d9e38485be510aafdd5cb0d870775f6c1d853cd7
1388 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1389 Date: Tue Jan 13 11:18:50 2009 -0600
1390
1391 Improvements to twisted test IRC server
1392
1393 Now at least returns a WELCOME message if it detects a NICK and USER message is
1394 sent by the client. This allows the client to finally transition to the
1395 CONNECTED state from CONNECTING, so it's progress. The test still seems to hang
1396 when attempting to disconnect, though, I'm not sure what is causing that yet.
1397
1398 tests/twisted/connect/connect-success.py | 19 +++++------
1399 tests/twisted/idletest.py | 50 +++++++++++++++--------------
1400 2 files changed, 34 insertions(+), 35 deletions(-)
1401
1402 commit e14ecf6c650b3da01f59094c4d7b74d29543d7e1
1403 Author: Jonathon Jongsma <jjongsma@gnome.org>
1404 Date: Mon Jan 12 14:45:20 2009 -0600
1405
1406 Starting to add twisted test infrastructure
1407
1408 The twisted test infrastructure was copied and modified from gabble. I'm still
1409 getting familiar with it and figuring out how things work, so it doesn't really
1410 do much yet and there are even issues with the few barebones tests I've included
1411 here.
1412
1413 .gitignore | 13 +-
1414 Makefile.am | 5 +
1415 configure.ac | 20 +
1416 tests/Makefile.am | 1 +
1417 tests/twisted/Makefile.am | 37 ++
1418 tests/twisted/connect/connect-fail.py | 16 +
1419 tests/twisted/connect/connect-success.py | 24 ++
1420 tests/twisted/idletest.py | 169 +++++++++
1421 tests/twisted/servicetest.py | 505 +++++++++++++++++++++++++++
1422 tests/twisted/tools/Makefile.am | 33 ++
1423 tests/twisted/tools/exec-with-log.sh.in | 27 ++
1424 tests/twisted/tools/idle.service.in | 3 +
1425 tests/twisted/tools/tmp-session-bus.conf.in | 30 ++
1426 tests/twisted/tools/with-session-bus.sh | 84 +++++
1427 14 files changed, 964 insertions(+), 3 deletions(-)
1428
1429 commit 492c8916e6dc4ce7ed82c3509071edd430dada99
1430 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1431 Date: Wed Jan 14 10:15:21 2009 -0600
1432
1433 Fix the fd double-close in the ssl server connection class as well
1434
1435 As in the normal server connection class, there doesn't seem to be any need to
1436 carry the fd around in the AsyncConnectData struct or in the class priv struct
1437 since we can always retrieve it from the GIOChannel when necessary. In
1438 addition, g_io_channel_shutdown closes the fd, so there's no reason to close the
1439 fd separately. In fact, closing the fd separately will result in a glib warning
1440 about closing an invalid file descriptor if the close() is done before the
1441 channel shutdown.
1442
1443 src/idle-ssl-server-connection.c | 32 +++++++-------------------------
1444 1 files changed, 7 insertions(+), 25 deletions(-)
1445
1446 commit d37f1b997bb3dc8a303f6459245072bdcfd3a480
1447 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1448 Date: Tue Jan 13 16:48:16 2009 -0600
1449
1450 Fix a warning about closing an invalid file descriptor
1451
1452 When running the new test suite for idle (not yet merged upstream), I was
1453 getting tests aborted and created core files due to a warning about closing an
1454 invalid file descriptor. The actual source of the warning I was seeing was in
1455 async_connect_data_destroy() while shutting down the IO channel. I believe this
1456 is because a few lines earlier, we close the IOChannel's file descriptor, then
1457 glib attempts to close it again in the g_io_channel_shutdown() function.
1458
1459 We seem to be doing this many other places, but we don't always get warnings
1460 about it because often the close() call comes after the g_io_channel_shutdown()
1461 call, and we don't check the return status from close(). It seems to me that
1462 since glib will free the file descriptor for us when we shut down the IOChannel,
1463 there's not even any reason to carry around the fd separately in
1464 _AsyncConnectData (since we can always get it from the IOChannel anyway), so I
1465 removed that as well.
1466
1467 I haven't changed similar uses in the SSL server connection yet.
1468
1469 src/idle-server-connection.c | 28 ++++------------------------
1470 1 files changed, 4 insertions(+), 24 deletions(-)
1471
1472 commit e798493ed8dc4e5d68035a3362da4e29884d9816
1473 Author: Jonathon Jongsma <jjongsma@gnome.org>
1474 Date: Tue Jan 6 11:47:54 2009 -0600
1475
1476 Handle user renames in muc rooms
1477
1478 Previously, tp_group_mixin_change_members() was called with reason NONE, so UI
1479 applications had no chance of displaying it as a rename rather than separate
1480 quit and join operations. Since idle now depends on a recent-enough tp-glib, we
1481 can use the RENAMED reason (and also, use the new set_self_handle() API in the
1482 TpGroupMixin as well)
1483
1484 src/idle-muc-channel.c | 6 ++----
1485 1 files changed, 2 insertions(+), 4 deletions(-)
1486
1487 commit 022ea3809759d8b1fd92c23b2b8b4e8c1f3b0116
1488 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1489 Date: Tue Jan 13 11:32:17 2009 -0600
1490
1491 Initialize a couple more GErrors to NULL
1492
1493 Missed a couple uninitialized GErrors in the ssl connection class
1494
1495 src/idle-ssl-server-connection.c | 4 ++--
1496 1 files changed, 2 insertions(+), 2 deletions(-)
1497
1498 commit 307977a5ca0db466e52ed5be5b1ebcbf4799296c
1499 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1500 Date: Mon Jan 12 16:32:21 2009 -0600
1501
1502 Initialize all GError* vars to NULL
1503
1504 We were getting some warnings about an error being set over top of an existing
1505 error, because several GError* variables were not initialized properly to NULL.
1506
1507 src/idle-connection.c | 8 ++++----
1508 1 files changed, 4 insertions(+), 4 deletions(-)
1509
1510 commit 86ca78e69f077861a6149f5d795ddc0d0aae9503
1511 Author: Jonathon Jongsma <jjongsma@gnome.org>
1512 Date: Wed Dec 31 15:52:47 2008 -0600
1513
1514 Fix parsing error on leading whitespace (bug #17390)
1515
1516 The basic problem is as follows:
1517 There is an incoming message that looks like the following:
1518 ":jonner!n=jonner@jalfrezi.collabora.co.uk PRIVMSG #channelname : foo bar"
1519
1520 When this message gets tokenized, we get the following tokens:
1521 - :jonner!n=jonner@jalfrezi.collabora.co.uk
1522 - PRIVMSG
1523 - #channelname
1524 - :
1525 - foo
1526 - bar
1527
1528 When we get to parsing the chat message portion, our current token is simply
1529 ":". There is a check in the code that was meant to prevent zero-length strings
1530 from being added to the parsed arguments, but that check assumes that we'll only
1531 be adding the current token to the parsed args. In reality, we want to consume
1532 the entire remaining string (which may contain multiple tokens) and add it to
1533 args. So instead of checking that the the character immediately after the ':'
1534 is non-NULL in the strdup-ed token, we should really check that the character
1535 immediately after the ':' is non-NULL in the original message string.
1536
1537 Bug was introduced in commit 02cf59fb7b7efebbec39422460ec13ae1e3f5c89
1538
1539 src/idle-parser.c | 8 +++++++-
1540 1 files changed, 7 insertions(+), 1 deletions(-)
1541
1542 commit f65a516ad01362f834f93cff1f947892c2bce46c
1543 Merge: bc09457 1917b5a
1544 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
1545 Date: Thu Sep 25 18:48:40 2008 +0100
1546
1547 Merge branch 'self-handle-changed'
1548
1549 commit bc0945793cf918318538e30d46b281b1de14b4aa
1550 Author: Florian Steinel <Florian.Steinel@googlemail.com>
1551 Date: Thu Sep 25 19:32:40 2008 +0200
1552
1553 fix compile on 64bit arch
1554
1555 src/idle-muc-channel.c | 2 +-
1556 src/idle-text.c | 2 +-
1557 2 files changed, 2 insertions(+), 2 deletions(-)
1558
1559 commit 1917b5a0406c614f7b3866b7f90ca2cf4dabe83a
1560 Author: Simon McVittie <http://smcv.pseudorandom.co.uk/>
1561 Date: Wed Sep 24 10:56:27 2008 +0100
1562
1563 Require telepathy-glib 0.7.15 (for tp_base_connection_set_self_handle)
1564
1565 configure.ac | 2 +-
1566 1 files changed, 1 insertions(+), 1 deletions(-)
1567
1568 commit c1fa7702c628034af76a9c9ebbfe2818f847e069
1569 Merge: bb058c8 5ae7920
1570 Author: Simon McVittie <http://smcv.pseudorandom.co.uk/>
1571 Date: Wed Sep 24 10:55:58 2008 +0100
1572
1573 Merge commit 'wjt/self-handle-changed' into self-handle-changed
1574
1575 Conflicts:
1576
1577 configure.ac
1578
1579 commit 5ae7920bb0282fa080cff5d2db6191dcdca35769
1580 Author: Will Thompson <will.thompson@collabora.co.uk>
1581 Date: Tue Sep 9 17:00:21 2008 +0100
1582
1583 Connection: remove unused variable
1584
1585 src/idle-connection.c | 1 -
1586 1 files changed, 0 insertions(+), 1 deletions(-)
1587
1588 commit bb058c8892a91e012e002cd2e5526e85bc05e86b
1589 Author: Will Thompson <will.thompson@collabora.co.uk>
1590 Date: Mon Sep 1 12:50:17 2008 +0100
1591
1592 Rewrite idle_text_encode_and_split to be more obviously correct.
1593
1594 Fixes an infinite loop for ACTIONs containing newlines.
1595
1596 src/idle-text.c | 93 ++++++++++++++++++++++++++++++-------------------------
1597 1 files changed, 51 insertions(+), 42 deletions(-)
1598
1599 commit 06123a3471a6a248604bc18e71221216b1e771e7
1600 Author: Will Thompson <will.thompson@collabora.co.uk>
1601 Date: Mon Sep 1 12:47:13 2008 +0100
1602
1603 Add a test that over-long/newlined messages are split correctly.
1604
1605 tests/Makefile.am | 7 ++-
1606 tests/test-text-encode-and-split.c | 150 ++++++++++++++++++++++++++++++++++++
1607 2 files changed, 156 insertions(+), 1 deletions(-)
1608
1609 commit 8fae440479816222cf1375b89ea1070292ae308b
1610 Author: Will Thompson <will.thompson@collabora.co.uk>
1611 Date: Fri Aug 29 19:26:18 2008 +0100
1612
1613 Send messages with equal priority in chronological order
1614
1615 src/idle-connection.c | 21 ++++++++++++++++-----
1616 1 files changed, 16 insertions(+), 5 deletions(-)
1617
1618 commit ec8d4ba71c87bab82818bafd4df6bfc5bdacb6f5
1619 Author: Will Thompson <will.thompson@collabora.co.uk>
1620 Date: Fri Aug 29 18:27:18 2008 +0100
1621
1622 Extract splitting of long/multiline messages to a function
1623
1624 src/idle-text.c | 61 +++++++++++++++++++++++++++++++++++++------------------
1625 src/idle-text.h | 1 +
1626 2 files changed, 42 insertions(+), 20 deletions(-)
1627
1628 commit e7268ab6601c35939e93ab70619b76327a0e1d7f
1629 Author: Will Thompson <will.thompson@collabora.co.uk>
1630 Date: Fri Aug 29 18:04:44 2008 +0100
1631
1632 Fixed signedness warning in a test
1633
1634 tests/test-ctcp-tokenize.c | 2 +-
1635 1 files changed, 1 insertions(+), 1 deletions(-)
1636
1637 commit 7f1faae20c5e8566519fe1e4faa5854a238e3d00
1638 Author: Will Thompson <will.thompson@collabora.co.uk>
1639 Date: Fri Aug 29 17:13:01 2008 +0100
1640
1641 Fix another signedness warning.
1642
1643 src/idle-text.c | 4 +++-
1644 1 files changed, 3 insertions(+), 1 deletions(-)
1645
1646 commit 49d014ee95dfef2d5d56c2565cdd0c2b2030b190
1647 Author: Will Thompson <will.thompson@collabora.co.uk>
1648 Date: Fri Aug 29 16:59:23 2008 +0100
1649
1650 Correct more mismatched signednesses
1651
1652 src/idle-muc-channel.c | 20 ++++++++++----------
1653 src/idle-parser.c | 4 ++--
1654 2 files changed, 12 insertions(+), 12 deletions(-)
1655
1656 commit e86db64ce63408f00d5bd988545984ebac0c3c91
1657 Author: Will Thompson <will.thompson@collabora.co.uk>
1658 Date: Fri Aug 29 16:47:48 2008 +0100
1659
1660 Don't use an invalid enum value as a failure flag
1661
1662 src/idle-im-factory.c | 7 +++----
1663 src/idle-muc-factory.c | 7 +++----
1664 src/idle-text.c | 7 ++++---
1665 src/idle-text.h | 2 +-
1666 4 files changed, 11 insertions(+), 12 deletions(-)
1667
1668 commit 6d2cdaa645d0b626d719aa8edb444eddc602a7e5
1669 Author: Will Thompson <will.thompson@collabora.co.uk>
1670 Date: Fri Aug 29 16:42:28 2008 +0100
1671
1672 Correct the order of "const static" to "static const"
1673
1674 src/idle-handles.c | 2 +-
1675 src/idle-parser.c | 2 +-
1676 2 files changed, 2 insertions(+), 2 deletions(-)
1677
1678 commit c52271ba4cf6425b0cf09f98254d35eaeccac372
1679 Author: Will Thompson <will.thompson@collabora.co.uk>
1680 Date: Fri Aug 29 16:41:52 2008 +0100
1681
1682 Use post-0.6.1 tp_debug_set_flags() and tp_debug_set_persistent()
1683
1684 src/idle-debug.c | 6 +++---
1685 1 files changed, 3 insertions(+), 3 deletions(-)
1686
1687 commit 59381efdfa8e85ce688190b461159873b8f8b708
1688 Author: Will Thompson <will.thompson@collabora.co.uk>
1689 Date: Fri Aug 29 16:41:41 2008 +0100
1690
1691 Bump telepathy-glib dependency to 0.6.1
1692
1693 configure.ac | 2 +-
1694 1 files changed, 1 insertions(+), 1 deletions(-)
1695
1696 commit 667dfdbc78652c667513ce581a76d4e6ef5570f0
1697 Author: Will Thompson <will.thompson@collabora.co.uk>
1698 Date: Fri Aug 29 16:08:58 2008 +0100
1699
1700 Bump telepathy-glib dep to 0.7.3 for the DBusPropertiesMixin
1701
1702 configure.ac | 2 +-
1703 1 files changed, 1 insertions(+), 1 deletions(-)
1704
1705 commit cefc2b085e80de168abc1e5eef3e867be96dfe5f
1706 Author: Will Thompson <will.thompson@collabora.co.uk>
1707 Date: Fri Aug 29 16:00:28 2008 +0100
1708
1709 Change self-handle using tp_base_connection_set_self_handle
1710
1711 src/idle-connection.c | 10 ++--------
1712 1 files changed, 2 insertions(+), 8 deletions(-)
1713
1714 commit 4121b3a3ffcb83f1ecd7797b9e764a9898846c0e
1715 Author: Will Thompson <will.thompson@collabora.co.uk>
1716 Date: Fri Aug 29 16:31:28 2008 +0100
1717
1718 Bump automake dependency
1719
1720 configure.ac | 2 +-
1721 1 files changed, 1 insertions(+), 1 deletions(-)
1722
1723 commit 4a25b1496287a2edffc77b99b78e83fbf24f2ed7
1724 Author: Will Thompson <will.thompson@collabora.co.uk>
1725 Date: Fri Aug 29 15:47:46 2008 +0100
1726
1727 Fix a mismatched signedness warning
1728
1729 src/idle-connection.c | 2 +-
1730 1 files changed, 1 insertions(+), 1 deletions(-)
1731
1732 commit 1bee98f16638f83052ade1213d656b8b87130bed
1733 Author: Will Thompson <will.thompson@collabora.co.uk>
1734 Date: Fri Aug 29 15:47:11 2008 +0100
1735
1736 Enable -Werror and friends on development builds
1737
1738 configure.ac | 59 +++++++++++++++++++++++++++++++++++++++++++++------------
1739 1 files changed, 46 insertions(+), 13 deletions(-)
1740
1741 commit 42d9ae1c93b52f0eba9fee38c739d5e4800a734e
1742 Author: Will Thompson <will.thompson@collabora.co.uk>
1743 Date: Fri Aug 29 15:47:58 2008 +0100
1744
1745 Make autogen.sh executable
1746
1747 0 files changed, 0 insertions(+), 0 deletions(-)
1748
1749 commit 9b09b52959ddfc9cab4b29f2434d09656d2516fa
1750 Author: Will Thompson <will.thompson@collabora.co.uk>
1751 Date: Fri Aug 29 15:46:19 2008 +0100
1752
1753 Remove .git-darcs-dir files
1754
1755 0 files changed, 0 insertions(+), 0 deletions(-)
1756
1757 commit e2429d549a52c5f7b157688c883b69ac717975e0
1758 Author: Will Thompson <will.thompson@collabora.co.uk>
1759 Date: Fri Aug 29 15:45:54 2008 +0100
1760
1761 Convert _boring to .gitignore
1762
1763 .gitignore | 53 +++++++++++++++++++++++++++++++++++++++++
1764 _boring | 76 ------------------------------------------------------------
1765 2 files changed, 53 insertions(+), 76 deletions(-)
1766
1767 commit 7be13f764bc647755f67e65a24709c36625d16ae
1768 Author: Olli Salli <olli.salli@collabora.co.uk>
1769 Date: Tue Jan 1 19:54:42 2008 +0000
1770
1771 Use g_set_error instead of *error = g_error_new where possible to facilitate deliberately ignoring errors
1772
1773
1774 20080101195442-9db4d-234ac21aaee90fe01bbcd0c1069086139c67470c.gz
1775
1776 src/idle-muc-channel.c | 19 ++++++-------------
1777 src/idle-server-connection.c | 18 +++++++++---------
1778 src/idle-ssl-server-connection.c | 12 ++++++------
1779 3 files changed, 21 insertions(+), 28 deletions(-)
1780
1781 commit fb535cd02fb8baeeb8d0dec46dfe19ce0b87a759
1782 Author: Olli Salli <olli.salli@collabora.co.uk>
1783 Date: Wed Jan 16 16:23:19 2008 +0000
1784
1785 Still more coding style unifications, now there should be quite a few less function declarations and calls with a space between the function name and the opening paren.
1786
1787
1788 20080116162319-9db4d-8fe36cffc8d4ae36ce744b987a657771b32c98ed.gz
1789
1790 src/idle-connection-manager.c | 4 ++--
1791 src/idle-connection-manager.h | 2 +-
1792 src/idle-connection.c | 14 +++++++-------
1793 src/idle-connection.h | 2 +-
1794 src/idle-im-channel.c | 34 +++++++++++++++++-----------------
1795 src/idle-text.c | 2 +-
1796 6 files changed, 29 insertions(+), 29 deletions(-)
1797
1798 commit 5f954c012af01becad485a8031985c2e2c294582
1799 Author: Olli Salli <olli.salli@collabora.co.uk>
1800 Date: Wed Jan 16 16:05:15 2008 +0000
1801
1802 More coding style unifications. This time make sure all control keywords have a space between them and the opening paren.
1803
1804
1805 20080116160515-9db4d-ce4b4f35a86d48a12e6c5647eabd93978a5fd081.gz
1806
1807 src/idle-ctcp.c | 2 +-
1808 src/idle-im-factory.c | 4 ++--
1809 src/idle-muc-factory.c | 4 ++--
1810 3 files changed, 5 insertions(+), 5 deletions(-)
1811
1812 commit df96afe50ac242e57e5ad2a65ec7839831f8d066
1813 Author: Olli Salli <olli.salli@collabora.co.uk>
1814 Date: Tue Jan 15 21:02:32 2008 +0000
1815
1816 Make GInterface init functions conform to the same coding standard
1817
1818
1819 20080115210232-9db4d-31348a0b3c340fb081133117243a61cbdc995f8f.gz
1820
1821 src/idle-im-channel.c | 12 ++++++------
1822 src/idle-im-factory.c | 8 ++++----
1823 src/idle-muc-channel.c | 24 ++++++++++++------------
1824 src/idle-muc-factory.c | 8 ++++----
1825 src/idle-server-connection.c | 6 +++---
1826 src/idle-ssl-server-connection.c | 6 +++---
1827 6 files changed, 32 insertions(+), 32 deletions(-)
1828
1829 commit d6884fde268175fca9afccfad0c36435be5a8bd9
1830 Author: Olli Salli <olli.salli@collabora.co.uk>
1831 Date: Tue Jan 15 20:53:29 2008 +0000
1832
1833 Clean up includes
1834
1835
1836 20080115205329-9db4d-6a57ff858a5ce98ae86074e81f3be814e05d6bd3.gz
1837
1838 src/idle-connection-manager.c | 2 +-
1839 src/idle-connection-manager.h | 1 -
1840 src/idle-connection.c | 56 +++++++++++------------------------
1841 src/idle-connection.h | 16 +++-------
1842 src/idle-debug.c | 3 --
1843 src/idle-dns-resolver.c | 3 +-
1844 src/idle-dns-resolver.h | 8 +++++
1845 src/idle-handles.c | 8 ++---
1846 src/idle-handles.h | 4 --
1847 src/idle-im-channel.c | 19 ++++++------
1848 src/idle-im-factory.c | 12 +++----
1849 src/idle-im-factory.h | 2 -
1850 src/idle-muc-channel.c | 30 +++++++++----------
1851 src/idle-muc-channel.h | 10 ++----
1852 src/idle-muc-factory.c | 12 +++----
1853 src/idle-muc-factory.h | 2 -
1854 src/idle-server-connection-iface.c | 2 -
1855 src/idle-server-connection.c | 25 ++++++---------
1856 src/idle-text.c | 5 +--
1857 src/idle-text.h | 2 +
1858 20 files changed, 87 insertions(+), 135 deletions(-)
1859
1860 commit 3c20851336897e76c48a76e6681dc1d64e1c03ac
1861 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
1862 Date: Thu Jan 3 16:49:55 2008 +0000
1863
1864 Cope with TpChannelIface channel-type property becoming writeable in telepathy-glib > 0.7.0, avoiding warnings when channels are constructed (fd.o #13896).
1865
1866 If telepathy-glib is <= 0.7.0, the added code will never execute, but is
1867 harmless.
1868
1869 20080103164955-53eee-b66b94c229995403a3f178753326941d1bfc623f.gz
1870
1871 src/idle-im-channel.c | 3 +++
1872 src/idle-muc-channel.c | 3 +++
1873 2 files changed, 6 insertions(+), 0 deletions(-)
1874
1875 commit c077f7ab1f0d49f1d958fc3a8c7bb9b0a191ccc3
1876 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
1877 Date: Thu Jan 3 16:47:12 2008 +0000
1878
1879 Remove unnecessary reference to an empty variable
1880
1881
1882 20080103164712-53eee-6fe5a4c7cce69a23372eb664a40efce06205ebe0.gz
1883
1884 extensions/Makefile.am | 3 +--
1885 1 files changed, 1 insertions(+), 2 deletions(-)
1886
1887 commit 131fe14ec1f3d6013159739b1e5007bdf96d9d94
1888 Author: Olli Salli <olli.salli@collabora.co.uk>
1889 Date: Sat Jan 12 21:06:59 2008 +0000
1890
1891 Remove useless send_irc_cmd() from idle-connection.c and rename send_irc_cmd_full to _send_with_priority
1892
1893
1894 20080112210659-9db4d-70b106707c5f33eb0983be516ebf3763ac699523.gz
1895
1896 src/idle-connection.c | 25 +++++++++----------------
1897 src/idle-connection.h | 2 +-
1898 2 files changed, 10 insertions(+), 17 deletions(-)
1899
1900 commit 5cecd8a62742c52fe94838dc30a1d27ef0b41be1
1901 Author: Olli Salli <olli.salli@collabora.co.uk>
1902 Date: Sat Jan 12 20:53:48 2008 +0000
1903
1904 Coding style, part: Public functions of classes shouldn't have an underscore prefix
1905
1906
1907 20080112205348-9db4d-dfcfe6f9e50d5cfda568b3c074d11b62cd44678c.gz
1908
1909 src/idle-connection.c | 2 +-
1910 src/idle-connection.h | 2 +-
1911 src/idle-ctcp.c | 2 +-
1912 src/idle-im-channel.c | 2 +-
1913 src/idle-im-channel.h | 2 +-
1914 src/idle-im-factory.c | 2 +-
1915 src/idle-muc-channel.c | 50 ++++++++++++++++++++++++------------------------
1916 src/idle-muc-channel.h | 37 +++++++++++++++++------------------
1917 src/idle-muc-factory.c | 38 ++++++++++++++++++------------------
1918 src/idle-text.c | 2 +-
1919 src/idle-text.h | 2 +-
1920 11 files changed, 70 insertions(+), 71 deletions(-)
1921
1922 commit aba4d48dc8944a57aadcb5309db8849614c51806
1923 Author: Olli Salli <olli.salli@collabora.co.uk>
1924 Date: Sat Jan 12 20:39:37 2008 +0000
1925
1926 Remove GTK_DOC_CHECK from configure.ac, idle doesn't do gtk-doc
1927
1928
1929 20080112203937-9db4d-a750e2d3b01f65f46119523d67fda7ddc6bda8e7.gz
1930
1931 configure.ac | 3 ---
1932 1 files changed, 0 insertions(+), 3 deletions(-)
1933
1934 commit 0134f85f12fe36f8418488e76d78443ceec5ed5e
1935 Author: Olli Salli <olli.salli@collabora.co.uk>
1936 Date: Sat Jan 12 20:38:28 2008 +0000
1937
1938 Add -Wno-portability to autoreconf invocation in autogen.sh, we depend on GNU make
1939
1940
1941 20080112203828-9db4d-19de5ecafe13f70ad99cbec4733b8242d73c6459.gz
1942
1943 autogen.sh | 2 +-
1944 1 files changed, 1 insertions(+), 1 deletions(-)
1945
1946 commit 8816b1c4afda68b47d799ce82309f393bd4bd5f4
1947 Author: Olli Salli <olli.salli@collabora.co.uk>
1948 Date: Sat Jan 12 12:49:31 2008 +0000
1949
1950 Add HACKING file
1951
1952
1953 20080112124931-9db4d-e97cf76aa09d551c96ef7e543867ddb26aa79340.gz
1954
1955 HACKING | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1956 1 files changed, 70 insertions(+), 0 deletions(-)
1957
1958 commit b98a43649d25ef349bb73b8934453f984dc41d9e
1959 Author: Olli Salli <olli.salli@collabora.co.uk>
1960 Date: Thu Dec 27 22:02:08 2007 +0000
1961
1962 Unify coding style, chapter Six: Binary operators and their operands should have whitespace in between
1963
1964
1965 20071227220208-9db4d-2e018ea7b69ed08e7f17c909b2fa47470c4081e0.gz
1966
1967 src/idle-connection.c | 26 +++++-----
1968 src/idle-handles.c | 4 +-
1969 src/idle-muc-channel.c | 99 +++++++++++++++++---------------------
1970 src/idle-parser.c | 4 +-
1971 src/idle-server-connection.c | 22 ++++-----
1972 src/idle-ssl-server-connection.c | 10 ++--
1973 src/idle-text.c | 16 +++---
1974 7 files changed, 85 insertions(+), 96 deletions(-)
1975
1976 commit 64af22ce42221f71c19d2e13ab2df67ee09e5ac4
1977 Author: Olli Salli <olli.salli@collabora.co.uk>
1978 Date: Thu Dec 27 21:36:51 2007 +0000
1979
1980 Fix too greedy removal of cruft resulting in GValue -> GValu
1981
1982
1983 20071227213651-9db4d-ac07090814d0518310802bb5e974451528c35a20.gz
1984
1985 src/idle-server-connection.c | 2 +-
1986 1 files changed, 1 insertions(+), 1 deletions(-)
1987
1988 commit 4de1f9c04780edcaecc4247d8fda573b2254d487
1989 Author: Olli Salli <olli.salli@collabora.co.uk>
1990 Date: Thu Dec 27 20:33:00 2007 +0000
1991
1992 Unify coding style, lesson 4: blank lines after each case body in switch statements
1993
1994
1995 20071227203300-9db4d-47a1011afb9c3cd20b58f249b756744115b0b181.gz
1996
1997 src/idle-connection.c | 21 +++++++++++++++++++++
1998 src/idle-ctcp.c | 4 ++++
1999 src/idle-handles.c | 2 ++
2000 3 files changed, 27 insertions(+), 0 deletions(-)
2001
2002 commit 60ab6f50523cca46a5d5a03211c26a49dc9173e6
2003 Author: Olli Salli <olli.salli@collabora.co.uk>
2004 Date: Thu Dec 27 20:28:31 2007 +0000
2005
2006 Unify coding style, part 3: Return type on the same line with the function name
2007
2008
2009 20071227202831-9db4d-6fc9278dde6e99383986b366dabbf982c8d4a340.gz
2010
2011 src/idle-im-channel.c | 6 ++----
2012 src/idle-muc-channel.c | 24 ++++++++----------------
2013 2 files changed, 10 insertions(+), 20 deletions(-)
2014
2015 commit af8e39e88f5541edb9f8aa5ab04bc4ef64caad95
2016 Author: Olli Salli <olli.salli@collabora.co.uk>
2017 Date: Thu Dec 27 20:24:21 2007 +0000
2018
2019 Unify coding style, book II: Thou shalt indent by tabs, and only tabs
2020
2021
2022 20071227202421-9db4d-7fb30eae03df9f5ae881719a257c90f3adcb3430.gz
2023
2024 src/idle-connection-manager.c | 2 +-
2025 src/idle-connection-manager.h | 16 ++--
2026 src/idle-connection.c | 12 ++--
2027 src/idle-connection.h | 12 ++--
2028 src/idle-dns-resolver.c | 16 ++--
2029 src/idle-im-channel.c | 114 +++++++++++++++---------------
2030 src/idle-im-channel.h | 20 +++---
2031 src/idle-im-factory.c | 70 ++++++++++---------
2032 src/idle-muc-channel.c | 154 ++++++++++++++++++++--------------------
2033 src/idle-muc-channel.h | 12 ++--
2034 src/idle-muc-factory.c | 70 ++++++++++---------
2035 src/idle-server-connection.c | 10 ++--
2036 src/idle-text.c | 2 +-
2037 13 files changed, 257 insertions(+), 253 deletions(-)
2038
2039 commit 101e2c5b2b5d11491d679e623066dd775b44bcf1
2040 Author: Olli Salli <olli.salli@collabora.co.uk>
2041 Date: Thu Dec 27 20:18:13 2007 +0000
2042
2043 Remove tabs from places other than beginning of lines
2044
2045
2046 20071227201813-9db4d-818203d16e295aa5bd678dd62cccffd76c836f17.gz
2047
2048 src/idle-connection-manager.c | 16 ++++++++--------
2049 src/idle-connection.c | 4 ++--
2050 src/idle-handles.c | 2 +-
2051 src/idle-muc-channel.c | 28 ++++++++++++++--------------
2052 src/idle-parser.c | 4 ++--
2053 src/idle-text.c | 2 +-
2054 6 files changed, 28 insertions(+), 28 deletions(-)
2055
2056 commit b1bc692f0ca998950d505c3f4a503eb6899b2258
2057 Author: Olli Salli <olli.salli@collabora.co.uk>
2058 Date: Thu Dec 27 20:14:23 2007 +0000
2059
2060 Remove trailing whitespace
2061
2062
2063 20071227201423-9db4d-9747ce7d1faa02cd80ab78daeec4d2abad6af37f.gz
2064
2065 src/idle-connection-manager.c | 4 +-
2066 src/idle-connection-manager.h | 4 +-
2067 src/idle-connection.c | 10 ++--
2068 src/idle-connection.h | 4 +-
2069 src/idle-ctcp.c | 4 +-
2070 src/idle-ctcp.h | 4 +-
2071 src/idle-debug.c | 4 +-
2072 src/idle-debug.h | 4 +-
2073 src/idle-dns-resolver.c | 8 +-
2074 src/idle-dns-resolver.h | 6 +-
2075 src/idle-handles.c | 4 +-
2076 src/idle-handles.h | 4 +-
2077 src/idle-im-channel.c | 10 ++--
2078 src/idle-im-channel.h | 6 +-
2079 src/idle-im-factory.c | 4 +-
2080 src/idle-im-factory.h | 4 +-
2081 src/idle-muc-channel.c | 124 ++++++++++++++++++------------------
2082 src/idle-muc-channel.h | 4 +-
2083 src/idle-muc-factory.c | 4 +-
2084 src/idle-muc-factory.h | 4 +-
2085 src/idle-parser.c | 4 +-
2086 src/idle-parser.h | 4 +-
2087 src/idle-server-connection-iface.c | 4 +-
2088 src/idle-server-connection-iface.h | 8 +-
2089 src/idle-server-connection.c | 84 ++++++++++++------------
2090 src/idle-server-connection.h | 4 +-
2091 src/idle-ssl-server-connection.c | 38 ++++++------
2092 src/idle-ssl-server-connection.h | 4 +-
2093 src/idle-text.c | 4 +-
2094 src/idle-text.h | 4 +-
2095 src/idle.c | 4 +-
2096 31 files changed, 191 insertions(+), 191 deletions(-)
2097
2098 commit c460df04d67bbfc39cca7e6bbaa4defaf56e76c2
2099 Author: Olli Salli <olli.salli@collabora.co.uk>
2100 Date: Thu Dec 27 20:10:31 2007 +0000
2101
2102 Remove old not-in-use sofia resolver cruft
2103
2104
2105 20071227201031-9db4d-a075bd3de5fed303ce61ab4431e71c0d9a22e09f.gz
2106
2107 configure.ac | 17 ---
2108 src/Makefile.am | 2 -
2109 src/idle-dns-resolver.c | 346 -----------------------------------------------
2110 3 files changed, 0 insertions(+), 365 deletions(-)
2111
2112 commit 0a81e75a123eee5fb4f49d5f9fe7d0590d3571fb
2113 Author: Olli Salli <olli.salli@collabora.co.uk>
2114 Date: Thu Dec 27 20:02:51 2007 +0000
2115
2116 Unify coding style part 1 (mostly bracing style)
2117
2118
2119 20071227200251-9db4d-5f34b917f7042957c8d441c09d09bfe35619d47f.gz
2120
2121 src/idle-connection.c | 6 +-
2122 src/idle-dns-resolver.c | 73 +---
2123 src/idle-dns-resolver.h | 5 +-
2124 src/idle-im-channel.c | 122 ++----
2125 src/idle-muc-channel.c | 751 +++++++++++-------------------------
2126 src/idle-muc-channel.h | 3 +-
2127 src/idle-server-connection-iface.c | 27 +-
2128 src/idle-server-connection-iface.h | 9 +-
2129 src/idle-server-connection.c | 278 +++++---------
2130 src/idle-server-connection.h | 6 +-
2131 src/idle-ssl-server-connection.c | 275 ++++---------
2132 src/idle-ssl-server-connection.h | 6 +-
2133 src/idle-text.c | 32 +--
2134 13 files changed, 492 insertions(+), 1101 deletions(-)
2135
2136 commit 929901419cdf62466ffeec49232a3daf4beb9187
2137 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2138 Date: Thu Nov 29 13:14:26 2007 +0000
2139
2140 Stop checking for dbus-binding-tool - no longer needed
2141
2142
2143 20071129131426-53eee-8859a0c37363c61c56ee56a6d2c4577a0c94cbb3.gz
2144
2145 configure.ac | 5 -----
2146 1 files changed, 0 insertions(+), 5 deletions(-)
2147
2148 commit 39c65ddf25cf9a8551edb26c84d57528e186f1b6
2149 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2150 Date: Thu Nov 29 13:09:08 2007 +0000
2151
2152 Simplify extensions/Makefile.am now that generated GInterfaces don't need external glue
2153
2154
2155 20071129130908-53eee-66c7d1b9d2d05dba1da8e83308d04569d6a7f34b.gz
2156
2157 extensions/Makefile.am | 20 ++------------------
2158 1 files changed, 2 insertions(+), 18 deletions(-)
2159
2160 commit e37b57ae2cc68266d08fc7b7dc5b04317896a17d
2161 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2162 Date: Thu Nov 29 13:08:41 2007 +0000
2163
2164 Update tools from telepathy-glib: generated GInterfaces no longer need external glue
2165
2166
2167 20071129130841-53eee-54a96f08127cfd5508f14a03b102ee563638853f.gz
2168
2169 tools/Makefile.am | 13 +++--
2170 tools/glib-ginterface-gen.py | 116 +++++++++++++++++++++++++++++++++++------
2171 tools/libglibcodegen.py | 30 +++++++++--
2172 3 files changed, 133 insertions(+), 26 deletions(-)
2173
2174 commit d8695095978882927ecf9d58301a1c6ce079f4a5
2175 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2176 Date: Thu Nov 29 13:06:10 2007 +0000
2177
2178 Add missing identity.xsl
2179
2180
2181 20071129130610-53eee-6b56bd3209cb7ab359cdfc90ace747eef9b05d1d.gz
2182
2183 tools/identity.xsl | 7 +++++++
2184 1 files changed, 7 insertions(+), 0 deletions(-)
2185
2186 commit 9279a0091cdce5b4ca05be6265aeb1120beb6e92
2187 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2188 Date: Thu Nov 29 13:02:20 2007 +0000
2189
2190 Add missing glib-signals-marshal-gen.py in tools/
2191
2192
2193 20071129130220-53eee-e98ee6ca716440ffdd4fb9168f87eba964c8de31.gz
2194
2195 tools/glib-signals-marshal-gen.py | 55 +++++++++++++++++++++++++++++++++++++
2196 1 files changed, 55 insertions(+), 0 deletions(-)
2197
2198 commit 06bc54d3d3a0e10e8ea482cba2a145a90be0a8c8
2199 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2200 Date: Thu Nov 29 13:01:58 2007 +0000
2201
2202 _boring: ignore test binaries
2203
2204
2205 20071129130158-53eee-b1ddfc54ec9823bbb3a5571162515aaf2492577a.gz
2206
2207 _boring | 1 +
2208 1 files changed, 1 insertions(+), 0 deletions(-)
2209
2210 commit a6b79731b78a40d2edf8f689f29e05289783f88f
2211 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2212 Date: Fri Nov 23 14:49:43 2007 +0000
2213
2214 Remove _gen/all.xml in clean
2215
2216
2217 20071123144943-53eee-ee4a67796d1eeb688ed0b5720301cf2458745acf.gz
2218
2219 extensions/Makefile.am | 5 ++++-
2220 1 files changed, 4 insertions(+), 1 deletions(-)
2221
2222 commit 0824ae1319cf55b41c0642ba1874faf85173e85d
2223 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2224 Date: Fri Nov 23 14:47:03 2007 +0000
2225
2226 Adjust extensions/Makefile.am: _gen/all.xml should mkdir _gen first
2227
2228
2229 20071123144703-53eee-96fb2aa13569f40abd981b1a80c49caac586a93f.gz
2230
2231 extensions/Makefile.am | 17 +++++++----------
2232 1 files changed, 7 insertions(+), 10 deletions(-)
2233
2234 commit fbc95d6db68f565680274efa9fd14eee6000d60c
2235 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2236 Date: Fri Nov 23 14:43:55 2007 +0000
2237
2238 Update build system to resemble that of telepathy-glib 0.7
2239
2240
2241 20071123144355-53eee-1a7f7c4dd601a2a9e18288222ecd3dda67b22f41.gz
2242
2243 extensions/Makefile.am | 55 ++--
2244 tools/Makefile.am | 5 +-
2245 tools/genginterface.py | 709 ------------------------------------------
2246 tools/glib-ginterface-gen.py | 572 ++++++++++++++++++++++++++++++++++
2247 tools/libglibcodegen.py | 279 +++++++++++++++++
2248 5 files changed, 883 insertions(+), 737 deletions(-)
2249
2250 commit c866efbadc592b9f3d1f883aab2c4bf7d47f1dad
2251 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2252 Date: Fri Nov 23 14:40:27 2007 +0000
2253
2254 Check for, and use, mkdir -p or equivalent
2255
2256
2257 20071123144027-53eee-0d7b50c0ec283047b8d391bc8c6c10ca446f1524.gz
2258
2259 configure.ac | 1 +
2260 extensions/Makefile.am | 2 +-
2261 2 files changed, 2 insertions(+), 1 deletions(-)
2262
2263 commit 4c2af08b47be195a57ac3bb5d9fefe531ea59812
2264 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2265 Date: Fri Nov 23 14:17:27 2007 +0000
2266
2267 Sync tools from telepathy-spec
2268
2269
2270 20071123141727-53eee-42fdb5e7b9385290998ffd1c34c8e029dc63dd35.gz
2271
2272 tools/doc-generator.xsl | 298 +++++++++++++++++++++++++++++++++++++++---
2273 tools/ls-interfaces.xsl | 2 +
2274 tools/spec-to-introspect.xsl | 25 ++++
2275 3 files changed, 307 insertions(+), 18 deletions(-)
2276
2277 commit ea5b4c00414025ad3de2d4d47f23e8240db70370
2278 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2279 Date: Fri Nov 23 14:17:21 2007 +0000
2280
2281 Reference external type Contact_Handle (which is in the Tp spec)
2282
2283
2284 20071123141721-53eee-4e1f305adb423a295a890cc5f7b5d3e2ca729b98.gz
2285
2286 extensions/all.xml | 5 +++++
2287 1 files changed, 5 insertions(+), 0 deletions(-)
2288
2289 commit 90e3e3d1cc3cf5583841227fef0c0ecf60571958
2290 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2291 Date: Fri Nov 23 14:12:41 2007 +0000
2292
2293 Sync tools from telepathy-glib
2294
2295
2296 20071123141241-53eee-1c5b2e4561b000c91190ac8237ff60243c9d266c.gz
2297
2298 tools/c-constants-generator.xsl | 4 +++-
2299 tools/c-interfaces-generator.xsl | 4 +++-
2300 tools/make-all-async.xsl | 21 +++++++++++++++++++++
2301 3 files changed, 27 insertions(+), 2 deletions(-)
2302
2303 commit b2fae91d6a2acf4e7d1ac30cfa61ab529fc15f3d
2304 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2305 Date: Fri Nov 23 14:04:02 2007 +0000
2306
2307 Remove update-spec-gen-am.sh
2308
2309
2310 20071123140402-53eee-f7d1a253becb25dc271274bfb389bdea68037e85.gz
2311
2312 tools/Makefile.am | 3 +-
2313 tools/update-spec-gen-am.sh | 75 -------------------------------------------
2314 2 files changed, 1 insertions(+), 77 deletions(-)
2315
2316 commit 031607bd26b6cd7b042ff26eaa0b97d3cf387164
2317 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2318 Date: Fri Nov 23 14:01:39 2007 +0000
2319
2320 Move tools directory to top level. Stop using spec-gen.am
2321
2322
2323 20071123140139-53eee-56849a8ae9ca447e90b62de8d14ec6e52f03546c.gz
2324
2325 Makefile.am | 2 +-
2326 autogen.sh | 8 -
2327 configure.ac | 2 +-
2328 extensions/Makefile.am | 33 +-
2329 extensions/tools/Makefile.am | 9 -
2330 extensions/tools/c-constants-generator.xsl | 255 ----------
2331 extensions/tools/c-interfaces-generator.xsl | 82 ---
2332 extensions/tools/doc-generator.xsl | 427 ----------------
2333 extensions/tools/genginterface.py | 709 ---------------------------
2334 extensions/tools/ls-interfaces.xsl | 33 --
2335 extensions/tools/make-all-async.xsl | 22 -
2336 extensions/tools/spec-to-introspect.xsl | 26 -
2337 extensions/tools/update-spec-gen-am.sh | 75 ---
2338 tools/Makefile.am | 9 +
2339 tools/c-constants-generator.xsl | 255 ++++++++++
2340 tools/c-interfaces-generator.xsl | 82 +++
2341 tools/doc-generator.xsl | 427 ++++++++++++++++
2342 tools/genginterface.py | 709 +++++++++++++++++++++++++++
2343 tools/ls-interfaces.xsl | 33 ++
2344 tools/make-all-async.xsl | 22 +
2345 tools/spec-to-introspect.xsl | 26 +
2346 tools/update-spec-gen-am.sh | 75 +++
2347 22 files changed, 1654 insertions(+), 1667 deletions(-)
2348
2349 commit c81f69f6db3db739f2c17ad9c0075e19de3c6f62
2350 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2351 Date: Mon Nov 5 11:09:42 2007 +0000
2352
2353 Add telepathy-idle.8 man page
2354
2355
2356 20071105110942-53eee-e69976f4df1c66a993b3c7a1c177540ccdf40e51.gz
2357
2358 _boring | 1 +
2359 src/Makefile.am | 8 +++++++-
2360 src/telepathy-idle.8.in | 28 ++++++++++++++++++++++++++++
2361 3 files changed, 36 insertions(+), 1 deletions(-)
2362
2363 commit e5ad1bc2c7c4010d96550f16ea3f7b7ec1687410
2364 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2365 Date: Fri Oct 26 11:04:38 2007 +0000
2366
2367 Move CM executable to $libexecdir, adjust .service accordingly
2368
2369
2370 20071026110438-53eee-867b50d1ec1e62cba39f29b9208beb5e470bde53.gz
2371
2372 data/Makefile.am | 4 ++--
2373 ...top.Telepathy.ConnectionManager.idle.service.in | 2 +-
2374 src/Makefile.am | 2 +-
2375 3 files changed, 4 insertions(+), 4 deletions(-)
2376
2377 commit c2d95a4b96eae6f5e692ace9f200589695cc6f6f
2378 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2379 Date: Fri Sep 28 13:27:46 2007 +0000
2380
2381 Set nano version 0.1.2.1
2382
2383
2384 20070928132746-53eee-2d8a25cddd9dda524317cc6cf395af50e9818796.gz
2385
2386 configure.ac | 2 +-
2387 1 files changed, 1 insertions(+), 1 deletions(-)
2388
2389 commit 1561825143322b711164d9c7a218f4f8850724ed
2390 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2391 Date: Fri Sep 28 13:08:08 2007 +0000
2392
2393 Bump version to 0.1.2
2394
2395
2396 20070928130808-53eee-012656f35461e90004ccf9afbc6875b1424964ba.gz
2397
2398 configure.ac | 2 +-
2399 1 files changed, 1 insertions(+), 1 deletions(-)
2400
2401 commit 6a844e340cd74d1fc52d095cf8cc765f5b42ab62
2402 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2403 Date: Fri Sep 28 13:06:53 2007 +0000
2404
2405 Clean up build system: don't distribute generated files, do distribute the .list they're generated from, don't put libraries in AM_LDFLAGS (use ALL_LIBS instead like Gabble does, and explicitly reference that variable)
2406
2407
2408 20070928130653-53eee-cb08698e9d62e37e85055819ce138151b1cac643.gz
2409
2410 src/Makefile.am | 31 ++++++++++++++++++++++++-------
2411 1 files changed, 24 insertions(+), 7 deletions(-)
2412
2413 commit 675647d764fd1b6a7d16cb3ef2a4c0ee0f75c2a4
2414 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2415 Date: Fri Sep 28 13:05:45 2007 +0000
2416
2417 Add OpenSSL cflags/libs when compiling tests
2418
2419
2420 20070928130545-53eee-73513c89cd07cccac748e5ed15cba97986da09ed.gz
2421
2422 tests/Makefile.am | 20 ++++++++++++++++----
2423 1 files changed, 16 insertions(+), 4 deletions(-)
2424
2425 commit 59006eb65a19811dcb910ef7a0eb84fd98564b04
2426 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2427 Date: Fri Sep 28 13:05:16 2007 +0000
2428
2429 Remove stray references to svc-unstable.h
2430
2431
2432 20070928130516-53eee-f5359f52373deaefb003c72eff30aeb7f00ebe09.gz
2433
2434 src/idle-muc-channel.c | 1 -
2435 src/idle-muc-factory.c | 1 -
2436 2 files changed, 0 insertions(+), 2 deletions(-)
2437
2438 commit 5cd971ea9c10f712abd841ff44184f465f956bc4
2439 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2440 Date: Fri Sep 28 12:47:13 2007 +0000
2441
2442 Add a Darcs _boring file
2443
2444
2445 20070928124713-53eee-bdeedd8e2add23b1a30f3f479cc637662c8ba217.gz
2446
2447 _boring | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2448 1 files changed, 74 insertions(+), 0 deletions(-)
2449
2450 commit e13c4d2146bf81f24e22048ed81da17a3abe1452
2451 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2452 Date: Tue Sep 25 19:29:11 2007 +0000
2453
2454 Hook up the locally built stubs for Renaming and use them instead of the ones in tp-glib-unstable
2455
2456
2457 20070925192911-53eee-f55246e258e8a2b03262774967fae48504170a6c.gz
2458
2459 Makefile.am | 3 +--
2460 autogen.sh | 27 +++++++++++++++++++++++++++
2461 configure.ac | 25 ++++++++++++++++++++-----
2462 src/Makefile.am | 5 ++++-
2463 src/idle-connection.c | 17 +++++++++--------
2464 5 files changed, 61 insertions(+), 16 deletions(-)
2465
2466 commit cd911ed48753313a8faf0914cfc280a3379947fe
2467 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
2468 Date: Tue Sep 25 19:28:41 2007 +0000
2469
2470 Add enough extensions-generating infrastructure to generate stubs for the Renaming interface
2471
2472
2473 20070925192841-53eee-a61557a2cf97d52ca9dfb909cf2659d2ff9a165c.gz
2474
2475 extensions/Connection_Interface_Renaming.xml | 93 ++++
2476 extensions/Makefile.am | 95 ++++
2477 extensions/all.xml | 27 +
2478 extensions/extensions.h | 10 +
2479 extensions/tools/Makefile.am | 9 +
2480 extensions/tools/c-constants-generator.xsl | 255 +++++++++
2481 extensions/tools/c-interfaces-generator.xsl | 82 +++
2482 extensions/tools/doc-generator.xsl | 427 ++++++++++++++++
2483 extensions/tools/genginterface.py | 709 ++++++++++++++++++++++++++
2484 extensions/tools/ls-interfaces.xsl | 33 ++
2485 extensions/tools/make-all-async.xsl | 22 +
2486 extensions/tools/spec-to-introspect.xsl | 26 +
2487 extensions/tools/update-spec-gen-am.sh | 75 +++
2488 13 files changed, 1863 insertions(+), 0 deletions(-)
2489
2490 commit b9d946038a2420aab9d1669542dcdd1fc8dd42f6
2491 Author: Olli Salli <olli.salli@collabora.co.uk>
2492 Date: Tue Jun 12 16:25:18 2007 +0000
2493
2494 Bump version to 0.1.1
2495
2496
2497 20070612162518-9db4d-80ed5bb04e21a2cbb5997ab3c2689cbe8a6841c6.gz
2498
2499 configure.ac | 2 +-
2500 1 files changed, 1 insertions(+), 1 deletions(-)
2501
2502 commit fe9d1cbdef86631a17dcb2ce74f439554d6152ec
2503 Author: Olli Salli <olli.salli@collabora.co.uk>
2504 Date: Mon Jun 4 11:14:39 2007 +0000
2505
2506 Change IdleMUCChannels's join-ready marshaller to the correct one, should fix fdo #11121
2507
2508
2509 20070604111439-9db4d-acb369a8d884fbf6be948b6442c960ed27d196d3.gz
2510
2511 src/idle-muc-channel.c | 2 +-
2512 1 files changed, 1 insertions(+), 1 deletions(-)
2513
2514 commit 1f323438e60f919153ab5b9dc8fcee0318fcb087
2515 Author: Olli Salli <olli.salli@collabora.co.uk>
2516 Date: Mon Jun 4 10:59:52 2007 +0000
2517
2518 Check that the channels hash table actually exists before doing anything with it. Should fix fdo #11122
2519
2520
2521 20070604105952-9db4d-d33c41ee81929eb2874a44acaa0f6e6147c28f7f.gz
2522
2523 src/idle-im-factory.c | 26 ++++++++++++-
2524 src/idle-muc-factory.c | 97 ++++++++++++++++++++++++++++++++++++++++++++++--
2525 2 files changed, 117 insertions(+), 6 deletions(-)
2526
2527 commit 6fdc69c1f6b84baeb1e69218f493826d8a6790f0
2528 Author: Olli Salli <olli.salli@collabora.co.uk>
2529 Date: Thu May 10 10:12:23 2007 +0000
2530
2531 Assume IRC channels with no prefix mean channels with prefix #
2532
2533
2534 20070510101223-9db4d-a50c3ddec233076d28fd9bce763f4d1e5ee59281.gz
2535
2536 src/idle-handles.c | 14 ++++++++++++--
2537 1 files changed, 12 insertions(+), 2 deletions(-)
2538
2539 commit 53cd5666bd2bdaca0badb4d5ce746e04765c2a46
2540 Author: Olli Salli <olli.salli@collabora.co.uk>
2541 Date: Tue May 1 13:02:53 2007 +0000
2542
2543 Remove stale _nick_handler prototype from idle-im-factory.c
2544
2545
2546 20070501130253-9db4d-f7818347b3059072f408c0f4c0be67fb745dee50.gz
2547
2548 src/idle-im-factory.c | 1 -
2549 1 files changed, 0 insertions(+), 1 deletions(-)
2550
2551 commit b19f346d2cafe0f2c5a6f45a817cb98bb7f6cef8
2552 Author: Olli Salli <olli.salli@collabora.co.uk>
2553 Date: Tue May 1 12:06:49 2007 +0000
2554
2555 Remove the bogus reasons from MembersChanged signals in IdleMUCChannel
2556
2557
2558 20070501120649-9db4d-abcff2d1c55a47486bc2a36bfcf3f381c5d40227.gz
2559
2560 src/idle-muc-channel.c | 13 +++++++------
2561 1 files changed, 7 insertions(+), 6 deletions(-)
2562
2563 commit a19b8cba196ea11fc199a73a80720d2e4e2883c6
2564 Author: Olli Salli <olli.salli@collabora.co.uk>
2565 Date: Mon Apr 30 14:00:13 2007 +0000
2566
2567 Make SetAliases on your self handle work like RequestRename
2568
2569
2570 20070430140013-9db4d-e3bc6fda90a529f06bdad8c732efbe40e2a2c5e7.gz
2571
2572 src/idle-connection.c | 42 ++++++++++++++++++++++++++----------------
2573 1 files changed, 26 insertions(+), 16 deletions(-)
2574
2575 commit d15f70efdc25ae1df48a9d9b6fa7e680a8e6bfc0
2576 Author: Olli Salli <olli.salli@collabora.co.uk>
2577 Date: Fri Apr 27 18:46:16 2007 +0000
2578
2579 Change IdleMUCChannel's namereply aggregation set to TpHandleSet, we need refs to the handles
2580
2581
2582 20070427184616-9db4d-a2bf49801dcdae76e94089d38e0147fa6fd09622.gz
2583
2584 src/idle-muc-channel.c | 22 ++++++++++++++++------
2585 1 files changed, 16 insertions(+), 6 deletions(-)
2586
2587 commit 53b29a1f2437a24397f6a46cdbc555b712ae769c
2588 Author: Olli Salli <olli.salli@collabora.co.uk>
2589 Date: Fri Apr 27 18:15:27 2007 +0000
2590
2591 Dispose of queued AliasesChanged crack in idle_connection_dispose
2592
2593
2594 20070427181527-9db4d-e6482abae289a74bbf636e9f68788367eaac9f36.gz
2595
2596 src/idle-connection.c | 6 ++++++
2597 src/idle-parser.c | 2 +-
2598 2 files changed, 7 insertions(+), 1 deletions(-)
2599
2600 commit fe6198da9761d622e3fcd88e8dc21df02f92df0e
2601 Author: Olli Salli <olli.salli@collabora.co.uk>
2602 Date: Fri Apr 27 17:45:45 2007 +0000
2603
2604 Now that the trigger points are in place, remove emit_queued_aliases_changed from queue_aliases_change in IdleConnection
2605
2606
2607 20070427174545-9db4d-25815e9123b68aafa264f2dcf59993783a46a740.gz
2608
2609 src/idle-connection.c | 3 ---
2610 1 files changed, 0 insertions(+), 3 deletions(-)
2611
2612 commit 64190a03257a0f30ef89d3c49a452357738e879f
2613 Author: Olli Salli <olli.salli@collabora.co.uk>
2614 Date: Fri Apr 27 17:42:24 2007 +0000
2615
2616 Add queued AliasChanged emission to IdleMUCFactory's TOPICSTAMP handler
2617
2618
2619 20070427174224-9db4d-932370e094dccdc72851e2b5902948b79d4af11f.gz
2620
2621 src/idle-muc-factory.c | 2 ++
2622 1 files changed, 2 insertions(+), 0 deletions(-)
2623
2624 commit 5d26721928c3f26a2e421258de95dca39464b2e7
2625 Author: Olli Salli <olli.salli@collabora.co.uk>
2626 Date: Fri Apr 27 17:17:26 2007 +0000
2627
2628 Trigger emitting queued AliasesChanged in IdleConnection's NICK handler
2629
2630
2631 20070427171726-9db4d-16d18ef5181418c3a73fa70d8103605640940dc1.gz
2632
2633 src/idle-connection.c | 2 ++
2634 1 files changed, 2 insertions(+), 0 deletions(-)
2635
2636 commit ac2a49b042f28195da02f82757e25264dab49c37
2637 Author: Olli Salli <olli.salli@collabora.co.uk>
2638 Date: Fri Apr 27 14:30:54 2007 +0000
2639
2640 Add queued AliasesChanged emission trigger in IdleMUCFactory's INVITE handler
2641
2642
2643 20070427143054-9db4d-f12d56800a37b50dd434db223ffdc0147a9cf426.gz
2644
2645 src/idle-muc-factory.c | 2 ++
2646 1 files changed, 2 insertions(+), 0 deletions(-)
2647
2648 commit e2944ef6771203868679ddf92ff72cb8b1bbf3d4
2649 Author: Olli Salli <olli.salli@collabora.co.uk>
2650 Date: Fri Apr 27 14:29:36 2007 +0000
2651
2652 Add queued AliasesChanged emission trigger in IdleMUCFactory's JOIN handler
2653
2654
2655 20070427142936-9db4d-d4491ba974c6f46586495c9b47738e2af1a62638.gz
2656
2657 src/idle-muc-factory.c | 2 ++
2658 1 files changed, 2 insertions(+), 0 deletions(-)
2659
2660 commit 7ec3f6dd05372a9329d90202f800b6ee38602015
2661 Author: Olli Salli <olli.salli@collabora.co.uk>
2662 Date: Fri Apr 27 14:27:19 2007 +0000
2663
2664 Add trigger point for emitting AliasesChanged in IdleIMFactory's incoming PRIVMSG/NOTICE handler
2665
2666
2667 20070427142719-9db4d-21a752e3c831cf09604d0b5fe3876a9490f2ac5b.gz
2668
2669 src/idle-im-factory.c | 3 +++
2670 1 files changed, 3 insertions(+), 0 deletions(-)
2671
2672 commit c72a17684768f37110a73cd988bb61e20964ccd1
2673 Author: Olli Salli <olli.salli@collabora.co.uk>
2674 Date: Fri Apr 27 14:20:53 2007 +0000
2675
2676 Aggregate MUCChannel NAMEREPLY MembersChanged signals with IRC RPL_ENDOFNAMES
2677
2678
2679 20070427142053-9db4d-0856f145deaf715730a6f1170649e7648df0470c.gz
2680
2681 src/idle-muc-channel.c | 18 +++++++++++++++---
2682 src/idle-muc-channel.h | 1 +
2683 src/idle-muc-factory.c | 13 +++++++++++++
2684 src/idle-parser.c | 1 +
2685 src/idle-parser.h | 1 +
2686 5 files changed, 31 insertions(+), 3 deletions(-)
2687
2688 commit a9d9af5868546f799fe38e16f15e192aee3a2fef
2689 Author: Olli Salli <olli.salli@collabora.co.uk>
2690 Date: Thu Apr 26 18:12:32 2007 +0000
2691
2692 Utilize Connection.Interface.Aliasing for representing IRC nicks in their correct case
2693
2694
2695 20070426181232-9db4d-14bd84fba2a43c58f2f0cb400051249e9babdec8.gz
2696
2697 src/idle-connection.c | 139 ++++++++++++++++++++++++++++++++++++++++++++++--
2698 src/idle-connection.h | 3 +
2699 src/idle-parser.c | 2 +
2700 3 files changed, 138 insertions(+), 6 deletions(-)
2701
2702 commit f37d5de9ebe37b755624ba932a1b22b53962dcab
2703 Author: Olli Salli <olli.salli@collabora.co.uk>
2704 Date: Thu Apr 26 17:39:49 2007 +0000
2705
2706 Parse prefixcmds as prefixcmds and non-prefix as such, no mixing up crack
2707
2708
2709 20070426173949-9db4d-1b8d022936474e377d77cc3f69504fa482620f92.gz
2710
2711 src/idle-parser.c | 4 ++--
2712 1 files changed, 2 insertions(+), 2 deletions(-)
2713
2714 commit d7ee9b1fdbed575cd159324ce2eefb6f5fbe644f
2715 Author: Olli Salli <olli.salli@collabora.co.uk>
2716 Date: Thu Apr 26 10:14:11 2007 +0000
2717
2718 Remove old declarations from idle-connection.h
2719
2720
2721 20070426101411-9db4d-5e00ca95b72c66b177cca3c3e1159a270d45e8fa.gz
2722
2723 src/idle-connection.h | 3 ---
2724 1 files changed, 0 insertions(+), 3 deletions(-)
2725
2726 commit b4fae14eba9f1ddb2888a5752bf158d23f5e5909
2727 Author: Olli Salli <olli.salli@collabora.co.uk>
2728 Date: Thu Apr 26 09:57:46 2007 +0000
2729
2730 Restyle idle-handles.[ch]
2731
2732
2733 20070426095746-9db4d-ab40051022f1632a4fcf45d693e9954c92ea4471.gz
2734
2735 src/idle-handles.c | 146 +++++++++++++++++-----------------------------------
2736 src/idle-handles.h | 3 -
2737 2 files changed, 47 insertions(+), 102 deletions(-)
2738
2739 commit 067ed02b89ecd2506b6de597df67acaeb874a829
2740 Author: Olli Salli <olli.salli@collabora.co.uk>
2741 Date: Thu Apr 26 08:59:41 2007 +0000
2742
2743 Forward-declare IdleConnection properly
2744
2745
2746 20070426085941-9db4d-b5182302525f2671ffc25edd8fcb6d186d8a03f7.gz
2747
2748 src/idle-connection.h | 5 +++--
2749 1 files changed, 3 insertions(+), 2 deletions(-)
2750
2751 commit 53f6fd7f67661307a61649615b2f5c971395324f
2752 Author: Olli Salli <olli.salli@collabora.co.uk>
2753 Date: Tue May 1 11:29:41 2007 +0000
2754
2755 Use blingbling killer for NOTICE messages as well
2756
2757
2758 20070501112941-9db4d-41a22442ce7b0a04f72770a0de71b1bb6cab3fff.gz
2759
2760 src/idle-im-factory.c | 3 ++-
2761 src/idle-muc-factory.c | 3 ++-
2762 2 files changed, 4 insertions(+), 2 deletions(-)
2763
2764 commit 84c041c1d23ab37c151100b20fe379e3f4b12400
2765 Author: Olli Salli <olli.salli@collabora.co.uk>
2766 Date: Tue May 1 11:29:23 2007 +0000
2767
2768 Use the blingbling killer in idle_text_decode
2769
2770
2771 20070501112923-9db4d-4c216211000b296687dfb5fab579528d635e8b83.gz
2772
2773 src/idle-text.c | 13 ++++++++++---
2774 1 files changed, 10 insertions(+), 3 deletions(-)
2775
2776 commit a2769e39a160412a08a7a6d1020e66b66ba0792f
2777 Author: Olli Salli <olli.salli@collabora.co.uk>
2778 Date: Tue May 1 11:20:28 2007 +0000
2779
2780 Add idle_ctcp_kill_blingbling for removal of mIRC & co formatting tokens
2781
2782
2783 20070501112028-9db4d-9bd10a6ead7027f0ceb78d2072862572978b0279.gz
2784
2785 src/idle-ctcp.c | 41 +++++++++++++++++++++++++++++++++++++++++
2786 src/idle-ctcp.h | 10 ++++++++++
2787 2 files changed, 51 insertions(+), 0 deletions(-)
2788
2789 commit c042b96cbd636f9e927dd3aba2898a5428983ea4
2790 Author: Olli Salli <olli.salli@collabora.co.uk>
2791 Date: Tue May 1 11:17:01 2007 +0000
2792
2793 Add minimal test for idle_ctcp_kill_blingbling
2794
2795
2796 20070501111701-9db4d-7c0d921bfc5795eef541443157bfdfada0faf1a3.gz
2797
2798 tests/Makefile.am | 7 ++++++-
2799 tests/test-ctcp-kill-blingbling.c | 31 +++++++++++++++++++++++++++++++
2800 2 files changed, 37 insertions(+), 1 deletions(-)
2801
2802 commit 4c7b85bda4b14db875193c53bf68e32fc35b1f21
2803 Author: Olli Salli <olli.salli@collabora.co.uk>
2804 Date: Tue May 1 09:55:47 2007 +0000
2805
2806 Proper escaping in _ctcp_send
2807
2808
2809 20070501095547-9db4d-994e8b7c13c8df19bb3ad0254b15ccc7d5ab485c.gz
2810
2811 src/idle-ctcp.c | 59 +++++++++++++++++++++++++++++++++++++++++++++---------
2812 src/idle-ctcp.h | 9 +++++--
2813 2 files changed, 55 insertions(+), 13 deletions(-)
2814
2815 commit 4163528a91b8eb9c2a4a692db8dc99e522344293
2816 Author: Olli Salli <olli.salli@collabora.co.uk>
2817 Date: Mon Apr 30 14:26:18 2007 +0000
2818
2819 Use check_programs instead of nst_programs for the tests
2820
2821
2822 20070430142618-9db4d-f30d8bb12f9af221fac50b4b37059816d51e8ff2.gz
2823
2824 tests/Makefile.am | 4 ++--
2825 1 files changed, 2 insertions(+), 2 deletions(-)
2826
2827 commit b1faee39e9cba4d4f4eda0b30967ca837904e562
2828 Author: Olli Salli <olli.salli@collabora.co.uk>
2829 Date: Mon Apr 30 14:24:13 2007 +0000
2830
2831 Make test-ctcp-tokenize return 1 on failure
2832
2833
2834 20070430142413-9db4d-2f076672218ebde01d4134b3eca22c8556e7652f.gz
2835
2836 tests/test-ctcp-tokenize.c | 11 +++++++++--
2837 1 files changed, 9 insertions(+), 2 deletions(-)
2838
2839 commit de74238fdc5cf00ca82fbb592fb106f64128c14a
2840 Author: Olli Salli <olli.salli@collabora.co.uk>
2841 Date: Mon Apr 30 12:59:48 2007 +0000
2842
2843 Add test for CTCP tokenizer
2844
2845
2846 20070430125948-9db4d-d7e14e47b75573ed1c012f375f693904ce7620ac.gz
2847
2848 Makefile.am | 2 +-
2849 configure.ac | 5 +++--
2850 tests/Makefile.am | 12 ++++++++++++
2851 tests/test-ctcp-tokenize.c | 21 +++++++++++++++++++++
2852 4 files changed, 37 insertions(+), 3 deletions(-)
2853
2854 commit 94de5297c307f1ec57f6b26832634fe8da8ee83a
2855 Author: Olli Salli <olli.salli@collabora.co.uk>
2856 Date: Mon Apr 30 12:59:36 2007 +0000
2857
2858 Add CTCP decoding/tokenizing function
2859
2860
2861 20070430125936-9db4d-f1f0b70e9ee12bffd2e620498c4ff8ba0cbe30cd.gz
2862
2863 src/idle-ctcp.c | 77 +++++++++++++++++++++++++++++++++++++++++++++++++
2864 src/idle-ctcp.h | 9 ++++++
2865 src/idle-im-factory.c | 1 -
2866 3 files changed, 86 insertions(+), 1 deletions(-)
2867
2868 commit ba52bef303a4cd685d598e841174e3d9ff0fac7a
2869 Author: Olli Salli <olli.salli@collabora.co.uk>
2870 Date: Sat Apr 28 12:10:55 2007 +0000
2871
2872 Add utility functions for sending CTCP messages
2873
2874
2875 20070428121055-9db4d-eec2e9281a0a913ef2778fb175fa32aed0b0469a.gz
2876
2877 src/Makefile.am | 2 ++
2878 src/idle-ctcp.c | 41 +++++++++++++++++++++++++++++++++++++++++
2879 src/idle-ctcp.h | 37 +++++++++++++++++++++++++++++++++++++
2880 3 files changed, 80 insertions(+), 0 deletions(-)
2881
2882 commit f2c602af02474ecb294639e97ba227738e2fdb49
2883 Author: Olli Salli <olli.salli@collabora.co.uk>
2884 Date: Sat Apr 28 11:59:18 2007 +0000
2885
2886 Use the CTCP helpers for sending VERSION replies
2887
2888
2889 20070428115918-9db4d-0157677ecc9979de09aaea078bdf33c384308b19.gz
2890
2891 src/idle-connection.c | 5 +++--
2892 1 files changed, 3 insertions(+), 2 deletions(-)
2893
2894 commit d6e63999b2ff796dfb70efcac432e096cb75d319
2895 Author: Olli Salli <olli.salli@collabora.co.uk>
2896 Date: Thu Apr 26 18:41:53 2007 +0000
2897
2898 In conformance to the latest spec semantics, don't do anything for IM channels on rename
2899
2900
2901 20070426184153-9db4d-aaa730bde444a84c7da2f44f9f3076233aade397.gz
2902
2903 src/idle-im-factory.c | 16 ----------------
2904 1 files changed, 0 insertions(+), 16 deletions(-)
2905
2906 commit 15f2e020abd89e15d0ca676f7cbdf6e31a923cf4
2907 Author: Olli Salli <olli.salli@collabora.co.uk>
2908 Date: Thu Apr 26 18:12:02 2007 +0000
2909
2910 Check for old_handle == new_handle in NICK handlers
2911
2912
2913 20070426181202-9db4d-0bd093bfaaa551e0113005e3a1ef4207ff91ea22.gz
2914
2915 src/idle-connection.c | 3 +++
2916 src/idle-im-factory.c | 3 +++
2917 src/idle-muc-factory.c | 3 +++
2918 3 files changed, 9 insertions(+), 0 deletions(-)
2919
2920 commit 7bfbbb381972dd3aa178bae670e5c3b94fa2a2cd
2921 Author: Olli Salli <olli.salli@collabora.co.uk>
2922 Date: Tue Apr 24 13:32:06 2007 +0000
2923
2924 Handle NICK in IdleIMFactory by creating a new channel for the new handle if we had one for the old handle
2925
2926
2927 20070424133206-9db4d-389cbb67aad03780e702ec5bfb69074127272902.gz
2928
2929 src/idle-im-factory.c | 14 ++++++++++++++
2930 1 files changed, 14 insertions(+), 0 deletions(-)
2931
2932 commit 8029da63fc6b37e61ff66c1276cf8cf78db24d15
2933 Author: Olli Salli <olli.salli@collabora.co.uk>
2934 Date: Tue Apr 24 13:19:50 2007 +0000
2935
2936 Change the group mixin's self handle in _idle_muc_channeL_rename
2937
2938
2939 20070424131950-9db4d-5b002988ad9c99383e553786aed40885bb19e39d.gz
2940
2941 src/idle-muc-channel.c | 6 +++++-
2942 1 files changed, 5 insertions(+), 1 deletions(-)
2943
2944 commit c4706bd87e05c93bfa9db9df4f13dcf1028bac3f
2945 Author: Olli Salli <olli.salli@collabora.co.uk>
2946 Date: Tue Apr 24 13:07:47 2007 +0000
2947
2948 Move emitting Renamed back to IdleConnection's _nick_handler, but attach it with IDLE_PARSER_HANDLER_PRIORITY_FIRST
2949
2950
2951 20070424130747-9db4d-8e4c6b0c813d1b7e047db359683671d87ee6db42.gz
2952
2953 src/idle-connection.c | 4 +++-
2954 src/idle-muc-factory.c | 3 ---
2955 2 files changed, 3 insertions(+), 4 deletions(-)
2956
2957 commit fd3cc3f1f6819d3e50aecaa9c06c8d45d56af3a6
2958 Author: Olli Salli <olli.salli@collabora.co.uk>
2959 Date: Tue Apr 24 12:54:29 2007 +0000
2960
2961 Rename IdleParser's _data_compare_func to be consistent with naming conventions
2962
2963
2964 20070424125429-9db4d-c1b251885e93e7ce7889fd9d619d20737a18a62f.gz
2965
2966 src/idle-parser.c | 4 ++--
2967 1 files changed, 2 insertions(+), 2 deletions(-)
2968
2969 commit 2001f649bb46386bf5e8971f9922e75c6d9845cf
2970 Author: Olli Salli <olli.salli@collabora.co.uk>
2971 Date: Tue Apr 24 12:53:03 2007 +0000
2972
2973 Add priority to IdleParser message handlers for guaranteed ordering
2974
2975
2976 20070424125303-9db4d-24017917f32c5874166d44b2e43ae45ebc4be919.gz
2977
2978 src/idle-parser.c | 16 ++++++++++++++--
2979 src/idle-parser.h | 8 ++++++++
2980 2 files changed, 22 insertions(+), 2 deletions(-)
2981
2982 commit 6f876cb0169a53263063ac0782224610055ad547
2983 Author: Olli Salli <olli.salli@collabora.co.uk>
2984 Date: Tue Apr 24 11:08:17 2007 +0000
2985
2986 Remove cracky _idle_im_channel_rename
2987
2988
2989 20070424110817-9db4d-ed0f87450c864b4a17861deb2620c6db5bcf3f2b.gz
2990
2991 src/idle-im-channel.c | 21 ---------------------
2992 src/idle-im-channel.h | 1 -
2993 2 files changed, 0 insertions(+), 22 deletions(-)
2994
2995 commit dd68c2873debf430451d0fdb669e68eb04d3bcc1
2996 Author: Olli Salli <olli.salli@collabora.co.uk>
2997 Date: Tue Apr 24 10:27:15 2007 +0000
2998
2999 Rename text.[ch] to idle-text.[ch] (how incredibly clever to do it in this branch)
3000
3001
3002 20070424102715-9db4d-eb7d543b6c6b0253dfe1708649b46643df7dcfe5.gz
3003
3004 src/Makefile.am | 4 +-
3005 src/idle-im-channel.c | 2 +-
3006 src/idle-im-factory.c | 2 +-
3007 src/idle-muc-channel.c | 2 +-
3008 src/idle-muc-factory.c | 2 +-
3009 src/idle-text.c | 128 ++++++++++++++++++++++++++++++++++++++++++++++++
3010 src/idle-text.h | 37 ++++++++++++++
3011 src/text.c | 128 ------------------------------------------------
3012 src/text.h | 37 --------------
3013 9 files changed, 171 insertions(+), 171 deletions(-)
3014
3015 commit 90f2a126471ef72313c22deee7d8e8d6648df7d5
3016 Author: Olli Salli <olli.salli@collabora.co.uk>
3017 Date: Mon Apr 23 14:02:04 2007 +0000
3018
3019 Second attempt: use TpHandleSet to keep track of handles reffed while parsing
3020
3021
3022 20070423140204-9db4d-c9f3bfb2bbacb1be7ca2da0d82bf0ccf3a2d3958.gz
3023
3024 src/idle-parser.c | 58 ++++++++++++++++++++++++----------------------------
3025 1 files changed, 27 insertions(+), 31 deletions(-)
3026
3027 commit 643a55a3598c5271292628f62fee1fc57d978a15
3028 Author: Olli Salli <olli.salli@collabora.co.uk>
3029 Date: Mon Apr 23 13:08:16 2007 +0000
3030
3031 IDLE_DEBUG in text.c
3032
3033
3034 20070423130816-9db4d-00bdb9dd8563c0ffe65a3e1db6de2c3d9a26860b.gz
3035
3036 src/text.c | 7 +++++--
3037 1 files changed, 5 insertions(+), 2 deletions(-)
3038
3039 commit 7e6c4442977a56c3cdabaf0405124deb19003ac5
3040 Author: Olli Salli <olli.salli@collabora.co.uk>
3041 Date: Mon Apr 23 13:07:33 2007 +0000
3042
3043 IDLE_DEBUG in IdleSSLServerConnection
3044
3045
3046 20070423130733-9db4d-4b7ac7d3e5c58a20103bb2fc74c92c93c0f8f6af.gz
3047
3048 src/idle-ssl-server-connection.c | 54 +++++++++++++++++---------------------
3049 1 files changed, 24 insertions(+), 30 deletions(-)
3050
3051 commit 1ddac0365b0d222985b60673a6ae25c70b5d1775
3052 Author: Olli Salli <olli.salli@collabora.co.uk>
3053 Date: Mon Apr 23 13:06:31 2007 +0000
3054
3055 IDLE_DEBUG in IdleServerConnection
3056
3057
3058 20070423130631-9db4d-b9583f5ef0a8785231fcea56fc87c152f416cfa7.gz
3059
3060 src/idle-server-connection.c | 71 ++++++++++++++++++++++--------------------
3061 1 files changed, 37 insertions(+), 34 deletions(-)
3062
3063 commit 453874caeda98e3d227da3d23b7726ec6b149766
3064 Author: Olli Salli <olli.salli@collabora.co.uk>
3065 Date: Mon Apr 23 13:04:49 2007 +0000
3066
3067 IDLE_DEBUG in IdleParser
3068
3069
3070 20070423130449-9db4d-4d5510c945ba861d80de983d75cc08cd64999501.gz
3071
3072 src/idle-parser.c | 29 ++++++++++++++++-------------
3073 1 files changed, 16 insertions(+), 13 deletions(-)
3074
3075 commit 198b055df84140840c9c1324562eda86e43d3fcf
3076 Author: Olli Salli <olli.salli@collabora.co.uk>
3077 Date: Mon Apr 23 12:58:58 2007 +0000
3078
3079 Remove debug statements from the unused sofia DNS code to not bugger my greps
3080
3081
3082 20070423125858-9db4d-eabc8e1fb8058b4ae69a416dd0b1aa6697fc7f61.gz
3083
3084 src/idle-dns-resolver.c | 4 ----
3085 1 files changed, 0 insertions(+), 4 deletions(-)
3086
3087 commit 1ad54d8b5818157a9f81029dc5097d808211b421
3088 Author: Olli Salli <olli.salli@collabora.co.uk>
3089 Date: Mon Apr 23 12:55:57 2007 +0000
3090
3091 IDLE_DEBUG in IdleMUCChannel
3092
3093
3094 20070423125557-9db4d-7966be562ab4c695d8df5290a5320d0399f2bce4.gz
3095
3096 src/idle-muc-channel.c | 89 +++++++++++++++++++++++++-----------------------
3097 1 files changed, 46 insertions(+), 43 deletions(-)
3098
3099 commit 5c7b4ebea7d27bff18b6df2b377f6cb7c1e36b33
3100 Author: Olli Salli <olli.salli@collabora.co.uk>
3101 Date: Mon Apr 23 12:41:00 2007 +0000
3102
3103 IDLE_DEBUG in IdleIMChannel
3104
3105
3106 20070423124100-9db4d-bcaa9c040b8155dfe0986a0991d09060360f4d42.gz
3107
3108 src/idle-im-channel.c | 9 ++++++---
3109 1 files changed, 6 insertions(+), 3 deletions(-)
3110
3111 commit b42d3bab6569f1696af90537cd11ac2096852b22
3112 Author: Olli Salli <olli.salli@collabora.co.uk>
3113 Date: Mon Apr 23 12:30:54 2007 +0000
3114
3115 IDLE_DEBUG in IdleDNSResolver
3116
3117
3118 20070423123054-9db4d-ba6e5d14327dca879908907b7c091133323db27c.gz
3119
3120 src/idle-dns-resolver.c | 7 +++++--
3121 1 files changed, 5 insertions(+), 2 deletions(-)
3122
3123 commit 53deafda8f9206568295b0d79af1f08caf2c0aba
3124 Author: Olli Salli <olli.salli@collabora.co.uk>
3125 Date: Mon Apr 23 12:20:53 2007 +0000
3126
3127 IDLE_DEBUG in IdleConnection
3128
3129
3130 20070423122053-9db4d-da95fc1915b8813c0a254b1a4978c3b80cd856eb.gz
3131
3132 src/idle-connection.c | 27 +++++++++++++++------------
3133 1 files changed, 15 insertions(+), 12 deletions(-)
3134
3135 commit 374d32c613fbdcbda3dbb0cb26873523bd54c77d
3136 Author: Olli Salli <olli.salli@collabora.co.uk>
3137 Date: Mon Apr 23 12:14:45 2007 +0000
3138
3139 Make it possible to switch debug flags mid-file
3140
3141
3142 20070423121445-9db4d-615a1838d56d336a618cb97e3093659c58b41157.gz
3143
3144 src/idle-debug.h | 5 +++--
3145 1 files changed, 3 insertions(+), 2 deletions(-)
3146
3147 commit 04a6dac114b8ccc9e2b4defc8d06e67fd261b245
3148 Author: Olli Salli <olli.salli@collabora.co.uk>
3149 Date: Mon Apr 23 12:14:31 2007 +0000
3150
3151 Change the debug flag names to be consistent with Gabble
3152
3153
3154 20070423121431-9db4d-e17f4fbf8eca6fa3c834d10bbe896090fef36330.gz
3155
3156 src/idle-debug.c | 6 +++---
3157 src/idle-debug.h | 6 +++---
3158 2 files changed, 6 insertions(+), 6 deletions(-)
3159
3160 commit 256aa73ef472603e21d668954edbb554a79132bd
3161 Author: Olli Salli <olli.salli@collabora.co.uk>
3162 Date: Mon Apr 23 11:53:44 2007 +0000
3163
3164 Add Gabble-style debug subsystem (no debug flags used in Idle yet though)
3165
3166
3167 20070423115344-9db4d-84ef684d4383d76051e95989bc631bf4d7504c66.gz
3168
3169 src/Makefile.am | 2 +
3170 src/idle-debug.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
3171 src/idle-debug.h | 46 ++++++++++++++++++++++++++++++++++++++
3172 src/idle.c | 7 +----
3173 4 files changed, 114 insertions(+), 5 deletions(-)
3174
3175 commit 90a614364274e9c8011f4fe3ce3b9b78c929285a
3176 Author: Olli Salli <olli.salli@collabora.co.uk>
3177 Date: Fri Apr 20 13:53:58 2007 +0000
3178
3179 Plug leaking all incoming messages after charset conversion
3180
3181
3182 20070420135358-9db4d-cef4f691e64da9bbf8e9c066e56ff0c3a996cf0e.gz
3183
3184 src/idle-connection.c | 2 ++
3185 1 files changed, 2 insertions(+), 0 deletions(-)
3186
3187 commit 51226c462ea0919d2c646d630bc94ba12815f5e9
3188 Author: Olli Salli <olli.salli@collabora.co.uk>
3189 Date: Fri Apr 20 13:23:18 2007 +0000
3190
3191 Change the reffed handle sets in IdleParser to GSLists instead of TpIntSet, the same handle may be reffed multiple times
3192
3193
3194 20070420132318-9db4d-e94127ac9695434884eb57df0fd18f44bbf8819e.gz
3195
3196 src/idle-parser.c | 38 ++++++++++++++++++--------------------
3197 1 files changed, 18 insertions(+), 20 deletions(-)
3198
3199 commit 0aff110177125fe07023e3c5b0aed29f106a7abb
3200 Author: Olli Salli <olli.salli@collabora.co.uk>
3201 Date: Fri Apr 20 11:58:24 2007 +0000
3202
3203 Don't duplicate the default connection parameters in IdleConnection
3204
3205
3206 20070420115824-9db4d-1f35a034b4e42ddd8471793896c0e69ebf2e1063.gz
3207
3208 src/idle-connection-manager.c | 23 +++++++++++------------
3209 src/idle-connection.c | 6 +++---
3210 2 files changed, 14 insertions(+), 15 deletions(-)
3211
3212 commit 1da1f9b7874cc09996793602bfb589a723b29c92
3213 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
3214 Date: Thu Apr 19 18:53:11 2007 +0000
3215
3216 Use svc-unstable.h for the Renaming interface - it's not in the shared library as of telepathy-glib 0.5.10
3217
3218
3219 20070419185311-53eee-c3cf8e36a79ddcff230db7df3c670a15ff10c316.gz
3220
3221 src/idle-connection.c | 1 +
3222 src/idle-muc-channel.c | 1 +
3223 src/idle-muc-factory.c | 1 +
3224 3 files changed, 3 insertions(+), 0 deletions(-)
3225
3226 commit e2fcf87d0a9f84def0d1628b036c0ed0a8762fd0
3227 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
3228 Date: Wed Apr 18 16:55:09 2007 +0000
3229
3230 Build against telepathy-glib-unstable static library if telepathy-glib is newer than 0.5.9, to get the Renaming interface
3231
3232
3233 20070418165509-53eee-c9ec0efa1fb27e051d78e8140bd3c162c3d69b02.gz
3234
3235 configure.ac | 7 +++++--
3236 1 files changed, 5 insertions(+), 2 deletions(-)
3237
3238 commit 9a4be9ecf6f0cfaec1e0b66c5d1945382f9c430c
3239 Author: Simon McVittie <simon.mcvittie@collabora.co.uk>
3240 Date: Wed Apr 18 16:53:51 2007 +0000
3241
3242 Adapt to telepathy-glib >= 0.5.8 group mixin API
3243
3244
3245 20070418165351-53eee-41ec6d06437033e3e5c497bb17bd1143d1570a8a.gz
3246
3247 configure.ac | 2 +-
3248 src/idle-muc-channel.c | 38 +++++++++++++++++++-------------------
3249 2 files changed, 20 insertions(+), 20 deletions(-)
3250
3251 commit 089e1d656332d58811ec369fc2147194c05e95d3
3252 Author: Olli Salli <olli.salli@collabora.co.uk>
3253 Date: Fri Apr 20 10:31:24 2007 +0000
3254
3255 Use run.h
3256
3257
3258 20070420103124-9db4d-ab6879b88a63eb9b95192b1cfb035fbdbfec1848.gz
3259
3260 src/Makefile.am | 3 +-
3261 src/idle.c | 82 +++++++++----------------------------------------------
3262 src/idle.h | 30 --------------------
3263 3 files changed, 14 insertions(+), 101 deletions(-)
3264
3265 commit c4c688801f262ac92dc2ae7cc44423d6ed5a925f
3266 Author: Olli Salli <olli.salli@collabora.co.uk>
3267 Date: Thu Apr 19 13:19:27 2007 +0000
3268
3269 New CTCP VERSION handler
3270
3271
3272 20070419131927-9db4d-1779d09a15ba7431e061334c4692538fd05d6c3e.gz
3273
3274 src/idle-connection.c | 46 ++++++++++++++++++++++++++--------------------
3275 1 files changed, 26 insertions(+), 20 deletions(-)
3276
3277 commit 61cbd46e61ec5c6af08172efb7951ceacc87c400
3278 Author: Olli Salli <olli.salli@collabora.co.uk>
3279 Date: Thu Apr 19 12:28:31 2007 +0000
3280
3281 Remove my stupid misinformed idle-version.h stuff
3282
3283
3284 20070419122831-9db4d-fc14d370eaafdc3874383feea6b0b77c9d2f8a0c.gz
3285
3286 src/Makefile.am | 7 +------
3287 src/idle-connection.c | 2 --
3288 src/idle-version.h | 26 --------------------------
3289 3 files changed, 1 insertions(+), 34 deletions(-)
3290
3291 commit 1d79b713ccea5b4c1d869f464d5400377cb5a40e
3292 Author: Olli Salli <olli.salli@collabora.co.uk>
3293 Date: Thu Apr 19 12:27:30 2007 +0000
3294
3295 Bump version to 0.1.0
3296
3297
3298 20070419122730-9db4d-addf658648bd0d7c59862d3160c4bdf0afb32590.gz
3299
3300 configure.ac | 2 +-
3301 1 files changed, 1 insertions(+), 1 deletions(-)
3302
3303 commit 395b0da92cce585b76bd67c18e20cdc86c0831bd
3304 Author: Olli Salli <olli.salli@collabora.co.uk>
3305 Date: Thu Apr 19 11:59:01 2007 +0000
3306
3307 Remove unused _idle_muc_channel_has_current_member
3308
3309
3310 20070419115901-9db4d-18693cbef979543d5955e92d70b4ca8e116e228a.gz
3311
3312 src/idle-muc-channel.c | 5 -----
3313 src/idle-muc-channel.h | 2 --
3314 2 files changed, 0 insertions(+), 7 deletions(-)
3315
3316 commit 9d8bc7af83f41b81cb7cc45495c6fc4e18a46ca4
3317 Author: Olli Salli <olli.salli@collabora.co.uk>
3318 Date: Thu Apr 19 11:57:07 2007 +0000
3319
3320 Remove superfluous GetHandleOwners implementation from IdleMUCChannel
3321
3322
3323 20070419115707-9db4d-807b5f250f9e7f7816aa176e9ecb60df3c6bae20.gz
3324
3325 src/idle-muc-channel.c | 28 ----------------------------
3326 1 files changed, 0 insertions(+), 28 deletions(-)
3327
3328 commit bfa337f06d57477c7d0c2919773a662ab485000c
3329 Author: Olli Salli <olli.salli@collabora.co.uk>
3330 Date: Mon Apr 16 20:47:23 2007 +0000
3331
3332 New MODE/MODEREPLY handler
3333
3334
3335 20070416204723-9db4d-99c1f1c5774bdd57bafa47e25bc19bc2bca691ab.gz
3336
3337 src/idle-connection.c | 85 -------------
3338 src/idle-muc-channel.c | 305 +++++++++++++++++++++++-------------------------
3339 src/idle-muc-channel.h | 2 +-
3340 src/idle-muc-factory.c | 15 +++
3341 src/idle-parser.c | 4 +-
3342 5 files changed, 163 insertions(+), 248 deletions(-)
3343
3344 commit 90bc13a7f4aaf9bdfa022fe23058c81d0a25d5bd
3345 Author: Olli Salli <olli.salli@collabora.co.uk>
3346 Date: Fri Apr 13 15:44:57 2007 +0000
3347
3348 Remove MUC rename handler junk from #if 0
3349
3350
3351 20070413154457-9db4d-a06b09e279feda5b2ae7957cc1a0f77d3f9bc604.gz
3352
3353 src/idle-connection.c | 13 -------------
3354 1 files changed, 0 insertions(+), 13 deletions(-)
3355
3356 commit e71e2018342999ed908e14316f3b5e1744a88ccd
3357 Author: Olli Salli <olli.salli@collabora.co.uk>
3358 Date: Fri Apr 13 15:42:50 2007 +0000
3359
3360 New NICK handler. The MUC factory now emits Renamed even for the connection's self handle so that however the handlers are connected, Renamed always precedes MembersChanged on MUC channels the handle is a member on.
3361
3362
3363 20070413154250-9db4d-663c03f5a2ab1978726ca9ac8da4208f42e97379.gz
3364
3365 src/idle-connection.c | 12 +++++-------
3366 src/idle-muc-channel.c | 44 ++++++++++++++++----------------------------
3367 src/idle-muc-channel.h | 19 +++++++++----------
3368 src/idle-muc-factory.c | 34 +++++++++++++++++++++++++++++++---
3369 4 files changed, 61 insertions(+), 48 deletions(-)
3370
3371 commit 9295694c16efd5f1a1c2d6cbf9c8616b3becb57e
3372 Author: Olli Salli <olli.salli@collabora.co.uk>
3373 Date: Thu Apr 12 21:16:40 2007 +0000
3374
3375 Remove the stupid and needlessly braindead copy of the connection's self handle from IdleMUCChannel
3376
3377
3378 20070412211640-9db4d-d43c845fe91801ea98156119006d17759b6e5ece.gz
3379
3380 src/idle-muc-channel.c | 42 +++++++++---------------------------------
3381 1 files changed, 9 insertions(+), 33 deletions(-)
3382
3383 commit 0b15c47b25f8f357552bba7e7e7778b39ef3e8f3
3384 Author: Olli Salli <olli.salli@collabora.co.uk>
3385 Date: Thu Apr 12 21:07:47 2007 +0000
3386
3387 New TOPIC prefixcmd handler
3388
3389
3390 20070412210747-9db4d-78b4a1744238fb4a78dd16659023ecca164837bc.gz
3391
3392 src/idle-connection.c | 53 ------------------------------------------------
3393 src/idle-muc-factory.c | 22 +++++++++++++++++++
3394 src/idle-parser.c | 2 +-
3395 3 files changed, 23 insertions(+), 54 deletions(-)
3396
3397 commit 0795a1fff5be0ae3d5313cb6061650cd6a919660
3398 Author: Olli Salli <olli.salli@collabora.co.uk>
3399 Date: Thu Apr 12 19:55:27 2007 +0000
3400
3401 New TOPIC_STAMP handler
3402
3403
3404 20070412195527-9db4d-5bb34ebb2b212fd5c36a4ab129b60687e294f510.gz
3405
3406 src/idle-connection.c | 46 ----------------------------------------------
3407 src/idle-muc-factory.c | 16 ++++++++++++++++
3408 2 files changed, 16 insertions(+), 46 deletions(-)
3409
3410 commit acac21dde1b20ada34bac03bbddb8c814aac88fa
3411 Author: Olli Salli <olli.salli@collabora.co.uk>
3412 Date: Thu Apr 12 19:38:14 2007 +0000
3413
3414 New KICK handler
3415
3416
3417 20070412193814-9db4d-ed4d04bc0bf72199a64a96f2db656b22b4f34034.gz
3418
3419 src/idle-muc-factory.c | 16 ++++++++++++++++
3420 1 files changed, 16 insertions(+), 0 deletions(-)
3421
3422 commit 8662f5518c12f32e5e50b247aa3b88b06efde827
3423 Author: Olli Salli <olli.salli@collabora.co.uk>
3424 Date: Thu Apr 12 19:13:33 2007 +0000
3425
3426 New handler for the TOPIC numeric
3427
3428
3429 20070412191333-9db4d-0952d81bd99091fd810c129fe54a6620a4d37ec9.gz
3430
3431 src/idle-connection.c | 42 ------------------------------------------
3432 src/idle-muc-factory.c | 14 ++++++++++++++
3433 2 files changed, 14 insertions(+), 42 deletions(-)
3434
3435 commit 4b1fb31d3372fc06ccc42aa04ad2a67b244f53d0
3436 Author: Olli Salli <olli.salli@collabora.co.uk>
3437 Date: Thu Apr 12 18:23:48 2007 +0000
3438
3439 New QUIT handler for MUC
3440
3441
3442 20070412182348-9db4d-3d9b6ab856e87ef0e01e2003b7dc4dc9abd75b86.gz
3443
3444 src/idle-connection.c | 26 --------------------------
3445 src/idle-muc-factory.c | 26 ++++++++++++++++++++++++++
3446 2 files changed, 26 insertions(+), 26 deletions(-)
3447
3448 commit e53736fc28a9c95dfb6d9992563d0ff8768bf3f4
3449 Author: Olli Salli <olli.salli@collabora.co.uk>
3450 Date: Thu Apr 12 17:38:04 2007 +0000
3451
3452 Remove some more replaced stuff from the if 0'd "todo list" section
3453
3454
3455 20070412173804-9db4d-340ef5b4faf9aa9600dac6ca7d161ab8e7b6d0e8.gz
3456
3457 src/idle-connection.c | 461 -------------------------------------------------
3458 1 files changed, 0 insertions(+), 461 deletions(-)
3459
3460 commit 8f36eb2be65739c952996a7712342ef770b830ba
3461 Author: Olli Salli <olli.salli@collabora.co.uk>
3462 Date: Thu Apr 12 17:25:34 2007 +0000
3463
3464 New INVITE handler
3465
3466
3467 20070412172534-9db4d-af2f1d4420c4a2f1fdc09475572bfa55b3ab4e03.gz
3468
3469 src/idle-connection.c | 64 ------------------------------------------------
3470 src/idle-muc-channel.c | 23 ++++++----------
3471 src/idle-muc-factory.c | 29 +++++++++++++++++++--
3472 3 files changed, 35 insertions(+), 81 deletions(-)
3473
3474 commit 33f949ea8db7d4aee8380bc18b3c203cd9936e18
3475 Author: Olli Salli <olli.salli@collabora.co.uk>
3476 Date: Thu Apr 12 16:38:47 2007 +0000
3477
3478 Fix IdleParser cutting continuation lines one char short
3479
3480
3481 20070412163847-9db4d-45d62a82768a50109a663adce1aaaff8b1b68d73.gz
3482
3483 src/idle-parser.c | 2 +-
3484 1 files changed, 1 insertions(+), 1 deletions(-)
3485
3486 commit 170b957a4d87ec1d279035189ec20dfcc378932c
3487 Author: Olli Salli <olli.salli@collabora.co.uk>
3488 Date: Thu Apr 12 14:54:13 2007 +0000
3489
3490 Add numeric channel join error handlers and remove the old ones from the if 0 part
3491
3492
3493 20070412145413-9db4d-c5c94dcc56d911edf073c6e49d4d427776bc38d6.gz
3494
3495 src/idle-connection.c | 96 ------------------------------------------------
3496 src/idle-muc-factory.c | 41 ++++++++++++++++++++-
3497 2 files changed, 40 insertions(+), 97 deletions(-)
3498
3499 commit a77e59a60d467aad0cd4fbf9f024938d9ab25420
3500 Author: Olli Salli <olli.salli@collabora.co.uk>
3501 Date: Thu Apr 12 12:21:54 2007 +0000
3502
3503 Remove the old namereply handler from the if 0'd part now that we have a new one
3504
3505
3506 20070412122154-9db4d-9f7cc181b8a1c096e19446d43403094453dcb5bf.gz
3507
3508 src/idle-connection.c | 105 -------------------------------------------------
3509 1 files changed, 0 insertions(+), 105 deletions(-)
3510
3511 commit 6d3b1d6ca98d5a724ea1c20227b78da8cd5059a4
3512 Author: Olli Salli <olli.salli@collabora.co.uk>
3513 Date: Thu Apr 12 11:58:02 2007 +0000
3514
3515 Add new NAMEREPLY handler
3516
3517
3518 20070412115802-9db4d-cdff138e5fab10ad84d3f0834d5894a8765484a0.gz
3519
3520 src/idle-muc-channel.c | 77 +++++++++++------------------------------------
3521 src/idle-muc-channel.h | 3 +-
3522 src/idle-muc-factory.c | 7 ++++
3523 3 files changed, 26 insertions(+), 61 deletions(-)
3524
3525 commit bd9d6470b4254402d12c2301de68c04f702cd382
3526 Author: Olli Salli <olli.salli@collabora.co.uk>
3527 Date: Wed Apr 11 21:27:36 2007 +0000
3528
3529 Set modechar '\0' for channel members with no modechar on RPL_NAMEREPLY so that we have at least some modechar for all members in the arg array
3530
3531
3532 20070411212736-9db4d-3a0fa3cfa2af68113b7ab644dcbe147c8c6aa95f.gz
3533
3534 src/idle-parser.c | 4 ++--
3535 1 files changed, 2 insertions(+), 2 deletions(-)
3536
3537 commit 25f3935e89706c6586214e69905aa78f17365600
3538 Author: Olli Salli <olli.salli@collabora.co.uk>
3539 Date: Wed Apr 11 21:26:51 2007 +0000
3540
3541 Fix tokenizing of lines with trailing whitespace sent by borken ircd
3542
3543
3544 20070411212651-9db4d-cd1599519e10eac9430833762b0c951d1acc70da.gz
3545
3546 src/idle-parser.c | 9 +++++----
3547 1 files changed, 5 insertions(+), 4 deletions(-)
3548
3549 commit 943374e8e052f616813564f5c6480e641ae47be5
3550 Author: Olli Salli <olli.salli@collabora.co.uk>
3551 Date: Wed Apr 11 19:09:21 2007 +0000
3552
3553 Add IdleMUCFactory and update IdleMUCChannel for rudimentary MUC support
3554
3555
3556 20070411190921-9db4d-963037ddc197acd17e4535539a916d57bd170b3b.gz
3557
3558 src/Makefile.am | 2 +
3559 src/idle-connection.c | 4 +
3560 src/idle-muc-channel.c | 117 ++++--------------
3561 src/idle-muc-channel.h | 8 +-
3562 src/idle-muc-factory.c | 318 ++++++++++++++++++++++++++++++++++++++++++++++++
3563 src/idle-muc-factory.h | 53 ++++++++
3564 6 files changed, 408 insertions(+), 94 deletions(-)
3565
3566 commit 02cf59fb7b7efebbec39422460ec13ae1e3f5c89
3567 Author: Olli Salli <olli.salli@collabora.co.uk>
3568 Date: Wed Apr 11 18:44:10 2007 +0000
3569
3570 Don't add zero-length strings to args while parsing
3571
3572
3573 20070411184410-9db4d-5f56753f3d11b592c32be38da3340d2e32089598.gz
3574
3575 src/idle-parser.c | 4 ++--
3576 1 files changed, 2 insertions(+), 2 deletions(-)
3577
3578 commit 6b2457a5cca14b47b69bdaa66664a287f63125a2
3579 Author: Olli Salli <olli.salli@collabora.co.uk>
3580 Date: Wed Apr 11 14:10:41 2007 +0000
3581
3582 Make IdleMUCChannel compile with the new Connection and handles related stuff and readd it to Makefile.am (a lot of it will change eventually though)
3583
3584
3585 20070411141041-9db4d-242f601ba90597b18bc906055468a015e2fcb1c0.gz
3586
3587 src/Makefile.am | 33 ++++++++++---------
3588 src/idle-muc-channel.c | 82 ++++++++++++++----------------------------------
3589 src/idle-parser.c | 2 -
3590 3 files changed, 42 insertions(+), 75 deletions(-)
3591
3592 commit 26a0e913e9292f9b2829633fa8d0d1caa10df6bd
3593 Author: Olli Salli <olli.salli@collabora.co.uk>
3594 Date: Wed Apr 11 13:01:53 2007 +0000
3595
3596 Because nothing is generated anymore, remove the generate/ junk
3597
3598
3599 20070411130153-9db4d-d8c0fb0e2c3f743a2aaeaa057a07a7a0db9d47ba.gz
3600
3601 generate/README | 21 -
3602 generate/do_src.sh | 27 -
3603 generate/do_xml.sh | 15 -
3604 generate/idle.def | 4 -
3605 .../idle-connection-manager-signals-marshal.list | 1 -
3606 generate/src/idle-connection-manager.c | 202 -------
3607 generate/src/idle-connection-manager.h | 65 ---
3608 generate/src/idle-connection-signals-marshal.list | 5 -
3609 generate/src/idle-connection.c | 521 -----------------
3610 generate/src/idle-connection.h | 81 ---
3611 generate/src/idle-im-channel-signals-marshal.list | 3 -
3612 generate/src/idle-im-channel.c | 258 ---------
3613 generate/src/idle-im-channel.h | 67 ---
3614 generate/src/idle-muc-channel-signals-marshal.list | 10 -
3615 generate/src/idle-muc-channel.c | 595 --------------------
3616 generate/src/idle-muc-channel.h | 82 ---
3617 generate/src/telepathy-errors.h | 61 --
3618 generate/xml-modified/idle-connection-manager.xml | 23 -
3619 generate/xml-pristine/idle-connection-manager.xml | 27 -
3620 generate/xml-pristine/idle-connection.xml | 113 ----
3621 generate/xml-pristine/idle-im-channel.xml | 60 --
3622 generate/xml-pristine/idle-muc-channel.xml | 138 -----
3623 src/Makefile.am | 4 -
3624 src/idle-muc-channel-signals-marshal.list | 11 -
3625 24 files changed, 0 insertions(+), 2394 deletions(-)
3626
3627 commit 669c1508df64716aa598d0e0fb5b16746d44a8c2
3628 Author: Olli Salli <olli.salli@collabora.co.uk>
3629 Date: Wed Apr 11 12:59:23 2007 +0000
3630
3631 Use TpBaseConnectionManager for IdleConnectionManager
3632
3633
3634 20070411125923-9db4d-6de001a0ef2e86b4ef8db09e16d41a52ccf8166c.gz
3635
3636 src/Makefile.am | 5 -
3637 src/idle-connection-manager-signals-marshal.list | 1 -
3638 src/idle-connection-manager.c | 560 +++-------------------
3639 src/idle-connection-manager.h | 13 +-
3640 src/idle-connection-signals-marshal.list | 4 -
3641 src/idle-connection.c | 14 +-
3642 src/idle.c | 2 +-
3643 7 files changed, 71 insertions(+), 528 deletions(-)
3644
3645 commit 89a77651232b9cb7bde363e5c76cf55f9404b097
3646 Author: Olli Salli <olli.salli@collabora.co.uk>
3647 Date: Wed Apr 11 13:21:24 2007 +0000
3648
3649 Change the license header copyright statements also in .h files, which I stupidly overlooked :D
3650
3651
3652 20070411132124-9db4d-f4cc2d395302fcd5435f2e2ee01ab6855b4bc5f9.gz
3653
3654 src/idle-connection-manager.h | 4 ++--
3655 src/idle-connection.h | 4 ++--
3656 src/idle-dns-resolver.h | 4 ++--
3657 src/idle-handles.h | 4 ++--
3658 src/idle-im-channel.h | 4 ++--
3659 src/idle-im-factory.h | 4 ++--
3660 src/idle-muc-channel.h | 4 ++--
3661 src/idle-parser.h | 4 ++--
3662 src/idle-server-connection-iface.h | 4 ++--
3663 src/idle-server-connection.h | 4 ++--
3664 src/idle-ssl-server-connection.h | 4 ++--
3665 src/idle-version.h | 4 ++--
3666 src/idle.h | 4 ++--
3667 src/text.h | 4 ++--
3668 14 files changed, 28 insertions(+), 28 deletions(-)
3669
3670 commit a316e6cfbd6b410f007ee0aa44f64b89f453ed54
3671 Author: Olli Salli <olli.salli@collabora.co.uk>
3672 Date: Tue Apr 10 21:49:15 2007 +0000
3673
3674 Fix the license header copyright statements in all .c files
3675
3676
3677 20070410214915-9db4d-1fcb3dcb0f4873f0fba7ec08f32b32a110463dd3.gz
3678
3679 src/idle-connection-manager.c | 4 ++--
3680 src/idle-connection.c | 4 ++--
3681 src/idle-dns-resolver.c | 4 ++--
3682 src/idle-handles.c | 4 ++--
3683 src/idle-im-channel.c | 4 ++--
3684 src/idle-im-factory.c | 4 ++--
3685 src/idle-muc-channel.c | 4 ++--
3686 src/idle-parser.c | 4 ++--
3687 src/idle-server-connection-iface.c | 4 ++--
3688 src/idle-server-connection.c | 4 ++--
3689 src/idle-ssl-server-connection.c | 4 ++--
3690 src/idle.c | 4 ++--
3691 src/text.c | 4 ++--
3692 13 files changed, 26 insertions(+), 26 deletions(-)
3693
3694 commit fab56665781a954ffb3d3a8dcbfc4840b838570e
3695 Author: Olli Salli <olli.salli@collabora.co.uk>
3696 Date: Wed Apr 11 10:23:42 2007 +0000
3697
3698 Include sys/types.h and netdb.h with __USE_POSIX to get the addrinfo funcs even with C99 on
3699
3700
3701 20070411102342-9db4d-8aba96244dfbb2da433b2f21994bc00c5e51ac3d.gz
3702
3703 src/idle-dns-resolver.h | 2 ++
3704 1 files changed, 2 insertions(+), 0 deletions(-)
3705
3706 commit 0c54079424d097145879c671b956456f2d230a70
3707 Author: Olli Salli <olli.salli@collabora.co.uk>
3708 Date: Tue Apr 10 22:26:29 2007 +0000
3709
3710 Make RequestRename work
3711
3712
3713 20070410222629-9db4d-145b10619336db956be4f22cd019d16c6a019382.gz
3714
3715 src/idle-connection.c | 62 +++++++++++++++++++++++-------------------------
3716 src/idle-parser.c | 2 +-
3717 2 files changed, 31 insertions(+), 33 deletions(-)
3718
3719 commit f7b027cd1efaa93c2a227d4e03ea736e7684ea55
3720 Author: Olli Salli <olli.salli@collabora.co.uk>
3721 Date: Tue Apr 10 21:26:47 2007 +0000
3722
3723 Use TpBaseConnection in IdleConnection (with no MUC factory, we temporarily lose MUC though)
3724
3725
3726 20070410212647-9db4d-797a9f937dd925a75ffc5e7c1f4c73e703e599ea.gz
3727
3728 generate/xml-modified/idle-connection.xml | 65 -
3729 src/Makefile.am | 5 -
3730 src/idle-connection-manager.c | 4 +-
3731 src/idle-connection.c | 2578 +++++++----------------------
3732 src/idle-connection.h | 38 +-
3733 src/idle-handles.c | 60 -
3734 src/idle-handles.h | 5 -
3735 src/idle-im-channel.c | 10 +-
3736 src/idle-im-factory.c | 4 +-
3737 src/idle-parser.c | 13 +-
3738 10 files changed, 612 insertions(+), 2170 deletions(-)
3739
3740 commit f4073990800ea7d7bc256c1661577380c81c85e0
3741 Author: Olli Salli <olli.salli@collabora.co.uk>
3742 Date: Sat Apr 7 07:21:13 2007 +0000
3743
3744 Use C99
3745
3746
3747 20070407072113-9db4d-db35bc7abf92de1d89def14cf1e2374750a9d8b4.gz
3748
3749 src/Makefile.am | 2 +-
3750 1 files changed, 1 insertions(+), 1 deletions(-)
3751
3752 commit 259e34fa5aa97d55f48f25e8b2d45216a8635828
3753 Author: Olli Salli <olli.salli@collabora.co.uk>
3754 Date: Thu Apr 5 18:05:31 2007 +0000
3755
3756 Remove the TOTAL CRACKALL implementation of Presence
3757
3758
3759 20070405180531-9db4d-a38a8379863a578a13288c31cf62518761ab47d1.gz
3760
3761 generate/xml-modified/idle-connection.xml | 26 -
3762 src/idle-connection.c | 992 +----------------------------
3763 src/idle-connection.h | 18 -
3764 src/idle-handles.c | 29 -
3765 src/idle-handles.h | 3 -
3766 5 files changed, 1 insertions(+), 1067 deletions(-)
3767
3768 commit ac9084f75e502815ce05bb39593df88cd27d79ea
3769 Author: Olli Salli <olli.salli@collabora.co.uk>
3770 Date: Thu Apr 5 17:36:16 2007 +0000
3771
3772 Add IdleIMFactory
3773
3774
3775 20070405173616-9db4d-de445179606d56237e9f4faaa51a8bc34e31aed4.gz
3776
3777 src/Makefile.am | 2 +
3778 src/idle-connection.c | 207 +++++++++++++++----------------------------
3779 src/idle-im-factory.c | 236 +++++++++++++++++++++++++++++++++++++++++++++++++
3780 src/idle-im-factory.h | 53 +++++++++++
3781 src/text.c | 16 ++++
3782 src/text.h | 1 +
3783 6 files changed, 380 insertions(+), 135 deletions(-)
3784
3785 commit 6c1a17603d684152a4c6c34a7d78db9f8bb58dad
3786 Author: Olli Salli <olli.salli@collabora.co.uk>
3787 Date: Wed Apr 4 13:43:10 2007 +0000
3788
3789 Make object_path public in IdleConnection
3790
3791
3792 20070404134310-9db4d-db739c7ea1a31c24f098a471bfd825cb1321458f.gz
3793
3794 src/idle-connection.c | 17 ++++++++---------
3795 src/idle-connection.h | 1 +
3796 2 files changed, 9 insertions(+), 9 deletions(-)
3797
3798 commit 63cef52eccac3bd057ca4d299a5cab1c846f37ea
3799 Author: Olli Salli <olli.salli@collabora.co.uk>
3800 Date: Sun Apr 1 10:45:02 2007 +0000
3801
3802 Make the parser public in IdleConnection
3803
3804
3805 20070401104502-9db4d-8faa6ede54f4aede19184f32e36f8d8b50ec56f9.gz
3806
3807 src/idle-connection.c | 28 ++++++++++------------------
3808 src/idle-connection.h | 2 ++
3809 2 files changed, 12 insertions(+), 18 deletions(-)
3810
3811 commit 744c51c0cc3ca75b594f0fcec1587e7fcddc4cf7
3812 Author: Olli Salli <olli.salli@collabora.co.uk>
3813 Date: Sun Apr 1 00:27:12 2007 +0000
3814
3815 Add handler for IDLE_PARSER_NUMERIC_WELCOME
3816
3817
3818 20070401002712-9db4d-e24230c986374bd2e0ec53e03f5fa405c73c80ba.gz
3819
3820 src/idle-connection.c | 43 +++++++++++++++++++------------------------
3821 1 files changed, 19 insertions(+), 24 deletions(-)
3822
3823 commit 8ccbb19080c193aa611fd77a4580e5ecb69422f3
3824 Author: Olli Salli <olli.salli@collabora.co.uk>
3825 Date: Sat Mar 31 23:35:17 2007 +0000
3826
3827 Add handlers for IDLE_PARSER_NUMERIC_{ERRONEOUSNICKNAME,NICKNAMEINUSE}
3828
3829
3830 20070331233517-9db4d-97781976ee60eff21e295c6adc8045918ed4ff70.gz
3831
3832 src/idle-connection.c | 44 ++++++++++++++++++++------------------------
3833 1 files changed, 20 insertions(+), 24 deletions(-)
3834
3835 commit 8fb24c79263755130a5890e0f00730ebe8820af4
3836 Author: Olli Salli <olli.salli@collabora.co.uk>
3837 Date: Sat Mar 31 19:18:59 2007 +0000
3838
3839 Add _ping_handler, the first IdleParserMessageHandler, and remove cmd_parse from IdleConnection
3840
3841
3842 20070331191859-9db4d-a5fa60f9e9d83c370965a2a5f0249c07f7bbcead.gz
3843
3844 src/idle-connection.c | 34 ++++++++++++++--------------------
3845 1 files changed, 14 insertions(+), 20 deletions(-)
3846
3847 commit f7055562d68397aef0077f0804dd960fbb46e1a8
3848 Author: Olli Salli <olli.salli@collabora.co.uk>
3849 Date: Sun Apr 1 00:34:30 2007 +0000
3850
3851 Fix the "fixed" pending_msg_compare to preserve FIFOness of the output queue
3852
3853
3854 20070401003430-9db4d-f0cc5b4c9524f6d0ea7f56c559729649c557d010.gz
3855
3856 src/idle-connection.c | 2 +-
3857 1 files changed, 1 insertions(+), 1 deletions(-)
3858
3859 commit 0e000ee16e384c76d09df4d6fb54c1fa799209c4
3860 Author: Olli Salli <olli.salli@collabora.co.uk>
3861 Date: Sat Mar 31 22:44:40 2007 +0000
3862
3863 For not being braindead out loud, put the message formats to the MessageSpec structs
3864
3865
3866 20070331224440-9db4d-9e1a22c8b5be63f920095884aa733a8e4dd7779d.gz
3867
3868 src/idle-parser.c | 120 ++++++++++++++++++-----------------------------------
3869 1 files changed, 41 insertions(+), 79 deletions(-)
3870
3871 commit 4675a1ba1c270b0fdd003f99e6a60dfb8e869a16
3872 Author: Olli Salli <olli.salli@collabora.co.uk>
3873 Date: Sat Mar 31 19:24:46 2007 +0000
3874
3875 Do g_slice_free instead of g_free for MessageHandlerClosures in idle_parser_finalize
3876
3877
3878 20070331192446-9db4d-e614f7a00acfbd898b51506298f84e552bcbdb7d.gz
3879
3880 src/idle-parser.c | 2 +-
3881 1 files changed, 1 insertions(+), 1 deletions(-)
3882
3883 commit b45f6bd4ad20bf0a082095d7c0bc1dde400cec0e
3884 Author: Olli Salli <olli.salli@collabora.co.uk>
3885 Date: Sat Mar 31 18:46:18 2007 +0000
3886
3887 Add actual parsing to IdleParser, it now seems to parse stuff correctly
3888
3889
3890 20070331184618-9db4d-266d19b78932da09df53b3b21dc8b9d8ee328e7e.gz
3891
3892 src/idle-connection.c | 2 +-
3893 src/idle-handles.c | 14 +-
3894 src/idle-muc-channel.c | 12 ++
3895 src/idle-muc-channel.h | 2 +
3896 src/idle-parser.c | 404 +++++++++++++++++++++++++++++++++++++++++++++---
3897 5 files changed, 407 insertions(+), 27 deletions(-)
3898
3899 commit 788cc118e89ae5bcdcba81c534f60df9438bd2e2
3900 Author: Olli Salli <olli.salli@collabora.co.uk>
3901 Date: Thu Mar 29 20:04:08 2007 +0000
3902
3903 Add IRC message format strings to IdleParser (whew, reading those RFCs sure is slow)
3904
3905
3906 20070329200408-9db4d-3644eec4bac4a1b327ea3bd70accedca3a2535c2.gz
3907
3908 src/idle-parser.c | 36 ++++++++++++++++++++++++++++++++++++
3909 src/idle-parser.h | 9 ++++++---
3910 2 files changed, 42 insertions(+), 3 deletions(-)
3911
3912 commit 7b0bcf849a037418ab3b7b6ba1b347cb52361017
3913 Author: Olli Salli <olli.salli@collabora.co.uk>
3914 Date: Thu Mar 29 17:51:14 2007 +0000
3915
3916 Add message handlers to IdleParser (no actual parsing yet though)
3917
3918
3919 20070329175114-9db4d-5cf0a4e5b14a3473069b23eb1207ddf7a83c2646.gz
3920
3921 src/idle-parser.c | 49 +++++++++++++++++++++++++++++++++++++++++++++----
3922 1 files changed, 45 insertions(+), 4 deletions(-)
3923
3924 commit 5a1f46211ddcd022172284ab7a073eae79285616
3925 Author: Olli Salli <olli.salli@collabora.co.uk>
3926 Date: Thu Mar 29 17:00:10 2007 +0000
3927
3928 Actually add idle_parser.[ch]
3929
3930
3931 20070329170010-9db4d-ab6a1e805efc9505ddf684fb0f1e9b5ea5497356.gz
3932
3933 src/idle-parser.c | 105 +++++++++++++++++++++++++++++++++++++++++++++++++
3934 src/idle-parser.h | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++
3935 2 files changed, 217 insertions(+), 0 deletions(-)
3936
3937 commit 04f1bb6884c051b7327af7caf89c59f775e2bfa3
3938 Author: Olli Salli <olli.salli@collabora.co.uk>
3939 Date: Thu Mar 29 14:20:26 2007 +0000
3940
3941 Start building up the new non-crappy parser, starting with msg_split
3942
3943
3944 20070329142026-9db4d-b0b277996d110ba07253e1eb971b7b900598128d.gz
3945
3946 src/Makefile.am | 24 ++++----
3947 src/idle-connection.c | 90 ++++++++++++++++++++++++++------
3948 src/idle-server-connection-util.c | 104 -------------------------------------
3949 src/idle-server-connection-util.h | 62 ----------------------
3950 src/idle-server-connection.c | 2 +-
3951 src/idle-ssl-server-connection.c | 3 +-
3952 6 files changed, 88 insertions(+), 197 deletions(-)
3953
3954 commit cd904ef5deb69e1778c8e8fbea0d52ecb4875249
3955 Author: Olli Salli <olli.salli@collabora.co.uk>
3956 Date: Thu Mar 29 11:04:57 2007 +0000
3957
3958 Only set original ID qdata if the id was valid
3959
3960
3961 20070329110457-9db4d-3b2383fb5f7978a015c2ef8f03ba212466d7dda1.gz
3962
3963 src/idle-handles.c | 8 +++++---
3964 1 files changed, 5 insertions(+), 3 deletions(-)
3965
3966 commit d00bb0905874463251a2e81779f541de6e8fa81a
3967 Author: Olli Salli <olli.salli@collabora.co.uk>
3968 Date: Thu Mar 29 10:08:02 2007 +0000
3969
3970 Only set error in the normalization callbacks if error was provided
3971
3972
3973 20070329100802-9db4d-14c99284f6798e076ac351561bc6eeccac09d951.gz
3974
3975 src/idle-handles.c | 6 ++++--
3976 1 files changed, 4 insertions(+), 2 deletions(-)
3977
3978 commit cbbdc79e2a71afee0e025597e21532bc75fd870d
3979 Author: Olli Salli <olli.salli@collabora.co.uk>
3980 Date: Wed Mar 28 15:26:24 2007 +0000
3981
3982 add TELEPATHY_LIBS to telepathy_idle_LDADD to link properly against the static cmlib
3983
3984
3985 20070328152624-9db4d-1795fdfe9fcec21b4062e42acfc3c6904fec9615.gz
3986
3987 src/Makefile.am | 2 +-
3988 1 files changed, 1 insertions(+), 1 deletions(-)
3989
3990 commit 2e0657f3f84ade2e24e6327e27befa983d5c8875
3991 Author: Olli Salli <olli.salli@collabora.co.uk>
3992 Date: Wed Mar 28 15:21:36 2007 +0000
3993
3994 Port to new handle repo API
3995
3996
3997 20070328152136-9db4d-4b0c241a38a6cab149f9af00bd5b243f39644048.gz
3998
3999 src/idle-connection.c | 10 +---
4000 src/idle-handles.c | 99 ++++++++++++++++++++++++++---------------------
4001 src/idle-handles.h | 2 +
4002 src/idle-im-channel.c | 10 ++---
4003 src/idle-muc-channel.c | 18 ++++-----
4004 5 files changed, 72 insertions(+), 67 deletions(-)
4005
4006 commit 05b15bd32a8d3253e99f92307f18b28ded44ac7d
4007 Author: Olli Salli <olli.salli@collabora.co.uk>
4008 Date: Thu Mar 22 17:25:41 2007 +0000
4009
4010 Don't set idle_contact_presence_free for null ContactPresences - may prevent a segfault
4011
4012
4013 20070322172541-9db4d-8257aef413ac2393f9b8c034fd8d46af70efbbef.gz
4014
4015 src/idle-handles.c | 2 +-
4016 1 files changed, 1 insertions(+), 1 deletions(-)
4017
4018 commit 8e7e524e5eed6a7db99280997f6d38ba1c85d869
4019 Author: Olli Salli <olli.salli@collabora.co.uk>
4020 Date: Thu Mar 22 17:34:54 2007 +0000
4021
4022 Make IdleConnection use TpSvcConnectionInterfaceRenaming
4023
4024
4025 20070322173454-9db4d-878711115effad0525ebbb89abf4d793de58716f.gz
4026
4027 generate/xml-modified/idle-connection.xml | 9 -----
4028 src/idle-connection.c | 51 +++++++++++++++++-----------
4029 src/idle-connection.h | 1 -
4030 3 files changed, 31 insertions(+), 30 deletions(-)
4031
4032 commit 6c75a40a6d5c2083919d37f772b65d59890ddfa7
4033 Author: Olli Salli <olli.salli@collabora.co.uk>
4034 Date: Thu Mar 22 16:39:47 2007 +0000
4035
4036 Drop the nowadays extraneous param to tp_text_mixin_init
4037
4038
4039 20070322163947-9db4d-741eefb2051916270e5abf2c2cd5eceff89dcfb6.gz
4040
4041 src/idle-im-channel.c | 2 +-
4042 src/idle-muc-channel.c | 2 +-
4043 2 files changed, 2 insertions(+), 2 deletions(-)
4044
4045 commit 1f4c1e3954d64a82f2d390d37dcd720403b803ec
4046 Author: Olli Salli <olli.salli@collabora.co.uk>
4047 Date: Thu Mar 22 15:53:31 2007 +0000
4048
4049 Merge RPL_WELCOME renaming
4050
4051
4052 20070322155331-9db4d-fc88a7341656b4e8847a54c3690ee566b36647d7.gz
4053
4054 src/idle-connection.c | 6 +++---
4055 1 files changed, 3 insertions(+), 3 deletions(-)
4056
4057 commit 62e07ecd6fa91bf04539bac89201353cd4e13a8e
4058 Author: Olli Salli <olli.salli@collabora.co.uk>
4059 Date: Mon Mar 19 20:19:06 2007 +0000
4060
4061 Make IdleMUCChannel use TpGroupMixin and TpSvcChannelInterfaceGroup
4062
4063
4064 20070319201906-9db4d-36515ca229f6a3dc7360dd03b8463d35a87169a2.gz
4065
4066 generate/xml-modified/idle-muc-channel.xml | 50 ---
4067 src/Makefile.am | 1 -
4068 src/idle-muc-channel.c | 613 ++++------------------------
4069 src/idle-muc-channel.h | 21 +-
4070 4 files changed, 94 insertions(+), 591 deletions(-)
4071
4072 commit 83954ad2109f4d822355e93d09d03d9b8bd17f3d
4073 Author: Olli Salli <olli.salli@collabora.co.uk>
4074 Date: Mon Mar 19 12:32:36 2007 +0000
4075
4076 Make IdleMUCChannel use TpSvcPropertiesInterface
4077
4078
4079 20070319123236-9db4d-e167e5886a2a17bd126bf186931a50c4188b2bdd.gz
4080
4081 generate/xml-modified/idle-muc-channel.xml | 18 -----
4082 src/idle-muc-channel.c | 112 +++++++++++++++++-----------
4083 src/idle-muc-channel.h | 3 -
4084 3 files changed, 68 insertions(+), 65 deletions(-)
4085
4086 commit 78d77aa05bbaa72f23ca8fe317a7f20dc557b8f8
4087 Author: Olli Salli <olli.salli@collabora.co.uk>
4088 Date: Mon Mar 19 12:32:08 2007 +0000
4089
4090 Do tp_svc_channel_return_from_close in idle_muc_channel_close
4091
4092
4093 20070319123208-9db4d-fa0cb315d3a4a9685058b7146e6386ad77de43c1.gz
4094
4095 src/idle-muc-channel.c | 2 ++
4096 1 files changed, 2 insertions(+), 0 deletions(-)
4097
4098 commit 67ba24e4ae01f709a2dfd7691528880cb623a046
4099 Author: Olli Salli <olli.salli@collabora.co.uk>
4100 Date: Mon Mar 19 06:50:31 2007 +0000
4101
4102 Make IdleMUCChannel use TpSvcChannelInterfacePassword
4103
4104
4105 20070319065031-9db4d-36fb1d9db921279c0df0867e76d71d878ad1e876.gz
4106
4107 generate/xml-modified/idle-muc-channel.xml | 18 +----------
4108 src/idle-muc-channel.c | 42 ++++++++++++++-------------
4109 src/idle-muc-channel.h | 2 -
4110 3 files changed, 24 insertions(+), 38 deletions(-)
4111
4112 commit 561ae9505ff530f76129bee27d7a49167b9cfad4
4113 Author: Olli Salli <olli.salli@collabora.co.uk>
4114 Date: Mon Mar 19 06:37:38 2007 +0000
4115
4116 Include svc-channel.h directly from Idle{IM,MUC}Channel
4117
4118
4119 20070319063738-9db4d-5798f1c9722cf31f396f6f88cd12dbda3c281669.gz
4120
4121 src/idle-im-channel.c | 1 +
4122 src/idle-muc-channel.c | 1 +
4123 2 files changed, 2 insertions(+), 0 deletions(-)
4124
4125 commit aa562367eb949e4ff83d4e2b7206a4cb5db3fe12
4126 Author: Olli Salli <olli.salli@collabora.co.uk>
4127 Date: Mon Mar 19 06:28:31 2007 +0000
4128
4129 Make IdleMUCChannel use the channel interface
4130
4131
4132 20070319062831-9db4d-c25b549cd267b1b798ec0f244baa02526644e46a.gz
4133
4134 generate/xml-modified/idle-muc-channel.xml | 18 +----
4135 src/idle-im-channel.c | 3 +-
4136 src/idle-muc-channel.c | 120 ++++++++++------------------
4137 src/idle-muc-channel.h | 4 -
4138 4 files changed, 43 insertions(+), 102 deletions(-)
4139
4140 commit af878a89f3041c979ed4c6e5dd7861670a05463a
4141 Author: Olli Salli <olli.salli@collabora.co.uk>
4142 Date: Mon Mar 19 05:56:17 2007 +0000
4143
4144 Remove now non-existant text channel type stuff from idle-muc-channel.h
4145
4146
4147 20070319055617-9db4d-e17403103372ed4b028ff98ccf31c929e1cd0fe2.gz
4148
4149 src/idle-muc-channel.h | 3 ---
4150 1 files changed, 0 insertions(+), 3 deletions(-)
4151
4152 commit 0f458301eba46a9a6726afd220df83955ef7f425
4153 Author: Olli Salli <olli.salli@collabora.co.uk>
4154 Date: Mon Mar 19 05:46:47 2007 +0000
4155
4156 Remove unused variable from idle_text_send
4157
4158
4159 20070319054647-9db4d-05b54b2025157334fa86e8c76509e578ebf7a551.gz
4160
4161 src/text.c | 1 -
4162 1 files changed, 0 insertions(+), 1 deletions(-)
4163
4164 commit c829d85567ee914fa41fd7542e9a36e68d990293
4165 Author: Olli Salli <olli.salli@collabora.co.uk>
4166 Date: Mon Mar 19 05:46:23 2007 +0000
4167
4168 Remove redundant DBUS_API_SUBJECT_TO_CHANGE
4169
4170
4171 20070319054623-9db4d-d6775e0444eddae0f1f71da58230459c8f6cd20c.gz
4172
4173 src/idle-connection.h | 1 -
4174 1 files changed, 0 insertions(+), 1 deletions(-)
4175
4176 commit 010ac1568b5c43f91140d5e52687159a53b62574
4177 Author: Olli Salli <olli.salli@collabora.co.uk>
4178 Date: Thu Mar 15 18:27:41 2007 +0000
4179
4180 Make IdleIMChannel use TpSvcChannel and ChannelIface
4181
4182
4183 20070315182741-9db4d-ee62ab47ffc1d769a6caa724f8cc08327e18a19e.gz
4184
4185 generate/xml-modified/idle-im-channel.xml | 19 -----
4186 src/Makefile.am | 3 -
4187 src/idle-connection.c | 32 +-------
4188 src/idle-im-channel-signals-marshal.list | 4 -
4189 src/idle-im-channel.c | 124 ++++++++++-------------------
4190 src/idle-im-channel.h | 5 -
4191 6 files changed, 43 insertions(+), 144 deletions(-)
4192
4193 commit cfbf3b5afdd5961929dc6ba39e3524e69b52bdb9
4194 Author: Olli Salli <olli.salli@collabora.co.uk>
4195 Date: Thu Mar 15 17:12:37 2007 +0000
4196
4197 Make IdleMUCChannel use TpTextMixin
4198
4199
4200 20070315171237-9db4d-4082c00805601eb5934d1c278853b3c44259b358.gz
4201
4202 generate/xml-modified/idle-muc-channel.xml | 37 ---
4203 src/idle-muc-channel.c | 392 +++-------------------------
4204 src/idle-muc-channel.h | 4 +-
4205 3 files changed, 44 insertions(+), 389 deletions(-)
4206
4207 commit 54650650764e359abda686aec1a0704f8ea9aa8c
4208 Author: Olli Salli <olli.salli@collabora.co.uk>
4209 Date: Thu Mar 15 17:12:07 2007 +0000
4210
4211 do tp_text_mixin_class_init in idle_im_channel_class_init, though due to redundancy in telepathy-glib it'd work withouth
4212
4213
4214 20070315171207-9db4d-dcf649efa4245e325e6804044d7083dec99e814a.gz
4215
4216 src/idle-im-channel.c | 2 ++
4217 1 files changed, 2 insertions(+), 0 deletions(-)
4218
4219 commit c0825128b651d0471616d94a7acbd4146ee7af37
4220 Author: Olli Salli <olli.salli@collabora.co.uk>
4221 Date: Mon Mar 12 08:38:12 2007 +0000
4222
4223 Finalize the TpTextMixin in idle_im_channel_finalize()
4224
4225
4226 20070312083812-9db4d-cf9a5edec1aefa41c89b890b9a6cc9fe49453b73.gz
4227
4228 src/idle-im-channel.c | 2 ++
4229 1 files changed, 2 insertions(+), 0 deletions(-)
4230
4231 commit b8d4aa47ae122c0bbc13c2c0e7a7f698785856f7
4232 Author: Olli Salli <olli.salli@collabora.co.uk>
4233 Date: Mon Mar 12 08:26:24 2007 +0000
4234
4235 Move the message send implementation of IdleIMChannel to text.[ch], soon to be used by both IdleIMChannel and IdleMUCChannel
4236
4237
4238 20070312082624-9db4d-e0626e71da6782778ae2abe1c7c734e198915a06.gz
4239
4240 src/Makefile.am | 2 +
4241 src/idle-connection.c | 3 -
4242 src/idle-connection.h | 2 +
4243 src/idle-im-channel.c | 81 ++-------------------------
4244 src/idle-muc-channel.c | 2 -
4245 src/idle-server-connection-util.h | 4 +-
4246 src/text.c | 110 +++++++++++++++++++++++++++++++++++++
4247 src/text.h | 36 ++++++++++++
4248 8 files changed, 157 insertions(+), 83 deletions(-)
4249
4250 commit 2c1dc5d66ce024212f73d1e0e68f482c33cfff6a
4251 Author: Olli Salli <olli.salli@collabora.co.uk>
4252 Date: Mon Mar 12 07:58:32 2007 +0000
4253
4254 Make IdleIMChannel use TpTextMixin
4255
4256
4257 20070312075832-9db4d-161d0e11ae959fda398bcf0febfb04954df213a5.gz
4258
4259 generate/xml-modified/idle-im-channel.xml | 32 ---
4260 src/idle-connection.c | 11 -
4261 src/idle-im-channel.c | 320 ++++-------------------------
4262 src/idle-im-channel.h | 8 +-
4263 4 files changed, 40 insertions(+), 331 deletions(-)
4264
4265 commit e865e660350ae6162a65242d9f3caab685f22c3f
4266 Author: Olli Salli <olli.salli@collabora.co.uk>
4267 Date: Sun Feb 4 23:30:29 2007 +0000
4268
4269 Plug dbus_g_method_get_sender memory leaks
4270
4271
4272 20070204233029-9db4d-3f5d46999e8f66254fb90c0b9d3d10291c88faee.gz
4273
4274 src/idle-connection.c | 4 ++++
4275 1 files changed, 4 insertions(+), 0 deletions(-)
4276
4277 commit 846e9bb531ba210c9aca15f57dae89edcd6e1d04
4278 Author: Olli Salli <olli.salli@collabora.co.uk>
4279 Date: Sun Feb 4 23:22:14 2007 +0000
4280
4281 Migrate to telepathy-glib HoldHandles/ReleaseHandles
4282
4283
4284 20070204232214-9db4d-0dba3dc8ffd92db1d9d7f86166eb294d8cc1c795.gz
4285
4286 src/idle-connection.c | 159 +++++-------------------------------------------
4287 1 files changed, 17 insertions(+), 142 deletions(-)
4288
4289 commit 5a6fd3d9c9932c839232d1268586f04bc562f0af
4290 Author: Olli Salli <olli.salli@collabora.co.uk>
4291 Date: Sun Feb 4 23:21:47 2007 +0000
4292
4293 Remove idle-handles-private.h from Makefile.am, since it is history
4294
4295
4296 20070204232147-9db4d-786b7d0af7c1ce51df930f5f6acedcc470ecb0e5.gz
4297
4298 src/Makefile.am | 1 -
4299 1 files changed, 0 insertions(+), 1 deletions(-)
4300
4301 commit 7980b19cad03351a5ce659cf3137e06e1db7460c
4302 Author: Olli Salli <olli.salli@collabora.co.uk>
4303 Date: Sun Feb 4 22:50:14 2007 +0000
4304
4305 Remove some dead code from IdleMUCChannel
4306
4307
4308 20070204225014-9db4d-749ff31fc15f5cd1da748d0841a72536556c8d36.gz
4309
4310 src/idle-muc-channel.c | 26 --------------------------
4311 1 files changed, 0 insertions(+), 26 deletions(-)
4312
4313 commit 9e7e082ca9dbd96b957e56ac7539c71971cf70c0
4314 Author: Olli Salli <olli.salli@collabora.co.uk>
4315 Date: Sun Feb 4 22:37:14 2007 +0000
4316
4317 Remove some more dead code from IdleConnection
4318
4319
4320 20070204223714-9db4d-33dd074e3880531e0e2022025eb39743cc0c0cb4.gz
4321
4322 src/idle-connection.c | 901 +------------------------------------------------
4323 1 files changed, 1 insertions(+), 900 deletions(-)
4324
4325 commit 24c105919db0e9865a7aa8b304f789df1ce9d168
4326 Author: Olli Salli <olli.salli@collabora.co.uk>
4327 Date: Sun Feb 4 22:30:35 2007 +0000
4328
4329 Migrate to the handle repos and sets in telepathy-glib
4330
4331
4332 20070204223035-9db4d-eb01a394b0a783b0647d11c1a33d4dc8d15e1c7a.gz
4333
4334 src/Makefile.am | 2 -
4335 src/idle-connection.c | 294 +++++++++++++++----------------
4336 src/idle-connection.h | 7 +-
4337 src/idle-handle-set.c | 196 --------------------
4338 src/idle-handle-set.h | 50 -----
4339 src/idle-handles-private.h | 53 ------
4340 src/idle-handles.c | 425 ++++++--------------------------------------
4341 src/idle-handles.h | 23 +--
4342 src/idle-im-channel.c | 33 ++--
4343 src/idle-im-channel.h | 4 +-
4344 src/idle-muc-channel.c | 165 +++++++++---------
4345 src/idle-muc-channel.h | 12 +-
4346 12 files changed, 316 insertions(+), 948 deletions(-)
4347
4348 commit 559e01e2c8e978fce73ef98556fd0b5fdff09975
4349 Author: Olli Salli <olli.salli@collabora.co.uk>
4350 Date: Wed Jan 31 22:42:28 2007 +0000
4351
4352 Migrate to the DBus helpers in telepathy-glib
4353
4354
4355 20070131224228-9db4d-f1f3ec8bca9fd840de59726147797dd2ceecf092.gz
4356
4357 src/Makefile.am | 3 --
4358 src/idle-connection-manager.c | 2 +-
4359 src/idle-connection.c | 3 +-
4360 src/idle-im-channel.c | 2 +-
4361 src/idle-muc-channel.c | 3 +-
4362 src/telepathy-helpers.c | 63 -----------------------------------------
4363 src/telepathy-helpers.h | 34 ----------------------
4364 7 files changed, 4 insertions(+), 106 deletions(-)
4365
4366 commit 39ae94843e3a1ca64404d1b8b9d93d6f5cf1d315
4367 Author: Olli Salli <olli.salli@collabora.co.uk>
4368 Date: Wed Jan 31 22:41:17 2007 +0000
4369
4370 Remove some totally dead and dried up vintage code
4371
4372
4373 20070131224117-9db4d-967a4bc0fa6d9e13bb8fd09d893bf9f7b5c2a1f8.gz
4374
4375 src/idle-connection.c | 36 ---------------------
4376 src/idle.c | 84 -------------------------------------------------
4377 2 files changed, 0 insertions(+), 120 deletions(-)
4378
4379 commit ef9c9793f47d1afae380d71c058f0a969290d7a4
4380 Author: Olli Salli <olli.salli@collabora.co.uk>
4381 Date: Wed Jan 31 22:33:19 2007 +0000
4382
4383 Migrate to telepathy-glib Telepathy error definitions
4384
4385
4386 20070131223319-9db4d-bef2d99f66ed9e6cc241c3bf9ce5d1c8b443b328.gz
4387
4388 src/Makefile.am | 22 ----------
4389 src/idle-connection-manager.c | 8 ++--
4390 src/idle-connection.c | 80 +++++++++++++++++++-------------------
4391 src/idle-im-channel.c | 8 ++--
4392 src/idle-muc-channel.c | 34 ++++++++--------
4393 src/idle-server-connection.c | 22 +++++-----
4394 src/idle-ssl-server-connection.c | 16 ++++----
4395 src/idle.c | 8 +--
4396 src/telepathy-errors.c | 31 ---------------
4397 src/telepathy-errors.h | 60 ----------------------------
4398 10 files changed, 87 insertions(+), 202 deletions(-)
4399
4400 commit 1dfa412e373fcc3dcc1bb98a9fef305c1ee02319
4401 Author: Olli Salli <olli.salli@collabora.co.uk>
4402 Date: Wed Jan 31 22:13:55 2007 +0000
4403
4404 Remove stale crap from CORE_SOURCES
4405
4406
4407 20070131221355-9db4d-6d62c58c6c35e78f1b8436fd3305f9365be0e0e5.gz
4408
4409 src/Makefile.am | 2 --
4410 1 files changed, 0 insertions(+), 2 deletions(-)
4411
4412 commit 1ebf83ae5cc7e97cc0262bba481b10fedc8adec1
4413 Author: Olli Salli <olli.salli@collabora.co.uk>
4414 Date: Wed Jan 31 22:08:41 2007 +0000
4415
4416 Migrate to the telepathy interface name constants in telepathy-glib
4417
4418
4419 20070131220841-9db4d-e84362b548774a50a531537c90c964a5a0e3f95d.gz
4420
4421 src/idle-connection.c | 7 +---
4422 src/idle-im-channel.c | 2 +-
4423 src/idle-muc-channel.c | 7 +---
4424 src/telepathy-interfaces.h | 65 --------------------------------------------
4425 4 files changed, 5 insertions(+), 76 deletions(-)
4426
4427 commit 486bbf3270127441c94fe97bc23d4264de77d336
4428 Author: Olli Salli <olli.salli@collabora.co.uk>
4429 Date: Wed Jan 31 21:55:42 2007 +0000
4430
4431 Migrate from local copy of the telepathy constants to telepathy-glib/enums.h
4432
4433
4434 20070131215542-9db4d-826ca31b6697d67fc994fa9fbfc811a19f27bdcd.gz
4435
4436 src/idle-connection-manager.c | 4 +-
4437 src/idle-connection.c | 46 ++++++++--------
4438 src/idle-connection.h | 3 +-
4439 src/idle-handle-set.h | 2 +-
4440 src/idle-handles.h | 3 +-
4441 src/idle-im-channel.c | 3 +-
4442 src/idle-muc-channel.c | 3 +-
4443 src/idle-muc-channel.h | 2 +-
4444 src/telepathy-constants.h | 117 -----------------------------------------
4445 9 files changed, 36 insertions(+), 147 deletions(-)
4446
4447 commit 8c7b81219052e8b15f474fc49710f82712135899
4448 Author: Olli Salli <olli.salli@collabora.co.uk>
4449 Date: Wed Jan 31 21:20:13 2007 +0000
4450
4451 Migrate from G(IntSet,Heap) to the versions in telepathy-glib
4452
4453
4454 20070131212013-9db4d-99121c1bfd2ddc080836012d11bfde0710ee811b.gz
4455
4456 src/Makefile.am | 4 -
4457 src/gheap.c | 142 ------------------
4458 src/gheap.h | 38 -----
4459 src/gintset.c | 353 --------------------------------------------
4460 src/gintset.h | 49 ------
4461 src/idle-connection.c | 21 ++--
4462 src/idle-handle-set.c | 49 +++---
4463 src/idle-handle-set.h | 6 +-
4464 src/idle-handles-private.h | 6 +-
4465 src/idle-handles.c | 19 +--
4466 src/idle-muc-channel.c | 166 +++++++++++-----------
4467 11 files changed, 134 insertions(+), 719 deletions(-)
4468
4469 commit f9485c420e63ed152f2305f9b6aff59b5a01b685
4470 Author: Olli Salli <olli.salli@collabora.co.uk>
4471 Date: Wed Jan 31 21:18:43 2007 +0000
4472
4473 Add telepathy-glib to include and link
4474
4475
4476 20070131211843-9db4d-77ccf79046a7fc578d91aae8378ced8b9c553087.gz
4477
4478 configure.ac | 6 ++++++
4479 src/Makefile.am | 4 ++--
4480 2 files changed, 8 insertions(+), 2 deletions(-)
4481
4482 commit b4bcc969dcea01e1f2fde4b7ada8ef7c195f9e02
4483 Author: Olli Salli <olli.salli@collabora.co.uk>
4484 Date: Sun Apr 1 00:35:11 2007 +0000
4485
4486 Only send PASS if the password has length > 0 and send it with higher priority
4487
4488
4489 20070401003511-9db4d-a2509586959892cd1cbd45ecb646bfc274f50213.gz
4490
4491 src/idle-connection.c | 4 ++--
4492 1 files changed, 2 insertions(+), 2 deletions(-)
4493
4494 commit d13f90ea458f51c3906521cc83b2bb407a288be1
4495 Author: Olli Salli <olli.salli@collabora.co.uk>
4496 Date: Thu Mar 22 15:42:20 2007 +0000
4497
4498 Disable clipping the nickname to 9 chars and instead let the IRC server canon it
4499
4500
4501 20070322154220-9db4d-bf5ebd5ba71e4254eb306c0f861bd1790bb5feb0.gz
4502
4503 src/idle-connection.c | 31 ++++++++++++++++++++-----------
4504 1 files changed, 20 insertions(+), 11 deletions(-)
4505
4506 commit 0ea399e0e5d8018e26c4a6183de5227bfdf3baeb
4507 Author: Olli Salli <olli.salli@collabora.co.uk>
4508 Date: Thu Mar 22 14:29:51 2007 +0000
4509
4510 Create new MUCChannel on JOIN for an unknown channel to work with irssi-proxy
4511
4512
4513 20070322142951-9db4d-45d9c2ed8fd05cf083db20f5ce1e03e65bdb7fa8.gz
4514
4515 src/idle-connection.c | 5 ++---
4516 1 files changed, 2 insertions(+), 3 deletions(-)
4517
4518 commit 2a14a432d9751b6a7a8aacfb823a5387d5bef48c
4519 Author: Olli Salli <olli.salli@collabora.co.uk>
4520 Date: Sun Feb 4 22:53:11 2007 +0000
4521
4522 Get rid of the advertisement default of IRC realname and get it from (in decreasing priority) 1) the user 2) g_get_realname 3) chosen IRC nickname
4523
4524
4525 20070204225311-9db4d-dd45f0e95707e106db8d10f0ca267f32ed1e2b10.gz
4526
4527 data/idle.manager | 1 -
4528 src/idle-connection-manager.c | 2 +-
4529 src/idle-connection.c | 16 ++++++++++++++++
4530 3 files changed, 17 insertions(+), 2 deletions(-)
4531
4532 commit 32f4d65e1628a8ba89b8891b712ef18fbe862e86
4533 Author: Olli Salli <olli.salli@collabora.co.uk>
4534 Date: Wed Jan 31 14:57:20 2007 +0000
4535
4536 Bump version to 0.0.5
4537
4538
4539 20070131145720-9db4d-650a763e85856e9605906bb209301f56e4820647.gz
4540
4541 configure.ac | 2 +-
4542 1 files changed, 1 insertions(+), 1 deletions(-)
4543
4544 commit e1b80d8c41aab7bb1ce61b7c28fec3dea655df0e
4545 Author: Olli Salli <olli.salli@collabora.co.uk>
4546 Date: Wed Jan 31 14:49:01 2007 +0000
4547
4548 Change some checks to not abort the whole process when connect() obscurily fails
4549
4550
4551 20070131144901-9db4d-2405bc0ea21613aedce174f5c801de4d8f283d1c.gz
4552
4553 src/idle-server-connection.c | 7 ++++---
4554 1 files changed, 4 insertions(+), 3 deletions(-)
4555
4556 commit c848146268825bdc0e8e9091c9c477485972f21a
4557 Author: Olli Salli <olli.salli@collabora.co.uk>
4558 Date: Wed Jan 31 14:37:22 2007 +0000
4559
4560 Defer freeing the addrinfo linked list to when the client calls idle_dns_result_destroy()
4561
4562
4563 20070131143722-9db4d-edb35f1c390f891c7b8df273acdf7fd7051c4ca2.gz
4564
4565 src/idle-dns-resolver.c | 49 +++++++++++++++++++++++++++++++---------------
4566 1 files changed, 33 insertions(+), 16 deletions(-)
4567
4568 commit 7a897b917168505139de0c726e96663e2c7ed977
4569 Author: Olli Salli <olli.salli@collabora.co.uk>
4570 Date: Mon Jan 29 15:47:36 2007 +0000
4571
4572 Initial import (migration from SF.net SVN)
4573
4574
4575 20070129154736-9db4d-be80727a61507e6581870228122d0d2a7c12995e.gz
4576
4577 AUTHORS | 5 +
4578 COPYING | 510 ++
4579 INSTALL | 236 +
4580 Makefile.am | 4 +
4581 configure.ac | 84 +
4582 data/Makefile.am | 19 +
4583 data/idle.manager | 19 +
4584 ...top.Telepathy.ConnectionManager.idle.service.in | 3 +
4585 generate/README | 21 +
4586 generate/do_src.sh | 27 +
4587 generate/do_xml.sh | 15 +
4588 generate/idle.def | 4 +
4589 .../idle-connection-manager-signals-marshal.list | 1 +
4590 generate/src/idle-connection-manager.c | 202 +
4591 generate/src/idle-connection-manager.h | 65 +
4592 generate/src/idle-connection-signals-marshal.list | 5 +
4593 generate/src/idle-connection.c | 521 ++
4594 generate/src/idle-connection.h | 81 +
4595 generate/src/idle-im-channel-signals-marshal.list | 3 +
4596 generate/src/idle-im-channel.c | 258 +
4597 generate/src/idle-im-channel.h | 67 +
4598 generate/src/idle-muc-channel-signals-marshal.list | 10 +
4599 generate/src/idle-muc-channel.c | 595 +++
4600 generate/src/idle-muc-channel.h | 82 +
4601 generate/src/telepathy-errors.h | 61 +
4602 generate/xml-modified/idle-connection-manager.xml | 23 +
4603 generate/xml-modified/idle-connection.xml | 100 +
4604 generate/xml-modified/idle-im-channel.xml | 51 +
4605 generate/xml-modified/idle-muc-channel.xml | 135 +
4606 generate/xml-pristine/idle-connection-manager.xml | 27 +
4607 generate/xml-pristine/idle-connection.xml | 113 +
4608 generate/xml-pristine/idle-im-channel.xml | 60 +
4609 generate/xml-pristine/idle-muc-channel.xml | 138 +
4610 m4/Makefile.am | 4 +
4611 m4/as-ac-expand.m4 | 40 +
4612 m4/as-compiler-flag.m4 | 33 +
4613 m4/as-version.m4 | 66 +
4614 src/Makefile.am | 112 +
4615 src/gheap.c | 142 +
4616 src/gheap.h | 38 +
4617 src/gintset.c | 353 ++
4618 src/gintset.h | 49 +
4619 src/idle-connection-manager-signals-marshal.list | 1 +
4620 src/idle-connection-manager.c | 559 ++
4621 src/idle-connection-manager.h | 64 +
4622 src/idle-connection-signals-marshal.list | 4 +
4623 src/idle-connection.c | 5377 ++++++++++++++++++++
4624 src/idle-connection.h | 106 +
4625 src/idle-dns-resolver.c | 566 ++
4626 src/idle-dns-resolver.h | 65 +
4627 src/idle-handle-set.c | 195 +
4628 src/idle-handle-set.h | 50 +
4629 src/idle-handles-private.h | 53 +
4630 src/idle-handles.c | 589 +++
4631 src/idle-handles.h | 56 +
4632 src/idle-im-channel-signals-marshal.list | 4 +
4633 src/idle-im-channel.c | 814 +++
4634 src/idle-im-channel.h | 69 +
4635 src/idle-muc-channel-signals-marshal.list | 11 +
4636 src/idle-muc-channel.c | 3474 +++++++++++++
4637 src/idle-muc-channel.h | 114 +
4638 ...le-server-connection-iface-signals-marshal.list | 1 +
4639 src/idle-server-connection-iface.c | 98 +
4640 src/idle-server-connection-iface.h | 87 +
4641 src/idle-server-connection-util.c | 104 +
4642 src/idle-server-connection-util.h | 62 +
4643 src/idle-server-connection.c | 797 +++
4644 src/idle-server-connection.h | 63 +
4645 src/idle-ssl-server-connection.c | 766 +++
4646 src/idle-ssl-server-connection.h | 63 +
4647 src/idle-version.h | 26 +
4648 src/idle.c | 185 +
4649 src/idle.h | 30 +
4650 src/telepathy-constants.h | 117 +
4651 src/telepathy-errors.c | 31 +
4652 src/telepathy-errors.h | 60 +
4653 src/telepathy-helpers.c | 63 +
4654 src/telepathy-helpers.h | 34 +
4655 src/telepathy-interfaces.h | 65 +
4656 79 files changed, 19205 insertions(+), 0 deletions(-)
4657
4658 commit 36e7ba52d4397763aca609c368bc6f2472b644a1
4659 Author: git-darcs-import <>
4660 Date: Thu Jan 1 00:00:00 1970 +0000
4661
4662 New empty repository
55 $(MAKE) -C tests/twisted check-twisted
66
77 check-all: check check-twisted
8
9 include tools/telepathy.am
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1415 @SET_MAKE@
1516 VPATH = @srcdir@
1617 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
1719 pkglibdir = $(libdir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
1921 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2022 install_sh_DATA = $(install_sh) -c -m 644
2123 install_sh_PROGRAM = $(install_sh) -c
3032 POST_UNINSTALL = :
3133 build_triplet = @build@
3234 host_triplet = @host@
33 subdir = .
3435 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
3536 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
36 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
37 config.guess config.sub depcomp install-sh ltmain.sh missing
37 $(srcdir)/tools/telepathy.am $(top_srcdir)/configure AUTHORS \
38 COPYING ChangeLog INSTALL NEWS config.guess config.sub depcomp \
39 install-sh ltmain.sh missing
40 subdir = .
3841 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3942 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
4043 $(top_srcdir)/m4/as-compiler-flag.m4 \
41 $(top_srcdir)/configure.ac
44 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
45 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
46 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
4247 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4348 $(ACLOCAL_M4)
4449 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
4651 mkinstalldirs = $(install_sh) -d
4752 CONFIG_HEADER = config.h
4853 CONFIG_CLEAN_FILES =
54 CONFIG_CLEAN_VPATH_FILES =
55 AM_V_GEN = $(am__v_GEN_$(V))
56 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
57 am__v_GEN_0 = @echo " GEN " $@;
58 AM_V_at = $(am__v_at_$(V))
59 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
60 am__v_at_0 = @
4961 SOURCES =
5062 DIST_SOURCES =
5163 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
5769 ps-recursive uninstall-recursive
5870 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
5971 distclean-recursive maintainer-clean-recursive
72 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
73 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
74 distdir dist dist-all distcheck
6075 ETAGS = etags
6176 CTAGS = ctags
6277 DIST_SUBDIRS = $(SUBDIRS)
6479 distdir = $(PACKAGE)-$(VERSION)
6580 top_distdir = $(distdir)
6681 am__remove_distdir = \
67 { test ! -d $(distdir) \
68 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
69 && rm -fr $(distdir); }; }
82 { test ! -d "$(distdir)" \
83 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
84 && rm -fr "$(distdir)"; }; }
85 am__relativize = \
86 dir0=`pwd`; \
87 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
88 sed_rest='s,^[^/]*/*,,'; \
89 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
90 sed_butlast='s,/*[^/]*$$,,'; \
91 while test -n "$$dir1"; do \
92 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
93 if test "$$first" != "."; then \
94 if test "$$first" = ".."; then \
95 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
96 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
97 else \
98 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
99 if test "$$first2" = "$$first"; then \
100 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
101 else \
102 dir2="../$$dir2"; \
103 fi; \
104 dir0="$$dir0"/"$$first"; \
105 fi; \
106 fi; \
107 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
108 done; \
109 reldir="$$dir2"
70110 DIST_ARCHIVES = $(distdir).tar.gz
71111 GZIP_ENV = --best
72112 distuninstallcheck_listfiles = find . -type f -print
73113 distcleancheck_listfiles = find . -type f -print
74114 ACLOCAL = @ACLOCAL@
75115 AMTAR = @AMTAR@
116 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
76117 AR = @AR@
77118 AUTOCONF = @AUTOCONF@
78119 AUTOHEADER = @AUTOHEADER@
86127 CFLAGS = @CFLAGS@
87128 CPP = @CPP@
88129 CPPFLAGS = @CPPFLAGS@
89 CXX = @CXX@
90 CXXCPP = @CXXCPP@
91 CXXDEPMODE = @CXXDEPMODE@
92 CXXFLAGS = @CXXFLAGS@
93130 CYGPATH_W = @CYGPATH_W@
94131 DATADIR = @DATADIR@
95132 DBUS_CFLAGS = @DBUS_CFLAGS@
98135 DEFS = @DEFS@
99136 DEPDIR = @DEPDIR@
100137 DSYMUTIL = @DSYMUTIL@
101 ECHO = @ECHO@
138 DUMPBIN = @DUMPBIN@
102139 ECHO_C = @ECHO_C@
103140 ECHO_N = @ECHO_N@
104141 ECHO_T = @ECHO_T@
105142 EGREP = @EGREP@
106143 ERROR_CFLAGS = @ERROR_CFLAGS@
107144 EXEEXT = @EXEEXT@
108 F77 = @F77@
109 FFLAGS = @FFLAGS@
145 FGREP = @FGREP@
110146 GLIB_CFLAGS = @GLIB_CFLAGS@
111147 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112148 GLIB_LIBS = @GLIB_LIBS@
116152 INSTALL_PROGRAM = @INSTALL_PROGRAM@
117153 INSTALL_SCRIPT = @INSTALL_SCRIPT@
118154 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
155 LD = @LD@
119156 LDFLAGS = @LDFLAGS@
120157 LIBOBJS = @LIBOBJS@
121158 LIBS = @LIBS@
122159 LIBTOOL = @LIBTOOL@
160 LIPO = @LIPO@
123161 LN_S = @LN_S@
124162 LTLIBOBJS = @LTLIBOBJS@
125163 MAKEINFO = @MAKEINFO@
126164 MKDIR_P = @MKDIR_P@
165 NM = @NM@
127166 NMEDIT = @NMEDIT@
167 OBJDUMP = @OBJDUMP@
128168 OBJEXT = @OBJEXT@
129169 OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
130170 OPENSSL_LIBS = @OPENSSL_LIBS@
171 OTOOL = @OTOOL@
172 OTOOL64 = @OTOOL64@
131173 PACKAGE = @PACKAGE@
132174 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
133175 PACKAGE_NAME = @PACKAGE_NAME@
134176 PACKAGE_STRING = @PACKAGE_STRING@
135177 PACKAGE_TARNAME = @PACKAGE_TARNAME@
178 PACKAGE_URL = @PACKAGE_URL@
136179 PACKAGE_VERSION = @PACKAGE_VERSION@
137180 PATH_SEPARATOR = @PATH_SEPARATOR@
138181 PKG_CONFIG = @PKG_CONFIG@
152195 abs_top_builddir = @abs_top_builddir@
153196 abs_top_srcdir = @abs_top_srcdir@
154197 ac_ct_CC = @ac_ct_CC@
155 ac_ct_CXX = @ac_ct_CXX@
156 ac_ct_F77 = @ac_ct_F77@
198 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
157199 am__include = @am__include@
158200 am__leading_dot = @am__leading_dot@
159201 am__quote = @am__quote@
184226 libexecdir = @libexecdir@
185227 localedir = @localedir@
186228 localstatedir = @localstatedir@
229 lt_ECHO = @lt_ECHO@
187230 mandir = @mandir@
188231 mkdir_p = @mkdir_p@
189232 oldincludedir = @oldincludedir@
196239 srcdir = @srcdir@
197240 sysconfdir = @sysconfdir@
198241 target_alias = @target_alias@
242 top_build_prefix = @top_build_prefix@
199243 top_builddir = @top_builddir@
200244 top_srcdir = @top_srcdir@
201245 ACLOCAL_AMFLAGS = -I m4
206250 .SUFFIXES:
207251 am--refresh:
208252 @:
209 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
253 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/tools/telepathy.am $(am__configure_deps)
210254 @for dep in $?; do \
211255 case '$(am__configure_deps)' in \
212256 *$$dep*) \
213 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
214 cd $(srcdir) && $(AUTOMAKE) --gnu \
257 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
258 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
215259 && exit 0; \
216260 exit 1;; \
217261 esac; \
218262 done; \
219 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
220 cd $(top_srcdir) && \
221 $(AUTOMAKE) --gnu Makefile
263 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
264 $(am__cd) $(top_srcdir) && \
265 $(AUTOMAKE) --gnu Makefile
222266 .PRECIOUS: Makefile
223267 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
224268 @case '$?' in \
234278 $(SHELL) ./config.status --recheck
235279
236280 $(top_srcdir)/configure: $(am__configure_deps)
237 cd $(srcdir) && $(AUTOCONF)
281 $(am__cd) $(srcdir) && $(AUTOCONF)
238282 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
239 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
283 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
284 $(am__aclocal_m4_deps):
240285
241286 config.h: stamp-h1
242287 @if test ! -f $@; then \
248293 @rm -f stamp-h1
249294 cd $(top_builddir) && $(SHELL) ./config.status config.h
250295 $(srcdir)/config.h.in: $(am__configure_deps)
251 cd $(top_srcdir) && $(AUTOHEADER)
296 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
252297 rm -f stamp-h1
253298 touch $@
254299
262307 -rm -rf .libs _libs
263308
264309 distclean-libtool:
265 -rm -f libtool
310 -rm -f libtool config.lt
266311
267312 # This directory's subdirectories are mostly independent; you can cd
268313 # into them and run `make' without going through this Makefile.
288333 else \
289334 local_target="$$target"; \
290335 fi; \
291 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
336 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
292337 || eval $$failcom; \
293338 done; \
294339 if test "$$dot_seen" = "no"; then \
322367 else \
323368 local_target="$$target"; \
324369 fi; \
325 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
370 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
326371 || eval $$failcom; \
327372 done && test -z "$$fail"
328373 tags-recursive:
329374 list='$(SUBDIRS)'; for subdir in $$list; do \
330 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
375 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
331376 done
332377 ctags-recursive:
333378 list='$(SUBDIRS)'; for subdir in $$list; do \
334 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
379 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
335380 done
336381
337382 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
339384 unique=`for i in $$list; do \
340385 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341386 done | \
342 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
387 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
343388 END { if (nonempty) { for (i in files) print i; }; }'`; \
344389 mkid -fID $$unique
345390 tags: TAGS
346391
347392 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
348393 $(TAGS_FILES) $(LISP)
349 tags=; \
394 set x; \
350395 here=`pwd`; \
351396 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
352397 include_option=--etags-include; \
358403 list='$(SUBDIRS)'; for subdir in $$list; do \
359404 if test "$$subdir" = .; then :; else \
360405 test ! -f $$subdir/TAGS || \
361 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
406 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
362407 fi; \
363408 done; \
364409 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
367412 done | \
368413 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
369414 END { if (nonempty) { for (i in files) print i; }; }'`; \
370 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
415 shift; \
416 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
371417 test -n "$$unique" || unique=$$empty_fix; \
372 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
373 $$tags $$unique; \
418 if test $$# -gt 0; then \
419 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
420 "$$@" $$unique; \
421 else \
422 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
423 $$unique; \
424 fi; \
374425 fi
375426 ctags: CTAGS
376427 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
377428 $(TAGS_FILES) $(LISP)
378 tags=; \
379429 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
380430 unique=`for i in $$list; do \
381431 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
382432 done | \
383433 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
384434 END { if (nonempty) { for (i in files) print i; }; }'`; \
385 test -z "$(CTAGS_ARGS)$$tags$$unique" \
435 test -z "$(CTAGS_ARGS)$$unique" \
386436 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
387 $$tags $$unique
437 $$unique
388438
389439 GTAGS:
390440 here=`$(am__cd) $(top_builddir) && pwd` \
391 && cd $(top_srcdir) \
392 && gtags -i $(GTAGS_ARGS) $$here
441 && $(am__cd) $(top_srcdir) \
442 && gtags -i $(GTAGS_ARGS) "$$here"
393443
394444 distclean-tags:
395445 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
396446
397447 distdir: $(DISTFILES)
398448 $(am__remove_distdir)
399 test -d $(distdir) || mkdir $(distdir)
449 test -d "$(distdir)" || mkdir "$(distdir)"
400450 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
401451 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
402452 list='$(DISTFILES)'; \
412462 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
413463 if test -d $$d/$$file; then \
414464 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
465 if test -d "$(distdir)/$$file"; then \
466 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
467 fi; \
415468 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
416 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
469 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
470 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
417471 fi; \
418 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
472 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
419473 else \
420 test -f $(distdir)/$$file \
421 || cp -p $$d/$$file $(distdir)/$$file \
474 test -f "$(distdir)/$$file" \
475 || cp -p $$d/$$file "$(distdir)/$$file" \
422476 || exit 1; \
423477 fi; \
424478 done
425 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
479 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
426480 if test "$$subdir" = .; then :; else \
427481 test -d "$(distdir)/$$subdir" \
428482 || $(MKDIR_P) "$(distdir)/$$subdir" \
429483 || exit 1; \
430 distdir=`$(am__cd) $(distdir) && pwd`; \
431 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
432 (cd $$subdir && \
484 fi; \
485 done
486 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
487 if test "$$subdir" = .; then :; else \
488 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
489 $(am__relativize); \
490 new_distdir=$$reldir; \
491 dir1=$$subdir; dir2="$(top_distdir)"; \
492 $(am__relativize); \
493 new_top_distdir=$$reldir; \
494 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
495 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
496 ($(am__cd) $$subdir && \
433497 $(MAKE) $(AM_MAKEFLAGS) \
434 top_distdir="$$top_distdir" \
435 distdir="$$distdir/$$subdir" \
498 top_distdir="$$new_top_distdir" \
499 distdir="$$new_distdir" \
436500 am__remove_distdir=: \
437501 am__skip_length_check=: \
502 am__skip_mode_fix=: \
438503 distdir) \
439504 || exit 1; \
440505 fi; \
441506 done
442 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
507 $(MAKE) $(AM_MAKEFLAGS) \
508 top_distdir="$(top_distdir)" distdir="$(distdir)" \
509 dist-hook
510 -test -n "$(am__skip_mode_fix)" \
511 || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
443512 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
444513 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
445514 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
446 || chmod -R a+r $(distdir)
515 || chmod -R a+r "$(distdir)"
447516 dist-gzip: distdir
448517 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
449518 $(am__remove_distdir)
454523
455524 dist-lzma: distdir
456525 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
526 $(am__remove_distdir)
527
528 dist-xz: distdir
529 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
457530 $(am__remove_distdir)
458531
459532 dist-tarZ: distdir
484557 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
485558 *.tar.lzma*) \
486559 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
560 *.tar.xz*) \
561 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
487562 *.tar.Z*) \
488563 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
489564 *.shar.gz*) \
495570 mkdir $(distdir)/_build
496571 mkdir $(distdir)/_inst
497572 chmod a-w $(distdir)
573 test -d $(distdir)/_build || exit 0; \
498574 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
499575 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
500 && cd $(distdir)/_build \
576 && am__cwd=`pwd` \
577 && $(am__cd) $(distdir)/_build \
501578 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
502579 $(DISTCHECK_CONFIGURE_FLAGS) \
503580 && $(MAKE) $(AM_MAKEFLAGS) \
519596 && rm -rf "$$dc_destdir" \
520597 && $(MAKE) $(AM_MAKEFLAGS) dist \
521598 && rm -rf $(DIST_ARCHIVES) \
522 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
599 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
600 && cd "$$am__cwd" \
601 || exit 1
523602 $(am__remove_distdir)
524603 @(echo "$(distdir) archives ready for distribution: "; \
525604 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
526605 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
527606 distuninstallcheck:
528 @cd $(distuninstallcheck_dir) \
607 @$(am__cd) '$(distuninstallcheck_dir)' \
529608 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
530609 || { echo "ERROR: files left after uninstall:" ; \
531610 if test -n "$(DESTDIR)"; then \
567646
568647 distclean-generic:
569648 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
649 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
570650
571651 maintainer-clean-generic:
572652 @echo "This command is intended for maintainers to use"
587667
588668 html: html-recursive
589669
670 html-am:
671
590672 info: info-recursive
591673
592674 info-am:
595677
596678 install-dvi: install-dvi-recursive
597679
680 install-dvi-am:
681
598682 install-exec-am:
599683
600684 install-html: install-html-recursive
601685
686 install-html-am:
687
602688 install-info: install-info-recursive
603689
690 install-info-am:
691
604692 install-man:
605693
606694 install-pdf: install-pdf-recursive
607695
696 install-pdf-am:
697
608698 install-ps: install-ps-recursive
699
700 install-ps-am:
609701
610702 installcheck-am:
611703
629721
630722 uninstall-am:
631723
632 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
633 install-strip
724 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
725 ctags-recursive install-am install-strip tags-recursive
634726
635727 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
636728 all all-am am--refresh check check-am clean clean-generic \
637729 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
638 dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
639 distclean distclean-generic distclean-hdr distclean-libtool \
640 distclean-tags distcleancheck distdir distuninstallcheck dvi \
641 dvi-am html html-am info info-am install install-am \
642 install-data install-data-am install-dvi install-dvi-am \
643 install-exec install-exec-am install-html install-html-am \
644 install-info install-info-am install-man install-pdf \
645 install-pdf-am install-ps install-ps-am install-strip \
646 installcheck installcheck-am installdirs installdirs-am \
647 maintainer-clean maintainer-clean-generic mostlyclean \
648 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
649 tags tags-recursive uninstall uninstall-am
730 dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
731 dist-zip distcheck distclean distclean-generic distclean-hdr \
732 distclean-libtool distclean-tags distcleancheck distdir \
733 distuninstallcheck dvi dvi-am html html-am info info-am \
734 install install-am install-data install-data-am install-dvi \
735 install-dvi-am install-exec install-exec-am install-html \
736 install-html-am install-info install-info-am install-man \
737 install-pdf install-pdf-am install-ps install-ps-am \
738 install-strip installcheck installcheck-am installdirs \
739 installdirs-am maintainer-clean maintainer-clean-generic \
740 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
741 ps ps-am tags tags-recursive uninstall uninstall-am
650742
651743
652744 check-twisted : all
653745 $(MAKE) -C tests/twisted check-twisted
654746
655747 check-all: check check-twisted
748
749 dist-hook:
750 chmod u+w ${distdir}/ChangeLog
751 if test -d ${top_srcdir}/.git; then \
752 git log --stat > ${distdir}/ChangeLog || \
753 git log > ${distdir}/ChangeLog; \
754 fi
755
756 maintainer-upload-release: _maintainer-upload-release
757
758 _maintainer-upload-release-check:
759 @case @VERSION@ in \
760 (*.*.*.*) \
761 echo "@VERSION@ is not a release" >&2; \
762 exit 2; \
763 ;; \
764 esac
765 test -f @PACKAGE@-@VERSION@.tar.gz
766 test -f @PACKAGE@-@VERSION@.tar.gz.asc
767 gpg --verify @PACKAGE@-@VERSION@.tar.gz.asc
768
769 _maintainer-upload-release: _maintainer-upload-release-check
770 rsync -vzP @PACKAGE@-@VERSION@.tar.gz telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE@-@VERSION@.tar.gz
771 rsync -vzP @PACKAGE@-@VERSION@.tar.gz.asc telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE@-@VERSION@.tar.gz.asc
772
656773 # Tell versions [3.59,3.63) of GNU make to not export all variables.
657774 # Otherwise a system limit (for SysV at least) may be exceeded.
658775 .NOEXPORT:
0 telepathy-idle 0.1.5 (2009-09-14)
1 =================================
2
3 Enhancements:
4
5 * Use automake 1.11's silent build option. Use --enable-silent-rules
6 to enable it. (wjt)
7
8 * Implement Destroyable for IM channels. (wjt)
9
10 * Implement o.fd.Tp.Connection.Interface.Requests. (jonner & wjt)
11
12 * Allow parting MUCs with RemoveMembers. (wjt)
13
14 Fixes:
15
16 * fd.o #22291: Define _GNU_SOURCE not __USE_GNU to get strnlen(3),
17 which was causing a build failure on openSUSE, which has a glibc
18 from the future. (Vincent Untz)
19
20 * fd.o #22958: Don't explicitly return void in void functions as Sun's
21 C compiler doesn't support this. (Elaine Xiong)
22
23 telepathy-idle 0.1.4 (2009-05-28)
24 =================================
25
26 The "Caberdrone" release.
27
28 Enhancements:
29
30 * Added a connection parameter for "username" (fd.o #16499).
31
32 * Removed the default quit message advertising Idle (fd.o #20916).
33
34 Fixes:
35
36 * Parses nicknames in incoming messages more liberally, to allow
37 nicknames like "-bip" which are illegal but appear in the wild.
38
39 * Uniquify connections' object paths to permit two connections to the
40 same server with the same username (fd.o #17430).
41
042 telepathy-idle 0.1.3 (2009-02-17)
143 =================================
244
0 # generated automatically by aclocal 1.10.1 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1212
1313 m4_ifndef([AC_AUTOCONF_VERSION],
1414 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(AC_AUTOCONF_VERSION, [2.61],,
16 [m4_warning([this file was generated for autoconf 2.61.
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
16 [m4_warning([this file was generated for autoconf 2.64.
1717 You have another version of autoconf. It may work, but is not guaranteed to.
1818 If you have problems, you may need to regenerate the build system entirely.
1919 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20
21 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
22
23 # serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
24
25
26 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
27 # -----------------------------------------------------------
28 # If this macro is not defined by Autoconf, define it here.
29 m4_ifdef([AC_PROVIDE_IFELSE],
30 [],
31 [m4_define([AC_PROVIDE_IFELSE],
32 [m4_ifdef([AC_PROVIDE_$1],
33 [$2], [$3])])])
34
35
36 # AC_PROG_LIBTOOL
37 # ---------------
38 AC_DEFUN([AC_PROG_LIBTOOL],
39 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
40 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
41 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
42 AC_PROVIDE_IFELSE([AC_PROG_CXX],
43 [AC_LIBTOOL_CXX],
44 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
45 ])])
46 dnl And a similar setup for Fortran 77 support
47 AC_PROVIDE_IFELSE([AC_PROG_F77],
48 [AC_LIBTOOL_F77],
49 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
50 ])])
51
52 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
53 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
54 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
55 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
56 [AC_LIBTOOL_GCJ],
57 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
58 [AC_LIBTOOL_GCJ],
59 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
60 [AC_LIBTOOL_GCJ],
61 [ifdef([AC_PROG_GCJ],
62 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
63 ifdef([A][M_PROG_GCJ],
64 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
65 ifdef([LT_AC_PROG_GCJ],
66 [define([LT_AC_PROG_GCJ],
67 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
68 ])])# AC_PROG_LIBTOOL
69
70
71 # _AC_PROG_LIBTOOL
72 # ----------------
73 AC_DEFUN([_AC_PROG_LIBTOOL],
74 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
75 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
76 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
77 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
78
79 # This can be used to rebuild libtool when needed
80 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
81
82 # Always use our own libtool.
83 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
84 AC_SUBST(LIBTOOL)dnl
85
86 # Prevent multiple expansion
87 define([AC_PROG_LIBTOOL], [])
88 ])# _AC_PROG_LIBTOOL
89
90
91 # AC_LIBTOOL_SETUP
92 # ----------------
93 AC_DEFUN([AC_LIBTOOL_SETUP],
94 [AC_PREREQ(2.50)dnl
95 AC_REQUIRE([AC_ENABLE_SHARED])dnl
96 AC_REQUIRE([AC_ENABLE_STATIC])dnl
97 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
98 AC_REQUIRE([AC_CANONICAL_HOST])dnl
99 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
100 AC_REQUIRE([AC_PROG_CC])dnl
101 AC_REQUIRE([AC_PROG_LD])dnl
102 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
103 AC_REQUIRE([AC_PROG_NM])dnl
104
105 AC_REQUIRE([AC_PROG_LN_S])dnl
106 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
107 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
108 AC_REQUIRE([AC_OBJEXT])dnl
109 AC_REQUIRE([AC_EXEEXT])dnl
110 dnl
111 AC_LIBTOOL_SYS_MAX_CMD_LEN
112 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
113 AC_LIBTOOL_OBJDIR
114
115 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
116 _LT_AC_PROG_ECHO_BACKSLASH
117
118 case $host_os in
119 aix3*)
120 # AIX sometimes has problems with the GCC collect2 program. For some
121 # reason, if we set the COLLECT_NAMES environment variable, the problems
122 # vanish in a puff of smoke.
123 if test "X${COLLECT_NAMES+set}" != Xset; then
124 COLLECT_NAMES=
125 export COLLECT_NAMES
126 fi
127 ;;
128 esac
129
130 # Sed substitution that helps us do robust quoting. It backslashifies
131 # metacharacters that are still active within double-quoted strings.
132 Xsed='sed -e 1s/^X//'
133 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
134
135 # Same as above, but do not quote variable references.
136 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
137
138 # Sed substitution to delay expansion of an escaped shell variable in a
139 # double_quote_subst'ed string.
140 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
141
142 # Sed substitution to avoid accidental globbing in evaled expressions
143 no_glob_subst='s/\*/\\\*/g'
144
145 # Constants:
146 rm="rm -f"
147
148 # Global variables:
149 default_ofile=libtool
150 can_build_shared=yes
151
152 # All known linkers require a `.a' archive for static linking (except MSVC,
153 # which needs '.lib').
154 libext=a
155 ltmain="$ac_aux_dir/ltmain.sh"
156 ofile="$default_ofile"
157 with_gnu_ld="$lt_cv_prog_gnu_ld"
158
159 AC_CHECK_TOOL(AR, ar, false)
160 AC_CHECK_TOOL(RANLIB, ranlib, :)
161 AC_CHECK_TOOL(STRIP, strip, :)
162
163 old_CC="$CC"
164 old_CFLAGS="$CFLAGS"
165
166 # Set sane defaults for various variables
167 test -z "$AR" && AR=ar
168 test -z "$AR_FLAGS" && AR_FLAGS=cru
169 test -z "$AS" && AS=as
170 test -z "$CC" && CC=cc
171 test -z "$LTCC" && LTCC=$CC
172 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
173 test -z "$DLLTOOL" && DLLTOOL=dlltool
174 test -z "$LD" && LD=ld
175 test -z "$LN_S" && LN_S="ln -s"
176 test -z "$MAGIC_CMD" && MAGIC_CMD=file
177 test -z "$NM" && NM=nm
178 test -z "$SED" && SED=sed
179 test -z "$OBJDUMP" && OBJDUMP=objdump
180 test -z "$RANLIB" && RANLIB=:
181 test -z "$STRIP" && STRIP=:
182 test -z "$ac_objext" && ac_objext=o
183
184 # Determine commands to create old-style static archives.
185 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
186 old_postinstall_cmds='chmod 644 $oldlib'
187 old_postuninstall_cmds=
188
189 if test -n "$RANLIB"; then
190 case $host_os in
191 openbsd*)
192 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
193 ;;
194 *)
195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
196 ;;
197 esac
198 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
199 fi
200
201 _LT_CC_BASENAME([$compiler])
202
203 # Only perform the check for file, if the check method requires it
204 case $deplibs_check_method in
205 file_magic*)
206 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
207 AC_PATH_MAGIC
208 fi
209 ;;
210 esac
211
212 _LT_REQUIRED_DARWIN_CHECKS
213
214 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
215 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
216 enable_win32_dll=yes, enable_win32_dll=no)
217
218 AC_ARG_ENABLE([libtool-lock],
219 [AC_HELP_STRING([--disable-libtool-lock],
220 [avoid locking (might break parallel builds)])])
221 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
222
223 AC_ARG_WITH([pic],
224 [AC_HELP_STRING([--with-pic],
225 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
226 [pic_mode="$withval"],
227 [pic_mode=default])
228 test -z "$pic_mode" && pic_mode=default
229
230 # Use C for the default configuration in the libtool script
231 tagname=
232 AC_LIBTOOL_LANG_C_CONFIG
233 _LT_AC_TAGCONFIG
234 ])# AC_LIBTOOL_SETUP
235
236
237 # _LT_AC_SYS_COMPILER
238 # -------------------
239 AC_DEFUN([_LT_AC_SYS_COMPILER],
240 [AC_REQUIRE([AC_PROG_CC])dnl
241
242 # If no C compiler was specified, use CC.
243 LTCC=${LTCC-"$CC"}
244
245 # If no C compiler flags were specified, use CFLAGS.
246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
247
248 # Allow CC to be a program name with arguments.
249 compiler=$CC
250 ])# _LT_AC_SYS_COMPILER
251
252
253 # _LT_CC_BASENAME(CC)
254 # -------------------
255 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
256 AC_DEFUN([_LT_CC_BASENAME],
257 [for cc_temp in $1""; do
258 case $cc_temp in
259 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
260 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
261 \-*) ;;
262 *) break;;
263 esac
264 done
265 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
266 ])
267
268
269 # _LT_COMPILER_BOILERPLATE
270 # ------------------------
271 # Check for compiler boilerplate output or warnings with
272 # the simple compiler test code.
273 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
274 [AC_REQUIRE([LT_AC_PROG_SED])dnl
275 ac_outfile=conftest.$ac_objext
276 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
277 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
278 _lt_compiler_boilerplate=`cat conftest.err`
279 $rm conftest*
280 ])# _LT_COMPILER_BOILERPLATE
281
282
283 # _LT_LINKER_BOILERPLATE
284 # ----------------------
285 # Check for linker boilerplate output or warnings with
286 # the simple link test code.
287 AC_DEFUN([_LT_LINKER_BOILERPLATE],
288 [AC_REQUIRE([LT_AC_PROG_SED])dnl
289 ac_outfile=conftest.$ac_objext
290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
292 _lt_linker_boilerplate=`cat conftest.err`
293 $rm -r conftest*
294 ])# _LT_LINKER_BOILERPLATE
295
296 # _LT_REQUIRED_DARWIN_CHECKS
297 # --------------------------
298 # Check for some things on darwin
299 AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
300 case $host_os in
301 rhapsody* | darwin*)
302 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
303 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
304
305 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
306 [lt_cv_apple_cc_single_mod=no
307 if test -z "${LT_MULTI_MODULE}"; then
308 # By default we will add the -single_module flag. You can override
309 # by either setting the environment variable LT_MULTI_MODULE
310 # non-empty at configure time, or by adding -multi_module to the
311 # link flags.
312 echo "int foo(void){return 1;}" > conftest.c
313 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
314 -dynamiclib ${wl}-single_module conftest.c
315 if test -f libconftest.dylib; then
316 lt_cv_apple_cc_single_mod=yes
317 rm -rf libconftest.dylib*
318 fi
319 rm conftest.c
320 fi])
321 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
322 [lt_cv_ld_exported_symbols_list],
323 [lt_cv_ld_exported_symbols_list=no
324 save_LDFLAGS=$LDFLAGS
325 echo "_main" > conftest.sym
326 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
327 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
328 [lt_cv_ld_exported_symbols_list=yes],
329 [lt_cv_ld_exported_symbols_list=no])
330 LDFLAGS="$save_LDFLAGS"
331 ])
332 case $host_os in
333 rhapsody* | darwin1.[[0123]])
334 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
335 darwin1.*)
336 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
337 darwin*)
338 # if running on 10.5 or later, the deployment target defaults
339 # to the OS version, if on x86, and 10.4, the deployment
340 # target defaults to 10.4. Don't you love it?
341 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
342 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
343 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
344 10.[[012]]*)
345 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
346 10.*)
347 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
348 esac
349 ;;
350 esac
351 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
352 _lt_dar_single_mod='$single_module'
353 fi
354 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
355 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
356 else
357 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
358 fi
359 if test "$DSYMUTIL" != ":"; then
360 _lt_dsymutil="~$DSYMUTIL \$lib || :"
361 else
362 _lt_dsymutil=
363 fi
364 ;;
365 esac
366 ])
367
368 # _LT_AC_SYS_LIBPATH_AIX
369 # ----------------------
370 # Links a minimal program and checks the executable
371 # for the system default hardcoded library path. In most cases,
372 # this is /usr/lib:/lib, but when the MPI compilers are used
373 # the location of the communication and MPI libs are included too.
374 # If we don't find anything, use the default library path according
375 # to the aix ld manual.
376 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
377 [AC_REQUIRE([LT_AC_PROG_SED])dnl
378 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
379 lt_aix_libpath_sed='
380 /Import File Strings/,/^$/ {
381 /^0/ {
382 s/^0 *\(.*\)$/\1/
383 p
384 }
385 }'
386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
387 # Check for a 64-bit object if we didn't find anything.
388 if test -z "$aix_libpath"; then
389 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
390 fi],[])
391 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
392 ])# _LT_AC_SYS_LIBPATH_AIX
393
394
395 # _LT_AC_SHELL_INIT(ARG)
396 # ----------------------
397 AC_DEFUN([_LT_AC_SHELL_INIT],
398 [ifdef([AC_DIVERSION_NOTICE],
399 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
400 [AC_DIVERT_PUSH(NOTICE)])
401 $1
402 AC_DIVERT_POP
403 ])# _LT_AC_SHELL_INIT
404
405
406 # _LT_AC_PROG_ECHO_BACKSLASH
407 # --------------------------
408 # Add some code to the start of the generated configure script which
409 # will find an echo command which doesn't interpret backslashes.
410 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
411 [_LT_AC_SHELL_INIT([
412 # Check that we are running under the correct shell.
413 SHELL=${CONFIG_SHELL-/bin/sh}
414
415 case X$ECHO in
416 X*--fallback-echo)
417 # Remove one level of quotation (which was required for Make).
418 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
419 ;;
420 esac
421
422 echo=${ECHO-echo}
423 if test "X[$]1" = X--no-reexec; then
424 # Discard the --no-reexec flag, and continue.
425 shift
426 elif test "X[$]1" = X--fallback-echo; then
427 # Avoid inline document here, it may be left over
428 :
429 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
430 # Yippee, $echo works!
431 :
432 else
433 # Restart under the correct shell.
434 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
435 fi
436
437 if test "X[$]1" = X--fallback-echo; then
438 # used as fallback echo
439 shift
440 cat <<EOF
441 [$]*
442 EOF
443 exit 0
444 fi
445
446 # The HP-UX ksh and POSIX shell print the target directory to stdout
447 # if CDPATH is set.
448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
449
450 if test -z "$ECHO"; then
451 if test "X${echo_test_string+set}" != Xset; then
452 # find a string as large as possible, as long as the shell can cope with it
453 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
454 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
455 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
456 echo_test_string=`eval $cmd` &&
457 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
458 then
459 break
460 fi
461 done
462 fi
463
464 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
465 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
466 test "X$echo_testing_string" = "X$echo_test_string"; then
467 :
468 else
469 # The Solaris, AIX, and Digital Unix default echo programs unquote
470 # backslashes. This makes it impossible to quote backslashes using
471 # echo "$something" | sed 's/\\/\\\\/g'
472 #
473 # So, first we look for a working echo in the user's PATH.
474
475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
476 for dir in $PATH /usr/ucb; do
477 IFS="$lt_save_ifs"
478 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
479 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
480 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
481 test "X$echo_testing_string" = "X$echo_test_string"; then
482 echo="$dir/echo"
483 break
484 fi
485 done
486 IFS="$lt_save_ifs"
487
488 if test "X$echo" = Xecho; then
489 # We didn't find a better echo, so look for alternatives.
490 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
491 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
492 test "X$echo_testing_string" = "X$echo_test_string"; then
493 # This shell has a builtin print -r that does the trick.
494 echo='print -r'
495 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
496 test "X$CONFIG_SHELL" != X/bin/ksh; then
497 # If we have ksh, try running configure again with it.
498 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
499 export ORIGINAL_CONFIG_SHELL
500 CONFIG_SHELL=/bin/ksh
501 export CONFIG_SHELL
502 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
503 else
504 # Try using printf.
505 echo='printf %s\n'
506 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
507 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
508 test "X$echo_testing_string" = "X$echo_test_string"; then
509 # Cool, printf works
510 :
511 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
512 test "X$echo_testing_string" = 'X\t' &&
513 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
514 test "X$echo_testing_string" = "X$echo_test_string"; then
515 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
516 export CONFIG_SHELL
517 SHELL="$CONFIG_SHELL"
518 export SHELL
519 echo="$CONFIG_SHELL [$]0 --fallback-echo"
520 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
521 test "X$echo_testing_string" = 'X\t' &&
522 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
523 test "X$echo_testing_string" = "X$echo_test_string"; then
524 echo="$CONFIG_SHELL [$]0 --fallback-echo"
525 else
526 # maybe with a smaller string...
527 prev=:
528
529 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
530 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
531 then
532 break
533 fi
534 prev="$cmd"
535 done
536
537 if test "$prev" != 'sed 50q "[$]0"'; then
538 echo_test_string=`eval $prev`
539 export echo_test_string
540 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
541 else
542 # Oops. We lost completely, so just stick with echo.
543 echo=echo
544 fi
545 fi
546 fi
547 fi
548 fi
549 fi
550
551 # Copy echo and quote the copy suitably for passing to libtool from
552 # the Makefile, instead of quoting the original, which is used later.
553 ECHO=$echo
554 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
555 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
556 fi
557
558 AC_SUBST(ECHO)
559 ])])# _LT_AC_PROG_ECHO_BACKSLASH
560
561
562 # _LT_AC_LOCK
563 # -----------
564 AC_DEFUN([_LT_AC_LOCK],
565 [AC_ARG_ENABLE([libtool-lock],
566 [AC_HELP_STRING([--disable-libtool-lock],
567 [avoid locking (might break parallel builds)])])
568 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
569
570 # Some flags need to be propagated to the compiler or linker for good
571 # libtool support.
572 case $host in
573 ia64-*-hpux*)
574 # Find out which ABI we are using.
575 echo 'int i;' > conftest.$ac_ext
576 if AC_TRY_EVAL(ac_compile); then
577 case `/usr/bin/file conftest.$ac_objext` in
578 *ELF-32*)
579 HPUX_IA64_MODE="32"
580 ;;
581 *ELF-64*)
582 HPUX_IA64_MODE="64"
583 ;;
584 esac
585 fi
586 rm -rf conftest*
587 ;;
588 *-*-irix6*)
589 # Find out which ABI we are using.
590 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
591 if AC_TRY_EVAL(ac_compile); then
592 if test "$lt_cv_prog_gnu_ld" = yes; then
593 case `/usr/bin/file conftest.$ac_objext` in
594 *32-bit*)
595 LD="${LD-ld} -melf32bsmip"
596 ;;
597 *N32*)
598 LD="${LD-ld} -melf32bmipn32"
599 ;;
600 *64-bit*)
601 LD="${LD-ld} -melf64bmip"
602 ;;
603 esac
604 else
605 case `/usr/bin/file conftest.$ac_objext` in
606 *32-bit*)
607 LD="${LD-ld} -32"
608 ;;
609 *N32*)
610 LD="${LD-ld} -n32"
611 ;;
612 *64-bit*)
613 LD="${LD-ld} -64"
614 ;;
615 esac
616 fi
617 fi
618 rm -rf conftest*
619 ;;
620
621 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
622 s390*-*linux*|sparc*-*linux*)
623 # Find out which ABI we are using.
624 echo 'int i;' > conftest.$ac_ext
625 if AC_TRY_EVAL(ac_compile); then
626 case `/usr/bin/file conftest.o` in
627 *32-bit*)
628 case $host in
629 x86_64-*kfreebsd*-gnu)
630 LD="${LD-ld} -m elf_i386_fbsd"
631 ;;
632 x86_64-*linux*)
633 LD="${LD-ld} -m elf_i386"
634 ;;
635 ppc64-*linux*|powerpc64-*linux*)
636 LD="${LD-ld} -m elf32ppclinux"
637 ;;
638 s390x-*linux*)
639 LD="${LD-ld} -m elf_s390"
640 ;;
641 sparc64-*linux*)
642 LD="${LD-ld} -m elf32_sparc"
643 ;;
644 esac
645 ;;
646 *64-bit*)
647 case $host in
648 x86_64-*kfreebsd*-gnu)
649 LD="${LD-ld} -m elf_x86_64_fbsd"
650 ;;
651 x86_64-*linux*)
652 LD="${LD-ld} -m elf_x86_64"
653 ;;
654 ppc*-*linux*|powerpc*-*linux*)
655 LD="${LD-ld} -m elf64ppc"
656 ;;
657 s390*-*linux*)
658 LD="${LD-ld} -m elf64_s390"
659 ;;
660 sparc*-*linux*)
661 LD="${LD-ld} -m elf64_sparc"
662 ;;
663 esac
664 ;;
665 esac
666 fi
667 rm -rf conftest*
668 ;;
669
670 *-*-sco3.2v5*)
671 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
672 SAVE_CFLAGS="$CFLAGS"
673 CFLAGS="$CFLAGS -belf"
674 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
675 [AC_LANG_PUSH(C)
676 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
677 AC_LANG_POP])
678 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
679 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
680 CFLAGS="$SAVE_CFLAGS"
681 fi
682 ;;
683 sparc*-*solaris*)
684 # Find out which ABI we are using.
685 echo 'int i;' > conftest.$ac_ext
686 if AC_TRY_EVAL(ac_compile); then
687 case `/usr/bin/file conftest.o` in
688 *64-bit*)
689 case $lt_cv_prog_gnu_ld in
690 yes*) LD="${LD-ld} -m elf64_sparc" ;;
691 *)
692 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
693 LD="${LD-ld} -64"
694 fi
695 ;;
696 esac
697 ;;
698 esac
699 fi
700 rm -rf conftest*
701 ;;
702
703 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
704 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
705 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
706 AC_CHECK_TOOL(AS, as, false)
707 AC_CHECK_TOOL(OBJDUMP, objdump, false)
708 ;;
709 ])
710 esac
711
712 need_locks="$enable_libtool_lock"
713
714 ])# _LT_AC_LOCK
715
716
717 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
718 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
719 # ----------------------------------------------------------------
720 # Check whether the given compiler option works
721 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
722 [AC_REQUIRE([LT_AC_PROG_SED])
723 AC_CACHE_CHECK([$1], [$2],
724 [$2=no
725 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
727 lt_compiler_flag="$3"
728 # Insert the option either (1) after the last *FLAGS variable, or
729 # (2) before a word containing "conftest.", or (3) at the end.
730 # Note that $ac_compile itself does not contain backslashes and begins
731 # with a dollar sign (not a hyphen), so the echo should work correctly.
732 # The option is referenced via a variable to avoid confusing sed.
733 lt_compile=`echo "$ac_compile" | $SED \
734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
735 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
736 -e 's:$: $lt_compiler_flag:'`
737 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
738 (eval "$lt_compile" 2>conftest.err)
739 ac_status=$?
740 cat conftest.err >&AS_MESSAGE_LOG_FD
741 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
742 if (exit $ac_status) && test -s "$ac_outfile"; then
743 # The compiler can only warn and ignore the option if not recognized
744 # So say no if there are warnings other than the usual output.
745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
748 $2=yes
749 fi
750 fi
751 $rm conftest*
752 ])
753
754 if test x"[$]$2" = xyes; then
755 ifelse([$5], , :, [$5])
756 else
757 ifelse([$6], , :, [$6])
758 fi
759 ])# AC_LIBTOOL_COMPILER_OPTION
760
761
762 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
763 # [ACTION-SUCCESS], [ACTION-FAILURE])
764 # ------------------------------------------------------------
765 # Check whether the given compiler option works
766 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
767 [AC_REQUIRE([LT_AC_PROG_SED])dnl
768 AC_CACHE_CHECK([$1], [$2],
769 [$2=no
770 save_LDFLAGS="$LDFLAGS"
771 LDFLAGS="$LDFLAGS $3"
772 echo "$lt_simple_link_test_code" > conftest.$ac_ext
773 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
774 # The linker can only warn and ignore the option if not recognized
775 # So say no if there are warnings
776 if test -s conftest.err; then
777 # Append any errors to the config.log.
778 cat conftest.err 1>&AS_MESSAGE_LOG_FD
779 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
781 if diff conftest.exp conftest.er2 >/dev/null; then
782 $2=yes
783 fi
784 else
785 $2=yes
786 fi
787 fi
788 $rm -r conftest*
789 LDFLAGS="$save_LDFLAGS"
790 ])
791
792 if test x"[$]$2" = xyes; then
793 ifelse([$4], , :, [$4])
794 else
795 ifelse([$5], , :, [$5])
796 fi
797 ])# AC_LIBTOOL_LINKER_OPTION
798
799
800 # AC_LIBTOOL_SYS_MAX_CMD_LEN
801 # --------------------------
802 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
803 [# find the maximum length of command line arguments
804 AC_MSG_CHECKING([the maximum length of command line arguments])
805 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
806 i=0
807 teststring="ABCD"
808
809 case $build_os in
810 msdosdjgpp*)
811 # On DJGPP, this test can blow up pretty badly due to problems in libc
812 # (any single argument exceeding 2000 bytes causes a buffer overrun
813 # during glob expansion). Even if it were fixed, the result of this
814 # check would be larger than it should be.
815 lt_cv_sys_max_cmd_len=12288; # 12K is about right
816 ;;
817
818 gnu*)
819 # Under GNU Hurd, this test is not required because there is
820 # no limit to the length of command line arguments.
821 # Libtool will interpret -1 as no limit whatsoever
822 lt_cv_sys_max_cmd_len=-1;
823 ;;
824
825 cygwin* | mingw*)
826 # On Win9x/ME, this test blows up -- it succeeds, but takes
827 # about 5 minutes as the teststring grows exponentially.
828 # Worse, since 9x/ME are not pre-emptively multitasking,
829 # you end up with a "frozen" computer, even though with patience
830 # the test eventually succeeds (with a max line length of 256k).
831 # Instead, let's just punt: use the minimum linelength reported by
832 # all of the supported platforms: 8192 (on NT/2K/XP).
833 lt_cv_sys_max_cmd_len=8192;
834 ;;
835
836 amigaos*)
837 # On AmigaOS with pdksh, this test takes hours, literally.
838 # So we just punt and use a minimum line length of 8192.
839 lt_cv_sys_max_cmd_len=8192;
840 ;;
841
842 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
843 # This has been around since 386BSD, at least. Likely further.
844 if test -x /sbin/sysctl; then
845 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
846 elif test -x /usr/sbin/sysctl; then
847 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
848 else
849 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
850 fi
851 # And add a safety zone
852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
854 ;;
855
856 interix*)
857 # We know the value 262144 and hardcode it with a safety zone (like BSD)
858 lt_cv_sys_max_cmd_len=196608
859 ;;
860
861 osf*)
862 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
863 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
864 # nice to cause kernel panics so lets avoid the loop below.
865 # First set a reasonable default.
866 lt_cv_sys_max_cmd_len=16384
867 #
868 if test -x /sbin/sysconfig; then
869 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
870 *1*) lt_cv_sys_max_cmd_len=-1 ;;
871 esac
872 fi
873 ;;
874 sco3.2v5*)
875 lt_cv_sys_max_cmd_len=102400
876 ;;
877 sysv5* | sco5v6* | sysv4.2uw2*)
878 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
879 if test -n "$kargmax"; then
880 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
881 else
882 lt_cv_sys_max_cmd_len=32768
883 fi
884 ;;
885 *)
886 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
887 if test -n "$lt_cv_sys_max_cmd_len"; then
888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
890 else
891 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
892 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
893 = "XX$teststring") >/dev/null 2>&1 &&
894 new_result=`expr "X$teststring" : ".*" 2>&1` &&
895 lt_cv_sys_max_cmd_len=$new_result &&
896 test $i != 17 # 1/2 MB should be enough
897 do
898 i=`expr $i + 1`
899 teststring=$teststring$teststring
900 done
901 teststring=
902 # Add a significant safety factor because C++ compilers can tack on massive
903 # amounts of additional arguments before passing them to the linker.
904 # It appears as though 1/2 is a usable value.
905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
906 fi
907 ;;
908 esac
909 ])
910 if test -n $lt_cv_sys_max_cmd_len ; then
911 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
912 else
913 AC_MSG_RESULT(none)
914 fi
915 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
916
917
918 # _LT_AC_CHECK_DLFCN
919 # ------------------
920 AC_DEFUN([_LT_AC_CHECK_DLFCN],
921 [AC_CHECK_HEADERS(dlfcn.h)dnl
922 ])# _LT_AC_CHECK_DLFCN
923
924
925 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
926 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
927 # ---------------------------------------------------------------------
928 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
929 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
930 if test "$cross_compiling" = yes; then :
931 [$4]
932 else
933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
934 lt_status=$lt_dlunknown
935 cat > conftest.$ac_ext <<EOF
936 [#line __oline__ "configure"
937 #include "confdefs.h"
938
939 #if HAVE_DLFCN_H
940 #include <dlfcn.h>
941 #endif
942
943 #include <stdio.h>
944
945 #ifdef RTLD_GLOBAL
946 # define LT_DLGLOBAL RTLD_GLOBAL
947 #else
948 # ifdef DL_GLOBAL
949 # define LT_DLGLOBAL DL_GLOBAL
950 # else
951 # define LT_DLGLOBAL 0
952 # endif
953 #endif
954
955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
956 find out it does not work in some platform. */
957 #ifndef LT_DLLAZY_OR_NOW
958 # ifdef RTLD_LAZY
959 # define LT_DLLAZY_OR_NOW RTLD_LAZY
960 # else
961 # ifdef DL_LAZY
962 # define LT_DLLAZY_OR_NOW DL_LAZY
963 # else
964 # ifdef RTLD_NOW
965 # define LT_DLLAZY_OR_NOW RTLD_NOW
966 # else
967 # ifdef DL_NOW
968 # define LT_DLLAZY_OR_NOW DL_NOW
969 # else
970 # define LT_DLLAZY_OR_NOW 0
971 # endif
972 # endif
973 # endif
974 # endif
975 #endif
976
977 #ifdef __cplusplus
978 extern "C" void exit (int);
979 #endif
980
981 void fnord() { int i=42;}
982 int main ()
983 {
984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
985 int status = $lt_dlunknown;
986
987 if (self)
988 {
989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
990 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
991 /* dlclose (self); */
992 }
993 else
994 puts (dlerror ());
995
996 exit (status);
997 }]
998 EOF
999 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1000 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1001 lt_status=$?
1002 case x$lt_status in
1003 x$lt_dlno_uscore) $1 ;;
1004 x$lt_dlneed_uscore) $2 ;;
1005 x$lt_dlunknown|x*) $3 ;;
1006 esac
1007 else :
1008 # compilation failed
1009 $3
1010 fi
1011 fi
1012 rm -fr conftest*
1013 ])# _LT_AC_TRY_DLOPEN_SELF
1014
1015
1016 # AC_LIBTOOL_DLOPEN_SELF
1017 # ----------------------
1018 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1019 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1020 if test "x$enable_dlopen" != xyes; then
1021 enable_dlopen=unknown
1022 enable_dlopen_self=unknown
1023 enable_dlopen_self_static=unknown
1024 else
1025 lt_cv_dlopen=no
1026 lt_cv_dlopen_libs=
1027
1028 case $host_os in
1029 beos*)
1030 lt_cv_dlopen="load_add_on"
1031 lt_cv_dlopen_libs=
1032 lt_cv_dlopen_self=yes
1033 ;;
1034
1035 mingw* | pw32*)
1036 lt_cv_dlopen="LoadLibrary"
1037 lt_cv_dlopen_libs=
1038 ;;
1039
1040 cygwin*)
1041 lt_cv_dlopen="dlopen"
1042 lt_cv_dlopen_libs=
1043 ;;
1044
1045 darwin*)
1046 # if libdl is installed we need to link against it
1047 AC_CHECK_LIB([dl], [dlopen],
1048 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1049 lt_cv_dlopen="dyld"
1050 lt_cv_dlopen_libs=
1051 lt_cv_dlopen_self=yes
1052 ])
1053 ;;
1054
1055 *)
1056 AC_CHECK_FUNC([shl_load],
1057 [lt_cv_dlopen="shl_load"],
1058 [AC_CHECK_LIB([dld], [shl_load],
1059 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1060 [AC_CHECK_FUNC([dlopen],
1061 [lt_cv_dlopen="dlopen"],
1062 [AC_CHECK_LIB([dl], [dlopen],
1063 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1064 [AC_CHECK_LIB([svld], [dlopen],
1065 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1066 [AC_CHECK_LIB([dld], [dld_link],
1067 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1068 ])
1069 ])
1070 ])
1071 ])
1072 ])
1073 ;;
1074 esac
1075
1076 if test "x$lt_cv_dlopen" != xno; then
1077 enable_dlopen=yes
1078 else
1079 enable_dlopen=no
1080 fi
1081
1082 case $lt_cv_dlopen in
1083 dlopen)
1084 save_CPPFLAGS="$CPPFLAGS"
1085 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1086
1087 save_LDFLAGS="$LDFLAGS"
1088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1089
1090 save_LIBS="$LIBS"
1091 LIBS="$lt_cv_dlopen_libs $LIBS"
1092
1093 AC_CACHE_CHECK([whether a program can dlopen itself],
1094 lt_cv_dlopen_self, [dnl
1095 _LT_AC_TRY_DLOPEN_SELF(
1096 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1097 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1098 ])
1099
1100 if test "x$lt_cv_dlopen_self" = xyes; then
1101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1102 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1103 lt_cv_dlopen_self_static, [dnl
1104 _LT_AC_TRY_DLOPEN_SELF(
1105 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1106 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1107 ])
1108 fi
1109
1110 CPPFLAGS="$save_CPPFLAGS"
1111 LDFLAGS="$save_LDFLAGS"
1112 LIBS="$save_LIBS"
1113 ;;
1114 esac
1115
1116 case $lt_cv_dlopen_self in
1117 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1118 *) enable_dlopen_self=unknown ;;
1119 esac
1120
1121 case $lt_cv_dlopen_self_static in
1122 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1123 *) enable_dlopen_self_static=unknown ;;
1124 esac
1125 fi
1126 ])# AC_LIBTOOL_DLOPEN_SELF
1127
1128
1129 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1130 # ---------------------------------
1131 # Check to see if options -c and -o are simultaneously supported by compiler
1132 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1133 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1134 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1135 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1136 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1137 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1138 $rm -r conftest 2>/dev/null
1139 mkdir conftest
1140 cd conftest
1141 mkdir out
1142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1143
1144 lt_compiler_flag="-o out/conftest2.$ac_objext"
1145 # Insert the option either (1) after the last *FLAGS variable, or
1146 # (2) before a word containing "conftest.", or (3) at the end.
1147 # Note that $ac_compile itself does not contain backslashes and begins
1148 # with a dollar sign (not a hyphen), so the echo should work correctly.
1149 lt_compile=`echo "$ac_compile" | $SED \
1150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1151 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1152 -e 's:$: $lt_compiler_flag:'`
1153 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1154 (eval "$lt_compile" 2>out/conftest.err)
1155 ac_status=$?
1156 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1157 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1159 then
1160 # The compiler can only warn and ignore the option if not recognized
1161 # So say no if there are warnings
1162 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1165 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1166 fi
1167 fi
1168 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1169 $rm conftest*
1170 # SGI C++ compiler will create directory out/ii_files/ for
1171 # template instantiation
1172 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1173 $rm out/* && rmdir out
1174 cd ..
1175 rmdir conftest
1176 $rm conftest*
1177 ])
1178 ])# AC_LIBTOOL_PROG_CC_C_O
1179
1180
1181 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1182 # -----------------------------------------
1183 # Check to see if we can do hard links to lock some files if needed
1184 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1185 [AC_REQUIRE([_LT_AC_LOCK])dnl
1186
1187 hard_links="nottested"
1188 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1189 # do not overwrite the value of need_locks provided by the user
1190 AC_MSG_CHECKING([if we can lock with hard links])
1191 hard_links=yes
1192 $rm conftest*
1193 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1194 touch conftest.a
1195 ln conftest.a conftest.b 2>&5 || hard_links=no
1196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1197 AC_MSG_RESULT([$hard_links])
1198 if test "$hard_links" = no; then
1199 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1200 need_locks=warn
1201 fi
1202 else
1203 need_locks=no
1204 fi
1205 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1206
1207
1208 # AC_LIBTOOL_OBJDIR
1209 # -----------------
1210 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1211 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1212 [rm -f .libs 2>/dev/null
1213 mkdir .libs 2>/dev/null
1214 if test -d .libs; then
1215 lt_cv_objdir=.libs
1216 else
1217 # MS-DOS does not allow filenames that begin with a dot.
1218 lt_cv_objdir=_libs
1219 fi
1220 rmdir .libs 2>/dev/null])
1221 objdir=$lt_cv_objdir
1222 ])# AC_LIBTOOL_OBJDIR
1223
1224
1225 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1226 # ----------------------------------------------
1227 # Check hardcoding attributes.
1228 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1229 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1230 _LT_AC_TAGVAR(hardcode_action, $1)=
1231 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1232 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1233 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1234
1235 # We can hardcode non-existant directories.
1236 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1237 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1238 # have to relink, otherwise we might link with an installed library
1239 # when we should be linking with a yet-to-be-installed one
1240 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1241 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1242 # Linking always hardcodes the temporary library directory.
1243 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1244 else
1245 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1246 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1247 fi
1248 else
1249 # We cannot hardcode anything, or else we can only hardcode existing
1250 # directories.
1251 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1252 fi
1253 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1254
1255 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1256 # Fast installation is not supported
1257 enable_fast_install=no
1258 elif test "$shlibpath_overrides_runpath" = yes ||
1259 test "$enable_shared" = no; then
1260 # Fast installation is not necessary
1261 enable_fast_install=needless
1262 fi
1263 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1264
1265
1266 # AC_LIBTOOL_SYS_LIB_STRIP
1267 # ------------------------
1268 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1269 [striplib=
1270 old_striplib=
1271 AC_MSG_CHECKING([whether stripping libraries is possible])
1272 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1273 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1274 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1275 AC_MSG_RESULT([yes])
1276 else
1277 # FIXME - insert some real tests, host_os isn't really good enough
1278 case $host_os in
1279 darwin*)
1280 if test -n "$STRIP" ; then
1281 striplib="$STRIP -x"
1282 old_striplib="$STRIP -S"
1283 AC_MSG_RESULT([yes])
1284 else
1285 AC_MSG_RESULT([no])
1286 fi
1287 ;;
1288 *)
1289 AC_MSG_RESULT([no])
1290 ;;
1291 esac
1292 fi
1293 ])# AC_LIBTOOL_SYS_LIB_STRIP
1294
1295
1296 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1297 # -----------------------------
1298 # PORTME Fill in your ld.so characteristics
1299 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1300 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1301 AC_MSG_CHECKING([dynamic linker characteristics])
1302 library_names_spec=
1303 libname_spec='lib$name'
1304 soname_spec=
1305 shrext_cmds=".so"
1306 postinstall_cmds=
1307 postuninstall_cmds=
1308 finish_cmds=
1309 finish_eval=
1310 shlibpath_var=
1311 shlibpath_overrides_runpath=unknown
1312 version_type=none
1313 dynamic_linker="$host_os ld.so"
1314 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1315 m4_if($1,[],[
1316 if test "$GCC" = yes; then
1317 case $host_os in
1318 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1319 *) lt_awk_arg="/^libraries:/" ;;
1320 esac
1321 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1322 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1323 # if the path contains ";" then we assume it to be the separator
1324 # otherwise default to the standard path separator (i.e. ":") - it is
1325 # assumed that no part of a normal pathname contains ";" but that should
1326 # okay in the real world where ";" in dirpaths is itself problematic.
1327 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1328 else
1329 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1330 fi
1331 # Ok, now we have the path, separated by spaces, we can step through it
1332 # and add multilib dir if necessary.
1333 lt_tmp_lt_search_path_spec=
1334 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1335 for lt_sys_path in $lt_search_path_spec; do
1336 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1337 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1338 else
1339 test -d "$lt_sys_path" && \
1340 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1341 fi
1342 done
1343 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1344 BEGIN {RS=" "; FS="/|\n";} {
1345 lt_foo="";
1346 lt_count=0;
1347 for (lt_i = NF; lt_i > 0; lt_i--) {
1348 if ($lt_i != "" && $lt_i != ".") {
1349 if ($lt_i == "..") {
1350 lt_count++;
1351 } else {
1352 if (lt_count == 0) {
1353 lt_foo="/" $lt_i lt_foo;
1354 } else {
1355 lt_count--;
1356 }
1357 }
1358 }
1359 }
1360 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1361 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1362 }'`
1363 sys_lib_search_path_spec=`echo $lt_search_path_spec`
1364 else
1365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1366 fi])
1367 need_lib_prefix=unknown
1368 hardcode_into_libs=no
1369
1370 # when you set need_version to no, make sure it does not cause -set_version
1371 # flags to be left without arguments
1372 need_version=unknown
1373
1374 case $host_os in
1375 aix3*)
1376 version_type=linux
1377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1378 shlibpath_var=LIBPATH
1379
1380 # AIX 3 has no versioning support, so we append a major version to the name.
1381 soname_spec='${libname}${release}${shared_ext}$major'
1382 ;;
1383
1384 aix[[4-9]]*)
1385 version_type=linux
1386 need_lib_prefix=no
1387 need_version=no
1388 hardcode_into_libs=yes
1389 if test "$host_cpu" = ia64; then
1390 # AIX 5 supports IA64
1391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1392 shlibpath_var=LD_LIBRARY_PATH
1393 else
1394 # With GCC up to 2.95.x, collect2 would create an import file
1395 # for dependence libraries. The import file would start with
1396 # the line `#! .'. This would cause the generated library to
1397 # depend on `.', always an invalid library. This was fixed in
1398 # development snapshots of GCC prior to 3.0.
1399 case $host_os in
1400 aix4 | aix4.[[01]] | aix4.[[01]].*)
1401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1402 echo ' yes '
1403 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1404 :
1405 else
1406 can_build_shared=no
1407 fi
1408 ;;
1409 esac
1410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1411 # soname into executable. Probably we can add versioning support to
1412 # collect2, so additional links can be useful in future.
1413 if test "$aix_use_runtimelinking" = yes; then
1414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1415 # instead of lib<name>.a to let people know that these are not
1416 # typical AIX shared libraries.
1417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1418 else
1419 # We preserve .a as extension for shared libraries through AIX4.2
1420 # and later when we are not doing run time linking.
1421 library_names_spec='${libname}${release}.a $libname.a'
1422 soname_spec='${libname}${release}${shared_ext}$major'
1423 fi
1424 shlibpath_var=LIBPATH
1425 fi
1426 ;;
1427
1428 amigaos*)
1429 library_names_spec='$libname.ixlibrary $libname.a'
1430 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1431 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'
1432 ;;
1433
1434 beos*)
1435 library_names_spec='${libname}${shared_ext}'
1436 dynamic_linker="$host_os ld.so"
1437 shlibpath_var=LIBRARY_PATH
1438 ;;
1439
1440 bsdi[[45]]*)
1441 version_type=linux
1442 need_version=no
1443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1444 soname_spec='${libname}${release}${shared_ext}$major'
1445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1446 shlibpath_var=LD_LIBRARY_PATH
1447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1449 # the default ld.so.conf also contains /usr/contrib/lib and
1450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1451 # libtool to hard-code these into programs
1452 ;;
1453
1454 cygwin* | mingw* | pw32*)
1455 version_type=windows
1456 shrext_cmds=".dll"
1457 need_version=no
1458 need_lib_prefix=no
1459
1460 case $GCC,$host_os in
1461 yes,cygwin* | yes,mingw* | yes,pw32*)
1462 library_names_spec='$libname.dll.a'
1463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1464 postinstall_cmds='base_file=`basename \${file}`~
1465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1466 dldir=$destdir/`dirname \$dlpath`~
1467 test -d \$dldir || mkdir -p \$dldir~
1468 $install_prog $dir/$dlname \$dldir/$dlname~
1469 chmod a+x \$dldir/$dlname'
1470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1471 dlpath=$dir/\$dldll~
1472 $rm \$dlpath'
1473 shlibpath_overrides_runpath=yes
1474
1475 case $host_os in
1476 cygwin*)
1477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1479 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1480 ;;
1481 mingw*)
1482 # MinGW DLLs use traditional 'lib' prefix
1483 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1484 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1485 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1486 # It is most probably a Windows format PATH printed by
1487 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1488 # path with ; separators, and with drive letters. We can handle the
1489 # drive letters (cygwin fileutils understands them), so leave them,
1490 # especially as we might pass files found there to a mingw objdump,
1491 # which wouldn't understand a cygwinified path. Ahh.
1492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1493 else
1494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1495 fi
1496 ;;
1497 pw32*)
1498 # pw32 DLLs use 'pw' prefix rather than 'lib'
1499 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1500 ;;
1501 esac
1502 ;;
1503
1504 *)
1505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1506 ;;
1507 esac
1508 dynamic_linker='Win32 ld.exe'
1509 # FIXME: first we should search . and the directory the executable is in
1510 shlibpath_var=PATH
1511 ;;
1512
1513 darwin* | rhapsody*)
1514 dynamic_linker="$host_os dyld"
1515 version_type=darwin
1516 need_lib_prefix=no
1517 need_version=no
1518 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1519 soname_spec='${libname}${release}${major}$shared_ext'
1520 shlibpath_overrides_runpath=yes
1521 shlibpath_var=DYLD_LIBRARY_PATH
1522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1523 m4_if([$1], [],[
1524 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1526 ;;
1527
1528 dgux*)
1529 version_type=linux
1530 need_lib_prefix=no
1531 need_version=no
1532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1533 soname_spec='${libname}${release}${shared_ext}$major'
1534 shlibpath_var=LD_LIBRARY_PATH
1535 ;;
1536
1537 freebsd1*)
1538 dynamic_linker=no
1539 ;;
1540
1541 freebsd* | dragonfly*)
1542 # DragonFly does not have aout. When/if they implement a new
1543 # versioning mechanism, adjust this.
1544 if test -x /usr/bin/objformat; then
1545 objformat=`/usr/bin/objformat`
1546 else
1547 case $host_os in
1548 freebsd[[123]]*) objformat=aout ;;
1549 *) objformat=elf ;;
1550 esac
1551 fi
1552 version_type=freebsd-$objformat
1553 case $version_type in
1554 freebsd-elf*)
1555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1556 need_version=no
1557 need_lib_prefix=no
1558 ;;
1559 freebsd-*)
1560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1561 need_version=yes
1562 ;;
1563 esac
1564 shlibpath_var=LD_LIBRARY_PATH
1565 case $host_os in
1566 freebsd2*)
1567 shlibpath_overrides_runpath=yes
1568 ;;
1569 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1570 shlibpath_overrides_runpath=yes
1571 hardcode_into_libs=yes
1572 ;;
1573 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1574 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1575 shlibpath_overrides_runpath=no
1576 hardcode_into_libs=yes
1577 ;;
1578 *) # from 4.6 on, and DragonFly
1579 shlibpath_overrides_runpath=yes
1580 hardcode_into_libs=yes
1581 ;;
1582 esac
1583 ;;
1584
1585 gnu*)
1586 version_type=linux
1587 need_lib_prefix=no
1588 need_version=no
1589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1590 soname_spec='${libname}${release}${shared_ext}$major'
1591 shlibpath_var=LD_LIBRARY_PATH
1592 hardcode_into_libs=yes
1593 ;;
1594
1595 hpux9* | hpux10* | hpux11*)
1596 # Give a soname corresponding to the major version so that dld.sl refuses to
1597 # link against other versions.
1598 version_type=sunos
1599 need_lib_prefix=no
1600 need_version=no
1601 case $host_cpu in
1602 ia64*)
1603 shrext_cmds='.so'
1604 hardcode_into_libs=yes
1605 dynamic_linker="$host_os dld.so"
1606 shlibpath_var=LD_LIBRARY_PATH
1607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1609 soname_spec='${libname}${release}${shared_ext}$major'
1610 if test "X$HPUX_IA64_MODE" = X32; then
1611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1612 else
1613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1614 fi
1615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1616 ;;
1617 hppa*64*)
1618 shrext_cmds='.sl'
1619 hardcode_into_libs=yes
1620 dynamic_linker="$host_os dld.sl"
1621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1624 soname_spec='${libname}${release}${shared_ext}$major'
1625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1627 ;;
1628 *)
1629 shrext_cmds='.sl'
1630 dynamic_linker="$host_os dld.sl"
1631 shlibpath_var=SHLIB_PATH
1632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1634 soname_spec='${libname}${release}${shared_ext}$major'
1635 ;;
1636 esac
1637 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1638 postinstall_cmds='chmod 555 $lib'
1639 ;;
1640
1641 interix[[3-9]]*)
1642 version_type=linux
1643 need_lib_prefix=no
1644 need_version=no
1645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1646 soname_spec='${libname}${release}${shared_ext}$major'
1647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1648 shlibpath_var=LD_LIBRARY_PATH
1649 shlibpath_overrides_runpath=no
1650 hardcode_into_libs=yes
1651 ;;
1652
1653 irix5* | irix6* | nonstopux*)
1654 case $host_os in
1655 nonstopux*) version_type=nonstopux ;;
1656 *)
1657 if test "$lt_cv_prog_gnu_ld" = yes; then
1658 version_type=linux
1659 else
1660 version_type=irix
1661 fi ;;
1662 esac
1663 need_lib_prefix=no
1664 need_version=no
1665 soname_spec='${libname}${release}${shared_ext}$major'
1666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1667 case $host_os in
1668 irix5* | nonstopux*)
1669 libsuff= shlibsuff=
1670 ;;
1671 *)
1672 case $LD in # libtool.m4 will add one of these switches to LD
1673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1674 libsuff= shlibsuff= libmagic=32-bit;;
1675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1676 libsuff=32 shlibsuff=N32 libmagic=N32;;
1677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1679 *) libsuff= shlibsuff= libmagic=never-match;;
1680 esac
1681 ;;
1682 esac
1683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1684 shlibpath_overrides_runpath=no
1685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1687 hardcode_into_libs=yes
1688 ;;
1689
1690 # No shared lib support for Linux oldld, aout, or coff.
1691 linux*oldld* | linux*aout* | linux*coff*)
1692 dynamic_linker=no
1693 ;;
1694
1695 # This must be Linux ELF.
1696 linux* | k*bsd*-gnu)
1697 version_type=linux
1698 need_lib_prefix=no
1699 need_version=no
1700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1701 soname_spec='${libname}${release}${shared_ext}$major'
1702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1703 shlibpath_var=LD_LIBRARY_PATH
1704 shlibpath_overrides_runpath=no
1705 # This implies no fast_install, which is unacceptable.
1706 # Some rework will be needed to allow for fast_install
1707 # before this can be enabled.
1708 hardcode_into_libs=yes
1709
1710 # Append ld.so.conf contents to the search path
1711 if test -f /etc/ld.so.conf; then
1712 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' ' '`
1713 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1714 fi
1715
1716 # We used to test for /lib/ld.so.1 and disable shared libraries on
1717 # powerpc, because MkLinux only supported shared libraries with the
1718 # GNU dynamic linker. Since this was broken with cross compilers,
1719 # most powerpc-linux boxes support dynamic linking these days and
1720 # people can always --disable-shared, the test was removed, and we
1721 # assume the GNU/Linux dynamic linker is in use.
1722 dynamic_linker='GNU/Linux ld.so'
1723 ;;
1724
1725 netbsdelf*-gnu)
1726 version_type=linux
1727 need_lib_prefix=no
1728 need_version=no
1729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1730 soname_spec='${libname}${release}${shared_ext}$major'
1731 shlibpath_var=LD_LIBRARY_PATH
1732 shlibpath_overrides_runpath=no
1733 hardcode_into_libs=yes
1734 dynamic_linker='NetBSD ld.elf_so'
1735 ;;
1736
1737 netbsd*)
1738 version_type=sunos
1739 need_lib_prefix=no
1740 need_version=no
1741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1744 dynamic_linker='NetBSD (a.out) ld.so'
1745 else
1746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1747 soname_spec='${libname}${release}${shared_ext}$major'
1748 dynamic_linker='NetBSD ld.elf_so'
1749 fi
1750 shlibpath_var=LD_LIBRARY_PATH
1751 shlibpath_overrides_runpath=yes
1752 hardcode_into_libs=yes
1753 ;;
1754
1755 newsos6)
1756 version_type=linux
1757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1758 shlibpath_var=LD_LIBRARY_PATH
1759 shlibpath_overrides_runpath=yes
1760 ;;
1761
1762 nto-qnx*)
1763 version_type=linux
1764 need_lib_prefix=no
1765 need_version=no
1766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1767 soname_spec='${libname}${release}${shared_ext}$major'
1768 shlibpath_var=LD_LIBRARY_PATH
1769 shlibpath_overrides_runpath=yes
1770 ;;
1771
1772 openbsd*)
1773 version_type=sunos
1774 sys_lib_dlsearch_path_spec="/usr/lib"
1775 need_lib_prefix=no
1776 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1777 case $host_os in
1778 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1779 *) need_version=no ;;
1780 esac
1781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1783 shlibpath_var=LD_LIBRARY_PATH
1784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1785 case $host_os in
1786 openbsd2.[[89]] | openbsd2.[[89]].*)
1787 shlibpath_overrides_runpath=no
1788 ;;
1789 *)
1790 shlibpath_overrides_runpath=yes
1791 ;;
1792 esac
1793 else
1794 shlibpath_overrides_runpath=yes
1795 fi
1796 ;;
1797
1798 os2*)
1799 libname_spec='$name'
1800 shrext_cmds=".dll"
1801 need_lib_prefix=no
1802 library_names_spec='$libname${shared_ext} $libname.a'
1803 dynamic_linker='OS/2 ld.exe'
1804 shlibpath_var=LIBPATH
1805 ;;
1806
1807 osf3* | osf4* | osf5*)
1808 version_type=osf
1809 need_lib_prefix=no
1810 need_version=no
1811 soname_spec='${libname}${release}${shared_ext}$major'
1812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1813 shlibpath_var=LD_LIBRARY_PATH
1814 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1815 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1816 ;;
1817
1818 rdos*)
1819 dynamic_linker=no
1820 ;;
1821
1822 solaris*)
1823 version_type=linux
1824 need_lib_prefix=no
1825 need_version=no
1826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1827 soname_spec='${libname}${release}${shared_ext}$major'
1828 shlibpath_var=LD_LIBRARY_PATH
1829 shlibpath_overrides_runpath=yes
1830 hardcode_into_libs=yes
1831 # ldd complains unless libraries are executable
1832 postinstall_cmds='chmod +x $lib'
1833 ;;
1834
1835 sunos4*)
1836 version_type=sunos
1837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1838 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1839 shlibpath_var=LD_LIBRARY_PATH
1840 shlibpath_overrides_runpath=yes
1841 if test "$with_gnu_ld" = yes; then
1842 need_lib_prefix=no
1843 fi
1844 need_version=yes
1845 ;;
1846
1847 sysv4 | sysv4.3*)
1848 version_type=linux
1849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1850 soname_spec='${libname}${release}${shared_ext}$major'
1851 shlibpath_var=LD_LIBRARY_PATH
1852 case $host_vendor in
1853 sni)
1854 shlibpath_overrides_runpath=no
1855 need_lib_prefix=no
1856 export_dynamic_flag_spec='${wl}-Blargedynsym'
1857 runpath_var=LD_RUN_PATH
1858 ;;
1859 siemens)
1860 need_lib_prefix=no
1861 ;;
1862 motorola)
1863 need_lib_prefix=no
1864 need_version=no
1865 shlibpath_overrides_runpath=no
1866 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1867 ;;
1868 esac
1869 ;;
1870
1871 sysv4*MP*)
1872 if test -d /usr/nec ;then
1873 version_type=linux
1874 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1875 soname_spec='$libname${shared_ext}.$major'
1876 shlibpath_var=LD_LIBRARY_PATH
1877 fi
1878 ;;
1879
1880 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1881 version_type=freebsd-elf
1882 need_lib_prefix=no
1883 need_version=no
1884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1885 soname_spec='${libname}${release}${shared_ext}$major'
1886 shlibpath_var=LD_LIBRARY_PATH
1887 hardcode_into_libs=yes
1888 if test "$with_gnu_ld" = yes; then
1889 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1890 shlibpath_overrides_runpath=no
1891 else
1892 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1893 shlibpath_overrides_runpath=yes
1894 case $host_os in
1895 sco3.2v5*)
1896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1897 ;;
1898 esac
1899 fi
1900 sys_lib_dlsearch_path_spec='/usr/lib'
1901 ;;
1902
1903 uts4*)
1904 version_type=linux
1905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1906 soname_spec='${libname}${release}${shared_ext}$major'
1907 shlibpath_var=LD_LIBRARY_PATH
1908 ;;
1909
1910 *)
1911 dynamic_linker=no
1912 ;;
1913 esac
1914 AC_MSG_RESULT([$dynamic_linker])
1915 test "$dynamic_linker" = no && can_build_shared=no
1916
1917 AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1918 [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1919 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1920 AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1921 [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1922 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1923
1924 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1925 if test "$GCC" = yes; then
1926 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1927 fi
1928 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1929
1930
1931 # _LT_AC_TAGCONFIG
1932 # ----------------
1933 AC_DEFUN([_LT_AC_TAGCONFIG],
1934 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1935 AC_ARG_WITH([tags],
1936 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1937 [include additional configurations @<:@automatic@:>@])],
1938 [tagnames="$withval"])
1939
1940 if test -f "$ltmain" && test -n "$tagnames"; then
1941 if test ! -f "${ofile}"; then
1942 AC_MSG_WARN([output file `$ofile' does not exist])
1943 fi
1944
1945 if test -z "$LTCC"; then
1946 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1947 if test -z "$LTCC"; then
1948 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1949 else
1950 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1951 fi
1952 fi
1953 if test -z "$LTCFLAGS"; then
1954 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1955 fi
1956
1957 # Extract list of available tagged configurations in $ofile.
1958 # Note that this assumes the entire list is on one line.
1959 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1960
1961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1962 for tagname in $tagnames; do
1963 IFS="$lt_save_ifs"
1964 # Check whether tagname contains only valid characters
1965 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1966 "") ;;
1967 *) AC_MSG_ERROR([invalid tag name: $tagname])
1968 ;;
1969 esac
1970
1971 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1972 then
1973 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1974 fi
1975
1976 # Update the list of available tags.
1977 if test -n "$tagname"; then
1978 echo appending configuration tag \"$tagname\" to $ofile
1979
1980 case $tagname in
1981 CXX)
1982 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1983 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1984 (test "X$CXX" != "Xg++"))) ; then
1985 AC_LIBTOOL_LANG_CXX_CONFIG
1986 else
1987 tagname=""
1988 fi
1989 ;;
1990
1991 F77)
1992 if test -n "$F77" && test "X$F77" != "Xno"; then
1993 AC_LIBTOOL_LANG_F77_CONFIG
1994 else
1995 tagname=""
1996 fi
1997 ;;
1998
1999 GCJ)
2000 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2001 AC_LIBTOOL_LANG_GCJ_CONFIG
2002 else
2003 tagname=""
2004 fi
2005 ;;
2006
2007 RC)
2008 AC_LIBTOOL_LANG_RC_CONFIG
2009 ;;
2010
2011 *)
2012 AC_MSG_ERROR([Unsupported tag name: $tagname])
2013 ;;
2014 esac
2015
2016 # Append the new tag name to the list of available tags.
2017 if test -n "$tagname" ; then
2018 available_tags="$available_tags $tagname"
2019 fi
2020 fi
2021 done
2022 IFS="$lt_save_ifs"
2023
2024 # Now substitute the updated list of available tags.
2025 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2026 mv "${ofile}T" "$ofile"
2027 chmod +x "$ofile"
2028 else
2029 rm -f "${ofile}T"
2030 AC_MSG_ERROR([unable to update list of available tagged configurations.])
2031 fi
2032 fi
2033 ])# _LT_AC_TAGCONFIG
2034
2035
2036 # AC_LIBTOOL_DLOPEN
2037 # -----------------
2038 # enable checks for dlopen support
2039 AC_DEFUN([AC_LIBTOOL_DLOPEN],
2040 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2041 ])# AC_LIBTOOL_DLOPEN
2042
2043
2044 # AC_LIBTOOL_WIN32_DLL
2045 # --------------------
2046 # declare package support for building win32 DLLs
2047 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2048 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2049 ])# AC_LIBTOOL_WIN32_DLL
2050
2051
2052 # AC_ENABLE_SHARED([DEFAULT])
2053 # ---------------------------
2054 # implement the --enable-shared flag
2055 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2056 AC_DEFUN([AC_ENABLE_SHARED],
2057 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2058 AC_ARG_ENABLE([shared],
2059 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2060 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2061 [p=${PACKAGE-default}
2062 case $enableval in
2063 yes) enable_shared=yes ;;
2064 no) enable_shared=no ;;
2065 *)
2066 enable_shared=no
2067 # Look at the argument we got. We use all the common list separators.
2068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2069 for pkg in $enableval; do
2070 IFS="$lt_save_ifs"
2071 if test "X$pkg" = "X$p"; then
2072 enable_shared=yes
2073 fi
2074 done
2075 IFS="$lt_save_ifs"
2076 ;;
2077 esac],
2078 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2079 ])# AC_ENABLE_SHARED
2080
2081
2082 # AC_DISABLE_SHARED
2083 # -----------------
2084 # set the default shared flag to --disable-shared
2085 AC_DEFUN([AC_DISABLE_SHARED],
2086 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2087 AC_ENABLE_SHARED(no)
2088 ])# AC_DISABLE_SHARED
2089
2090
2091 # AC_ENABLE_STATIC([DEFAULT])
2092 # ---------------------------
2093 # implement the --enable-static flag
2094 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2095 AC_DEFUN([AC_ENABLE_STATIC],
2096 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2097 AC_ARG_ENABLE([static],
2098 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2099 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2100 [p=${PACKAGE-default}
2101 case $enableval in
2102 yes) enable_static=yes ;;
2103 no) enable_static=no ;;
2104 *)
2105 enable_static=no
2106 # Look at the argument we got. We use all the common list separators.
2107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2108 for pkg in $enableval; do
2109 IFS="$lt_save_ifs"
2110 if test "X$pkg" = "X$p"; then
2111 enable_static=yes
2112 fi
2113 done
2114 IFS="$lt_save_ifs"
2115 ;;
2116 esac],
2117 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2118 ])# AC_ENABLE_STATIC
2119
2120
2121 # AC_DISABLE_STATIC
2122 # -----------------
2123 # set the default static flag to --disable-static
2124 AC_DEFUN([AC_DISABLE_STATIC],
2125 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2126 AC_ENABLE_STATIC(no)
2127 ])# AC_DISABLE_STATIC
2128
2129
2130 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2131 # ---------------------------------
2132 # implement the --enable-fast-install flag
2133 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2134 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2135 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2136 AC_ARG_ENABLE([fast-install],
2137 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2138 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2139 [p=${PACKAGE-default}
2140 case $enableval in
2141 yes) enable_fast_install=yes ;;
2142 no) enable_fast_install=no ;;
2143 *)
2144 enable_fast_install=no
2145 # Look at the argument we got. We use all the common list separators.
2146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2147 for pkg in $enableval; do
2148 IFS="$lt_save_ifs"
2149 if test "X$pkg" = "X$p"; then
2150 enable_fast_install=yes
2151 fi
2152 done
2153 IFS="$lt_save_ifs"
2154 ;;
2155 esac],
2156 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2157 ])# AC_ENABLE_FAST_INSTALL
2158
2159
2160 # AC_DISABLE_FAST_INSTALL
2161 # -----------------------
2162 # set the default to --disable-fast-install
2163 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2164 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2165 AC_ENABLE_FAST_INSTALL(no)
2166 ])# AC_DISABLE_FAST_INSTALL
2167
2168
2169 # AC_LIBTOOL_PICMODE([MODE])
2170 # --------------------------
2171 # implement the --with-pic flag
2172 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2173 AC_DEFUN([AC_LIBTOOL_PICMODE],
2174 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2175 pic_mode=ifelse($#,1,$1,default)
2176 ])# AC_LIBTOOL_PICMODE
2177
2178
2179 # AC_PROG_EGREP
2180 # -------------
2181 # This is predefined starting with Autoconf 2.54, so this conditional
2182 # definition can be removed once we require Autoconf 2.54 or later.
2183 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2184 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2185 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2186 then ac_cv_prog_egrep='grep -E'
2187 else ac_cv_prog_egrep='egrep'
2188 fi])
2189 EGREP=$ac_cv_prog_egrep
2190 AC_SUBST([EGREP])
2191 ])])
2192
2193
2194 # AC_PATH_TOOL_PREFIX
2195 # -------------------
2196 # find a file program which can recognize shared library
2197 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2198 [AC_REQUIRE([AC_PROG_EGREP])dnl
2199 AC_MSG_CHECKING([for $1])
2200 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2201 [case $MAGIC_CMD in
2202 [[\\/*] | ?:[\\/]*])
2203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2204 ;;
2205 *)
2206 lt_save_MAGIC_CMD="$MAGIC_CMD"
2207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2208 dnl $ac_dummy forces splitting on constant user-supplied paths.
2209 dnl POSIX.2 word splitting is done only on the output of word expansions,
2210 dnl not every word. This closes a longstanding sh security hole.
2211 ac_dummy="ifelse([$2], , $PATH, [$2])"
2212 for ac_dir in $ac_dummy; do
2213 IFS="$lt_save_ifs"
2214 test -z "$ac_dir" && ac_dir=.
2215 if test -f $ac_dir/$1; then
2216 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2217 if test -n "$file_magic_test_file"; then
2218 case $deplibs_check_method in
2219 "file_magic "*)
2220 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2222 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2223 $EGREP "$file_magic_regex" > /dev/null; then
2224 :
2225 else
2226 cat <<EOF 1>&2
2227
2228 *** Warning: the command libtool uses to detect shared libraries,
2229 *** $file_magic_cmd, produces output that libtool cannot recognize.
2230 *** The result is that libtool may fail to recognize shared libraries
2231 *** as such. This will affect the creation of libtool libraries that
2232 *** depend on shared libraries, but programs linked with such libtool
2233 *** libraries will work regardless of this problem. Nevertheless, you
2234 *** may want to report the problem to your system manager and/or to
2235 *** bug-libtool@gnu.org
2236
2237 EOF
2238 fi ;;
2239 esac
2240 fi
2241 break
2242 fi
2243 done
2244 IFS="$lt_save_ifs"
2245 MAGIC_CMD="$lt_save_MAGIC_CMD"
2246 ;;
2247 esac])
2248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2249 if test -n "$MAGIC_CMD"; then
2250 AC_MSG_RESULT($MAGIC_CMD)
2251 else
2252 AC_MSG_RESULT(no)
2253 fi
2254 ])# AC_PATH_TOOL_PREFIX
2255
2256
2257 # AC_PATH_MAGIC
2258 # -------------
2259 # find a file program which can recognize a shared library
2260 AC_DEFUN([AC_PATH_MAGIC],
2261 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2262 if test -z "$lt_cv_path_MAGIC_CMD"; then
2263 if test -n "$ac_tool_prefix"; then
2264 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2265 else
2266 MAGIC_CMD=:
2267 fi
2268 fi
2269 ])# AC_PATH_MAGIC
2270
2271
2272 # AC_PROG_LD
2273 # ----------
2274 # find the pathname to the GNU or non-GNU linker
2275 AC_DEFUN([AC_PROG_LD],
2276 [AC_ARG_WITH([gnu-ld],
2277 [AC_HELP_STRING([--with-gnu-ld],
2278 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2279 [test "$withval" = no || with_gnu_ld=yes],
2280 [with_gnu_ld=no])
2281 AC_REQUIRE([LT_AC_PROG_SED])dnl
2282 AC_REQUIRE([AC_PROG_CC])dnl
2283 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2284 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2285 ac_prog=ld
2286 if test "$GCC" = yes; then
2287 # Check if gcc -print-prog-name=ld gives a path.
2288 AC_MSG_CHECKING([for ld used by $CC])
2289 case $host in
2290 *-*-mingw*)
2291 # gcc leaves a trailing carriage return which upsets mingw
2292 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2293 *)
2294 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2295 esac
2296 case $ac_prog in
2297 # Accept absolute paths.
2298 [[\\/]]* | ?:[[\\/]]*)
2299 re_direlt='/[[^/]][[^/]]*/\.\./'
2300 # Canonicalize the pathname of ld
2301 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2302 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2303 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2304 done
2305 test -z "$LD" && LD="$ac_prog"
2306 ;;
2307 "")
2308 # If it fails, then pretend we aren't using GCC.
2309 ac_prog=ld
2310 ;;
2311 *)
2312 # If it is relative, then search for the first ld in PATH.
2313 with_gnu_ld=unknown
2314 ;;
2315 esac
2316 elif test "$with_gnu_ld" = yes; then
2317 AC_MSG_CHECKING([for GNU ld])
2318 else
2319 AC_MSG_CHECKING([for non-GNU ld])
2320 fi
2321 AC_CACHE_VAL(lt_cv_path_LD,
2322 [if test -z "$LD"; then
2323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2324 for ac_dir in $PATH; do
2325 IFS="$lt_save_ifs"
2326 test -z "$ac_dir" && ac_dir=.
2327 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2328 lt_cv_path_LD="$ac_dir/$ac_prog"
2329 # Check to see if the program is GNU ld. I'd rather use --version,
2330 # but apparently some variants of GNU ld only accept -v.
2331 # Break only if it was the GNU/non-GNU ld that we prefer.
2332 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2333 *GNU* | *'with BFD'*)
2334 test "$with_gnu_ld" != no && break
2335 ;;
2336 *)
2337 test "$with_gnu_ld" != yes && break
2338 ;;
2339 esac
2340 fi
2341 done
2342 IFS="$lt_save_ifs"
2343 else
2344 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2345 fi])
2346 LD="$lt_cv_path_LD"
2347 if test -n "$LD"; then
2348 AC_MSG_RESULT($LD)
2349 else
2350 AC_MSG_RESULT(no)
2351 fi
2352 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2353 AC_PROG_LD_GNU
2354 ])# AC_PROG_LD
2355
2356
2357 # AC_PROG_LD_GNU
2358 # --------------
2359 AC_DEFUN([AC_PROG_LD_GNU],
2360 [AC_REQUIRE([AC_PROG_EGREP])dnl
2361 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2362 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2363 case `$LD -v 2>&1 </dev/null` in
2364 *GNU* | *'with BFD'*)
2365 lt_cv_prog_gnu_ld=yes
2366 ;;
2367 *)
2368 lt_cv_prog_gnu_ld=no
2369 ;;
2370 esac])
2371 with_gnu_ld=$lt_cv_prog_gnu_ld
2372 ])# AC_PROG_LD_GNU
2373
2374
2375 # AC_PROG_LD_RELOAD_FLAG
2376 # ----------------------
2377 # find reload flag for linker
2378 # -- PORTME Some linkers may need a different reload flag.
2379 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2380 [AC_CACHE_CHECK([for $LD option to reload object files],
2381 lt_cv_ld_reload_flag,
2382 [lt_cv_ld_reload_flag='-r'])
2383 reload_flag=$lt_cv_ld_reload_flag
2384 case $reload_flag in
2385 "" | " "*) ;;
2386 *) reload_flag=" $reload_flag" ;;
2387 esac
2388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2389 case $host_os in
2390 darwin*)
2391 if test "$GCC" = yes; then
2392 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2393 else
2394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2395 fi
2396 ;;
2397 esac
2398 ])# AC_PROG_LD_RELOAD_FLAG
2399
2400
2401 # AC_DEPLIBS_CHECK_METHOD
2402 # -----------------------
2403 # how to check for library dependencies
2404 # -- PORTME fill in with the dynamic library characteristics
2405 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2406 [AC_CACHE_CHECK([how to recognize dependent libraries],
2407 lt_cv_deplibs_check_method,
2408 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2409 lt_cv_file_magic_test_file=
2410 lt_cv_deplibs_check_method='unknown'
2411 # Need to set the preceding variable on all platforms that support
2412 # interlibrary dependencies.
2413 # 'none' -- dependencies not supported.
2414 # `unknown' -- same as none, but documents that we really don't know.
2415 # 'pass_all' -- all dependencies passed with no checks.
2416 # 'test_compile' -- check by making test program.
2417 # 'file_magic [[regex]]' -- check by looking for files in library path
2418 # which responds to the $file_magic_cmd with a given extended regex.
2419 # If you have `file' or equivalent on your system and you're not sure
2420 # whether `pass_all' will *always* work, you probably want this one.
2421
2422 case $host_os in
2423 aix[[4-9]]*)
2424 lt_cv_deplibs_check_method=pass_all
2425 ;;
2426
2427 beos*)
2428 lt_cv_deplibs_check_method=pass_all
2429 ;;
2430
2431 bsdi[[45]]*)
2432 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2433 lt_cv_file_magic_cmd='/usr/bin/file -L'
2434 lt_cv_file_magic_test_file=/shlib/libc.so
2435 ;;
2436
2437 cygwin*)
2438 # func_win32_libid is a shell function defined in ltmain.sh
2439 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2440 lt_cv_file_magic_cmd='func_win32_libid'
2441 ;;
2442
2443 mingw* | pw32*)
2444 # Base MSYS/MinGW do not provide the 'file' command needed by
2445 # func_win32_libid shell function, so use a weaker test based on 'objdump',
2446 # unless we find 'file', for example because we are cross-compiling.
2447 if ( file / ) >/dev/null 2>&1; then
2448 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2449 lt_cv_file_magic_cmd='func_win32_libid'
2450 else
2451 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2452 lt_cv_file_magic_cmd='$OBJDUMP -f'
2453 fi
2454 ;;
2455
2456 darwin* | rhapsody*)
2457 lt_cv_deplibs_check_method=pass_all
2458 ;;
2459
2460 freebsd* | dragonfly*)
2461 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2462 case $host_cpu in
2463 i*86 )
2464 # Not sure whether the presence of OpenBSD here was a mistake.
2465 # Let's accept both of them until this is cleared up.
2466 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2467 lt_cv_file_magic_cmd=/usr/bin/file
2468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2469 ;;
2470 esac
2471 else
2472 lt_cv_deplibs_check_method=pass_all
2473 fi
2474 ;;
2475
2476 gnu*)
2477 lt_cv_deplibs_check_method=pass_all
2478 ;;
2479
2480 hpux10.20* | hpux11*)
2481 lt_cv_file_magic_cmd=/usr/bin/file
2482 case $host_cpu in
2483 ia64*)
2484 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2486 ;;
2487 hppa*64*)
2488 [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]']
2489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2490 ;;
2491 *)
2492 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2494 ;;
2495 esac
2496 ;;
2497
2498 interix[[3-9]]*)
2499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2500 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2501 ;;
2502
2503 irix5* | irix6* | nonstopux*)
2504 case $LD in
2505 *-32|*"-32 ") libmagic=32-bit;;
2506 *-n32|*"-n32 ") libmagic=N32;;
2507 *-64|*"-64 ") libmagic=64-bit;;
2508 *) libmagic=never-match;;
2509 esac
2510 lt_cv_deplibs_check_method=pass_all
2511 ;;
2512
2513 # This must be Linux ELF.
2514 linux* | k*bsd*-gnu)
2515 lt_cv_deplibs_check_method=pass_all
2516 ;;
2517
2518 netbsd* | netbsdelf*-gnu)
2519 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2520 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2521 else
2522 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2523 fi
2524 ;;
2525
2526 newos6*)
2527 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2528 lt_cv_file_magic_cmd=/usr/bin/file
2529 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2530 ;;
2531
2532 nto-qnx*)
2533 lt_cv_deplibs_check_method=unknown
2534 ;;
2535
2536 openbsd*)
2537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2538 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2539 else
2540 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2541 fi
2542 ;;
2543
2544 osf3* | osf4* | osf5*)
2545 lt_cv_deplibs_check_method=pass_all
2546 ;;
2547
2548 rdos*)
2549 lt_cv_deplibs_check_method=pass_all
2550 ;;
2551
2552 solaris*)
2553 lt_cv_deplibs_check_method=pass_all
2554 ;;
2555
2556 sysv4 | sysv4.3*)
2557 case $host_vendor in
2558 motorola)
2559 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
2560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2561 ;;
2562 ncr)
2563 lt_cv_deplibs_check_method=pass_all
2564 ;;
2565 sequent)
2566 lt_cv_file_magic_cmd='/bin/file'
2567 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2568 ;;
2569 sni)
2570 lt_cv_file_magic_cmd='/bin/file'
2571 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2572 lt_cv_file_magic_test_file=/lib/libc.so
2573 ;;
2574 siemens)
2575 lt_cv_deplibs_check_method=pass_all
2576 ;;
2577 pc)
2578 lt_cv_deplibs_check_method=pass_all
2579 ;;
2580 esac
2581 ;;
2582
2583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2584 lt_cv_deplibs_check_method=pass_all
2585 ;;
2586 esac
2587 ])
2588 file_magic_cmd=$lt_cv_file_magic_cmd
2589 deplibs_check_method=$lt_cv_deplibs_check_method
2590 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2591 ])# AC_DEPLIBS_CHECK_METHOD
2592
2593
2594 # AC_PROG_NM
2595 # ----------
2596 # find the pathname to a BSD-compatible name lister
2597 AC_DEFUN([AC_PROG_NM],
2598 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2599 [if test -n "$NM"; then
2600 # Let the user override the test.
2601 lt_cv_path_NM="$NM"
2602 else
2603 lt_nm_to_check="${ac_tool_prefix}nm"
2604 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2605 lt_nm_to_check="$lt_nm_to_check nm"
2606 fi
2607 for lt_tmp_nm in $lt_nm_to_check; do
2608 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2609 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2610 IFS="$lt_save_ifs"
2611 test -z "$ac_dir" && ac_dir=.
2612 tmp_nm="$ac_dir/$lt_tmp_nm"
2613 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2614 # Check to see if the nm accepts a BSD-compat flag.
2615 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2616 # nm: unknown option "B" ignored
2617 # Tru64's nm complains that /dev/null is an invalid object file
2618 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2619 */dev/null* | *'Invalid file or object type'*)
2620 lt_cv_path_NM="$tmp_nm -B"
2621 break
2622 ;;
2623 *)
2624 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2625 */dev/null*)
2626 lt_cv_path_NM="$tmp_nm -p"
2627 break
2628 ;;
2629 *)
2630 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2631 continue # so that we can try to find one that supports BSD flags
2632 ;;
2633 esac
2634 ;;
2635 esac
2636 fi
2637 done
2638 IFS="$lt_save_ifs"
2639 done
2640 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2641 fi])
2642 NM="$lt_cv_path_NM"
2643 ])# AC_PROG_NM
2644
2645
2646 # AC_CHECK_LIBM
2647 # -------------
2648 # check for math library
2649 AC_DEFUN([AC_CHECK_LIBM],
2650 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2651 LIBM=
2652 case $host in
2653 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2654 # These system don't have libm, or don't need it
2655 ;;
2656 *-ncr-sysv4.3*)
2657 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2658 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2659 ;;
2660 *)
2661 AC_CHECK_LIB(m, cos, LIBM="-lm")
2662 ;;
2663 esac
2664 ])# AC_CHECK_LIBM
2665
2666
2667 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2668 # -----------------------------------
2669 # sets LIBLTDL to the link flags for the libltdl convenience library and
2670 # LTDLINCL to the include flags for the libltdl header and adds
2671 # --enable-ltdl-convenience to the configure arguments. Note that
2672 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2673 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2674 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2675 # (note the single quotes!). If your package is not flat and you're not
2676 # using automake, define top_builddir and top_srcdir appropriately in
2677 # the Makefiles.
2678 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2679 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2680 case $enable_ltdl_convenience in
2681 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2682 "") enable_ltdl_convenience=yes
2683 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2684 esac
2685 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2686 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2687 # For backwards non-gettext consistent compatibility...
2688 INCLTDL="$LTDLINCL"
2689 ])# AC_LIBLTDL_CONVENIENCE
2690
2691
2692 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2693 # -----------------------------------
2694 # sets LIBLTDL to the link flags for the libltdl installable library and
2695 # LTDLINCL to the include flags for the libltdl header and adds
2696 # --enable-ltdl-install to the configure arguments. Note that
2697 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2698 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2699 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2700 # '${top_srcdir}/' (note the single quotes!). If your package is not
2701 # flat and you're not using automake, define top_builddir and top_srcdir
2702 # appropriately in the Makefiles.
2703 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2704 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2705 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2706 AC_CHECK_LIB(ltdl, lt_dlinit,
2707 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2708 [if test x"$enable_ltdl_install" = xno; then
2709 AC_MSG_WARN([libltdl not installed, but installation disabled])
2710 else
2711 enable_ltdl_install=yes
2712 fi
2713 ])
2714 if test x"$enable_ltdl_install" = x"yes"; then
2715 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2716 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2717 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2718 else
2719 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2720 LIBLTDL="-lltdl"
2721 LTDLINCL=
2722 fi
2723 # For backwards non-gettext consistent compatibility...
2724 INCLTDL="$LTDLINCL"
2725 ])# AC_LIBLTDL_INSTALLABLE
2726
2727
2728 # AC_LIBTOOL_CXX
2729 # --------------
2730 # enable support for C++ libraries
2731 AC_DEFUN([AC_LIBTOOL_CXX],
2732 [AC_REQUIRE([_LT_AC_LANG_CXX])
2733 ])# AC_LIBTOOL_CXX
2734
2735
2736 # _LT_AC_LANG_CXX
2737 # ---------------
2738 AC_DEFUN([_LT_AC_LANG_CXX],
2739 [AC_REQUIRE([AC_PROG_CXX])
2740 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2741 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2742 ])# _LT_AC_LANG_CXX
2743
2744 # _LT_AC_PROG_CXXCPP
2745 # ------------------
2746 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2747 [
2748 AC_REQUIRE([AC_PROG_CXX])
2749 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2750 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2751 (test "X$CXX" != "Xg++"))) ; then
2752 AC_PROG_CXXCPP
2753 fi
2754 ])# _LT_AC_PROG_CXXCPP
2755
2756 # AC_LIBTOOL_F77
2757 # --------------
2758 # enable support for Fortran 77 libraries
2759 AC_DEFUN([AC_LIBTOOL_F77],
2760 [AC_REQUIRE([_LT_AC_LANG_F77])
2761 ])# AC_LIBTOOL_F77
2762
2763
2764 # _LT_AC_LANG_F77
2765 # ---------------
2766 AC_DEFUN([_LT_AC_LANG_F77],
2767 [AC_REQUIRE([AC_PROG_F77])
2768 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2769 ])# _LT_AC_LANG_F77
2770
2771
2772 # AC_LIBTOOL_GCJ
2773 # --------------
2774 # enable support for GCJ libraries
2775 AC_DEFUN([AC_LIBTOOL_GCJ],
2776 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2777 ])# AC_LIBTOOL_GCJ
2778
2779
2780 # _LT_AC_LANG_GCJ
2781 # ---------------
2782 AC_DEFUN([_LT_AC_LANG_GCJ],
2783 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2784 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2785 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2786 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2787 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2788 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2789 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2790 ])# _LT_AC_LANG_GCJ
2791
2792
2793 # AC_LIBTOOL_RC
2794 # -------------
2795 # enable support for Windows resource files
2796 AC_DEFUN([AC_LIBTOOL_RC],
2797 [AC_REQUIRE([LT_AC_PROG_RC])
2798 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2799 ])# AC_LIBTOOL_RC
2800
2801
2802 # AC_LIBTOOL_LANG_C_CONFIG
2803 # ------------------------
2804 # Ensure that the configuration vars for the C compiler are
2805 # suitably defined. Those variables are subsequently used by
2806 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2807 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2808 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2809 [lt_save_CC="$CC"
2810 AC_LANG_PUSH(C)
2811
2812 # Source file extension for C test sources.
2813 ac_ext=c
2814
2815 # Object file extension for compiled C test sources.
2816 objext=o
2817 _LT_AC_TAGVAR(objext, $1)=$objext
2818
2819 # Code to be used in simple compile tests
2820 lt_simple_compile_test_code="int some_variable = 0;"
2821
2822 # Code to be used in simple link tests
2823 lt_simple_link_test_code='int main(){return(0);}'
2824
2825 _LT_AC_SYS_COMPILER
2826
2827 # save warnings/boilerplate of simple test code
2828 _LT_COMPILER_BOILERPLATE
2829 _LT_LINKER_BOILERPLATE
2830
2831 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2832 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2833 AC_LIBTOOL_PROG_CC_C_O($1)
2834 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2835 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2836 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2837 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2838 AC_LIBTOOL_SYS_LIB_STRIP
2839 AC_LIBTOOL_DLOPEN_SELF
2840
2841 # Report which library types will actually be built
2842 AC_MSG_CHECKING([if libtool supports shared libraries])
2843 AC_MSG_RESULT([$can_build_shared])
2844
2845 AC_MSG_CHECKING([whether to build shared libraries])
2846 test "$can_build_shared" = "no" && enable_shared=no
2847
2848 # On AIX, shared libraries and static libraries use the same namespace, and
2849 # are all built from PIC.
2850 case $host_os in
2851 aix3*)
2852 test "$enable_shared" = yes && enable_static=no
2853 if test -n "$RANLIB"; then
2854 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2855 postinstall_cmds='$RANLIB $lib'
2856 fi
2857 ;;
2858
2859 aix[[4-9]]*)
2860 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2861 test "$enable_shared" = yes && enable_static=no
2862 fi
2863 ;;
2864 esac
2865 AC_MSG_RESULT([$enable_shared])
2866
2867 AC_MSG_CHECKING([whether to build static libraries])
2868 # Make sure either enable_shared or enable_static is yes.
2869 test "$enable_shared" = yes || enable_static=yes
2870 AC_MSG_RESULT([$enable_static])
2871
2872 AC_LIBTOOL_CONFIG($1)
2873
2874 AC_LANG_POP
2875 CC="$lt_save_CC"
2876 ])# AC_LIBTOOL_LANG_C_CONFIG
2877
2878
2879 # AC_LIBTOOL_LANG_CXX_CONFIG
2880 # --------------------------
2881 # Ensure that the configuration vars for the C compiler are
2882 # suitably defined. Those variables are subsequently used by
2883 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2884 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2885 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2886 [AC_LANG_PUSH(C++)
2887 AC_REQUIRE([AC_PROG_CXX])
2888 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2889
2890 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2891 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2892 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2893 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2894 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2895 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2896 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2897 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2898 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2899 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2900 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2901 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2902 _LT_AC_TAGVAR(module_cmds, $1)=
2903 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2904 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2905 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2906 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2907 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2908 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2909
2910 # Dependencies to place before and after the object being linked:
2911 _LT_AC_TAGVAR(predep_objects, $1)=
2912 _LT_AC_TAGVAR(postdep_objects, $1)=
2913 _LT_AC_TAGVAR(predeps, $1)=
2914 _LT_AC_TAGVAR(postdeps, $1)=
2915 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2916 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2917
2918 # Source file extension for C++ test sources.
2919 ac_ext=cpp
2920
2921 # Object file extension for compiled C++ test sources.
2922 objext=o
2923 _LT_AC_TAGVAR(objext, $1)=$objext
2924
2925 # Code to be used in simple compile tests
2926 lt_simple_compile_test_code="int some_variable = 0;"
2927
2928 # Code to be used in simple link tests
2929 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2930
2931 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2932 _LT_AC_SYS_COMPILER
2933
2934 # save warnings/boilerplate of simple test code
2935 _LT_COMPILER_BOILERPLATE
2936 _LT_LINKER_BOILERPLATE
2937
2938 # Allow CC to be a program name with arguments.
2939 lt_save_CC=$CC
2940 lt_save_LD=$LD
2941 lt_save_GCC=$GCC
2942 GCC=$GXX
2943 lt_save_with_gnu_ld=$with_gnu_ld
2944 lt_save_path_LD=$lt_cv_path_LD
2945 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2946 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2947 else
2948 $as_unset lt_cv_prog_gnu_ld
2949 fi
2950 if test -n "${lt_cv_path_LDCXX+set}"; then
2951 lt_cv_path_LD=$lt_cv_path_LDCXX
2952 else
2953 $as_unset lt_cv_path_LD
2954 fi
2955 test -z "${LDCXX+set}" || LD=$LDCXX
2956 CC=${CXX-"c++"}
2957 compiler=$CC
2958 _LT_AC_TAGVAR(compiler, $1)=$CC
2959 _LT_CC_BASENAME([$compiler])
2960
2961 # We don't want -fno-exception wen compiling C++ code, so set the
2962 # no_builtin_flag separately
2963 if test "$GXX" = yes; then
2964 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2965 else
2966 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2967 fi
2968
2969 if test "$GXX" = yes; then
2970 # Set up default GNU C++ configuration
2971
2972 AC_PROG_LD
2973
2974 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2975 # archiving commands below assume that GNU ld is being used.
2976 if test "$with_gnu_ld" = yes; then
2977 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2978 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2979
2980 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2981 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2982
2983 # If archive_cmds runs LD, not CC, wlarc should be empty
2984 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2985 # investigate it a little bit more. (MM)
2986 wlarc='${wl}'
2987
2988 # ancient GNU ld didn't support --whole-archive et. al.
2989 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2990 grep 'no-whole-archive' > /dev/null; then
2991 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2992 else
2993 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2994 fi
2995 else
2996 with_gnu_ld=no
2997 wlarc=
2998
2999 # A generic and very simple default shared library creation
3000 # command for GNU C++ for the case where it uses the native
3001 # linker, instead of GNU ld. If possible, this setting should
3002 # overridden to take advantage of the native linker features on
3003 # the platform it is being used on.
3004 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3005 fi
3006
3007 # Commands to make compiler produce verbose output that lists
3008 # what "hidden" libraries, object files and flags are used when
3009 # linking a shared library.
3010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3011
3012 else
3013 GXX=no
3014 with_gnu_ld=no
3015 wlarc=
3016 fi
3017
3018 # PORTME: fill in a description of your system's C++ link characteristics
3019 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3020 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3021 case $host_os in
3022 aix3*)
3023 # FIXME: insert proper C++ library support
3024 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3025 ;;
3026 aix[[4-9]]*)
3027 if test "$host_cpu" = ia64; then
3028 # On IA64, the linker does run time linking by default, so we don't
3029 # have to do anything special.
3030 aix_use_runtimelinking=no
3031 exp_sym_flag='-Bexport'
3032 no_entry_flag=""
3033 else
3034 aix_use_runtimelinking=no
3035
3036 # Test if we are trying to use run time linking or normal
3037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3038 # need to do runtime linking.
3039 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3040 for ld_flag in $LDFLAGS; do
3041 case $ld_flag in
3042 *-brtl*)
3043 aix_use_runtimelinking=yes
3044 break
3045 ;;
3046 esac
3047 done
3048 ;;
3049 esac
3050
3051 exp_sym_flag='-bexport'
3052 no_entry_flag='-bnoentry'
3053 fi
3054
3055 # When large executables or shared objects are built, AIX ld can
3056 # have problems creating the table of contents. If linking a library
3057 # or program results in "error TOC overflow" add -mminimal-toc to
3058 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3059 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3060
3061 _LT_AC_TAGVAR(archive_cmds, $1)=''
3062 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3063 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3064 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3065
3066 if test "$GXX" = yes; then
3067 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3068 # We only want to do this on AIX 4.2 and lower, the check
3069 # below for broken collect2 doesn't work under 4.3+
3070 collect2name=`${CC} -print-prog-name=collect2`
3071 if test -f "$collect2name" && \
3072 strings "$collect2name" | grep resolve_lib_name >/dev/null
3073 then
3074 # We have reworked collect2
3075 :
3076 else
3077 # We have old collect2
3078 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3079 # It fails to find uninstalled libraries when the uninstalled
3080 # path is not listed in the libpath. Setting hardcode_minus_L
3081 # to unsupported forces relinking
3082 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3083 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3084 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3085 fi
3086 ;;
3087 esac
3088 shared_flag='-shared'
3089 if test "$aix_use_runtimelinking" = yes; then
3090 shared_flag="$shared_flag "'${wl}-G'
3091 fi
3092 else
3093 # not using gcc
3094 if test "$host_cpu" = ia64; then
3095 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3096 # chokes on -Wl,-G. The following line is correct:
3097 shared_flag='-G'
3098 else
3099 if test "$aix_use_runtimelinking" = yes; then
3100 shared_flag='${wl}-G'
3101 else
3102 shared_flag='${wl}-bM:SRE'
3103 fi
3104 fi
3105 fi
3106
3107 # It seems that -bexpall does not export symbols beginning with
3108 # underscore (_), so it is better to generate a list of symbols to export.
3109 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3110 if test "$aix_use_runtimelinking" = yes; then
3111 # Warning - without using the other runtime loading flags (-brtl),
3112 # -berok will link without error, but may produce a broken library.
3113 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3114 # Determine the default libpath from the value encoded in an empty executable.
3115 _LT_AC_SYS_LIBPATH_AIX
3116 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3117
3118 _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3119 else
3120 if test "$host_cpu" = ia64; then
3121 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3122 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3123 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3124 else
3125 # Determine the default libpath from the value encoded in an empty executable.
3126 _LT_AC_SYS_LIBPATH_AIX
3127 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3128 # Warning - without using the other run time loading flags,
3129 # -berok will link without error, but may produce a broken library.
3130 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3131 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3132 # Exported symbols can be pulled into shared objects from archives
3133 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3134 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3135 # This is similar to how AIX traditionally builds its shared libraries.
3136 _LT_AC_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'
3137 fi
3138 fi
3139 ;;
3140
3141 beos*)
3142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3143 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3144 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3145 # support --undefined. This deserves some investigation. FIXME
3146 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3147 else
3148 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3149 fi
3150 ;;
3151
3152 chorus*)
3153 case $cc_basename in
3154 *)
3155 # FIXME: insert proper C++ library support
3156 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3157 ;;
3158 esac
3159 ;;
3160
3161 cygwin* | mingw* | pw32*)
3162 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3163 # as there is no search path for DLLs.
3164 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3165 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3166 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3167 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3168
3169 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3170 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3171 # If the export-symbols file already is a .def file (1st line
3172 # is EXPORTS), use it as is; otherwise, prepend...
3173 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3174 cp $export_symbols $output_objdir/$soname.def;
3175 else
3176 echo EXPORTS > $output_objdir/$soname.def;
3177 cat $export_symbols >> $output_objdir/$soname.def;
3178 fi~
3179 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3180 else
3181 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3182 fi
3183 ;;
3184 darwin* | rhapsody*)
3185 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3186 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3187 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3188 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3189 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3190 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3191 _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3192 if test "$GXX" = yes ; then
3193 output_verbose_link_cmd='echo'
3194 _LT_AC_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}"
3195 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3196 _LT_AC_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}"
3197 _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3198 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3199 _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3200 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3201 fi
3202 else
3203 case $cc_basename in
3204 xlc*)
3205 output_verbose_link_cmd='echo'
3206 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3207 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3209 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3210 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3211 ;;
3212 *)
3213 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3214 ;;
3215 esac
3216 fi
3217 ;;
3218
3219 dgux*)
3220 case $cc_basename in
3221 ec++*)
3222 # FIXME: insert proper C++ library support
3223 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3224 ;;
3225 ghcx*)
3226 # Green Hills C++ Compiler
3227 # FIXME: insert proper C++ library support
3228 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3229 ;;
3230 *)
3231 # FIXME: insert proper C++ library support
3232 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3233 ;;
3234 esac
3235 ;;
3236 freebsd[[12]]*)
3237 # C++ shared libraries reported to be fairly broken before switch to ELF
3238 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3239 ;;
3240 freebsd-elf*)
3241 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3242 ;;
3243 freebsd* | dragonfly*)
3244 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3245 # conventions
3246 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3247 ;;
3248 gnu*)
3249 ;;
3250 hpux9*)
3251 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3252 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3253 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3254 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3255 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3256 # but as the default
3257 # location of the library.
3258
3259 case $cc_basename in
3260 CC*)
3261 # FIXME: insert proper C++ library support
3262 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3263 ;;
3264 aCC*)
3265 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3266 # Commands to make compiler produce verbose output that lists
3267 # what "hidden" libraries, object files and flags are used when
3268 # linking a shared library.
3269 #
3270 # There doesn't appear to be a way to prevent this compiler from
3271 # explicitly linking system object files so we need to strip them
3272 # from the output so that they don't get included in the library
3273 # dependencies.
3274 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 $list'
3275 ;;
3276 *)
3277 if test "$GXX" = yes; then
3278 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3279 else
3280 # FIXME: insert proper C++ library support
3281 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3282 fi
3283 ;;
3284 esac
3285 ;;
3286 hpux10*|hpux11*)
3287 if test $with_gnu_ld = no; then
3288 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3289 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3290
3291 case $host_cpu in
3292 hppa*64*|ia64*) ;;
3293 *)
3294 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3295 ;;
3296 esac
3297 fi
3298 case $host_cpu in
3299 hppa*64*|ia64*)
3300 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3301 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3302 ;;
3303 *)
3304 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3305 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3306 # but as the default
3307 # location of the library.
3308 ;;
3309 esac
3310
3311 case $cc_basename in
3312 CC*)
3313 # FIXME: insert proper C++ library support
3314 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3315 ;;
3316 aCC*)
3317 case $host_cpu in
3318 hppa*64*)
3319 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3320 ;;
3321 ia64*)
3322 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3323 ;;
3324 *)
3325 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3326 ;;
3327 esac
3328 # Commands to make compiler produce verbose output that lists
3329 # what "hidden" libraries, object files and flags are used when
3330 # linking a shared library.
3331 #
3332 # There doesn't appear to be a way to prevent this compiler from
3333 # explicitly linking system object files so we need to strip them
3334 # from the output so that they don't get included in the library
3335 # dependencies.
3336 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 $list'
3337 ;;
3338 *)
3339 if test "$GXX" = yes; then
3340 if test $with_gnu_ld = no; then
3341 case $host_cpu in
3342 hppa*64*)
3343 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3344 ;;
3345 ia64*)
3346 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3347 ;;
3348 *)
3349 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3350 ;;
3351 esac
3352 fi
3353 else
3354 # FIXME: insert proper C++ library support
3355 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3356 fi
3357 ;;
3358 esac
3359 ;;
3360 interix[[3-9]]*)
3361 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3362 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3363 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3364 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3365 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3366 # Instead, shared libraries are loaded at an image base (0x10000000 by
3367 # default) and relocated if they conflict, which is a slow very memory
3368 # consuming and fragmenting process. To avoid this, we pick a random,
3369 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3370 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3371 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3372 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3373 ;;
3374 irix5* | irix6*)
3375 case $cc_basename in
3376 CC*)
3377 # SGI C++
3378 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3379
3380 # Archives containing C++ object files must be created using
3381 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3382 # necessary to make sure instantiated templates are included
3383 # in the archive.
3384 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3385 ;;
3386 *)
3387 if test "$GXX" = yes; then
3388 if test "$with_gnu_ld" = no; then
3389 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3390 else
3391 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3392 fi
3393 fi
3394 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3395 ;;
3396 esac
3397 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3398 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3399 ;;
3400 linux* | k*bsd*-gnu)
3401 case $cc_basename in
3402 KCC*)
3403 # Kuck and Associates, Inc. (KAI) C++ Compiler
3404
3405 # KCC will only create a shared library if the output file
3406 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3407 # to its proper name (with version) after linking.
3408 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3409 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3410 # Commands to make compiler produce verbose output that lists
3411 # what "hidden" libraries, object files and flags are used when
3412 # linking a shared library.
3413 #
3414 # There doesn't appear to be a way to prevent this compiler from
3415 # explicitly linking system object files so we need to strip them
3416 # from the output so that they don't get included in the library
3417 # dependencies.
3418 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 $list'
3419
3420 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3421 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3422
3423 # Archives containing C++ object files must be created using
3424 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3425 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3426 ;;
3427 icpc*)
3428 # Intel C++
3429 with_gnu_ld=yes
3430 # version 8.0 and above of icpc choke on multiply defined symbols
3431 # if we add $predep_objects and $postdep_objects, however 7.1 and
3432 # earlier do not add the objects themselves.
3433 case `$CC -V 2>&1` in
3434 *"Version 7."*)
3435 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3436 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3437 ;;
3438 *) # Version 8.0 or newer
3439 tmp_idyn=
3440 case $host_cpu in
3441 ia64*) tmp_idyn=' -i_dynamic';;
3442 esac
3443 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3444 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3445 ;;
3446 esac
3447 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3448 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3449 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3450 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3451 ;;
3452 pgCC* | pgcpp*)
3453 # Portland Group C++ compiler
3454 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3455 _LT_AC_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'
3456
3457 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3458 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3459 _LT_AC_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'
3460 ;;
3461 cxx*)
3462 # Compaq C++
3463 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3464 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3465
3466 runpath_var=LD_RUN_PATH
3467 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3468 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3469
3470 # Commands to make compiler produce verbose output that lists
3471 # what "hidden" libraries, object files and flags are used when
3472 # linking a shared library.
3473 #
3474 # There doesn't appear to be a way to prevent this compiler from
3475 # explicitly linking system object files so we need to strip them
3476 # from the output so that they don't get included in the library
3477 # dependencies.
3478 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
3479 ;;
3480 *)
3481 case `$CC -V 2>&1 | sed 5q` in
3482 *Sun\ C*)
3483 # Sun C++ 5.9
3484 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3485 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3486 _LT_AC_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'
3487 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3488 _LT_AC_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'
3489
3490 # Not sure whether something based on
3491 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3492 # would be better.
3493 output_verbose_link_cmd='echo'
3494
3495 # Archives containing C++ object files must be created using
3496 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3497 # necessary to make sure instantiated templates are included
3498 # in the archive.
3499 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3500 ;;
3501 esac
3502 ;;
3503 esac
3504 ;;
3505 lynxos*)
3506 # FIXME: insert proper C++ library support
3507 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3508 ;;
3509 m88k*)
3510 # FIXME: insert proper C++ library support
3511 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3512 ;;
3513 mvs*)
3514 case $cc_basename in
3515 cxx*)
3516 # FIXME: insert proper C++ library support
3517 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3518 ;;
3519 *)
3520 # FIXME: insert proper C++ library support
3521 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3522 ;;
3523 esac
3524 ;;
3525 netbsd* | netbsdelf*-gnu)
3526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3527 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3528 wlarc=
3529 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3530 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3531 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3532 fi
3533 # Workaround some broken pre-1.5 toolchains
3534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3535 ;;
3536 openbsd2*)
3537 # C++ shared libraries are fairly broken
3538 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3539 ;;
3540 openbsd*)
3541 if test -f /usr/libexec/ld.so; then
3542 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3543 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3544 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3545 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3547 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3548 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3549 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3550 fi
3551 output_verbose_link_cmd='echo'
3552 else
3553 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3554 fi
3555 ;;
3556 osf3*)
3557 case $cc_basename in
3558 KCC*)
3559 # Kuck and Associates, Inc. (KAI) C++ Compiler
3560
3561 # KCC will only create a shared library if the output file
3562 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3563 # to its proper name (with version) after linking.
3564 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3565
3566 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3567 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3568
3569 # Archives containing C++ object files must be created using
3570 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3571 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3572
3573 ;;
3574 RCC*)
3575 # Rational C++ 2.4.1
3576 # FIXME: insert proper C++ library support
3577 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3578 ;;
3579 cxx*)
3580 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3581 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3582
3583 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3584 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3585
3586 # Commands to make compiler produce verbose output that lists
3587 # what "hidden" libraries, object files and flags are used when
3588 # linking a shared library.
3589 #
3590 # There doesn't appear to be a way to prevent this compiler from
3591 # explicitly linking system object files so we need to strip them
3592 # from the output so that they don't get included in the library
3593 # dependencies.
3594 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
3595 ;;
3596 *)
3597 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3598 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3599 _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3600
3601 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3602 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3603
3604 # Commands to make compiler produce verbose output that lists
3605 # what "hidden" libraries, object files and flags are used when
3606 # linking a shared library.
3607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3608
3609 else
3610 # FIXME: insert proper C++ library support
3611 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3612 fi
3613 ;;
3614 esac
3615 ;;
3616 osf4* | osf5*)
3617 case $cc_basename in
3618 KCC*)
3619 # Kuck and Associates, Inc. (KAI) C++ Compiler
3620
3621 # KCC will only create a shared library if the output file
3622 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3623 # to its proper name (with version) after linking.
3624 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3625
3626 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3627 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3628
3629 # Archives containing C++ object files must be created using
3630 # the KAI C++ compiler.
3631 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3632 ;;
3633 RCC*)
3634 # Rational C++ 2.4.1
3635 # FIXME: insert proper C++ library support
3636 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3637 ;;
3638 cxx*)
3639 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3640 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3641 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3642 echo "-hidden">> $lib.exp~
3643 $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~
3644 $rm $lib.exp'
3645
3646 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3647 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3648
3649 # Commands to make compiler produce verbose output that lists
3650 # what "hidden" libraries, object files and flags are used when
3651 # linking a shared library.
3652 #
3653 # There doesn't appear to be a way to prevent this compiler from
3654 # explicitly linking system object files so we need to strip them
3655 # from the output so that they don't get included in the library
3656 # dependencies.
3657 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
3658 ;;
3659 *)
3660 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3661 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3662 _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3663
3664 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3665 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3666
3667 # Commands to make compiler produce verbose output that lists
3668 # what "hidden" libraries, object files and flags are used when
3669 # linking a shared library.
3670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3671
3672 else
3673 # FIXME: insert proper C++ library support
3674 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3675 fi
3676 ;;
3677 esac
3678 ;;
3679 psos*)
3680 # FIXME: insert proper C++ library support
3681 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3682 ;;
3683 sunos4*)
3684 case $cc_basename in
3685 CC*)
3686 # Sun C++ 4.x
3687 # FIXME: insert proper C++ library support
3688 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3689 ;;
3690 lcc*)
3691 # Lucid
3692 # FIXME: insert proper C++ library support
3693 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3694 ;;
3695 *)
3696 # FIXME: insert proper C++ library support
3697 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3698 ;;
3699 esac
3700 ;;
3701 solaris*)
3702 case $cc_basename in
3703 CC*)
3704 # Sun C++ 4.2, 5.x and Centerline C++
3705 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3706 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3707 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3708 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3709 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3710
3711 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3712 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3713 case $host_os in
3714 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3715 *)
3716 # The compiler driver will combine and reorder linker options,
3717 # but understands `-z linker_flag'.
3718 # Supported since Solaris 2.6 (maybe 2.5.1?)
3719 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3720 ;;
3721 esac
3722 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3723
3724 output_verbose_link_cmd='echo'
3725
3726 # Archives containing C++ object files must be created using
3727 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3728 # necessary to make sure instantiated templates are included
3729 # in the archive.
3730 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3731 ;;
3732 gcx*)
3733 # Green Hills C++ Compiler
3734 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3735
3736 # The C++ compiler must be used to create the archive.
3737 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3738 ;;
3739 *)
3740 # GNU C++ compiler with Solaris linker
3741 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3742 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3743 if $CC --version | grep -v '^2\.7' > /dev/null; then
3744 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3745 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3746 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3747
3748 # Commands to make compiler produce verbose output that lists
3749 # what "hidden" libraries, object files and flags are used when
3750 # linking a shared library.
3751 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3752 else
3753 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3754 # platform.
3755 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3756 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3757 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3758
3759 # Commands to make compiler produce verbose output that lists
3760 # what "hidden" libraries, object files and flags are used when
3761 # linking a shared library.
3762 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3763 fi
3764
3765 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3766 case $host_os in
3767 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3768 *)
3769 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3770 ;;
3771 esac
3772 fi
3773 ;;
3774 esac
3775 ;;
3776 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3777 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3778 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3779 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3780 runpath_var='LD_RUN_PATH'
3781
3782 case $cc_basename in
3783 CC*)
3784 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3785 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3786 ;;
3787 *)
3788 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3789 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3790 ;;
3791 esac
3792 ;;
3793 sysv5* | sco3.2v5* | sco5v6*)
3794 # Note: We can NOT use -z defs as we might desire, because we do not
3795 # link with -lc, and that would cause any symbols used from libc to
3796 # always be unresolved, which means just about no library would
3797 # ever link correctly. If we're not using GNU ld we use -z text
3798 # though, which does catch some bad symbols but isn't as heavy-handed
3799 # as -z defs.
3800 # For security reasons, it is highly recommended that you always
3801 # use absolute paths for naming shared libraries, and exclude the
3802 # DT_RUNPATH tag from executables and libraries. But doing so
3803 # requires that you compile everything twice, which is a pain.
3804 # So that behaviour is only enabled if SCOABSPATH is set to a
3805 # non-empty value in the environment. Most likely only useful for
3806 # creating official distributions of packages.
3807 # This is a hack until libtool officially supports absolute path
3808 # names for shared libraries.
3809 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3810 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3811 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3812 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3813 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3814 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3815 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3816 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3817 runpath_var='LD_RUN_PATH'
3818
3819 case $cc_basename in
3820 CC*)
3821 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3822 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3823 ;;
3824 *)
3825 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3826 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3827 ;;
3828 esac
3829 ;;
3830 tandem*)
3831 case $cc_basename in
3832 NCC*)
3833 # NonStop-UX NCC 3.20
3834 # FIXME: insert proper C++ library support
3835 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3836 ;;
3837 *)
3838 # FIXME: insert proper C++ library support
3839 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3840 ;;
3841 esac
3842 ;;
3843 vxworks*)
3844 # FIXME: insert proper C++ library support
3845 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3846 ;;
3847 *)
3848 # FIXME: insert proper C++ library support
3849 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3850 ;;
3851 esac
3852 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3853 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3854
3855 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3856 _LT_AC_TAGVAR(LD, $1)="$LD"
3857
3858 AC_LIBTOOL_POSTDEP_PREDEP($1)
3859 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3860 AC_LIBTOOL_PROG_CC_C_O($1)
3861 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3862 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3863 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3864 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3865
3866 AC_LIBTOOL_CONFIG($1)
3867
3868 AC_LANG_POP
3869 CC=$lt_save_CC
3870 LDCXX=$LD
3871 LD=$lt_save_LD
3872 GCC=$lt_save_GCC
3873 with_gnu_ldcxx=$with_gnu_ld
3874 with_gnu_ld=$lt_save_with_gnu_ld
3875 lt_cv_path_LDCXX=$lt_cv_path_LD
3876 lt_cv_path_LD=$lt_save_path_LD
3877 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3878 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3879 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3880
3881 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3882 # ------------------------------------
3883 # Figure out "hidden" library dependencies from verbose
3884 # compiler output when linking a shared library.
3885 # Parse the compiler output and extract the necessary
3886 # objects, libraries and library flags.
3887 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3888 [AC_REQUIRE([LT_AC_PROG_SED])dnl
3889 dnl we can't use the lt_simple_compile_test_code here,
3890 dnl because it contains code intended for an executable,
3891 dnl not a library. It's possible we should let each
3892 dnl tag define a new lt_????_link_test_code variable,
3893 dnl but it's only used here...
3894 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3895 int a;
3896 void foo (void) { a = 0; }
3897 EOF
3898 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3899 class Foo
3900 {
3901 public:
3902 Foo (void) { a = 0; }
3903 private:
3904 int a;
3905 };
3906 EOF
3907 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3908 subroutine foo
3909 implicit none
3910 integer*4 a
3911 a=0
3912 return
3913 end
3914 EOF
3915 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3916 public class foo {
3917 private int a;
3918 public void bar (void) {
3919 a = 0;
3920 }
3921 };
3922 EOF
3923 ])
3924 dnl Parse the compiler output and extract the necessary
3925 dnl objects, libraries and library flags.
3926 if AC_TRY_EVAL(ac_compile); then
3927 # Parse the compiler output and extract the necessary
3928 # objects, libraries and library flags.
3929
3930 # Sentinel used to keep track of whether or not we are before
3931 # the conftest object file.
3932 pre_test_object_deps_done=no
3933
3934 # The `*' in the case matches for architectures that use `case' in
3935 # $output_verbose_cmd can trigger glob expansion during the loop
3936 # eval without this substitution.
3937 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3938
3939 for p in `eval $output_verbose_link_cmd`; do
3940 case $p in
3941
3942 -L* | -R* | -l*)
3943 # Some compilers place space between "-{L,R}" and the path.
3944 # Remove the space.
3945 if test $p = "-L" \
3946 || test $p = "-R"; then
3947 prev=$p
3948 continue
3949 else
3950 prev=
3951 fi
3952
3953 if test "$pre_test_object_deps_done" = no; then
3954 case $p in
3955 -L* | -R*)
3956 # Internal compiler library paths should come after those
3957 # provided the user. The postdeps already come after the
3958 # user supplied libs so there is no need to process them.
3959 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3960 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3961 else
3962 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3963 fi
3964 ;;
3965 # The "-l" case would never come before the object being
3966 # linked, so don't bother handling this case.
3967 esac
3968 else
3969 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3970 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3971 else
3972 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3973 fi
3974 fi
3975 ;;
3976
3977 *.$objext)
3978 # This assumes that the test object file only shows up
3979 # once in the compiler output.
3980 if test "$p" = "conftest.$objext"; then
3981 pre_test_object_deps_done=yes
3982 continue
3983 fi
3984
3985 if test "$pre_test_object_deps_done" = no; then
3986 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3987 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3988 else
3989 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3990 fi
3991 else
3992 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3993 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3994 else
3995 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3996 fi
3997 fi
3998 ;;
3999
4000 *) ;; # Ignore the rest.
4001
4002 esac
4003 done
4004
4005 # Clean up.
4006 rm -f a.out a.exe
4007 else
4008 echo "libtool.m4: error: problem compiling $1 test program"
4009 fi
4010
4011 $rm -f confest.$objext
4012
4013 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4014 if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4015 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4016 fi
4017
4018 # PORTME: override above test on systems where it is broken
4019 ifelse([$1],[CXX],
4020 [case $host_os in
4021 interix[[3-9]]*)
4022 # Interix 3.5 installs completely hosed .la files for C++, so rather than
4023 # hack all around it, let's just trust "g++" to DTRT.
4024 _LT_AC_TAGVAR(predep_objects,$1)=
4025 _LT_AC_TAGVAR(postdep_objects,$1)=
4026 _LT_AC_TAGVAR(postdeps,$1)=
4027 ;;
4028
4029 linux*)
4030 case `$CC -V 2>&1 | sed 5q` in
4031 *Sun\ C*)
4032 # Sun C++ 5.9
4033 #
4034 # The more standards-conforming stlport4 library is
4035 # incompatible with the Cstd library. Avoid specifying
4036 # it if it's in CXXFLAGS. Ignore libCrun as
4037 # -library=stlport4 depends on it.
4038 case " $CXX $CXXFLAGS " in
4039 *" -library=stlport4 "*)
4040 solaris_use_stlport4=yes
4041 ;;
4042 esac
4043 if test "$solaris_use_stlport4" != yes; then
4044 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4045 fi
4046 ;;
4047 esac
4048 ;;
4049
4050 solaris*)
4051 case $cc_basename in
4052 CC*)
4053 # The more standards-conforming stlport4 library is
4054 # incompatible with the Cstd library. Avoid specifying
4055 # it if it's in CXXFLAGS. Ignore libCrun as
4056 # -library=stlport4 depends on it.
4057 case " $CXX $CXXFLAGS " in
4058 *" -library=stlport4 "*)
4059 solaris_use_stlport4=yes
4060 ;;
4061 esac
4062
4063 # Adding this requires a known-good setup of shared libraries for
4064 # Sun compiler versions before 5.6, else PIC objects from an old
4065 # archive will be linked into the output, leading to subtle bugs.
4066 if test "$solaris_use_stlport4" != yes; then
4067 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4068 fi
4069 ;;
4070 esac
4071 ;;
4072 esac
4073 ])
4074 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4075 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4076 esac
4077 ])# AC_LIBTOOL_POSTDEP_PREDEP
4078
4079 # AC_LIBTOOL_LANG_F77_CONFIG
4080 # --------------------------
4081 # Ensure that the configuration vars for the C compiler are
4082 # suitably defined. Those variables are subsequently used by
4083 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4084 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4085 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4086 [AC_REQUIRE([AC_PROG_F77])
4087 AC_LANG_PUSH(Fortran 77)
4088
4089 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4090 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4091 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4092 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4093 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4094 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4095 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4096 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4097 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4098 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4099 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4100 _LT_AC_TAGVAR(module_cmds, $1)=
4101 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4102 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4103 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4104 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4105 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4106 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4107
4108 # Source file extension for f77 test sources.
4109 ac_ext=f
4110
4111 # Object file extension for compiled f77 test sources.
4112 objext=o
4113 _LT_AC_TAGVAR(objext, $1)=$objext
4114
4115 # Code to be used in simple compile tests
4116 lt_simple_compile_test_code="\
4117 subroutine t
4118 return
4119 end
4120 "
4121
4122 # Code to be used in simple link tests
4123 lt_simple_link_test_code="\
4124 program t
4125 end
4126 "
4127
4128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4129 _LT_AC_SYS_COMPILER
4130
4131 # save warnings/boilerplate of simple test code
4132 _LT_COMPILER_BOILERPLATE
4133 _LT_LINKER_BOILERPLATE
4134
4135 # Allow CC to be a program name with arguments.
4136 lt_save_CC="$CC"
4137 CC=${F77-"f77"}
4138 compiler=$CC
4139 _LT_AC_TAGVAR(compiler, $1)=$CC
4140 _LT_CC_BASENAME([$compiler])
4141
4142 AC_MSG_CHECKING([if libtool supports shared libraries])
4143 AC_MSG_RESULT([$can_build_shared])
4144
4145 AC_MSG_CHECKING([whether to build shared libraries])
4146 test "$can_build_shared" = "no" && enable_shared=no
4147
4148 # On AIX, shared libraries and static libraries use the same namespace, and
4149 # are all built from PIC.
4150 case $host_os in
4151 aix3*)
4152 test "$enable_shared" = yes && enable_static=no
4153 if test -n "$RANLIB"; then
4154 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4155 postinstall_cmds='$RANLIB $lib'
4156 fi
4157 ;;
4158 aix[[4-9]]*)
4159 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4160 test "$enable_shared" = yes && enable_static=no
4161 fi
4162 ;;
4163 esac
4164 AC_MSG_RESULT([$enable_shared])
4165
4166 AC_MSG_CHECKING([whether to build static libraries])
4167 # Make sure either enable_shared or enable_static is yes.
4168 test "$enable_shared" = yes || enable_static=yes
4169 AC_MSG_RESULT([$enable_static])
4170
4171 _LT_AC_TAGVAR(GCC, $1)="$G77"
4172 _LT_AC_TAGVAR(LD, $1)="$LD"
4173
4174 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4175 AC_LIBTOOL_PROG_CC_C_O($1)
4176 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4177 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4178 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4179 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4180
4181 AC_LIBTOOL_CONFIG($1)
4182
4183 AC_LANG_POP
4184 CC="$lt_save_CC"
4185 ])# AC_LIBTOOL_LANG_F77_CONFIG
4186
4187
4188 # AC_LIBTOOL_LANG_GCJ_CONFIG
4189 # --------------------------
4190 # Ensure that the configuration vars for the C compiler are
4191 # suitably defined. Those variables are subsequently used by
4192 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4193 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4194 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4195 [AC_LANG_SAVE
4196
4197 # Source file extension for Java test sources.
4198 ac_ext=java
4199
4200 # Object file extension for compiled Java test sources.
4201 objext=o
4202 _LT_AC_TAGVAR(objext, $1)=$objext
4203
4204 # Code to be used in simple compile tests
4205 lt_simple_compile_test_code="class foo {}"
4206
4207 # Code to be used in simple link tests
4208 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4209
4210 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4211 _LT_AC_SYS_COMPILER
4212
4213 # save warnings/boilerplate of simple test code
4214 _LT_COMPILER_BOILERPLATE
4215 _LT_LINKER_BOILERPLATE
4216
4217 # Allow CC to be a program name with arguments.
4218 lt_save_CC="$CC"
4219 CC=${GCJ-"gcj"}
4220 compiler=$CC
4221 _LT_AC_TAGVAR(compiler, $1)=$CC
4222 _LT_CC_BASENAME([$compiler])
4223
4224 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4225 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4226
4227 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4228
4229 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4230 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4231 AC_LIBTOOL_PROG_CC_C_O($1)
4232 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4233 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4234 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4235 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4236
4237 AC_LIBTOOL_CONFIG($1)
4238
4239 AC_LANG_RESTORE
4240 CC="$lt_save_CC"
4241 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4242
4243
4244 # AC_LIBTOOL_LANG_RC_CONFIG
4245 # -------------------------
4246 # Ensure that the configuration vars for the Windows resource compiler are
4247 # suitably defined. Those variables are subsequently used by
4248 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4249 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4250 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4251 [AC_LANG_SAVE
4252
4253 # Source file extension for RC test sources.
4254 ac_ext=rc
4255
4256 # Object file extension for compiled RC test sources.
4257 objext=o
4258 _LT_AC_TAGVAR(objext, $1)=$objext
4259
4260 # Code to be used in simple compile tests
4261 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4262
4263 # Code to be used in simple link tests
4264 lt_simple_link_test_code="$lt_simple_compile_test_code"
4265
4266 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4267 _LT_AC_SYS_COMPILER
4268
4269 # save warnings/boilerplate of simple test code
4270 _LT_COMPILER_BOILERPLATE
4271 _LT_LINKER_BOILERPLATE
4272
4273 # Allow CC to be a program name with arguments.
4274 lt_save_CC="$CC"
4275 CC=${RC-"windres"}
4276 compiler=$CC
4277 _LT_AC_TAGVAR(compiler, $1)=$CC
4278 _LT_CC_BASENAME([$compiler])
4279 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4280
4281 AC_LIBTOOL_CONFIG($1)
4282
4283 AC_LANG_RESTORE
4284 CC="$lt_save_CC"
4285 ])# AC_LIBTOOL_LANG_RC_CONFIG
4286
4287
4288 # AC_LIBTOOL_CONFIG([TAGNAME])
4289 # ----------------------------
4290 # If TAGNAME is not passed, then create an initial libtool script
4291 # with a default configuration from the untagged config vars. Otherwise
4292 # add code to config.status for appending the configuration named by
4293 # TAGNAME from the matching tagged config vars.
4294 AC_DEFUN([AC_LIBTOOL_CONFIG],
4295 [# The else clause should only fire when bootstrapping the
4296 # libtool distribution, otherwise you forgot to ship ltmain.sh
4297 # with your package, and you will get complaints that there are
4298 # no rules to generate ltmain.sh.
4299 if test -f "$ltmain"; then
4300 # See if we are running on zsh, and set the options which allow our commands through
4301 # without removal of \ escapes.
4302 if test -n "${ZSH_VERSION+set}" ; then
4303 setopt NO_GLOB_SUBST
4304 fi
4305 # Now quote all the things that may contain metacharacters while being
4306 # careful not to overquote the AC_SUBSTed values. We take copies of the
4307 # variables and quote the copies for generation of the libtool script.
4308 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4309 SED SHELL STRIP \
4310 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4311 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4312 deplibs_check_method reload_flag reload_cmds need_locks \
4313 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4314 lt_cv_sys_global_symbol_to_c_name_address \
4315 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4316 old_postinstall_cmds old_postuninstall_cmds \
4317 _LT_AC_TAGVAR(compiler, $1) \
4318 _LT_AC_TAGVAR(CC, $1) \
4319 _LT_AC_TAGVAR(LD, $1) \
4320 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4321 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4322 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4323 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4324 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4325 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4326 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4327 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4328 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4329 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4330 _LT_AC_TAGVAR(predep_objects, $1) \
4331 _LT_AC_TAGVAR(postdep_objects, $1) \
4332 _LT_AC_TAGVAR(predeps, $1) \
4333 _LT_AC_TAGVAR(postdeps, $1) \
4334 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4335 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4336 _LT_AC_TAGVAR(archive_cmds, $1) \
4337 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4338 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4339 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4340 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4341 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4342 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4343 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4344 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4345 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4346 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4347 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4348 _LT_AC_TAGVAR(module_cmds, $1) \
4349 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4350 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4351 _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4352 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4353 _LT_AC_TAGVAR(include_expsyms, $1); do
4354
4355 case $var in
4356 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4357 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4358 _LT_AC_TAGVAR(archive_cmds, $1) | \
4359 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4360 _LT_AC_TAGVAR(module_cmds, $1) | \
4361 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4362 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4363 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4364 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4365 postinstall_cmds | postuninstall_cmds | \
4366 old_postinstall_cmds | old_postuninstall_cmds | \
4367 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4368 # Double-quote double-evaled strings.
4369 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4370 ;;
4371 *)
4372 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4373 ;;
4374 esac
4375 done
4376
4377 case $lt_echo in
4378 *'\[$]0 --fallback-echo"')
4379 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4380 ;;
4381 esac
4382
4383 ifelse([$1], [],
4384 [cfgfile="${ofile}T"
4385 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4386 $rm -f "$cfgfile"
4387 AC_MSG_NOTICE([creating $ofile])],
4388 [cfgfile="$ofile"])
4389
4390 cat <<__EOF__ >> "$cfgfile"
4391 ifelse([$1], [],
4392 [#! $SHELL
4393
4394 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4395 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4396 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4397 #
4398 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4399 # Free Software Foundation, Inc.
4400 #
4401 # This file is part of GNU Libtool:
4402 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4403 #
4404 # This program is free software; you can redistribute it and/or modify
4405 # it under the terms of the GNU General Public License as published by
4406 # the Free Software Foundation; either version 2 of the License, or
4407 # (at your option) any later version.
4408 #
4409 # This program is distributed in the hope that it will be useful, but
4410 # WITHOUT ANY WARRANTY; without even the implied warranty of
4411 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4412 # General Public License for more details.
4413 #
4414 # You should have received a copy of the GNU General Public License
4415 # along with this program; if not, write to the Free Software
4416 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4417 #
4418 # As a special exception to the GNU General Public License, if you
4419 # distribute this file as part of a program that contains a
4420 # configuration script generated by Autoconf, you may include it under
4421 # the same distribution terms that you use for the rest of that program.
4422
4423 # A sed program that does not truncate output.
4424 SED=$lt_SED
4425
4426 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4427 Xsed="$SED -e 1s/^X//"
4428
4429 # The HP-UX ksh and POSIX shell print the target directory to stdout
4430 # if CDPATH is set.
4431 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4432
4433 # The names of the tagged configurations supported by this script.
4434 available_tags=
4435
4436 # ### BEGIN LIBTOOL CONFIG],
4437 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4438
4439 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4440
4441 # Shell to use when invoking shell scripts.
4442 SHELL=$lt_SHELL
4443
4444 # Whether or not to build shared libraries.
4445 build_libtool_libs=$enable_shared
4446
4447 # Whether or not to build static libraries.
4448 build_old_libs=$enable_static
4449
4450 # Whether or not to add -lc for building shared libraries.
4451 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4452
4453 # Whether or not to disallow shared libs when runtime libs are static
4454 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4455
4456 # Whether or not to optimize for fast installation.
4457 fast_install=$enable_fast_install
4458
4459 # The host system.
4460 host_alias=$host_alias
4461 host=$host
4462 host_os=$host_os
4463
4464 # The build system.
4465 build_alias=$build_alias
4466 build=$build
4467 build_os=$build_os
4468
4469 # An echo program that does not interpret backslashes.
4470 echo=$lt_echo
4471
4472 # The archiver.
4473 AR=$lt_AR
4474 AR_FLAGS=$lt_AR_FLAGS
4475
4476 # A C compiler.
4477 LTCC=$lt_LTCC
4478
4479 # LTCC compiler flags.
4480 LTCFLAGS=$lt_LTCFLAGS
4481
4482 # A language-specific compiler.
4483 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4484
4485 # Is the compiler the GNU C compiler?
4486 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4487
4488 # An ERE matcher.
4489 EGREP=$lt_EGREP
4490
4491 # The linker used to build libraries.
4492 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4493
4494 # Whether we need hard or soft links.
4495 LN_S=$lt_LN_S
4496
4497 # A BSD-compatible nm program.
4498 NM=$lt_NM
4499
4500 # A symbol stripping program
4501 STRIP=$lt_STRIP
4502
4503 # Used to examine libraries when file_magic_cmd begins "file"
4504 MAGIC_CMD=$MAGIC_CMD
4505
4506 # Used on cygwin: DLL creation program.
4507 DLLTOOL="$DLLTOOL"
4508
4509 # Used on cygwin: object dumper.
4510 OBJDUMP="$OBJDUMP"
4511
4512 # Used on cygwin: assembler.
4513 AS="$AS"
4514
4515 # The name of the directory that contains temporary libtool files.
4516 objdir=$objdir
4517
4518 # How to create reloadable object files.
4519 reload_flag=$lt_reload_flag
4520 reload_cmds=$lt_reload_cmds
4521
4522 # How to pass a linker flag through the compiler.
4523 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4524
4525 # Object file suffix (normally "o").
4526 objext="$ac_objext"
4527
4528 # Old archive suffix (normally "a").
4529 libext="$libext"
4530
4531 # Shared library suffix (normally ".so").
4532 shrext_cmds='$shrext_cmds'
4533
4534 # Executable file suffix (normally "").
4535 exeext="$exeext"
4536
4537 # Additional compiler flags for building library objects.
4538 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4539 pic_mode=$pic_mode
4540
4541 # What is the maximum length of a command?
4542 max_cmd_len=$lt_cv_sys_max_cmd_len
4543
4544 # Does compiler simultaneously support -c and -o options?
4545 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4546
4547 # Must we lock files when doing compilation?
4548 need_locks=$lt_need_locks
4549
4550 # Do we need the lib prefix for modules?
4551 need_lib_prefix=$need_lib_prefix
4552
4553 # Do we need a version for libraries?
4554 need_version=$need_version
4555
4556 # Whether dlopen is supported.
4557 dlopen_support=$enable_dlopen
4558
4559 # Whether dlopen of programs is supported.
4560 dlopen_self=$enable_dlopen_self
4561
4562 # Whether dlopen of statically linked programs is supported.
4563 dlopen_self_static=$enable_dlopen_self_static
4564
4565 # Compiler flag to prevent dynamic linking.
4566 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4567
4568 # Compiler flag to turn off builtin functions.
4569 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4570
4571 # Compiler flag to allow reflexive dlopens.
4572 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4573
4574 # Compiler flag to generate shared objects directly from archives.
4575 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4576
4577 # Compiler flag to generate thread-safe objects.
4578 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4579
4580 # Library versioning type.
4581 version_type=$version_type
4582
4583 # Format of library name prefix.
4584 libname_spec=$lt_libname_spec
4585
4586 # List of archive names. First name is the real one, the rest are links.
4587 # The last name is the one that the linker finds with -lNAME.
4588 library_names_spec=$lt_library_names_spec
4589
4590 # The coded name of the library, if different from the real name.
4591 soname_spec=$lt_soname_spec
4592
4593 # Commands used to build and install an old-style archive.
4594 RANLIB=$lt_RANLIB
4595 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4596 old_postinstall_cmds=$lt_old_postinstall_cmds
4597 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4598
4599 # Create an old-style archive from a shared archive.
4600 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4601
4602 # Create a temporary old-style archive to link instead of a shared archive.
4603 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4604
4605 # Commands used to build and install a shared archive.
4606 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4607 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4608 postinstall_cmds=$lt_postinstall_cmds
4609 postuninstall_cmds=$lt_postuninstall_cmds
4610
4611 # Commands used to build a loadable module (assumed same as above if empty)
4612 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4613 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4614
4615 # Commands to strip libraries.
4616 old_striplib=$lt_old_striplib
4617 striplib=$lt_striplib
4618
4619 # Dependencies to place before the objects being linked to create a
4620 # shared library.
4621 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4622
4623 # Dependencies to place after the objects being linked to create a
4624 # shared library.
4625 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4626
4627 # Dependencies to place before the objects being linked to create a
4628 # shared library.
4629 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4630
4631 # Dependencies to place after the objects being linked to create a
4632 # shared library.
4633 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4634
4635 # The directories searched by this compiler when creating a shared
4636 # library
4637 compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4638
4639 # The library search path used internally by the compiler when linking
4640 # a shared library.
4641 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4642
4643 # Method to check whether dependent libraries are shared objects.
4644 deplibs_check_method=$lt_deplibs_check_method
4645
4646 # Command to use when deplibs_check_method == file_magic.
4647 file_magic_cmd=$lt_file_magic_cmd
4648
4649 # Flag that allows shared libraries with undefined symbols to be built.
4650 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4651
4652 # Flag that forces no undefined symbols.
4653 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4654
4655 # Commands used to finish a libtool library installation in a directory.
4656 finish_cmds=$lt_finish_cmds
4657
4658 # Same as above, but a single script fragment to be evaled but not shown.
4659 finish_eval=$lt_finish_eval
4660
4661 # Take the output of nm and produce a listing of raw symbols and C names.
4662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4663
4664 # Transform the output of nm in a proper C declaration
4665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4666
4667 # Transform the output of nm in a C name address pair
4668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4669
4670 # This is the shared library runtime path variable.
4671 runpath_var=$runpath_var
4672
4673 # This is the shared library path variable.
4674 shlibpath_var=$shlibpath_var
4675
4676 # Is shlibpath searched before the hard-coded library search path?
4677 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4678
4679 # How to hardcode a shared library path into an executable.
4680 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4681
4682 # Whether we should hardcode library paths into libraries.
4683 hardcode_into_libs=$hardcode_into_libs
4684
4685 # Flag to hardcode \$libdir into a binary during linking.
4686 # This must work even if \$libdir does not exist.
4687 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4688
4689 # If ld is used when linking, flag to hardcode \$libdir into
4690 # a binary during linking. This must work even if \$libdir does
4691 # not exist.
4692 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4693
4694 # Whether we need a single -rpath flag with a separated argument.
4695 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4696
4697 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4698 # resulting binary.
4699 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4700
4701 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4702 # resulting binary.
4703 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4704
4705 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4706 # the resulting binary.
4707 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4708
4709 # Set to yes if building a shared library automatically hardcodes DIR into the library
4710 # and all subsequent libraries and executables linked against it.
4711 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4712
4713 # Variables whose values should be saved in libtool wrapper scripts and
4714 # restored at relink time.
4715 variables_saved_for_relink="$variables_saved_for_relink"
4716
4717 # Whether libtool must link a program against all its dependency libraries.
4718 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4719
4720 # Compile-time system search path for libraries
4721 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4722
4723 # Run-time system search path for libraries
4724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4725
4726 # Fix the shell variable \$srcfile for the compiler.
4727 fix_srcfile_path=$lt_fix_srcfile_path
4728
4729 # Set to yes if exported symbols are required.
4730 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4731
4732 # The commands to list exported symbols.
4733 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4734
4735 # The commands to extract the exported symbol list from a shared archive.
4736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4737
4738 # Symbols that should not be listed in the preloaded symbols.
4739 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4740
4741 # Symbols that must always be exported.
4742 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4743
4744 ifelse([$1],[],
4745 [# ### END LIBTOOL CONFIG],
4746 [# ### END LIBTOOL TAG CONFIG: $tagname])
4747
4748 __EOF__
4749
4750 ifelse([$1],[], [
4751 case $host_os in
4752 aix3*)
4753 cat <<\EOF >> "$cfgfile"
4754
4755 # AIX sometimes has problems with the GCC collect2 program. For some
4756 # reason, if we set the COLLECT_NAMES environment variable, the problems
4757 # vanish in a puff of smoke.
4758 if test "X${COLLECT_NAMES+set}" != Xset; then
4759 COLLECT_NAMES=
4760 export COLLECT_NAMES
4761 fi
4762 EOF
4763 ;;
4764 esac
4765
4766 # We use sed instead of cat because bash on DJGPP gets confused if
4767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4768 # text mode, it properly converts lines to CR/LF. This bash problem
4769 # is reportedly fixed, but why not run on old versions too?
4770 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4771
4772 mv -f "$cfgfile" "$ofile" || \
4773 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4774 chmod +x "$ofile"
4775 ])
4776 else
4777 # If there is no Makefile yet, we rely on a make rule to execute
4778 # `config.status --recheck' to rerun these tests and create the
4779 # libtool script then.
4780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4781 if test -f "$ltmain_in"; then
4782 test -f Makefile && make "$ltmain"
4783 fi
4784 fi
4785 ])# AC_LIBTOOL_CONFIG
4786
4787
4788 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4789 # -------------------------------------------
4790 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4791 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4792
4793 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4794
4795 if test "$GCC" = yes; then
4796 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4797
4798 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4799 lt_cv_prog_compiler_rtti_exceptions,
4800 [-fno-rtti -fno-exceptions], [],
4801 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4802 fi
4803 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4804
4805
4806 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4807 # ---------------------------------
4808 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4809 [AC_REQUIRE([AC_CANONICAL_HOST])
4810 AC_REQUIRE([LT_AC_PROG_SED])
4811 AC_REQUIRE([AC_PROG_NM])
4812 AC_REQUIRE([AC_OBJEXT])
4813 # Check for command to grab the raw symbol name followed by C symbol from nm.
4814 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4815 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4816 [
4817 # These are sane defaults that work on at least a few old systems.
4818 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4819
4820 # Character class describing NM global symbol codes.
4821 symcode='[[BCDEGRST]]'
4822
4823 # Regexp to match symbols that can be accessed directly from C.
4824 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4825
4826 # Transform an extracted symbol line into a proper C declaration
4827 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4828
4829 # Transform an extracted symbol line into symbol name and symbol address
4830 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4831
4832 # Define system-specific variables.
4833 case $host_os in
4834 aix*)
4835 symcode='[[BCDT]]'
4836 ;;
4837 cygwin* | mingw* | pw32*)
4838 symcode='[[ABCDGISTW]]'
4839 ;;
4840 hpux*) # Its linker distinguishes data from code symbols
4841 if test "$host_cpu" = ia64; then
4842 symcode='[[ABCDEGRST]]'
4843 fi
4844 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4845 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4846 ;;
4847 linux* | k*bsd*-gnu)
4848 if test "$host_cpu" = ia64; then
4849 symcode='[[ABCDGIRSTW]]'
4850 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4851 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4852 fi
4853 ;;
4854 irix* | nonstopux*)
4855 symcode='[[BCDEGRST]]'
4856 ;;
4857 osf*)
4858 symcode='[[BCDEGQRST]]'
4859 ;;
4860 solaris*)
4861 symcode='[[BDRT]]'
4862 ;;
4863 sco3.2v5*)
4864 symcode='[[DT]]'
4865 ;;
4866 sysv4.2uw2*)
4867 symcode='[[DT]]'
4868 ;;
4869 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4870 symcode='[[ABDT]]'
4871 ;;
4872 sysv4)
4873 symcode='[[DFNSTU]]'
4874 ;;
4875 esac
4876
4877 # Handle CRLF in mingw tool chain
4878 opt_cr=
4879 case $build_os in
4880 mingw*)
4881 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4882 ;;
4883 esac
4884
4885 # If we're using GNU nm, then use its standard symbol codes.
4886 case `$NM -V 2>&1` in
4887 *GNU* | *'with BFD'*)
4888 symcode='[[ABCDGIRSTW]]' ;;
4889 esac
4890
4891 # Try without a prefix undercore, then with it.
4892 for ac_symprfx in "" "_"; do
4893
4894 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4895 symxfrm="\\1 $ac_symprfx\\2 \\2"
4896
4897 # Write the raw and C identifiers.
4898 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4899
4900 # Check to see that the pipe works correctly.
4901 pipe_works=no
4902
4903 rm -f conftest*
4904 cat > conftest.$ac_ext <<EOF
4905 #ifdef __cplusplus
4906 extern "C" {
4907 #endif
4908 char nm_test_var;
4909 void nm_test_func(){}
4910 #ifdef __cplusplus
4911 }
4912 #endif
4913 int main(){nm_test_var='a';nm_test_func();return(0);}
4914 EOF
4915
4916 if AC_TRY_EVAL(ac_compile); then
4917 # Now try to grab the symbols.
4918 nlist=conftest.nm
4919 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4920 # Try sorting and uniquifying the output.
4921 if sort "$nlist" | uniq > "$nlist"T; then
4922 mv -f "$nlist"T "$nlist"
4923 else
4924 rm -f "$nlist"T
4925 fi
4926
4927 # Make sure that we snagged all the symbols we need.
4928 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4929 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4930 cat <<EOF > conftest.$ac_ext
4931 #ifdef __cplusplus
4932 extern "C" {
4933 #endif
4934
4935 EOF
4936 # Now generate the symbol file.
4937 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4938
4939 cat <<EOF >> conftest.$ac_ext
4940 #if defined (__STDC__) && __STDC__
4941 # define lt_ptr_t void *
4942 #else
4943 # define lt_ptr_t char *
4944 # define const
4945 #endif
4946
4947 /* The mapping between symbol names and symbols. */
4948 const struct {
4949 const char *name;
4950 lt_ptr_t address;
4951 }
4952 lt_preloaded_symbols[[]] =
4953 {
4954 EOF
4955 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4956 cat <<\EOF >> conftest.$ac_ext
4957 {0, (lt_ptr_t) 0}
4958 };
4959
4960 #ifdef __cplusplus
4961 }
4962 #endif
4963 EOF
4964 # Now try linking the two files.
4965 mv conftest.$ac_objext conftstm.$ac_objext
4966 lt_save_LIBS="$LIBS"
4967 lt_save_CFLAGS="$CFLAGS"
4968 LIBS="conftstm.$ac_objext"
4969 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4970 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4971 pipe_works=yes
4972 fi
4973 LIBS="$lt_save_LIBS"
4974 CFLAGS="$lt_save_CFLAGS"
4975 else
4976 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4977 fi
4978 else
4979 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4980 fi
4981 else
4982 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4983 fi
4984 else
4985 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4986 cat conftest.$ac_ext >&5
4987 fi
4988 rm -rf conftest* conftst*
4989
4990 # Do not use the global_symbol_pipe unless it works.
4991 if test "$pipe_works" = yes; then
4992 break
4993 else
4994 lt_cv_sys_global_symbol_pipe=
4995 fi
4996 done
4997 ])
4998 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4999 lt_cv_sys_global_symbol_to_cdecl=
5000 fi
5001 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5002 AC_MSG_RESULT(failed)
5003 else
5004 AC_MSG_RESULT(ok)
5005 fi
5006 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5007
5008
5009 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5010 # ---------------------------------------
5011 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5012 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5013 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5014 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5015
5016 AC_MSG_CHECKING([for $compiler option to produce PIC])
5017 ifelse([$1],[CXX],[
5018 # C++ specific cases for pic, static, wl, etc.
5019 if test "$GXX" = yes; then
5020 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5021 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5022
5023 case $host_os in
5024 aix*)
5025 # All AIX code is PIC.
5026 if test "$host_cpu" = ia64; then
5027 # AIX 5 now supports IA64 processor
5028 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5029 fi
5030 ;;
5031 amigaos*)
5032 # FIXME: we need at least 68020 code to build shared libraries, but
5033 # adding the `-m68020' flag to GCC prevents building anything better,
5034 # like `-m68040'.
5035 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5036 ;;
5037 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5038 # PIC is the default for these OSes.
5039 ;;
5040 mingw* | cygwin* | os2* | pw32*)
5041 # This hack is so that the source file can tell whether it is being
5042 # built for inclusion in a dll (and should export symbols for example).
5043 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5044 # (--disable-auto-import) libraries
5045 m4_if([$1], [GCJ], [],
5046 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5047 ;;
5048 darwin* | rhapsody*)
5049 # PIC is the default on this platform
5050 # Common symbols not allowed in MH_DYLIB files
5051 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5052 ;;
5053 *djgpp*)
5054 # DJGPP does not support shared libraries at all
5055 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5056 ;;
5057 interix[[3-9]]*)
5058 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5059 # Instead, we relocate shared libraries at runtime.
5060 ;;
5061 sysv4*MP*)
5062 if test -d /usr/nec; then
5063 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5064 fi
5065 ;;
5066 hpux*)
5067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5068 # not for PA HP-UX.
5069 case $host_cpu in
5070 hppa*64*|ia64*)
5071 ;;
5072 *)
5073 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5074 ;;
5075 esac
5076 ;;
5077 *)
5078 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5079 ;;
5080 esac
5081 else
5082 case $host_os in
5083 aix[[4-9]]*)
5084 # All AIX code is PIC.
5085 if test "$host_cpu" = ia64; then
5086 # AIX 5 now supports IA64 processor
5087 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5088 else
5089 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5090 fi
5091 ;;
5092 chorus*)
5093 case $cc_basename in
5094 cxch68*)
5095 # Green Hills C++ Compiler
5096 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5097 ;;
5098 esac
5099 ;;
5100 darwin*)
5101 # PIC is the default on this platform
5102 # Common symbols not allowed in MH_DYLIB files
5103 case $cc_basename in
5104 xlc*)
5105 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5106 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5107 ;;
5108 esac
5109 ;;
5110 dgux*)
5111 case $cc_basename in
5112 ec++*)
5113 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5114 ;;
5115 ghcx*)
5116 # Green Hills C++ Compiler
5117 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5118 ;;
5119 *)
5120 ;;
5121 esac
5122 ;;
5123 freebsd* | dragonfly*)
5124 # FreeBSD uses GNU C++
5125 ;;
5126 hpux9* | hpux10* | hpux11*)
5127 case $cc_basename in
5128 CC*)
5129 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5130 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5131 if test "$host_cpu" != ia64; then
5132 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5133 fi
5134 ;;
5135 aCC*)
5136 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5137 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5138 case $host_cpu in
5139 hppa*64*|ia64*)
5140 # +Z the default
5141 ;;
5142 *)
5143 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5144 ;;
5145 esac
5146 ;;
5147 *)
5148 ;;
5149 esac
5150 ;;
5151 interix*)
5152 # This is c89, which is MS Visual C++ (no shared libs)
5153 # Anyone wants to do a port?
5154 ;;
5155 irix5* | irix6* | nonstopux*)
5156 case $cc_basename in
5157 CC*)
5158 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5159 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5160 # CC pic flag -KPIC is the default.
5161 ;;
5162 *)
5163 ;;
5164 esac
5165 ;;
5166 linux* | k*bsd*-gnu)
5167 case $cc_basename in
5168 KCC*)
5169 # KAI C++ Compiler
5170 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5171 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5172 ;;
5173 icpc* | ecpc*)
5174 # Intel C++
5175 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5176 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5177 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5178 ;;
5179 pgCC* | pgcpp*)
5180 # Portland Group C++ compiler.
5181 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5182 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5183 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5184 ;;
5185 cxx*)
5186 # Compaq C++
5187 # Make sure the PIC flag is empty. It appears that all Alpha
5188 # Linux and Compaq Tru64 Unix objects are PIC.
5189 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5190 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5191 ;;
5192 *)
5193 case `$CC -V 2>&1 | sed 5q` in
5194 *Sun\ C*)
5195 # Sun C++ 5.9
5196 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5197 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5198 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5199 ;;
5200 esac
5201 ;;
5202 esac
5203 ;;
5204 lynxos*)
5205 ;;
5206 m88k*)
5207 ;;
5208 mvs*)
5209 case $cc_basename in
5210 cxx*)
5211 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5212 ;;
5213 *)
5214 ;;
5215 esac
5216 ;;
5217 netbsd* | netbsdelf*-gnu)
5218 ;;
5219 osf3* | osf4* | osf5*)
5220 case $cc_basename in
5221 KCC*)
5222 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5223 ;;
5224 RCC*)
5225 # Rational C++ 2.4.1
5226 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5227 ;;
5228 cxx*)
5229 # Digital/Compaq C++
5230 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5231 # Make sure the PIC flag is empty. It appears that all Alpha
5232 # Linux and Compaq Tru64 Unix objects are PIC.
5233 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5234 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5235 ;;
5236 *)
5237 ;;
5238 esac
5239 ;;
5240 psos*)
5241 ;;
5242 solaris*)
5243 case $cc_basename in
5244 CC*)
5245 # Sun C++ 4.2, 5.x and Centerline C++
5246 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5247 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5248 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5249 ;;
5250 gcx*)
5251 # Green Hills C++ Compiler
5252 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5253 ;;
5254 *)
5255 ;;
5256 esac
5257 ;;
5258 sunos4*)
5259 case $cc_basename in
5260 CC*)
5261 # Sun C++ 4.x
5262 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5263 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5264 ;;
5265 lcc*)
5266 # Lucid
5267 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5268 ;;
5269 *)
5270 ;;
5271 esac
5272 ;;
5273 tandem*)
5274 case $cc_basename in
5275 NCC*)
5276 # NonStop-UX NCC 3.20
5277 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5278 ;;
5279 *)
5280 ;;
5281 esac
5282 ;;
5283 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5284 case $cc_basename in
5285 CC*)
5286 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5287 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5288 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5289 ;;
5290 esac
5291 ;;
5292 vxworks*)
5293 ;;
5294 *)
5295 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5296 ;;
5297 esac
5298 fi
5299 ],
5300 [
5301 if test "$GCC" = yes; then
5302 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5303 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5304
5305 case $host_os in
5306 aix*)
5307 # All AIX code is PIC.
5308 if test "$host_cpu" = ia64; then
5309 # AIX 5 now supports IA64 processor
5310 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5311 fi
5312 ;;
5313
5314 amigaos*)
5315 # FIXME: we need at least 68020 code to build shared libraries, but
5316 # adding the `-m68020' flag to GCC prevents building anything better,
5317 # like `-m68040'.
5318 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5319 ;;
5320
5321 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5322 # PIC is the default for these OSes.
5323 ;;
5324
5325 mingw* | cygwin* | pw32* | os2*)
5326 # This hack is so that the source file can tell whether it is being
5327 # built for inclusion in a dll (and should export symbols for example).
5328 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5329 # (--disable-auto-import) libraries
5330 m4_if([$1], [GCJ], [],
5331 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5332 ;;
5333
5334 darwin* | rhapsody*)
5335 # PIC is the default on this platform
5336 # Common symbols not allowed in MH_DYLIB files
5337 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5338 ;;
5339
5340 interix[[3-9]]*)
5341 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5342 # Instead, we relocate shared libraries at runtime.
5343 ;;
5344
5345 msdosdjgpp*)
5346 # Just because we use GCC doesn't mean we suddenly get shared libraries
5347 # on systems that don't support them.
5348 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5349 enable_shared=no
5350 ;;
5351
5352 sysv4*MP*)
5353 if test -d /usr/nec; then
5354 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5355 fi
5356 ;;
5357
5358 hpux*)
5359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5360 # not for PA HP-UX.
5361 case $host_cpu in
5362 hppa*64*|ia64*)
5363 # +Z the default
5364 ;;
5365 *)
5366 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5367 ;;
5368 esac
5369 ;;
5370
5371 *)
5372 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5373 ;;
5374 esac
5375 else
5376 # PORTME Check for flag to pass linker flags through the system compiler.
5377 case $host_os in
5378 aix*)
5379 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5380 if test "$host_cpu" = ia64; then
5381 # AIX 5 now supports IA64 processor
5382 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5383 else
5384 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5385 fi
5386 ;;
5387 darwin*)
5388 # PIC is the default on this platform
5389 # Common symbols not allowed in MH_DYLIB files
5390 case $cc_basename in
5391 xlc*)
5392 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5393 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5394 ;;
5395 esac
5396 ;;
5397
5398 mingw* | cygwin* | pw32* | os2*)
5399 # This hack is so that the source file can tell whether it is being
5400 # built for inclusion in a dll (and should export symbols for example).
5401 m4_if([$1], [GCJ], [],
5402 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5403 ;;
5404
5405 hpux9* | hpux10* | hpux11*)
5406 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5408 # not for PA HP-UX.
5409 case $host_cpu in
5410 hppa*64*|ia64*)
5411 # +Z the default
5412 ;;
5413 *)
5414 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5415 ;;
5416 esac
5417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5418 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5419 ;;
5420
5421 irix5* | irix6* | nonstopux*)
5422 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5423 # PIC (with -KPIC) is the default.
5424 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5425 ;;
5426
5427 newsos6)
5428 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5429 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5430 ;;
5431
5432 linux* | k*bsd*-gnu)
5433 case $cc_basename in
5434 icc* | ecc*)
5435 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5436 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5437 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5438 ;;
5439 pgcc* | pgf77* | pgf90* | pgf95*)
5440 # Portland Group compilers (*not* the Pentium gcc compiler,
5441 # which looks to be a dead project)
5442 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5443 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5444 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5445 ;;
5446 ccc*)
5447 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5448 # All Alpha code is PIC.
5449 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5450 ;;
5451 *)
5452 case `$CC -V 2>&1 | sed 5q` in
5453 *Sun\ C*)
5454 # Sun C 5.9
5455 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5456 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5457 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5458 ;;
5459 *Sun\ F*)
5460 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5461 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5462 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5463 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5464 ;;
5465 esac
5466 ;;
5467 esac
5468 ;;
5469
5470 osf3* | osf4* | osf5*)
5471 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5472 # All OSF/1 code is PIC.
5473 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5474 ;;
5475
5476 rdos*)
5477 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5478 ;;
5479
5480 solaris*)
5481 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5482 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5483 case $cc_basename in
5484 f77* | f90* | f95*)
5485 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5486 *)
5487 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5488 esac
5489 ;;
5490
5491 sunos4*)
5492 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5493 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5494 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5495 ;;
5496
5497 sysv4 | sysv4.2uw2* | sysv4.3*)
5498 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5499 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5500 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5501 ;;
5502
5503 sysv4*MP*)
5504 if test -d /usr/nec ;then
5505 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5506 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5507 fi
5508 ;;
5509
5510 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5511 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5512 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5513 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5514 ;;
5515
5516 unicos*)
5517 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5518 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5519 ;;
5520
5521 uts4*)
5522 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5523 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5524 ;;
5525
5526 *)
5527 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5528 ;;
5529 esac
5530 fi
5531 ])
5532 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5533
5534 #
5535 # Check to make sure the PIC flag actually works.
5536 #
5537 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5538 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5539 _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5540 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5541 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5542 "" | " "*) ;;
5543 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5544 esac],
5545 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5546 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5547 fi
5548 case $host_os in
5549 # For platforms which do not support PIC, -DPIC is meaningless:
5550 *djgpp*)
5551 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5552 ;;
5553 *)
5554 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5555 ;;
5556 esac
5557
5558 #
5559 # Check to make sure the static flag actually works.
5560 #
5561 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5562 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5563 _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5564 $lt_tmp_static_flag,
5565 [],
5566 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5567 ])
5568
5569
5570 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5571 # ------------------------------------
5572 # See if the linker supports building shared libraries.
5573 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5574 [AC_REQUIRE([LT_AC_PROG_SED])dnl
5575 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5576 ifelse([$1],[CXX],[
5577 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5578 case $host_os in
5579 aix[[4-9]]*)
5580 # If we're using GNU nm, then we don't want the "-C" option.
5581 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5582 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5583 _LT_AC_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'
5584 else
5585 _LT_AC_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'
5586 fi
5587 ;;
5588 pw32*)
5589 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5590 ;;
5591 cygwin* | mingw*)
5592 _LT_AC_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'
5593 ;;
5594 linux* | k*bsd*-gnu)
5595 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5596 ;;
5597 *)
5598 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5599 ;;
5600 esac
5601 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5602 ],[
5603 runpath_var=
5604 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5605 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5606 _LT_AC_TAGVAR(archive_cmds, $1)=
5607 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5608 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5609 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5610 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5611 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5612 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5613 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5614 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5615 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5616 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5617 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5618 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5619 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5620 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5621 _LT_AC_TAGVAR(module_cmds, $1)=
5622 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5623 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5624 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5625 # include_expsyms should be a list of space-separated symbols to be *always*
5626 # included in the symbol list
5627 _LT_AC_TAGVAR(include_expsyms, $1)=
5628 # exclude_expsyms can be an extended regexp of symbols to exclude
5629 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5630 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5631 # as well as any symbol that contains `d'.
5632 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5634 # platforms (ab)use it in PIC code, but their linkers get confused if
5635 # the symbol is explicitly referenced. Since portable code cannot
5636 # rely on this symbol name, it's probably fine to never include it in
5637 # preloaded symbol tables.
5638 # Exclude shared library initialization/finalization symbols.
5639 dnl Note also adjust exclude_expsyms for C++ above.
5640 extract_expsyms_cmds=
5641 # Just being paranoid about ensuring that cc_basename is set.
5642 _LT_CC_BASENAME([$compiler])
5643 case $host_os in
5644 cygwin* | mingw* | pw32*)
5645 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5646 # When not using gcc, we currently assume that we are using
5647 # Microsoft Visual C++.
5648 if test "$GCC" != yes; then
5649 with_gnu_ld=no
5650 fi
5651 ;;
5652 interix*)
5653 # we just hope/assume this is gcc and not c89 (= MSVC++)
5654 with_gnu_ld=yes
5655 ;;
5656 openbsd*)
5657 with_gnu_ld=no
5658 ;;
5659 esac
5660
5661 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5662 if test "$with_gnu_ld" = yes; then
5663 # If archive_cmds runs LD, not CC, wlarc should be empty
5664 wlarc='${wl}'
5665
5666 # Set some defaults for GNU ld with shared library support. These
5667 # are reset later if shared libraries are not supported. Putting them
5668 # here allows them to be overridden if necessary.
5669 runpath_var=LD_RUN_PATH
5670 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5671 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5672 # ancient GNU ld didn't support --whole-archive et. al.
5673 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5674 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5675 else
5676 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5677 fi
5678 supports_anon_versioning=no
5679 case `$LD -v 2>/dev/null` in
5680 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5681 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5682 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5683 *\ 2.11.*) ;; # other 2.11 versions
5684 *) supports_anon_versioning=yes ;;
5685 esac
5686
5687 # See if GNU ld supports shared libraries.
5688 case $host_os in
5689 aix[[3-9]]*)
5690 # On AIX/PPC, the GNU linker is very broken
5691 if test "$host_cpu" != ia64; then
5692 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5693 cat <<EOF 1>&2
5694
5695 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5696 *** to be unable to reliably create shared libraries on AIX.
5697 *** Therefore, libtool is disabling shared libraries support. If you
5698 *** really care for shared libraries, you may want to modify your PATH
5699 *** so that a non-GNU linker is found, and then restart.
5700
5701 EOF
5702 fi
5703 ;;
5704
5705 amigaos*)
5706 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5707 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5708 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5709
5710 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5711 # that the semantics of dynamic libraries on AmigaOS, at least up
5712 # to version 4, is to share data among multiple programs linked
5713 # with the same dynamic library. Since this doesn't match the
5714 # behavior of shared libraries on other platforms, we can't use
5715 # them.
5716 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5717 ;;
5718
5719 beos*)
5720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5721 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5723 # support --undefined. This deserves some investigation. FIXME
5724 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5725 else
5726 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5727 fi
5728 ;;
5729
5730 cygwin* | mingw* | pw32*)
5731 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5732 # as there is no search path for DLLs.
5733 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5734 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5735 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5736 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5737 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5738
5739 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5740 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5741 # If the export-symbols file already is a .def file (1st line
5742 # is EXPORTS), use it as is; otherwise, prepend...
5743 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5744 cp $export_symbols $output_objdir/$soname.def;
5745 else
5746 echo EXPORTS > $output_objdir/$soname.def;
5747 cat $export_symbols >> $output_objdir/$soname.def;
5748 fi~
5749 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5750 else
5751 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5752 fi
5753 ;;
5754
5755 interix[[3-9]]*)
5756 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5757 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5758 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5759 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5760 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5761 # Instead, shared libraries are loaded at an image base (0x10000000 by
5762 # default) and relocated if they conflict, which is a slow very memory
5763 # consuming and fragmenting process. To avoid this, we pick a random,
5764 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5765 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5766 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5767 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5768 ;;
5769
5770 gnu* | linux* | k*bsd*-gnu)
5771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5772 tmp_addflag=
5773 case $cc_basename,$host_cpu in
5774 pgcc*) # Portland Group C compiler
5775 _LT_AC_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'
5776 tmp_addflag=' $pic_flag'
5777 ;;
5778 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5779 _LT_AC_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'
5780 tmp_addflag=' $pic_flag -Mnomain' ;;
5781 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5782 tmp_addflag=' -i_dynamic' ;;
5783 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5784 tmp_addflag=' -i_dynamic -nofor_main' ;;
5785 ifc* | ifort*) # Intel Fortran compiler
5786 tmp_addflag=' -nofor_main' ;;
5787 esac
5788 case `$CC -V 2>&1 | sed 5q` in
5789 *Sun\ C*) # Sun C 5.9
5790 _LT_AC_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'
5791 tmp_sharedflag='-G' ;;
5792 *Sun\ F*) # Sun Fortran 8.3
5793 tmp_sharedflag='-G' ;;
5794 *)
5795 tmp_sharedflag='-shared' ;;
5796 esac
5797 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5798
5799 if test $supports_anon_versioning = yes; then
5800 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5802 $echo "local: *; };" >> $output_objdir/$libname.ver~
5803 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5804 fi
5805 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5806 else
5807 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5808 fi
5809 ;;
5810
5811 netbsd* | netbsdelf*-gnu)
5812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5813 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5814 wlarc=
5815 else
5816 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5817 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5818 fi
5819 ;;
5820
5821 solaris*)
5822 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5823 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5824 cat <<EOF 1>&2
5825
5826 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5827 *** create shared libraries on Solaris systems. Therefore, libtool
5828 *** is disabling shared libraries support. We urge you to upgrade GNU
5829 *** binutils to release 2.9.1 or newer. Another option is to modify
5830 *** your PATH or compiler configuration so that the native linker is
5831 *** used, and then restart.
5832
5833 EOF
5834 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5835 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5836 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5837 else
5838 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5839 fi
5840 ;;
5841
5842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5843 case `$LD -v 2>&1` in
5844 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5845 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5846 cat <<_LT_EOF 1>&2
5847
5848 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5849 *** reliably create shared libraries on SCO systems. Therefore, libtool
5850 *** is disabling shared libraries support. We urge you to upgrade GNU
5851 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5852 *** your PATH or compiler configuration so that the native linker is
5853 *** used, and then restart.
5854
5855 _LT_EOF
5856 ;;
5857 *)
5858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5859 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5860 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5861 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5862 else
5863 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5864 fi
5865 ;;
5866 esac
5867 ;;
5868
5869 sunos4*)
5870 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5871 wlarc=
5872 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5873 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5874 ;;
5875
5876 *)
5877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5878 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5879 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5880 else
5881 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5882 fi
5883 ;;
5884 esac
5885
5886 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5887 runpath_var=
5888 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5889 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5890 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5891 fi
5892 else
5893 # PORTME fill in a description of your system's linker (not GNU ld)
5894 case $host_os in
5895 aix3*)
5896 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5897 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5898 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5899 # Note: this linker hardcodes the directories in LIBPATH if there
5900 # are no directories specified by -L.
5901 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5902 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5903 # Neither direct hardcoding nor static linking is supported with a
5904 # broken collect2.
5905 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5906 fi
5907 ;;
5908
5909 aix[[4-9]]*)
5910 if test "$host_cpu" = ia64; then
5911 # On IA64, the linker does run time linking by default, so we don't
5912 # have to do anything special.
5913 aix_use_runtimelinking=no
5914 exp_sym_flag='-Bexport'
5915 no_entry_flag=""
5916 else
5917 # If we're using GNU nm, then we don't want the "-C" option.
5918 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5919 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5920 _LT_AC_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'
5921 else
5922 _LT_AC_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'
5923 fi
5924 aix_use_runtimelinking=no
5925
5926 # Test if we are trying to use run time linking or normal
5927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5928 # need to do runtime linking.
5929 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5930 for ld_flag in $LDFLAGS; do
5931 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5932 aix_use_runtimelinking=yes
5933 break
5934 fi
5935 done
5936 ;;
5937 esac
5938
5939 exp_sym_flag='-bexport'
5940 no_entry_flag='-bnoentry'
5941 fi
5942
5943 # When large executables or shared objects are built, AIX ld can
5944 # have problems creating the table of contents. If linking a library
5945 # or program results in "error TOC overflow" add -mminimal-toc to
5946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5948
5949 _LT_AC_TAGVAR(archive_cmds, $1)=''
5950 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5951 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5952 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5953
5954 if test "$GCC" = yes; then
5955 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5956 # We only want to do this on AIX 4.2 and lower, the check
5957 # below for broken collect2 doesn't work under 4.3+
5958 collect2name=`${CC} -print-prog-name=collect2`
5959 if test -f "$collect2name" && \
5960 strings "$collect2name" | grep resolve_lib_name >/dev/null
5961 then
5962 # We have reworked collect2
5963 :
5964 else
5965 # We have old collect2
5966 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5967 # It fails to find uninstalled libraries when the uninstalled
5968 # path is not listed in the libpath. Setting hardcode_minus_L
5969 # to unsupported forces relinking
5970 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5971 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5972 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5973 fi
5974 ;;
5975 esac
5976 shared_flag='-shared'
5977 if test "$aix_use_runtimelinking" = yes; then
5978 shared_flag="$shared_flag "'${wl}-G'
5979 fi
5980 else
5981 # not using gcc
5982 if test "$host_cpu" = ia64; then
5983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5984 # chokes on -Wl,-G. The following line is correct:
5985 shared_flag='-G'
5986 else
5987 if test "$aix_use_runtimelinking" = yes; then
5988 shared_flag='${wl}-G'
5989 else
5990 shared_flag='${wl}-bM:SRE'
5991 fi
5992 fi
5993 fi
5994
5995 # It seems that -bexpall does not export symbols beginning with
5996 # underscore (_), so it is better to generate a list of symbols to export.
5997 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5998 if test "$aix_use_runtimelinking" = yes; then
5999 # Warning - without using the other runtime loading flags (-brtl),
6000 # -berok will link without error, but may produce a broken library.
6001 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6002 # Determine the default libpath from the value encoded in an empty executable.
6003 _LT_AC_SYS_LIBPATH_AIX
6004 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6005 _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6006 else
6007 if test "$host_cpu" = ia64; then
6008 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6009 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6010 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6011 else
6012 # Determine the default libpath from the value encoded in an empty executable.
6013 _LT_AC_SYS_LIBPATH_AIX
6014 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6015 # Warning - without using the other run time loading flags,
6016 # -berok will link without error, but may produce a broken library.
6017 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6018 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6019 # Exported symbols can be pulled into shared objects from archives
6020 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6021 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6022 # This is similar to how AIX traditionally builds its shared libraries.
6023 _LT_AC_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'
6024 fi
6025 fi
6026 ;;
6027
6028 amigaos*)
6029 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6030 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6031 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6032 # see comment about different semantics on the GNU ld section
6033 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6034 ;;
6035
6036 bsdi[[45]]*)
6037 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6038 ;;
6039
6040 cygwin* | mingw* | pw32*)
6041 # When not using gcc, we currently assume that we are using
6042 # Microsoft Visual C++.
6043 # hardcode_libdir_flag_spec is actually meaningless, as there is
6044 # no search path for DLLs.
6045 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6046 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6047 # Tell ltmain to make .lib files, not .a files.
6048 libext=lib
6049 # Tell ltmain to make .dll files, not .so files.
6050 shrext_cmds=".dll"
6051 # FIXME: Setting linknames here is a bad hack.
6052 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6053 # The linker will automatically build a .lib file if we build a DLL.
6054 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6055 # FIXME: Should let the user specify the lib program.
6056 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6057 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6058 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6059 ;;
6060
6061 darwin* | rhapsody*)
6062 case $host_os in
6063 rhapsody* | darwin1.[[012]])
6064 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6065 ;;
6066 *) # Darwin 1.3 on
6067 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6068 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6069 else
6070 case ${MACOSX_DEPLOYMENT_TARGET} in
6071 10.[[012]])
6072 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6073 ;;
6074 10.*)
6075 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6076 ;;
6077 esac
6078 fi
6079 ;;
6080 esac
6081 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6082 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6083 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6084 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6085 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6086 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6087 if test "$GCC" = yes ; then
6088 output_verbose_link_cmd='echo'
6089 _LT_AC_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}"
6090 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6091 _LT_AC_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}"
6092 _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6093 else
6094 case $cc_basename in
6095 xlc*)
6096 output_verbose_link_cmd='echo'
6097 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6098 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6099 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6100 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6101 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6102 ;;
6103 *)
6104 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6105 ;;
6106 esac
6107 fi
6108 ;;
6109
6110 dgux*)
6111 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6112 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6113 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6114 ;;
6115
6116 freebsd1*)
6117 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6118 ;;
6119
6120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6121 # support. Future versions do this automatically, but an explicit c++rt0.o
6122 # does not break anything, and helps significantly (at the cost of a little
6123 # extra space).
6124 freebsd2.2*)
6125 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6126 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6127 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6128 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6129 ;;
6130
6131 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6132 freebsd2*)
6133 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6134 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6135 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6136 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6137 ;;
6138
6139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6140 freebsd* | dragonfly*)
6141 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6142 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6143 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6144 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6145 ;;
6146
6147 hpux9*)
6148 if test "$GCC" = yes; then
6149 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6150 else
6151 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6152 fi
6153 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6154 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6155 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6156
6157 # hardcode_minus_L: Not really in the search PATH,
6158 # but as the default location of the library.
6159 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6160 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6161 ;;
6162
6163 hpux10*)
6164 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6165 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6166 else
6167 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6168 fi
6169 if test "$with_gnu_ld" = no; then
6170 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6171 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6172
6173 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6174 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6175
6176 # hardcode_minus_L: Not really in the search PATH,
6177 # but as the default location of the library.
6178 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6179 fi
6180 ;;
6181
6182 hpux11*)
6183 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6184 case $host_cpu in
6185 hppa*64*)
6186 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6187 ;;
6188 ia64*)
6189 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6190 ;;
6191 *)
6192 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6193 ;;
6194 esac
6195 else
6196 case $host_cpu in
6197 hppa*64*)
6198 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6199 ;;
6200 ia64*)
6201 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6202 ;;
6203 *)
6204 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6205 ;;
6206 esac
6207 fi
6208 if test "$with_gnu_ld" = no; then
6209 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6210 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6211
6212 case $host_cpu in
6213 hppa*64*|ia64*)
6214 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6215 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6216 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6217 ;;
6218 *)
6219 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6220 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6221
6222 # hardcode_minus_L: Not really in the search PATH,
6223 # but as the default location of the library.
6224 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6225 ;;
6226 esac
6227 fi
6228 ;;
6229
6230 irix5* | irix6* | nonstopux*)
6231 if test "$GCC" = yes; then
6232 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6233 else
6234 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6235 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6236 fi
6237 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6238 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6239 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6240 ;;
6241
6242 netbsd* | netbsdelf*-gnu)
6243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6244 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6245 else
6246 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6247 fi
6248 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6249 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6250 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6251 ;;
6252
6253 newsos6)
6254 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6255 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6256 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6257 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6258 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6259 ;;
6260
6261 openbsd*)
6262 if test -f /usr/libexec/ld.so; then
6263 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6264 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6265 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6266 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6267 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6268 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6269 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6270 else
6271 case $host_os in
6272 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6273 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6274 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6275 ;;
6276 *)
6277 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6278 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6279 ;;
6280 esac
6281 fi
6282 else
6283 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6284 fi
6285 ;;
6286
6287 os2*)
6288 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6289 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6290 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6291 _LT_AC_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'
6292 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6293 ;;
6294
6295 osf3*)
6296 if test "$GCC" = yes; then
6297 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6298 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6299 else
6300 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6301 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6302 fi
6303 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6304 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6305 ;;
6306
6307 osf4* | osf5*) # as osf3* with the addition of -msym flag
6308 if test "$GCC" = yes; then
6309 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6310 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6311 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6312 else
6313 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6314 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6315 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6316 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6317
6318 # Both c and cxx compiler support -rpath directly
6319 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6320 fi
6321 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6322 ;;
6323
6324 solaris*)
6325 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6326 if test "$GCC" = yes; then
6327 wlarc='${wl}'
6328 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6329 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6330 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6331 else
6332 wlarc=''
6333 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6334 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6335 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6336 fi
6337 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6338 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6339 case $host_os in
6340 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6341 *)
6342 # The compiler driver will combine and reorder linker options,
6343 # but understands `-z linker_flag'. GCC discards it without `$wl',
6344 # but is careful enough not to reorder.
6345 # Supported since Solaris 2.6 (maybe 2.5.1?)
6346 if test "$GCC" = yes; then
6347 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6348 else
6349 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6350 fi
6351 ;;
6352 esac
6353 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6354 ;;
6355
6356 sunos4*)
6357 if test "x$host_vendor" = xsequent; then
6358 # Use $CC to link under sequent, because it throws in some extra .o
6359 # files that make .init and .fini sections work.
6360 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6361 else
6362 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6363 fi
6364 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6365 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6366 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6367 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6368 ;;
6369
6370 sysv4)
6371 case $host_vendor in
6372 sni)
6373 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6374 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6375 ;;
6376 siemens)
6377 ## LD is ld it makes a PLAMLIB
6378 ## CC just makes a GrossModule.
6379 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6380 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6381 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6382 ;;
6383 motorola)
6384 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6385 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6386 ;;
6387 esac
6388 runpath_var='LD_RUN_PATH'
6389 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6390 ;;
6391
6392 sysv4.3*)
6393 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6394 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6395 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6396 ;;
6397
6398 sysv4*MP*)
6399 if test -d /usr/nec; then
6400 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6401 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6402 runpath_var=LD_RUN_PATH
6403 hardcode_runpath_var=yes
6404 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6405 fi
6406 ;;
6407
6408 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6409 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6410 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6411 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6412 runpath_var='LD_RUN_PATH'
6413
6414 if test "$GCC" = yes; then
6415 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6416 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6417 else
6418 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6419 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6420 fi
6421 ;;
6422
6423 sysv5* | sco3.2v5* | sco5v6*)
6424 # Note: We can NOT use -z defs as we might desire, because we do not
6425 # link with -lc, and that would cause any symbols used from libc to
6426 # always be unresolved, which means just about no library would
6427 # ever link correctly. If we're not using GNU ld we use -z text
6428 # though, which does catch some bad symbols but isn't as heavy-handed
6429 # as -z defs.
6430 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6431 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6432 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6433 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6434 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6435 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6436 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6437 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6438 runpath_var='LD_RUN_PATH'
6439
6440 if test "$GCC" = yes; then
6441 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6442 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6443 else
6444 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6445 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6446 fi
6447 ;;
6448
6449 uts4*)
6450 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6451 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6452 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6453 ;;
6454
6455 *)
6456 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6457 ;;
6458 esac
6459 fi
6460 ])
6461 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6462 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6463
6464 #
6465 # Do we need to explicitly link libc?
6466 #
6467 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6468 x|xyes)
6469 # Assume -lc should be added
6470 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6471
6472 if test "$enable_shared" = yes && test "$GCC" = yes; then
6473 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6474 *'~'*)
6475 # FIXME: we may have to deal with multi-command sequences.
6476 ;;
6477 '$CC '*)
6478 # Test whether the compiler implicitly links with -lc since on some
6479 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6480 # to ld, don't add -lc before -lgcc.
6481 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6482 $rm conftest*
6483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6484
6485 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6486 soname=conftest
6487 lib=conftest
6488 libobjs=conftest.$ac_objext
6489 deplibs=
6490 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6491 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6492 compiler_flags=-v
6493 linker_flags=-v
6494 verstring=
6495 output_objdir=.
6496 libname=conftest
6497 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6498 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6499 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6500 then
6501 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6502 else
6503 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6504 fi
6505 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6506 else
6507 cat conftest.err 1>&5
6508 fi
6509 $rm conftest*
6510 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6511 ;;
6512 esac
6513 fi
6514 ;;
6515 esac
6516 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6517
6518
6519 # _LT_AC_FILE_LTDLL_C
6520 # -------------------
6521 # Be careful that the start marker always follows a newline.
6522 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6523 # /* ltdll.c starts here */
6524 # #define WIN32_LEAN_AND_MEAN
6525 # #include <windows.h>
6526 # #undef WIN32_LEAN_AND_MEAN
6527 # #include <stdio.h>
6528 #
6529 # #ifndef __CYGWIN__
6530 # # ifdef __CYGWIN32__
6531 # # define __CYGWIN__ __CYGWIN32__
6532 # # endif
6533 # #endif
6534 #
6535 # #ifdef __cplusplus
6536 # extern "C" {
6537 # #endif
6538 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6539 # #ifdef __cplusplus
6540 # }
6541 # #endif
6542 #
6543 # #ifdef __CYGWIN__
6544 # #include <cygwin/cygwin_dll.h>
6545 # DECLARE_CYGWIN_DLL( DllMain );
6546 # #endif
6547 # HINSTANCE __hDllInstance_base;
6548 #
6549 # BOOL APIENTRY
6550 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6551 # {
6552 # __hDllInstance_base = hInst;
6553 # return TRUE;
6554 # }
6555 # /* ltdll.c ends here */
6556 ])# _LT_AC_FILE_LTDLL_C
6557
6558
6559 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6560 # ---------------------------------
6561 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6562
6563
6564 # old names
6565 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6566 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6567 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6568 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6569 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6570 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6571 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6572
6573 # This is just to silence aclocal about the macro not being used
6574 ifelse([AC_DISABLE_FAST_INSTALL])
6575
6576 AC_DEFUN([LT_AC_PROG_GCJ],
6577 [AC_CHECK_TOOL(GCJ, gcj, no)
6578 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6579 AC_SUBST(GCJFLAGS)
6580 ])
6581
6582 AC_DEFUN([LT_AC_PROG_RC],
6583 [AC_CHECK_TOOL(RC, windres, no)
6584 ])
6585
6586
6587 # Cheap backport of AS_EXECUTABLE_P and required macros
6588 # from Autoconf 2.59; we should not use $as_executable_p directly.
6589
6590 # _AS_TEST_PREPARE
6591 # ----------------
6592 m4_ifndef([_AS_TEST_PREPARE],
6593 [m4_defun([_AS_TEST_PREPARE],
6594 [if test -x / >/dev/null 2>&1; then
6595 as_executable_p='test -x'
6596 else
6597 as_executable_p='test -f'
6598 fi
6599 ])])# _AS_TEST_PREPARE
6600
6601 # AS_EXECUTABLE_P
6602 # ---------------
6603 # Check whether a file is executable.
6604 m4_ifndef([AS_EXECUTABLE_P],
6605 [m4_defun([AS_EXECUTABLE_P],
6606 [AS_REQUIRE([_AS_TEST_PREPARE])dnl
6607 $as_executable_p $1[]dnl
6608 ])])# AS_EXECUTABLE_P
6609
6610 # NOTE: This macro has been submitted for inclusion into #
6611 # GNU Autoconf as AC_PROG_SED. When it is available in #
6612 # a released version of Autoconf we should remove this #
6613 # macro and use it instead. #
6614 # LT_AC_PROG_SED
6615 # --------------
6616 # Check for a fully-functional sed program, that truncates
6617 # as few characters as possible. Prefer GNU sed if found.
6618 AC_DEFUN([LT_AC_PROG_SED],
6619 [AC_MSG_CHECKING([for a sed that does not truncate output])
6620 AC_CACHE_VAL(lt_cv_path_SED,
6621 [# Loop through the user's path and test for sed and gsed.
6622 # Then use that list of sed's as ones to test for truncation.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for lt_ac_prog in sed gsed; do
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6631 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6632 fi
6633 done
6634 done
6635 done
6636 IFS=$as_save_IFS
6637 lt_ac_max=0
6638 lt_ac_count=0
6639 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6640 # along with /bin/sed that truncates output.
6641 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6642 test ! -f $lt_ac_sed && continue
6643 cat /dev/null > conftest.in
6644 lt_ac_count=0
6645 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6646 # Check for GNU sed and select it if it is found.
6647 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6648 lt_cv_path_SED=$lt_ac_sed
6649 break
6650 fi
6651 while true; do
6652 cat conftest.in conftest.in >conftest.tmp
6653 mv conftest.tmp conftest.in
6654 cp conftest.in conftest.nl
6655 echo >>conftest.nl
6656 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6657 cmp -s conftest.out conftest.nl || break
6658 # 10000 chars as input seems more than enough
6659 test $lt_ac_count -gt 10 && break
6660 lt_ac_count=`expr $lt_ac_count + 1`
6661 if test $lt_ac_count -gt $lt_ac_max; then
6662 lt_ac_max=$lt_ac_count
6663 lt_cv_path_SED=$lt_ac_sed
6664 fi
6665 done
6666 done
6667 ])
6668 SED=$lt_cv_path_SED
6669 AC_SUBST([SED])
6670 AC_MSG_RESULT([$SED])
6671 ])
667220
667321 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
667422 #
6828176 fi[]dnl
6829177 ])# PKG_CHECK_MODULES
6830178
6831 # Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
179 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6832180 #
6833181 # This file is free software; the Free Software Foundation
6834182 # gives unlimited permission to copy and/or distribute it,
6840188 # generated from the m4 files accompanying Automake X.Y.
6841189 # (This private macro should not be called outside this file.)
6842190 AC_DEFUN([AM_AUTOMAKE_VERSION],
6843 [am__api_version='1.10'
191 [am__api_version='1.11'
6844192 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6845193 dnl require some minimum version. Point them to the right macro.
6846 m4_if([$1], [1.10.1], [],
194 m4_if([$1], [1.11], [],
6847195 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6848196 ])
6849197
6857205 # AM_SET_CURRENT_AUTOMAKE_VERSION
6858206 # -------------------------------
6859207 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6860 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
208 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
6861209 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6862 [AM_AUTOMAKE_VERSION([1.10.1])dnl
210 [AM_AUTOMAKE_VERSION([1.11])dnl
6863211 m4_ifndef([AC_AUTOCONF_VERSION],
6864212 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
6865 _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
213 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
6866214
6867215 # Figure out how to run the assembler. -*- Autoconf -*-
6868216
6941289
6942290 # AM_CONDITIONAL -*- Autoconf -*-
6943291
6944 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
292 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
6945293 # Free Software Foundation, Inc.
6946294 #
6947295 # This file is free software; the Free Software Foundation
6948296 # gives unlimited permission to copy and/or distribute it,
6949297 # with or without modifications, as long as this notice is preserved.
6950298
6951 # serial 8
299 # serial 9
6952300
6953301 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
6954302 # -------------------------------------
6961309 AC_SUBST([$1_FALSE])dnl
6962310 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
6963311 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
312 m4_define([_AM_COND_VALUE_$1], [$2])dnl
6964313 if $2; then
6965314 $1_TRUE=
6966315 $1_FALSE='#'
6974323 Usually this means the macro was only invoked conditionally.]])
6975324 fi])])
6976325
6977 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
326 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
6978327 # Free Software Foundation, Inc.
6979328 #
6980329 # This file is free software; the Free Software Foundation
6981330 # gives unlimited permission to copy and/or distribute it,
6982331 # with or without modifications, as long as this notice is preserved.
6983332
6984 # serial 9
333 # serial 10
6985334
6986335 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6987336 # written in clear, in which case automake, when reading aclocal.m4,
7038387 if test "$am_compiler_list" = ""; then
7039388 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
7040389 fi
390 am__universal=false
391 m4_case([$1], [CC],
392 [case " $depcc " in #(
393 *\ -arch\ *\ -arch\ *) am__universal=true ;;
394 esac],
395 [CXX],
396 [case " $depcc " in #(
397 *\ -arch\ *\ -arch\ *) am__universal=true ;;
398 esac])
399
7041400 for depmode in $am_compiler_list; do
7042401 # Setup a source with many dependencies, because some compilers
7043402 # like to wrap large dependency lists on column 80 (with \), and
7055414 done
7056415 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7057416
417 # We check with `-c' and `-o' for the sake of the "dashmstdout"
418 # mode. It turns out that the SunPro C++ compiler does not properly
419 # handle `-M -o', and we need to detect this. Also, some Intel
420 # versions had trouble with output in subdirs
421 am__obj=sub/conftest.${OBJEXT-o}
422 am__minus_obj="-o $am__obj"
7058423 case $depmode in
424 gcc)
425 # This depmode causes a compiler race in universal mode.
426 test "$am__universal" = false || continue
427 ;;
7059428 nosideeffect)
7060429 # after this tag, mechanisms are not by side-effect, so they'll
7061430 # only be used when explicitly requested
7065434 break
7066435 fi
7067436 ;;
437 msvisualcpp | msvcmsys)
438 # This compiler won't grok `-c -o', but also, the minuso test has
439 # not run yet. These depmodes are late enough in the game, and
440 # so weak that their functioning should not be impacted.
441 am__obj=conftest.${OBJEXT-o}
442 am__minus_obj=
443 ;;
7068444 none) break ;;
7069445 esac
7070 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7071 # mode. It turns out that the SunPro C++ compiler does not properly
7072 # handle `-M -o', and we need to detect this.
7073446 if depmode=$depmode \
7074 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
447 source=sub/conftest.c object=$am__obj \
7075448 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7076 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
449 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7077450 >/dev/null 2>conftest.err &&
7078451 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7079452 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7080 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
453 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7081454 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7082455 # icc doesn't choke on unknown options, it will just issue warnings
7083456 # or remarks (even with -Werror). So we grep stderr for any message
7134507
7135508 # Generate code to set up dependency tracking. -*- Autoconf -*-
7136509
7137 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
510 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
7138511 # Free Software Foundation, Inc.
7139512 #
7140513 # This file is free software; the Free Software Foundation
7141514 # gives unlimited permission to copy and/or distribute it,
7142515 # with or without modifications, as long as this notice is preserved.
7143516
7144 #serial 3
517 #serial 5
7145518
7146519 # _AM_OUTPUT_DEPENDENCY_COMMANDS
7147520 # ------------------------------
7148521 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7149 [for mf in $CONFIG_FILES; do
7150 # Strip MF so we end up with the name of the file.
7151 mf=`echo "$mf" | sed -e 's/:.*$//'`
7152 # Check whether this is an Automake generated Makefile or not.
7153 # We used to match only the files named `Makefile.in', but
7154 # some people rename them; so instead we look at the file content.
7155 # Grep'ing the first line is not enough: some people post-process
7156 # each Makefile.in and add a new line on top of each file to say so.
7157 # Grep'ing the whole file is not good either: AIX grep has a line
7158 # limit of 2048, but all sed's we know have understand at least 4000.
7159 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7160 dirpart=`AS_DIRNAME("$mf")`
7161 else
7162 continue
7163 fi
7164 # Extract the definition of DEPDIR, am__include, and am__quote
7165 # from the Makefile without running `make'.
7166 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7167 test -z "$DEPDIR" && continue
7168 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7169 test -z "am__include" && continue
7170 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7171 # When using ansi2knr, U may be empty or an underscore; expand it
7172 U=`sed -n 's/^U = //p' < "$mf"`
7173 # Find all dependency output files, they are included files with
7174 # $(DEPDIR) in their names. We invoke sed twice because it is the
7175 # simplest approach to changing $(DEPDIR) to its actual value in the
7176 # expansion.
7177 for file in `sed -n "
7178 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7179 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7180 # Make sure the directory exists.
7181 test -f "$dirpart/$file" && continue
7182 fdir=`AS_DIRNAME(["$file"])`
7183 AS_MKDIR_P([$dirpart/$fdir])
7184 # echo "creating $dirpart/$file"
7185 echo '# dummy' > "$dirpart/$file"
522 [{
523 # Autoconf 2.62 quotes --file arguments for eval, but not when files
524 # are listed without --file. Let's play safe and only enable the eval
525 # if we detect the quoting.
526 case $CONFIG_FILES in
527 *\'*) eval set x "$CONFIG_FILES" ;;
528 *) set x $CONFIG_FILES ;;
529 esac
530 shift
531 for mf
532 do
533 # Strip MF so we end up with the name of the file.
534 mf=`echo "$mf" | sed -e 's/:.*$//'`
535 # Check whether this is an Automake generated Makefile or not.
536 # We used to match only the files named `Makefile.in', but
537 # some people rename them; so instead we look at the file content.
538 # Grep'ing the first line is not enough: some people post-process
539 # each Makefile.in and add a new line on top of each file to say so.
540 # Grep'ing the whole file is not good either: AIX grep has a line
541 # limit of 2048, but all sed's we know have understand at least 4000.
542 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
543 dirpart=`AS_DIRNAME("$mf")`
544 else
545 continue
546 fi
547 # Extract the definition of DEPDIR, am__include, and am__quote
548 # from the Makefile without running `make'.
549 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
550 test -z "$DEPDIR" && continue
551 am__include=`sed -n 's/^am__include = //p' < "$mf"`
552 test -z "am__include" && continue
553 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
554 # When using ansi2knr, U may be empty or an underscore; expand it
555 U=`sed -n 's/^U = //p' < "$mf"`
556 # Find all dependency output files, they are included files with
557 # $(DEPDIR) in their names. We invoke sed twice because it is the
558 # simplest approach to changing $(DEPDIR) to its actual value in the
559 # expansion.
560 for file in `sed -n "
561 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
562 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
563 # Make sure the directory exists.
564 test -f "$dirpart/$file" && continue
565 fdir=`AS_DIRNAME(["$file"])`
566 AS_MKDIR_P([$dirpart/$fdir])
567 # echo "creating $dirpart/$file"
568 echo '# dummy' > "$dirpart/$file"
569 done
7186570 done
7187 done
571 }
7188572 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7189573
7190574
7216600 # Do all the work for Automake. -*- Autoconf -*-
7217601
7218602 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7219 # 2005, 2006, 2008 Free Software Foundation, Inc.
7220 #
7221 # This file is free software; the Free Software Foundation
7222 # gives unlimited permission to copy and/or distribute it,
7223 # with or without modifications, as long as this notice is preserved.
7224
7225 # serial 13
603 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
604 #
605 # This file is free software; the Free Software Foundation
606 # gives unlimited permission to copy and/or distribute it,
607 # with or without modifications, as long as this notice is preserved.
608
609 # serial 16
7226610
7227611 # This macro actually does too much. Some checks are only needed if
7228612 # your package does certain things. But this isn't really a big deal.
7239623 # arguments mandatory, and then we can depend on a new Autoconf
7240624 # release and drop the old call support.
7241625 AC_DEFUN([AM_INIT_AUTOMAKE],
7242 [AC_PREREQ([2.60])dnl
626 [AC_PREREQ([2.62])dnl
7243627 dnl Autoconf wants to disallow AM_ names. We explicitly allow
7244628 dnl the ones we care about.
7245629 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7290674 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7291675 AM_MISSING_PROG(AUTOHEADER, autoheader)
7292676 AM_MISSING_PROG(MAKEINFO, makeinfo)
7293 AM_PROG_INSTALL_SH
7294 AM_PROG_INSTALL_STRIP
677 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
678 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
7295679 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7296680 # We need awk for the "check" target. The system "awk" is bad on
7297681 # some platforms.
7299683 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7300684 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7301685 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7302 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7303 [_AM_PROG_TAR([v7])])])
686 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
687 [_AM_PROG_TAR([v7])])])
7304688 _AM_IF_OPTION([no-dependencies],,
7305689 [AC_PROVIDE_IFELSE([AC_PROG_CC],
7306 [_AM_DEPENDENCIES(CC)],
7307 [define([AC_PROG_CC],
7308 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
690 [_AM_DEPENDENCIES(CC)],
691 [define([AC_PROG_CC],
692 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7309693 AC_PROVIDE_IFELSE([AC_PROG_CXX],
7310 [_AM_DEPENDENCIES(CXX)],
7311 [define([AC_PROG_CXX],
7312 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
694 [_AM_DEPENDENCIES(CXX)],
695 [define([AC_PROG_CXX],
696 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7313697 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7314 [_AM_DEPENDENCIES(OBJC)],
7315 [define([AC_PROG_OBJC],
7316 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7317 ])
7318 ])
698 [_AM_DEPENDENCIES(OBJC)],
699 [define([AC_PROG_OBJC],
700 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
701 ])
702 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
703 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
704 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
705 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
706 AC_CONFIG_COMMANDS_PRE(dnl
707 [m4_provide_if([_AM_COMPILER_EXEEXT],
708 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
709 ])
710
711 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
712 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
713 dnl mangled by Autoconf and run in a shell conditional statement.
714 m4_define([_AC_COMPILER_EXEEXT],
715 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
7319716
7320717
7321718 # When config.status generates a header, we must update the stamp-h file.
7339736 done
7340737 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7341738
7342 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
739 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
7343740 #
7344741 # This file is free software; the Free Software Foundation
7345742 # gives unlimited permission to copy and/or distribute it,
7350747 # Define $install_sh.
7351748 AC_DEFUN([AM_PROG_INSTALL_SH],
7352749 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7353 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
750 if test x"${install_sh}" != xset; then
751 case $am_aux_dir in
752 *\ * | *\ *)
753 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
754 *)
755 install_sh="\${SHELL} $am_aux_dir/install-sh"
756 esac
757 fi
7354758 AC_SUBST(install_sh)])
7355759
7356760 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7376780
7377781 # Check to see how 'make' treats includes. -*- Autoconf -*-
7378782
7379 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7380 #
7381 # This file is free software; the Free Software Foundation
7382 # gives unlimited permission to copy and/or distribute it,
7383 # with or without modifications, as long as this notice is preserved.
7384
7385 # serial 3
783 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
784 #
785 # This file is free software; the Free Software Foundation
786 # gives unlimited permission to copy and/or distribute it,
787 # with or without modifications, as long as this notice is preserved.
788
789 # serial 4
7386790
7387791 # AM_MAKE_INCLUDE()
7388792 # -----------------
7391795 [am_make=${MAKE-make}
7392796 cat > confinc << 'END'
7393797 am__doit:
7394 @echo done
798 @echo this is the am__doit target
7395799 .PHONY: am__doit
7396800 END
7397801 # If we don't find an include directive, just comment out the code.
7401805 _am_result=none
7402806 # First try GNU make style include.
7403807 echo "include confinc" > confmf
7404 # We grep out `Entering directory' and `Leaving directory'
7405 # messages which can occur if `w' ends up in MAKEFLAGS.
7406 # In particular we don't look at `^make:' because GNU make might
7407 # be invoked under some other name (usually "gmake"), in which
7408 # case it prints its new name instead of `make'.
7409 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7410 am__include=include
7411 am__quote=
7412 _am_result=GNU
7413 fi
808 # Ignore all kinds of additional output from `make'.
809 case `$am_make -s -f confmf 2> /dev/null` in #(
810 *the\ am__doit\ target*)
811 am__include=include
812 am__quote=
813 _am_result=GNU
814 ;;
815 esac
7414816 # Now try BSD make style include.
7415817 if test "$am__include" = "#"; then
7416818 echo '.include "confinc"' > confmf
7417 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7418 am__include=.include
7419 am__quote="\""
7420 _am_result=BSD
7421 fi
819 case `$am_make -s -f confmf 2> /dev/null` in #(
820 *the\ am__doit\ target*)
821 am__include=.include
822 am__quote="\""
823 _am_result=BSD
824 ;;
825 esac
7422826 fi
7423827 AC_SUBST([am__include])
7424828 AC_SUBST([am__quote])
7428832
7429833 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7430834
7431 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
835 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
7432836 # Free Software Foundation, Inc.
7433837 #
7434838 # This file is free software; the Free Software Foundation
7435839 # gives unlimited permission to copy and/or distribute it,
7436840 # with or without modifications, as long as this notice is preserved.
7437841
7438 # serial 5
842 # serial 6
7439843
7440844 # AM_MISSING_PROG(NAME, PROGRAM)
7441845 # ------------------------------
7452856 AC_DEFUN([AM_MISSING_HAS_RUN],
7453857 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7454858 AC_REQUIRE_AUX_FILE([missing])dnl
7455 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
859 if test x"${MISSING+set}" != xset; then
860 case $am_aux_dir in
861 *\ * | *\ *)
862 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
863 *)
864 MISSING="\${SHELL} $am_aux_dir/missing" ;;
865 esac
866 fi
7456867 # Use eval to expand $SHELL
7457868 if eval "$MISSING --run true"; then
7458869 am_missing_run="$MISSING --run "
7490901
7491902 # Helper functions for option handling. -*- Autoconf -*-
7492903
7493 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7494 #
7495 # This file is free software; the Free Software Foundation
7496 # gives unlimited permission to copy and/or distribute it,
7497 # with or without modifications, as long as this notice is preserved.
7498
7499 # serial 3
904 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
905 #
906 # This file is free software; the Free Software Foundation
907 # gives unlimited permission to copy and/or distribute it,
908 # with or without modifications, as long as this notice is preserved.
909
910 # serial 4
7500911
7501912 # _AM_MANGLE_OPTION(NAME)
7502913 # -----------------------
7513924 # ----------------------------------
7514925 # OPTIONS is a space-separated list of Automake options.
7515926 AC_DEFUN([_AM_SET_OPTIONS],
7516 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
927 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7517928
7518929 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7519930 # -------------------------------------------
7523934
7524935 # Check to make sure that the build environment is sane. -*- Autoconf -*-
7525936
7526 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
937 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
7527938 # Free Software Foundation, Inc.
7528939 #
7529940 # This file is free software; the Free Software Foundation
7530941 # gives unlimited permission to copy and/or distribute it,
7531942 # with or without modifications, as long as this notice is preserved.
7532943
7533 # serial 4
944 # serial 5
7534945
7535946 # AM_SANITY_CHECK
7536947 # ---------------
7539950 # Just in case
7540951 sleep 1
7541952 echo timestamp > conftest.file
953 # Reject unsafe characters in $srcdir or the absolute working directory
954 # name. Accept space and tab only in the latter.
955 am_lf='
956 '
957 case `pwd` in
958 *[[\\\"\#\$\&\'\`$am_lf]]*)
959 AC_MSG_ERROR([unsafe absolute working directory name]);;
960 esac
961 case $srcdir in
962 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
963 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
964 esac
965
7542966 # Do `set' in a subshell so we don't clobber the current shell's
7543967 # arguments. Must try -L first in case configure is actually a
7544968 # symlink; some systems play weird games with the mod time of symlinks
7545969 # (eg FreeBSD returns the mod time of the symlink's containing
7546970 # directory).
7547971 if (
7548 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
972 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7549973 if test "$[*]" = "X"; then
7550974 # -L didn't work.
7551 set X `ls -t $srcdir/configure conftest.file`
975 set X `ls -t "$srcdir/configure" conftest.file`
7552976 fi
7553977 rm -f conftest.file
7554978 if test "$[*]" != "X $srcdir/configure conftest.file" \
7572996 Check your system clock])
7573997 fi
7574998 AC_MSG_RESULT(yes)])
999
1000 # Copyright (C) 2009 Free Software Foundation, Inc.
1001 #
1002 # This file is free software; the Free Software Foundation
1003 # gives unlimited permission to copy and/or distribute it,
1004 # with or without modifications, as long as this notice is preserved.
1005
1006 # serial 1
1007
1008 # AM_SILENT_RULES([DEFAULT])
1009 # --------------------------
1010 # Enable less verbose build rules; with the default set to DEFAULT
1011 # (`yes' being less verbose, `no' or empty being verbose).
1012 AC_DEFUN([AM_SILENT_RULES],
1013 [AC_ARG_ENABLE([silent-rules],
1014 [ --enable-silent-rules less verbose build output (undo: `make V=1')
1015 --disable-silent-rules verbose build output (undo: `make V=0')])
1016 case $enable_silent_rules in
1017 yes) AM_DEFAULT_VERBOSITY=0;;
1018 no) AM_DEFAULT_VERBOSITY=1;;
1019 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1020 esac
1021 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1022 AM_BACKSLASH='\'
1023 AC_SUBST([AM_BACKSLASH])dnl
1024 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1025 ])
75751026
75761027 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
75771028 #
76011052 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
76021053 AC_SUBST([INSTALL_STRIP_PROGRAM])])
76031054
7604 # Copyright (C) 2006 Free Software Foundation, Inc.
7605 #
7606 # This file is free software; the Free Software Foundation
7607 # gives unlimited permission to copy and/or distribute it,
7608 # with or without modifications, as long as this notice is preserved.
1055 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1056 #
1057 # This file is free software; the Free Software Foundation
1058 # gives unlimited permission to copy and/or distribute it,
1059 # with or without modifications, as long as this notice is preserved.
1060
1061 # serial 2
76091062
76101063 # _AM_SUBST_NOTMAKE(VARIABLE)
76111064 # ---------------------------
76121065 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
76131066 # This macro is traced by Automake.
76141067 AC_DEFUN([_AM_SUBST_NOTMAKE])
1068
1069 # AM_SUBST_NOTMAKE(VARIABLE)
1070 # ---------------------------
1071 # Public sister of _AM_SUBST_NOTMAKE.
1072 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
76151073
76161074 # Check how to create a tarball. -*- Autoconf -*-
76171075
77111169
77121170 m4_include([m4/as-ac-expand.m4])
77131171 m4_include([m4/as-compiler-flag.m4])
1172 m4_include([m4/libtool.m4])
1173 m4_include([m4/ltoptions.m4])
1174 m4_include([m4/ltsugar.m4])
1175 m4_include([m4/ltversion.m4])
1176 m4_include([m4/lt~obsolete.m4])
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
44 # Free Software Foundation, Inc.
55
6 timestamp='2008-01-23'
6 timestamp='2009-06-10'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
169169 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
170170 eval $set_cc_for_build
171171 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
172 | grep __ELF__ >/dev/null
172 | grep -q __ELF__
173173 then
174174 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
175175 # Return netbsd for either. FIX?
323323 case `/usr/bin/uname -p` in
324324 sparc) echo sparc-icl-nx7; exit ;;
325325 esac ;;
326 s390x:SunOS:*:*)
327 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328 exit ;;
326329 sun4H:SunOS:5.*:*)
327330 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328331 exit ;;
330333 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331334 exit ;;
332335 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
333 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
336 eval $set_cc_for_build
337 SUN_ARCH="i386"
338 # If there is a compiler, see if it is configured for 64-bit objects.
339 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
340 # This test works for both compilers.
341 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
342 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
343 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
344 grep IS_64BIT_ARCH >/dev/null
345 then
346 SUN_ARCH="x86_64"
347 fi
348 fi
349 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334350 exit ;;
335351 sun4*:SunOS:6*:*)
336352 # According to config.sub, this is the proper way to canonicalize
639655 # => hppa64-hp-hpux11.23
640656
641657 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
642 grep __LP64__ >/dev/null
658 grep -q __LP64__
643659 then
644660 HP_ARCH="hppa2.0w"
645661 else
795811 x86)
796812 echo i586-pc-interix${UNAME_RELEASE}
797813 exit ;;
798 EM64T | authenticamd)
814 EM64T | authenticamd | genuineintel)
799815 echo x86_64-unknown-interix${UNAME_RELEASE}
800816 exit ;;
801817 IA64)
805821 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
806822 echo i${UNAME_MACHINE}-pc-mks
807823 exit ;;
824 8664:Windows_NT:*)
825 echo x86_64-pc-mks
826 exit ;;
808827 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
809828 # How do we know it's Interix rather than the generic POSIX subsystem?
810829 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
865884 m68*:Linux:*:*)
866885 echo ${UNAME_MACHINE}-unknown-linux-gnu
867886 exit ;;
868 mips:Linux:*:*)
887 mips:Linux:*:* | mips64:Linux:*:*)
869888 eval $set_cc_for_build
870889 sed 's/^ //' << EOF >$dummy.c
871890 #undef CPU
872 #undef mips
873 #undef mipsel
891 #undef ${UNAME_MACHINE}
892 #undef ${UNAME_MACHINE}el
874893 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
875 CPU=mipsel
894 CPU=${UNAME_MACHINE}el
876895 #else
877896 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
878 CPU=mips
879 #else
880 CPU=
881 #endif
882 #endif
883 EOF
884 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
885 /^CPU/{
886 s: ::g
887 p
888 }'`"
889 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
890 ;;
891 mips64:Linux:*:*)
892 eval $set_cc_for_build
893 sed 's/^ //' << EOF >$dummy.c
894 #undef CPU
895 #undef mips64
896 #undef mips64el
897 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
898 CPU=mips64el
899 #else
900 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
901 CPU=mips64
897 CPU=${UNAME_MACHINE}
902898 #else
903899 CPU=
904900 #endif
930926 EV67) UNAME_MACHINE=alphaev67 ;;
931927 EV68*) UNAME_MACHINE=alphaev68 ;;
932928 esac
933 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
929 objdump --private-headers /bin/sh | grep -q ld.so.1
934930 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
935931 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
932 exit ;;
933 padre:Linux:*:*)
934 echo sparc-unknown-linux-gnu
936935 exit ;;
937936 parisc:Linux:*:* | hppa:Linux:*:*)
938937 # Look for CPU level
981980 elf32-i386)
982981 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
983982 ;;
984 a.out-i386-linux)
985 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
986 exit ;;
987 coff-i386)
988 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
989 exit ;;
990 "")
991 # Either a pre-BFD a.out linker (linux-gnuoldld) or
992 # one that does not give us useful --help.
993 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
994 exit ;;
995983 esac
996984 # Determine whether the default compiler is a.out or elf
997985 eval $set_cc_for_build
10571045 i*86:syllable:*:*)
10581046 echo ${UNAME_MACHINE}-pc-syllable
10591047 exit ;;
1060 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1048 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
10611049 echo i386-unknown-lynxos${UNAME_RELEASE}
10621050 exit ;;
10631051 i*86:*DOS:*:*)
11011089 pc:*:*:*)
11021090 # Left here for compatibility:
11031091 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1104 # the processor, so we play safe by assuming i386.
1105 echo i386-pc-msdosdjgpp
1092 # the processor, so we play safe by assuming i586.
1093 # Note: whatever this is, it MUST be the same as what config.sub
1094 # prints for the "djgpp" host, or else GDB configury will decide that
1095 # this is a cross-build.
1096 echo i586-pc-msdosdjgpp
11061097 exit ;;
11071098 Intel:Mach:3*:*)
11081099 echo i386-pc-mach3
11401131 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11411132 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11421133 && { echo i486-ncr-sysv4; exit; } ;;
1134 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1135 OS_REL='.3'
1136 test -r /etc/.relid \
1137 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1138 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1139 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1140 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1141 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1142 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1143 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
11431144 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
11441145 echo m68k-unknown-lynxos${UNAME_RELEASE}
11451146 exit ;;
11521153 rs6000:LynxOS:2.*:*)
11531154 echo rs6000-unknown-lynxos${UNAME_RELEASE}
11541155 exit ;;
1155 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1156 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
11561157 echo powerpc-unknown-lynxos${UNAME_RELEASE}
11571158 exit ;;
11581159 SM[BE]S:UNIX_SV:*:*)
12141215 exit ;;
12151216 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
12161217 echo i586-pc-beos
1218 exit ;;
1219 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1220 echo i586-pc-haiku
12171221 exit ;;
12181222 SX-4:SUPER-UX:*:*)
12191223 echo sx4-nec-superux${UNAME_RELEASE}
13221326 exit ;;
13231327 i*86:rdos:*:*)
13241328 echo ${UNAME_MACHINE}-pc-rdos
1329 exit ;;
1330 i*86:AROS:*:*)
1331 echo ${UNAME_MACHINE}-pc-aros
13251332 exit ;;
13261333 esac
13271334
3232 /* Define to 1 if you have the <unistd.h> header file. */
3333 #undef HAVE_UNISTD_H
3434
35 /* Define to the sub-directory in which libtool stores uninstalled libraries.
36 */
37 #undef LT_OBJDIR
38
3539 /* Name of package */
3640 #undef PACKAGE
3741
4751 /* Define to the one symbol short name of this package. */
4852 #undef PACKAGE_TARNAME
4953
54 /* Define to the home page for this package. */
55 #undef PACKAGE_URL
56
5057 /* Define to the version of this package. */
5158 #undef PACKAGE_VERSION
5259
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
44 # Free Software Foundation, Inc.
55
6 timestamp='2008-01-16'
6 timestamp='2009-06-11'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
121121 case $maybe_os in
122122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 kopensolaris*-gnu* | \
124125 storm-chaos* | os2-emx* | rtmk-nova*)
125126 os=-$maybe_os
126127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
150151 -apple | -axis | -knuth | -cray)
151152 os=
152153 basic_machine=$1
154 ;;
155 -bluegene*)
156 os=-cnk
153157 ;;
154158 -sim | -cisco | -oki | -wec | -winbond)
155159 os=
248252 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
249253 | i370 | i860 | i960 | ia64 \
250254 | ip2k | iq2000 \
255 | lm32 \
251256 | m32c | m32r | m32rle | m68000 | m68k | m88k \
252 | maxq | mb | microblaze | mcore | mep \
257 | maxq | mb | microblaze | mcore | mep | metag \
253258 | mips | mipsbe | mipseb | mipsel | mipsle \
254259 | mips16 \
255260 | mips64 | mips64el \
261 | mips64octeon | mips64octeonel \
262 | mips64orion | mips64orionel \
263 | mips64r5900 | mips64r5900el \
256264 | mips64vr | mips64vrel \
257 | mips64orion | mips64orionel \
258265 | mips64vr4100 | mips64vr4100el \
259266 | mips64vr4300 | mips64vr4300el \
260267 | mips64vr5000 | mips64vr5000el \
267274 | mipsisa64sr71k | mipsisa64sr71kel \
268275 | mipstx39 | mipstx39el \
269276 | mn10200 | mn10300 \
277 | moxie \
270278 | mt \
271279 | msp430 \
272280 | nios | nios2 \
276284 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
277285 | pyramid \
278286 | score \
279 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
287 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
280288 | sh64 | sh64le \
281289 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
282290 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
285293 | v850 | v850e \
286294 | we32k \
287295 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
288 | z8k)
296 | z8k | z80)
289297 basic_machine=$basic_machine-unknown
290298 ;;
291299 m6811 | m68hc11 | m6812 | m68hc12)
328336 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
329337 | i*86-* | i860-* | i960-* | ia64-* \
330338 | ip2k-* | iq2000-* \
339 | lm32-* \
331340 | m32c-* | m32r-* | m32rle-* \
332341 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
333 | m88110-* | m88k-* | maxq-* | mcore-* \
342 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
334343 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
335344 | mips16-* \
336345 | mips64-* | mips64el-* \
346 | mips64octeon-* | mips64octeonel-* \
347 | mips64orion-* | mips64orionel-* \
348 | mips64r5900-* | mips64r5900el-* \
337349 | mips64vr-* | mips64vrel-* \
338 | mips64orion-* | mips64orionel-* \
339350 | mips64vr4100-* | mips64vr4100el-* \
340351 | mips64vr4300-* | mips64vr4300el-* \
341352 | mips64vr5000-* | mips64vr5000el-* \
357368 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
358369 | pyramid-* \
359370 | romp-* | rs6000-* \
360 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
371 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
361372 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
362373 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
363374 | sparclite-* \
364375 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
365376 | tahoe-* | thumb-* \
366 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
377 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
367378 | tron-* \
368379 | v850-* | v850e-* | vax-* \
369380 | we32k-* \
370381 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
371382 | xstormy16-* | xtensa*-* \
372383 | ymp-* \
373 | z8k-*)
384 | z8k-* | z80-*)
374385 ;;
375386 # Recognize the basic CPU types without company name, with glob match.
376387 xtensa*)
438449 basic_machine=m68k-apollo
439450 os=-bsd
440451 ;;
452 aros)
453 basic_machine=i386-pc
454 os=-aros
455 ;;
441456 aux)
442457 basic_machine=m68k-apple
443458 os=-aux
454469 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
455470 os=-linux
456471 ;;
472 bluegene*)
473 basic_machine=powerpc-ibm
474 os=-cnk
475 ;;
457476 c90)
458477 basic_machine=c90-cray
459478 os=-unicos
460479 ;;
480 cegcc)
481 basic_machine=arm-unknown
482 os=-cegcc
483 ;;
461484 convex-c1)
462485 basic_machine=c1-convex
463486 os=-bsd
524547 delta88)
525548 basic_machine=m88k-motorola
526549 os=-sysv3
550 ;;
551 dicos)
552 basic_machine=i686-pc
553 os=-dicos
527554 ;;
528555 djgpp)
529556 basic_machine=i586-pc
11271154 basic_machine=z8k-unknown
11281155 os=-sim
11291156 ;;
1157 z80-*-coff)
1158 basic_machine=z80-unknown
1159 os=-sim
1160 ;;
11301161 none)
11311162 basic_machine=none-none
11321163 os=-none
11651196 we32k)
11661197 basic_machine=we32k-att
11671198 ;;
1168 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1199 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
11691200 basic_machine=sh-unknown
11701201 ;;
11711202 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
12351266 # Each alternative MUST END IN A *, to match a version number.
12361267 # -sysv* is not here because it comes later, after sysvr4.
12371268 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1238 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1269 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
12391270 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1271 | -kopensolaris* \
12401272 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1241 | -aos* \
1273 | -aos* | -aros* \
12421274 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
12431275 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
12441276 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
12471279 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
12481280 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
12491281 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1250 | -chorusos* | -chorusrdb* \
1282 | -chorusos* | -chorusrdb* | -cegcc* \
12511283 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
12521284 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
12531285 | -uxpv* | -beos* | -mpeix* | -udk* \
13871419 -zvmoe)
13881420 os=-zvmoe
13891421 ;;
1422 -dicos*)
1423 os=-dicos
1424 ;;
13901425 -none)
13911426 ;;
13921427 *)
15841619 -sunos*)
15851620 vendor=sun
15861621 ;;
1587 -aix*)
1622 -cnk*|-aix*)
15881623 vendor=ibm
15891624 ;;
15901625 -beos*)
+7591
-16598
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.61 for telepathy-idle 0.1.3.
2 # Generated by GNU Autoconf 2.64 for telepathy-idle 0.1.5.
33 #
44 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle>.
55 #
66 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
8 # Foundation, Inc.
9 #
810 # This configure script is free software; the Free Software Foundation
911 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
1315
1416 # Be more Bourne compatible
1517 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1719 emulate sh
1820 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2022 # is contrary to our usage. Disable this feature.
2123 alias -g '${1+"$@"}'='"$@"'
2224 setopt NO_GLOB_SUBST
2325 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
2631 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
4072
4173 # The user is always right.
4274 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
5980 fi
6081
6182
6485 # there to prevent editors from complaining about space-tab.
6586 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6687 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
6988 IFS=" "" $as_nl"
7089
7190 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
91 case $0 in #((
7392 *[\\/]* ) as_myself=$0 ;;
7493 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7695 do
7796 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
81100 IFS=$as_save_IFS
82101
83102 ;;
88107 as_myself=$0
89108 fi
90109 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
98121 done
99122 PS1='$ '
100123 PS2='> '
101124 PS4='+ '
102125
103126 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 if test "x$CONFIG_SHELL" = x; then
136 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
137 emulate sh
138 NULLCMD=:
139 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
140 # is contrary to our usage. Disable this feature.
141 alias -g '\${1+\"\$@\"}'='\"\$@\"'
142 setopt NO_GLOB_SUBST
143 else
144 case \`(set -o) 2>/dev/null\` in #(
145 *posix*) :
146 set -o posix ;; #(
147 *) :
148 ;;
149 esac
150 fi
151 "
152 as_required="as_fn_return () { (exit \$1); }
153 as_fn_success () { as_fn_return 0; }
154 as_fn_failure () { as_fn_return 1; }
155 as_fn_ret_success () { return 0; }
156 as_fn_ret_failure () { return 1; }
157
158 exitcode=0
159 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
160 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
161 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
162 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
163 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164
165 else
166 exitcode=1; echo positional parameters were not saved.
167 fi
168 test x\$exitcode = x0 || exit 1"
169 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test \$(( 1 + 1 )) = 2 || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
108185 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 BASH_ENV=/dev/null
217 ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 export CONFIG_SHELL
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 fi
222
223 if test x$as_have_required = xno; then :
224 $as_echo "$0: This script requires a shell more modern than all"
225 $as_echo "$0: the shells that I found on your system."
226 if test x${ZSH_VERSION+set} = xset ; then
227 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
111229 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
230 $as_echo "$0: Please tell bug-autoconf@gnu.org and
231 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
235 $0: have one."
113236 fi
114 done
115
116 # Required to use basename.
237 exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255 { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264 return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335 else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352 else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
375
117376 if expr a : '\(a\)' >/dev/null 2>&1 &&
118377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119378 as_expr=expr
127386 as_basename=false
128387 fi
129388
130
131 # Name of the executable.
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
393 fi
394
132395 as_me=`$as_basename -- "$0" ||
133396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134397 X"$0" : 'X\(//\)$' \| \
135398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
399 $as_echo X/"$0" |
137400 sed '/^.*\/\([^/][^/]*\)\/*$/{
138401 s//\1/
139402 q
148411 }
149412 s/.*/./; q'`
150413
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
160 fi
161
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
165 }
166 as_func_success () {
167 as_func_return 0
168 }
169 as_func_failure () {
170 as_func_return 1
171 }
172 as_func_ret_success () {
173 return 0
174 }
175 as_func_ret_failure () {
176 return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181 :
182 else
183 exitcode=1
184 echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193 :
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 :
206 else
207 exitcode=1
208 echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219 :
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
228 /*)
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
235
236
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279 (exit $1)
280 }
281 as_func_success () {
282 as_func_return 0
283 }
284 as_func_failure () {
285 as_func_return 1
286 }
287 as_func_ret_success () {
288 return 0
289 }
290 as_func_ret_failure () {
291 return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296 :
297 else
298 exitcode=1
299 echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308 :
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 :
321 else
322 exitcode=1
323 echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336 break
337 fi
338
339 fi
340
341 done
342
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368 (exit \$1)
369 }
370 as_func_success () {
371 as_func_return 0
372 }
373 as_func_failure () {
374 as_func_return 1
375 }
376 as_func_ret_success () {
377 return 0
378 }
379 as_func_ret_failure () {
380 return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385 :
386 else
387 exitcode=1
388 echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397 :
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 :
410 else
411 exitcode=1
412 echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
420 }
421
422
423
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
439427 sed -n '
440428 p
441429 /[$]LINENO/=
452440 s/-\n.*//
453441 ' >$as_me.lineno &&
454442 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
457444
458445 # Don't try to exec as it changes $[0], causing all sort of problems
459446 # (the dirname of $[0] is not the place where we might find the
463450 exit
464451 }
465452
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
471 fi
472
473453 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
454 case `echo -n x` in #(((((
475455 -n*)
476 case `echo 'x\c'` in
456 case `echo 'xy\c'` in
477457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
479461 esac;;
480462 *)
481463 ECHO_N='-n';;
482464 esac
483465
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
489 fi
490
491466 rm -f conf$$ conf$$.exe conf$$.file
492467 if test -d conf$$.dir; then
493468 rm -f conf$$.dir/conf$$.file
494469 else
495470 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
471 mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
506485 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
486 fi
509487 else
510488 as_ln_s='cp -p'
511489 fi
513491 rmdir conf$$.dir 2>/dev/null
514492
515493 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
494 as_mkdir_p='mkdir -p "$as_dir"'
517495 else
518496 test -d ./-p && rmdir ./-p
519497 as_mkdir_p=false
530508 as_test_x='
531509 eval sh -c '\''
532510 if test -d "$1"; then
533 test -d "$1/.";
511 test -d "$1/.";
534512 else
535 case $1 in
536 -*)set "./$1";;
513 case $1 in #(
514 -*)set "./$1";;
537515 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
539517 ???[sx]*):;;*)false;;esac;fi
540518 '\'' sh
541519 '
550528
551529
552530
553
554531 # Check that we are running under the correct shell.
555532 SHELL=${CONFIG_SHELL-/bin/sh}
556533
557 case X$ECHO in
534 case X$lt_ECHO in
558535 X*--fallback-echo)
559536 # Remove one level of quotation (which was required for Make).
560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
561538 ;;
562539 esac
563540
564 echo=${ECHO-echo}
541 ECHO=${lt_ECHO-echo}
565542 if test "X$1" = X--no-reexec; then
566543 # Discard the --no-reexec flag, and continue.
567544 shift
568545 elif test "X$1" = X--fallback-echo; then
569546 # Avoid inline document here, it may be left over
570547 :
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $echo works!
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
573550 :
574551 else
575552 # Restart under the correct shell.
579556 if test "X$1" = X--fallback-echo; then
580557 # used as fallback echo
581558 shift
582 cat <<EOF
559 cat <<_LT_EOF
583560 $*
584 EOF
561 _LT_EOF
585562 exit 0
586563 fi
587564
589566 # if CDPATH is set.
590567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591568
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598 echo_test_string=`eval $cmd` &&
599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600 then
601 break
602 fi
603 done
604 fi
605
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 :
610 else
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
614 #
615 # So, first we look for a working echo in the user's PATH.
616
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576 then
577 break
578 fi
579 done
580 fi
581
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
585 :
586 else
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
590 #
591 # So, first we look for a working echo in the user's PATH.
592
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
595 IFS="$lt_save_ifs"
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
600 ECHO="$dir/echo"
601 break
602 fi
603 done
619604 IFS="$lt_save_ifs"
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 echo="$dir/echo"
625 break
626 fi
627 done
628 IFS="$lt_save_ifs"
629
630 if test "X$echo" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
636 echo='print -r'
637 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
643 export CONFIG_SHELL
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645 else
646 # Try using printf.
647 echo='printf %s\n'
648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 # Cool, printf works
652 :
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
605
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
612 ECHO='print -r'
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
619 export CONFIG_SHELL
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 else
622 # Try using printf.
623 ECHO='printf %s\n'
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
656626 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 export CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
660 export SHELL
661 echo="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 echo="$CONFIG_SHELL $0 --fallback-echo"
667 else
668 # maybe with a smaller string...
669 prev=:
670
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673 then
674 break
627 # Cool, printf works
628 :
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 export CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
636 export SHELL
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 else
644 # maybe with a smaller string...
645 prev=:
646
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649 then
650 break
651 fi
652 prev="$cmd"
653 done
654
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 else
660 # Oops. We lost completely, so just stick with echo.
661 ECHO=echo
675662 fi
676 prev="$cmd"
677 done
678
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 else
684 # Oops. We lost completely, so just stick with echo.
685 echo=echo
686 fi
663 fi
687664 fi
688665 fi
689666 fi
690667 fi
691 fi
692668
693669 # Copy echo and quote the copy suitably for passing to libtool from
694670 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 tagnames=${tagnames+${tagnames},}CXX
704
705 tagnames=${tagnames+${tagnames},}F77
671 lt_ECHO=$ECHO
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674 fi
675
676
677
706678
707679 exec 7<&0 </dev/null 6>&1
708680
722694 subdirs=
723695 MFLAGS=
724696 MAKEFLAGS=
725 SHELL=${CONFIG_SHELL-/bin/sh}
726697
727698 # Identity of this package.
728699 PACKAGE_NAME='telepathy-idle'
729700 PACKAGE_TARNAME='telepathy-idle'
730 PACKAGE_VERSION='0.1.3'
731 PACKAGE_STRING='telepathy-idle 0.1.3'
701 PACKAGE_VERSION='0.1.5'
702 PACKAGE_STRING='telepathy-idle 0.1.5'
732703 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle'
704 PACKAGE_URL=''
733705
734706 # Factoring default headers for most tests.
735707 ac_includes_default="\
767739 # include <unistd.h>
768740 #endif"
769741
770 ac_subst_vars='SHELL
742 ac_subst_vars='am__EXEEXT_FALSE
743 am__EXEEXT_TRUE
744 LTLIBOBJS
745 LIBOBJS
746 DBUS_SERVICES_DIR
747 DATADIR
748 TEST_PYTHON
749 WANT_TWISTED_TESTS_FALSE
750 WANT_TWISTED_TESTS_TRUE
751 PYTHON
752 XSLTPROC
753 OPENSSL_LIBS
754 OPENSSL_CFLAGS
755 TELEPATHY_LIBS
756 TELEPATHY_CFLAGS
757 DBUS_LIBS
758 DBUS_CFLAGS
759 GLIB_GENMARSHAL
760 GLIB_LIBS
761 GLIB_CFLAGS
762 PKG_CONFIG
763 ERROR_CFLAGS
764 am__fastdepCCAS_FALSE
765 am__fastdepCCAS_TRUE
766 CCASDEPMODE
767 CCASFLAGS
768 CCAS
769 CPP
770 OTOOL64
771 OTOOL
772 LIPO
773 NMEDIT
774 DSYMUTIL
775 lt_ECHO
776 RANLIB
777 AR
778 OBJDUMP
779 LN_S
780 NM
781 ac_ct_DUMPBIN
782 DUMPBIN
783 LD
784 FGREP
785 EGREP
786 GREP
787 SED
788 am__fastdepCC_FALSE
789 am__fastdepCC_TRUE
790 CCDEPMODE
791 AMDEPBACKSLASH
792 AMDEP_FALSE
793 AMDEP_TRUE
794 am__quote
795 am__include
796 DEPDIR
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
803 CC
804 host_os
805 host_vendor
806 host_cpu
807 host
808 build_os
809 build_vendor
810 build_cpu
811 build
812 LIBTOOL
813 am__untar
814 am__tar
815 AMTAR
816 am__leading_dot
817 SET_MAKE
818 AWK
819 mkdir_p
820 MKDIR_P
821 INSTALL_STRIP_PROGRAM
822 STRIP
823 install_sh
824 MAKEINFO
825 AUTOHEADER
826 AUTOMAKE
827 AUTOCONF
828 ACLOCAL
829 VERSION
830 PACKAGE
831 CYGPATH_W
832 am__isrc
833 INSTALL_DATA
834 INSTALL_SCRIPT
835 INSTALL_PROGRAM
836 AM_BACKSLASH
837 AM_DEFAULT_VERBOSITY
838 target_alias
839 host_alias
840 build_alias
841 LIBS
842 ECHO_T
843 ECHO_N
844 ECHO_C
845 DEFS
846 mandir
847 localedir
848 libdir
849 psdir
850 pdfdir
851 dvidir
852 htmldir
853 infodir
854 docdir
855 oldincludedir
856 includedir
857 localstatedir
858 sharedstatedir
859 sysconfdir
860 datadir
861 datarootdir
862 libexecdir
863 sbindir
864 bindir
865 program_transform_name
866 prefix
867 exec_prefix
868 PACKAGE_URL
869 PACKAGE_BUGREPORT
870 PACKAGE_STRING
871 PACKAGE_VERSION
872 PACKAGE_TARNAME
873 PACKAGE_NAME
771874 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 build
830 build_cpu
831 build_vendor
832 build_os
833 host
834 host_cpu
835 host_vendor
836 host_os
837 CC
838 CFLAGS
839 LDFLAGS
840 CPPFLAGS
841 ac_ct_CC
842 EXEEXT
843 OBJEXT
844 DEPDIR
845 am__include
846 am__quote
847 AMDEP_TRUE
848 AMDEP_FALSE
849 AMDEPBACKSLASH
850 CCDEPMODE
851 am__fastdepCC_TRUE
852 am__fastdepCC_FALSE
853 SED
854 GREP
855 EGREP
856 LN_S
857 ECHO
858 AR
859 RANLIB
860 DSYMUTIL
861 NMEDIT
862 CPP
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 CCAS
875 CCASFLAGS
876 CCASDEPMODE
877 am__fastdepCCAS_TRUE
878 am__fastdepCCAS_FALSE
879 ERROR_CFLAGS
880 PKG_CONFIG
881 GLIB_CFLAGS
882 GLIB_LIBS
883 GLIB_GENMARSHAL
884 DBUS_CFLAGS
885 DBUS_LIBS
886 TELEPATHY_CFLAGS
887 TELEPATHY_LIBS
888 OPENSSL_CFLAGS
889 OPENSSL_LIBS
890 XSLTPROC
891 PYTHON
892 WANT_TWISTED_TESTS_TRUE
893 WANT_TWISTED_TESTS_FALSE
894 TEST_PYTHON
895 DATADIR
896 DBUS_SERVICES_DIR
897 LIBOBJS
898 LTLIBOBJS'
875 SHELL'
899876 ac_subst_files=''
877 ac_user_opts='
878 enable_option_checking
879 enable_silent_rules
880 enable_shared
881 enable_static
882 with_pic
883 enable_fast_install
884 enable_dependency_tracking
885 with_gnu_ld
886 enable_libtool_lock
887 '
900888 ac_precious_vars='build_alias
901889 host_alias
902890 target_alias
906894 LIBS
907895 CPPFLAGS
908896 CPP
909 CXX
910 CXXFLAGS
911 CCC
912 CXXCPP
913 F77
914 FFLAGS
915897 CCAS
916898 CCASFLAGS
917899 PKG_CONFIG
928910 # Initialize some variables set by options.
929911 ac_init_help=
930912 ac_init_version=false
913 ac_unrecognized_opts=
914 ac_unrecognized_sep=
931915 # The variables have the same names as the options, with
932916 # dashes changed to underlines.
933917 cache_file=/dev/null
10261010 datarootdir=$ac_optarg ;;
10271011
10281012 -disable-* | --disable-*)
1029 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10301014 # Reject names that are not valid shell variable names.
1031 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1035 eval enable_$ac_feature=no ;;
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=no ;;
10361027
10371028 -docdir | --docdir | --docdi | --doc | --do)
10381029 ac_prev=docdir ;;
10451036 dvidir=$ac_optarg ;;
10461037
10471038 -enable-* | --enable-*)
1048 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10491040 # Reject names that are not valid shell variable names.
1050 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1054 eval enable_$ac_feature=\$ac_optarg ;;
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error "invalid feature name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=\$ac_optarg ;;
10551053
10561054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
10571055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
12421240 ac_init_version=: ;;
12431241
12441242 -with-* | --with-*)
1245 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
12461244 # Reject names that are not valid shell variable names.
1247 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 { echo "$as_me: error: invalid package name: $ac_package" >&2
1249 { (exit 1); exit 1; }; }
1250 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1251 eval with_$ac_package=\$ac_optarg ;;
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error "invalid package name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251 "with_$ac_useropt"
1252 "*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=\$ac_optarg ;;
12521257
12531258 -without-* | --without-*)
1254 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
12551260 # Reject names that are not valid shell variable names.
1256 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid package name: $ac_package" >&2
1258 { (exit 1); exit 1; }; }
1259 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1260 eval with_$ac_package=no ;;
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267 "with_$ac_useropt"
1268 "*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=no ;;
12611273
12621274 --x)
12631275 # Obsolete; use --with-x.
12771289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
12781290 x_libraries=$ac_optarg ;;
12791291
1280 -*) { echo "$as_me: error: unrecognized option: $ac_option
1281 Try \`$0 --help' for more information." >&2
1282 { (exit 1); exit 1; }; }
1292 -*) as_fn_error "unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information."
12831294 ;;
12841295
12851296 *=*)
12861297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
12871298 # Reject names that are not valid shell variable names.
1288 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1289 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1290 { (exit 1); exit 1; }; }
1299 case $ac_envvar in #(
1300 '' | [0-9]* | *[!_$as_cr_alnum]* )
1301 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1302 esac
12911303 eval $ac_envvar=\$ac_optarg
12921304 export $ac_envvar ;;
12931305
12941306 *)
12951307 # FIXME: should be removed in autoconf 3.0.
1296 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
12971309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
12991311 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
13001312 ;;
13011313
13041316
13051317 if test -n "$ac_prev"; then
13061318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307 { echo "$as_me: error: missing argument to $ac_option" >&2
1308 { (exit 1); exit 1; }; }
1309 fi
1310
1311 # Be sure to have absolute directory names.
1319 as_fn_error "missing argument to $ac_option"
1320 fi
1321
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1324 no) ;;
1325 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 esac
1328 fi
1329
1330 # Check all directory arguments for consistency.
13121331 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
13131332 datadir sysconfdir sharedstatedir localstatedir includedir \
13141333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
13151334 libdir localedir mandir
13161335 do
13171336 eval ac_val=\$$ac_var
1337 # Remove trailing slashes.
1338 case $ac_val in
1339 */ )
1340 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\$ac_val;;
1342 esac
1343 # Be sure to have absolute directory names.
13181344 case $ac_val in
13191345 [\\/$]* | ?:[\\/]* ) continue;;
13201346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
13211347 esac
1322 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1323 { (exit 1); exit 1; }; }
1348 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
13241349 done
13251350
13261351 # There might be people who depend on the old broken behavior: `$host'
13341359 if test "x$host_alias" != x; then
13351360 if test "x$build_alias" = x; then
13361361 cross_compiling=maybe
1337 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
13381363 If a cross compiler is detected then cross compile mode will be used." >&2
13391364 elif test "x$build_alias" != "x$host_alias"; then
13401365 cross_compiling=yes
13501375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
13511376 ac_ls_di=`ls -di .` &&
13521377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 { echo "$as_me: error: Working directory cannot be determined" >&2
1354 { (exit 1); exit 1; }; }
1378 as_fn_error "working directory cannot be determined"
13551379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 { echo "$as_me: error: pwd does not report name of working directory" >&2
1357 { (exit 1); exit 1; }; }
1380 as_fn_error "pwd does not report name of working directory"
13581381
13591382
13601383 # Find the source files, if location was not specified.
13611384 if test -z "$srcdir"; then
13621385 ac_srcdir_defaulted=yes
13631386 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$0" ||
1365 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$0" : 'X\(//\)[^/]' \| \
1367 X"$0" : 'X\(//\)$' \| \
1368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1369 echo X"$0" |
1387 ac_confdir=`$as_dirname -- "$as_myself" ||
1388 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$as_myself" : 'X\(//\)[^/]' \| \
1390 X"$as_myself" : 'X\(//\)$' \| \
1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1392 $as_echo X"$as_myself" |
13701393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13711394 s//\1/
13721395 q
13931416 fi
13941417 if test ! -r "$srcdir/$ac_unique_file"; then
13951418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1397 { (exit 1); exit 1; }; }
1419 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
13981420 fi
13991421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
14001422 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1402 { (exit 1); exit 1; }; }
1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
14031424 pwd)`
14041425 # When building in place, set srcdir=.
14051426 if test "$ac_abs_confdir" = "$ac_pwd"; then
14251446 # Omit some internal or obsolete options to make the list less imposing.
14261447 # This message is too long to be a string in the A/UX 3.1 sh.
14271448 cat <<_ACEOF
1428 \`configure' configures telepathy-idle 0.1.3 to adapt to many kinds of systems.
1449 \`configure' configures telepathy-idle 0.1.5 to adapt to many kinds of systems.
14291450
14301451 Usage: $0 [OPTION]... [VAR=VALUE]...
14311452
14471468
14481469 Installation directories:
14491470 --prefix=PREFIX install architecture-independent files in PREFIX
1450 [$ac_default_prefix]
1471 [$ac_default_prefix]
14511472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1452 [PREFIX]
1473 [PREFIX]
14531474
14541475 By default, \`make install' will install all the files in
14551476 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
14591480 For better control, use the options below.
14601481
14611482 Fine tuning of the installation directories:
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/telepathy-idle]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
1483 --bindir=DIR user executables [EPREFIX/bin]
1484 --sbindir=DIR system admin executables [EPREFIX/sbin]
1485 --libexecdir=DIR program executables [EPREFIX/libexec]
1486 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1489 --libdir=DIR object code libraries [EPREFIX/lib]
1490 --includedir=DIR C header files [PREFIX/include]
1491 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1492 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1493 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1494 --infodir=DIR info documentation [DATAROOTDIR/info]
1495 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1496 --mandir=DIR man documentation [DATAROOTDIR/man]
1497 --docdir=DIR documentation root [DATAROOTDIR/doc/telepathy-idle]
1498 --htmldir=DIR html documentation [DOCDIR]
1499 --dvidir=DIR dvi documentation [DOCDIR]
1500 --pdfdir=DIR pdf documentation [DOCDIR]
1501 --psdir=DIR ps documentation [DOCDIR]
14811502 _ACEOF
14821503
14831504 cat <<\_ACEOF
14951516
14961517 if test -n "$ac_init_help"; then
14971518 case $ac_init_help in
1498 short | recursive ) echo "Configuration of telepathy-idle 0.1.3:";;
1519 short | recursive ) echo "Configuration of telepathy-idle 0.1.5:";;
14991520 esac
15001521 cat <<\_ACEOF
15011522
15021523 Optional Features:
1524 --disable-option-checking ignore unrecognized --enable/--with options
15031525 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
15041526 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527 --enable-silent-rules less verbose build output (undo: `make V=1')
1528 --disable-silent-rules verbose build output (undo: `make V=0')
15051529 --enable-shared[=PKGS] build shared libraries [default=yes]
15061530 --enable-static[=PKGS] build static libraries [default=yes]
15071531 --enable-fast-install[=PKGS]
15131537 Optional Packages:
15141538 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
15151539 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
15171540 --with-pic try to use only PIC/non-PIC objects [default=use
15181541 both]
1519 --with-tags[=TAGS] include additional configurations [automatic]
1542 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
15201543
15211544 Some influential environment variables:
15221545 CC C compiler command
15271550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
15281551 you have headers in a nonstandard directory <include dir>
15291552 CPP C preprocessor
1530 CXX C++ compiler command
1531 CXXFLAGS C++ compiler flags
1532 CXXCPP C++ preprocessor
1533 F77 Fortran 77 compiler command
1534 FFLAGS Fortran 77 compiler flags
15351553 CCAS assembler compiler command (defaults to CC)
15361554 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
15371555 PKG_CONFIG path to pkg-config utility
15591577 if test "$ac_init_help" = "recursive"; then
15601578 # If there are subdirs, report their specific --help.
15611579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" || continue
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 continue
15631583 ac_builddir=.
15641584
15651585 case "$ac_dir" in
15661586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15671587 *)
1568 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15691589 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15711591 case $ac_top_builddir_sub in
15721592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15731593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16031623 echo &&
16041624 $SHELL "$ac_srcdir/configure" --help=recursive
16051625 else
1606 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
16071627 fi || ac_status=$?
16081628 cd "$ac_pwd" || { ac_status=$?; break; }
16091629 done
16121632 test -n "$ac_init_help" && exit $ac_status
16131633 if $ac_init_version; then
16141634 cat <<\_ACEOF
1615 telepathy-idle configure 0.1.3
1616 generated by GNU Autoconf 2.61
1617
1618 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1619 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1635 telepathy-idle configure 0.1.5
1636 generated by GNU Autoconf 2.64
1637
1638 Copyright (C) 2009 Free Software Foundation, Inc.
16201639 This configure script is free software; the Free Software Foundation
16211640 gives unlimited permission to copy, distribute and modify it.
16221641 _ACEOF
16231642 exit
16241643 fi
1644
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1648
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 return $ac_retval
1684
1685 } # ac_fn_c_try_compile
1686
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest$ac_exeext
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 $as_test_x conftest$ac_exeext
1715 }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=1
1722 fi
1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725 # interfere with the next link command; also delete a directory that is
1726 # left behind by Apple's compiler. We do this before executing the actions.
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 return $ac_retval
1730
1731 } # ac_fn_c_try_link
1732
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 $4
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 eval "$3=yes"
1752 else
1753 eval "$3=no"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761
1762 } # ac_fn_c_check_header_compile
1763
1764 # ac_fn_c_try_cpp LINENO
1765 # ----------------------
1766 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_cpp ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_cpp conftest.$ac_ext"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } >/dev/null && {
1786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 }; then :
1789 ac_retval=0
1790 else
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 ac_retval=1
1795 fi
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797 return $ac_retval
1798
1799 } # ac_fn_c_try_cpp
1800
1801 # ac_fn_c_try_run LINENO
1802 # ----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804 # that executables *can* be run.
1805 ac_fn_c_try_run ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_link"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>&5
1816 ac_status=$?
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819 { { case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_try") 2>&5
1826 ac_status=$?
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; }; }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: program exited with status $ac_status" >&5
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=$ac_status
1836 fi
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 return $ac_retval
1840
1841 } # ac_fn_c_try_run
1842
1843 # ac_fn_c_check_func LINENO FUNC VAR
1844 # ----------------------------------
1845 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1846 ac_fn_c_check_func ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1852 $as_echo_n "(cached) " >&6
1853 else
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1858 #define $2 innocuous_$2
1859
1860 /* System header to define __stub macros and hopefully few prototypes,
1861 which can conflict with char $2 (); below.
1862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1863 <limits.h> exists even on freestanding compilers. */
1864
1865 #ifdef __STDC__
1866 # include <limits.h>
1867 #else
1868 # include <assert.h>
1869 #endif
1870
1871 #undef $2
1872
1873 /* Override any GCC internal prototype to avoid an error.
1874 Use char because int might match the return type of a GCC
1875 builtin and then its argument prototype would still apply. */
1876 #ifdef __cplusplus
1877 extern "C"
1878 #endif
1879 char $2 ();
1880 /* The GNU C library defines this for functions which it implements
1881 to always fail with ENOSYS. Some functions are actually named
1882 something starting with __ and the normal name is an alias. */
1883 #if defined __stub_$2 || defined __stub___$2
1884 choke me
1885 #endif
1886
1887 int
1888 main ()
1889 {
1890 return $2 ();
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_link "$LINENO"; then :
1896 eval "$3=yes"
1897 else
1898 eval "$3=no"
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext \
1901 conftest$ac_exeext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907
1908 } # ac_fn_c_check_func
16251909 cat >config.log <<_ACEOF
16261910 This file contains any messages produced by compilers while
16271911 running configure, to aid debugging if configure makes a mistake.
16281912
1629 It was created by telepathy-idle $as_me 0.1.3, which was
1630 generated by GNU Autoconf 2.61. Invocation command line was
1913 It was created by telepathy-idle $as_me 0.1.5, which was
1914 generated by GNU Autoconf 2.64. Invocation command line was
16311915
16321916 $ $0 $@
16331917
16631947 do
16641948 IFS=$as_save_IFS
16651949 test -z "$as_dir" && as_dir=.
1666 echo "PATH: $as_dir"
1667 done
1950 $as_echo "PATH: $as_dir"
1951 done
16681952 IFS=$as_save_IFS
16691953
16701954 } >&5
16981982 | -silent | --silent | --silen | --sile | --sil)
16991983 continue ;;
17001984 *\'*)
1701 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17021986 esac
17031987 case $ac_pass in
1704 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
17051989 2)
1706 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1990 as_fn_append ac_configure_args1 " '$ac_arg'"
17071991 if test $ac_must_keep_next = true; then
17081992 ac_must_keep_next=false # Got value, back to normal.
17091993 else
17192003 -* ) ac_must_keep_next=true ;;
17202004 esac
17212005 fi
1722 ac_configure_args="$ac_configure_args '$ac_arg'"
2006 as_fn_append ac_configure_args " '$ac_arg'"
17232007 ;;
17242008 esac
17252009 done
17262010 done
1727 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1728 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2011 { ac_configure_args0=; unset ac_configure_args0;}
2012 { ac_configure_args1=; unset ac_configure_args1;}
17292013
17302014 # When interrupted or exit'd, cleanup temporary files, and complete
17312015 # config.log. We remove comments because anyway the quotes in there
17502034 case $ac_val in #(
17512035 *${as_nl}*)
17522036 case $ac_var in #(
1753 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1754 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2037 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17552039 esac
17562040 case $ac_var in #(
17572041 _ | IFS | as_nl) ;; #(
1758 *) $as_unset $ac_var ;;
2042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2043 *) { eval $ac_var=; unset $ac_var;} ;;
17592044 esac ;;
17602045 esac
17612046 done
17842069 do
17852070 eval ac_val=\$$ac_var
17862071 case $ac_val in
1787 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
17882073 esac
1789 echo "$ac_var='\''$ac_val'\''"
2074 $as_echo "$ac_var='\''$ac_val'\''"
17902075 done | sort
17912076 echo
17922077
18012086 do
18022087 eval ac_val=\$$ac_var
18032088 case $ac_val in
1804 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
18052090 esac
1806 echo "$ac_var='\''$ac_val'\''"
2091 $as_echo "$ac_var='\''$ac_val'\''"
18072092 done | sort
18082093 echo
18092094 fi
18192104 echo
18202105 fi
18212106 test "$ac_signal" != 0 &&
1822 echo "$as_me: caught signal $ac_signal"
1823 echo "$as_me: exit $exit_status"
2107 $as_echo "$as_me: caught signal $ac_signal"
2108 $as_echo "$as_me: exit $exit_status"
18242109 } >&5
18252110 rm -f core *.core core.conftest.* &&
18262111 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
18272112 exit $exit_status
18282113 ' 0
18292114 for ac_signal in 1 2 13 15; do
1830 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2115 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
18312116 done
18322117 ac_signal=0
18332118
18342119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
18352120 rm -f -r conftest* confdefs.h
2121
2122 $as_echo "/* confdefs.h */" > confdefs.h
18362123
18372124 # Predefined preprocessor variables.
18382125
18402127 #define PACKAGE_NAME "$PACKAGE_NAME"
18412128 _ACEOF
18422129
1843
18442130 cat >>confdefs.h <<_ACEOF
18452131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
18462132 _ACEOF
18472133
1848
18492134 cat >>confdefs.h <<_ACEOF
18502135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
18512136 _ACEOF
18522137
1853
18542138 cat >>confdefs.h <<_ACEOF
18552139 #define PACKAGE_STRING "$PACKAGE_STRING"
18562140 _ACEOF
18572141
1858
18592142 cat >>confdefs.h <<_ACEOF
18602143 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
18612144 _ACEOF
18622145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_URL "$PACKAGE_URL"
2148 _ACEOF
2149
18632150
18642151 # Let the site file select an alternate cache file if it wants to.
1865 # Prefer explicitly selected file to automatically selected ones.
2152 # Prefer an explicitly selected file to automatically selected ones.
2153 ac_site_file1=NONE
2154 ac_site_file2=NONE
18662155 if test -n "$CONFIG_SITE"; then
1867 set x "$CONFIG_SITE"
2156 ac_site_file1=$CONFIG_SITE
18682157 elif test "x$prefix" != xNONE; then
1869 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1870 else
1871 set x "$ac_default_prefix/share/config.site" \
1872 "$ac_default_prefix/etc/config.site"
1873 fi
1874 shift
1875 for ac_site_file
2158 ac_site_file1=$prefix/share/config.site
2159 ac_site_file2=$prefix/etc/config.site
2160 else
2161 ac_site_file1=$ac_default_prefix/share/config.site
2162 ac_site_file2=$ac_default_prefix/etc/config.site
2163 fi
2164 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
18762165 do
2166 test "x$ac_site_file" = xNONE && continue
18772167 if test -r "$ac_site_file"; then
1878 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1879 echo "$as_me: loading site script $ac_site_file" >&6;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2169 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
18802170 sed 's/^/| /' "$ac_site_file" >&5
18812171 . "$ac_site_file"
18822172 fi
18862176 # Some versions of bash will fail to source /dev/null (special
18872177 # files actually), so we avoid doing that.
18882178 if test -f "$cache_file"; then
1889 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1890 echo "$as_me: loading cache $cache_file" >&6;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180 $as_echo "$as_me: loading cache $cache_file" >&6;}
18912181 case $cache_file in
18922182 [\\/]* | ?:[\\/]* ) . "$cache_file";;
18932183 *) . "./$cache_file";;
18942184 esac
18952185 fi
18962186 else
1897 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1898 echo "$as_me: creating cache $cache_file" >&6;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188 $as_echo "$as_me: creating cache $cache_file" >&6;}
18992189 >$cache_file
19002190 fi
19012191
19092199 eval ac_new_val=\$ac_env_${ac_var}_value
19102200 case $ac_old_set,$ac_new_set in
19112201 set,)
1912 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1913 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
19142204 ac_cache_corrupted=: ;;
19152205 ,set)
1916 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1917 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
19182208 ac_cache_corrupted=: ;;
19192209 ,);;
19202210 *)
19212211 if test "x$ac_old_val" != "x$ac_new_val"; then
1922 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1923 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1924 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1925 echo "$as_me: former value: $ac_old_val" >&2;}
1926 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1927 echo "$as_me: current value: $ac_new_val" >&2;}
1928 ac_cache_corrupted=:
2212 # differences in whitespace do not lead to failure.
2213 ac_old_val_w=`echo x $ac_old_val`
2214 ac_new_val_w=`echo x $ac_new_val`
2215 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2218 ac_cache_corrupted=:
2219 else
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2222 eval $ac_var=\$ac_old_val
2223 fi
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2225 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2227 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
19292228 fi;;
19302229 esac
19312230 # Pass precious variables to config.status.
19322231 if test "$ac_new_set" = set; then
19332232 case $ac_new_val in
1934 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
19352234 *) ac_arg=$ac_var=$ac_new_val ;;
19362235 esac
19372236 case " $ac_configure_args " in
19382237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1939 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2238 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
19402239 esac
19412240 fi
19422241 done
19432242 if $ac_cache_corrupted; then
1944 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1945 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1946 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1947 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1948 { (exit 1); exit 1; }; }
1949 fi
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2247 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2248 fi
2249 ## -------------------- ##
2250 ## Main body of script. ##
2251 ## -------------------- ##
19742252
19752253 ac_ext=c
19762254 ac_cpp='$CPP $CPPFLAGS'
19822260
19832261
19842262
1985 am__api_version='1.10'
2263 # Enable silent build rules by default, requires at least
2264 # Automake-1.11. Disable by either passing --disable-silent-rules to
2265 # configure or passing V=1 to make
2266 # Check whether --enable-silent-rules was given.
2267 if test "${enable_silent_rules+set}" = set; then :
2268 enableval=$enable_silent_rules;
2269 fi
2270
2271 case $enable_silent_rules in
2272 yes) AM_DEFAULT_VERBOSITY=0;;
2273 no) AM_DEFAULT_VERBOSITY=1;;
2274 *) AM_DEFAULT_VERBOSITY=0;;
2275 esac
2276 AM_BACKSLASH='\'
2277
2278
2279 am__api_version='1.11'
19862280
19872281 ac_aux_dir=
19882282 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1989 if test -f "$ac_dir/install-sh"; then
1990 ac_aux_dir=$ac_dir
1991 ac_install_sh="$ac_aux_dir/install-sh -c"
1992 break
1993 elif test -f "$ac_dir/install.sh"; then
1994 ac_aux_dir=$ac_dir
1995 ac_install_sh="$ac_aux_dir/install.sh -c"
1996 break
1997 elif test -f "$ac_dir/shtool"; then
1998 ac_aux_dir=$ac_dir
1999 ac_install_sh="$ac_aux_dir/shtool install -c"
2000 break
2001 fi
2283 for ac_t in install-sh install.sh shtool; do
2284 if test -f "$ac_dir/$ac_t"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/$ac_t -c"
2287 break 2
2288 fi
2289 done
20022290 done
20032291 if test -z "$ac_aux_dir"; then
2004 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2005 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2006 { (exit 1); exit 1; }; }
2292 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
20072293 fi
20082294
20092295 # These three variables are undocumented and unsupported,
20282314 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20292315 # OS/2's system install, which has a completely different semantic
20302316 # ./install, which can be erroneously created by make from ./install.sh.
2031 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2032 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2317 # Reject install programs that cannot install multiple files.
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2319 $as_echo_n "checking for a BSD-compatible install... " >&6; }
20332320 if test -z "$INSTALL"; then
2034 if test "${ac_cv_path_install+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 if test "${ac_cv_path_install+set}" = set; then :
2322 $as_echo_n "(cached) " >&6
20362323 else
20372324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20382325 for as_dir in $PATH
20392326 do
20402327 IFS=$as_save_IFS
20412328 test -z "$as_dir" && as_dir=.
2042 # Account for people who put trailing slashes in PATH elements.
2043 case $as_dir/ in
2044 ./ | .// | /cC/* | \
2329 # Account for people who put trailing slashes in PATH elements.
2330 case $as_dir/ in #((
2331 ./ | .// | /[cC]/* | \
20452332 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2046 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2333 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
20472334 /usr/ucb/* ) ;;
20482335 *)
20492336 # OSF1 and SCO ODT 3.0 have their own names for install.
20612348 # program-specific install script used by HP pwplus--don't use.
20622349 :
20632350 else
2064 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2065 break 3
2351 rm -rf conftest.one conftest.two conftest.dir
2352 echo one > conftest.one
2353 echo two > conftest.two
2354 mkdir conftest.dir
2355 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2356 test -s conftest.one && test -s conftest.two &&
2357 test -s conftest.dir/conftest.one &&
2358 test -s conftest.dir/conftest.two
2359 then
2360 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2361 break 3
2362 fi
20662363 fi
20672364 fi
20682365 done
20692366 done
20702367 ;;
20712368 esac
2072 done
2369
2370 done
20732371 IFS=$as_save_IFS
20742372
2373 rm -rf conftest.one conftest.two conftest.dir
20752374
20762375 fi
20772376 if test "${ac_cv_path_install+set}" = set; then
20842383 INSTALL=$ac_install_sh
20852384 fi
20862385 fi
2087 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2088 echo "${ECHO_T}$INSTALL" >&6; }
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2387 $as_echo "$INSTALL" >&6; }
20892388
20902389 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20912390 # It thinks the first close brace ends the variable substitution.
20952394
20962395 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20972396
2098 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2099 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2398 $as_echo_n "checking whether build environment is sane... " >&6; }
21002399 # Just in case
21012400 sleep 1
21022401 echo timestamp > conftest.file
2402 # Reject unsafe characters in $srcdir or the absolute working directory
2403 # name. Accept space and tab only in the latter.
2404 am_lf='
2405 '
2406 case `pwd` in
2407 *[\\\"\#\$\&\'\`$am_lf]*)
2408 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2409 esac
2410 case $srcdir in
2411 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2412 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2413 esac
2414
21032415 # Do `set' in a subshell so we don't clobber the current shell's
21042416 # arguments. Must try -L first in case configure is actually a
21052417 # symlink; some systems play weird games with the mod time of symlinks
21062418 # (eg FreeBSD returns the mod time of the symlink's containing
21072419 # directory).
21082420 if (
2109 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2421 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
21102422 if test "$*" = "X"; then
21112423 # -L didn't work.
2112 set X `ls -t $srcdir/configure conftest.file`
2424 set X `ls -t "$srcdir/configure" conftest.file`
21132425 fi
21142426 rm -f conftest.file
21152427 if test "$*" != "X $srcdir/configure conftest.file" \
21192431 # if, for instance, CONFIG_SHELL is bash and it inherits a
21202432 # broken ls alias from the environment. This has actually
21212433 # happened. Such a system could not be considered "sane".
2122 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2123 alias in your environment" >&5
2124 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2125 alias in your environment" >&2;}
2126 { (exit 1); exit 1; }; }
2434 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2435 alias in your environment" "$LINENO" 5
21272436 fi
21282437
21292438 test "$2" = conftest.file
21322441 # Ok.
21332442 :
21342443 else
2135 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2136 Check your system clock" >&5
2137 echo "$as_me: error: newly created file is older than distributed files!
2138 Check your system clock" >&2;}
2139 { (exit 1); exit 1; }; }
2140 fi
2141 { echo "$as_me:$LINENO: result: yes" >&5
2142 echo "${ECHO_T}yes" >&6; }
2444 as_fn_error "newly created file is older than distributed files!
2445 Check your system clock" "$LINENO" 5
2446 fi
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2448 $as_echo "yes" >&6; }
21432449 test "$program_prefix" != NONE &&
21442450 program_transform_name="s&^&$program_prefix&;$program_transform_name"
21452451 # Use a double $ so make ignores it.
21462452 test "$program_suffix" != NONE &&
21472453 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2148 # Double any \ or $. echo might interpret backslashes.
2454 # Double any \ or $.
21492455 # By default was `s,x,x', remove it if useless.
2150 cat <<\_ACEOF >conftest.sed
2151 s/[\\$]/&&/g;s/;s,x,x,$//
2152 _ACEOF
2153 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2154 rm -f conftest.sed
2456 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2457 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
21552458
21562459 # expand $ac_aux_dir to an absolute path
21572460 am_aux_dir=`cd $ac_aux_dir && pwd`
21582461
2159 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2462 if test x"${MISSING+set}" != xset; then
2463 case $am_aux_dir in
2464 *\ * | *\ *)
2465 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2466 *)
2467 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2468 esac
2469 fi
21602470 # Use eval to expand $SHELL
21612471 if eval "$MISSING --run true"; then
21622472 am_missing_run="$MISSING --run "
21632473 else
21642474 am_missing_run=
2165 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2166 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2167 fi
2168
2169 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2170 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2476 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2477 fi
2478
2479 if test x"${install_sh}" != xset; then
2480 case $am_aux_dir in
2481 *\ * | *\ *)
2482 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2483 *)
2484 install_sh="\${SHELL} $am_aux_dir/install-sh"
2485 esac
2486 fi
2487
2488 # Installed binaries are usually stripped using `strip' when the user
2489 # run `make install-strip'. However `strip' might not be the right
2490 # tool to use in cross-compilation environments, therefore Automake
2491 # will honor the `STRIP' environment variable to overrule this program.
2492 if test "$cross_compiling" != no; then
2493 if test -n "$ac_tool_prefix"; then
2494 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2495 set dummy ${ac_tool_prefix}strip; ac_word=$2
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497 $as_echo_n "checking for $ac_word... " >&6; }
2498 if test "${ac_cv_prog_STRIP+set}" = set; then :
2499 $as_echo_n "(cached) " >&6
2500 else
2501 if test -n "$STRIP"; then
2502 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2514 fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 STRIP=$ac_cv_prog_STRIP
2522 if test -n "$STRIP"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2524 $as_echo "$STRIP" >&6; }
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527 $as_echo "no" >&6; }
2528 fi
2529
2530
2531 fi
2532 if test -z "$ac_cv_prog_STRIP"; then
2533 ac_ct_STRIP=$STRIP
2534 # Extract the first word of "strip", so it can be a program name with args.
2535 set dummy strip; ac_word=$2
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2537 $as_echo_n "checking for $ac_word... " >&6; }
2538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 if test -n "$ac_ct_STRIP"; then
2542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2546 do
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_ac_ct_STRIP="strip"
2552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2554 fi
2555 done
2556 done
2557 IFS=$as_save_IFS
2558
2559 fi
2560 fi
2561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2562 if test -n "$ac_ct_STRIP"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2564 $as_echo "$ac_ct_STRIP" >&6; }
2565 else
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567 $as_echo "no" >&6; }
2568 fi
2569
2570 if test "x$ac_ct_STRIP" = x; then
2571 STRIP=":"
2572 else
2573 case $cross_compiling:$ac_tool_warned in
2574 yes:)
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2577 ac_tool_warned=yes ;;
2578 esac
2579 STRIP=$ac_ct_STRIP
2580 fi
2581 else
2582 STRIP="$ac_cv_prog_STRIP"
2583 fi
2584
2585 fi
2586 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2587
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2589 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
21712590 if test -z "$MKDIR_P"; then
2172 if test "${ac_cv_path_mkdir+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 if test "${ac_cv_path_mkdir+set}" = set; then :
2592 $as_echo_n "(cached) " >&6
21742593 else
21752594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21762595 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
21772596 do
21782597 IFS=$as_save_IFS
21792598 test -z "$as_dir" && as_dir=.
2180 for ac_prog in mkdir gmkdir; do
2599 for ac_prog in mkdir gmkdir; do
21812600 for ac_exec_ext in '' $ac_executable_extensions; do
21822601 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
21832602 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
21892608 esac
21902609 done
21912610 done
2192 done
2611 done
21932612 IFS=$as_save_IFS
21942613
21952614 fi
22052624 MKDIR_P="$ac_install_sh -d"
22062625 fi
22072626 fi
2208 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2209 echo "${ECHO_T}$MKDIR_P" >&6; }
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2628 $as_echo "$MKDIR_P" >&6; }
22102629
22112630 mkdir_p="$MKDIR_P"
22122631 case $mkdir_p in
22182637 do
22192638 # Extract the first word of "$ac_prog", so it can be a program name with args.
22202639 set dummy $ac_prog; ac_word=$2
2221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2223 if test "${ac_cv_prog_AWK+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_AWK+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
22252644 else
22262645 if test -n "$AWK"; then
22272646 ac_cv_prog_AWK="$AWK" # Let the user override the test.
22312650 do
22322651 IFS=$as_save_IFS
22332652 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2653 for ac_exec_ext in '' $ac_executable_extensions; do
22352654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22362655 ac_cv_prog_AWK="$ac_prog"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22382657 break 2
22392658 fi
22402659 done
2241 done
2660 done
22422661 IFS=$as_save_IFS
22432662
22442663 fi
22452664 fi
22462665 AWK=$ac_cv_prog_AWK
22472666 if test -n "$AWK"; then
2248 { echo "$as_me:$LINENO: result: $AWK" >&5
2249 echo "${ECHO_T}$AWK" >&6; }
2250 else
2251 { echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2668 $as_echo "$AWK" >&6; }
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
22532672 fi
22542673
22552674
22562675 test -n "$AWK" && break
22572676 done
22582677
2259 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2260 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2261 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2262 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2679 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2680 set x ${MAKE-make}
2681 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2682 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2683 $as_echo_n "(cached) " >&6
22642684 else
22652685 cat >conftest.make <<\_ACEOF
22662686 SHELL = /bin/sh
22772697 rm -f conftest.make
22782698 fi
22792699 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2280 { echo "$as_me:$LINENO: result: yes" >&5
2281 echo "${ECHO_T}yes" >&6; }
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2701 $as_echo "yes" >&6; }
22822702 SET_MAKE=
22832703 else
2284 { echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6; }
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
22862706 SET_MAKE="MAKE=${MAKE-make}"
22872707 fi
22882708
23012721 am__isrc=' -I$(srcdir)'
23022722 # test to see if srcdir already configured
23032723 if test -f $srcdir/config.status; then
2304 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2305 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2306 { (exit 1); exit 1; }; }
2724 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
23072725 fi
23082726 fi
23092727
23192737
23202738 # Define the identity of the package.
23212739 PACKAGE='telepathy-idle'
2322 VERSION='0.1.3'
2740 VERSION='0.1.5'
23232741
23242742
23252743 cat >>confdefs.h <<_ACEOF
23472765
23482766 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
23492767
2350 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2351
2352 # Installed binaries are usually stripped using `strip' when the user
2353 # run `make install-strip'. However `strip' might not be the right
2354 # tool to use in cross-compilation environments, therefore Automake
2355 # will honor the `STRIP' environment variable to overrule this program.
2356 if test "$cross_compiling" != no; then
2357 if test -n "$ac_tool_prefix"; then
2358 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2359 set dummy ${ac_tool_prefix}strip; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_STRIP+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 if test -n "$STRIP"; then
2366 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 break 2
2378 fi
2379 done
2380 done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 STRIP=$ac_cv_prog_STRIP
2386 if test -n "$STRIP"; then
2387 { echo "$as_me:$LINENO: result: $STRIP" >&5
2388 echo "${ECHO_T}$STRIP" >&6; }
2389 else
2390 { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2392 fi
2393
2394
2395 fi
2396 if test -z "$ac_cv_prog_STRIP"; then
2397 ac_ct_STRIP=$STRIP
2398 # Extract the first word of "strip", so it can be a program name with args.
2399 set dummy strip; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405 if test -n "$ac_ct_STRIP"; then
2406 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_ac_ct_STRIP="strip"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419 done
2420 done
2421 IFS=$as_save_IFS
2422
2423 fi
2424 fi
2425 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2426 if test -n "$ac_ct_STRIP"; then
2427 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2428 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2429 else
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2432 fi
2433
2434 if test "x$ac_ct_STRIP" = x; then
2435 STRIP=":"
2436 else
2437 case $cross_compiling:$ac_tool_warned in
2438 yes:)
2439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2440 whose name does not start with the host triplet. If you think this
2441 configuration is useful to you, please write to autoconf@gnu.org." >&5
2442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2443 whose name does not start with the host triplet. If you think this
2444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2445 ac_tool_warned=yes ;;
2446 esac
2447 STRIP=$ac_ct_STRIP
2448 fi
2449 else
2450 STRIP="$ac_cv_prog_STRIP"
2451 fi
2452
2453 fi
2454 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2455
24562768 # We need awk for the "check" target. The system "awk" is bad on
24572769 # some platforms.
24582770 # Always define AMTAR for backward compatibility.
24662778
24672779
24682780
2469 # Check whether --enable-shared was given.
2470 if test "${enable_shared+set}" = set; then
2471 enableval=$enable_shared; p=${PACKAGE-default}
2472 case $enableval in
2473 yes) enable_shared=yes ;;
2474 no) enable_shared=no ;;
2475 *)
2476 enable_shared=no
2477 # Look at the argument we got. We use all the common list separators.
2478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2479 for pkg in $enableval; do
2480 IFS="$lt_save_ifs"
2481 if test "X$pkg" = "X$p"; then
2482 enable_shared=yes
2483 fi
2484 done
2485 IFS="$lt_save_ifs"
2486 ;;
2487 esac
2488 else
2489 enable_shared=yes
2490 fi
2491
2492
2493 # Check whether --enable-static was given.
2494 if test "${enable_static+set}" = set; then
2495 enableval=$enable_static; p=${PACKAGE-default}
2496 case $enableval in
2497 yes) enable_static=yes ;;
2498 no) enable_static=no ;;
2499 *)
2500 enable_static=no
2501 # Look at the argument we got. We use all the common list separators.
2502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2503 for pkg in $enableval; do
2504 IFS="$lt_save_ifs"
2505 if test "X$pkg" = "X$p"; then
2506 enable_static=yes
2507 fi
2508 done
2509 IFS="$lt_save_ifs"
2510 ;;
2511 esac
2512 else
2513 enable_static=yes
2514 fi
2515
2516
2517 # Check whether --enable-fast-install was given.
2518 if test "${enable_fast_install+set}" = set; then
2519 enableval=$enable_fast_install; p=${PACKAGE-default}
2520 case $enableval in
2521 yes) enable_fast_install=yes ;;
2522 no) enable_fast_install=no ;;
2523 *)
2524 enable_fast_install=no
2525 # Look at the argument we got. We use all the common list separators.
2526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2527 for pkg in $enableval; do
2528 IFS="$lt_save_ifs"
2529 if test "X$pkg" = "X$p"; then
2530 enable_fast_install=yes
2531 fi
2532 done
2533 IFS="$lt_save_ifs"
2534 ;;
2535 esac
2536 else
2537 enable_fast_install=yes
2538 fi
2539
2781 case `pwd` in
2782 *\ * | *\ *)
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2784 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2785 esac
2786
2787
2788
2789 macro_version='2.2.6'
2790 macro_revision='1.3012'
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804 ltmain="$ac_aux_dir/ltmain.sh"
25402805
25412806 # Make sure we can run config.sub.
25422807 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2543 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2544 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2545 { (exit 1); exit 1; }; }
2546
2547 { echo "$as_me:$LINENO: checking build system type" >&5
2548 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2549 if test "${ac_cv_build+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2811 $as_echo_n "checking build system type... " >&6; }
2812 if test "${ac_cv_build+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
25512814 else
25522815 ac_build_alias=$build_alias
25532816 test "x$ac_build_alias" = x &&
25542817 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
25552818 test "x$ac_build_alias" = x &&
2556 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2557 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2558 { (exit 1); exit 1; }; }
2819 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
25592820 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2560 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2561 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2562 { (exit 1); exit 1; }; }
2563
2564 fi
2565 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2566 echo "${ECHO_T}$ac_cv_build" >&6; }
2821 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2822
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2825 $as_echo "$ac_cv_build" >&6; }
25672826 case $ac_cv_build in
25682827 *-*-*) ;;
2569 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2570 echo "$as_me: error: invalid value of canonical build" >&2;}
2571 { (exit 1); exit 1; }; };;
2828 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
25722829 esac
25732830 build=$ac_cv_build
25742831 ac_save_IFS=$IFS; IFS='-'
25842841 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
25852842
25862843
2587 { echo "$as_me:$LINENO: checking host system type" >&5
2588 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2589 if test "${ac_cv_host+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2845 $as_echo_n "checking host system type... " >&6; }
2846 if test "${ac_cv_host+set}" = set; then :
2847 $as_echo_n "(cached) " >&6
25912848 else
25922849 if test "x$host_alias" = x; then
25932850 ac_cv_host=$ac_cv_build
25942851 else
25952852 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2596 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2597 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2598 { (exit 1); exit 1; }; }
2599 fi
2600
2601 fi
2602 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2603 echo "${ECHO_T}$ac_cv_host" >&6; }
2853 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2854 fi
2855
2856 fi
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2858 $as_echo "$ac_cv_host" >&6; }
26042859 case $ac_cv_host in
26052860 *-*-*) ;;
2606 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2607 echo "$as_me: error: invalid value of canonical host" >&2;}
2608 { (exit 1); exit 1; }; };;
2861 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
26092862 esac
26102863 host=$ac_cv_host
26112864 ac_save_IFS=$IFS; IFS='-'
26292882 am_make=${MAKE-make}
26302883 cat > confinc << 'END'
26312884 am__doit:
2632 @echo done
2885 @echo this is the am__doit target
26332886 .PHONY: am__doit
26342887 END
26352888 # If we don't find an include directive, just comment out the code.
2636 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2637 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2890 $as_echo_n "checking for style of include used by $am_make... " >&6; }
26382891 am__include="#"
26392892 am__quote=
26402893 _am_result=none
26412894 # First try GNU make style include.
26422895 echo "include confinc" > confmf
2643 # We grep out `Entering directory' and `Leaving directory'
2644 # messages which can occur if `w' ends up in MAKEFLAGS.
2645 # In particular we don't look at `^make:' because GNU make might
2646 # be invoked under some other name (usually "gmake"), in which
2647 # case it prints its new name instead of `make'.
2648 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2649 am__include=include
2650 am__quote=
2651 _am_result=GNU
2652 fi
2896 # Ignore all kinds of additional output from `make'.
2897 case `$am_make -s -f confmf 2> /dev/null` in #(
2898 *the\ am__doit\ target*)
2899 am__include=include
2900 am__quote=
2901 _am_result=GNU
2902 ;;
2903 esac
26532904 # Now try BSD make style include.
26542905 if test "$am__include" = "#"; then
26552906 echo '.include "confinc"' > confmf
2656 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2657 am__include=.include
2658 am__quote="\""
2659 _am_result=BSD
2660 fi
2661 fi
2662
2663
2664 { echo "$as_me:$LINENO: result: $_am_result" >&5
2665 echo "${ECHO_T}$_am_result" >&6; }
2907 case `$am_make -s -f confmf 2> /dev/null` in #(
2908 *the\ am__doit\ target*)
2909 am__include=.include
2910 am__quote="\""
2911 _am_result=BSD
2912 ;;
2913 esac
2914 fi
2915
2916
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2918 $as_echo "$_am_result" >&6; }
26662919 rm -f confinc confmf
26672920
26682921 # Check whether --enable-dependency-tracking was given.
2669 if test "${enable_dependency_tracking+set}" = set; then
2922 if test "${enable_dependency_tracking+set}" = set; then :
26702923 enableval=$enable_dependency_tracking;
26712924 fi
26722925
26912944 if test -n "$ac_tool_prefix"; then
26922945 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
26932946 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if test "${ac_cv_prog_CC+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
26982951 else
26992952 if test -n "$CC"; then
27002953 ac_cv_prog_CC="$CC" # Let the user override the test.
27042957 do
27052958 IFS=$as_save_IFS
27062959 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2960 for ac_exec_ext in '' $ac_executable_extensions; do
27082961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27092962 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27112964 break 2
27122965 fi
27132966 done
2714 done
2967 done
27152968 IFS=$as_save_IFS
27162969
27172970 fi
27182971 fi
27192972 CC=$ac_cv_prog_CC
27202973 if test -n "$CC"; then
2721 { echo "$as_me:$LINENO: result: $CC" >&5
2722 echo "${ECHO_T}$CC" >&6; }
2723 else
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
27262979 fi
27272980
27282981
27312984 ac_ct_CC=$CC
27322985 # Extract the first word of "gcc", so it can be a program name with args.
27332986 set dummy gcc; ac_word=$2
2734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
27382991 else
27392992 if test -n "$ac_ct_CC"; then
27402993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27442997 do
27452998 IFS=$as_save_IFS
27462999 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
3000 for ac_exec_ext in '' $ac_executable_extensions; do
27483001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27493002 ac_cv_prog_ac_ct_CC="gcc"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27513004 break 2
27523005 fi
27533006 done
2754 done
3007 done
27553008 IFS=$as_save_IFS
27563009
27573010 fi
27583011 fi
27593012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
27603013 if test -n "$ac_ct_CC"; then
2761 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2762 echo "${ECHO_T}$ac_ct_CC" >&6; }
2763 else
2764 { echo "$as_me:$LINENO: result: no" >&5
2765 echo "${ECHO_T}no" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3015 $as_echo "$ac_ct_CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
27663019 fi
27673020
27683021 if test "x$ac_ct_CC" = x; then
27703023 else
27713024 case $cross_compiling:$ac_tool_warned in
27723025 yes:)
2773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2774 whose name does not start with the host triplet. If you think this
2775 configuration is useful to you, please write to autoconf@gnu.org." >&5
2776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2777 whose name does not start with the host triplet. If you think this
2778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27793028 ac_tool_warned=yes ;;
27803029 esac
27813030 CC=$ac_ct_CC
27883037 if test -n "$ac_tool_prefix"; then
27893038 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27903039 set dummy ${ac_tool_prefix}cc; ac_word=$2
2791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2793 if test "${ac_cv_prog_CC+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if test "${ac_cv_prog_CC+set}" = set; then :
3043 $as_echo_n "(cached) " >&6
27953044 else
27963045 if test -n "$CC"; then
27973046 ac_cv_prog_CC="$CC" # Let the user override the test.
28013050 do
28023051 IFS=$as_save_IFS
28033052 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
3053 for ac_exec_ext in '' $ac_executable_extensions; do
28053054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28063055 ac_cv_prog_CC="${ac_tool_prefix}cc"
2807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28083057 break 2
28093058 fi
28103059 done
2811 done
3060 done
28123061 IFS=$as_save_IFS
28133062
28143063 fi
28153064 fi
28163065 CC=$ac_cv_prog_CC
28173066 if test -n "$CC"; then
2818 { echo "$as_me:$LINENO: result: $CC" >&5
2819 echo "${ECHO_T}$CC" >&6; }
2820 else
2821 { echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
28233072 fi
28243073
28253074
28283077 if test -z "$CC"; then
28293078 # Extract the first word of "cc", so it can be a program name with args.
28303079 set dummy cc; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_CC+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
28353084 else
28363085 if test -n "$CC"; then
28373086 ac_cv_prog_CC="$CC" # Let the user override the test.
28423091 do
28433092 IFS=$as_save_IFS
28443093 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
3094 for ac_exec_ext in '' $ac_executable_extensions; do
28463095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28473096 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
28483097 ac_prog_rejected=yes
28493098 continue
28503099 fi
28513100 ac_cv_prog_CC="cc"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28533102 break 2
28543103 fi
28553104 done
2856 done
3105 done
28573106 IFS=$as_save_IFS
28583107
28593108 if test $ac_prog_rejected = yes; then
28723121 fi
28733122 CC=$ac_cv_prog_CC
28743123 if test -n "$CC"; then
2875 { echo "$as_me:$LINENO: result: $CC" >&5
2876 echo "${ECHO_T}$CC" >&6; }
2877 else
2878 { echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6; }
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
28803129 fi
28813130
28823131
28873136 do
28883137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28893138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2892 if test "${ac_cv_prog_CC+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
28943143 else
28953144 if test -n "$CC"; then
28963145 ac_cv_prog_CC="$CC" # Let the user override the test.
29003149 do
29013150 IFS=$as_save_IFS
29023151 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
3152 for ac_exec_ext in '' $ac_executable_extensions; do
29043153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29053154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29073156 break 2
29083157 fi
29093158 done
2910 done
3159 done
29113160 IFS=$as_save_IFS
29123161
29133162 fi
29143163 fi
29153164 CC=$ac_cv_prog_CC
29163165 if test -n "$CC"; then
2917 { echo "$as_me:$LINENO: result: $CC" >&5
2918 echo "${ECHO_T}$CC" >&6; }
2919 else
2920 { echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
29223171 fi
29233172
29243173
29313180 do
29323181 # Extract the first word of "$ac_prog", so it can be a program name with args.
29333182 set dummy $ac_prog; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3186 $as_echo_n "(cached) " >&6
29383187 else
29393188 if test -n "$ac_ct_CC"; then
29403189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29443193 do
29453194 IFS=$as_save_IFS
29463195 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
3196 for ac_exec_ext in '' $ac_executable_extensions; do
29483197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29493198 ac_cv_prog_ac_ct_CC="$ac_prog"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29513200 break 2
29523201 fi
29533202 done
2954 done
3203 done
29553204 IFS=$as_save_IFS
29563205
29573206 fi
29583207 fi
29593208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
29603209 if test -n "$ac_ct_CC"; then
2961 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962 echo "${ECHO_T}$ac_ct_CC" >&6; }
2963 else
2964 { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
29663215 fi
29673216
29683217
29743223 else
29753224 case $cross_compiling:$ac_tool_warned in
29763225 yes:)
2977 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2978 whose name does not start with the host triplet. If you think this
2979 configuration is useful to you, please write to autoconf@gnu.org." >&5
2980 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2981 whose name does not start with the host triplet. If you think this
2982 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29833228 ac_tool_warned=yes ;;
29843229 esac
29853230 CC=$ac_ct_CC
29893234 fi
29903235
29913236
2992 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2993 See \`config.log' for more details." >&5
2994 echo "$as_me: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&2;}
2996 { (exit 1); exit 1; }; }
3237 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error "no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." "$LINENO" 5; }
29973241
29983242 # Provide some information about the compiler.
2999 echo "$as_me:$LINENO: checking for C compiler version" >&5
3000 ac_compiler=`set X $ac_compile; echo $2`
3001 { (ac_try="$ac_compiler --version >&5"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3244 set X $ac_compile
3245 ac_compiler=$2
3246 for ac_option in --version -v -V -qversion; do
3247 { { ac_try="$ac_compiler $ac_option >&5"
30023248 case "(($ac_try" in
30033249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043250 *) ac_try_echo=$ac_try;;
30053251 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compiler --version >&5") 2>&5
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
30083255 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }
3011 { (ac_try="$ac_compiler -v >&5"
3012 case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compiler -v >&5") 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }
3021 { (ac_try="$ac_compiler -V >&5"
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compiler -V >&5") 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }
3031
3032 cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h. */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3256 if test -s conftest.err; then
3257 sed '10a\
3258 ... rest of stderr output deleted ...
3259 10q' conftest.err >conftest.er1
3260 cat conftest.er1 >&5
3261 rm -f conftest.er1 conftest.err
3262 fi
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }
3265 done
3266
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30373268 /* end confdefs.h. */
3038
3269 #include <stdio.h>
30393270 int
30403271 main ()
30413272 {
3273 FILE *f = fopen ("conftest.out", "w");
3274 return ferror (f) || fclose (f) != 0;
30423275
30433276 ;
30443277 return 0;
30453278 }
30463279 _ACEOF
30473280 ac_clean_files_save=$ac_clean_files
3048 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3281 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
30493282 # Try to create an executable without -o first, disregard a.out.
30503283 # It will help us diagnose broken compilers, and finding out an intuition
30513284 # of exeext.
3052 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3053 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3054 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3055 #
3056 # List of possible output files, starting from the most likely.
3057 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3058 # only as a last resort. b.out is created by i960 compilers.
3059 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3060 #
3061 # The IRIX 6 linker writes into existing files which may not be
3062 # executable, retaining their permissions. Remove them first so a
3063 # subsequent execution test works.
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3286 $as_echo_n "checking for C compiler default output file name... " >&6; }
3287 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3288
3289 # The possible output files:
3290 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3291
30643292 ac_rmfiles=
30653293 for ac_file in $ac_files
30663294 do
30673295 case $ac_file in
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
30693297 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
30703298 esac
30713299 done
30723300 rm -f $ac_rmfiles
30733301
3074 if { (ac_try="$ac_link_default"
3302 if { { ac_try="$ac_link_default"
30753303 case "(($ac_try" in
30763304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773305 *) ac_try_echo=$ac_try;;
30783306 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
30803309 (eval "$ac_link_default") 2>&5
30813310 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; then
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
30843313 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
30853314 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
30863315 # in a Makefile. We should not override ac_cv_exeext if it was cached,
30903319 do
30913320 test -f "$ac_file" || continue
30923321 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
30943323 ;;
30953324 [ab].out )
30963325 # We found the default executable, but exeext='' is most
30973326 # certainly right.
30983327 break;;
30993328 *.* )
3100 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3329 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
31013330 then :; else
31023331 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31033332 fi
31163345 else
31173346 ac_file=''
31183347 fi
3119
3120 { echo "$as_me:$LINENO: result: $ac_file" >&5
3121 echo "${ECHO_T}$ac_file" >&6; }
3122 if test -z "$ac_file"; then
3123 echo "$as_me: failed program was:" >&5
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3349 $as_echo "$ac_file" >&6; }
3350 if test -z "$ac_file"; then :
3351 $as_echo "$as_me: failed program was:" >&5
31243352 sed 's/^/| /' conftest.$ac_ext >&5
31253353
3126 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3127 See \`config.log' for more details." >&5
3128 echo "$as_me: error: C compiler cannot create executables
3129 See \`config.log' for more details." >&2;}
3130 { (exit 77); exit 77; }; }
3131 fi
3132
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 { as_fn_set_status 77
3357 as_fn_error "C compiler cannot create executables
3358 See \`config.log' for more details." "$LINENO" 5; }; }
3359 fi
31333360 ac_exeext=$ac_cv_exeext
31343361
31353362 # Check that the compiler produces executables we can run. If not, either
31363363 # the compiler is broken, or we cross compile.
3137 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3138 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3139 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3365 $as_echo_n "checking whether the C compiler works... " >&6; }
31403366 # If not cross compiling, check that we can run a simple program.
31413367 if test "$cross_compiling" != yes; then
31423368 if { ac_try='./$ac_file'
3143 { (case "(($ac_try" in
3369 { { case "(($ac_try" in
31443370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31453371 *) ac_try_echo=$ac_try;;
31463372 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
31483375 (eval "$ac_try") 2>&5
31493376 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; }; then
31523379 cross_compiling=no
31533380 else
31543381 if test "$cross_compiling" = maybe; then
31553382 cross_compiling=yes
31563383 else
3157 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error "cannot run C compiled programs.
31583387 If you meant to cross compile, use \`--host'.
3159 See \`config.log' for more details." >&5
3160 echo "$as_me: error: cannot run C compiled programs.
3161 If you meant to cross compile, use \`--host'.
3162 See \`config.log' for more details." >&2;}
3163 { (exit 1); exit 1; }; }
3388 See \`config.log' for more details." "$LINENO" 5; }
31643389 fi
31653390 fi
31663391 fi
3167 { echo "$as_me:$LINENO: result: yes" >&5
3168 echo "${ECHO_T}yes" >&6; }
3169
3170 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393 $as_echo "yes" >&6; }
3394
3395 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
31713396 ac_clean_files=$ac_clean_files_save
31723397 # Check that the compiler produces executables we can run. If not, either
31733398 # the compiler is broken, or we cross compile.
3174 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3175 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3176 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3177 echo "${ECHO_T}$cross_compiling" >&6; }
3178
3179 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3180 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3181 if { (ac_try="$ac_link"
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3400 $as_echo_n "checking whether we are cross compiling... " >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3402 $as_echo "$cross_compiling" >&6; }
3403
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3405 $as_echo_n "checking for suffix of executables... " >&6; }
3406 if { { ac_try="$ac_link"
31823407 case "(($ac_try" in
31833408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843409 *) ac_try_echo=$ac_try;;
31853410 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412 $as_echo "$ac_try_echo"; } >&5
31873413 (eval "$ac_link") 2>&5
31883414 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; then
3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }; then :
31913417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
31923418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
31933419 # work properly (i.e., refer to `conftest.exe'), while it won't with
31953421 for ac_file in conftest.exe conftest conftest.*; do
31963422 test -f "$ac_file" || continue
31973423 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
31993425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
32003426 break;;
32013427 * ) break;;
32023428 esac
32033429 done
32043430 else
3205 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3206 See \`config.log' for more details." >&5
3207 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3208 See \`config.log' for more details." >&2;}
3209 { (exit 1); exit 1; }; }
3210 fi
3211
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error "cannot compute suffix of executables: cannot compile and link
3434 See \`config.log' for more details." "$LINENO" 5; }
3435 fi
32123436 rm -f conftest$ac_cv_exeext
3213 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3214 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3438 $as_echo "$ac_cv_exeext" >&6; }
32153439
32163440 rm -f conftest.$ac_ext
32173441 EXEEXT=$ac_cv_exeext
32183442 ac_exeext=$EXEEXT
3219 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3220 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3221 if test "${ac_cv_objext+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h. */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3444 $as_echo_n "checking for suffix of object files... " >&6; }
3445 if test "${ac_cv_objext+set}" = set; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32293449 /* end confdefs.h. */
32303450
32313451 int
32373457 }
32383458 _ACEOF
32393459 rm -f conftest.o conftest.obj
3240 if { (ac_try="$ac_compile"
3460 if { { ac_try="$ac_compile"
32413461 case "(($ac_try" in
32423462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32433463 *) ac_try_echo=$ac_try;;
32443464 esac
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
32463467 (eval "$ac_compile") 2>&5
32473468 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; then
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; then :
32503471 for ac_file in conftest.o conftest.obj conftest.*; do
32513472 test -f "$ac_file" || continue;
32523473 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
32543475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
32553476 break;;
32563477 esac
32573478 done
32583479 else
3259 echo "$as_me: failed program was:" >&5
3480 $as_echo "$as_me: failed program was:" >&5
32603481 sed 's/^/| /' conftest.$ac_ext >&5
32613482
3262 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3263 See \`config.log' for more details." >&5
3264 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3265 See \`config.log' for more details." >&2;}
3266 { (exit 1); exit 1; }; }
3267 fi
3268
3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error "cannot compute suffix of object files: cannot compile
3486 See \`config.log' for more details." "$LINENO" 5; }
3487 fi
32693488 rm -f conftest.$ac_cv_objext conftest.$ac_ext
32703489 fi
3271 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3272 echo "${ECHO_T}$ac_cv_objext" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3491 $as_echo "$ac_cv_objext" >&6; }
32733492 OBJEXT=$ac_cv_objext
32743493 ac_objext=$OBJEXT
3275 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3276 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3277 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h. */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3495 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3496 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32853500 /* end confdefs.h. */
32863501
32873502 int
32953510 return 0;
32963511 }
32973512 _ACEOF
3298 rm -f conftest.$ac_objext
3299 if { (ac_try="$ac_compile"
3300 case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_compile") 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } && {
3312 test -z "$ac_c_werror_flag" ||
3313 test ! -s conftest.err
3314 } && test -s conftest.$ac_objext; then
3513 if ac_fn_c_try_compile "$LINENO"; then :
33153514 ac_compiler_gnu=yes
33163515 else
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 ac_compiler_gnu=no
3321 fi
3322
3516 ac_compiler_gnu=no
3517 fi
33233518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33243519 ac_cv_c_compiler_gnu=$ac_compiler_gnu
33253520
33263521 fi
3327 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3328 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3329 GCC=`test $ac_compiler_gnu = yes && echo yes`
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3523 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3524 if test $ac_compiler_gnu = yes; then
3525 GCC=yes
3526 else
3527 GCC=
3528 fi
33303529 ac_test_CFLAGS=${CFLAGS+set}
33313530 ac_save_CFLAGS=$CFLAGS
3332 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3333 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3334 if test "${ac_cv_prog_cc_g+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3532 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3533 if test "${ac_cv_prog_cc_g+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
33363535 else
33373536 ac_save_c_werror_flag=$ac_c_werror_flag
33383537 ac_c_werror_flag=yes
33393538 ac_cv_prog_cc_g=no
33403539 CFLAGS="-g"
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33463541 /* end confdefs.h. */
33473542
33483543 int
33533548 return 0;
33543549 }
33553550 _ACEOF
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } && {
3370 test -z "$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3372 } && test -s conftest.$ac_objext; then
3551 if ac_fn_c_try_compile "$LINENO"; then :
33733552 ac_cv_prog_cc_g=yes
33743553 else
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 CFLAGS=""
3379 cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h. */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3554 CFLAGS=""
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33843556 /* end confdefs.h. */
33853557
33863558 int
33913563 return 0;
33923564 }
33933565 _ACEOF
3394 rm -f conftest.$ac_objext
3395 if { (ac_try="$ac_compile"
3396 case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3411 :
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3566 if ac_fn_c_try_compile "$LINENO"; then :
3567
3568 else
3569 ac_c_werror_flag=$ac_save_c_werror_flag
34173570 CFLAGS="-g"
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34233572 /* end confdefs.h. */
34243573
34253574 int
34303579 return 0;
34313580 }
34323581 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_compile") 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } && {
3447 test -z "$ac_c_werror_flag" ||
3448 test ! -s conftest.err
3449 } && test -s conftest.$ac_objext; then
3582 if ac_fn_c_try_compile "$LINENO"; then :
34503583 ac_cv_prog_cc_g=yes
3451 else
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455
3456 fi
3457
3584 fi
34583585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34593586 fi
3460
34613587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34623588 fi
3463
34643589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34653590 ac_c_werror_flag=$ac_save_c_werror_flag
34663591 fi
3467 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3468 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3593 $as_echo "$ac_cv_prog_cc_g" >&6; }
34693594 if test "$ac_test_CFLAGS" = set; then
34703595 CFLAGS=$ac_save_CFLAGS
34713596 elif test $ac_cv_prog_cc_g = yes; then
34813606 CFLAGS=
34823607 fi
34833608 fi
3484 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3485 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3486 if test "${ac_cv_prog_cc_c89+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3610 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3611 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
34883613 else
34893614 ac_cv_prog_cc_c89=no
34903615 ac_save_CC=$CC
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h. */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34963617 /* end confdefs.h. */
34973618 #include <stdarg.h>
34983619 #include <stdio.h>
35493670 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
35503671 do
35513672 CC="$ac_save_CC $ac_arg"
3552 rm -f conftest.$ac_objext
3553 if { (ac_try="$ac_compile"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_compile") 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } && {
3566 test -z "$ac_c_werror_flag" ||
3567 test ! -s conftest.err
3568 } && test -s conftest.$ac_objext; then
3673 if ac_fn_c_try_compile "$LINENO"; then :
35693674 ac_cv_prog_cc_c89=$ac_arg
3570 else
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574
3575 fi
3576
3675 fi
35773676 rm -f core conftest.err conftest.$ac_objext
35783677 test "x$ac_cv_prog_cc_c89" != "xno" && break
35793678 done
35843683 # AC_CACHE_VAL
35853684 case "x$ac_cv_prog_cc_c89" in
35863685 x)
3587 { echo "$as_me:$LINENO: result: none needed" >&5
3588 echo "${ECHO_T}none needed" >&6; } ;;
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3687 $as_echo "none needed" >&6; } ;;
35893688 xno)
3590 { echo "$as_me:$LINENO: result: unsupported" >&5
3591 echo "${ECHO_T}unsupported" >&6; } ;;
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3690 $as_echo "unsupported" >&6; } ;;
35923691 *)
35933692 CC="$CC $ac_cv_prog_cc_c89"
3594 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3595 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3694 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
35963695 esac
3597
3696 if test "x$ac_cv_prog_cc_c89" != xno; then :
3697
3698 fi
35983699
35993700 ac_ext=c
36003701 ac_cpp='$CPP $CPPFLAGS'
36043705
36053706 depcc="$CC" am_compiler_list=
36063707
3607 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3608 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3609 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3709 $as_echo_n "checking dependency style of $depcc... " >&6; }
3710 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
36113712 else
36123713 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
36133714 # We make a subdir and do the tests there. Otherwise we can end up
36323733 if test "$am_compiler_list" = ""; then
36333734 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
36343735 fi
3736 am__universal=false
3737 case " $depcc " in #(
3738 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3739 esac
3740
36353741 for depmode in $am_compiler_list; do
36363742 # Setup a source with many dependencies, because some compilers
36373743 # like to wrap large dependency lists on column 80 (with \), and
36493755 done
36503756 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
36513757
3758 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3759 # mode. It turns out that the SunPro C++ compiler does not properly
3760 # handle `-M -o', and we need to detect this. Also, some Intel
3761 # versions had trouble with output in subdirs
3762 am__obj=sub/conftest.${OBJEXT-o}
3763 am__minus_obj="-o $am__obj"
36523764 case $depmode in
3765 gcc)
3766 # This depmode causes a compiler race in universal mode.
3767 test "$am__universal" = false || continue
3768 ;;
36533769 nosideeffect)
36543770 # after this tag, mechanisms are not by side-effect, so they'll
36553771 # only be used when explicitly requested
36593775 break
36603776 fi
36613777 ;;
3778 msvisualcpp | msvcmsys)
3779 # This compiler won't grok `-c -o', but also, the minuso test has
3780 # not run yet. These depmodes are late enough in the game, and
3781 # so weak that their functioning should not be impacted.
3782 am__obj=conftest.${OBJEXT-o}
3783 am__minus_obj=
3784 ;;
36623785 none) break ;;
36633786 esac
3664 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3665 # mode. It turns out that the SunPro C++ compiler does not properly
3666 # handle `-M -o', and we need to detect this.
36673787 if depmode=$depmode \
3668 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3788 source=sub/conftest.c object=$am__obj \
36693789 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3670 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3790 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
36713791 >/dev/null 2>conftest.err &&
36723792 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
36733793 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3674 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3794 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
36753795 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
36763796 # icc doesn't choke on unknown options, it will just issue warnings
36773797 # or remarks (even with -Werror). So we grep stderr for any message
36953815 fi
36963816
36973817 fi
3698 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3699 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3819 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
37003820 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
37013821
37023822 if
37103830 fi
37113831
37123832
3713 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3714 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3715 if test "${lt_cv_path_SED+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 # Loop through the user's path and test for sed and gsed.
3719 # Then use that list of sed's as ones to test for truncation.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3834 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3835 if test "${ac_cv_path_SED+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3839 for ac_i in 1 2 3 4 5 6 7; do
3840 ac_script="$ac_script$as_nl$ac_script"
3841 done
3842 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3843 { ac_script=; unset ac_script;}
3844 if test -z "$SED"; then
3845 ac_path_SED_found=false
3846 # Loop through the user's path and test for each of PROGNAME-LIST
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37213848 for as_dir in $PATH
37223849 do
37233850 IFS=$as_save_IFS
37243851 test -z "$as_dir" && as_dir=.
3725 for lt_ac_prog in sed gsed; do
3852 for ac_prog in sed gsed; do
37263853 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3728 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3729 fi
3854 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3855 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3856 # Check for GNU ac_path_SED and select it if it is found.
3857 # Check for GNU $ac_path_SED
3858 case `"$ac_path_SED" --version 2>&1` in
3859 *GNU*)
3860 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3861 *)
3862 ac_count=0
3863 $as_echo_n 0123456789 >"conftest.in"
3864 while :
3865 do
3866 cat "conftest.in" "conftest.in" >"conftest.tmp"
3867 mv "conftest.tmp" "conftest.in"
3868 cp "conftest.in" "conftest.nl"
3869 $as_echo '' >> "conftest.nl"
3870 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3872 as_fn_arith $ac_count + 1 && ac_count=$as_val
3873 if test $ac_count -gt ${ac_path_SED_max-0}; then
3874 # Best one so far, save it but keep looking for a better one
3875 ac_cv_path_SED="$ac_path_SED"
3876 ac_path_SED_max=$ac_count
3877 fi
3878 # 10*(2^10) chars as input seems more than enough
3879 test $ac_count -gt 10 && break
3880 done
3881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3882 esac
3883
3884 $ac_path_SED_found && break 3
37303885 done
37313886 done
3732 done
3887 done
37333888 IFS=$as_save_IFS
3734 lt_ac_max=0
3735 lt_ac_count=0
3736 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3737 # along with /bin/sed that truncates output.
3738 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3739 test ! -f $lt_ac_sed && continue
3740 cat /dev/null > conftest.in
3741 lt_ac_count=0
3742 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3743 # Check for GNU sed and select it if it is found.
3744 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3745 lt_cv_path_SED=$lt_ac_sed
3746 break
3889 if test -z "$ac_cv_path_SED"; then
3890 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
37473891 fi
3748 while true; do
3749 cat conftest.in conftest.in >conftest.tmp
3750 mv conftest.tmp conftest.in
3751 cp conftest.in conftest.nl
3752 echo >>conftest.nl
3753 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3754 cmp -s conftest.out conftest.nl || break
3755 # 10000 chars as input seems more than enough
3756 test $lt_ac_count -gt 10 && break
3757 lt_ac_count=`expr $lt_ac_count + 1`
3758 if test $lt_ac_count -gt $lt_ac_max; then
3759 lt_ac_max=$lt_ac_count
3760 lt_cv_path_SED=$lt_ac_sed
3761 fi
3762 done
3763 done
3764
3765 fi
3766
3767 SED=$lt_cv_path_SED
3768
3769 { echo "$as_me:$LINENO: result: $SED" >&5
3770 echo "${ECHO_T}$SED" >&6; }
3771
3772 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3773 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3774 if test "${ac_cv_path_GREP+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777 # Extract the first word of "grep ggrep" to use in msg output
3778 if test -z "$GREP"; then
3779 set dummy grep ggrep; ac_prog_name=$2
3780 if test "${ac_cv_path_GREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3892 else
3893 ac_cv_path_SED=$SED
3894 fi
3895
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3898 $as_echo "$ac_cv_path_SED" >&6; }
3899 SED="$ac_cv_path_SED"
3900 rm -f conftest.sed
3901
3902 test -z "$SED" && SED=sed
3903 Xsed="$SED -e 1s/^X//"
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3916 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3917 if test "${ac_cv_path_GREP+set}" = set; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 if test -z "$GREP"; then
37833921 ac_path_GREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 # Loop through the user's path and test for each of PROGNAME-LIST
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37863924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
37873925 do
37883926 IFS=$as_save_IFS
37893927 test -z "$as_dir" && as_dir=.
3790 for ac_prog in grep ggrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3794 # Check for GNU ac_path_GREP and select it if it is found.
3928 for ac_prog in grep ggrep; do
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3931 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3932 # Check for GNU ac_path_GREP and select it if it is found.
37953933 # Check for GNU $ac_path_GREP
37963934 case `"$ac_path_GREP" --version 2>&1` in
37973935 *GNU*)
37983936 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
37993937 *)
38003938 ac_count=0
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3939 $as_echo_n 0123456789 >"conftest.in"
38023940 while :
38033941 do
38043942 cat "conftest.in" "conftest.in" >"conftest.tmp"
38053943 mv "conftest.tmp" "conftest.in"
38063944 cp "conftest.in" "conftest.nl"
3807 echo 'GREP' >> "conftest.nl"
3945 $as_echo 'GREP' >> "conftest.nl"
38083946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
38093947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810 ac_count=`expr $ac_count + 1`
3948 as_fn_arith $ac_count + 1 && ac_count=$as_val
38113949 if test $ac_count -gt ${ac_path_GREP_max-0}; then
38123950 # Best one so far, save it but keep looking for a better one
38133951 ac_cv_path_GREP="$ac_path_GREP"
38193957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
38203958 esac
38213959
3822
3823 $ac_path_GREP_found && break 3
3960 $ac_path_GREP_found && break 3
3961 done
38243962 done
3825 done
3826
3827 done
3963 done
38283964 IFS=$as_save_IFS
3829
3830
3831 fi
3832
3833 GREP="$ac_cv_path_GREP"
3834 if test -z "$GREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3838 fi
3839
3965 if test -z "$ac_cv_path_GREP"; then
3966 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3967 fi
38403968 else
38413969 ac_cv_path_GREP=$GREP
38423970 fi
38433971
3844
3845 fi
3846 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3847 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3974 $as_echo "$ac_cv_path_GREP" >&6; }
38483975 GREP="$ac_cv_path_GREP"
38493976
38503977
3851 { echo "$as_me:$LINENO: checking for egrep" >&5
3852 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3853 if test "${ac_cv_path_EGREP+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3979 $as_echo_n "checking for egrep... " >&6; }
3980 if test "${ac_cv_path_EGREP+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
38553982 else
38563983 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
38573984 then ac_cv_path_EGREP="$GREP -E"
38583985 else
3859 # Extract the first word of "egrep" to use in msg output
3860 if test -z "$EGREP"; then
3861 set dummy egrep; ac_prog_name=$2
3862 if test "${ac_cv_path_EGREP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3986 if test -z "$EGREP"; then
38653987 ac_path_EGREP_found=false
3866 # Loop through the user's path and test for each of PROGNAME-LIST
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38683990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
38693991 do
38703992 IFS=$as_save_IFS
38713993 test -z "$as_dir" && as_dir=.
3872 for ac_prog in egrep; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3875 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3876 # Check for GNU ac_path_EGREP and select it if it is found.
3994 for ac_prog in egrep; do
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3997 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3998 # Check for GNU ac_path_EGREP and select it if it is found.
38773999 # Check for GNU $ac_path_EGREP
38784000 case `"$ac_path_EGREP" --version 2>&1` in
38794001 *GNU*)
38804002 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
38814003 *)
38824004 ac_count=0
3883 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4005 $as_echo_n 0123456789 >"conftest.in"
38844006 while :
38854007 do
38864008 cat "conftest.in" "conftest.in" >"conftest.tmp"
38874009 mv "conftest.tmp" "conftest.in"
38884010 cp "conftest.in" "conftest.nl"
3889 echo 'EGREP' >> "conftest.nl"
4011 $as_echo 'EGREP' >> "conftest.nl"
38904012 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
38914013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 ac_count=`expr $ac_count + 1`
4014 as_fn_arith $ac_count + 1 && ac_count=$as_val
38934015 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
38944016 # Best one so far, save it but keep looking for a better one
38954017 ac_cv_path_EGREP="$ac_path_EGREP"
39014023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
39024024 esac
39034025
3904
3905 $ac_path_EGREP_found && break 3
4026 $ac_path_EGREP_found && break 3
4027 done
39064028 done
3907 done
3908
3909 done
4029 done
39104030 IFS=$as_save_IFS
3911
3912
3913 fi
3914
3915 EGREP="$ac_cv_path_EGREP"
3916 if test -z "$EGREP"; then
3917 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3918 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3919 { (exit 1); exit 1; }; }
3920 fi
3921
4031 if test -z "$ac_cv_path_EGREP"; then
4032 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4033 fi
39224034 else
39234035 ac_cv_path_EGREP=$EGREP
39244036 fi
39254037
3926
39274038 fi
39284039 fi
3929 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3930 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4041 $as_echo "$ac_cv_path_EGREP" >&6; }
39314042 EGREP="$ac_cv_path_EGREP"
39324043
39334044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4046 $as_echo_n "checking for fgrep... " >&6; }
4047 if test "${ac_cv_path_FGREP+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4051 then ac_cv_path_FGREP="$GREP -F"
4052 else
4053 if test -z "$FGREP"; then
4054 ac_path_FGREP_found=false
4055 # Loop through the user's path and test for each of PROGNAME-LIST
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 do
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_prog in fgrep; do
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4064 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4065 # Check for GNU ac_path_FGREP and select it if it is found.
4066 # Check for GNU $ac_path_FGREP
4067 case `"$ac_path_FGREP" --version 2>&1` in
4068 *GNU*)
4069 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4070 *)
4071 ac_count=0
4072 $as_echo_n 0123456789 >"conftest.in"
4073 while :
4074 do
4075 cat "conftest.in" "conftest.in" >"conftest.tmp"
4076 mv "conftest.tmp" "conftest.in"
4077 cp "conftest.in" "conftest.nl"
4078 $as_echo 'FGREP' >> "conftest.nl"
4079 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081 as_fn_arith $ac_count + 1 && ac_count=$as_val
4082 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4083 # Best one so far, save it but keep looking for a better one
4084 ac_cv_path_FGREP="$ac_path_FGREP"
4085 ac_path_FGREP_max=$ac_count
4086 fi
4087 # 10*(2^10) chars as input seems more than enough
4088 test $ac_count -gt 10 && break
4089 done
4090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091 esac
4092
4093 $ac_path_FGREP_found && break 3
4094 done
4095 done
4096 done
4097 IFS=$as_save_IFS
4098 if test -z "$ac_cv_path_FGREP"; then
4099 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4100 fi
4101 else
4102 ac_cv_path_FGREP=$FGREP
4103 fi
4104
4105 fi
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4108 $as_echo "$ac_cv_path_FGREP" >&6; }
4109 FGREP="$ac_cv_path_FGREP"
4110
4111
4112 test -z "$GREP" && GREP=grep
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
39344131
39354132 # Check whether --with-gnu-ld was given.
3936 if test "${with_gnu_ld+set}" = set; then
4133 if test "${with_gnu_ld+set}" = set; then :
39374134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
39384135 else
39394136 with_gnu_ld=no
39424139 ac_prog=ld
39434140 if test "$GCC" = yes; then
39444141 # Check if gcc -print-prog-name=ld gives a path.
3945 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3946 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4143 $as_echo_n "checking for ld used by $CC... " >&6; }
39474144 case $host in
39484145 *-*-mingw*)
39494146 # gcc leaves a trailing carriage return which upsets mingw
39564153 [\\/]* | ?:[\\/]*)
39574154 re_direlt='/[^/][^/]*/\.\./'
39584155 # Canonicalize the pathname of ld
3959 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3960 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3961 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4156 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4157 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4158 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
39624159 done
39634160 test -z "$LD" && LD="$ac_prog"
39644161 ;;
39724169 ;;
39734170 esac
39744171 elif test "$with_gnu_ld" = yes; then
3975 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3976 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3977 else
3978 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3979 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3980 fi
3981 if test "${lt_cv_path_LD+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4173 $as_echo_n "checking for GNU ld... " >&6; }
4174 else
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4176 $as_echo_n "checking for non-GNU ld... " >&6; }
4177 fi
4178 if test "${lt_cv_path_LD+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
39834180 else
39844181 if test -z "$LD"; then
39854182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
40094206
40104207 LD="$lt_cv_path_LD"
40114208 if test -n "$LD"; then
4012 { echo "$as_me:$LINENO: result: $LD" >&5
4013 echo "${ECHO_T}$LD" >&6; }
4014 else
4015 { echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6; }
4017 fi
4018 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4019 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4020 { (exit 1); exit 1; }; }
4021 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4022 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4023 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4210 $as_echo "$LD" >&6; }
4211 else
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4217 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4218 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
40254220 else
40264221 # I'd rather use --version here, but apparently some GNU lds only accept -v.
40274222 case `$LD -v 2>&1 </dev/null` in
40334228 ;;
40344229 esac
40354230 fi
4036 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4037 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4232 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
40384233 with_gnu_ld=$lt_cv_prog_gnu_ld
40394234
40404235
4041 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4042 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4043 if test "${lt_cv_ld_reload_flag+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 lt_cv_ld_reload_flag='-r'
4047 fi
4048 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4049 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4050 reload_flag=$lt_cv_ld_reload_flag
4051 case $reload_flag in
4052 "" | " "*) ;;
4053 *) reload_flag=" $reload_flag" ;;
4054 esac
4055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4056 case $host_os in
4057 darwin*)
4058 if test "$GCC" = yes; then
4059 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4060 else
4061 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4062 fi
4063 ;;
4064 esac
4065
4066 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4067 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4068 if test "${lt_cv_path_NM+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4236
4237
4238
4239
4240
4241
4242
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4244 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4245 if test "${lt_cv_path_NM+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
40704247 else
40714248 if test -n "$NM"; then
40724249 # Let the user override the test.
41094286 done
41104287 IFS="$lt_save_ifs"
41114288 done
4112 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4113 fi
4114 fi
4115 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4116 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4117 NM="$lt_cv_path_NM"
4118
4119 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4120 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4289 : ${lt_cv_path_NM=no}
4290 fi
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4293 $as_echo "$lt_cv_path_NM" >&6; }
4294 if test "$lt_cv_path_NM" != "no"; then
4295 NM="$lt_cv_path_NM"
4296 else
4297 # Didn't find any BSD compatible name lister, look for dumpbin.
4298 if test -n "$ac_tool_prefix"; then
4299 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4300 do
4301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -n "$DUMPBIN"; then
4309 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4321 fi
4322 done
4323 done
4324 IFS=$as_save_IFS
4325
4326 fi
4327 fi
4328 DUMPBIN=$ac_cv_prog_DUMPBIN
4329 if test -n "$DUMPBIN"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4331 $as_echo "$DUMPBIN" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4336
4337
4338 test -n "$DUMPBIN" && break
4339 done
4340 fi
4341 if test -z "$DUMPBIN"; then
4342 ac_ct_DUMPBIN=$DUMPBIN
4343 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4344 do
4345 # Extract the first word of "$ac_prog", so it can be a program name with args.
4346 set dummy $ac_prog; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 if test -n "$ac_ct_DUMPBIN"; then
4353 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4365 fi
4366 done
4367 done
4368 IFS=$as_save_IFS
4369
4370 fi
4371 fi
4372 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4373 if test -n "$ac_ct_DUMPBIN"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4375 $as_echo "$ac_ct_DUMPBIN" >&6; }
4376 else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380
4381
4382 test -n "$ac_ct_DUMPBIN" && break
4383 done
4384
4385 if test "x$ac_ct_DUMPBIN" = x; then
4386 DUMPBIN=":"
4387 else
4388 case $cross_compiling:$ac_tool_warned in
4389 yes:)
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392 ac_tool_warned=yes ;;
4393 esac
4394 DUMPBIN=$ac_ct_DUMPBIN
4395 fi
4396 fi
4397
4398
4399 if test "$DUMPBIN" != ":"; then
4400 NM="$DUMPBIN"
4401 fi
4402 fi
4403 test -z "$NM" && NM=nm
4404
4405
4406
4407
4408
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4411 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4412 if test "${lt_cv_nm_interface+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 lt_cv_nm_interface="BSD nm"
4416 echo "int some_variable = 0;" > conftest.$ac_ext
4417 (eval echo "\"\$as_me:4418: $ac_compile\"" >&5)
4418 (eval "$ac_compile" 2>conftest.err)
4419 cat conftest.err >&5
4420 (eval echo "\"\$as_me:4421: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4421 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4422 cat conftest.err >&5
4423 (eval echo "\"\$as_me:4424: output\"" >&5)
4424 cat conftest.out >&5
4425 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4426 lt_cv_nm_interface="MS dumpbin"
4427 fi
4428 rm -f conftest*
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4431 $as_echo "$lt_cv_nm_interface" >&6; }
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4434 $as_echo_n "checking whether ln -s works... " >&6; }
41214435 LN_S=$as_ln_s
41224436 if test "$LN_S" = "ln -s"; then
4123 { echo "$as_me:$LINENO: result: yes" >&5
4124 echo "${ECHO_T}yes" >&6; }
4125 else
4126 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4127 echo "${ECHO_T}no, using $LN_S" >&6; }
4128 fi
4129
4130 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4131 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4132 if test "${lt_cv_deplibs_check_method+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4438 $as_echo "yes" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4441 $as_echo "no, using $LN_S" >&6; }
4442 fi
4443
4444 # find the maximum length of command line arguments
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4446 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4447 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 i=0
4451 teststring="ABCD"
4452
4453 case $build_os in
4454 msdosdjgpp*)
4455 # On DJGPP, this test can blow up pretty badly due to problems in libc
4456 # (any single argument exceeding 2000 bytes causes a buffer overrun
4457 # during glob expansion). Even if it were fixed, the result of this
4458 # check would be larger than it should be.
4459 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4460 ;;
4461
4462 gnu*)
4463 # Under GNU Hurd, this test is not required because there is
4464 # no limit to the length of command line arguments.
4465 # Libtool will interpret -1 as no limit whatsoever
4466 lt_cv_sys_max_cmd_len=-1;
4467 ;;
4468
4469 cygwin* | mingw* | cegcc*)
4470 # On Win9x/ME, this test blows up -- it succeeds, but takes
4471 # about 5 minutes as the teststring grows exponentially.
4472 # Worse, since 9x/ME are not pre-emptively multitasking,
4473 # you end up with a "frozen" computer, even though with patience
4474 # the test eventually succeeds (with a max line length of 256k).
4475 # Instead, let's just punt: use the minimum linelength reported by
4476 # all of the supported platforms: 8192 (on NT/2K/XP).
4477 lt_cv_sys_max_cmd_len=8192;
4478 ;;
4479
4480 amigaos*)
4481 # On AmigaOS with pdksh, this test takes hours, literally.
4482 # So we just punt and use a minimum line length of 8192.
4483 lt_cv_sys_max_cmd_len=8192;
4484 ;;
4485
4486 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4487 # This has been around since 386BSD, at least. Likely further.
4488 if test -x /sbin/sysctl; then
4489 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4490 elif test -x /usr/sbin/sysctl; then
4491 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4492 else
4493 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4494 fi
4495 # And add a safety zone
4496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4498 ;;
4499
4500 interix*)
4501 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4502 lt_cv_sys_max_cmd_len=196608
4503 ;;
4504
4505 osf*)
4506 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4507 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4508 # nice to cause kernel panics so lets avoid the loop below.
4509 # First set a reasonable default.
4510 lt_cv_sys_max_cmd_len=16384
4511 #
4512 if test -x /sbin/sysconfig; then
4513 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4514 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4515 esac
4516 fi
4517 ;;
4518 sco3.2v5*)
4519 lt_cv_sys_max_cmd_len=102400
4520 ;;
4521 sysv5* | sco5v6* | sysv4.2uw2*)
4522 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4523 if test -n "$kargmax"; then
4524 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4525 else
4526 lt_cv_sys_max_cmd_len=32768
4527 fi
4528 ;;
4529 *)
4530 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4531 if test -n "$lt_cv_sys_max_cmd_len"; then
4532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4534 else
4535 # Make teststring a little bigger before we do anything with it.
4536 # a 1K string should be a reasonable start.
4537 for i in 1 2 3 4 5 6 7 8 ; do
4538 teststring=$teststring$teststring
4539 done
4540 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4541 # If test is not a shell built-in, we'll probably end up computing a
4542 # maximum length that is only half of the actual maximum length, but
4543 # we can't tell.
4544 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4545 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4546 test $i != 17 # 1/2 MB should be enough
4547 do
4548 i=`expr $i + 1`
4549 teststring=$teststring$teststring
4550 done
4551 # Only check the string length outside the loop.
4552 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4553 teststring=
4554 # Add a significant safety factor because C++ compilers can tack on
4555 # massive amounts of additional arguments before passing them to the
4556 # linker. It appears as though 1/2 is a usable value.
4557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4558 fi
4559 ;;
4560 esac
4561
4562 fi
4563
4564 if test -n $lt_cv_sys_max_cmd_len ; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4566 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4567 else
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4569 $as_echo "none" >&6; }
4570 fi
4571 max_cmd_len=$lt_cv_sys_max_cmd_len
4572
4573
4574
4575
4576
4577
4578 : ${CP="cp -f"}
4579 : ${MV="mv -f"}
4580 : ${RM="rm -f"}
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4583 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4584 # Try some XSI features
4585 xsi_shell=no
4586 ( _lt_dummy="a/b/c"
4587 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4588 = c,a/b,, \
4589 && eval 'test $(( 1 + 1 )) -eq 2 \
4590 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4591 && xsi_shell=yes
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4593 $as_echo "$xsi_shell" >&6; }
4594
4595
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4597 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4598 lt_shell_append=no
4599 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4600 >/dev/null 2>&1 \
4601 && lt_shell_append=yes
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4603 $as_echo "$lt_shell_append" >&6; }
4604
4605
4606 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4607 lt_unset=unset
4608 else
4609 lt_unset=false
4610 fi
4611
4612
4613
4614
4615
4616 # test EBCDIC or ASCII
4617 case `echo X|tr X '\101'` in
4618 A) # ASCII based system
4619 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4620 lt_SP2NL='tr \040 \012'
4621 lt_NL2SP='tr \015\012 \040\040'
4622 ;;
4623 *) # EBCDIC based system
4624 lt_SP2NL='tr \100 \n'
4625 lt_NL2SP='tr \r\n \100\100'
4626 ;;
4627 esac
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4638 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4639 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 lt_cv_ld_reload_flag='-r'
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4645 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4646 reload_flag=$lt_cv_ld_reload_flag
4647 case $reload_flag in
4648 "" | " "*) ;;
4649 *) reload_flag=" $reload_flag" ;;
4650 esac
4651 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4652 case $host_os in
4653 darwin*)
4654 if test "$GCC" = yes; then
4655 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4656 else
4657 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4658 fi
4659 ;;
4660 esac
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$OBJDUMP"; then
4679 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4691 fi
4692 done
4693 done
4694 IFS=$as_save_IFS
4695
4696 fi
4697 fi
4698 OBJDUMP=$ac_cv_prog_OBJDUMP
4699 if test -n "$OBJDUMP"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4701 $as_echo "$OBJDUMP" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4705 fi
4706
4707
4708 fi
4709 if test -z "$ac_cv_prog_OBJDUMP"; then
4710 ac_ct_OBJDUMP=$OBJDUMP
4711 # Extract the first word of "objdump", so it can be a program name with args.
4712 set dummy objdump; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$ac_ct_OBJDUMP"; then
4719 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4739 if test -n "$ac_ct_OBJDUMP"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4741 $as_echo "$ac_ct_OBJDUMP" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747 if test "x$ac_ct_OBJDUMP" = x; then
4748 OBJDUMP="false"
4749 else
4750 case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4755 esac
4756 OBJDUMP=$ac_ct_OBJDUMP
4757 fi
4758 else
4759 OBJDUMP="$ac_cv_prog_OBJDUMP"
4760 fi
4761
4762 test -z "$OBJDUMP" && OBJDUMP=objdump
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4773 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4774 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
41344776 else
41354777 lt_cv_file_magic_cmd='$MAGIC_CMD'
41364778 lt_cv_file_magic_test_file=
41804822 fi
41814823 ;;
41824824
4825 cegcc)
4826 # use the weaker test based on 'objdump'. See mingw*.
4827 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4828 lt_cv_file_magic_cmd='$OBJDUMP -f'
4829 ;;
4830
41834831 darwin* | rhapsody*)
41844832 lt_cv_deplibs_check_method=pass_all
41854833 ;;
41864834
41874835 freebsd* | dragonfly*)
4188 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4836 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
41894837 case $host_cpu in
41904838 i*86 )
41914839 # Not sure whether the presence of OpenBSD here was a mistake.
42434891 ;;
42444892
42454893 netbsd* | netbsdelf*-gnu)
4246 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4894 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
42474895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
42484896 else
42494897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
42564904 lt_cv_file_magic_test_file=/usr/lib/libnls.so
42574905 ;;
42584906
4259 nto-qnx*)
4260 lt_cv_deplibs_check_method=unknown
4907 *nto* | *qnx*)
4908 lt_cv_deplibs_check_method=pass_all
42614909 ;;
42624910
42634911 openbsd*)
4264 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
42654913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
42664914 else
42674915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
42774925 ;;
42784926
42794927 solaris*)
4928 lt_cv_deplibs_check_method=pass_all
4929 ;;
4930
4931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
42804932 lt_cv_deplibs_check_method=pass_all
42814933 ;;
42824934
43074959 esac
43084960 ;;
43094961
4310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4962 tpf*)
43114963 lt_cv_deplibs_check_method=pass_all
43124964 ;;
43134965 esac
43144966
43154967 fi
4316 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4317 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4969 $as_echo "$lt_cv_deplibs_check_method" >&6; }
43184970 file_magic_cmd=$lt_cv_file_magic_cmd
43194971 deplibs_check_method=$lt_cv_deplibs_check_method
43204972 test -z "$deplibs_check_method" && deplibs_check_method=unknown
43224974
43234975
43244976
4325 # If no C compiler was specified, use CC.
4326 LTCC=${LTCC-"$CC"}
4327
4328 # If no C compiler flags were specified, use CFLAGS.
4329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4330
4331 # Allow CC to be a program name with arguments.
4332 compiler=$CC
4333
4334
4335 # Check whether --enable-libtool-lock was given.
4336 if test "${enable_libtool_lock+set}" = set; then
4337 enableval=$enable_libtool_lock;
4338 fi
4339
4340 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4341
4342 # Some flags need to be propagated to the compiler or linker for good
4343 # libtool support.
4344 case $host in
4345 ia64-*-hpux*)
4346 # Find out which ABI we are using.
4347 echo 'int i;' > conftest.$ac_ext
4348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349 (eval $ac_compile) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; then
4353 case `/usr/bin/file conftest.$ac_objext` in
4354 *ELF-32*)
4355 HPUX_IA64_MODE="32"
4356 ;;
4357 *ELF-64*)
4358 HPUX_IA64_MODE="64"
4359 ;;
4360 esac
4361 fi
4362 rm -rf conftest*
4363 ;;
4364 *-*-irix6*)
4365 # Find out which ABI we are using.
4366 echo '#line 4367 "configure"' > conftest.$ac_ext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; then
4372 if test "$lt_cv_prog_gnu_ld" = yes; then
4373 case `/usr/bin/file conftest.$ac_objext` in
4374 *32-bit*)
4375 LD="${LD-ld} -melf32bsmip"
4376 ;;
4377 *N32*)
4378 LD="${LD-ld} -melf32bmipn32"
4379 ;;
4380 *64-bit*)
4381 LD="${LD-ld} -melf64bmip"
4382 ;;
4383 esac
4384 else
4385 case `/usr/bin/file conftest.$ac_objext` in
4386 *32-bit*)
4387 LD="${LD-ld} -32"
4388 ;;
4389 *N32*)
4390 LD="${LD-ld} -n32"
4391 ;;
4392 *64-bit*)
4393 LD="${LD-ld} -64"
4394 ;;
4395 esac
4396 fi
4397 fi
4398 rm -rf conftest*
4399 ;;
4400
4401 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4402 s390*-*linux*|sparc*-*linux*)
4403 # Find out which ABI we are using.
4404 echo 'int i;' > conftest.$ac_ext
4405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; then
4410 case `/usr/bin/file conftest.o` in
4411 *32-bit*)
4412 case $host in
4413 x86_64-*kfreebsd*-gnu)
4414 LD="${LD-ld} -m elf_i386_fbsd"
4415 ;;
4416 x86_64-*linux*)
4417 LD="${LD-ld} -m elf_i386"
4418 ;;
4419 ppc64-*linux*|powerpc64-*linux*)
4420 LD="${LD-ld} -m elf32ppclinux"
4421 ;;
4422 s390x-*linux*)
4423 LD="${LD-ld} -m elf_s390"
4424 ;;
4425 sparc64-*linux*)
4426 LD="${LD-ld} -m elf32_sparc"
4427 ;;
4428 esac
4429 ;;
4430 *64-bit*)
4431 case $host in
4432 x86_64-*kfreebsd*-gnu)
4433 LD="${LD-ld} -m elf_x86_64_fbsd"
4434 ;;
4435 x86_64-*linux*)
4436 LD="${LD-ld} -m elf_x86_64"
4437 ;;
4438 ppc*-*linux*|powerpc*-*linux*)
4439 LD="${LD-ld} -m elf64ppc"
4440 ;;
4441 s390*-*linux*)
4442 LD="${LD-ld} -m elf64_s390"
4443 ;;
4444 sparc*-*linux*)
4445 LD="${LD-ld} -m elf64_sparc"
4446 ;;
4447 esac
4448 ;;
4449 esac
4450 fi
4451 rm -rf conftest*
4452 ;;
4453
4454 *-*-sco3.2v5*)
4455 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4456 SAVE_CFLAGS="$CFLAGS"
4457 CFLAGS="$CFLAGS -belf"
4458 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4459 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4460 if test "${lt_cv_cc_needs_belf+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475
4476 int
4477 main ()
4478 {
4479
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 rm -f conftest.$ac_objext conftest$ac_exeext
4485 if { (ac_try="$ac_link"
4486 case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_link") 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4500 } && test -s conftest$ac_exeext &&
4501 $as_test_x conftest$ac_exeext; then
4502 lt_cv_cc_needs_belf=yes
4503 else
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507 lt_cv_cc_needs_belf=no
4508 fi
4509
4510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4511 conftest$ac_exeext conftest.$ac_ext
4512 ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517
4518 fi
4519 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4520 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4523 CFLAGS="$SAVE_CFLAGS"
4524 fi
4525 ;;
4526 sparc*-*solaris*)
4527 # Find out which ABI we are using.
4528 echo 'int i;' > conftest.$ac_ext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 case `/usr/bin/file conftest.o` in
4535 *64-bit*)
4536 case $lt_cv_prog_gnu_ld in
4537 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4538 *)
4539 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4540 LD="${LD-ld} -64"
4541 fi
4542 ;;
4543 esac
4544 ;;
4545 esac
4546 fi
4547 rm -rf conftest*
4548 ;;
4549
4550
4551 esac
4552
4553 need_locks="$enable_libtool_lock"
4554
4555
4556 ac_ext=c
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4561 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4562 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4563 # On Suns, sometimes $CPP names a directory.
4564 if test -n "$CPP" && test -d "$CPP"; then
4565 CPP=
4566 fi
4567 if test -z "$CPP"; then
4568 if test "${ac_cv_prog_CPP+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 # Double quotes because CPP needs to be expanded
4572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4573 do
4574 ac_preproc_ok=false
4575 for ac_c_preproc_warn_flag in '' yes
4576 do
4577 # Use a header file that comes with gcc, so configuring glibc
4578 # with a fresh cross-compiler works.
4579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4580 # <limits.h> exists even on freestanding compilers.
4581 # On the NeXT, cc -E runs the code through the compiler's parser,
4582 # not just through cpp. "Syntax error" is here to catch this case.
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h. */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 #ifdef __STDC__
4590 # include <limits.h>
4591 #else
4592 # include <assert.h>
4593 #endif
4594 Syntax error
4595 _ACEOF
4596 if { (ac_try="$ac_cpp conftest.$ac_ext"
4597 case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } >/dev/null && {
4609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4611 }; then
4612 :
4613 else
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617 # Broken: fails on valid input.
4618 continue
4619 fi
4620
4621 rm -f conftest.err conftest.$ac_ext
4622
4623 # OK, works on sane cases. Now check whether nonexistent headers
4624 # can be detected and how.
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631 #include <ac_nonexistent.h>
4632 _ACEOF
4633 if { (ac_try="$ac_cpp conftest.$ac_ext"
4634 case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null && {
4646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4648 }; then
4649 # Broken: success on invalid input.
4650 continue
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 # Passes both tests.
4656 ac_preproc_ok=:
4657 break
4658 fi
4659
4660 rm -f conftest.err conftest.$ac_ext
4661
4662 done
4663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4664 rm -f conftest.err conftest.$ac_ext
4665 if $ac_preproc_ok; then
4666 break
4667 fi
4668
4669 done
4670 ac_cv_prog_CPP=$CPP
4671
4672 fi
4673 CPP=$ac_cv_prog_CPP
4674 else
4675 ac_cv_prog_CPP=$CPP
4676 fi
4677 { echo "$as_me:$LINENO: result: $CPP" >&5
4678 echo "${ECHO_T}$CPP" >&6; }
4679 ac_preproc_ok=false
4680 for ac_c_preproc_warn_flag in '' yes
4681 do
4682 # Use a header file that comes with gcc, so configuring glibc
4683 # with a fresh cross-compiler works.
4684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4685 # <limits.h> exists even on freestanding compilers.
4686 # On the NeXT, cc -E runs the code through the compiler's parser,
4687 # not just through cpp. "Syntax error" is here to catch this case.
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 #ifdef __STDC__
4695 # include <limits.h>
4696 #else
4697 # include <assert.h>
4698 #endif
4699 Syntax error
4700 _ACEOF
4701 if { (ac_try="$ac_cpp conftest.$ac_ext"
4702 case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } >/dev/null && {
4714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 }; then
4717 :
4718 else
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4721
4722 # Broken: fails on valid input.
4723 continue
4724 fi
4725
4726 rm -f conftest.err conftest.$ac_ext
4727
4728 # OK, works on sane cases. Now check whether nonexistent headers
4729 # can be detected and how.
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h. */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 #include <ac_nonexistent.h>
4737 _ACEOF
4738 if { (ac_try="$ac_cpp conftest.$ac_ext"
4739 case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4742 esac
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4745 ac_status=$?
4746 grep -v '^ *+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } >/dev/null && {
4751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4752 test ! -s conftest.err
4753 }; then
4754 # Broken: success on invalid input.
4755 continue
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 # Passes both tests.
4761 ac_preproc_ok=:
4762 break
4763 fi
4764
4765 rm -f conftest.err conftest.$ac_ext
4766
4767 done
4768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4769 rm -f conftest.err conftest.$ac_ext
4770 if $ac_preproc_ok; then
4771 :
4772 else
4773 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4774 See \`config.log' for more details." >&5
4775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4776 See \`config.log' for more details." >&2;}
4777 { (exit 1); exit 1; }; }
4778 fi
4779
4780 ac_ext=c
4781 ac_cpp='$CPP $CPPFLAGS'
4782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785
4786
4787 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4788 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4789 if test "${ac_cv_header_stdc+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792 cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h. */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4798 #include <stdlib.h>
4799 #include <stdarg.h>
4800 #include <string.h>
4801 #include <float.h>
4802
4803 int
4804 main ()
4805 {
4806
4807 ;
4808 return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext
4812 if { (ac_try="$ac_compile"
4813 case "(($ac_try" in
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4816 esac
4817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818 (eval "$ac_compile") 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } && {
4825 test -z "$ac_c_werror_flag" ||
4826 test ! -s conftest.err
4827 } && test -s conftest.$ac_objext; then
4828 ac_cv_header_stdc=yes
4829 else
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 ac_cv_header_stdc=no
4834 fi
4835
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837
4838 if test $ac_cv_header_stdc = yes; then
4839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4840 cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h. */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 #include <string.h>
4847
4848 _ACEOF
4849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4850 $EGREP "memchr" >/dev/null 2>&1; then
4851 :
4852 else
4853 ac_cv_header_stdc=no
4854 fi
4855 rm -f conftest*
4856
4857 fi
4858
4859 if test $ac_cv_header_stdc = yes; then
4860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #include <stdlib.h>
4868
4869 _ACEOF
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871 $EGREP "free" >/dev/null 2>&1; then
4872 :
4873 else
4874 ac_cv_header_stdc=no
4875 fi
4876 rm -f conftest*
4877
4878 fi
4879
4880 if test $ac_cv_header_stdc = yes; then
4881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4882 if test "$cross_compiling" = yes; then
4883 :
4884 else
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 #include <ctype.h>
4892 #include <stdlib.h>
4893 #if ((' ' & 0x0FF) == 0x020)
4894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4896 #else
4897 # define ISLOWER(c) \
4898 (('a' <= (c) && (c) <= 'i') \
4899 || ('j' <= (c) && (c) <= 'r') \
4900 || ('s' <= (c) && (c) <= 'z'))
4901 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4902 #endif
4903
4904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4905 int
4906 main ()
4907 {
4908 int i;
4909 for (i = 0; i < 256; i++)
4910 if (XOR (islower (i), ISLOWER (i))
4911 || toupper (i) != TOUPPER (i))
4912 return 2;
4913 return 0;
4914 }
4915 _ACEOF
4916 rm -f conftest$ac_exeext
4917 if { (ac_try="$ac_link"
4918 case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_link") 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4927 { (case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930 esac
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_try") 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
4936 :
4937 else
4938 echo "$as_me: program exited with status $ac_status" >&5
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942 ( exit $ac_status )
4943 ac_cv_header_stdc=no
4944 fi
4945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4946 fi
4947
4948
4949 fi
4950 fi
4951 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4952 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4953 if test $ac_cv_header_stdc = yes; then
4954
4955 cat >>confdefs.h <<\_ACEOF
4956 #define STDC_HEADERS 1
4957 _ACEOF
4958
4959 fi
4960
4961 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4972 inttypes.h stdint.h unistd.h
4973 do
4974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 $ac_includes_default
4987
4988 #include <$ac_header>
4989 _ACEOF
4990 rm -f conftest.$ac_objext
4991 if { (ac_try="$ac_compile"
4992 case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995 esac
4996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997 (eval "$ac_compile") 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } && {
5004 test -z "$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5006 } && test -s conftest.$ac_objext; then
5007 eval "$as_ac_Header=yes"
5008 else
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 eval "$as_ac_Header=no"
5013 fi
5014
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 fi
5017 ac_res=`eval echo '${'$as_ac_Header'}'`
5018 { echo "$as_me:$LINENO: result: $ac_res" >&5
5019 echo "${ECHO_T}$ac_res" >&6; }
5020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5021 cat >>confdefs.h <<_ACEOF
5022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5023 _ACEOF
5024
5025 fi
5026
5027 done
5028
5029
5030
5031 for ac_header in dlfcn.h
5032 do
5033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 fi
5040 ac_res=`eval echo '${'$as_ac_Header'}'`
5041 { echo "$as_me:$LINENO: result: $ac_res" >&5
5042 echo "${ECHO_T}$ac_res" >&6; }
5043 else
5044 # Is the header compilable?
5045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5047 cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h. */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 $ac_includes_default
5054 #include <$ac_header>
5055 _ACEOF
5056 rm -f conftest.$ac_objext
5057 if { (ac_try="$ac_compile"
5058 case "(($ac_try" in
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5061 esac
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_compile") 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } && {
5070 test -z "$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5072 } && test -s conftest.$ac_objext; then
5073 ac_header_compiler=yes
5074 else
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 ac_header_compiler=no
5079 fi
5080
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5083 echo "${ECHO_T}$ac_header_compiler" >&6; }
5084
5085 # Is the header present?
5086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5088 cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h. */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 #include <$ac_header>
5095 _ACEOF
5096 if { (ac_try="$ac_cpp conftest.$ac_ext"
5097 case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100 esac
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null && {
5109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5111 }; then
5112 ac_header_preproc=yes
5113 else
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117 ac_header_preproc=no
5118 fi
5119
5120 rm -f conftest.err conftest.$ac_ext
5121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5122 echo "${ECHO_T}$ac_header_preproc" >&6; }
5123
5124 # So? What about this header?
5125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5126 yes:no: )
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5131 ac_header_preproc=yes
5132 ;;
5133 no:yes:* )
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5146 ( cat <<\_ASBOX
5147 ## ---------------------------------------------------------------------------------------------------- ##
5148 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle ##
5149 ## ---------------------------------------------------------------------------------------------------- ##
5150 _ASBOX
5151 ) | sed "s/^/$as_me: WARNING: /" >&2
5152 ;;
5153 esac
5154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 eval "$as_ac_Header=\$ac_header_preproc"
5160 fi
5161 ac_res=`eval echo '${'$as_ac_Header'}'`
5162 { echo "$as_me:$LINENO: result: $ac_res" >&5
5163 echo "${ECHO_T}$ac_res" >&6; }
5164
5165 fi
5166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5167 cat >>confdefs.h <<_ACEOF
5168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5169 _ACEOF
5170
5171 fi
5172
5173 done
5174
5175 ac_ext=cpp
5176 ac_cpp='$CXXCPP $CPPFLAGS'
5177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5180 if test -z "$CXX"; then
5181 if test -n "$CCC"; then
5182 CXX=$CCC
5183 else
5184 if test -n "$ac_tool_prefix"; then
5185 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5186 do
5187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_prog_CXX+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 if test -n "$CXX"; then
5195 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4977
4978
4979
4980
4981
4982
4983
4984
4985 if test -n "$ac_tool_prefix"; then
4986 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4987 set dummy ${ac_tool_prefix}ar; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if test "${ac_cv_prog_AR+set}" = set; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 if test -n "$AR"; then
4994 ac_cv_prog_AR="$AR" # Let the user override the test.
51964995 else
51974996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51984997 for as_dir in $PATH
51994998 do
52004999 IFS=$as_save_IFS
52015000 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5001 for ac_exec_ext in '' $ac_executable_extensions; do
52035002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 ac_cv_prog_AR="${ac_tool_prefix}ar"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
52065005 break 2
52075006 fi
52085007 done
5209 done
5008 done
52105009 IFS=$as_save_IFS
52115010
52125011 fi
52135012 fi
5214 CXX=$ac_cv_prog_CXX
5215 if test -n "$CXX"; then
5216 { echo "$as_me:$LINENO: result: $CXX" >&5
5217 echo "${ECHO_T}$CXX" >&6; }
5218 else
5219 { echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6; }
5221 fi
5222
5223
5224 test -n "$CXX" && break
5225 done
5226 fi
5227 if test -z "$CXX"; then
5228 ac_ct_CXX=$CXX
5229 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5230 do
5231 # Extract the first word of "$ac_prog", so it can be a program name with args.
5232 set dummy $ac_prog; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 if test -n "$ac_ct_CXX"; then
5239 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5013 AR=$ac_cv_prog_AR
5014 if test -n "$AR"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5016 $as_echo "$AR" >&6; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5020 fi
5021
5022
5023 fi
5024 if test -z "$ac_cv_prog_AR"; then
5025 ac_ct_AR=$AR
5026 # Extract the first word of "ar", so it can be a program name with args.
5027 set dummy ar; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -n "$ac_ct_AR"; then
5034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
52405035 else
52415036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52425037 for as_dir in $PATH
52435038 do
52445039 IFS=$as_save_IFS
52455040 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5041 for ac_exec_ext in '' $ac_executable_extensions; do
52475042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248 ac_cv_prog_ac_ct_CXX="$ac_prog"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 ac_cv_prog_ac_ct_AR="ar"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
52505045 break 2
52515046 fi
52525047 done
5253 done
5048 done
52545049 IFS=$as_save_IFS
52555050
52565051 fi
52575052 fi
5258 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5259 if test -n "$ac_ct_CXX"; then
5260 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5261 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5262 else
5263 { echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6; }
5265 fi
5266
5267
5268 test -n "$ac_ct_CXX" && break
5269 done
5270
5271 if test "x$ac_ct_CXX" = x; then
5272 CXX="g++"
5053 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5054 if test -n "$ac_ct_AR"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5056 $as_echo "$ac_ct_AR" >&6; }
5057 else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5060 fi
5061
5062 if test "x$ac_ct_AR" = x; then
5063 AR="false"
52735064 else
52745065 case $cross_compiling:$ac_tool_warned in
52755066 yes:)
5276 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5277 whose name does not start with the host triplet. If you think this
5278 configuration is useful to you, please write to autoconf@gnu.org." >&5
5279 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5280 whose name does not start with the host triplet. If you think this
5281 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
52825069 ac_tool_warned=yes ;;
52835070 esac
5284 CXX=$ac_ct_CXX
5071 AR=$ac_ct_AR
52855072 fi
5286 fi
5287
5288 fi
5289 fi
5290 # Provide some information about the compiler.
5291 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5292 ac_compiler=`set X $ac_compile; echo $2`
5293 { (ac_try="$ac_compiler --version >&5"
5294 case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_compiler --version >&5") 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }
5303 { (ac_try="$ac_compiler -v >&5"
5304 case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307 esac
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_compiler -v >&5") 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }
5313 { (ac_try="$ac_compiler -V >&5"
5314 case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317 esac
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_compiler -V >&5") 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }
5323
5324 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5325 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5326 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335
5336 int
5337 main ()
5338 {
5339 #ifndef __GNUC__
5340 choke me
5341 #endif
5342
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 rm -f conftest.$ac_objext
5348 if { (ac_try="$ac_compile"
5349 case "(($ac_try" in
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_compile") 2>conftest.er1
5355 ac_status=$?
5356 grep -v '^ *+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } && {
5361 test -z "$ac_cxx_werror_flag" ||
5362 test ! -s conftest.err
5363 } && test -s conftest.$ac_objext; then
5364 ac_compiler_gnu=yes
5365 else
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5368
5369 ac_compiler_gnu=no
5370 fi
5371
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5374
5375 fi
5376 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5377 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5378 GXX=`test $ac_compiler_gnu = yes && echo yes`
5379 ac_test_CXXFLAGS=${CXXFLAGS+set}
5380 ac_save_CXXFLAGS=$CXXFLAGS
5381 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5382 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5383 if test "${ac_cv_prog_cxx_g+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5387 ac_cxx_werror_flag=yes
5388 ac_cv_prog_cxx_g=no
5389 CXXFLAGS="-g"
5390 cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396
5397 int
5398 main ()
5399 {
5400
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_cxx_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_cv_prog_cxx_g=yes
5423 else
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 CXXFLAGS=""
5428 cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434
5435 int
5436 main ()
5437 {
5438
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 rm -f conftest.$ac_objext
5444 if { (ac_try="$ac_compile"
5445 case "(($ac_try" in
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5448 esac
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_compile") 2>conftest.er1
5451 ac_status=$?
5452 grep -v '^ *+' conftest.er1 >conftest.err
5453 rm -f conftest.er1
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } && {
5457 test -z "$ac_cxx_werror_flag" ||
5458 test ! -s conftest.err
5459 } && test -s conftest.$ac_objext; then
5460 :
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5466 CXXFLAGS="-g"
5467 cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473
5474 int
5475 main ()
5476 {
5477
5478 ;
5479 return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_cxx_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5499 ac_cv_prog_cxx_g=yes
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504
5505 fi
5506
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 fi
5509
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 fi
5512
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5515 fi
5516 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5517 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5518 if test "$ac_test_CXXFLAGS" = set; then
5519 CXXFLAGS=$ac_save_CXXFLAGS
5520 elif test $ac_cv_prog_cxx_g = yes; then
5521 if test "$GXX" = yes; then
5522 CXXFLAGS="-g -O2"
5523 else
5524 CXXFLAGS="-g"
5525 fi
5526 else
5527 if test "$GXX" = yes; then
5528 CXXFLAGS="-O2"
5529 else
5530 CXXFLAGS=
5531 fi
5532 fi
5533 ac_ext=cpp
5534 ac_cpp='$CXXCPP $CPPFLAGS'
5535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5538
5539 depcc="$CXX" am_compiler_list=
5540
5541 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5543 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5547 # We make a subdir and do the tests there. Otherwise we can end up
5548 # making bogus files that we don't know about and never remove. For
5549 # instance it was reported that on HP-UX the gcc test will end up
5550 # making a dummy file named `D' -- because `-MD' means `put the output
5551 # in D'.
5552 mkdir conftest.dir
5553 # Copy depcomp to subdir because otherwise we won't find it if we're
5554 # using a relative directory.
5555 cp "$am_depcomp" conftest.dir
5556 cd conftest.dir
5557 # We will build objects and dependencies in a subdirectory because
5558 # it helps to detect inapplicable dependency modes. For instance
5559 # both Tru64's cc and ICC support -MD to output dependencies as a
5560 # side effect of compilation, but ICC will put the dependencies in
5561 # the current directory while Tru64 will put them in the object
5562 # directory.
5563 mkdir sub
5564
5565 am_cv_CXX_dependencies_compiler_type=none
5566 if test "$am_compiler_list" = ""; then
5567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5568 fi
5569 for depmode in $am_compiler_list; do
5570 # Setup a source with many dependencies, because some compilers
5571 # like to wrap large dependency lists on column 80 (with \), and
5572 # we should not choose a depcomp mode which is confused by this.
5573 #
5574 # We need to recreate these files for each test, as the compiler may
5575 # overwrite some of them when testing with obscure command lines.
5576 # This happens at least with the AIX C compiler.
5577 : > sub/conftest.c
5578 for i in 1 2 3 4 5 6; do
5579 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5580 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5581 # Solaris 8's {/usr,}/bin/sh.
5582 touch sub/conftst$i.h
5583 done
5584 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5585
5586 case $depmode in
5587 nosideeffect)
5588 # after this tag, mechanisms are not by side-effect, so they'll
5589 # only be used when explicitly requested
5590 if test "x$enable_dependency_tracking" = xyes; then
5591 continue
5592 else
5593 break
5594 fi
5595 ;;
5596 none) break ;;
5597 esac
5598 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5599 # mode. It turns out that the SunPro C++ compiler does not properly
5600 # handle `-M -o', and we need to detect this.
5601 if depmode=$depmode \
5602 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5604 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5605 >/dev/null 2>conftest.err &&
5606 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5607 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5608 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5609 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5610 # icc doesn't choke on unknown options, it will just issue warnings
5611 # or remarks (even with -Werror). So we grep stderr for any message
5612 # that says an option was ignored or not supported.
5613 # When given -MP, icc 7.0 and 7.1 complain thusly:
5614 # icc: Command line warning: ignoring option '-M'; no argument required
5615 # The diagnosis changed in icc 8.0:
5616 # icc: Command line remark: option '-MP' not supported
5617 if (grep 'ignoring option' conftest.err ||
5618 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5619 am_cv_CXX_dependencies_compiler_type=$depmode
5620 break
5621 fi
5622 fi
5623 done
5624
5625 cd ..
5626 rm -rf conftest.dir
5627 else
5628 am_cv_CXX_dependencies_compiler_type=none
5629 fi
5630
5631 fi
5632 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5633 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5634 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5635
5636 if
5637 test "x$enable_dependency_tracking" != xno \
5638 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5639 am__fastdepCXX_TRUE=
5640 am__fastdepCXX_FALSE='#'
5641 else
5642 am__fastdepCXX_TRUE='#'
5643 am__fastdepCXX_FALSE=
5644 fi
5645
5646
5647
5648
5649 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5650 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5651 (test "X$CXX" != "Xg++"))) ; then
5652 ac_ext=cpp
5653 ac_cpp='$CXXCPP $CPPFLAGS'
5654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5657 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5658 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5659 if test -z "$CXXCPP"; then
5660 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663 # Double quotes because CXXCPP needs to be expanded
5664 for CXXCPP in "$CXX -E" "/lib/cpp"
5665 do
5666 ac_preproc_ok=false
5667 for ac_cxx_preproc_warn_flag in '' yes
5668 do
5669 # Use a header file that comes with gcc, so configuring glibc
5670 # with a fresh cross-compiler works.
5671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5672 # <limits.h> exists even on freestanding compilers.
5673 # On the NeXT, cc -E runs the code through the compiler's parser,
5674 # not just through cpp. "Syntax error" is here to catch this case.
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 #ifdef __STDC__
5682 # include <limits.h>
5683 #else
5684 # include <assert.h>
5685 #endif
5686 Syntax error
5687 _ACEOF
5688 if { (ac_try="$ac_cpp conftest.$ac_ext"
5689 case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692 esac
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } >/dev/null && {
5701 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5702 test ! -s conftest.err
5703 }; then
5704 :
5705 else
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 # Broken: fails on valid input.
5710 continue
5711 fi
5712
5713 rm -f conftest.err conftest.$ac_ext
5714
5715 # OK, works on sane cases. Now check whether nonexistent headers
5716 # can be detected and how.
5717 cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h. */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5723 #include <ac_nonexistent.h>
5724 _ACEOF
5725 if { (ac_try="$ac_cpp conftest.$ac_ext"
5726 case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } >/dev/null && {
5738 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5739 test ! -s conftest.err
5740 }; then
5741 # Broken: success on invalid input.
5742 continue
5743 else
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747 # Passes both tests.
5748 ac_preproc_ok=:
5749 break
5750 fi
5751
5752 rm -f conftest.err conftest.$ac_ext
5753
5754 done
5755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5756 rm -f conftest.err conftest.$ac_ext
5757 if $ac_preproc_ok; then
5758 break
5759 fi
5760
5761 done
5762 ac_cv_prog_CXXCPP=$CXXCPP
5763
5764 fi
5765 CXXCPP=$ac_cv_prog_CXXCPP
5766 else
5767 ac_cv_prog_CXXCPP=$CXXCPP
5768 fi
5769 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5770 echo "${ECHO_T}$CXXCPP" >&6; }
5771 ac_preproc_ok=false
5772 for ac_cxx_preproc_warn_flag in '' yes
5773 do
5774 # Use a header file that comes with gcc, so configuring glibc
5775 # with a fresh cross-compiler works.
5776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5777 # <limits.h> exists even on freestanding compilers.
5778 # On the NeXT, cc -E runs the code through the compiler's parser,
5779 # not just through cpp. "Syntax error" is here to catch this case.
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 #ifdef __STDC__
5787 # include <limits.h>
5788 #else
5789 # include <assert.h>
5790 #endif
5791 Syntax error
5792 _ACEOF
5793 if { (ac_try="$ac_cpp conftest.$ac_ext"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } >/dev/null && {
5806 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5807 test ! -s conftest.err
5808 }; then
5809 :
5810 else
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814 # Broken: fails on valid input.
5815 continue
5816 fi
5817
5818 rm -f conftest.err conftest.$ac_ext
5819
5820 # OK, works on sane cases. Now check whether nonexistent headers
5821 # can be detected and how.
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <ac_nonexistent.h>
5829 _ACEOF
5830 if { (ac_try="$ac_cpp conftest.$ac_ext"
5831 case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837 ac_status=$?
5838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } >/dev/null && {
5843 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5844 test ! -s conftest.err
5845 }; then
5846 # Broken: success on invalid input.
5847 continue
5848 else
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 # Passes both tests.
5853 ac_preproc_ok=:
5854 break
5855 fi
5856
5857 rm -f conftest.err conftest.$ac_ext
5858
5859 done
5860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5861 rm -f conftest.err conftest.$ac_ext
5862 if $ac_preproc_ok; then
5863 :
5864 else
5865 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5866 See \`config.log' for more details." >&5
5867 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5868 See \`config.log' for more details." >&2;}
5869 { (exit 1); exit 1; }; }
5870 fi
5871
5872 ac_ext=cpp
5873 ac_cpp='$CXXCPP $CPPFLAGS'
5874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5877
5878 fi
5879
5880
5881 ac_ext=f
5882 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5883 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5073 else
5074 AR="$ac_cv_prog_AR"
5075 fi
5076
5077 test -z "$AR" && AR=ar
5078 test -z "$AR_FLAGS" && AR_FLAGS=cru
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
58855090 if test -n "$ac_tool_prefix"; then
5886 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5887 do
5888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5892 if test "${ac_cv_prog_F77+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 if test -n "$F77"; then
5896 ac_cv_prog_F77="$F77" # Let the user override the test.
5091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5092 set dummy ${ac_tool_prefix}strip; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if test "${ac_cv_prog_STRIP+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$STRIP"; then
5099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
58975100 else
58985101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58995102 for as_dir in $PATH
59005103 do
59015104 IFS=$as_save_IFS
59025105 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5106 for ac_exec_ext in '' $ac_executable_extensions; do
59045107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59075110 break 2
59085111 fi
59095112 done
5910 done
5113 done
59115114 IFS=$as_save_IFS
59125115
59135116 fi
59145117 fi
5915 F77=$ac_cv_prog_F77
5916 if test -n "$F77"; then
5917 { echo "$as_me:$LINENO: result: $F77" >&5
5918 echo "${ECHO_T}$F77" >&6; }
5919 else
5920 { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5922 fi
5923
5924
5925 test -n "$F77" && break
5926 done
5927 fi
5928 if test -z "$F77"; then
5929 ac_ct_F77=$F77
5930 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5931 do
5932 # Extract the first word of "$ac_prog", so it can be a program name with args.
5933 set dummy $ac_prog; ac_word=$2
5934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5936 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939 if test -n "$ac_ct_F77"; then
5940 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5118 STRIP=$ac_cv_prog_STRIP
5119 if test -n "$STRIP"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5121 $as_echo "$STRIP" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5125 fi
5126
5127
5128 fi
5129 if test -z "$ac_cv_prog_STRIP"; then
5130 ac_ct_STRIP=$STRIP
5131 # Extract the first word of "strip", so it can be a program name with args.
5132 set dummy strip; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$ac_ct_STRIP"; then
5139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
59415140 else
59425141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59435142 for as_dir in $PATH
59445143 do
59455144 IFS=$as_save_IFS
59465145 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5146 for ac_exec_ext in '' $ac_executable_extensions; do
59485147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949 ac_cv_prog_ac_ct_F77="$ac_prog"
5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 ac_cv_prog_ac_ct_STRIP="strip"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59515150 break 2
59525151 fi
59535152 done
5954 done
5153 done
59555154 IFS=$as_save_IFS
59565155
59575156 fi
59585157 fi
5959 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5960 if test -n "$ac_ct_F77"; then
5961 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5962 echo "${ECHO_T}$ac_ct_F77" >&6; }
5963 else
5964 { echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6; }
5966 fi
5967
5968
5969 test -n "$ac_ct_F77" && break
5970 done
5971
5972 if test "x$ac_ct_F77" = x; then
5973 F77=""
5158 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5159 if test -n "$ac_ct_STRIP"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5161 $as_echo "$ac_ct_STRIP" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5165 fi
5166
5167 if test "x$ac_ct_STRIP" = x; then
5168 STRIP=":"
59745169 else
59755170 case $cross_compiling:$ac_tool_warned in
59765171 yes:)
5977 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5978 whose name does not start with the host triplet. If you think this
5979 configuration is useful to you, please write to autoconf@gnu.org." >&5
5980 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5981 whose name does not start with the host triplet. If you think this
5982 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
59835174 ac_tool_warned=yes ;;
59845175 esac
5985 F77=$ac_ct_F77
5176 STRIP=$ac_ct_STRIP
59865177 fi
5987 fi
5988
5989
5990 # Provide some information about the compiler.
5991 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5992 ac_compiler=`set X $ac_compile; echo $2`
5993 { (ac_try="$ac_compiler --version >&5"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5178 else
5179 STRIP="$ac_cv_prog_STRIP"
5180 fi
5181
5182 test -z "$STRIP" && STRIP=:
5183
5184
5185
5186
5187
5188
5189 if test -n "$ac_tool_prefix"; then
5190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5191 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$RANLIB"; then
5198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211 done
5212 done
5213 IFS=$as_save_IFS
5214
5215 fi
5216 fi
5217 RANLIB=$ac_cv_prog_RANLIB
5218 if test -n "$RANLIB"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5220 $as_echo "$RANLIB" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5224 fi
5225
5226
5227 fi
5228 if test -z "$ac_cv_prog_RANLIB"; then
5229 ac_ct_RANLIB=$RANLIB
5230 # Extract the first word of "ranlib", so it can be a program name with args.
5231 set dummy ranlib; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 if test -n "$ac_ct_RANLIB"; then
5238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_prog_ac_ct_RANLIB="ranlib"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255 fi
5256 fi
5257 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5258 if test -n "$ac_ct_RANLIB"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5260 $as_echo "$ac_ct_RANLIB" >&6; }
5261 else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265
5266 if test "x$ac_ct_RANLIB" = x; then
5267 RANLIB=":"
5268 else
5269 case $cross_compiling:$ac_tool_warned in
5270 yes:)
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5273 ac_tool_warned=yes ;;
59975274 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_compiler --version >&5") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }
6003 { (ac_try="$ac_compiler -v >&5"
6004 case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_compiler -v >&5") 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }
6013 { (ac_try="$ac_compiler -V >&5"
6014 case "(($ac_try" in
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6017 esac
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019 (eval "$ac_compiler -V >&5") 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }
6023 rm -f a.out
6024
6025 # If we don't use `.F' as extension, the preprocessor is not run on the
6026 # input file. (Note that this only needs to work for GNU compilers.)
6027 ac_save_ext=$ac_ext
6028 ac_ext=F
6029 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6030 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6031 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034 cat >conftest.$ac_ext <<_ACEOF
6035 program main
6036 #ifndef __GNUC__
6037 choke me
6038 #endif
6039
6040 end
6041 _ACEOF
6042 rm -f conftest.$ac_objext
6043 if { (ac_try="$ac_compile"
6044 case "(($ac_try" in
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_compile") 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } && {
6056 test -z "$ac_f77_werror_flag" ||
6057 test ! -s conftest.err
6058 } && test -s conftest.$ac_objext; then
6059 ac_compiler_gnu=yes
6060 else
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064 ac_compiler_gnu=no
6065 fi
6066
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6069
6070 fi
6071 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6072 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6073 ac_ext=$ac_save_ext
6074 ac_test_FFLAGS=${FFLAGS+set}
6075 ac_save_FFLAGS=$FFLAGS
6076 FFLAGS=
6077 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6078 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6079 if test "${ac_cv_prog_f77_g+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 FFLAGS=-g
6083 cat >conftest.$ac_ext <<_ACEOF
6084 program main
6085
6086 end
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (ac_try="$ac_compile"
6090 case "(($ac_try" in
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6093 esac
6094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095 (eval "$ac_compile") 2>conftest.er1
6096 ac_status=$?
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } && {
6102 test -z "$ac_f77_werror_flag" ||
6103 test ! -s conftest.err
6104 } && test -s conftest.$ac_objext; then
6105 ac_cv_prog_f77_g=yes
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110 ac_cv_prog_f77_g=no
6111 fi
6112
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114
6115 fi
6116 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6117 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6118 if test "$ac_test_FFLAGS" = set; then
6119 FFLAGS=$ac_save_FFLAGS
6120 elif test $ac_cv_prog_f77_g = yes; then
6121 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6122 FFLAGS="-g -O2"
6123 else
6124 FFLAGS="-g"
5275 RANLIB=$ac_ct_RANLIB
61255276 fi
61265277 else
6127 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6128 FFLAGS="-O2"
6129 else
6130 FFLAGS=
6131 fi
6132 fi
6133
6134 G77=`test $ac_compiler_gnu = yes && echo yes`
6135 ac_ext=c
6136 ac_cpp='$CPP $CPPFLAGS'
6137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140
6141
6142
6143 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6144 # find the maximum length of command line arguments
6145 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6146 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6147 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150 i=0
6151 teststring="ABCD"
6152
6153 case $build_os in
6154 msdosdjgpp*)
6155 # On DJGPP, this test can blow up pretty badly due to problems in libc
6156 # (any single argument exceeding 2000 bytes causes a buffer overrun
6157 # during glob expansion). Even if it were fixed, the result of this
6158 # check would be larger than it should be.
6159 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6160 ;;
6161
6162 gnu*)
6163 # Under GNU Hurd, this test is not required because there is
6164 # no limit to the length of command line arguments.
6165 # Libtool will interpret -1 as no limit whatsoever
6166 lt_cv_sys_max_cmd_len=-1;
6167 ;;
6168
6169 cygwin* | mingw*)
6170 # On Win9x/ME, this test blows up -- it succeeds, but takes
6171 # about 5 minutes as the teststring grows exponentially.
6172 # Worse, since 9x/ME are not pre-emptively multitasking,
6173 # you end up with a "frozen" computer, even though with patience
6174 # the test eventually succeeds (with a max line length of 256k).
6175 # Instead, let's just punt: use the minimum linelength reported by
6176 # all of the supported platforms: 8192 (on NT/2K/XP).
6177 lt_cv_sys_max_cmd_len=8192;
6178 ;;
6179
6180 amigaos*)
6181 # On AmigaOS with pdksh, this test takes hours, literally.
6182 # So we just punt and use a minimum line length of 8192.
6183 lt_cv_sys_max_cmd_len=8192;
6184 ;;
6185
6186 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6187 # This has been around since 386BSD, at least. Likely further.
6188 if test -x /sbin/sysctl; then
6189 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6190 elif test -x /usr/sbin/sysctl; then
6191 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6192 else
6193 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6194 fi
6195 # And add a safety zone
6196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6198 ;;
6199
6200 interix*)
6201 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6202 lt_cv_sys_max_cmd_len=196608
6203 ;;
6204
6205 osf*)
6206 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6207 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6208 # nice to cause kernel panics so lets avoid the loop below.
6209 # First set a reasonable default.
6210 lt_cv_sys_max_cmd_len=16384
6211 #
6212 if test -x /sbin/sysconfig; then
6213 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6214 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6215 esac
6216 fi
6217 ;;
6218 sco3.2v5*)
6219 lt_cv_sys_max_cmd_len=102400
6220 ;;
6221 sysv5* | sco5v6* | sysv4.2uw2*)
6222 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6223 if test -n "$kargmax"; then
6224 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6225 else
6226 lt_cv_sys_max_cmd_len=32768
6227 fi
5278 RANLIB="$ac_cv_prog_RANLIB"
5279 fi
5280
5281 test -z "$RANLIB" && RANLIB=:
5282
5283
5284
5285
5286
5287
5288 # Determine commands to create old-style static archives.
5289 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5290 old_postinstall_cmds='chmod 644 $oldlib'
5291 old_postuninstall_cmds=
5292
5293 if test -n "$RANLIB"; then
5294 case $host_os in
5295 openbsd*)
5296 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
62285297 ;;
62295298 *)
6230 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6231 if test -n "$lt_cv_sys_max_cmd_len"; then
6232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6234 else
6235 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6236 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6237 = "XX$teststring") >/dev/null 2>&1 &&
6238 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6239 lt_cv_sys_max_cmd_len=$new_result &&
6240 test $i != 17 # 1/2 MB should be enough
6241 do
6242 i=`expr $i + 1`
6243 teststring=$teststring$teststring
6244 done
6245 teststring=
6246 # Add a significant safety factor because C++ compilers can tack on massive
6247 # amounts of additional arguments before passing them to the linker.
6248 # It appears as though 1/2 is a usable value.
6249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6250 fi
5299 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
62515300 ;;
62525301 esac
6253
6254 fi
6255
6256 if test -n $lt_cv_sys_max_cmd_len ; then
6257 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6258 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6259 else
6260 { echo "$as_me:$LINENO: result: none" >&5
6261 echo "${ECHO_T}none" >&6; }
6262 fi
6263
6264
6265
5302 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5303 fi
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338 # If no C compiler was specified, use CC.
5339 LTCC=${LTCC-"$CC"}
5340
5341 # If no C compiler flags were specified, use CFLAGS.
5342 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5343
5344 # Allow CC to be a program name with arguments.
5345 compiler=$CC
62665346
62675347
62685348 # Check for command to grab the raw symbol name followed by C symbol from nm.
6269 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6270 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6271 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5350 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5351 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5352 $as_echo_n "(cached) " >&6
62735353 else
62745354
62755355 # These are sane defaults that work on at least a few old systems.
62805360
62815361 # Regexp to match symbols that can be accessed directly from C.
62825362 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6283
6284 # Transform an extracted symbol line into a proper C declaration
6285 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6286
6287 # Transform an extracted symbol line into symbol name and symbol address
6288 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
62895363
62905364 # Define system-specific variables.
62915365 case $host_os in
62925366 aix*)
62935367 symcode='[BCDT]'
62945368 ;;
6295 cygwin* | mingw* | pw32*)
5369 cygwin* | mingw* | pw32* | cegcc*)
62965370 symcode='[ABCDGISTW]'
62975371 ;;
6298 hpux*) # Its linker distinguishes data from code symbols
5372 hpux*)
62995373 if test "$host_cpu" = ia64; then
63005374 symcode='[ABCDEGRST]'
6301 fi
6302 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6303 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6304 ;;
6305 linux* | k*bsd*-gnu)
6306 if test "$host_cpu" = ia64; then
6307 symcode='[ABCDGIRSTW]'
6308 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6309 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
63105375 fi
63115376 ;;
63125377 irix* | nonstopux*)
63325397 ;;
63335398 esac
63345399
6335 # Handle CRLF in mingw tool chain
6336 opt_cr=
6337 case $build_os in
6338 mingw*)
6339 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6340 ;;
6341 esac
6342
63435400 # If we're using GNU nm, then use its standard symbol codes.
63445401 case `$NM -V 2>&1` in
63455402 *GNU* | *'with BFD'*)
63465403 symcode='[ABCDGIRSTW]' ;;
63475404 esac
63485405
6349 # Try without a prefix undercore, then with it.
5406 # Transform an extracted symbol line into a proper C declaration.
5407 # Some systems (esp. on ia64) link data and code symbols differently,
5408 # so use this general approach.
5409 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5410
5411 # Transform an extracted symbol line into symbol name and symbol address
5412 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5413 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5414
5415 # Handle CRLF in mingw tool chain
5416 opt_cr=
5417 case $build_os in
5418 mingw*)
5419 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5420 ;;
5421 esac
5422
5423 # Try without a prefix underscore, then with it.
63505424 for ac_symprfx in "" "_"; do
63515425
63525426 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
63535427 symxfrm="\\1 $ac_symprfx\\2 \\2"
63545428
63555429 # Write the raw and C identifiers.
6356 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5430 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5431 # Fake it for dumpbin and say T for any non-static function
5432 # and D for any global variable.
5433 # Also find C++ and __fastcall symbols from MSVC++,
5434 # which start with @ or ?.
5435 lt_cv_sys_global_symbol_pipe="$AWK '"\
5436 " {last_section=section; section=\$ 3};"\
5437 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5438 " \$ 0!~/External *\|/{next};"\
5439 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5440 " {if(hide[section]) next};"\
5441 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5442 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5443 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5444 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5445 " ' prfx=^$ac_symprfx"
5446 else
5447 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5448 fi
63575449
63585450 # Check to see that the pipe works correctly.
63595451 pipe_works=no
63605452
63615453 rm -f conftest*
6362 cat > conftest.$ac_ext <<EOF
5454 cat > conftest.$ac_ext <<_LT_EOF
63635455 #ifdef __cplusplus
63645456 extern "C" {
63655457 #endif
63665458 char nm_test_var;
6367 void nm_test_func(){}
5459 void nm_test_func(void);
5460 void nm_test_func(void){}
63685461 #ifdef __cplusplus
63695462 }
63705463 #endif
63715464 int main(){nm_test_var='a';nm_test_func();return(0);}
6372 EOF
6373
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5465 _LT_EOF
5466
5467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
63755468 (eval $ac_compile) 2>&5
63765469 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; then
5470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5471 test $ac_status = 0; }; then
63795472 # Now try to grab the symbols.
63805473 nlist=conftest.nm
6381 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
63825475 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
63835476 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } && test -s "$nlist"; then
5477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5478 test $ac_status = 0; } && test -s "$nlist"; then
63865479 # Try sorting and uniquifying the output.
63875480 if sort "$nlist" | uniq > "$nlist"T; then
63885481 mv -f "$nlist"T "$nlist"
63915484 fi
63925485
63935486 # Make sure that we snagged all the symbols we need.
6394 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6395 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6396 cat <<EOF > conftest.$ac_ext
5487 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5488 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5489 cat <<_LT_EOF > conftest.$ac_ext
63975490 #ifdef __cplusplus
63985491 extern "C" {
63995492 #endif
64005493
6401 EOF
5494 _LT_EOF
64025495 # Now generate the symbol file.
6403 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6404
6405 cat <<EOF >> conftest.$ac_ext
6406 #if defined (__STDC__) && __STDC__
6407 # define lt_ptr_t void *
6408 #else
6409 # define lt_ptr_t char *
6410 # define const
6411 #endif
6412
6413 /* The mapping between symbol names and symbols. */
5496 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5497
5498 cat <<_LT_EOF >> conftest.$ac_ext
5499
5500 /* The mapping between symbol names and symbols. */
64145501 const struct {
64155502 const char *name;
6416 lt_ptr_t address;
5503 void *address;
64175504 }
6418 lt_preloaded_symbols[] =
5505 lt__PROGRAM__LTX_preloaded_symbols[] =
64195506 {
6420 EOF
6421 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6422 cat <<\EOF >> conftest.$ac_ext
6423 {0, (lt_ptr_t) 0}
5507 { "@PROGRAM@", (void *) 0 },
5508 _LT_EOF
5509 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5510 cat <<\_LT_EOF >> conftest.$ac_ext
5511 {0, (void *) 0}
64245512 };
5513
5514 /* This works around a problem in FreeBSD linker */
5515 #ifdef FREEBSD_WORKAROUND
5516 static const void *lt_preloaded_setup() {
5517 return lt__PROGRAM__LTX_preloaded_symbols;
5518 }
5519 #endif
64255520
64265521 #ifdef __cplusplus
64275522 }
64285523 #endif
6429 EOF
5524 _LT_EOF
64305525 # Now try linking the two files.
64315526 mv conftest.$ac_objext conftstm.$ac_objext
64325527 lt_save_LIBS="$LIBS"
64335528 lt_save_CFLAGS="$CFLAGS"
64345529 LIBS="conftstm.$ac_objext"
64355530 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
64375532 (eval $ac_link) 2>&5
64385533 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5535 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
64415536 pipe_works=yes
64425537 fi
64435538 LIBS="$lt_save_LIBS"
64715566 lt_cv_sys_global_symbol_to_cdecl=
64725567 fi
64735568 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6474 { echo "$as_me:$LINENO: result: failed" >&5
6475 echo "${ECHO_T}failed" >&6; }
6476 else
6477 { echo "$as_me:$LINENO: result: ok" >&5
6478 echo "${ECHO_T}ok" >&6; }
6479 fi
6480
6481 { echo "$as_me:$LINENO: checking for objdir" >&5
6482 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6483 if test "${lt_cv_objdir+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5570 $as_echo "failed" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5573 $as_echo "ok" >&6; }
5574 fi
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598 # Check whether --enable-libtool-lock was given.
5599 if test "${enable_libtool_lock+set}" = set; then :
5600 enableval=$enable_libtool_lock;
5601 fi
5602
5603 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5604
5605 # Some flags need to be propagated to the compiler or linker for good
5606 # libtool support.
5607 case $host in
5608 ia64-*-hpux*)
5609 # Find out which ABI we are using.
5610 echo 'int i;' > conftest.$ac_ext
5611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5612 (eval $ac_compile) 2>&5
5613 ac_status=$?
5614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5615 test $ac_status = 0; }; then
5616 case `/usr/bin/file conftest.$ac_objext` in
5617 *ELF-32*)
5618 HPUX_IA64_MODE="32"
5619 ;;
5620 *ELF-64*)
5621 HPUX_IA64_MODE="64"
5622 ;;
5623 esac
5624 fi
5625 rm -rf conftest*
5626 ;;
5627 *-*-irix6*)
5628 # Find out which ABI we are using.
5629 echo '#line 5630 "configure"' > conftest.$ac_ext
5630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5631 (eval $ac_compile) 2>&5
5632 ac_status=$?
5633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634 test $ac_status = 0; }; then
5635 if test "$lt_cv_prog_gnu_ld" = yes; then
5636 case `/usr/bin/file conftest.$ac_objext` in
5637 *32-bit*)
5638 LD="${LD-ld} -melf32bsmip"
5639 ;;
5640 *N32*)
5641 LD="${LD-ld} -melf32bmipn32"
5642 ;;
5643 *64-bit*)
5644 LD="${LD-ld} -melf64bmip"
5645 ;;
5646 esac
5647 else
5648 case `/usr/bin/file conftest.$ac_objext` in
5649 *32-bit*)
5650 LD="${LD-ld} -32"
5651 ;;
5652 *N32*)
5653 LD="${LD-ld} -n32"
5654 ;;
5655 *64-bit*)
5656 LD="${LD-ld} -64"
5657 ;;
5658 esac
5659 fi
5660 fi
5661 rm -rf conftest*
5662 ;;
5663
5664 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5665 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5666 # Find out which ABI we are using.
5667 echo 'int i;' > conftest.$ac_ext
5668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5669 (eval $ac_compile) 2>&5
5670 ac_status=$?
5671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5672 test $ac_status = 0; }; then
5673 case `/usr/bin/file conftest.o` in
5674 *32-bit*)
5675 case $host in
5676 x86_64-*kfreebsd*-gnu)
5677 LD="${LD-ld} -m elf_i386_fbsd"
5678 ;;
5679 x86_64-*linux*)
5680 LD="${LD-ld} -m elf_i386"
5681 ;;
5682 ppc64-*linux*|powerpc64-*linux*)
5683 LD="${LD-ld} -m elf32ppclinux"
5684 ;;
5685 s390x-*linux*)
5686 LD="${LD-ld} -m elf_s390"
5687 ;;
5688 sparc64-*linux*)
5689 LD="${LD-ld} -m elf32_sparc"
5690 ;;
5691 esac
5692 ;;
5693 *64-bit*)
5694 case $host in
5695 x86_64-*kfreebsd*-gnu)
5696 LD="${LD-ld} -m elf_x86_64_fbsd"
5697 ;;
5698 x86_64-*linux*)
5699 LD="${LD-ld} -m elf_x86_64"
5700 ;;
5701 ppc*-*linux*|powerpc*-*linux*)
5702 LD="${LD-ld} -m elf64ppc"
5703 ;;
5704 s390*-*linux*|s390*-*tpf*)
5705 LD="${LD-ld} -m elf64_s390"
5706 ;;
5707 sparc*-*linux*)
5708 LD="${LD-ld} -m elf64_sparc"
5709 ;;
5710 esac
5711 ;;
5712 esac
5713 fi
5714 rm -rf conftest*
5715 ;;
5716
5717 *-*-sco3.2v5*)
5718 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5719 SAVE_CFLAGS="$CFLAGS"
5720 CFLAGS="$CFLAGS -belf"
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5722 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5723 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 ac_ext=c
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5734
5735 int
5736 main ()
5737 {
5738
5739 ;
5740 return 0;
5741 }
5742 _ACEOF
5743 if ac_fn_c_try_link "$LINENO"; then :
5744 lt_cv_cc_needs_belf=yes
5745 else
5746 lt_cv_cc_needs_belf=no
5747 fi
5748 rm -f core conftest.err conftest.$ac_objext \
5749 conftest$ac_exeext conftest.$ac_ext
5750 ac_ext=c
5751 ac_cpp='$CPP $CPPFLAGS'
5752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5755
5756 fi
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5758 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5759 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5760 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5761 CFLAGS="$SAVE_CFLAGS"
5762 fi
5763 ;;
5764 sparc*-*solaris*)
5765 # Find out which ABI we are using.
5766 echo 'int i;' > conftest.$ac_ext
5767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5768 (eval $ac_compile) 2>&5
5769 ac_status=$?
5770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5771 test $ac_status = 0; }; then
5772 case `/usr/bin/file conftest.o` in
5773 *64-bit*)
5774 case $lt_cv_prog_gnu_ld in
5775 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5776 *)
5777 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5778 LD="${LD-ld} -64"
5779 fi
5780 ;;
5781 esac
5782 ;;
5783 esac
5784 fi
5785 rm -rf conftest*
5786 ;;
5787 esac
5788
5789 need_locks="$enable_libtool_lock"
5790
5791
5792 case $host_os in
5793 rhapsody* | darwin*)
5794 if test -n "$ac_tool_prefix"; then
5795 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 if test -n "$DSYMUTIL"; then
5803 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5823 if test -n "$DSYMUTIL"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5825 $as_echo "$DSYMUTIL" >&6; }
5826 else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831
5832 fi
5833 if test -z "$ac_cv_prog_DSYMUTIL"; then
5834 ac_ct_DSYMUTIL=$DSYMUTIL
5835 # Extract the first word of "dsymutil", so it can be a program name with args.
5836 set dummy dsymutil; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if test -n "$ac_ct_DSYMUTIL"; then
5843 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856 done
5857 done
5858 IFS=$as_save_IFS
5859
5860 fi
5861 fi
5862 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5863 if test -n "$ac_ct_DSYMUTIL"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5865 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5866 else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5869 fi
5870
5871 if test "x$ac_ct_DSYMUTIL" = x; then
5872 DSYMUTIL=":"
5873 else
5874 case $cross_compiling:$ac_tool_warned in
5875 yes:)
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878 ac_tool_warned=yes ;;
5879 esac
5880 DSYMUTIL=$ac_ct_DSYMUTIL
5881 fi
5882 else
5883 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5884 fi
5885
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 if test -n "$NMEDIT"; then
5895 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 NMEDIT=$ac_cv_prog_NMEDIT
5915 if test -n "$NMEDIT"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5917 $as_echo "$NMEDIT" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923
5924 fi
5925 if test -z "$ac_cv_prog_NMEDIT"; then
5926 ac_ct_NMEDIT=$NMEDIT
5927 # Extract the first word of "nmedit", so it can be a program name with args.
5928 set dummy nmedit; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if test -n "$ac_ct_NMEDIT"; then
5935 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5947 fi
5948 done
5949 done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5955 if test -n "$ac_ct_NMEDIT"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5957 $as_echo "$ac_ct_NMEDIT" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5961 fi
5962
5963 if test "x$ac_ct_NMEDIT" = x; then
5964 NMEDIT=":"
5965 else
5966 case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972 NMEDIT=$ac_ct_NMEDIT
5973 fi
5974 else
5975 NMEDIT="$ac_cv_prog_NMEDIT"
5976 fi
5977
5978 if test -n "$ac_tool_prefix"; then
5979 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5980 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if test "${ac_cv_prog_LIPO+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 if test -n "$LIPO"; then
5987 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5988 else
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5991 do
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
5999 fi
6000 done
6001 done
6002 IFS=$as_save_IFS
6003
6004 fi
6005 fi
6006 LIPO=$ac_cv_prog_LIPO
6007 if test -n "$LIPO"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6009 $as_echo "$LIPO" >&6; }
6010 else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6013 fi
6014
6015
6016 fi
6017 if test -z "$ac_cv_prog_LIPO"; then
6018 ac_ct_LIPO=$LIPO
6019 # Extract the first word of "lipo", so it can be a program name with args.
6020 set dummy lipo; ac_word=$2
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022 $as_echo_n "checking for $ac_word... " >&6; }
6023 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 if test -n "$ac_ct_LIPO"; then
6027 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6028 else
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 for as_dir in $PATH
6031 do
6032 IFS=$as_save_IFS
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6036 ac_cv_prog_ac_ct_LIPO="lipo"
6037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 break 2
6039 fi
6040 done
6041 done
6042 IFS=$as_save_IFS
6043
6044 fi
6045 fi
6046 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6047 if test -n "$ac_ct_LIPO"; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6049 $as_echo "$ac_ct_LIPO" >&6; }
6050 else
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052 $as_echo "no" >&6; }
6053 fi
6054
6055 if test "x$ac_ct_LIPO" = x; then
6056 LIPO=":"
6057 else
6058 case $cross_compiling:$ac_tool_warned in
6059 yes:)
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6062 ac_tool_warned=yes ;;
6063 esac
6064 LIPO=$ac_ct_LIPO
6065 fi
6066 else
6067 LIPO="$ac_cv_prog_LIPO"
6068 fi
6069
6070 if test -n "$ac_tool_prefix"; then
6071 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6072 set dummy ${ac_tool_prefix}otool; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if test -n "$OTOOL"; then
6079 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092 done
6093 done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 OTOOL=$ac_cv_prog_OTOOL
6099 if test -n "$OTOOL"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6101 $as_echo "$OTOOL" >&6; }
6102 else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107
6108 fi
6109 if test -z "$ac_cv_prog_OTOOL"; then
6110 ac_ct_OTOOL=$OTOOL
6111 # Extract the first word of "otool", so it can be a program name with args.
6112 set dummy otool; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 if test -n "$ac_ct_OTOOL"; then
6119 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128 ac_cv_prog_ac_ct_OTOOL="otool"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6131 fi
6132 done
6133 done
6134 IFS=$as_save_IFS
6135
6136 fi
6137 fi
6138 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6139 if test -n "$ac_ct_OTOOL"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6141 $as_echo "$ac_ct_OTOOL" >&6; }
6142 else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6145 fi
6146
6147 if test "x$ac_ct_OTOOL" = x; then
6148 OTOOL=":"
6149 else
6150 case $cross_compiling:$ac_tool_warned in
6151 yes:)
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6154 ac_tool_warned=yes ;;
6155 esac
6156 OTOOL=$ac_ct_OTOOL
6157 fi
6158 else
6159 OTOOL="$ac_cv_prog_OTOOL"
6160 fi
6161
6162 if test -n "$ac_tool_prefix"; then
6163 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6164 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if test -n "$OTOOL64"; then
6171 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184 done
6185 done
6186 IFS=$as_save_IFS
6187
6188 fi
6189 fi
6190 OTOOL64=$ac_cv_prog_OTOOL64
6191 if test -n "$OTOOL64"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6193 $as_echo "$OTOOL64" >&6; }
6194 else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 $as_echo "no" >&6; }
6197 fi
6198
6199
6200 fi
6201 if test -z "$ac_cv_prog_OTOOL64"; then
6202 ac_ct_OTOOL64=$OTOOL64
6203 # Extract the first word of "otool64", so it can be a program name with args.
6204 set dummy otool64; ac_word=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 if test -n "$ac_ct_OTOOL64"; then
6211 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220 ac_cv_prog_ac_ct_OTOOL64="otool64"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224 done
6225 done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6231 if test -n "$ac_ct_OTOOL64"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6233 $as_echo "$ac_ct_OTOOL64" >&6; }
6234 else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6237 fi
6238
6239 if test "x$ac_ct_OTOOL64" = x; then
6240 OTOOL64=":"
6241 else
6242 case $cross_compiling:$ac_tool_warned in
6243 yes:)
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6246 ac_tool_warned=yes ;;
6247 esac
6248 OTOOL64=$ac_ct_OTOOL64
6249 fi
6250 else
6251 OTOOL64="$ac_cv_prog_OTOOL64"
6252 fi
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6281 $as_echo_n "checking for -single_module linker flag... " >&6; }
6282 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 lt_cv_apple_cc_single_mod=no
6286 if test -z "${LT_MULTI_MODULE}"; then
6287 # By default we will add the -single_module flag. You can override
6288 # by either setting the environment variable LT_MULTI_MODULE
6289 # non-empty at configure time, or by adding -multi_module to the
6290 # link flags.
6291 rm -rf libconftest.dylib*
6292 echo "int foo(void){return 1;}" > conftest.c
6293 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6294 -dynamiclib -Wl,-single_module conftest.c" >&5
6295 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6296 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6297 _lt_result=$?
6298 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6299 lt_cv_apple_cc_single_mod=yes
6300 else
6301 cat conftest.err >&5
6302 fi
6303 rm -rf libconftest.dylib*
6304 rm -f conftest.*
6305 fi
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6308 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6310 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6311 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 lt_cv_ld_exported_symbols_list=no
6315 save_LDFLAGS=$LDFLAGS
6316 echo "_main" > conftest.sym
6317 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320
6321 int
6322 main ()
6323 {
6324
6325 ;
6326 return 0;
6327 }
6328 _ACEOF
6329 if ac_fn_c_try_link "$LINENO"; then :
6330 lt_cv_ld_exported_symbols_list=yes
6331 else
6332 lt_cv_ld_exported_symbols_list=no
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext \
6335 conftest$ac_exeext conftest.$ac_ext
6336 LDFLAGS="$save_LDFLAGS"
6337
6338 fi
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6340 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6341 case $host_os in
6342 rhapsody* | darwin1.[012])
6343 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6344 darwin1.*)
6345 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6346 darwin*) # darwin 5.x on
6347 # if running on 10.5 or later, the deployment target defaults
6348 # to the OS version, if on x86, and 10.4, the deployment
6349 # target defaults to 10.4. Don't you love it?
6350 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6351 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6352 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6353 10.[012]*)
6354 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6355 10.*)
6356 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6357 esac
6358 ;;
6359 esac
6360 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6361 _lt_dar_single_mod='$single_module'
6362 fi
6363 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6364 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6365 else
6366 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6367 fi
6368 if test "$DSYMUTIL" != ":"; then
6369 _lt_dsymutil='~$DSYMUTIL $lib || :'
6370 else
6371 _lt_dsymutil=
6372 fi
6373 ;;
6374 esac
6375
6376 ac_ext=c
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6382 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6383 # On Suns, sometimes $CPP names a directory.
6384 if test -n "$CPP" && test -d "$CPP"; then
6385 CPP=
6386 fi
6387 if test -z "$CPP"; then
6388 if test "${ac_cv_prog_CPP+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 # Double quotes because CPP needs to be expanded
6392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6393 do
6394 ac_preproc_ok=false
6395 for ac_c_preproc_warn_flag in '' yes
6396 do
6397 # Use a header file that comes with gcc, so configuring glibc
6398 # with a fresh cross-compiler works.
6399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400 # <limits.h> exists even on freestanding compilers.
6401 # On the NeXT, cc -E runs the code through the compiler's parser,
6402 # not just through cpp. "Syntax error" is here to catch this case.
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 #ifdef __STDC__
6406 # include <limits.h>
6407 #else
6408 # include <assert.h>
6409 #endif
6410 Syntax error
6411 _ACEOF
6412 if ac_fn_c_try_cpp "$LINENO"; then :
6413
6414 else
6415 # Broken: fails on valid input.
6416 continue
6417 fi
6418 rm -f conftest.err conftest.$ac_ext
6419
6420 # OK, works on sane cases. Now check whether nonexistent headers
6421 # can be detected and how.
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424 #include <ac_nonexistent.h>
6425 _ACEOF
6426 if ac_fn_c_try_cpp "$LINENO"; then :
6427 # Broken: success on invalid input.
6428 continue
6429 else
6430 # Passes both tests.
6431 ac_preproc_ok=:
6432 break
6433 fi
6434 rm -f conftest.err conftest.$ac_ext
6435
6436 done
6437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6438 rm -f conftest.err conftest.$ac_ext
6439 if $ac_preproc_ok; then :
6440 break
6441 fi
6442
6443 done
6444 ac_cv_prog_CPP=$CPP
6445
6446 fi
6447 CPP=$ac_cv_prog_CPP
6448 else
6449 ac_cv_prog_CPP=$CPP
6450 fi
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6452 $as_echo "$CPP" >&6; }
6453 ac_preproc_ok=false
6454 for ac_c_preproc_warn_flag in '' yes
6455 do
6456 # Use a header file that comes with gcc, so configuring glibc
6457 # with a fresh cross-compiler works.
6458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6459 # <limits.h> exists even on freestanding compilers.
6460 # On the NeXT, cc -E runs the code through the compiler's parser,
6461 # not just through cpp. "Syntax error" is here to catch this case.
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #ifdef __STDC__
6465 # include <limits.h>
6466 #else
6467 # include <assert.h>
6468 #endif
6469 Syntax error
6470 _ACEOF
6471 if ac_fn_c_try_cpp "$LINENO"; then :
6472
6473 else
6474 # Broken: fails on valid input.
6475 continue
6476 fi
6477 rm -f conftest.err conftest.$ac_ext
6478
6479 # OK, works on sane cases. Now check whether nonexistent headers
6480 # can be detected and how.
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483 #include <ac_nonexistent.h>
6484 _ACEOF
6485 if ac_fn_c_try_cpp "$LINENO"; then :
6486 # Broken: success on invalid input.
6487 continue
6488 else
6489 # Passes both tests.
6490 ac_preproc_ok=:
6491 break
6492 fi
6493 rm -f conftest.err conftest.$ac_ext
6494
6495 done
6496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6497 rm -f conftest.err conftest.$ac_ext
6498 if $ac_preproc_ok; then :
6499
6500 else
6501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6503 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6504 See \`config.log' for more details." "$LINENO" 5; }
6505 fi
6506
6507 ac_ext=c
6508 ac_cpp='$CPP $CPPFLAGS'
6509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6512
6513
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6515 $as_echo_n "checking for ANSI C header files... " >&6; }
6516 if test "${ac_cv_header_stdc+set}" = set; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6521 #include <stdlib.h>
6522 #include <stdarg.h>
6523 #include <string.h>
6524 #include <float.h>
6525
6526 int
6527 main ()
6528 {
6529
6530 ;
6531 return 0;
6532 }
6533 _ACEOF
6534 if ac_fn_c_try_compile "$LINENO"; then :
6535 ac_cv_header_stdc=yes
6536 else
6537 ac_cv_header_stdc=no
6538 fi
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540
6541 if test $ac_cv_header_stdc = yes; then
6542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 #include <string.h>
6546
6547 _ACEOF
6548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6549 $EGREP "memchr" >/dev/null 2>&1; then :
6550
6551 else
6552 ac_cv_header_stdc=no
6553 fi
6554 rm -f conftest*
6555
6556 fi
6557
6558 if test $ac_cv_header_stdc = yes; then
6559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 #include <stdlib.h>
6563
6564 _ACEOF
6565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 $EGREP "free" >/dev/null 2>&1; then :
6567
6568 else
6569 ac_cv_header_stdc=no
6570 fi
6571 rm -f conftest*
6572
6573 fi
6574
6575 if test $ac_cv_header_stdc = yes; then
6576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6577 if test "$cross_compiling" = yes; then :
6578 :
6579 else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 #include <ctype.h>
6583 #include <stdlib.h>
6584 #if ((' ' & 0x0FF) == 0x020)
6585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6587 #else
6588 # define ISLOWER(c) \
6589 (('a' <= (c) && (c) <= 'i') \
6590 || ('j' <= (c) && (c) <= 'r') \
6591 || ('s' <= (c) && (c) <= 'z'))
6592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6593 #endif
6594
6595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6596 int
6597 main ()
6598 {
6599 int i;
6600 for (i = 0; i < 256; i++)
6601 if (XOR (islower (i), ISLOWER (i))
6602 || toupper (i) != TOUPPER (i))
6603 return 2;
6604 return 0;
6605 }
6606 _ACEOF
6607 if ac_fn_c_try_run "$LINENO"; then :
6608
6609 else
6610 ac_cv_header_stdc=no
6611 fi
6612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6613 conftest.$ac_objext conftest.beam conftest.$ac_ext
6614 fi
6615
6616 fi
6617 fi
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6619 $as_echo "$ac_cv_header_stdc" >&6; }
6620 if test $ac_cv_header_stdc = yes; then
6621
6622 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6623
6624 fi
6625
6626 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6627 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6628 inttypes.h stdint.h unistd.h
6629 do :
6630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6631 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6632 "
6633 eval as_val=\$$as_ac_Header
6634 if test "x$as_val" = x""yes; then :
6635 cat >>confdefs.h <<_ACEOF
6636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637 _ACEOF
6638
6639 fi
6640
6641 done
6642
6643
6644 for ac_header in dlfcn.h
6645 do :
6646 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6647 "
6648 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6649 cat >>confdefs.h <<_ACEOF
6650 #define HAVE_DLFCN_H 1
6651 _ACEOF
6652
6653 fi
6654
6655 done
6656
6657
6658
6659 # Set options
6660
6661
6662
6663 enable_dlopen=no
6664
6665
6666 enable_win32_dll=no
6667
6668
6669 # Check whether --enable-shared was given.
6670 if test "${enable_shared+set}" = set; then :
6671 enableval=$enable_shared; p=${PACKAGE-default}
6672 case $enableval in
6673 yes) enable_shared=yes ;;
6674 no) enable_shared=no ;;
6675 *)
6676 enable_shared=no
6677 # Look at the argument we got. We use all the common list separators.
6678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6679 for pkg in $enableval; do
6680 IFS="$lt_save_ifs"
6681 if test "X$pkg" = "X$p"; then
6682 enable_shared=yes
6683 fi
6684 done
6685 IFS="$lt_save_ifs"
6686 ;;
6687 esac
6688 else
6689 enable_shared=yes
6690 fi
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700 # Check whether --enable-static was given.
6701 if test "${enable_static+set}" = set; then :
6702 enableval=$enable_static; p=${PACKAGE-default}
6703 case $enableval in
6704 yes) enable_static=yes ;;
6705 no) enable_static=no ;;
6706 *)
6707 enable_static=no
6708 # Look at the argument we got. We use all the common list separators.
6709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6710 for pkg in $enableval; do
6711 IFS="$lt_save_ifs"
6712 if test "X$pkg" = "X$p"; then
6713 enable_static=yes
6714 fi
6715 done
6716 IFS="$lt_save_ifs"
6717 ;;
6718 esac
6719 else
6720 enable_static=yes
6721 fi
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732 # Check whether --with-pic was given.
6733 if test "${with_pic+set}" = set; then :
6734 withval=$with_pic; pic_mode="$withval"
6735 else
6736 pic_mode=default
6737 fi
6738
6739
6740 test -z "$pic_mode" && pic_mode=default
6741
6742
6743
6744
6745
6746
6747
6748 # Check whether --enable-fast-install was given.
6749 if test "${enable_fast_install+set}" = set; then :
6750 enableval=$enable_fast_install; p=${PACKAGE-default}
6751 case $enableval in
6752 yes) enable_fast_install=yes ;;
6753 no) enable_fast_install=no ;;
6754 *)
6755 enable_fast_install=no
6756 # Look at the argument we got. We use all the common list separators.
6757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6758 for pkg in $enableval; do
6759 IFS="$lt_save_ifs"
6760 if test "X$pkg" = "X$p"; then
6761 enable_fast_install=yes
6762 fi
6763 done
6764 IFS="$lt_save_ifs"
6765 ;;
6766 esac
6767 else
6768 enable_fast_install=yes
6769 fi
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781 # This can be used to rebuild libtool when needed
6782 LIBTOOL_DEPS="$ltmain"
6783
6784 # Always use our own libtool.
6785 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811 test -z "$LN_S" && LN_S="ln -s"
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826 if test -n "${ZSH_VERSION+set}" ; then
6827 setopt NO_GLOB_SUBST
6828 fi
6829
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6831 $as_echo_n "checking for objdir... " >&6; }
6832 if test "${lt_cv_objdir+set}" = set; then :
6833 $as_echo_n "(cached) " >&6
64856834 else
64866835 rm -f .libs 2>/dev/null
64876836 mkdir .libs 2>/dev/null
64936842 fi
64946843 rmdir .libs 2>/dev/null
64956844 fi
6496 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6497 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6846 $as_echo "$lt_cv_objdir" >&6; }
64986847 objdir=$lt_cv_objdir
6848
6849
6850
6851
6852
6853 cat >>confdefs.h <<_ACEOF
6854 #define LT_OBJDIR "$lt_cv_objdir/"
6855 _ACEOF
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
64996868
65006869
65016870
65156884
65166885 # Sed substitution that helps us do robust quoting. It backslashifies
65176886 # metacharacters that are still active within double-quoted strings.
6518 Xsed='sed -e 1s/^X//'
6519 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6887 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
65206888
65216889 # Same as above, but do not quote variable references.
6522 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6890 double_quote_subst='s/\(["`\\]\)/\\\1/g'
65236891
65246892 # Sed substitution to delay expansion of an escaped shell variable in a
65256893 # double_quote_subst'ed string.
65266894 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
65276895
6896 # Sed substitution to delay expansion of an escaped single quote.
6897 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6898
65286899 # Sed substitution to avoid accidental globbing in evaled expressions
65296900 no_glob_subst='s/\*/\\\*/g'
65306901
6531 # Constants:
6532 rm="rm -f"
6533
65346902 # Global variables:
6535 default_ofile=libtool
6903 ofile=libtool
65366904 can_build_shared=yes
65376905
65386906 # All known linkers require a `.a' archive for static linking (except MSVC,
65396907 # which needs '.lib').
65406908 libext=a
6541 ltmain="$ac_aux_dir/ltmain.sh"
6542 ofile="$default_ofile"
6909
65436910 with_gnu_ld="$lt_cv_prog_gnu_ld"
6544
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}ar; ac_word=$2
6548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6550 if test "${ac_cv_prog_AR+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553 if test -n "$AR"; then
6554 ac_cv_prog_AR="$AR" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_AR="${ac_tool_prefix}ar"
6564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 AR=$ac_cv_prog_AR
6574 if test -n "$AR"; then
6575 { echo "$as_me:$LINENO: result: $AR" >&5
6576 echo "${ECHO_T}$AR" >&6; }
6577 else
6578 { echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6; }
6580 fi
6581
6582
6583 fi
6584 if test -z "$ac_cv_prog_AR"; then
6585 ac_ct_AR=$AR
6586 # Extract the first word of "ar", so it can be a program name with args.
6587 set dummy ar; ac_word=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 if test -n "$ac_ct_AR"; then
6594 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_prog_ac_ct_AR="ar"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6614 if test -n "$ac_ct_AR"; then
6615 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6616 echo "${ECHO_T}$ac_ct_AR" >&6; }
6617 else
6618 { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6620 fi
6621
6622 if test "x$ac_ct_AR" = x; then
6623 AR="false"
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6628 whose name does not start with the host triplet. If you think this
6629 configuration is useful to you, please write to autoconf@gnu.org." >&5
6630 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6631 whose name does not start with the host triplet. If you think this
6632 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6633 ac_tool_warned=yes ;;
6634 esac
6635 AR=$ac_ct_AR
6636 fi
6637 else
6638 AR="$ac_cv_prog_AR"
6639 fi
6640
6641 if test -n "$ac_tool_prefix"; then
6642 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6643 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6646 if test "${ac_cv_prog_RANLIB+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649 if test -n "$RANLIB"; then
6650 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667 fi
6668 fi
6669 RANLIB=$ac_cv_prog_RANLIB
6670 if test -n "$RANLIB"; then
6671 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6672 echo "${ECHO_T}$RANLIB" >&6; }
6673 else
6674 { echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6; }
6676 fi
6677
6678
6679 fi
6680 if test -z "$ac_cv_prog_RANLIB"; then
6681 ac_ct_RANLIB=$RANLIB
6682 # Extract the first word of "ranlib", so it can be a program name with args.
6683 set dummy ranlib; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689 if test -n "$ac_ct_RANLIB"; then
6690 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_prog_ac_ct_RANLIB="ranlib"
6700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703 done
6704 done
6705 IFS=$as_save_IFS
6706
6707 fi
6708 fi
6709 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6710 if test -n "$ac_ct_RANLIB"; then
6711 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6712 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6713 else
6714 { echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6; }
6716 fi
6717
6718 if test "x$ac_ct_RANLIB" = x; then
6719 RANLIB=":"
6720 else
6721 case $cross_compiling:$ac_tool_warned in
6722 yes:)
6723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6724 whose name does not start with the host triplet. If you think this
6725 configuration is useful to you, please write to autoconf@gnu.org." >&5
6726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6727 whose name does not start with the host triplet. If you think this
6728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6729 ac_tool_warned=yes ;;
6730 esac
6731 RANLIB=$ac_ct_RANLIB
6732 fi
6733 else
6734 RANLIB="$ac_cv_prog_RANLIB"
6735 fi
6736
6737 if test -n "$ac_tool_prefix"; then
6738 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6739 set dummy ${ac_tool_prefix}strip; ac_word=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_prog_STRIP+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745 if test -n "$STRIP"; then
6746 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759 done
6760 done
6761 IFS=$as_save_IFS
6762
6763 fi
6764 fi
6765 STRIP=$ac_cv_prog_STRIP
6766 if test -n "$STRIP"; then
6767 { echo "$as_me:$LINENO: result: $STRIP" >&5
6768 echo "${ECHO_T}$STRIP" >&6; }
6769 else
6770 { echo "$as_me:$LINENO: result: no" >&5
6771 echo "${ECHO_T}no" >&6; }
6772 fi
6773
6774
6775 fi
6776 if test -z "$ac_cv_prog_STRIP"; then
6777 ac_ct_STRIP=$STRIP
6778 # Extract the first word of "strip", so it can be a program name with args.
6779 set dummy strip; ac_word=$2
6780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785 if test -n "$ac_ct_STRIP"; then
6786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6787 else
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6790 do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_prog_ac_ct_STRIP="strip"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6798 fi
6799 done
6800 done
6801 IFS=$as_save_IFS
6802
6803 fi
6804 fi
6805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6806 if test -n "$ac_ct_STRIP"; then
6807 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6808 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6809 else
6810 { echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6; }
6812 fi
6813
6814 if test "x$ac_ct_STRIP" = x; then
6815 STRIP=":"
6816 else
6817 case $cross_compiling:$ac_tool_warned in
6818 yes:)
6819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6820 whose name does not start with the host triplet. If you think this
6821 configuration is useful to you, please write to autoconf@gnu.org." >&5
6822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6823 whose name does not start with the host triplet. If you think this
6824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6825 ac_tool_warned=yes ;;
6826 esac
6827 STRIP=$ac_ct_STRIP
6828 fi
6829 else
6830 STRIP="$ac_cv_prog_STRIP"
6831 fi
6832
68336911
68346912 old_CC="$CC"
68356913 old_CFLAGS="$CFLAGS"
68366914
68376915 # Set sane defaults for various variables
6838 test -z "$AR" && AR=ar
6839 test -z "$AR_FLAGS" && AR_FLAGS=cru
6840 test -z "$AS" && AS=as
68416916 test -z "$CC" && CC=cc
68426917 test -z "$LTCC" && LTCC=$CC
68436918 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6844 test -z "$DLLTOOL" && DLLTOOL=dlltool
68456919 test -z "$LD" && LD=ld
6846 test -z "$LN_S" && LN_S="ln -s"
6847 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6848 test -z "$NM" && NM=nm
6849 test -z "$SED" && SED=sed
6850 test -z "$OBJDUMP" && OBJDUMP=objdump
6851 test -z "$RANLIB" && RANLIB=:
6852 test -z "$STRIP" && STRIP=:
68536920 test -z "$ac_objext" && ac_objext=o
6854
6855 # Determine commands to create old-style static archives.
6856 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6857 old_postinstall_cmds='chmod 644 $oldlib'
6858 old_postuninstall_cmds=
6859
6860 if test -n "$RANLIB"; then
6861 case $host_os in
6862 openbsd*)
6863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6864 ;;
6865 *)
6866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6867 ;;
6868 esac
6869 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6870 fi
68716921
68726922 for cc_temp in $compiler""; do
68736923 case $cc_temp in
68776927 *) break;;
68786928 esac
68796929 done
6880 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6930 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
68816931
68826932
68836933 # Only perform the check for file, if the check method requires it
6934 test -z "$MAGIC_CMD" && MAGIC_CMD=file
68846935 case $deplibs_check_method in
68856936 file_magic*)
68866937 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6887 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6888 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6889 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6939 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6940 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6941 $as_echo_n "(cached) " >&6
68916942 else
68926943 case $MAGIC_CMD in
68936944 [\\/*] | ?:[\\/]*)
69116962 $EGREP "$file_magic_regex" > /dev/null; then
69126963 :
69136964 else
6914 cat <<EOF 1>&2
6965 cat <<_LT_EOF 1>&2
69156966
69166967 *** Warning: the command libtool uses to detect shared libraries,
69176968 *** $file_magic_cmd, produces output that libtool cannot recognize.
69226973 *** may want to report the problem to your system manager and/or to
69236974 *** bug-libtool@gnu.org
69246975
6925 EOF
6976 _LT_EOF
69266977 fi ;;
69276978 esac
69286979 fi
69376988
69386989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
69396990 if test -n "$MAGIC_CMD"; then
6940 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6941 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6942 else
6943 { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6945 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6992 $as_echo "$MAGIC_CMD" >&6; }
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6996 fi
6997
6998
6999
7000
69467001
69477002 if test -z "$lt_cv_path_MAGIC_CMD"; then
69487003 if test -n "$ac_tool_prefix"; then
6949 { echo "$as_me:$LINENO: checking for file" >&5
6950 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6951 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7005 $as_echo_n "checking for file... " >&6; }
7006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
69537008 else
69547009 case $MAGIC_CMD in
69557010 [\\/*] | ?:[\\/]*)
69737028 $EGREP "$file_magic_regex" > /dev/null; then
69747029 :
69757030 else
6976 cat <<EOF 1>&2
7031 cat <<_LT_EOF 1>&2
69777032
69787033 *** Warning: the command libtool uses to detect shared libraries,
69797034 *** $file_magic_cmd, produces output that libtool cannot recognize.
69847039 *** may want to report the problem to your system manager and/or to
69857040 *** bug-libtool@gnu.org
69867041
6987 EOF
7042 _LT_EOF
69887043 fi ;;
69897044 esac
69907045 fi
69997054
70007055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
70017056 if test -n "$MAGIC_CMD"; then
7002 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7003 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7004 else
7005 { echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6; }
7007 fi
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7058 $as_echo "$MAGIC_CMD" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
70087064
70097065 else
70107066 MAGIC_CMD=:
70157071 ;;
70167072 esac
70177073
7018
7019 case $host_os in
7020 rhapsody* | darwin*)
7021 if test -n "$ac_tool_prefix"; then
7022 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7023 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 if test -n "$DSYMUTIL"; then
7030 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7050 if test -n "$DSYMUTIL"; then
7051 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7052 echo "${ECHO_T}$DSYMUTIL" >&6; }
7053 else
7054 { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7056 fi
7057
7058
7059 fi
7060 if test -z "$ac_cv_prog_DSYMUTIL"; then
7061 ac_ct_DSYMUTIL=$DSYMUTIL
7062 # Extract the first word of "dsymutil", so it can be a program name with args.
7063 set dummy dsymutil; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 if test -n "$ac_ct_DSYMUTIL"; then
7070 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083 done
7084 done
7085 IFS=$as_save_IFS
7086
7087 fi
7088 fi
7089 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7090 if test -n "$ac_ct_DSYMUTIL"; then
7091 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7092 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7093 else
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7096 fi
7097
7098 if test "x$ac_ct_DSYMUTIL" = x; then
7099 DSYMUTIL=":"
7100 else
7101 case $cross_compiling:$ac_tool_warned in
7102 yes:)
7103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7104 whose name does not start with the host triplet. If you think this
7105 configuration is useful to you, please write to autoconf@gnu.org." >&5
7106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7107 whose name does not start with the host triplet. If you think this
7108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7109 ac_tool_warned=yes ;;
7110 esac
7111 DSYMUTIL=$ac_ct_DSYMUTIL
7112 fi
7113 else
7114 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7115 fi
7116
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 if test -n "$NMEDIT"; then
7126 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 NMEDIT=$ac_cv_prog_NMEDIT
7146 if test -n "$NMEDIT"; then
7147 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7148 echo "${ECHO_T}$NMEDIT" >&6; }
7149 else
7150 { echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6; }
7152 fi
7153
7154
7155 fi
7156 if test -z "$ac_cv_prog_NMEDIT"; then
7157 ac_ct_NMEDIT=$NMEDIT
7158 # Extract the first word of "nmedit", so it can be a program name with args.
7159 set dummy nmedit; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 if test -n "$ac_ct_NMEDIT"; then
7166 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7178 fi
7179 done
7180 done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7186 if test -n "$ac_ct_NMEDIT"; then
7187 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7188 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7189 else
7190 { echo "$as_me:$LINENO: result: no" >&5
7191 echo "${ECHO_T}no" >&6; }
7192 fi
7193
7194 if test "x$ac_ct_NMEDIT" = x; then
7195 NMEDIT=":"
7196 else
7197 case $cross_compiling:$ac_tool_warned in
7198 yes:)
7199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7200 whose name does not start with the host triplet. If you think this
7201 configuration is useful to you, please write to autoconf@gnu.org." >&5
7202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7203 whose name does not start with the host triplet. If you think this
7204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7205 ac_tool_warned=yes ;;
7206 esac
7207 NMEDIT=$ac_ct_NMEDIT
7208 fi
7209 else
7210 NMEDIT="$ac_cv_prog_NMEDIT"
7211 fi
7212
7213
7214 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7215 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7216 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219 lt_cv_apple_cc_single_mod=no
7220 if test -z "${LT_MULTI_MODULE}"; then
7221 # By default we will add the -single_module flag. You can override
7222 # by either setting the environment variable LT_MULTI_MODULE
7223 # non-empty at configure time, or by adding -multi_module to the
7224 # link flags.
7225 echo "int foo(void){return 1;}" > conftest.c
7226 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7227 -dynamiclib ${wl}-single_module conftest.c
7228 if test -f libconftest.dylib; then
7229 lt_cv_apple_cc_single_mod=yes
7230 rm -rf libconftest.dylib*
7231 fi
7232 rm conftest.c
7233 fi
7234 fi
7235 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7236 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7237 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7238 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7239 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 lt_cv_ld_exported_symbols_list=no
7243 save_LDFLAGS=$LDFLAGS
7244 echo "_main" > conftest.sym
7245 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252
7253 int
7254 main ()
7255 {
7256
7257 ;
7258 return 0;
7259 }
7260 _ACEOF
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (ac_try="$ac_link"
7263 case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_link") 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest$ac_exeext &&
7278 $as_test_x conftest$ac_exeext; then
7279 lt_cv_ld_exported_symbols_list=yes
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 lt_cv_ld_exported_symbols_list=no
7285 fi
7286
7287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7288 conftest$ac_exeext conftest.$ac_ext
7289 LDFLAGS="$save_LDFLAGS"
7290
7291 fi
7292 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7293 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7294 case $host_os in
7295 rhapsody* | darwin1.[0123])
7296 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7297 darwin1.*)
7298 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7299 darwin*)
7300 # if running on 10.5 or later, the deployment target defaults
7301 # to the OS version, if on x86, and 10.4, the deployment
7302 # target defaults to 10.4. Don't you love it?
7303 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7304 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7305 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7306 10.[012]*)
7307 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7308 10.*)
7309 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7310 esac
7311 ;;
7312 esac
7313 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7314 _lt_dar_single_mod='$single_module'
7315 fi
7316 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7317 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7318 else
7319 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7320 fi
7321 if test "$DSYMUTIL" != ":"; then
7322 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7323 else
7324 _lt_dsymutil=
7325 fi
7326 ;;
7327 esac
7328
7329
7330 enable_dlopen=no
7331 enable_win32_dll=no
7332
7333 # Check whether --enable-libtool-lock was given.
7334 if test "${enable_libtool_lock+set}" = set; then
7335 enableval=$enable_libtool_lock;
7336 fi
7337
7338 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7339
7340
7341 # Check whether --with-pic was given.
7342 if test "${with_pic+set}" = set; then
7343 withval=$with_pic; pic_mode="$withval"
7344 else
7345 pic_mode=default
7346 fi
7347
7348 test -z "$pic_mode" && pic_mode=default
7349
73507074 # Use C for the default configuration in the libtool script
7351 tagname=
7075
73527076 lt_save_CC="$CC"
73537077 ac_ext=c
73547078 ac_cpp='$CPP $CPPFLAGS'
73717095 lt_simple_link_test_code='int main(){return(0);}'
73727096
73737097
7098
7099
7100
7101
7102
73747103 # If no C compiler was specified, use CC.
73757104 LTCC=${LTCC-"$CC"}
73767105
73807109 # Allow CC to be a program name with arguments.
73817110 compiler=$CC
73827111
7112 # Save the default compiler, since it gets overwritten when the other
7113 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7114 compiler_DEFAULT=$CC
73837115
73847116 # save warnings/boilerplate of simple test code
73857117 ac_outfile=conftest.$ac_objext
73867118 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
73877119 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
73887120 _lt_compiler_boilerplate=`cat conftest.err`
7389 $rm conftest*
7121 $RM conftest*
73907122
73917123 ac_outfile=conftest.$ac_objext
73927124 echo "$lt_simple_link_test_code" >conftest.$ac_ext
73937125 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
73947126 _lt_linker_boilerplate=`cat conftest.err`
7395 $rm -r conftest*
7396
7397
7127 $RM -r conftest*
7128
7129
7130 ## CAVEAT EMPTOR:
7131 ## There is no encapsulation within the following macros, do not change
7132 ## the running order or otherwise move them around unless you know exactly
7133 ## what you are doing...
7134 if test -n "$compiler"; then
73987135
73997136 lt_prog_compiler_no_builtin_flag=
74007137
74017138 if test "$GCC" = yes; then
74027139 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
74037140
7404
7405 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7406 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7407 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7142 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7143 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7144 $as_echo_n "(cached) " >&6
74097145 else
74107146 lt_cv_prog_compiler_rtti_exceptions=no
7411 ac_outfile=conftest.$ac_objext
7147 ac_outfile=conftest.$ac_objext
74127148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
74137149 lt_compiler_flag="-fno-rtti -fno-exceptions"
74147150 # Insert the option either (1) after the last *FLAGS variable, or
74207156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
74217157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
74227158 -e 's:$: $lt_compiler_flag:'`
7423 (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
7159 (eval echo "\"\$as_me:7160: $lt_compile\"" >&5)
74247160 (eval "$lt_compile" 2>conftest.err)
74257161 ac_status=$?
74267162 cat conftest.err >&5
7427 echo "$as_me:7428: \$? = $ac_status" >&5
7163 echo "$as_me:7164: \$? = $ac_status" >&5
74287164 if (exit $ac_status) && test -s "$ac_outfile"; then
74297165 # The compiler can only warn and ignore the option if not recognized
74307166 # So say no if there are warnings other than the usual output.
7431 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7167 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
74327168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
74337169 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
74347170 lt_cv_prog_compiler_rtti_exceptions=yes
74357171 fi
74367172 fi
7437 $rm conftest*
7438
7439 fi
7440 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7441 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7173 $RM conftest*
7174
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7177 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
74427178
74437179 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
74447180 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
74487184
74497185 fi
74507186
7451 lt_prog_compiler_wl=
7187
7188
7189
7190
7191
7192 lt_prog_compiler_wl=
74527193 lt_prog_compiler_pic=
74537194 lt_prog_compiler_static=
74547195
7455 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7456 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7197 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
74577198
74587199 if test "$GCC" = yes; then
74597200 lt_prog_compiler_wl='-Wl,'
74697210 ;;
74707211
74717212 amigaos*)
7472 # FIXME: we need at least 68020 code to build shared libraries, but
7473 # adding the `-m68020' flag to GCC prevents building anything better,
7474 # like `-m68040'.
7475 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7213 case $host_cpu in
7214 powerpc)
7215 # see comment about AmigaOS4 .so support
7216 lt_prog_compiler_pic='-fPIC'
7217 ;;
7218 m68k)
7219 # FIXME: we need at least 68020 code to build shared libraries, but
7220 # adding the `-m68020' flag to GCC prevents building anything better,
7221 # like `-m68040'.
7222 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7223 ;;
7224 esac
74767225 ;;
74777226
74787227 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
74797228 # PIC is the default for these OSes.
74807229 ;;
74817230
7482 mingw* | cygwin* | pw32* | os2*)
7231 mingw* | cygwin* | pw32* | os2* | cegcc*)
74837232 # This hack is so that the source file can tell whether it is being
74847233 # built for inclusion in a dll (and should export symbols for example).
74857234 # Although the cygwin gcc ignores -fPIC, still need this for old-style
74937242 lt_prog_compiler_pic='-fno-common'
74947243 ;;
74957244
7245 hpux*)
7246 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7247 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7248 # sets the default TLS model and affects inlining.
7249 case $host_cpu in
7250 hppa*64*)
7251 # +Z the default
7252 ;;
7253 *)
7254 lt_prog_compiler_pic='-fPIC'
7255 ;;
7256 esac
7257 ;;
7258
74967259 interix[3-9]*)
74977260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
74987261 # Instead, we relocate shared libraries at runtime.
75057268 enable_shared=no
75067269 ;;
75077270
7271 *nto* | *qnx*)
7272 # QNX uses GNU C++, but need to define -shared option too, otherwise
7273 # it will coredump.
7274 lt_prog_compiler_pic='-fPIC -shared'
7275 ;;
7276
75087277 sysv4*MP*)
75097278 if test -d /usr/nec; then
75107279 lt_prog_compiler_pic=-Kconform_pic
75117280 fi
7512 ;;
7513
7514 hpux*)
7515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7516 # not for PA HP-UX.
7517 case $host_cpu in
7518 hppa*64*|ia64*)
7519 # +Z the default
7520 ;;
7521 *)
7522 lt_prog_compiler_pic='-fPIC'
7523 ;;
7524 esac
75257281 ;;
75267282
75277283 *)
75407296 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
75417297 fi
75427298 ;;
7543 darwin*)
7544 # PIC is the default on this platform
7545 # Common symbols not allowed in MH_DYLIB files
7546 case $cc_basename in
7547 xlc*)
7548 lt_prog_compiler_pic='-qnocommon'
7549 lt_prog_compiler_wl='-Wl,'
7550 ;;
7551 esac
7552 ;;
7553
7554 mingw* | cygwin* | pw32* | os2*)
7299
7300 mingw* | cygwin* | pw32* | os2* | cegcc*)
75557301 # This hack is so that the source file can tell whether it is being
75567302 # built for inclusion in a dll (and should export symbols for example).
75577303 lt_prog_compiler_pic='-DDLL_EXPORT'
75797325 lt_prog_compiler_static='-non_shared'
75807326 ;;
75817327
7582 newsos6)
7583 lt_prog_compiler_pic='-KPIC'
7584 lt_prog_compiler_static='-Bstatic'
7585 ;;
7586
75877328 linux* | k*bsd*-gnu)
75887329 case $cc_basename in
7589 icc* | ecc*)
7330 # old Intel for x86_64 which still supported -KPIC.
7331 ecc*)
75907332 lt_prog_compiler_wl='-Wl,'
75917333 lt_prog_compiler_pic='-KPIC'
75927334 lt_prog_compiler_static='-static'
75937335 ;;
7336 # icc used to be incompatible with GCC.
7337 # ICC 10 doesn't accept -KPIC any more.
7338 icc* | ifort*)
7339 lt_prog_compiler_wl='-Wl,'
7340 lt_prog_compiler_pic='-fPIC'
7341 lt_prog_compiler_static='-static'
7342 ;;
7343 # Lahey Fortran 8.1.
7344 lf95*)
7345 lt_prog_compiler_wl='-Wl,'
7346 lt_prog_compiler_pic='--shared'
7347 lt_prog_compiler_static='--static'
7348 ;;
75947349 pgcc* | pgf77* | pgf90* | pgf95*)
75957350 # Portland Group compilers (*not* the Pentium gcc compiler,
75967351 # which looks to be a dead project)
76037358 # All Alpha code is PIC.
76047359 lt_prog_compiler_static='-non_shared'
76057360 ;;
7361 xl*)
7362 # IBM XL C 8.0/Fortran 10.1 on PPC
7363 lt_prog_compiler_wl='-Wl,'
7364 lt_prog_compiler_pic='-qpic'
7365 lt_prog_compiler_static='-qstaticlink'
7366 ;;
76067367 *)
7607 case `$CC -V 2>&1 | sed 5q` in
7368 case `$CC -V 2>&1 | sed 5q` in
76087369 *Sun\ C*)
76097370 # Sun C 5.9
76107371 lt_prog_compiler_pic='-KPIC'
76227383 esac
76237384 ;;
76247385
7386 newsos6)
7387 lt_prog_compiler_pic='-KPIC'
7388 lt_prog_compiler_static='-Bstatic'
7389 ;;
7390
7391 *nto* | *qnx*)
7392 # QNX uses GNU C++, but need to define -shared option too, otherwise
7393 # it will coredump.
7394 lt_prog_compiler_pic='-fPIC -shared'
7395 ;;
7396
76257397 osf3* | osf4* | osf5*)
76267398 lt_prog_compiler_wl='-Wl,'
76277399 # All OSF/1 code is PIC.
76847456 esac
76857457 fi
76867458
7687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7688 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7459 case $host_os in
7460 # For platforms which do not support PIC, -DPIC is meaningless:
7461 *djgpp*)
7462 lt_prog_compiler_pic=
7463 ;;
7464 *)
7465 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7466 ;;
7467 esac
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7469 $as_echo "$lt_prog_compiler_pic" >&6; }
7470
7471
7472
7473
7474
76897475
76907476 #
76917477 # Check to make sure the PIC flag actually works.
76927478 #
76937479 if test -n "$lt_prog_compiler_pic"; then
7694
7695 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7696 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7697 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7481 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7482 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
76997484 else
77007485 lt_cv_prog_compiler_pic_works=no
7701 ac_outfile=conftest.$ac_objext
7486 ac_outfile=conftest.$ac_objext
77027487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
77037488 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
77047489 # Insert the option either (1) after the last *FLAGS variable, or
77107495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
77117496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
77127497 -e 's:$: $lt_compiler_flag:'`
7713 (eval echo "\"\$as_me:7714: $lt_compile\"" >&5)
7498 (eval echo "\"\$as_me:7499: $lt_compile\"" >&5)
77147499 (eval "$lt_compile" 2>conftest.err)
77157500 ac_status=$?
77167501 cat conftest.err >&5
7717 echo "$as_me:7718: \$? = $ac_status" >&5
7502 echo "$as_me:7503: \$? = $ac_status" >&5
77187503 if (exit $ac_status) && test -s "$ac_outfile"; then
77197504 # The compiler can only warn and ignore the option if not recognized
77207505 # So say no if there are warnings other than the usual output.
7721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7506 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
77227507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
77237508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
77247509 lt_cv_prog_compiler_pic_works=yes
77257510 fi
77267511 fi
7727 $rm conftest*
7728
7729 fi
7730 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7731 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7512 $RM conftest*
7513
7514 fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7516 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
77327517
77337518 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
77347519 case $lt_prog_compiler_pic in
77417526 fi
77427527
77437528 fi
7744 case $host_os in
7745 # For platforms which do not support PIC, -DPIC is meaningless:
7746 *djgpp*)
7747 lt_prog_compiler_pic=
7748 ;;
7749 *)
7750 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7751 ;;
7752 esac
7529
7530
7531
7532
7533
77537534
77547535 #
77557536 # Check to make sure the static flag actually works.
77567537 #
77577538 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7758 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7759 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7760 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7540 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7541 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
77627543 else
77637544 lt_cv_prog_compiler_static_works=no
77647545 save_LDFLAGS="$LDFLAGS"
77707551 if test -s conftest.err; then
77717552 # Append any errors to the config.log.
77727553 cat conftest.err 1>&5
7773 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7554 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
77747555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
77757556 if diff conftest.exp conftest.er2 >/dev/null; then
77767557 lt_cv_prog_compiler_static_works=yes
77797560 lt_cv_prog_compiler_static_works=yes
77807561 fi
77817562 fi
7782 $rm -r conftest*
7563 $RM -r conftest*
77837564 LDFLAGS="$save_LDFLAGS"
77847565
77857566 fi
7786 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7787 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7568 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
77887569
77897570 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
77907571 :
77937574 fi
77947575
77957576
7796 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7797 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7798 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7577
7578
7579
7580
7581
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7583 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7584 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
78007586 else
78017587 lt_cv_prog_compiler_c_o=no
7802 $rm -r conftest 2>/dev/null
7588 $RM -r conftest 2>/dev/null
78037589 mkdir conftest
78047590 cd conftest
78057591 mkdir out
78147600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
78157601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
78167602 -e 's:$: $lt_compiler_flag:'`
7817 (eval echo "\"\$as_me:7818: $lt_compile\"" >&5)
7603 (eval echo "\"\$as_me:7604: $lt_compile\"" >&5)
78187604 (eval "$lt_compile" 2>out/conftest.err)
78197605 ac_status=$?
78207606 cat out/conftest.err >&5
7821 echo "$as_me:7822: \$? = $ac_status" >&5
7607 echo "$as_me:7608: \$? = $ac_status" >&5
78227608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
78237609 then
78247610 # The compiler can only warn and ignore the option if not recognized
78257611 # So say no if there are warnings
7826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7612 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
78277613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
78287614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
78297615 lt_cv_prog_compiler_c_o=yes
78307616 fi
78317617 fi
78327618 chmod u+w . 2>&5
7833 $rm conftest*
7619 $RM conftest*
78347620 # SGI C++ compiler will create directory out/ii_files/ for
78357621 # template instantiation
7836 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7837 $rm out/* && rmdir out
7622 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7623 $RM out/* && rmdir out
78387624 cd ..
7839 rmdir conftest
7840 $rm conftest*
7841
7842 fi
7843 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7844 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7625 $RM -r conftest
7626 $RM conftest*
7627
7628 fi
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7630 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7631
7632
7633
7634
7635
7636
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7639 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 lt_cv_prog_compiler_c_o=no
7643 $RM -r conftest 2>/dev/null
7644 mkdir conftest
7645 cd conftest
7646 mkdir out
7647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7648
7649 lt_compiler_flag="-o out/conftest2.$ac_objext"
7650 # Insert the option either (1) after the last *FLAGS variable, or
7651 # (2) before a word containing "conftest.", or (3) at the end.
7652 # Note that $ac_compile itself does not contain backslashes and begins
7653 # with a dollar sign (not a hyphen), so the echo should work correctly.
7654 lt_compile=`echo "$ac_compile" | $SED \
7655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7657 -e 's:$: $lt_compiler_flag:'`
7658 (eval echo "\"\$as_me:7659: $lt_compile\"" >&5)
7659 (eval "$lt_compile" 2>out/conftest.err)
7660 ac_status=$?
7661 cat out/conftest.err >&5
7662 echo "$as_me:7663: \$? = $ac_status" >&5
7663 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7664 then
7665 # The compiler can only warn and ignore the option if not recognized
7666 # So say no if there are warnings
7667 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7668 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7669 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7670 lt_cv_prog_compiler_c_o=yes
7671 fi
7672 fi
7673 chmod u+w . 2>&5
7674 $RM conftest*
7675 # SGI C++ compiler will create directory out/ii_files/ for
7676 # template instantiation
7677 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7678 $RM out/* && rmdir out
7679 cd ..
7680 $RM -r conftest
7681 $RM conftest*
7682
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7685 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7686
7687
78457688
78467689
78477690 hard_links="nottested"
78487691 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
78497692 # do not overwrite the value of need_locks provided by the user
7850 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7851 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7694 $as_echo_n "checking if we can lock with hard links... " >&6; }
78527695 hard_links=yes
7853 $rm conftest*
7696 $RM conftest*
78547697 ln conftest.a conftest.b 2>/dev/null && hard_links=no
78557698 touch conftest.a
78567699 ln conftest.a conftest.b 2>&5 || hard_links=no
78577700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7858 { echo "$as_me:$LINENO: result: $hard_links" >&5
7859 echo "${ECHO_T}$hard_links" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7702 $as_echo "$hard_links" >&6; }
78607703 if test "$hard_links" = no; then
7861 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7862 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7705 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
78637706 need_locks=warn
78647707 fi
78657708 else
78667709 need_locks=no
78677710 fi
78687711
7869 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7870 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7712
7713
7714
7715
7716
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
78717719
78727720 runpath_var=
78737721 allow_undefined_flag=
7874 enable_shared_with_static_runtimes=no
7722 always_export_symbols=no
78757723 archive_cmds=
78767724 archive_expsym_cmds=
7877 old_archive_From_new_cmds=
7878 old_archive_from_expsyms_cmds=
7725 compiler_needs_object=no
7726 enable_shared_with_static_runtimes=no
78797727 export_dynamic_flag_spec=
7880 whole_archive_flag_spec=
7881 thread_safe_flag_spec=
7728 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7729 hardcode_automatic=no
7730 hardcode_direct=no
7731 hardcode_direct_absolute=no
78827732 hardcode_libdir_flag_spec=
78837733 hardcode_libdir_flag_spec_ld=
78847734 hardcode_libdir_separator=
7885 hardcode_direct=no
78867735 hardcode_minus_L=no
78877736 hardcode_shlibpath_var=unsupported
7737 inherit_rpath=no
78887738 link_all_deplibs=unknown
7889 hardcode_automatic=no
78907739 module_cmds=
78917740 module_expsym_cmds=
7892 always_export_symbols=no
7893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7741 old_archive_from_new_cmds=
7742 old_archive_from_expsyms_cmds=
7743 thread_safe_flag_spec=
7744 whole_archive_flag_spec=
78947745 # include_expsyms should be a list of space-separated symbols to be *always*
78957746 # included in the symbol list
78967747 include_expsyms=
79067757 # preloaded symbol tables.
79077758 # Exclude shared library initialization/finalization symbols.
79087759 extract_expsyms_cmds=
7909 # Just being paranoid about ensuring that cc_basename is set.
7910 for cc_temp in $compiler""; do
7911 case $cc_temp in
7912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7914 \-*) ;;
7915 *) break;;
7916 esac
7917 done
7918 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
79197760
79207761 case $host_os in
7921 cygwin* | mingw* | pw32*)
7762 cygwin* | mingw* | pw32* | cegcc*)
79227763 # FIXME: the MSVC++ port hasn't been tested in a loooong time
79237764 # When not using gcc, we currently assume that we are using
79247765 # Microsoft Visual C++.
79337774 openbsd*)
79347775 with_gnu_ld=no
79357776 ;;
7777 linux* | k*bsd*-gnu)
7778 link_all_deplibs=no
7779 ;;
79367780 esac
79377781
79387782 ld_shlibs=yes
79447788 # are reset later if shared libraries are not supported. Putting them
79457789 # here allows them to be overridden if necessary.
79467790 runpath_var=LD_RUN_PATH
7947 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
79487792 export_dynamic_flag_spec='${wl}--export-dynamic'
79497793 # ancient GNU ld didn't support --whole-archive et. al.
7950 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7951 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7952 else
7953 whole_archive_flag_spec=
7794 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7795 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7796 else
7797 whole_archive_flag_spec=
79547798 fi
79557799 supports_anon_versioning=no
7956 case `$LD -v 2>/dev/null` in
7800 case `$LD -v 2>&1` in
79577801 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
79587802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
79597803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
79677811 # On AIX/PPC, the GNU linker is very broken
79687812 if test "$host_cpu" != ia64; then
79697813 ld_shlibs=no
7970 cat <<EOF 1>&2
7814 cat <<_LT_EOF 1>&2
79717815
79727816 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
79737817 *** to be unable to reliably create shared libraries on AIX.
79757819 *** really care for shared libraries, you may want to modify your PATH
79767820 *** so that a non-GNU linker is found, and then restart.
79777821
7978 EOF
7822 _LT_EOF
79797823 fi
79807824 ;;
79817825
79827826 amigaos*)
7983 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7984 hardcode_libdir_flag_spec='-L$libdir'
7985 hardcode_minus_L=yes
7986
7987 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7988 # that the semantics of dynamic libraries on AmigaOS, at least up
7989 # to version 4, is to share data among multiple programs linked
7990 # with the same dynamic library. Since this doesn't match the
7991 # behavior of shared libraries on other platforms, we can't use
7992 # them.
7993 ld_shlibs=no
7827 case $host_cpu in
7828 powerpc)
7829 # see comment about AmigaOS4 .so support
7830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7831 archive_expsym_cmds=''
7832 ;;
7833 m68k)
7834 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7835 hardcode_libdir_flag_spec='-L$libdir'
7836 hardcode_minus_L=yes
7837 ;;
7838 esac
79947839 ;;
79957840
79967841 beos*)
7997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
79987843 allow_undefined_flag=unsupported
79997844 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
80007845 # support --undefined. This deserves some investigation. FIXME
80047849 fi
80057850 ;;
80067851
8007 cygwin* | mingw* | pw32*)
8008 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7852 cygwin* | mingw* | pw32* | cegcc*)
7853 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
80097854 # as there is no search path for DLLs.
80107855 hardcode_libdir_flag_spec='-L$libdir'
80117856 allow_undefined_flag=unsupported
80127857 always_export_symbols=no
80137858 enable_shared_with_static_runtimes=yes
8014 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8015
8016 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7860
7861 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
80177862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
80187863 # If the export-symbols file already is a .def file (1st line
80197864 # is EXPORTS), use it as is; otherwise, prepend...
80447889 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
80457890 ;;
80467891
8047 gnu* | linux* | k*bsd*-gnu)
8048 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7892 gnu* | linux* | tpf* | k*bsd*-gnu)
7893 tmp_diet=no
7894 if test "$host_os" = linux-dietlibc; then
7895 case $cc_basename in
7896 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7897 esac
7898 fi
7899 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7900 && test "$tmp_diet" = no
7901 then
80497902 tmp_addflag=
7903 tmp_sharedflag='-shared'
80507904 case $cc_basename,$host_cpu in
8051 pgcc*) # Portland Group C compiler
8052 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'
7905 pgcc*) # Portland Group C compiler
7906 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'
80537907 tmp_addflag=' $pic_flag'
80547908 ;;
80557909 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8056 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'
7910 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'
80577911 tmp_addflag=' $pic_flag -Mnomain' ;;
8058 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
80597913 tmp_addflag=' -i_dynamic' ;;
80607914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
80617915 tmp_addflag=' -i_dynamic -nofor_main' ;;
80627916 ifc* | ifort*) # Intel Fortran compiler
80637917 tmp_addflag=' -nofor_main' ;;
7918 lf95*) # Lahey Fortran 8.1
7919 whole_archive_flag_spec=
7920 tmp_sharedflag='--shared' ;;
7921 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7922 tmp_sharedflag='-qmkshrobj'
7923 tmp_addflag= ;;
80647924 esac
80657925 case `$CC -V 2>&1 | sed 5q` in
80667926 *Sun\ C*) # Sun C 5.9
8067 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'
7927 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'
7928 compiler_needs_object=yes
80687929 tmp_sharedflag='-G' ;;
80697930 *Sun\ F*) # Sun Fortran 8.3
80707931 tmp_sharedflag='-G' ;;
8071 *)
8072 tmp_sharedflag='-shared' ;;
80737932 esac
80747933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
80757934
8076 if test $supports_anon_versioning = yes; then
8077 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8079 $echo "local: *; };" >> $output_objdir/$libname.ver~
8080 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8081 fi
8082 link_all_deplibs=no
7935 if test "x$supports_anon_versioning" = xyes; then
7936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7938 echo "local: *; };" >> $output_objdir/$libname.ver~
7939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7940 fi
7941
7942 case $cc_basename in
7943 xlf*)
7944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7946 hardcode_libdir_flag_spec=
7947 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7948 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7949 if test "x$supports_anon_versioning" = xyes; then
7950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7952 echo "local: *; };" >> $output_objdir/$libname.ver~
7953 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7954 fi
7955 ;;
7956 esac
80837957 else
8084 ld_shlibs=no
7958 ld_shlibs=no
80857959 fi
80867960 ;;
80877961
80887962 netbsd* | netbsdelf*-gnu)
8089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
80907964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
80917965 wlarc=
80927966 else
80967970 ;;
80977971
80987972 solaris*)
8099 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
81007974 ld_shlibs=no
8101 cat <<EOF 1>&2
7975 cat <<_LT_EOF 1>&2
81027976
81037977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
81047978 *** create shared libraries on Solaris systems. Therefore, libtool
81077981 *** your PATH or compiler configuration so that the native linker is
81087982 *** used, and then restart.
81097983
8110 EOF
8111 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7984 _LT_EOF
7985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
81127986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
81137987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
81147988 else
81328006 _LT_EOF
81338007 ;;
81348008 *)
8135 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8136 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8138 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8009 # For security reasons, it is highly recommended that you always
8010 # use absolute paths for naming shared libraries, and exclude the
8011 # DT_RUNPATH tag from executables and libraries. But doing so
8012 # requires that you compile everything twice, which is a pain.
8013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
81398017 else
81408018 ld_shlibs=no
81418019 fi
81518029 ;;
81528030
81538031 *)
8154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
81558033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
81568034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
81578035 else
81938071 else
81948072 # If we're using GNU nm, then we don't want the "-C" option.
81958073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8196 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8197 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'
8074 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8075 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'
81988076 else
8199 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'
8077 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'
82008078 fi
82018079 aix_use_runtimelinking=no
82028080
82058083 # need to do runtime linking.
82068084 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
82078085 for ld_flag in $LDFLAGS; do
8208 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8209 aix_use_runtimelinking=yes
8210 break
8211 fi
8086 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8087 aix_use_runtimelinking=yes
8088 break
8089 fi
82128090 done
82138091 ;;
82148092 esac
82258103
82268104 archive_cmds=''
82278105 hardcode_direct=yes
8106 hardcode_direct_absolute=yes
82288107 hardcode_libdir_separator=':'
82298108 link_all_deplibs=yes
8109 file_list_spec='${wl}-f,'
82308110
82318111 if test "$GCC" = yes; then
82328112 case $host_os in aix4.[012]|aix4.[012].*)
82338113 # We only want to do this on AIX 4.2 and lower, the check
82348114 # below for broken collect2 doesn't work under 4.3+
82358115 collect2name=`${CC} -print-prog-name=collect2`
8236 if test -f "$collect2name" && \
8237 strings "$collect2name" | grep resolve_lib_name >/dev/null
8116 if test -f "$collect2name" &&
8117 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
82388118 then
8239 # We have reworked collect2
8240 :
8119 # We have reworked collect2
8120 :
82418121 else
8242 # We have old collect2
8243 hardcode_direct=unsupported
8244 # It fails to find uninstalled libraries when the uninstalled
8245 # path is not listed in the libpath. Setting hardcode_minus_L
8246 # to unsupported forces relinking
8247 hardcode_minus_L=yes
8248 hardcode_libdir_flag_spec='-L$libdir'
8249 hardcode_libdir_separator=
8122 # We have old collect2
8123 hardcode_direct=unsupported
8124 # It fails to find uninstalled libraries when the uninstalled
8125 # path is not listed in the libpath. Setting hardcode_minus_L
8126 # to unsupported forces relinking
8127 hardcode_minus_L=yes
8128 hardcode_libdir_flag_spec='-L$libdir'
8129 hardcode_libdir_separator=
82508130 fi
82518131 ;;
82528132 esac
82548134 if test "$aix_use_runtimelinking" = yes; then
82558135 shared_flag="$shared_flag "'${wl}-G'
82568136 fi
8137 link_all_deplibs=no
82578138 else
82588139 # not using gcc
82598140 if test "$host_cpu" = ia64; then
8260 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8261 # chokes on -Wl,-G. The following line is correct:
8141 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8142 # chokes on -Wl,-G. The following line is correct:
82628143 shared_flag='-G'
82638144 else
82648145 if test "$aix_use_runtimelinking" = yes; then
82698150 fi
82708151 fi
82718152
8153 export_dynamic_flag_spec='${wl}-bexpall'
82728154 # It seems that -bexpall does not export symbols beginning with
82738155 # underscore (_), so it is better to generate a list of symbols to export.
82748156 always_export_symbols=yes
82768158 # Warning - without using the other runtime loading flags (-brtl),
82778159 # -berok will link without error, but may produce a broken library.
82788160 allow_undefined_flag='-berok'
8279 # Determine the default libpath from the value encoded in an empty executable.
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8161 # Determine the default libpath from the value encoded in an
8162 # empty executable.
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82858164 /* end confdefs.h. */
82868165
82878166 int
82928171 return 0;
82938172 }
82948173 _ACEOF
8295 rm -f conftest.$ac_objext conftest$ac_exeext
8296 if { (ac_try="$ac_link"
8297 case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8300 esac
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_link") 2>conftest.er1
8303 ac_status=$?
8304 grep -v '^ *+' conftest.er1 >conftest.err
8305 rm -f conftest.er1
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } && {
8309 test -z "$ac_c_werror_flag" ||
8310 test ! -s conftest.err
8311 } && test -s conftest$ac_exeext &&
8312 $as_test_x conftest$ac_exeext; then
8174 if ac_fn_c_try_link "$LINENO"; then :
83138175
83148176 lt_aix_libpath_sed='
83158177 /Import File Strings/,/^$/ {
83238185 if test -z "$aix_libpath"; then
83248186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
83258187 fi
8326 else
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330
8331 fi
8332
8333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8334 conftest$ac_exeext conftest.$ac_ext
8188 fi
8189 rm -f core conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
83358191 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
83368192
8337 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8338 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8339 else
8193 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8194 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"
8195 else
83408196 if test "$host_cpu" = ia64; then
83418197 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
83428198 allow_undefined_flag="-z nodefs"
83438199 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
83448200 else
8345 # Determine the default libpath from the value encoded in an empty executable.
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8201 # Determine the default libpath from the value encoded in an
8202 # empty executable.
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83518204 /* end confdefs.h. */
83528205
83538206 int
83588211 return 0;
83598212 }
83608213 _ACEOF
8361 rm -f conftest.$ac_objext conftest$ac_exeext
8362 if { (ac_try="$ac_link"
8363 case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_link") 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } && {
8375 test -z "$ac_c_werror_flag" ||
8376 test ! -s conftest.err
8377 } && test -s conftest$ac_exeext &&
8378 $as_test_x conftest$ac_exeext; then
8214 if ac_fn_c_try_link "$LINENO"; then :
83798215
83808216 lt_aix_libpath_sed='
83818217 /Import File Strings/,/^$/ {
83898225 if test -z "$aix_libpath"; then
83908226 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
83918227 fi
8392 else
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396
8397 fi
8398
8399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8400 conftest$ac_exeext conftest.$ac_ext
8228 fi
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
84018231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
84028232
84038233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
84158245 ;;
84168246
84178247 amigaos*)
8418 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8419 hardcode_libdir_flag_spec='-L$libdir'
8420 hardcode_minus_L=yes
8421 # see comment about different semantics on the GNU ld section
8422 ld_shlibs=no
8248 case $host_cpu in
8249 powerpc)
8250 # see comment about AmigaOS4 .so support
8251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252 archive_expsym_cmds=''
8253 ;;
8254 m68k)
8255 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8256 hardcode_libdir_flag_spec='-L$libdir'
8257 hardcode_minus_L=yes
8258 ;;
8259 esac
84238260 ;;
84248261
84258262 bsdi[45]*)
84268263 export_dynamic_flag_spec=-rdynamic
84278264 ;;
84288265
8429 cygwin* | mingw* | pw32*)
8266 cygwin* | mingw* | pw32* | cegcc*)
84308267 # When not using gcc, we currently assume that we are using
84318268 # Microsoft Visual C++.
84328269 # hardcode_libdir_flag_spec is actually meaningless, as there is
84388275 # Tell ltmain to make .dll files, not .so files.
84398276 shrext_cmds=".dll"
84408277 # FIXME: Setting linknames here is a bad hack.
8441 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8278 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
84428279 # The linker will automatically build a .lib file if we build a DLL.
8443 old_archive_From_new_cmds='true'
8280 old_archive_from_new_cmds='true'
84448281 # FIXME: Should let the user specify the lib program.
84458282 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
84468283 fix_srcfile_path='`cygpath -w "$srcfile"`'
84488285 ;;
84498286
84508287 darwin* | rhapsody*)
8451 case $host_os in
8452 rhapsody* | darwin1.[012])
8453 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8454 ;;
8455 *) # Darwin 1.3 on
8456 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8457 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8458 else
8459 case ${MACOSX_DEPLOYMENT_TARGET} in
8460 10.[012])
8461 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8462 ;;
8463 10.*)
8464 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8465 ;;
8466 esac
8467 fi
8468 ;;
8469 esac
8470 archive_cmds_need_lc=no
8471 hardcode_direct=no
8472 hardcode_automatic=yes
8473 hardcode_shlibpath_var=unsupported
8474 whole_archive_flag_spec=''
8475 link_all_deplibs=yes
8476 if test "$GCC" = yes ; then
8477 output_verbose_link_cmd='echo'
8478 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8479 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8480 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}"
8481 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8482 else
8483 case $cc_basename in
8484 xlc*)
8485 output_verbose_link_cmd='echo'
8486 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8487 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8488 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8489 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8490 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8491 ;;
8492 *)
8493 ld_shlibs=no
8494 ;;
8495 esac
8496 fi
8288
8289
8290 archive_cmds_need_lc=no
8291 hardcode_direct=no
8292 hardcode_automatic=yes
8293 hardcode_shlibpath_var=unsupported
8294 whole_archive_flag_spec=''
8295 link_all_deplibs=yes
8296 allow_undefined_flag="$_lt_dar_allow_undefined"
8297 case $cc_basename in
8298 ifort*) _lt_dar_can_shared=yes ;;
8299 *) _lt_dar_can_shared=$GCC ;;
8300 esac
8301 if test "$_lt_dar_can_shared" = "yes"; then
8302 output_verbose_link_cmd=echo
8303 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8304 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8305 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}"
8306 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8307
8308 else
8309 ld_shlibs=no
8310 fi
8311
84978312 ;;
84988313
84998314 dgux*)
85358350
85368351 hpux9*)
85378352 if test "$GCC" = yes; then
8538 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8353 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
85398354 else
8540 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8355 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
85418356 fi
85428357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
85438358 hardcode_libdir_separator=:
85578372 fi
85588373 if test "$with_gnu_ld" = no; then
85598374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8375 hardcode_libdir_flag_spec_ld='+b $libdir'
85608376 hardcode_libdir_separator=:
8561
85628377 hardcode_direct=yes
8378 hardcode_direct_absolute=yes
85638379 export_dynamic_flag_spec='${wl}-E'
8564
85658380 # hardcode_minus_L: Not really in the search PATH,
85668381 # but as the default location of the library.
85678382 hardcode_minus_L=yes
85758390 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
85768391 ;;
85778392 ia64*)
8578 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8393 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
85798394 ;;
85808395 *)
85818396 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
86008415
86018416 case $host_cpu in
86028417 hppa*64*|ia64*)
8603 hardcode_libdir_flag_spec_ld='+b $libdir'
86048418 hardcode_direct=no
86058419 hardcode_shlibpath_var=no
86068420 ;;
86078421 *)
86088422 hardcode_direct=yes
8423 hardcode_direct_absolute=yes
86098424 export_dynamic_flag_spec='${wl}-E'
86108425
86118426 # hardcode_minus_L: Not really in the search PATH,
86188433
86198434 irix5* | irix6* | nonstopux*)
86208435 if test "$GCC" = yes; then
8621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8436 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'
8437 # Try to use the -exported_symbol ld option, if it does not
8438 # work, assume that -exports_file does not work either and
8439 # implicitly export all symbols.
8440 save_LDFLAGS="$LDFLAGS"
8441 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 int foo(void) {}
8445 _ACEOF
8446 if ac_fn_c_try_link "$LINENO"; then :
8447 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'
8448
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 LDFLAGS="$save_LDFLAGS"
86228453 else
8623 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8624 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8454 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'
8455 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'
86258456 fi
8457 archive_cmds_need_lc='no'
86268458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
86278459 hardcode_libdir_separator=:
8460 inherit_rpath=yes
86288461 link_all_deplibs=yes
86298462 ;;
86308463
86318464 netbsd* | netbsdelf*-gnu)
8632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
86338466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
86348467 else
86358468 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
86478480 hardcode_shlibpath_var=no
86488481 ;;
86498482
8483 *nto* | *qnx*)
8484 ;;
8485
86508486 openbsd*)
86518487 if test -f /usr/libexec/ld.so; then
86528488 hardcode_direct=yes
86538489 hardcode_shlibpath_var=no
8654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8490 hardcode_direct_absolute=yes
8491 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
86558492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
86568493 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
86578494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
86678504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
86688505 ;;
86698506 esac
8670 fi
8507 fi
86718508 else
86728509 ld_shlibs=no
86738510 fi
86778514 hardcode_libdir_flag_spec='-L$libdir'
86788515 hardcode_minus_L=yes
86798516 allow_undefined_flag=unsupported
8680 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'
8681 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8517 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'
8518 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
86828519 ;;
86838520
86848521 osf3*)
86858522 if test "$GCC" = yes; then
86868523 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8687 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8524 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'
86888525 else
86898526 allow_undefined_flag=' -expect_unresolved \*'
8690 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8527 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'
86918528 fi
8529 archive_cmds_need_lc='no'
86928530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
86938531 hardcode_libdir_separator=:
86948532 ;;
86968534 osf4* | osf5*) # as osf3* with the addition of -msym flag
86978535 if test "$GCC" = yes; then
86988536 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8699 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8537 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'
87008538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
87018539 else
87028540 allow_undefined_flag=' -expect_unresolved \*'
8703 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8704 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8705 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8541 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'
8542 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~
8543 $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'
87068544
87078545 # Both c and cxx compiler support -rpath directly
87088546 hardcode_libdir_flag_spec='-rpath $libdir'
87098547 fi
8548 archive_cmds_need_lc='no'
87108549 hardcode_libdir_separator=:
87118550 ;;
87128551
87138552 solaris*)
8714 no_undefined_flag=' -z text'
8553 no_undefined_flag=' -z defs'
87158554 if test "$GCC" = yes; then
87168555 wlarc='${wl}'
8717 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8719 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8556 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8558 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
87208559 else
8721 wlarc=''
8722 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8723 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8724 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8560 case `$CC -V 2>&1` in
8561 *"Compilers 5.0"*)
8562 wlarc=''
8563 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8564 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8565 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8566 ;;
8567 *)
8568 wlarc='${wl}'
8569 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8570 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8571 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8572 ;;
8573 esac
87258574 fi
87268575 hardcode_libdir_flag_spec='-R$libdir'
87278576 hardcode_shlibpath_var=no
87318580 # The compiler driver will combine and reorder linker options,
87328581 # but understands `-z linker_flag'. GCC discards it without `$wl',
87338582 # but is careful enough not to reorder.
8734 # Supported since Solaris 2.6 (maybe 2.5.1?)
8583 # Supported since Solaris 2.6 (maybe 2.5.1?)
87358584 if test "$GCC" = yes; then
87368585 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
87378586 else
88208669 allow_undefined_flag='${wl}-z,nodefs'
88218670 archive_cmds_need_lc=no
88228671 hardcode_shlibpath_var=no
8823 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8672 hardcode_libdir_flag_spec='${wl}-R,$libdir'
88248673 hardcode_libdir_separator=':'
88258674 link_all_deplibs=yes
88268675 export_dynamic_flag_spec='${wl}-Bexport'
88278676 runpath_var='LD_RUN_PATH'
88288677
88298678 if test "$GCC" = yes; then
8830 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8831 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8679 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8680 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
88328681 else
8833 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8834 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8682 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8683 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
88358684 fi
88368685 ;;
88378686
88458694 ld_shlibs=no
88468695 ;;
88478696 esac
8697
8698 if test x$host_vendor = xsni; then
8699 case $host in
8700 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8701 export_dynamic_flag_spec='${wl}-Blargedynsym'
8702 ;;
8703 esac
8704 fi
88488705 fi
88498706
8850 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8851 echo "${ECHO_T}$ld_shlibs" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8708 $as_echo "$ld_shlibs" >&6; }
88528709 test "$ld_shlibs" = no && can_build_shared=no
8710
8711 with_gnu_ld=$with_gnu_ld
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
88538726
88548727 #
88558728 # Do we need to explicitly link libc?
88688741 # Test whether the compiler implicitly links with -lc since on some
88698742 # systems, -lgcc has to come before -lc. If gcc already passes -lc
88708743 # to ld, don't add -lc before -lgcc.
8871 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8872 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8873 $rm conftest*
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8745 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8746 $RM conftest*
88748747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
88758748
8876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
88778750 (eval $ac_compile) 2>&5
88788751 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } 2>conftest.err; then
8752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8753 test $ac_status = 0; } 2>conftest.err; then
88818754 soname=conftest
88828755 lib=conftest
88838756 libobjs=conftest.$ac_objext
88918764 libname=conftest
88928765 lt_save_allow_undefined_flag=$allow_undefined_flag
88938766 allow_undefined_flag=
8894 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8895 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8768 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
88968769 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }
8770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8771 test $ac_status = 0; }
88998772 then
89008773 archive_cmds_need_lc=no
89018774 else
89058778 else
89068779 cat conftest.err 1>&5
89078780 fi
8908 $rm conftest*
8909 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8910 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8781 $RM conftest*
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8783 $as_echo "$archive_cmds_need_lc" >&6; }
89118784 ;;
89128785 esac
89138786 fi
89148787 ;;
89158788 esac
89168789
8917 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8918 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8919 library_names_spec=
8920 libname_spec='lib$name'
8921 soname_spec=
8922 shrext_cmds=".so"
8923 postinstall_cmds=
8924 postuninstall_cmds=
8925 finish_cmds=
8926 finish_eval=
8927 shlibpath_var=
8928 shlibpath_overrides_runpath=unknown
8929 version_type=none
8930 dynamic_linker="$host_os ld.so"
8931 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8947 $as_echo_n "checking dynamic linker characteristics... " >&6; }
89328948
89338949 if test "$GCC" = yes; then
89348950 case $host_os in
89368952 *) lt_awk_arg="/^libraries:/" ;;
89378953 esac
89388954 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8939 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8955 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
89408956 # if the path contains ";" then we assume it to be the separator
89418957 # otherwise default to the standard path separator (i.e. ":") - it is
89428958 # assumed that no part of a normal pathname contains ";" but that should
89438959 # okay in the real world where ";" in dirpaths is itself problematic.
8944 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
89458961 else
8946 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8962 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
89478963 fi
89488964 # Ok, now we have the path, separated by spaces, we can step through it
89498965 # and add multilib dir if necessary.
89578973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
89588974 fi
89598975 done
8960 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8976 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
89618977 BEGIN {RS=" "; FS="/|\n";} {
89628978 lt_foo="";
89638979 lt_count=0;
89778993 if (lt_foo != "") { lt_freq[lt_foo]++; }
89788994 if (lt_freq[lt_foo] == 1) { print lt_foo; }
89798995 }'`
8980 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8996 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
89818997 else
89828998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
89838999 fi
9000 library_names_spec=
9001 libname_spec='lib$name'
9002 soname_spec=
9003 shrext_cmds=".so"
9004 postinstall_cmds=
9005 postuninstall_cmds=
9006 finish_cmds=
9007 finish_eval=
9008 shlibpath_var=
9009 shlibpath_overrides_runpath=unknown
9010 version_type=none
9011 dynamic_linker="$host_os ld.so"
9012 sys_lib_dlsearch_path_spec="/lib /usr/lib"
89849013 need_lib_prefix=unknown
89859014 hardcode_into_libs=no
89869015
90179046 aix4 | aix4.[01] | aix4.[01].*)
90189047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
90199048 echo ' yes '
9020 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9049 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
90219050 :
90229051 else
90239052 can_build_shared=no
90439072 ;;
90449073
90459074 amigaos*)
9046 library_names_spec='$libname.ixlibrary $libname.a'
9047 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9048 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'
9075 case $host_cpu in
9076 powerpc)
9077 # Since July 2007 AmigaOS4 officially supports .so libraries.
9078 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080 ;;
9081 m68k)
9082 library_names_spec='$libname.ixlibrary $libname.a'
9083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9084 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'
9085 ;;
9086 esac
90499087 ;;
90509088
90519089 beos*)
90689106 # libtool to hard-code these into programs
90699107 ;;
90709108
9071 cygwin* | mingw* | pw32*)
9109 cygwin* | mingw* | pw32* | cegcc*)
90729110 version_type=windows
90739111 shrext_cmds=".dll"
90749112 need_version=no
90759113 need_lib_prefix=no
90769114
90779115 case $GCC,$host_os in
9078 yes,cygwin* | yes,mingw* | yes,pw32*)
9116 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
90799117 library_names_spec='$libname.dll.a'
90809118 # DLL is installed to $(libdir)/../bin by postinstall_cmds
90819119 postinstall_cmds='base_file=`basename \${file}`~
9082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9120 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
90839121 dldir=$destdir/`dirname \$dlpath`~
90849122 test -d \$dldir || mkdir -p \$dldir~
90859123 $install_prog $dir/$dlname \$dldir/$dlname~
9086 chmod a+x \$dldir/$dlname'
9124 chmod a+x \$dldir/$dlname~
9125 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9126 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9127 fi'
90879128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
90889129 dlpath=$dir/\$dldll~
9089 $rm \$dlpath'
9130 $RM \$dlpath'
90909131 shlibpath_overrides_runpath=yes
90919132
90929133 case $host_os in
90959136 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
90969137 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
90979138 ;;
9098 mingw*)
9139 mingw* | cegcc*)
90999140 # MinGW DLLs use traditional 'lib' prefix
91009141 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9101 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9102 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9142 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9143 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
91039144 # It is most probably a Windows format PATH printed by
91049145 # mingw gcc, but we are running on Cygwin. Gcc prints its search
91059146 # path with ; separators, and with drive letters. We can handle the
91069147 # drive letters (cygwin fileutils understands them), so leave them,
91079148 # especially as we might pass files found there to a mingw objdump,
91089149 # which wouldn't understand a cygwinified path. Ahh.
9109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
91109151 else
9111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9152 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
91129153 fi
91139154 ;;
91149155 pw32*)
91329173 version_type=darwin
91339174 need_lib_prefix=no
91349175 need_version=no
9135 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9176 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
91369177 soname_spec='${libname}${release}${major}$shared_ext'
91379178 shlibpath_overrides_runpath=yes
91389179 shlibpath_var=DYLD_LIBRARY_PATH
92319272 fi
92329273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
92339274 ;;
9234 hppa*64*)
9235 shrext_cmds='.sl'
9236 hardcode_into_libs=yes
9237 dynamic_linker="$host_os dld.sl"
9238 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241 soname_spec='${libname}${release}${shared_ext}$major'
9242 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9244 ;;
9245 *)
9275 hppa*64*)
9276 shrext_cmds='.sl'
9277 hardcode_into_libs=yes
9278 dynamic_linker="$host_os dld.sl"
9279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9285 ;;
9286 *)
92469287 shrext_cmds='.sl'
92479288 dynamic_linker="$host_os dld.sl"
92489289 shlibpath_var=SHLIB_PATH
93199360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
93209361 shlibpath_var=LD_LIBRARY_PATH
93219362 shlibpath_overrides_runpath=no
9363 # Some binutils ld are patched to set DT_RUNPATH
9364 save_LDFLAGS=$LDFLAGS
9365 save_libdir=$libdir
9366 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9367 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9370
9371 int
9372 main ()
9373 {
9374
9375 ;
9376 return 0;
9377 }
9378 _ACEOF
9379 if ac_fn_c_try_link "$LINENO"; then :
9380 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9381 shlibpath_overrides_runpath=yes
9382 fi
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
9386 LDFLAGS=$save_LDFLAGS
9387 libdir=$save_libdir
9388
93229389 # This implies no fast_install, which is unacceptable.
93239390 # Some rework will be needed to allow for fast_install
93249391 # before this can be enabled.
93269393
93279394 # Append ld.so.conf contents to the search path
93289395 if test -f /etc/ld.so.conf; then
9329 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' ' '`
9396 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' ' '`
93309397 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
93319398 fi
93329399
93559422 version_type=sunos
93569423 need_lib_prefix=no
93579424 need_version=no
9358 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
93599426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
93609427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
93619428 dynamic_linker='NetBSD (a.out) ld.so'
93769443 shlibpath_overrides_runpath=yes
93779444 ;;
93789445
9379 nto-qnx*)
9380 version_type=linux
9446 *nto* | *qnx*)
9447 version_type=qnx
93819448 need_lib_prefix=no
93829449 need_version=no
93839450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
93849451 soname_spec='${libname}${release}${shared_ext}$major'
93859452 shlibpath_var=LD_LIBRARY_PATH
9386 shlibpath_overrides_runpath=yes
9453 shlibpath_overrides_runpath=no
9454 hardcode_into_libs=yes
9455 dynamic_linker='ldqnx.so'
93879456 ;;
93889457
93899458 openbsd*)
93929461 need_lib_prefix=no
93939462 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
93949463 case $host_os in
9395 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9396 *) need_version=no ;;
9464 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9465 *) need_version=no ;;
93979466 esac
93989467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
93999468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
94009469 shlibpath_var=LD_LIBRARY_PATH
9401 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
94029471 case $host_os in
94039472 openbsd2.[89] | openbsd2.[89].*)
94049473 shlibpath_overrides_runpath=no
94709539 sni)
94719540 shlibpath_overrides_runpath=no
94729541 need_lib_prefix=no
9473 export_dynamic_flag_spec='${wl}-Blargedynsym'
94749542 runpath_var=LD_RUN_PATH
94759543 ;;
94769544 siemens)
95019569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
95029570 soname_spec='${libname}${release}${shared_ext}$major'
95039571 shlibpath_var=LD_LIBRARY_PATH
9572 shlibpath_overrides_runpath=yes
95049573 hardcode_into_libs=yes
95059574 if test "$with_gnu_ld" = yes; then
95069575 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9507 shlibpath_overrides_runpath=no
95089576 else
95099577 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9510 shlibpath_overrides_runpath=yes
95119578 case $host_os in
95129579 sco3.2v5*)
95139580 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
95179584 sys_lib_dlsearch_path_spec='/usr/lib'
95189585 ;;
95199586
9587 tpf*)
9588 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9589 version_type=linux
9590 need_lib_prefix=no
9591 need_version=no
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 shlibpath_overrides_runpath=no
9595 hardcode_into_libs=yes
9596 ;;
9597
95209598 uts4*)
95219599 version_type=linux
95229600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
95289606 dynamic_linker=no
95299607 ;;
95309608 esac
9531 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9532 echo "${ECHO_T}$dynamic_linker" >&6; }
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9610 $as_echo "$dynamic_linker" >&6; }
95339611 test "$dynamic_linker" = no && can_build_shared=no
9534
9535 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9539 fi
9540
9541 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9542 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9546 fi
9547
9548 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
95499612
95509613 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
95519614 if test "$GCC" = yes; then
95529615 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
95539616 fi
95549617
9555 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9556 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9618 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9619 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9620 fi
9621 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9622 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9623 fi
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9712 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
95579713 hardcode_action=
9558 if test -n "$hardcode_libdir_flag_spec" || \
9559 test -n "$runpath_var" || \
9714 if test -n "$hardcode_libdir_flag_spec" ||
9715 test -n "$runpath_var" ||
95609716 test "X$hardcode_automatic" = "Xyes" ; then
95619717
9562 # We can hardcode non-existant directories.
9718 # We can hardcode non-existent directories.
95639719 if test "$hardcode_direct" != no &&
95649720 # If the only mechanism to avoid hardcoding is shlibpath_var, we
95659721 # have to relink, otherwise we might link with an installed library
95669722 # when we should be linking with a yet-to-be-installed one
9567 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9723 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
95689724 test "$hardcode_minus_L" != no; then
95699725 # Linking always hardcodes the temporary library directory.
95709726 hardcode_action=relink
95779733 # directories.
95789734 hardcode_action=unsupported
95799735 fi
9580 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9581 echo "${ECHO_T}$hardcode_action" >&6; }
9582
9583 if test "$hardcode_action" = relink; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9737 $as_echo "$hardcode_action" >&6; }
9738
9739 if test "$hardcode_action" = relink ||
9740 test "$inherit_rpath" = yes; then
95849741 # Fast installation is not supported
95859742 enable_fast_install=no
95869743 elif test "$shlibpath_overrides_runpath" = yes ||
95899746 enable_fast_install=needless
95909747 fi
95919748
9592 striplib=
9593 old_striplib=
9594 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9595 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9596 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9597 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9598 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9599 { echo "$as_me:$LINENO: result: yes" >&5
9600 echo "${ECHO_T}yes" >&6; }
9601 else
9602 # FIXME - insert some real tests, host_os isn't really good enough
9603 case $host_os in
9604 darwin*)
9605 if test -n "$STRIP" ; then
9606 striplib="$STRIP -x"
9607 old_striplib="$STRIP -S"
9608 { echo "$as_me:$LINENO: result: yes" >&5
9609 echo "${ECHO_T}yes" >&6; }
9610 else
9611 { echo "$as_me:$LINENO: result: no" >&5
9612 echo "${ECHO_T}no" >&6; }
9613 fi
9614 ;;
9615 *)
9616 { echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6; }
9618 ;;
9619 esac
9620 fi
9621
9622 if test "x$enable_dlopen" != xyes; then
9749
9750
9751
9752
9753
9754 if test "x$enable_dlopen" != xyes; then
96239755 enable_dlopen=unknown
96249756 enable_dlopen_self=unknown
96259757 enable_dlopen_self_static=unknown
96349766 lt_cv_dlopen_self=yes
96359767 ;;
96369768
9637 mingw* | pw32*)
9769 mingw* | pw32* | cegcc*)
96389770 lt_cv_dlopen="LoadLibrary"
96399771 lt_cv_dlopen_libs=
9640 ;;
9772 ;;
96419773
96429774 cygwin*)
96439775 lt_cv_dlopen="dlopen"
96449776 lt_cv_dlopen_libs=
9645 ;;
9777 ;;
96469778
96479779 darwin*)
96489780 # if libdl is installed we need to link against it
9649 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9650 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9651 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9782 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9783 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
96539785 else
96549786 ac_check_lib_save_LIBS=$LIBS
96559787 LIBS="-ldl $LIBS"
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96619789 /* end confdefs.h. */
96629790
96639791 /* Override any GCC internal prototype to avoid an error.
96759803 return 0;
96769804 }
96779805 _ACEOF
9678 rm -f conftest.$ac_objext conftest$ac_exeext
9679 if { (ac_try="$ac_link"
9680 case "(($ac_try" in
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9683 esac
9684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685 (eval "$ac_link") 2>conftest.er1
9686 ac_status=$?
9687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } && {
9692 test -z "$ac_c_werror_flag" ||
9693 test ! -s conftest.err
9694 } && test -s conftest$ac_exeext &&
9695 $as_test_x conftest$ac_exeext; then
9806 if ac_fn_c_try_link "$LINENO"; then :
96969807 ac_cv_lib_dl_dlopen=yes
96979808 else
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 ac_cv_lib_dl_dlopen=no
9702 fi
9703
9704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9705 conftest$ac_exeext conftest.$ac_ext
9809 ac_cv_lib_dl_dlopen=no
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
97069813 LIBS=$ac_check_lib_save_LIBS
97079814 fi
9708 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9709 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9710 if test $ac_cv_lib_dl_dlopen = yes; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9816 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9817 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
97119818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
97129819 else
97139820
97179824
97189825 fi
97199826
9720 ;;
9827 ;;
97219828
97229829 *)
9723 { echo "$as_me:$LINENO: checking for shl_load" >&5
9724 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9725 if test "${ac_cv_func_shl_load+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728 cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h. */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9734 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9736 #define shl_load innocuous_shl_load
9737
9738 /* System header to define __stub macros and hopefully few prototypes,
9739 which can conflict with char shl_load (); below.
9740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9741 <limits.h> exists even on freestanding compilers. */
9742
9743 #ifdef __STDC__
9744 # include <limits.h>
9745 #else
9746 # include <assert.h>
9747 #endif
9748
9749 #undef shl_load
9750
9751 /* Override any GCC internal prototype to avoid an error.
9752 Use char because int might match the return type of a GCC
9753 builtin and then its argument prototype would still apply. */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 char shl_load ();
9758 /* The GNU C library defines this for functions which it implements
9759 to always fail with ENOSYS. Some functions are actually named
9760 something starting with __ and the normal name is an alias. */
9761 #if defined __stub_shl_load || defined __stub___shl_load
9762 choke me
9763 #endif
9764
9765 int
9766 main ()
9767 {
9768 return shl_load ();
9769 ;
9770 return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9775 case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778 esac
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_link") 2>conftest.er1
9781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } && {
9787 test -z "$ac_c_werror_flag" ||
9788 test ! -s conftest.err
9789 } && test -s conftest$ac_exeext &&
9790 $as_test_x conftest$ac_exeext; then
9791 ac_cv_func_shl_load=yes
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9795
9796 ac_cv_func_shl_load=no
9797 fi
9798
9799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9800 conftest$ac_exeext conftest.$ac_ext
9801 fi
9802 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9803 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9804 if test $ac_cv_func_shl_load = yes; then
9830 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9831 if test "x$ac_cv_func_shl_load" = x""yes; then :
98059832 lt_cv_dlopen="shl_load"
98069833 else
9807 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9808 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9809 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9835 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9836 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9837 $as_echo_n "(cached) " >&6
98119838 else
98129839 ac_check_lib_save_LIBS=$LIBS
98139840 LIBS="-ldld $LIBS"
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h. */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98199842 /* end confdefs.h. */
98209843
98219844 /* Override any GCC internal prototype to avoid an error.
98339856 return 0;
98349857 }
98359858 _ACEOF
9836 rm -f conftest.$ac_objext conftest$ac_exeext
9837 if { (ac_try="$ac_link"
9838 case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9841 esac
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_link") 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest$ac_exeext &&
9853 $as_test_x conftest$ac_exeext; then
9859 if ac_fn_c_try_link "$LINENO"; then :
98549860 ac_cv_lib_dld_shl_load=yes
98559861 else
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 ac_cv_lib_dld_shl_load=no
9860 fi
9861
9862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9863 conftest$ac_exeext conftest.$ac_ext
9862 ac_cv_lib_dld_shl_load=no
9863 fi
9864 rm -f core conftest.err conftest.$ac_objext \
9865 conftest$ac_exeext conftest.$ac_ext
98649866 LIBS=$ac_check_lib_save_LIBS
98659867 fi
9866 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9867 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9868 if test $ac_cv_lib_dld_shl_load = yes; then
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9869 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9870 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
98699871 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
98709872 else
9871 { echo "$as_me:$LINENO: checking for dlopen" >&5
9872 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9873 if test "${ac_cv_func_dlopen+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876 cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h. */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9882 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9884 #define dlopen innocuous_dlopen
9885
9886 /* System header to define __stub macros and hopefully few prototypes,
9887 which can conflict with char dlopen (); below.
9888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9889 <limits.h> exists even on freestanding compilers. */
9890
9891 #ifdef __STDC__
9892 # include <limits.h>
9893 #else
9894 # include <assert.h>
9895 #endif
9896
9897 #undef dlopen
9898
9899 /* Override any GCC internal prototype to avoid an error.
9900 Use char because int might match the return type of a GCC
9901 builtin and then its argument prototype would still apply. */
9902 #ifdef __cplusplus
9903 extern "C"
9904 #endif
9905 char dlopen ();
9906 /* The GNU C library defines this for functions which it implements
9907 to always fail with ENOSYS. Some functions are actually named
9908 something starting with __ and the normal name is an alias. */
9909 #if defined __stub_dlopen || defined __stub___dlopen
9910 choke me
9911 #endif
9912
9913 int
9914 main ()
9915 {
9916 return dlopen ();
9917 ;
9918 return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (ac_try="$ac_link"
9923 case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_link") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest$ac_exeext &&
9938 $as_test_x conftest$ac_exeext; then
9939 ac_cv_func_dlopen=yes
9940 else
9941 echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9943
9944 ac_cv_func_dlopen=no
9945 fi
9946
9947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9948 conftest$ac_exeext conftest.$ac_ext
9949 fi
9950 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9951 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9952 if test $ac_cv_func_dlopen = yes; then
9873 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9874 if test "x$ac_cv_func_dlopen" = x""yes; then :
99539875 lt_cv_dlopen="dlopen"
99549876 else
9955 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9956 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9957 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9878 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9879 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9880 $as_echo_n "(cached) " >&6
99599881 else
99609882 ac_check_lib_save_LIBS=$LIBS
99619883 LIBS="-ldl $LIBS"
9962 cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h. */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99679885 /* end confdefs.h. */
99689886
99699887 /* Override any GCC internal prototype to avoid an error.
99819899 return 0;
99829900 }
99839901 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (ac_try="$ac_link"
9986 case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_link") 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext &&
10001 $as_test_x conftest$ac_exeext; then
9902 if ac_fn_c_try_link "$LINENO"; then :
100029903 ac_cv_lib_dl_dlopen=yes
100039904 else
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007 ac_cv_lib_dl_dlopen=no
10008 fi
10009
10010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10011 conftest$ac_exeext conftest.$ac_ext
9905 ac_cv_lib_dl_dlopen=no
9906 fi
9907 rm -f core conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
100129909 LIBS=$ac_check_lib_save_LIBS
100139910 fi
10014 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10015 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10016 if test $ac_cv_lib_dl_dlopen = yes; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9912 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9913 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
100179914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
100189915 else
10019 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10020 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10021 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9917 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9918 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9919 $as_echo_n "(cached) " >&6
100239920 else
100249921 ac_check_lib_save_LIBS=$LIBS
100259922 LIBS="-lsvld $LIBS"
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h. */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100319924 /* end confdefs.h. */
100329925
100339926 /* Override any GCC internal prototype to avoid an error.
100459938 return 0;
100469939 }
100479940 _ACEOF
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (ac_try="$ac_link"
10050 case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10053 esac
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_link") 2>conftest.er1
10056 ac_status=$?
10057 grep -v '^ *+' conftest.er1 >conftest.err
10058 rm -f conftest.er1
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } && {
10062 test -z "$ac_c_werror_flag" ||
10063 test ! -s conftest.err
10064 } && test -s conftest$ac_exeext &&
10065 $as_test_x conftest$ac_exeext; then
9941 if ac_fn_c_try_link "$LINENO"; then :
100669942 ac_cv_lib_svld_dlopen=yes
100679943 else
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071 ac_cv_lib_svld_dlopen=no
10072 fi
10073
10074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10075 conftest$ac_exeext conftest.$ac_ext
9944 ac_cv_lib_svld_dlopen=no
9945 fi
9946 rm -f core conftest.err conftest.$ac_objext \
9947 conftest$ac_exeext conftest.$ac_ext
100769948 LIBS=$ac_check_lib_save_LIBS
100779949 fi
10078 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10079 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10080 if test $ac_cv_lib_svld_dlopen = yes; then
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9951 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9952 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
100819953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
100829954 else
10083 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10084 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10085 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9956 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9957 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9958 $as_echo_n "(cached) " >&6
100879959 else
100889960 ac_check_lib_save_LIBS=$LIBS
100899961 LIBS="-ldld $LIBS"
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h. */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100959963 /* end confdefs.h. */
100969964
100979965 /* Override any GCC internal prototype to avoid an error.
101099977 return 0;
101109978 }
101119979 _ACEOF
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (ac_try="$ac_link"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10117 esac
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_link") 2>conftest.er1
10120 ac_status=$?
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && {
10126 test -z "$ac_c_werror_flag" ||
10127 test ! -s conftest.err
10128 } && test -s conftest$ac_exeext &&
10129 $as_test_x conftest$ac_exeext; then
9980 if ac_fn_c_try_link "$LINENO"; then :
101309981 ac_cv_lib_dld_dld_link=yes
101319982 else
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10134
10135 ac_cv_lib_dld_dld_link=no
10136 fi
10137
10138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10139 conftest$ac_exeext conftest.$ac_ext
9983 ac_cv_lib_dld_dld_link=no
9984 fi
9985 rm -f core conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
101409987 LIBS=$ac_check_lib_save_LIBS
101419988 fi
10142 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10143 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10144 if test $ac_cv_lib_dld_dld_link = yes; then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9990 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9991 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
101459992 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
101469993 fi
101479994
1018010027 save_LIBS="$LIBS"
1018110028 LIBS="$lt_cv_dlopen_libs $LIBS"
1018210029
10183 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10184 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10185 if test "${lt_cv_dlopen_self+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10031 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10032 if test "${lt_cv_dlopen_self+set}" = set; then :
10033 $as_echo_n "(cached) " >&6
1018710034 else
1018810035 if test "$cross_compiling" = yes; then :
1018910036 lt_cv_dlopen_self=cross
1019010037 else
1019110038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1019210039 lt_status=$lt_dlunknown
10193 cat > conftest.$ac_ext <<EOF
10194 #line 10195 "configure"
10040 cat > conftest.$ac_ext <<_LT_EOF
10041 #line 10042 "configure"
1019510042 #include "confdefs.h"
1019610043
1019710044 #if HAVE_DLFCN_H
1023210079 # endif
1023310080 #endif
1023410081
10235 #ifdef __cplusplus
10236 extern "C" void exit (int);
10237 #endif
10238
1023910082 void fnord() { int i=42;}
1024010083 int main ()
1024110084 {
1025110094 else
1025210095 puts (dlerror ());
1025310096
10254 exit (status);
10097 return status;
1025510098 }
10256 EOF
10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10099 _LT_EOF
10100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1025810101 (eval $ac_link) 2>&5
1025910102 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10104 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1026210105 (./conftest; exit; ) >&5 2>/dev/null
1026310106 lt_status=$?
1026410107 case x$lt_status in
1027510118
1027610119
1027710120 fi
10278 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10279 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10122 $as_echo "$lt_cv_dlopen_self" >&6; }
1028010123
1028110124 if test "x$lt_cv_dlopen_self" = xyes; then
1028210125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10283 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10284 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10285 if test "${lt_cv_dlopen_self_static+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10127 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10128 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10129 $as_echo_n "(cached) " >&6
1028710130 else
1028810131 if test "$cross_compiling" = yes; then :
1028910132 lt_cv_dlopen_self_static=cross
1029010133 else
1029110134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1029210135 lt_status=$lt_dlunknown
10293 cat > conftest.$ac_ext <<EOF
10294 #line 10295 "configure"
10136 cat > conftest.$ac_ext <<_LT_EOF
10137 #line 10138 "configure"
1029510138 #include "confdefs.h"
1029610139
1029710140 #if HAVE_DLFCN_H
1033210175 # endif
1033310176 #endif
1033410177
10335 #ifdef __cplusplus
10336 extern "C" void exit (int);
10337 #endif
10338
1033910178 void fnord() { int i=42;}
1034010179 int main ()
1034110180 {
1035110190 else
1035210191 puts (dlerror ());
1035310192
10354 exit (status);
10193 return status;
1035510194 }
10356 EOF
10357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10195 _LT_EOF
10196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1035810197 (eval $ac_link) 2>&5
1035910198 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10200 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1036210201 (./conftest; exit; ) >&5 2>/dev/null
1036310202 lt_status=$?
1036410203 case x$lt_status in
1037510214
1037610215
1037710216 fi
10378 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10379 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10218 $as_echo "$lt_cv_dlopen_self_static" >&6; }
1038010219 fi
1038110220
1038210221 CPPFLAGS="$save_CPPFLAGS"
1039710236 fi
1039810237
1039910238
10400 # Report which library types will actually be built
10401 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10402 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10403 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10404 echo "${ECHO_T}$can_build_shared" >&6; }
10405
10406 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10407 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10408 test "$can_build_shared" = "no" && enable_shared=no
10409
10410 # On AIX, shared libraries and static libraries use the same namespace, and
10411 # are all built from PIC.
10412 case $host_os in
10413 aix3*)
10414 test "$enable_shared" = yes && enable_static=no
10415 if test -n "$RANLIB"; then
10416 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10417 postinstall_cmds='$RANLIB $lib'
10418 fi
10419 ;;
10420
10421 aix[4-9]*)
10422 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10423 test "$enable_shared" = yes && enable_static=no
10424 fi
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254 striplib=
10255 old_striplib=
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10257 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10258 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10259 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10260 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10262 $as_echo "yes" >&6; }
10263 else
10264 # FIXME - insert some real tests, host_os isn't really good enough
10265 case $host_os in
10266 darwin*)
10267 if test -n "$STRIP" ; then
10268 striplib="$STRIP -x"
10269 old_striplib="$STRIP -S"
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10271 $as_echo "yes" >&6; }
10272 else
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 $as_echo "no" >&6; }
10275 fi
1042510276 ;;
10426 esac
10427 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10428 echo "${ECHO_T}$enable_shared" >&6; }
10429
10430 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10431 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10432 # Make sure either enable_shared or enable_static is yes.
10433 test "$enable_shared" = yes || enable_static=yes
10434 { echo "$as_me:$LINENO: result: $enable_static" >&5
10435 echo "${ECHO_T}$enable_static" >&6; }
10436
10437 # The else clause should only fire when bootstrapping the
10438 # libtool distribution, otherwise you forgot to ship ltmain.sh
10439 # with your package, and you will get complaints that there are
10440 # no rules to generate ltmain.sh.
10441 if test -f "$ltmain"; then
10442 # See if we are running on zsh, and set the options which allow our commands through
10443 # without removal of \ escapes.
10444 if test -n "${ZSH_VERSION+set}" ; then
10445 setopt NO_GLOB_SUBST
10446 fi
10447 # Now quote all the things that may contain metacharacters while being
10448 # careful not to overquote the AC_SUBSTed values. We take copies of the
10449 # variables and quote the copies for generation of the libtool script.
10450 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10451 SED SHELL STRIP \
10452 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10453 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10454 deplibs_check_method reload_flag reload_cmds need_locks \
10455 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10456 lt_cv_sys_global_symbol_to_c_name_address \
10457 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10458 old_postinstall_cmds old_postuninstall_cmds \
10459 compiler \
10460 CC \
10461 LD \
10462 lt_prog_compiler_wl \
10463 lt_prog_compiler_pic \
10464 lt_prog_compiler_static \
10465 lt_prog_compiler_no_builtin_flag \
10466 export_dynamic_flag_spec \
10467 thread_safe_flag_spec \
10468 whole_archive_flag_spec \
10469 enable_shared_with_static_runtimes \
10470 old_archive_cmds \
10471 old_archive_from_new_cmds \
10472 predep_objects \
10473 postdep_objects \
10474 predeps \
10475 postdeps \
10476 compiler_lib_search_path \
10477 compiler_lib_search_dirs \
10478 archive_cmds \
10479 archive_expsym_cmds \
10480 postinstall_cmds \
10481 postuninstall_cmds \
10482 old_archive_from_expsyms_cmds \
10483 allow_undefined_flag \
10484 no_undefined_flag \
10485 export_symbols_cmds \
10486 hardcode_libdir_flag_spec \
10487 hardcode_libdir_flag_spec_ld \
10488 hardcode_libdir_separator \
10489 hardcode_automatic \
10490 module_cmds \
10491 module_expsym_cmds \
10492 lt_cv_prog_compiler_c_o \
10493 fix_srcfile_path \
10494 exclude_expsyms \
10495 include_expsyms; do
10496
10497 case $var in
10498 old_archive_cmds | \
10499 old_archive_from_new_cmds | \
10500 archive_cmds | \
10501 archive_expsym_cmds | \
10502 module_cmds | \
10503 module_expsym_cmds | \
10504 old_archive_from_expsyms_cmds | \
10505 export_symbols_cmds | \
10506 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10507 postinstall_cmds | postuninstall_cmds | \
10508 old_postinstall_cmds | old_postuninstall_cmds | \
10509 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10510 # Double-quote double-evaled strings.
10511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10512 ;;
10513 *)
10514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10515 ;;
10516 esac
10517 done
10518
10519 case $lt_echo in
10520 *'\$0 --fallback-echo"')
10521 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10277 *)
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
1052210280 ;;
1052310281 esac
10524
10525 cfgfile="${ofile}T"
10526 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10527 $rm -f "$cfgfile"
10528 { echo "$as_me:$LINENO: creating $ofile" >&5
10529 echo "$as_me: creating $ofile" >&6;}
10530
10531 cat <<__EOF__ >> "$cfgfile"
10532 #! $SHELL
10533
10534 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10535 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10536 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10537 #
10538 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10539 # Free Software Foundation, Inc.
10540 #
10541 # This file is part of GNU Libtool:
10542 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10543 #
10544 # This program is free software; you can redistribute it and/or modify
10545 # it under the terms of the GNU General Public License as published by
10546 # the Free Software Foundation; either version 2 of the License, or
10547 # (at your option) any later version.
10548 #
10549 # This program is distributed in the hope that it will be useful, but
10550 # WITHOUT ANY WARRANTY; without even the implied warranty of
10551 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10552 # General Public License for more details.
10553 #
10554 # You should have received a copy of the GNU General Public License
10555 # along with this program; if not, write to the Free Software
10556 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10557 #
10558 # As a special exception to the GNU General Public License, if you
10559 # distribute this file as part of a program that contains a
10560 # configuration script generated by Autoconf, you may include it under
10561 # the same distribution terms that you use for the rest of that program.
10562
10563 # A sed program that does not truncate output.
10564 SED=$lt_SED
10565
10566 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10567 Xsed="$SED -e 1s/^X//"
10568
10569 # The HP-UX ksh and POSIX shell print the target directory to stdout
10570 # if CDPATH is set.
10571 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10572
10573 # The names of the tagged configurations supported by this script.
10574 available_tags=
10575
10576 # ### BEGIN LIBTOOL CONFIG
10577
10578 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10579
10580 # Shell to use when invoking shell scripts.
10581 SHELL=$lt_SHELL
10582
10583 # Whether or not to build shared libraries.
10584 build_libtool_libs=$enable_shared
10585
10586 # Whether or not to build static libraries.
10587 build_old_libs=$enable_static
10588
10589 # Whether or not to add -lc for building shared libraries.
10590 build_libtool_need_lc=$archive_cmds_need_lc
10591
10592 # Whether or not to disallow shared libs when runtime libs are static
10593 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10594
10595 # Whether or not to optimize for fast installation.
10596 fast_install=$enable_fast_install
10597
10598 # The host system.
10599 host_alias=$host_alias
10600 host=$host
10601 host_os=$host_os
10602
10603 # The build system.
10604 build_alias=$build_alias
10605 build=$build
10606 build_os=$build_os
10607
10608 # An echo program that does not interpret backslashes.
10609 echo=$lt_echo
10610
10611 # The archiver.
10612 AR=$lt_AR
10613 AR_FLAGS=$lt_AR_FLAGS
10614
10615 # A C compiler.
10616 LTCC=$lt_LTCC
10617
10618 # LTCC compiler flags.
10619 LTCFLAGS=$lt_LTCFLAGS
10620
10621 # A language-specific compiler.
10622 CC=$lt_compiler
10623
10624 # Is the compiler the GNU C compiler?
10625 with_gcc=$GCC
10626
10627 # An ERE matcher.
10628 EGREP=$lt_EGREP
10629
10630 # The linker used to build libraries.
10631 LD=$lt_LD
10632
10633 # Whether we need hard or soft links.
10634 LN_S=$lt_LN_S
10635
10636 # A BSD-compatible nm program.
10637 NM=$lt_NM
10638
10639 # A symbol stripping program
10640 STRIP=$lt_STRIP
10641
10642 # Used to examine libraries when file_magic_cmd begins "file"
10643 MAGIC_CMD=$MAGIC_CMD
10644
10645 # Used on cygwin: DLL creation program.
10646 DLLTOOL="$DLLTOOL"
10647
10648 # Used on cygwin: object dumper.
10649 OBJDUMP="$OBJDUMP"
10650
10651 # Used on cygwin: assembler.
10652 AS="$AS"
10653
10654 # The name of the directory that contains temporary libtool files.
10655 objdir=$objdir
10656
10657 # How to create reloadable object files.
10658 reload_flag=$lt_reload_flag
10659 reload_cmds=$lt_reload_cmds
10660
10661 # How to pass a linker flag through the compiler.
10662 wl=$lt_lt_prog_compiler_wl
10663
10664 # Object file suffix (normally "o").
10665 objext="$ac_objext"
10666
10667 # Old archive suffix (normally "a").
10668 libext="$libext"
10669
10670 # Shared library suffix (normally ".so").
10671 shrext_cmds='$shrext_cmds'
10672
10673 # Executable file suffix (normally "").
10674 exeext="$exeext"
10675
10676 # Additional compiler flags for building library objects.
10677 pic_flag=$lt_lt_prog_compiler_pic
10678 pic_mode=$pic_mode
10679
10680 # What is the maximum length of a command?
10681 max_cmd_len=$lt_cv_sys_max_cmd_len
10682
10683 # Does compiler simultaneously support -c and -o options?
10684 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10685
10686 # Must we lock files when doing compilation?
10687 need_locks=$lt_need_locks
10688
10689 # Do we need the lib prefix for modules?
10690 need_lib_prefix=$need_lib_prefix
10691
10692 # Do we need a version for libraries?
10693 need_version=$need_version
10694
10695 # Whether dlopen is supported.
10696 dlopen_support=$enable_dlopen
10697
10698 # Whether dlopen of programs is supported.
10699 dlopen_self=$enable_dlopen_self
10700
10701 # Whether dlopen of statically linked programs is supported.
10702 dlopen_self_static=$enable_dlopen_self_static
10703
10704 # Compiler flag to prevent dynamic linking.
10705 link_static_flag=$lt_lt_prog_compiler_static
10706
10707 # Compiler flag to turn off builtin functions.
10708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10709
10710 # Compiler flag to allow reflexive dlopens.
10711 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10712
10713 # Compiler flag to generate shared objects directly from archives.
10714 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10715
10716 # Compiler flag to generate thread-safe objects.
10717 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10718
10719 # Library versioning type.
10720 version_type=$version_type
10721
10722 # Format of library name prefix.
10723 libname_spec=$lt_libname_spec
10724
10725 # List of archive names. First name is the real one, the rest are links.
10726 # The last name is the one that the linker finds with -lNAME.
10727 library_names_spec=$lt_library_names_spec
10728
10729 # The coded name of the library, if different from the real name.
10730 soname_spec=$lt_soname_spec
10731
10732 # Commands used to build and install an old-style archive.
10733 RANLIB=$lt_RANLIB
10734 old_archive_cmds=$lt_old_archive_cmds
10735 old_postinstall_cmds=$lt_old_postinstall_cmds
10736 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10737
10738 # Create an old-style archive from a shared archive.
10739 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10740
10741 # Create a temporary old-style archive to link instead of a shared archive.
10742 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10743
10744 # Commands used to build and install a shared archive.
10745 archive_cmds=$lt_archive_cmds
10746 archive_expsym_cmds=$lt_archive_expsym_cmds
10747 postinstall_cmds=$lt_postinstall_cmds
10748 postuninstall_cmds=$lt_postuninstall_cmds
10749
10750 # Commands used to build a loadable module (assumed same as above if empty)
10751 module_cmds=$lt_module_cmds
10752 module_expsym_cmds=$lt_module_expsym_cmds
10753
10754 # Commands to strip libraries.
10755 old_striplib=$lt_old_striplib
10756 striplib=$lt_striplib
10757
10758 # Dependencies to place before the objects being linked to create a
10759 # shared library.
10760 predep_objects=$lt_predep_objects
10761
10762 # Dependencies to place after the objects being linked to create a
10763 # shared library.
10764 postdep_objects=$lt_postdep_objects
10765
10766 # Dependencies to place before the objects being linked to create a
10767 # shared library.
10768 predeps=$lt_predeps
10769
10770 # Dependencies to place after the objects being linked to create a
10771 # shared library.
10772 postdeps=$lt_postdeps
10773
10774 # The directories searched by this compiler when creating a shared
10775 # library
10776 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10777
10778 # The library search path used internally by the compiler when linking
10779 # a shared library.
10780 compiler_lib_search_path=$lt_compiler_lib_search_path
10781
10782 # Method to check whether dependent libraries are shared objects.
10783 deplibs_check_method=$lt_deplibs_check_method
10784
10785 # Command to use when deplibs_check_method == file_magic.
10786 file_magic_cmd=$lt_file_magic_cmd
10787
10788 # Flag that allows shared libraries with undefined symbols to be built.
10789 allow_undefined_flag=$lt_allow_undefined_flag
10790
10791 # Flag that forces no undefined symbols.
10792 no_undefined_flag=$lt_no_undefined_flag
10793
10794 # Commands used to finish a libtool library installation in a directory.
10795 finish_cmds=$lt_finish_cmds
10796
10797 # Same as above, but a single script fragment to be evaled but not shown.
10798 finish_eval=$lt_finish_eval
10799
10800 # Take the output of nm and produce a listing of raw symbols and C names.
10801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10802
10803 # Transform the output of nm in a proper C declaration
10804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10805
10806 # Transform the output of nm in a C name address pair
10807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10808
10809 # This is the shared library runtime path variable.
10810 runpath_var=$runpath_var
10811
10812 # This is the shared library path variable.
10813 shlibpath_var=$shlibpath_var
10814
10815 # Is shlibpath searched before the hard-coded library search path?
10816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10817
10818 # How to hardcode a shared library path into an executable.
10819 hardcode_action=$hardcode_action
10820
10821 # Whether we should hardcode library paths into libraries.
10822 hardcode_into_libs=$hardcode_into_libs
10823
10824 # Flag to hardcode \$libdir into a binary during linking.
10825 # This must work even if \$libdir does not exist.
10826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10827
10828 # If ld is used when linking, flag to hardcode \$libdir into
10829 # a binary during linking. This must work even if \$libdir does
10830 # not exist.
10831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10832
10833 # Whether we need a single -rpath flag with a separated argument.
10834 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10835
10836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10837 # resulting binary.
10838 hardcode_direct=$hardcode_direct
10839
10840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10841 # resulting binary.
10842 hardcode_minus_L=$hardcode_minus_L
10843
10844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10845 # the resulting binary.
10846 hardcode_shlibpath_var=$hardcode_shlibpath_var
10847
10848 # Set to yes if building a shared library automatically hardcodes DIR into the library
10849 # and all subsequent libraries and executables linked against it.
10850 hardcode_automatic=$hardcode_automatic
10851
10852 # Variables whose values should be saved in libtool wrapper scripts and
10853 # restored at relink time.
10854 variables_saved_for_relink="$variables_saved_for_relink"
10855
10856 # Whether libtool must link a program against all its dependency libraries.
10857 link_all_deplibs=$link_all_deplibs
10858
10859 # Compile-time system search path for libraries
10860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10861
10862 # Run-time system search path for libraries
10863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10864
10865 # Fix the shell variable \$srcfile for the compiler.
10866 fix_srcfile_path=$lt_fix_srcfile_path
10867
10868 # Set to yes if exported symbols are required.
10869 always_export_symbols=$always_export_symbols
10870
10871 # The commands to list exported symbols.
10872 export_symbols_cmds=$lt_export_symbols_cmds
10873
10874 # The commands to extract the exported symbol list from a shared archive.
10875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10876
10877 # Symbols that should not be listed in the preloaded symbols.
10878 exclude_expsyms=$lt_exclude_expsyms
10879
10880 # Symbols that must always be exported.
10881 include_expsyms=$lt_include_expsyms
10882
10883 # ### END LIBTOOL CONFIG
10884
10885 __EOF__
10886
10887
10282 fi
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295 # Report which library types will actually be built
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10297 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10299 $as_echo "$can_build_shared" >&6; }
10300
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10302 $as_echo_n "checking whether to build shared libraries... " >&6; }
10303 test "$can_build_shared" = "no" && enable_shared=no
10304
10305 # On AIX, shared libraries and static libraries use the same namespace, and
10306 # are all built from PIC.
1088810307 case $host_os in
1088910308 aix3*)
10890 cat <<\EOF >> "$cfgfile"
10891
10892 # AIX sometimes has problems with the GCC collect2 program. For some
10893 # reason, if we set the COLLECT_NAMES environment variable, the problems
10894 # vanish in a puff of smoke.
10895 if test "X${COLLECT_NAMES+set}" != Xset; then
10896 COLLECT_NAMES=
10897 export COLLECT_NAMES
10898 fi
10899 EOF
10309 test "$enable_shared" = yes && enable_static=no
10310 if test -n "$RANLIB"; then
10311 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10312 postinstall_cmds='$RANLIB $lib'
10313 fi
10314 ;;
10315
10316 aix[4-9]*)
10317 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10318 test "$enable_shared" = yes && enable_static=no
10319 fi
1090010320 ;;
1090110321 esac
10902
10903 # We use sed instead of cat because bash on DJGPP gets confused if
10904 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10905 # text mode, it properly converts lines to CR/LF. This bash problem
10906 # is reportedly fixed, but why not run on old versions too?
10907 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10908
10909 mv -f "$cfgfile" "$ofile" || \
10910 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10911 chmod +x "$ofile"
10912
10913 else
10914 # If there is no Makefile yet, we rely on a make rule to execute
10915 # `config.status --recheck' to rerun these tests and create the
10916 # libtool script then.
10917 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10918 if test -f "$ltmain_in"; then
10919 test -f Makefile && make "$ltmain"
10920 fi
10921 fi
10922
10923
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10323 $as_echo "$enable_shared" >&6; }
10324
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10326 $as_echo_n "checking whether to build static libraries... " >&6; }
10327 # Make sure either enable_shared or enable_static is yes.
10328 test "$enable_shared" = yes || enable_static=yes
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10330 $as_echo "$enable_static" >&6; }
10331
10332
10333
10334
10335 fi
1092410336 ac_ext=c
1092510337 ac_cpp='$CPP $CPPFLAGS'
1092610338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1093010342 CC="$lt_save_CC"
1093110343
1093210344
10933 # Check whether --with-tags was given.
10934 if test "${with_tags+set}" = set; then
10935 withval=$with_tags; tagnames="$withval"
10936 fi
10937
10938
10939 if test -f "$ltmain" && test -n "$tagnames"; then
10940 if test ! -f "${ofile}"; then
10941 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10942 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10943 fi
10944
10945 if test -z "$LTCC"; then
10946 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10947 if test -z "$LTCC"; then
10948 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10949 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10950 else
10951 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10952 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10953 fi
10954 fi
10955 if test -z "$LTCFLAGS"; then
10956 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10957 fi
10958
10959 # Extract list of available tagged configurations in $ofile.
10960 # Note that this assumes the entire list is on one line.
10961 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10962
10963 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10964 for tagname in $tagnames; do
10965 IFS="$lt_save_ifs"
10966 # Check whether tagname contains only valid characters
10967 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10968 "") ;;
10969 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10970 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10971 { (exit 1); exit 1; }; }
10972 ;;
10973 esac
10974
10975 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10976 then
10977 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10978 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10979 { (exit 1); exit 1; }; }
10980 fi
10981
10982 # Update the list of available tags.
10983 if test -n "$tagname"; then
10984 echo appending configuration tag \"$tagname\" to $ofile
10985
10986 case $tagname in
10987 CXX)
10988 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10989 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10990 (test "X$CXX" != "Xg++"))) ; then
10991 ac_ext=cpp
10992 ac_cpp='$CXXCPP $CPPFLAGS'
10993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10996
10997
10998
10999
11000 archive_cmds_need_lc_CXX=no
11001 allow_undefined_flag_CXX=
11002 always_export_symbols_CXX=no
11003 archive_expsym_cmds_CXX=
11004 export_dynamic_flag_spec_CXX=
11005 hardcode_direct_CXX=no
11006 hardcode_libdir_flag_spec_CXX=
11007 hardcode_libdir_flag_spec_ld_CXX=
11008 hardcode_libdir_separator_CXX=
11009 hardcode_minus_L_CXX=no
11010 hardcode_shlibpath_var_CXX=unsupported
11011 hardcode_automatic_CXX=no
11012 module_cmds_CXX=
11013 module_expsym_cmds_CXX=
11014 link_all_deplibs_CXX=unknown
11015 old_archive_cmds_CXX=$old_archive_cmds
11016 no_undefined_flag_CXX=
11017 whole_archive_flag_spec_CXX=
11018 enable_shared_with_static_runtimes_CXX=no
11019
11020 # Dependencies to place before and after the object being linked:
11021 predep_objects_CXX=
11022 postdep_objects_CXX=
11023 predeps_CXX=
11024 postdeps_CXX=
11025 compiler_lib_search_path_CXX=
11026 compiler_lib_search_dirs_CXX=
11027
11028 # Source file extension for C++ test sources.
11029 ac_ext=cpp
11030
11031 # Object file extension for compiled C++ test sources.
11032 objext=o
11033 objext_CXX=$objext
11034
11035 # Code to be used in simple compile tests
11036 lt_simple_compile_test_code="int some_variable = 0;"
11037
11038 # Code to be used in simple link tests
11039 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11040
11041 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11042
11043 # If no C compiler was specified, use CC.
11044 LTCC=${LTCC-"$CC"}
11045
11046 # If no C compiler flags were specified, use CFLAGS.
11047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11048
11049 # Allow CC to be a program name with arguments.
11050 compiler=$CC
11051
11052
11053 # save warnings/boilerplate of simple test code
11054 ac_outfile=conftest.$ac_objext
11055 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11056 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11057 _lt_compiler_boilerplate=`cat conftest.err`
11058 $rm conftest*
11059
11060 ac_outfile=conftest.$ac_objext
11061 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11062 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11063 _lt_linker_boilerplate=`cat conftest.err`
11064 $rm -r conftest*
11065
11066
11067 # Allow CC to be a program name with arguments.
11068 lt_save_CC=$CC
11069 lt_save_LD=$LD
11070 lt_save_GCC=$GCC
11071 GCC=$GXX
11072 lt_save_with_gnu_ld=$with_gnu_ld
11073 lt_save_path_LD=$lt_cv_path_LD
11074 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11075 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11076 else
11077 $as_unset lt_cv_prog_gnu_ld
11078 fi
11079 if test -n "${lt_cv_path_LDCXX+set}"; then
11080 lt_cv_path_LD=$lt_cv_path_LDCXX
11081 else
11082 $as_unset lt_cv_path_LD
11083 fi
11084 test -z "${LDCXX+set}" || LD=$LDCXX
11085 CC=${CXX-"c++"}
11086 compiler=$CC
11087 compiler_CXX=$CC
11088 for cc_temp in $compiler""; do
11089 case $cc_temp in
11090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11092 \-*) ;;
11093 *) break;;
11094 esac
11095 done
11096 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11097
11098
11099 # We don't want -fno-exception wen compiling C++ code, so set the
11100 # no_builtin_flag separately
11101 if test "$GXX" = yes; then
11102 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11103 else
11104 lt_prog_compiler_no_builtin_flag_CXX=
11105 fi
11106
11107 if test "$GXX" = yes; then
11108 # Set up default GNU C++ configuration
11109
11110
11111 # Check whether --with-gnu-ld was given.
11112 if test "${with_gnu_ld+set}" = set; then
11113 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11114 else
11115 with_gnu_ld=no
11116 fi
11117
11118 ac_prog=ld
11119 if test "$GCC" = yes; then
11120 # Check if gcc -print-prog-name=ld gives a path.
11121 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11123 case $host in
11124 *-*-mingw*)
11125 # gcc leaves a trailing carriage return which upsets mingw
11126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11127 *)
11128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11129 esac
11130 case $ac_prog in
11131 # Accept absolute paths.
11132 [\\/]* | ?:[\\/]*)
11133 re_direlt='/[^/][^/]*/\.\./'
11134 # Canonicalize the pathname of ld
11135 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11136 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11137 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11138 done
11139 test -z "$LD" && LD="$ac_prog"
11140 ;;
11141 "")
11142 # If it fails, then pretend we aren't using GCC.
11143 ac_prog=ld
11144 ;;
11145 *)
11146 # If it is relative, then search for the first ld in PATH.
11147 with_gnu_ld=unknown
11148 ;;
11149 esac
11150 elif test "$with_gnu_ld" = yes; then
11151 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11153 else
11154 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11156 fi
11157 if test "${lt_cv_path_LD+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160 if test -z "$LD"; then
11161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11162 for ac_dir in $PATH; do
11163 IFS="$lt_save_ifs"
11164 test -z "$ac_dir" && ac_dir=.
11165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11166 lt_cv_path_LD="$ac_dir/$ac_prog"
11167 # Check to see if the program is GNU ld. I'd rather use --version,
11168 # but apparently some variants of GNU ld only accept -v.
11169 # Break only if it was the GNU/non-GNU ld that we prefer.
11170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11171 *GNU* | *'with BFD'*)
11172 test "$with_gnu_ld" != no && break
11173 ;;
11174 *)
11175 test "$with_gnu_ld" != yes && break
11176 ;;
11177 esac
11178 fi
11179 done
11180 IFS="$lt_save_ifs"
11181 else
11182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11183 fi
11184 fi
11185
11186 LD="$lt_cv_path_LD"
11187 if test -n "$LD"; then
11188 { echo "$as_me:$LINENO: result: $LD" >&5
11189 echo "${ECHO_T}$LD" >&6; }
11190 else
11191 { echo "$as_me:$LINENO: result: no" >&5
11192 echo "${ECHO_T}no" >&6; }
11193 fi
11194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11196 { (exit 1); exit 1; }; }
11197 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11203 case `$LD -v 2>&1 </dev/null` in
11204 *GNU* | *'with BFD'*)
11205 lt_cv_prog_gnu_ld=yes
11206 ;;
11207 *)
11208 lt_cv_prog_gnu_ld=no
11209 ;;
11210 esac
11211 fi
11212 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11214 with_gnu_ld=$lt_cv_prog_gnu_ld
11215
11216
11217
11218 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11219 # archiving commands below assume that GNU ld is being used.
11220 if test "$with_gnu_ld" = yes; then
11221 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11222 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11223
11224 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11225 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11226
11227 # If archive_cmds runs LD, not CC, wlarc should be empty
11228 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11229 # investigate it a little bit more. (MM)
11230 wlarc='${wl}'
11231
11232 # ancient GNU ld didn't support --whole-archive et. al.
11233 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11234 grep 'no-whole-archive' > /dev/null; then
11235 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11236 else
11237 whole_archive_flag_spec_CXX=
11238 fi
11239 else
11240 with_gnu_ld=no
11241 wlarc=
11242
11243 # A generic and very simple default shared library creation
11244 # command for GNU C++ for the case where it uses the native
11245 # linker, instead of GNU ld. If possible, this setting should
11246 # overridden to take advantage of the native linker features on
11247 # the platform it is being used on.
11248 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11249 fi
11250
11251 # Commands to make compiler produce verbose output that lists
11252 # what "hidden" libraries, object files and flags are used when
11253 # linking a shared library.
11254 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11255
11256 else
11257 GXX=no
11258 with_gnu_ld=no
11259 wlarc=
11260 fi
11261
11262 # PORTME: fill in a description of your system's C++ link characteristics
11263 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11264 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11265 ld_shlibs_CXX=yes
11266 case $host_os in
11267 aix3*)
11268 # FIXME: insert proper C++ library support
11269 ld_shlibs_CXX=no
11270 ;;
11271 aix[4-9]*)
11272 if test "$host_cpu" = ia64; then
11273 # On IA64, the linker does run time linking by default, so we don't
11274 # have to do anything special.
11275 aix_use_runtimelinking=no
11276 exp_sym_flag='-Bexport'
11277 no_entry_flag=""
11278 else
11279 aix_use_runtimelinking=no
11280
11281 # Test if we are trying to use run time linking or normal
11282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11283 # need to do runtime linking.
11284 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11285 for ld_flag in $LDFLAGS; do
11286 case $ld_flag in
11287 *-brtl*)
11288 aix_use_runtimelinking=yes
11289 break
11290 ;;
11291 esac
11292 done
11293 ;;
11294 esac
11295
11296 exp_sym_flag='-bexport'
11297 no_entry_flag='-bnoentry'
11298 fi
11299
11300 # When large executables or shared objects are built, AIX ld can
11301 # have problems creating the table of contents. If linking a library
11302 # or program results in "error TOC overflow" add -mminimal-toc to
11303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11305
11306 archive_cmds_CXX=''
11307 hardcode_direct_CXX=yes
11308 hardcode_libdir_separator_CXX=':'
11309 link_all_deplibs_CXX=yes
11310
11311 if test "$GXX" = yes; then
11312 case $host_os in aix4.[012]|aix4.[012].*)
11313 # We only want to do this on AIX 4.2 and lower, the check
11314 # below for broken collect2 doesn't work under 4.3+
11315 collect2name=`${CC} -print-prog-name=collect2`
11316 if test -f "$collect2name" && \
11317 strings "$collect2name" | grep resolve_lib_name >/dev/null
11318 then
11319 # We have reworked collect2
11320 :
11321 else
11322 # We have old collect2
11323 hardcode_direct_CXX=unsupported
11324 # It fails to find uninstalled libraries when the uninstalled
11325 # path is not listed in the libpath. Setting hardcode_minus_L
11326 # to unsupported forces relinking
11327 hardcode_minus_L_CXX=yes
11328 hardcode_libdir_flag_spec_CXX='-L$libdir'
11329 hardcode_libdir_separator_CXX=
11330 fi
11331 ;;
11332 esac
11333 shared_flag='-shared'
11334 if test "$aix_use_runtimelinking" = yes; then
11335 shared_flag="$shared_flag "'${wl}-G'
11336 fi
11337 else
11338 # not using gcc
11339 if test "$host_cpu" = ia64; then
11340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11341 # chokes on -Wl,-G. The following line is correct:
11342 shared_flag='-G'
11343 else
11344 if test "$aix_use_runtimelinking" = yes; then
11345 shared_flag='${wl}-G'
11346 else
11347 shared_flag='${wl}-bM:SRE'
11348 fi
11349 fi
11350 fi
11351
11352 # It seems that -bexpall does not export symbols beginning with
11353 # underscore (_), so it is better to generate a list of symbols to export.
11354 always_export_symbols_CXX=yes
11355 if test "$aix_use_runtimelinking" = yes; then
11356 # Warning - without using the other runtime loading flags (-brtl),
11357 # -berok will link without error, but may produce a broken library.
11358 allow_undefined_flag_CXX='-berok'
11359 # Determine the default libpath from the value encoded in an empty executable.
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h. */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366
11367 int
11368 main ()
11369 {
11370
11371 ;
11372 return 0;
11373 }
11374 _ACEOF
11375 rm -f conftest.$ac_objext conftest$ac_exeext
11376 if { (ac_try="$ac_link"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_link") 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_cxx_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest$ac_exeext &&
11392 $as_test_x conftest$ac_exeext; then
11393
11394 lt_aix_libpath_sed='
11395 /Import File Strings/,/^$/ {
11396 /^0/ {
11397 s/^0 *\(.*\)$/\1/
11398 p
11399 }
11400 }'
11401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11402 # Check for a 64-bit object if we didn't find anything.
11403 if test -z "$aix_libpath"; then
11404 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11405 fi
11406 else
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410
11411 fi
11412
11413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11414 conftest$ac_exeext conftest.$ac_ext
11415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11416
11417 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11418
11419 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11420 else
11421 if test "$host_cpu" = ia64; then
11422 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11423 allow_undefined_flag_CXX="-z nodefs"
11424 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11425 else
11426 # Determine the default libpath from the value encoded in an empty executable.
11427 cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h. */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433
11434 int
11435 main ()
11436 {
11437
11438 ;
11439 return 0;
11440 }
11441 _ACEOF
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (ac_try="$ac_link"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_link") 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_cxx_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest$ac_exeext &&
11459 $as_test_x conftest$ac_exeext; then
11460
11461 lt_aix_libpath_sed='
11462 /Import File Strings/,/^$/ {
11463 /^0/ {
11464 s/^0 *\(.*\)$/\1/
11465 p
11466 }
11467 }'
11468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11469 # Check for a 64-bit object if we didn't find anything.
11470 if test -z "$aix_libpath"; then
11471 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11472 fi
11473 else
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11476
11477
11478 fi
11479
11480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11481 conftest$ac_exeext conftest.$ac_ext
11482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11483
11484 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11485 # Warning - without using the other run time loading flags,
11486 # -berok will link without error, but may produce a broken library.
11487 no_undefined_flag_CXX=' ${wl}-bernotok'
11488 allow_undefined_flag_CXX=' ${wl}-berok'
11489 # Exported symbols can be pulled into shared objects from archives
11490 whole_archive_flag_spec_CXX='$convenience'
11491 archive_cmds_need_lc_CXX=yes
11492 # This is similar to how AIX traditionally builds its shared libraries.
11493 archive_expsym_cmds_CXX="\$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'
11494 fi
11495 fi
11496 ;;
11497
11498 beos*)
11499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11500 allow_undefined_flag_CXX=unsupported
11501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11502 # support --undefined. This deserves some investigation. FIXME
11503 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504 else
11505 ld_shlibs_CXX=no
11506 fi
11507 ;;
11508
11509 chorus*)
11510 case $cc_basename in
11511 *)
11512 # FIXME: insert proper C++ library support
11513 ld_shlibs_CXX=no
11514 ;;
11515 esac
11516 ;;
11517
11518 cygwin* | mingw* | pw32*)
11519 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11520 # as there is no search path for DLLs.
11521 hardcode_libdir_flag_spec_CXX='-L$libdir'
11522 allow_undefined_flag_CXX=unsupported
11523 always_export_symbols_CXX=no
11524 enable_shared_with_static_runtimes_CXX=yes
11525
11526 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11527 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11528 # If the export-symbols file already is a .def file (1st line
11529 # is EXPORTS), use it as is; otherwise, prepend...
11530 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11531 cp $export_symbols $output_objdir/$soname.def;
11532 else
11533 echo EXPORTS > $output_objdir/$soname.def;
11534 cat $export_symbols >> $output_objdir/$soname.def;
11535 fi~
11536 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11537 else
11538 ld_shlibs_CXX=no
11539 fi
11540 ;;
11541 darwin* | rhapsody*)
11542 archive_cmds_need_lc_CXX=no
11543 hardcode_direct_CXX=no
11544 hardcode_automatic_CXX=yes
11545 hardcode_shlibpath_var_CXX=unsupported
11546 whole_archive_flag_spec_CXX=''
11547 link_all_deplibs_CXX=yes
11548 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11549 if test "$GXX" = yes ; then
11550 output_verbose_link_cmd='echo'
11551 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11552 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11553 archive_expsym_cmds_CXX="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}"
11554 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11555 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11556 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11557 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11558 fi
11559 else
11560 case $cc_basename in
11561 xlc*)
11562 output_verbose_link_cmd='echo'
11563 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11564 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11566 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11567 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11568 ;;
11569 *)
11570 ld_shlibs_CXX=no
11571 ;;
11572 esac
11573 fi
11574 ;;
11575
11576 dgux*)
11577 case $cc_basename in
11578 ec++*)
11579 # FIXME: insert proper C++ library support
11580 ld_shlibs_CXX=no
11581 ;;
11582 ghcx*)
11583 # Green Hills C++ Compiler
11584 # FIXME: insert proper C++ library support
11585 ld_shlibs_CXX=no
11586 ;;
11587 *)
11588 # FIXME: insert proper C++ library support
11589 ld_shlibs_CXX=no
11590 ;;
11591 esac
11592 ;;
11593 freebsd[12]*)
11594 # C++ shared libraries reported to be fairly broken before switch to ELF
11595 ld_shlibs_CXX=no
11596 ;;
11597 freebsd-elf*)
11598 archive_cmds_need_lc_CXX=no
11599 ;;
11600 freebsd* | dragonfly*)
11601 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11602 # conventions
11603 ld_shlibs_CXX=yes
11604 ;;
11605 gnu*)
11606 ;;
11607 hpux9*)
11608 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11609 hardcode_libdir_separator_CXX=:
11610 export_dynamic_flag_spec_CXX='${wl}-E'
11611 hardcode_direct_CXX=yes
11612 hardcode_minus_L_CXX=yes # Not in the search PATH,
11613 # but as the default
11614 # location of the library.
11615
11616 case $cc_basename in
11617 CC*)
11618 # FIXME: insert proper C++ library support
11619 ld_shlibs_CXX=no
11620 ;;
11621 aCC*)
11622 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11623 # Commands to make compiler produce verbose output that lists
11624 # what "hidden" libraries, object files and flags are used when
11625 # linking a shared library.
11626 #
11627 # There doesn't appear to be a way to prevent this compiler from
11628 # explicitly linking system object files so we need to strip them
11629 # from the output so that they don't get included in the library
11630 # dependencies.
11631 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 $list'
11632 ;;
11633 *)
11634 if test "$GXX" = yes; then
11635 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11636 else
11637 # FIXME: insert proper C++ library support
11638 ld_shlibs_CXX=no
11639 fi
11640 ;;
11641 esac
11642 ;;
11643 hpux10*|hpux11*)
11644 if test $with_gnu_ld = no; then
11645 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11646 hardcode_libdir_separator_CXX=:
11647
11648 case $host_cpu in
11649 hppa*64*|ia64*) ;;
11650 *)
11651 export_dynamic_flag_spec_CXX='${wl}-E'
11652 ;;
11653 esac
11654 fi
11655 case $host_cpu in
11656 hppa*64*|ia64*)
11657 hardcode_direct_CXX=no
11658 hardcode_shlibpath_var_CXX=no
11659 ;;
11660 *)
11661 hardcode_direct_CXX=yes
11662 hardcode_minus_L_CXX=yes # Not in the search PATH,
11663 # but as the default
11664 # location of the library.
11665 ;;
11666 esac
11667
11668 case $cc_basename in
11669 CC*)
11670 # FIXME: insert proper C++ library support
11671 ld_shlibs_CXX=no
11672 ;;
11673 aCC*)
11674 case $host_cpu in
11675 hppa*64*)
11676 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11677 ;;
11678 ia64*)
11679 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11680 ;;
11681 *)
11682 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11683 ;;
11684 esac
11685 # Commands to make compiler produce verbose output that lists
11686 # what "hidden" libraries, object files and flags are used when
11687 # linking a shared library.
11688 #
11689 # There doesn't appear to be a way to prevent this compiler from
11690 # explicitly linking system object files so we need to strip them
11691 # from the output so that they don't get included in the library
11692 # dependencies.
11693 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 $list'
11694 ;;
11695 *)
11696 if test "$GXX" = yes; then
11697 if test $with_gnu_ld = no; then
11698 case $host_cpu in
11699 hppa*64*)
11700 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11701 ;;
11702 ia64*)
11703 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11704 ;;
11705 *)
11706 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11707 ;;
11708 esac
11709 fi
11710 else
11711 # FIXME: insert proper C++ library support
11712 ld_shlibs_CXX=no
11713 fi
11714 ;;
11715 esac
11716 ;;
11717 interix[3-9]*)
11718 hardcode_direct_CXX=no
11719 hardcode_shlibpath_var_CXX=no
11720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11721 export_dynamic_flag_spec_CXX='${wl}-E'
11722 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11723 # Instead, shared libraries are loaded at an image base (0x10000000 by
11724 # default) and relocated if they conflict, which is a slow very memory
11725 # consuming and fragmenting process. To avoid this, we pick a random,
11726 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11727 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11728 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11729 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11730 ;;
11731 irix5* | irix6*)
11732 case $cc_basename in
11733 CC*)
11734 # SGI C++
11735 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11736
11737 # Archives containing C++ object files must be created using
11738 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11739 # necessary to make sure instantiated templates are included
11740 # in the archive.
11741 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11742 ;;
11743 *)
11744 if test "$GXX" = yes; then
11745 if test "$with_gnu_ld" = no; then
11746 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11747 else
11748 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11749 fi
11750 fi
11751 link_all_deplibs_CXX=yes
11752 ;;
11753 esac
11754 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11755 hardcode_libdir_separator_CXX=:
11756 ;;
11757 linux* | k*bsd*-gnu)
11758 case $cc_basename in
11759 KCC*)
11760 # Kuck and Associates, Inc. (KAI) C++ Compiler
11761
11762 # KCC will only create a shared library if the output file
11763 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11764 # to its proper name (with version) after linking.
11765 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11766 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11767 # Commands to make compiler produce verbose output that lists
11768 # what "hidden" libraries, object files and flags are used when
11769 # linking a shared library.
11770 #
11771 # There doesn't appear to be a way to prevent this compiler from
11772 # explicitly linking system object files so we need to strip them
11773 # from the output so that they don't get included in the library
11774 # dependencies.
11775 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 $list'
11776
11777 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11778 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11779
11780 # Archives containing C++ object files must be created using
11781 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11782 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11783 ;;
11784 icpc*)
11785 # Intel C++
11786 with_gnu_ld=yes
11787 # version 8.0 and above of icpc choke on multiply defined symbols
11788 # if we add $predep_objects and $postdep_objects, however 7.1 and
11789 # earlier do not add the objects themselves.
11790 case `$CC -V 2>&1` in
11791 *"Version 7."*)
11792 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11793 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11794 ;;
11795 *) # Version 8.0 or newer
11796 tmp_idyn=
11797 case $host_cpu in
11798 ia64*) tmp_idyn=' -i_dynamic';;
11799 esac
11800 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11801 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11802 ;;
11803 esac
11804 archive_cmds_need_lc_CXX=no
11805 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11806 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11807 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11808 ;;
11809 pgCC* | pgcpp*)
11810 # Portland Group C++ compiler
11811 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11812 archive_expsym_cmds_CXX='$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'
11813
11814 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11816 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11817 ;;
11818 cxx*)
11819 # Compaq C++
11820 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11821 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11822
11823 runpath_var=LD_RUN_PATH
11824 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11825 hardcode_libdir_separator_CXX=:
11826
11827 # Commands to make compiler produce verbose output that lists
11828 # what "hidden" libraries, object files and flags are used when
11829 # linking a shared library.
11830 #
11831 # There doesn't appear to be a way to prevent this compiler from
11832 # explicitly linking system object files so we need to strip them
11833 # from the output so that they don't get included in the library
11834 # dependencies.
11835 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11836 ;;
11837 *)
11838 case `$CC -V 2>&1 | sed 5q` in
11839 *Sun\ C*)
11840 # Sun C++ 5.9
11841 no_undefined_flag_CXX=' -zdefs'
11842 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11843 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11844 hardcode_libdir_flag_spec_CXX='-R$libdir'
11845 whole_archive_flag_spec_CXX='${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'
11846
11847 # Not sure whether something based on
11848 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11849 # would be better.
11850 output_verbose_link_cmd='echo'
11851
11852 # Archives containing C++ object files must be created using
11853 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11854 # necessary to make sure instantiated templates are included
11855 # in the archive.
11856 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11857 ;;
11858 esac
11859 ;;
11860 esac
11861 ;;
11862 lynxos*)
11863 # FIXME: insert proper C++ library support
11864 ld_shlibs_CXX=no
11865 ;;
11866 m88k*)
11867 # FIXME: insert proper C++ library support
11868 ld_shlibs_CXX=no
11869 ;;
11870 mvs*)
11871 case $cc_basename in
11872 cxx*)
11873 # FIXME: insert proper C++ library support
11874 ld_shlibs_CXX=no
11875 ;;
11876 *)
11877 # FIXME: insert proper C++ library support
11878 ld_shlibs_CXX=no
11879 ;;
11880 esac
11881 ;;
11882 netbsd* | netbsdelf*-gnu)
11883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11884 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11885 wlarc=
11886 hardcode_libdir_flag_spec_CXX='-R$libdir'
11887 hardcode_direct_CXX=yes
11888 hardcode_shlibpath_var_CXX=no
11889 fi
11890 # Workaround some broken pre-1.5 toolchains
11891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11892 ;;
11893 openbsd2*)
11894 # C++ shared libraries are fairly broken
11895 ld_shlibs_CXX=no
11896 ;;
11897 openbsd*)
11898 if test -f /usr/libexec/ld.so; then
11899 hardcode_direct_CXX=yes
11900 hardcode_shlibpath_var_CXX=no
11901 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11904 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11905 export_dynamic_flag_spec_CXX='${wl}-E'
11906 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11907 fi
11908 output_verbose_link_cmd='echo'
11909 else
11910 ld_shlibs_CXX=no
11911 fi
11912 ;;
11913 osf3*)
11914 case $cc_basename in
11915 KCC*)
11916 # Kuck and Associates, Inc. (KAI) C++ Compiler
11917
11918 # KCC will only create a shared library if the output file
11919 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11920 # to its proper name (with version) after linking.
11921 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11922
11923 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11924 hardcode_libdir_separator_CXX=:
11925
11926 # Archives containing C++ object files must be created using
11927 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11928 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11929
11930 ;;
11931 RCC*)
11932 # Rational C++ 2.4.1
11933 # FIXME: insert proper C++ library support
11934 ld_shlibs_CXX=no
11935 ;;
11936 cxx*)
11937 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11938 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11939
11940 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11941 hardcode_libdir_separator_CXX=:
11942
11943 # Commands to make compiler produce verbose output that lists
11944 # what "hidden" libraries, object files and flags are used when
11945 # linking a shared library.
11946 #
11947 # There doesn't appear to be a way to prevent this compiler from
11948 # explicitly linking system object files so we need to strip them
11949 # from the output so that they don't get included in the library
11950 # dependencies.
11951 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11952 ;;
11953 *)
11954 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11956 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11957
11958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11959 hardcode_libdir_separator_CXX=:
11960
11961 # Commands to make compiler produce verbose output that lists
11962 # what "hidden" libraries, object files and flags are used when
11963 # linking a shared library.
11964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11965
11966 else
11967 # FIXME: insert proper C++ library support
11968 ld_shlibs_CXX=no
11969 fi
11970 ;;
11971 esac
11972 ;;
11973 osf4* | osf5*)
11974 case $cc_basename in
11975 KCC*)
11976 # Kuck and Associates, Inc. (KAI) C++ Compiler
11977
11978 # KCC will only create a shared library if the output file
11979 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11980 # to its proper name (with version) after linking.
11981 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11982
11983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11984 hardcode_libdir_separator_CXX=:
11985
11986 # Archives containing C++ object files must be created using
11987 # the KAI C++ compiler.
11988 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11989 ;;
11990 RCC*)
11991 # Rational C++ 2.4.1
11992 # FIXME: insert proper C++ library support
11993 ld_shlibs_CXX=no
11994 ;;
11995 cxx*)
11996 allow_undefined_flag_CXX=' -expect_unresolved \*'
11997 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11998 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11999 echo "-hidden">> $lib.exp~
12000 $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~
12001 $rm $lib.exp'
12002
12003 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12004 hardcode_libdir_separator_CXX=:
12005
12006 # Commands to make compiler produce verbose output that lists
12007 # what "hidden" libraries, object files and flags are used when
12008 # linking a shared library.
12009 #
12010 # There doesn't appear to be a way to prevent this compiler from
12011 # explicitly linking system object files so we need to strip them
12012 # from the output so that they don't get included in the library
12013 # dependencies.
12014 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
12015 ;;
12016 *)
12017 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12018 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12019 archive_cmds_CXX='$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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12020
12021 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12022 hardcode_libdir_separator_CXX=:
12023
12024 # Commands to make compiler produce verbose output that lists
12025 # what "hidden" libraries, object files and flags are used when
12026 # linking a shared library.
12027 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12028
12029 else
12030 # FIXME: insert proper C++ library support
12031 ld_shlibs_CXX=no
12032 fi
12033 ;;
12034 esac
12035 ;;
12036 psos*)
12037 # FIXME: insert proper C++ library support
12038 ld_shlibs_CXX=no
12039 ;;
12040 sunos4*)
12041 case $cc_basename in
12042 CC*)
12043 # Sun C++ 4.x
12044 # FIXME: insert proper C++ library support
12045 ld_shlibs_CXX=no
12046 ;;
12047 lcc*)
12048 # Lucid
12049 # FIXME: insert proper C++ library support
12050 ld_shlibs_CXX=no
12051 ;;
12052 *)
12053 # FIXME: insert proper C++ library support
12054 ld_shlibs_CXX=no
12055 ;;
12056 esac
12057 ;;
12058 solaris*)
12059 case $cc_basename in
12060 CC*)
12061 # Sun C++ 4.2, 5.x and Centerline C++
12062 archive_cmds_need_lc_CXX=yes
12063 no_undefined_flag_CXX=' -zdefs'
12064 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12065 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12066 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12067
12068 hardcode_libdir_flag_spec_CXX='-R$libdir'
12069 hardcode_shlibpath_var_CXX=no
12070 case $host_os in
12071 solaris2.[0-5] | solaris2.[0-5].*) ;;
12072 *)
12073 # The compiler driver will combine and reorder linker options,
12074 # but understands `-z linker_flag'.
12075 # Supported since Solaris 2.6 (maybe 2.5.1?)
12076 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12077 ;;
12078 esac
12079 link_all_deplibs_CXX=yes
12080
12081 output_verbose_link_cmd='echo'
12082
12083 # Archives containing C++ object files must be created using
12084 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12085 # necessary to make sure instantiated templates are included
12086 # in the archive.
12087 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12088 ;;
12089 gcx*)
12090 # Green Hills C++ Compiler
12091 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12092
12093 # The C++ compiler must be used to create the archive.
12094 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12095 ;;
12096 *)
12097 # GNU C++ compiler with Solaris linker
12098 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12099 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12100 if $CC --version | grep -v '^2\.7' > /dev/null; then
12101 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12102 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12103 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12104
12105 # Commands to make compiler produce verbose output that lists
12106 # what "hidden" libraries, object files and flags are used when
12107 # linking a shared library.
12108 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12109 else
12110 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12111 # platform.
12112 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12113 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12114 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12115
12116 # Commands to make compiler produce verbose output that lists
12117 # what "hidden" libraries, object files and flags are used when
12118 # linking a shared library.
12119 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12120 fi
12121
12122 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12123 case $host_os in
12124 solaris2.[0-5] | solaris2.[0-5].*) ;;
12125 *)
12126 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12127 ;;
12128 esac
12129 fi
12130 ;;
12131 esac
12132 ;;
12133 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12134 no_undefined_flag_CXX='${wl}-z,text'
12135 archive_cmds_need_lc_CXX=no
12136 hardcode_shlibpath_var_CXX=no
12137 runpath_var='LD_RUN_PATH'
12138
12139 case $cc_basename in
12140 CC*)
12141 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143 ;;
12144 *)
12145 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12146 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12147 ;;
12148 esac
12149 ;;
12150 sysv5* | sco3.2v5* | sco5v6*)
12151 # Note: We can NOT use -z defs as we might desire, because we do not
12152 # link with -lc, and that would cause any symbols used from libc to
12153 # always be unresolved, which means just about no library would
12154 # ever link correctly. If we're not using GNU ld we use -z text
12155 # though, which does catch some bad symbols but isn't as heavy-handed
12156 # as -z defs.
12157 # For security reasons, it is highly recommended that you always
12158 # use absolute paths for naming shared libraries, and exclude the
12159 # DT_RUNPATH tag from executables and libraries. But doing so
12160 # requires that you compile everything twice, which is a pain.
12161 # So that behaviour is only enabled if SCOABSPATH is set to a
12162 # non-empty value in the environment. Most likely only useful for
12163 # creating official distributions of packages.
12164 # This is a hack until libtool officially supports absolute path
12165 # names for shared libraries.
12166 no_undefined_flag_CXX='${wl}-z,text'
12167 allow_undefined_flag_CXX='${wl}-z,nodefs'
12168 archive_cmds_need_lc_CXX=no
12169 hardcode_shlibpath_var_CXX=no
12170 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12171 hardcode_libdir_separator_CXX=':'
12172 link_all_deplibs_CXX=yes
12173 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12174 runpath_var='LD_RUN_PATH'
12175
12176 case $cc_basename in
12177 CC*)
12178 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12179 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12180 ;;
12181 *)
12182 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12183 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12184 ;;
12185 esac
12186 ;;
12187 tandem*)
12188 case $cc_basename in
12189 NCC*)
12190 # NonStop-UX NCC 3.20
12191 # FIXME: insert proper C++ library support
12192 ld_shlibs_CXX=no
12193 ;;
12194 *)
12195 # FIXME: insert proper C++ library support
12196 ld_shlibs_CXX=no
12197 ;;
12198 esac
12199 ;;
12200 vxworks*)
12201 # FIXME: insert proper C++ library support
12202 ld_shlibs_CXX=no
12203 ;;
12204 *)
12205 # FIXME: insert proper C++ library support
12206 ld_shlibs_CXX=no
12207 ;;
12208 esac
12209 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12210 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12211 test "$ld_shlibs_CXX" = no && can_build_shared=no
12212
12213 GCC_CXX="$GXX"
12214 LD_CXX="$LD"
12215
12216 cat > conftest.$ac_ext <<EOF
12217 class Foo
12218 {
12219 public:
12220 Foo (void) { a = 0; }
12221 private:
12222 int a;
12223 };
12224 EOF
12225
12226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12227 (eval $ac_compile) 2>&5
12228 ac_status=$?
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; then
12231 # Parse the compiler output and extract the necessary
12232 # objects, libraries and library flags.
12233
12234 # Sentinel used to keep track of whether or not we are before
12235 # the conftest object file.
12236 pre_test_object_deps_done=no
12237
12238 # The `*' in the case matches for architectures that use `case' in
12239 # $output_verbose_cmd can trigger glob expansion during the loop
12240 # eval without this substitution.
12241 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12242
12243 for p in `eval $output_verbose_link_cmd`; do
12244 case $p in
12245
12246 -L* | -R* | -l*)
12247 # Some compilers place space between "-{L,R}" and the path.
12248 # Remove the space.
12249 if test $p = "-L" \
12250 || test $p = "-R"; then
12251 prev=$p
12252 continue
12253 else
12254 prev=
12255 fi
12256
12257 if test "$pre_test_object_deps_done" = no; then
12258 case $p in
12259 -L* | -R*)
12260 # Internal compiler library paths should come after those
12261 # provided the user. The postdeps already come after the
12262 # user supplied libs so there is no need to process them.
12263 if test -z "$compiler_lib_search_path_CXX"; then
12264 compiler_lib_search_path_CXX="${prev}${p}"
12265 else
12266 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12267 fi
12268 ;;
12269 # The "-l" case would never come before the object being
12270 # linked, so don't bother handling this case.
12271 esac
12272 else
12273 if test -z "$postdeps_CXX"; then
12274 postdeps_CXX="${prev}${p}"
12275 else
12276 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12277 fi
12278 fi
12279 ;;
12280
12281 *.$objext)
12282 # This assumes that the test object file only shows up
12283 # once in the compiler output.
12284 if test "$p" = "conftest.$objext"; then
12285 pre_test_object_deps_done=yes
12286 continue
12287 fi
12288
12289 if test "$pre_test_object_deps_done" = no; then
12290 if test -z "$predep_objects_CXX"; then
12291 predep_objects_CXX="$p"
12292 else
12293 predep_objects_CXX="$predep_objects_CXX $p"
12294 fi
12295 else
12296 if test -z "$postdep_objects_CXX"; then
12297 postdep_objects_CXX="$p"
12298 else
12299 postdep_objects_CXX="$postdep_objects_CXX $p"
12300 fi
12301 fi
12302 ;;
12303
12304 *) ;; # Ignore the rest.
12305
12306 esac
12307 done
12308
12309 # Clean up.
12310 rm -f a.out a.exe
12311 else
12312 echo "libtool.m4: error: problem compiling CXX test program"
12313 fi
12314
12315 $rm -f confest.$objext
12316
12317 compiler_lib_search_dirs_CXX=
12318 if test -n "$compiler_lib_search_path_CXX"; then
12319 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12320 fi
12321
12322 # PORTME: override above test on systems where it is broken
12323 case $host_os in
12324 interix[3-9]*)
12325 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12326 # hack all around it, let's just trust "g++" to DTRT.
12327 predep_objects_CXX=
12328 postdep_objects_CXX=
12329 postdeps_CXX=
12330 ;;
12331
12332 linux*)
12333 case `$CC -V 2>&1 | sed 5q` in
12334 *Sun\ C*)
12335 # Sun C++ 5.9
12336 #
12337 # The more standards-conforming stlport4 library is
12338 # incompatible with the Cstd library. Avoid specifying
12339 # it if it's in CXXFLAGS. Ignore libCrun as
12340 # -library=stlport4 depends on it.
12341 case " $CXX $CXXFLAGS " in
12342 *" -library=stlport4 "*)
12343 solaris_use_stlport4=yes
12344 ;;
12345 esac
12346 if test "$solaris_use_stlport4" != yes; then
12347 postdeps_CXX='-library=Cstd -library=Crun'
12348 fi
12349 ;;
12350 esac
12351 ;;
12352
12353 solaris*)
12354 case $cc_basename in
12355 CC*)
12356 # The more standards-conforming stlport4 library is
12357 # incompatible with the Cstd library. Avoid specifying
12358 # it if it's in CXXFLAGS. Ignore libCrun as
12359 # -library=stlport4 depends on it.
12360 case " $CXX $CXXFLAGS " in
12361 *" -library=stlport4 "*)
12362 solaris_use_stlport4=yes
12363 ;;
12364 esac
12365
12366 # Adding this requires a known-good setup of shared libraries for
12367 # Sun compiler versions before 5.6, else PIC objects from an old
12368 # archive will be linked into the output, leading to subtle bugs.
12369 if test "$solaris_use_stlport4" != yes; then
12370 postdeps_CXX='-library=Cstd -library=Crun'
12371 fi
12372 ;;
12373 esac
12374 ;;
12375 esac
12376
12377 case " $postdeps_CXX " in
12378 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12379 esac
12380
12381 lt_prog_compiler_wl_CXX=
12382 lt_prog_compiler_pic_CXX=
12383 lt_prog_compiler_static_CXX=
12384
12385 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12386 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12387
12388 # C++ specific cases for pic, static, wl, etc.
12389 if test "$GXX" = yes; then
12390 lt_prog_compiler_wl_CXX='-Wl,'
12391 lt_prog_compiler_static_CXX='-static'
12392
12393 case $host_os in
12394 aix*)
12395 # All AIX code is PIC.
12396 if test "$host_cpu" = ia64; then
12397 # AIX 5 now supports IA64 processor
12398 lt_prog_compiler_static_CXX='-Bstatic'
12399 fi
12400 ;;
12401 amigaos*)
12402 # FIXME: we need at least 68020 code to build shared libraries, but
12403 # adding the `-m68020' flag to GCC prevents building anything better,
12404 # like `-m68040'.
12405 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12406 ;;
12407 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12408 # PIC is the default for these OSes.
12409 ;;
12410 mingw* | cygwin* | os2* | pw32*)
12411 # This hack is so that the source file can tell whether it is being
12412 # built for inclusion in a dll (and should export symbols for example).
12413 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12414 # (--disable-auto-import) libraries
12415 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12416 ;;
12417 darwin* | rhapsody*)
12418 # PIC is the default on this platform
12419 # Common symbols not allowed in MH_DYLIB files
12420 lt_prog_compiler_pic_CXX='-fno-common'
12421 ;;
12422 *djgpp*)
12423 # DJGPP does not support shared libraries at all
12424 lt_prog_compiler_pic_CXX=
12425 ;;
12426 interix[3-9]*)
12427 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12428 # Instead, we relocate shared libraries at runtime.
12429 ;;
12430 sysv4*MP*)
12431 if test -d /usr/nec; then
12432 lt_prog_compiler_pic_CXX=-Kconform_pic
12433 fi
12434 ;;
12435 hpux*)
12436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12437 # not for PA HP-UX.
12438 case $host_cpu in
12439 hppa*64*|ia64*)
12440 ;;
12441 *)
12442 lt_prog_compiler_pic_CXX='-fPIC'
12443 ;;
12444 esac
12445 ;;
12446 *)
12447 lt_prog_compiler_pic_CXX='-fPIC'
12448 ;;
12449 esac
12450 else
12451 case $host_os in
12452 aix[4-9]*)
12453 # All AIX code is PIC.
12454 if test "$host_cpu" = ia64; then
12455 # AIX 5 now supports IA64 processor
12456 lt_prog_compiler_static_CXX='-Bstatic'
12457 else
12458 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12459 fi
12460 ;;
12461 chorus*)
12462 case $cc_basename in
12463 cxch68*)
12464 # Green Hills C++ Compiler
12465 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12466 ;;
12467 esac
12468 ;;
12469 darwin*)
12470 # PIC is the default on this platform
12471 # Common symbols not allowed in MH_DYLIB files
12472 case $cc_basename in
12473 xlc*)
12474 lt_prog_compiler_pic_CXX='-qnocommon'
12475 lt_prog_compiler_wl_CXX='-Wl,'
12476 ;;
12477 esac
12478 ;;
12479 dgux*)
12480 case $cc_basename in
12481 ec++*)
12482 lt_prog_compiler_pic_CXX='-KPIC'
12483 ;;
12484 ghcx*)
12485 # Green Hills C++ Compiler
12486 lt_prog_compiler_pic_CXX='-pic'
12487 ;;
12488 *)
12489 ;;
12490 esac
12491 ;;
12492 freebsd* | dragonfly*)
12493 # FreeBSD uses GNU C++
12494 ;;
12495 hpux9* | hpux10* | hpux11*)
12496 case $cc_basename in
12497 CC*)
12498 lt_prog_compiler_wl_CXX='-Wl,'
12499 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12500 if test "$host_cpu" != ia64; then
12501 lt_prog_compiler_pic_CXX='+Z'
12502 fi
12503 ;;
12504 aCC*)
12505 lt_prog_compiler_wl_CXX='-Wl,'
12506 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12507 case $host_cpu in
12508 hppa*64*|ia64*)
12509 # +Z the default
12510 ;;
12511 *)
12512 lt_prog_compiler_pic_CXX='+Z'
12513 ;;
12514 esac
12515 ;;
12516 *)
12517 ;;
12518 esac
12519 ;;
12520 interix*)
12521 # This is c89, which is MS Visual C++ (no shared libs)
12522 # Anyone wants to do a port?
12523 ;;
12524 irix5* | irix6* | nonstopux*)
12525 case $cc_basename in
12526 CC*)
12527 lt_prog_compiler_wl_CXX='-Wl,'
12528 lt_prog_compiler_static_CXX='-non_shared'
12529 # CC pic flag -KPIC is the default.
12530 ;;
12531 *)
12532 ;;
12533 esac
12534 ;;
12535 linux* | k*bsd*-gnu)
12536 case $cc_basename in
12537 KCC*)
12538 # KAI C++ Compiler
12539 lt_prog_compiler_wl_CXX='--backend -Wl,'
12540 lt_prog_compiler_pic_CXX='-fPIC'
12541 ;;
12542 icpc* | ecpc*)
12543 # Intel C++
12544 lt_prog_compiler_wl_CXX='-Wl,'
12545 lt_prog_compiler_pic_CXX='-KPIC'
12546 lt_prog_compiler_static_CXX='-static'
12547 ;;
12548 pgCC* | pgcpp*)
12549 # Portland Group C++ compiler.
12550 lt_prog_compiler_wl_CXX='-Wl,'
12551 lt_prog_compiler_pic_CXX='-fpic'
12552 lt_prog_compiler_static_CXX='-Bstatic'
12553 ;;
12554 cxx*)
12555 # Compaq C++
12556 # Make sure the PIC flag is empty. It appears that all Alpha
12557 # Linux and Compaq Tru64 Unix objects are PIC.
12558 lt_prog_compiler_pic_CXX=
12559 lt_prog_compiler_static_CXX='-non_shared'
12560 ;;
12561 *)
12562 case `$CC -V 2>&1 | sed 5q` in
12563 *Sun\ C*)
12564 # Sun C++ 5.9
12565 lt_prog_compiler_pic_CXX='-KPIC'
12566 lt_prog_compiler_static_CXX='-Bstatic'
12567 lt_prog_compiler_wl_CXX='-Qoption ld '
12568 ;;
12569 esac
12570 ;;
12571 esac
12572 ;;
12573 lynxos*)
12574 ;;
12575 m88k*)
12576 ;;
12577 mvs*)
12578 case $cc_basename in
12579 cxx*)
12580 lt_prog_compiler_pic_CXX='-W c,exportall'
12581 ;;
12582 *)
12583 ;;
12584 esac
12585 ;;
12586 netbsd* | netbsdelf*-gnu)
12587 ;;
12588 osf3* | osf4* | osf5*)
12589 case $cc_basename in
12590 KCC*)
12591 lt_prog_compiler_wl_CXX='--backend -Wl,'
12592 ;;
12593 RCC*)
12594 # Rational C++ 2.4.1
12595 lt_prog_compiler_pic_CXX='-pic'
12596 ;;
12597 cxx*)
12598 # Digital/Compaq C++
12599 lt_prog_compiler_wl_CXX='-Wl,'
12600 # Make sure the PIC flag is empty. It appears that all Alpha
12601 # Linux and Compaq Tru64 Unix objects are PIC.
12602 lt_prog_compiler_pic_CXX=
12603 lt_prog_compiler_static_CXX='-non_shared'
12604 ;;
12605 *)
12606 ;;
12607 esac
12608 ;;
12609 psos*)
12610 ;;
12611 solaris*)
12612 case $cc_basename in
12613 CC*)
12614 # Sun C++ 4.2, 5.x and Centerline C++
12615 lt_prog_compiler_pic_CXX='-KPIC'
12616 lt_prog_compiler_static_CXX='-Bstatic'
12617 lt_prog_compiler_wl_CXX='-Qoption ld '
12618 ;;
12619 gcx*)
12620 # Green Hills C++ Compiler
12621 lt_prog_compiler_pic_CXX='-PIC'
12622 ;;
12623 *)
12624 ;;
12625 esac
12626 ;;
12627 sunos4*)
12628 case $cc_basename in
12629 CC*)
12630 # Sun C++ 4.x
12631 lt_prog_compiler_pic_CXX='-pic'
12632 lt_prog_compiler_static_CXX='-Bstatic'
12633 ;;
12634 lcc*)
12635 # Lucid
12636 lt_prog_compiler_pic_CXX='-pic'
12637 ;;
12638 *)
12639 ;;
12640 esac
12641 ;;
12642 tandem*)
12643 case $cc_basename in
12644 NCC*)
12645 # NonStop-UX NCC 3.20
12646 lt_prog_compiler_pic_CXX='-KPIC'
12647 ;;
12648 *)
12649 ;;
12650 esac
12651 ;;
12652 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12653 case $cc_basename in
12654 CC*)
12655 lt_prog_compiler_wl_CXX='-Wl,'
12656 lt_prog_compiler_pic_CXX='-KPIC'
12657 lt_prog_compiler_static_CXX='-Bstatic'
12658 ;;
12659 esac
12660 ;;
12661 vxworks*)
12662 ;;
12663 *)
12664 lt_prog_compiler_can_build_shared_CXX=no
12665 ;;
12666 esac
12667 fi
12668
12669 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12670 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12671
12672 #
12673 # Check to make sure the PIC flag actually works.
12674 #
12675 if test -n "$lt_prog_compiler_pic_CXX"; then
12676
12677 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12678 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12679 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682 lt_cv_prog_compiler_pic_works_CXX=no
12683 ac_outfile=conftest.$ac_objext
12684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12685 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12686 # Insert the option either (1) after the last *FLAGS variable, or
12687 # (2) before a word containing "conftest.", or (3) at the end.
12688 # Note that $ac_compile itself does not contain backslashes and begins
12689 # with a dollar sign (not a hyphen), so the echo should work correctly.
12690 # The option is referenced via a variable to avoid confusing sed.
12691 lt_compile=`echo "$ac_compile" | $SED \
12692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12694 -e 's:$: $lt_compiler_flag:'`
12695 (eval echo "\"\$as_me:12696: $lt_compile\"" >&5)
12696 (eval "$lt_compile" 2>conftest.err)
12697 ac_status=$?
12698 cat conftest.err >&5
12699 echo "$as_me:12700: \$? = $ac_status" >&5
12700 if (exit $ac_status) && test -s "$ac_outfile"; then
12701 # The compiler can only warn and ignore the option if not recognized
12702 # So say no if there are warnings other than the usual output.
12703 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12706 lt_cv_prog_compiler_pic_works_CXX=yes
12707 fi
12708 fi
12709 $rm conftest*
12710
12711 fi
12712 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12713 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12714
12715 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12716 case $lt_prog_compiler_pic_CXX in
12717 "" | " "*) ;;
12718 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12719 esac
12720 else
12721 lt_prog_compiler_pic_CXX=
12722 lt_prog_compiler_can_build_shared_CXX=no
12723 fi
12724
12725 fi
12726 case $host_os in
12727 # For platforms which do not support PIC, -DPIC is meaningless:
12728 *djgpp*)
12729 lt_prog_compiler_pic_CXX=
12730 ;;
12731 *)
12732 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12733 ;;
12734 esac
12735
12736 #
12737 # Check to make sure the static flag actually works.
12738 #
12739 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12740 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12741 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12742 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745 lt_cv_prog_compiler_static_works_CXX=no
12746 save_LDFLAGS="$LDFLAGS"
12747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12750 # The linker can only warn and ignore the option if not recognized
12751 # So say no if there are warnings
12752 if test -s conftest.err; then
12753 # Append any errors to the config.log.
12754 cat conftest.err 1>&5
12755 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12757 if diff conftest.exp conftest.er2 >/dev/null; then
12758 lt_cv_prog_compiler_static_works_CXX=yes
12759 fi
12760 else
12761 lt_cv_prog_compiler_static_works_CXX=yes
12762 fi
12763 fi
12764 $rm -r conftest*
12765 LDFLAGS="$save_LDFLAGS"
12766
12767 fi
12768 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12769 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12770
12771 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12772 :
12773 else
12774 lt_prog_compiler_static_CXX=
12775 fi
12776
12777
12778 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12780 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 else
12783 lt_cv_prog_compiler_c_o_CXX=no
12784 $rm -r conftest 2>/dev/null
12785 mkdir conftest
12786 cd conftest
12787 mkdir out
12788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12789
12790 lt_compiler_flag="-o out/conftest2.$ac_objext"
12791 # Insert the option either (1) after the last *FLAGS variable, or
12792 # (2) before a word containing "conftest.", or (3) at the end.
12793 # Note that $ac_compile itself does not contain backslashes and begins
12794 # with a dollar sign (not a hyphen), so the echo should work correctly.
12795 lt_compile=`echo "$ac_compile" | $SED \
12796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12798 -e 's:$: $lt_compiler_flag:'`
12799 (eval echo "\"\$as_me:12800: $lt_compile\"" >&5)
12800 (eval "$lt_compile" 2>out/conftest.err)
12801 ac_status=$?
12802 cat out/conftest.err >&5
12803 echo "$as_me:12804: \$? = $ac_status" >&5
12804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12805 then
12806 # The compiler can only warn and ignore the option if not recognized
12807 # So say no if there are warnings
12808 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12811 lt_cv_prog_compiler_c_o_CXX=yes
12812 fi
12813 fi
12814 chmod u+w . 2>&5
12815 $rm conftest*
12816 # SGI C++ compiler will create directory out/ii_files/ for
12817 # template instantiation
12818 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12819 $rm out/* && rmdir out
12820 cd ..
12821 rmdir conftest
12822 $rm conftest*
12823
12824 fi
12825 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12826 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12827
12828
12829 hard_links="nottested"
12830 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12831 # do not overwrite the value of need_locks provided by the user
12832 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12833 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12834 hard_links=yes
12835 $rm conftest*
12836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12837 touch conftest.a
12838 ln conftest.a conftest.b 2>&5 || hard_links=no
12839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12840 { echo "$as_me:$LINENO: result: $hard_links" >&5
12841 echo "${ECHO_T}$hard_links" >&6; }
12842 if test "$hard_links" = no; then
12843 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12844 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12845 need_locks=warn
12846 fi
12847 else
12848 need_locks=no
12849 fi
12850
12851 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12853
12854 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12855 case $host_os in
12856 aix[4-9]*)
12857 # If we're using GNU nm, then we don't want the "-C" option.
12858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12859 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12860 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12861 else
12862 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12863 fi
12864 ;;
12865 pw32*)
12866 export_symbols_cmds_CXX="$ltdll_cmds"
12867 ;;
12868 cygwin* | mingw*)
12869 export_symbols_cmds_CXX='$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'
12870 ;;
12871 linux* | k*bsd*-gnu)
12872 link_all_deplibs_CXX=no
12873 ;;
12874 *)
12875 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12876 ;;
12877 esac
12878 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12879
12880 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12881 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12882 test "$ld_shlibs_CXX" = no && can_build_shared=no
12883
12884 #
12885 # Do we need to explicitly link libc?
12886 #
12887 case "x$archive_cmds_need_lc_CXX" in
12888 x|xyes)
12889 # Assume -lc should be added
12890 archive_cmds_need_lc_CXX=yes
12891
12892 if test "$enable_shared" = yes && test "$GCC" = yes; then
12893 case $archive_cmds_CXX in
12894 *'~'*)
12895 # FIXME: we may have to deal with multi-command sequences.
12896 ;;
12897 '$CC '*)
12898 # Test whether the compiler implicitly links with -lc since on some
12899 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12900 # to ld, don't add -lc before -lgcc.
12901 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12902 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12903 $rm conftest*
12904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12905
12906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907 (eval $ac_compile) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } 2>conftest.err; then
12911 soname=conftest
12912 lib=conftest
12913 libobjs=conftest.$ac_objext
12914 deplibs=
12915 wl=$lt_prog_compiler_wl_CXX
12916 pic_flag=$lt_prog_compiler_pic_CXX
12917 compiler_flags=-v
12918 linker_flags=-v
12919 verstring=
12920 output_objdir=.
12921 libname=conftest
12922 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12923 allow_undefined_flag_CXX=
12924 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12925 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }
12929 then
12930 archive_cmds_need_lc_CXX=no
12931 else
12932 archive_cmds_need_lc_CXX=yes
12933 fi
12934 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12935 else
12936 cat conftest.err 1>&5
12937 fi
12938 $rm conftest*
12939 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12940 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12941 ;;
12942 esac
12943 fi
12944 ;;
12945 esac
12946
12947 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12948 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12949 library_names_spec=
12950 libname_spec='lib$name'
12951 soname_spec=
12952 shrext_cmds=".so"
12953 postinstall_cmds=
12954 postuninstall_cmds=
12955 finish_cmds=
12956 finish_eval=
12957 shlibpath_var=
12958 shlibpath_overrides_runpath=unknown
12959 version_type=none
12960 dynamic_linker="$host_os ld.so"
12961 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12962
12963 need_lib_prefix=unknown
12964 hardcode_into_libs=no
12965
12966 # when you set need_version to no, make sure it does not cause -set_version
12967 # flags to be left without arguments
12968 need_version=unknown
12969
12970 case $host_os in
12971 aix3*)
12972 version_type=linux
12973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12974 shlibpath_var=LIBPATH
12975
12976 # AIX 3 has no versioning support, so we append a major version to the name.
12977 soname_spec='${libname}${release}${shared_ext}$major'
12978 ;;
12979
12980 aix[4-9]*)
12981 version_type=linux
12982 need_lib_prefix=no
12983 need_version=no
12984 hardcode_into_libs=yes
12985 if test "$host_cpu" = ia64; then
12986 # AIX 5 supports IA64
12987 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12988 shlibpath_var=LD_LIBRARY_PATH
12989 else
12990 # With GCC up to 2.95.x, collect2 would create an import file
12991 # for dependence libraries. The import file would start with
12992 # the line `#! .'. This would cause the generated library to
12993 # depend on `.', always an invalid library. This was fixed in
12994 # development snapshots of GCC prior to 3.0.
12995 case $host_os in
12996 aix4 | aix4.[01] | aix4.[01].*)
12997 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12998 echo ' yes '
12999 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13000 :
13001 else
13002 can_build_shared=no
13003 fi
13004 ;;
13005 esac
13006 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13007 # soname into executable. Probably we can add versioning support to
13008 # collect2, so additional links can be useful in future.
13009 if test "$aix_use_runtimelinking" = yes; then
13010 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13011 # instead of lib<name>.a to let people know that these are not
13012 # typical AIX shared libraries.
13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014 else
13015 # We preserve .a as extension for shared libraries through AIX4.2
13016 # and later when we are not doing run time linking.
13017 library_names_spec='${libname}${release}.a $libname.a'
13018 soname_spec='${libname}${release}${shared_ext}$major'
13019 fi
13020 shlibpath_var=LIBPATH
13021 fi
13022 ;;
13023
13024 amigaos*)
13025 library_names_spec='$libname.ixlibrary $libname.a'
13026 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13027 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'
13028 ;;
13029
13030 beos*)
13031 library_names_spec='${libname}${shared_ext}'
13032 dynamic_linker="$host_os ld.so"
13033 shlibpath_var=LIBRARY_PATH
13034 ;;
13035
13036 bsdi[45]*)
13037 version_type=linux
13038 need_version=no
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040 soname_spec='${libname}${release}${shared_ext}$major'
13041 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13042 shlibpath_var=LD_LIBRARY_PATH
13043 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13044 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13045 # the default ld.so.conf also contains /usr/contrib/lib and
13046 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13047 # libtool to hard-code these into programs
13048 ;;
13049
13050 cygwin* | mingw* | pw32*)
13051 version_type=windows
13052 shrext_cmds=".dll"
13053 need_version=no
13054 need_lib_prefix=no
13055
13056 case $GCC,$host_os in
13057 yes,cygwin* | yes,mingw* | yes,pw32*)
13058 library_names_spec='$libname.dll.a'
13059 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13060 postinstall_cmds='base_file=`basename \${file}`~
13061 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13062 dldir=$destdir/`dirname \$dlpath`~
13063 test -d \$dldir || mkdir -p \$dldir~
13064 $install_prog $dir/$dlname \$dldir/$dlname~
13065 chmod a+x \$dldir/$dlname'
13066 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13067 dlpath=$dir/\$dldll~
13068 $rm \$dlpath'
13069 shlibpath_overrides_runpath=yes
13070
13071 case $host_os in
13072 cygwin*)
13073 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13074 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13075 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13076 ;;
13077 mingw*)
13078 # MinGW DLLs use traditional 'lib' prefix
13079 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13080 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13081 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13082 # It is most probably a Windows format PATH printed by
13083 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13084 # path with ; separators, and with drive letters. We can handle the
13085 # drive letters (cygwin fileutils understands them), so leave them,
13086 # especially as we might pass files found there to a mingw objdump,
13087 # which wouldn't understand a cygwinified path. Ahh.
13088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13089 else
13090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13091 fi
13092 ;;
13093 pw32*)
13094 # pw32 DLLs use 'pw' prefix rather than 'lib'
13095 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13096 ;;
13097 esac
13098 ;;
13099
13100 *)
13101 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13102 ;;
13103 esac
13104 dynamic_linker='Win32 ld.exe'
13105 # FIXME: first we should search . and the directory the executable is in
13106 shlibpath_var=PATH
13107 ;;
13108
13109 darwin* | rhapsody*)
13110 dynamic_linker="$host_os dyld"
13111 version_type=darwin
13112 need_lib_prefix=no
13113 need_version=no
13114 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13115 soname_spec='${libname}${release}${major}$shared_ext'
13116 shlibpath_overrides_runpath=yes
13117 shlibpath_var=DYLD_LIBRARY_PATH
13118 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13119
13120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13121 ;;
13122
13123 dgux*)
13124 version_type=linux
13125 need_lib_prefix=no
13126 need_version=no
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13128 soname_spec='${libname}${release}${shared_ext}$major'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 ;;
13131
13132 freebsd1*)
13133 dynamic_linker=no
13134 ;;
13135
13136 freebsd* | dragonfly*)
13137 # DragonFly does not have aout. When/if they implement a new
13138 # versioning mechanism, adjust this.
13139 if test -x /usr/bin/objformat; then
13140 objformat=`/usr/bin/objformat`
13141 else
13142 case $host_os in
13143 freebsd[123]*) objformat=aout ;;
13144 *) objformat=elf ;;
13145 esac
13146 fi
13147 version_type=freebsd-$objformat
13148 case $version_type in
13149 freebsd-elf*)
13150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13151 need_version=no
13152 need_lib_prefix=no
13153 ;;
13154 freebsd-*)
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13156 need_version=yes
13157 ;;
13158 esac
13159 shlibpath_var=LD_LIBRARY_PATH
13160 case $host_os in
13161 freebsd2*)
13162 shlibpath_overrides_runpath=yes
13163 ;;
13164 freebsd3.[01]* | freebsdelf3.[01]*)
13165 shlibpath_overrides_runpath=yes
13166 hardcode_into_libs=yes
13167 ;;
13168 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13169 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13170 shlibpath_overrides_runpath=no
13171 hardcode_into_libs=yes
13172 ;;
13173 *) # from 4.6 on, and DragonFly
13174 shlibpath_overrides_runpath=yes
13175 hardcode_into_libs=yes
13176 ;;
13177 esac
13178 ;;
13179
13180 gnu*)
13181 version_type=linux
13182 need_lib_prefix=no
13183 need_version=no
13184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13185 soname_spec='${libname}${release}${shared_ext}$major'
13186 shlibpath_var=LD_LIBRARY_PATH
13187 hardcode_into_libs=yes
13188 ;;
13189
13190 hpux9* | hpux10* | hpux11*)
13191 # Give a soname corresponding to the major version so that dld.sl refuses to
13192 # link against other versions.
13193 version_type=sunos
13194 need_lib_prefix=no
13195 need_version=no
13196 case $host_cpu in
13197 ia64*)
13198 shrext_cmds='.so'
13199 hardcode_into_libs=yes
13200 dynamic_linker="$host_os dld.so"
13201 shlibpath_var=LD_LIBRARY_PATH
13202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13204 soname_spec='${libname}${release}${shared_ext}$major'
13205 if test "X$HPUX_IA64_MODE" = X32; then
13206 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13207 else
13208 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13209 fi
13210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13211 ;;
13212 hppa*64*)
13213 shrext_cmds='.sl'
13214 hardcode_into_libs=yes
13215 dynamic_linker="$host_os dld.sl"
13216 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219 soname_spec='${libname}${release}${shared_ext}$major'
13220 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13222 ;;
13223 *)
13224 shrext_cmds='.sl'
13225 dynamic_linker="$host_os dld.sl"
13226 shlibpath_var=SHLIB_PATH
13227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13229 soname_spec='${libname}${release}${shared_ext}$major'
13230 ;;
13231 esac
13232 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13233 postinstall_cmds='chmod 555 $lib'
13234 ;;
13235
13236 interix[3-9]*)
13237 version_type=linux
13238 need_lib_prefix=no
13239 need_version=no
13240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13241 soname_spec='${libname}${release}${shared_ext}$major'
13242 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13243 shlibpath_var=LD_LIBRARY_PATH
13244 shlibpath_overrides_runpath=no
13245 hardcode_into_libs=yes
13246 ;;
13247
13248 irix5* | irix6* | nonstopux*)
13249 case $host_os in
13250 nonstopux*) version_type=nonstopux ;;
13251 *)
13252 if test "$lt_cv_prog_gnu_ld" = yes; then
13253 version_type=linux
13254 else
13255 version_type=irix
13256 fi ;;
13257 esac
13258 need_lib_prefix=no
13259 need_version=no
13260 soname_spec='${libname}${release}${shared_ext}$major'
13261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13262 case $host_os in
13263 irix5* | nonstopux*)
13264 libsuff= shlibsuff=
13265 ;;
13266 *)
13267 case $LD in # libtool.m4 will add one of these switches to LD
13268 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13269 libsuff= shlibsuff= libmagic=32-bit;;
13270 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13271 libsuff=32 shlibsuff=N32 libmagic=N32;;
13272 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13273 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13274 *) libsuff= shlibsuff= libmagic=never-match;;
13275 esac
13276 ;;
13277 esac
13278 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13279 shlibpath_overrides_runpath=no
13280 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13281 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13282 hardcode_into_libs=yes
13283 ;;
13284
13285 # No shared lib support for Linux oldld, aout, or coff.
13286 linux*oldld* | linux*aout* | linux*coff*)
13287 dynamic_linker=no
13288 ;;
13289
13290 # This must be Linux ELF.
13291 linux* | k*bsd*-gnu)
13292 version_type=linux
13293 need_lib_prefix=no
13294 need_version=no
13295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13296 soname_spec='${libname}${release}${shared_ext}$major'
13297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13298 shlibpath_var=LD_LIBRARY_PATH
13299 shlibpath_overrides_runpath=no
13300 # This implies no fast_install, which is unacceptable.
13301 # Some rework will be needed to allow for fast_install
13302 # before this can be enabled.
13303 hardcode_into_libs=yes
13304
13305 # Append ld.so.conf contents to the search path
13306 if test -f /etc/ld.so.conf; then
13307 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' ' '`
13308 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13309 fi
13310
13311 # We used to test for /lib/ld.so.1 and disable shared libraries on
13312 # powerpc, because MkLinux only supported shared libraries with the
13313 # GNU dynamic linker. Since this was broken with cross compilers,
13314 # most powerpc-linux boxes support dynamic linking these days and
13315 # people can always --disable-shared, the test was removed, and we
13316 # assume the GNU/Linux dynamic linker is in use.
13317 dynamic_linker='GNU/Linux ld.so'
13318 ;;
13319
13320 netbsdelf*-gnu)
13321 version_type=linux
13322 need_lib_prefix=no
13323 need_version=no
13324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13325 soname_spec='${libname}${release}${shared_ext}$major'
13326 shlibpath_var=LD_LIBRARY_PATH
13327 shlibpath_overrides_runpath=no
13328 hardcode_into_libs=yes
13329 dynamic_linker='NetBSD ld.elf_so'
13330 ;;
13331
13332 netbsd*)
13333 version_type=sunos
13334 need_lib_prefix=no
13335 need_version=no
13336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13339 dynamic_linker='NetBSD (a.out) ld.so'
13340 else
13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13342 soname_spec='${libname}${release}${shared_ext}$major'
13343 dynamic_linker='NetBSD ld.elf_so'
13344 fi
13345 shlibpath_var=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath=yes
13347 hardcode_into_libs=yes
13348 ;;
13349
13350 newsos6)
13351 version_type=linux
13352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13353 shlibpath_var=LD_LIBRARY_PATH
13354 shlibpath_overrides_runpath=yes
13355 ;;
13356
13357 nto-qnx*)
13358 version_type=linux
13359 need_lib_prefix=no
13360 need_version=no
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 shlibpath_overrides_runpath=yes
13365 ;;
13366
13367 openbsd*)
13368 version_type=sunos
13369 sys_lib_dlsearch_path_spec="/usr/lib"
13370 need_lib_prefix=no
13371 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13372 case $host_os in
13373 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13374 *) need_version=no ;;
13375 esac
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13380 case $host_os in
13381 openbsd2.[89] | openbsd2.[89].*)
13382 shlibpath_overrides_runpath=no
13383 ;;
13384 *)
13385 shlibpath_overrides_runpath=yes
13386 ;;
13387 esac
13388 else
13389 shlibpath_overrides_runpath=yes
13390 fi
13391 ;;
13392
13393 os2*)
13394 libname_spec='$name'
13395 shrext_cmds=".dll"
13396 need_lib_prefix=no
13397 library_names_spec='$libname${shared_ext} $libname.a'
13398 dynamic_linker='OS/2 ld.exe'
13399 shlibpath_var=LIBPATH
13400 ;;
13401
13402 osf3* | osf4* | osf5*)
13403 version_type=osf
13404 need_lib_prefix=no
13405 need_version=no
13406 soname_spec='${libname}${release}${shared_ext}$major'
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13410 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13411 ;;
13412
13413 rdos*)
13414 dynamic_linker=no
13415 ;;
13416
13417 solaris*)
13418 version_type=linux
13419 need_lib_prefix=no
13420 need_version=no
13421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13422 soname_spec='${libname}${release}${shared_ext}$major'
13423 shlibpath_var=LD_LIBRARY_PATH
13424 shlibpath_overrides_runpath=yes
13425 hardcode_into_libs=yes
13426 # ldd complains unless libraries are executable
13427 postinstall_cmds='chmod +x $lib'
13428 ;;
13429
13430 sunos4*)
13431 version_type=sunos
13432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13433 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13434 shlibpath_var=LD_LIBRARY_PATH
13435 shlibpath_overrides_runpath=yes
13436 if test "$with_gnu_ld" = yes; then
13437 need_lib_prefix=no
13438 fi
13439 need_version=yes
13440 ;;
13441
13442 sysv4 | sysv4.3*)
13443 version_type=linux
13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445 soname_spec='${libname}${release}${shared_ext}$major'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 case $host_vendor in
13448 sni)
13449 shlibpath_overrides_runpath=no
13450 need_lib_prefix=no
13451 export_dynamic_flag_spec='${wl}-Blargedynsym'
13452 runpath_var=LD_RUN_PATH
13453 ;;
13454 siemens)
13455 need_lib_prefix=no
13456 ;;
13457 motorola)
13458 need_lib_prefix=no
13459 need_version=no
13460 shlibpath_overrides_runpath=no
13461 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13462 ;;
13463 esac
13464 ;;
13465
13466 sysv4*MP*)
13467 if test -d /usr/nec ;then
13468 version_type=linux
13469 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13470 soname_spec='$libname${shared_ext}.$major'
13471 shlibpath_var=LD_LIBRARY_PATH
13472 fi
13473 ;;
13474
13475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13476 version_type=freebsd-elf
13477 need_lib_prefix=no
13478 need_version=no
13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13480 soname_spec='${libname}${release}${shared_ext}$major'
13481 shlibpath_var=LD_LIBRARY_PATH
13482 hardcode_into_libs=yes
13483 if test "$with_gnu_ld" = yes; then
13484 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13485 shlibpath_overrides_runpath=no
13486 else
13487 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13488 shlibpath_overrides_runpath=yes
13489 case $host_os in
13490 sco3.2v5*)
13491 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13492 ;;
13493 esac
13494 fi
13495 sys_lib_dlsearch_path_spec='/usr/lib'
13496 ;;
13497
13498 uts4*)
13499 version_type=linux
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501 soname_spec='${libname}${release}${shared_ext}$major'
13502 shlibpath_var=LD_LIBRARY_PATH
13503 ;;
13504
13505 *)
13506 dynamic_linker=no
13507 ;;
13508 esac
13509 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13510 echo "${ECHO_T}$dynamic_linker" >&6; }
13511 test "$dynamic_linker" = no && can_build_shared=no
13512
13513 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 else
13516 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13517 fi
13518
13519 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13520 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13524 fi
13525
13526 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13527
13528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13529 if test "$GCC" = yes; then
13530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13531 fi
13532
13533 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13535 hardcode_action_CXX=
13536 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13537 test -n "$runpath_var_CXX" || \
13538 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13539
13540 # We can hardcode non-existant directories.
13541 if test "$hardcode_direct_CXX" != no &&
13542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13543 # have to relink, otherwise we might link with an installed library
13544 # when we should be linking with a yet-to-be-installed one
13545 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13546 test "$hardcode_minus_L_CXX" != no; then
13547 # Linking always hardcodes the temporary library directory.
13548 hardcode_action_CXX=relink
13549 else
13550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13551 hardcode_action_CXX=immediate
13552 fi
13553 else
13554 # We cannot hardcode anything, or else we can only hardcode existing
13555 # directories.
13556 hardcode_action_CXX=unsupported
13557 fi
13558 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13559 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13560
13561 if test "$hardcode_action_CXX" = relink; then
13562 # Fast installation is not supported
13563 enable_fast_install=no
13564 elif test "$shlibpath_overrides_runpath" = yes ||
13565 test "$enable_shared" = no; then
13566 # Fast installation is not necessary
13567 enable_fast_install=needless
13568 fi
13569
13570
13571 # The else clause should only fire when bootstrapping the
13572 # libtool distribution, otherwise you forgot to ship ltmain.sh
13573 # with your package, and you will get complaints that there are
13574 # no rules to generate ltmain.sh.
13575 if test -f "$ltmain"; then
13576 # See if we are running on zsh, and set the options which allow our commands through
13577 # without removal of \ escapes.
13578 if test -n "${ZSH_VERSION+set}" ; then
13579 setopt NO_GLOB_SUBST
13580 fi
13581 # Now quote all the things that may contain metacharacters while being
13582 # careful not to overquote the AC_SUBSTed values. We take copies of the
13583 # variables and quote the copies for generation of the libtool script.
13584 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13585 SED SHELL STRIP \
13586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13588 deplibs_check_method reload_flag reload_cmds need_locks \
13589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13590 lt_cv_sys_global_symbol_to_c_name_address \
13591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13592 old_postinstall_cmds old_postuninstall_cmds \
13593 compiler_CXX \
13594 CC_CXX \
13595 LD_CXX \
13596 lt_prog_compiler_wl_CXX \
13597 lt_prog_compiler_pic_CXX \
13598 lt_prog_compiler_static_CXX \
13599 lt_prog_compiler_no_builtin_flag_CXX \
13600 export_dynamic_flag_spec_CXX \
13601 thread_safe_flag_spec_CXX \
13602 whole_archive_flag_spec_CXX \
13603 enable_shared_with_static_runtimes_CXX \
13604 old_archive_cmds_CXX \
13605 old_archive_from_new_cmds_CXX \
13606 predep_objects_CXX \
13607 postdep_objects_CXX \
13608 predeps_CXX \
13609 postdeps_CXX \
13610 compiler_lib_search_path_CXX \
13611 compiler_lib_search_dirs_CXX \
13612 archive_cmds_CXX \
13613 archive_expsym_cmds_CXX \
13614 postinstall_cmds_CXX \
13615 postuninstall_cmds_CXX \
13616 old_archive_from_expsyms_cmds_CXX \
13617 allow_undefined_flag_CXX \
13618 no_undefined_flag_CXX \
13619 export_symbols_cmds_CXX \
13620 hardcode_libdir_flag_spec_CXX \
13621 hardcode_libdir_flag_spec_ld_CXX \
13622 hardcode_libdir_separator_CXX \
13623 hardcode_automatic_CXX \
13624 module_cmds_CXX \
13625 module_expsym_cmds_CXX \
13626 lt_cv_prog_compiler_c_o_CXX \
13627 fix_srcfile_path_CXX \
13628 exclude_expsyms_CXX \
13629 include_expsyms_CXX; do
13630
13631 case $var in
13632 old_archive_cmds_CXX | \
13633 old_archive_from_new_cmds_CXX | \
13634 archive_cmds_CXX | \
13635 archive_expsym_cmds_CXX | \
13636 module_cmds_CXX | \
13637 module_expsym_cmds_CXX | \
13638 old_archive_from_expsyms_cmds_CXX | \
13639 export_symbols_cmds_CXX | \
13640 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13641 postinstall_cmds | postuninstall_cmds | \
13642 old_postinstall_cmds | old_postuninstall_cmds | \
13643 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13644 # Double-quote double-evaled strings.
13645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13646 ;;
13647 *)
13648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13649 ;;
13650 esac
13651 done
13652
13653 case $lt_echo in
13654 *'\$0 --fallback-echo"')
13655 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13656 ;;
13657 esac
13658
13659 cfgfile="$ofile"
13660
13661 cat <<__EOF__ >> "$cfgfile"
13662 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13663
13664 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13665
13666 # Shell to use when invoking shell scripts.
13667 SHELL=$lt_SHELL
13668
13669 # Whether or not to build shared libraries.
13670 build_libtool_libs=$enable_shared
13671
13672 # Whether or not to build static libraries.
13673 build_old_libs=$enable_static
13674
13675 # Whether or not to add -lc for building shared libraries.
13676 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13677
13678 # Whether or not to disallow shared libs when runtime libs are static
13679 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13680
13681 # Whether or not to optimize for fast installation.
13682 fast_install=$enable_fast_install
13683
13684 # The host system.
13685 host_alias=$host_alias
13686 host=$host
13687 host_os=$host_os
13688
13689 # The build system.
13690 build_alias=$build_alias
13691 build=$build
13692 build_os=$build_os
13693
13694 # An echo program that does not interpret backslashes.
13695 echo=$lt_echo
13696
13697 # The archiver.
13698 AR=$lt_AR
13699 AR_FLAGS=$lt_AR_FLAGS
13700
13701 # A C compiler.
13702 LTCC=$lt_LTCC
13703
13704 # LTCC compiler flags.
13705 LTCFLAGS=$lt_LTCFLAGS
13706
13707 # A language-specific compiler.
13708 CC=$lt_compiler_CXX
13709
13710 # Is the compiler the GNU C compiler?
13711 with_gcc=$GCC_CXX
13712
13713 # An ERE matcher.
13714 EGREP=$lt_EGREP
13715
13716 # The linker used to build libraries.
13717 LD=$lt_LD_CXX
13718
13719 # Whether we need hard or soft links.
13720 LN_S=$lt_LN_S
13721
13722 # A BSD-compatible nm program.
13723 NM=$lt_NM
13724
13725 # A symbol stripping program
13726 STRIP=$lt_STRIP
13727
13728 # Used to examine libraries when file_magic_cmd begins "file"
13729 MAGIC_CMD=$MAGIC_CMD
13730
13731 # Used on cygwin: DLL creation program.
13732 DLLTOOL="$DLLTOOL"
13733
13734 # Used on cygwin: object dumper.
13735 OBJDUMP="$OBJDUMP"
13736
13737 # Used on cygwin: assembler.
13738 AS="$AS"
13739
13740 # The name of the directory that contains temporary libtool files.
13741 objdir=$objdir
13742
13743 # How to create reloadable object files.
13744 reload_flag=$lt_reload_flag
13745 reload_cmds=$lt_reload_cmds
13746
13747 # How to pass a linker flag through the compiler.
13748 wl=$lt_lt_prog_compiler_wl_CXX
13749
13750 # Object file suffix (normally "o").
13751 objext="$ac_objext"
13752
13753 # Old archive suffix (normally "a").
13754 libext="$libext"
13755
13756 # Shared library suffix (normally ".so").
13757 shrext_cmds='$shrext_cmds'
13758
13759 # Executable file suffix (normally "").
13760 exeext="$exeext"
13761
13762 # Additional compiler flags for building library objects.
13763 pic_flag=$lt_lt_prog_compiler_pic_CXX
13764 pic_mode=$pic_mode
13765
13766 # What is the maximum length of a command?
13767 max_cmd_len=$lt_cv_sys_max_cmd_len
13768
13769 # Does compiler simultaneously support -c and -o options?
13770 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13771
13772 # Must we lock files when doing compilation?
13773 need_locks=$lt_need_locks
13774
13775 # Do we need the lib prefix for modules?
13776 need_lib_prefix=$need_lib_prefix
13777
13778 # Do we need a version for libraries?
13779 need_version=$need_version
13780
13781 # Whether dlopen is supported.
13782 dlopen_support=$enable_dlopen
13783
13784 # Whether dlopen of programs is supported.
13785 dlopen_self=$enable_dlopen_self
13786
13787 # Whether dlopen of statically linked programs is supported.
13788 dlopen_self_static=$enable_dlopen_self_static
13789
13790 # Compiler flag to prevent dynamic linking.
13791 link_static_flag=$lt_lt_prog_compiler_static_CXX
13792
13793 # Compiler flag to turn off builtin functions.
13794 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13795
13796 # Compiler flag to allow reflexive dlopens.
13797 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13798
13799 # Compiler flag to generate shared objects directly from archives.
13800 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13801
13802 # Compiler flag to generate thread-safe objects.
13803 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13804
13805 # Library versioning type.
13806 version_type=$version_type
13807
13808 # Format of library name prefix.
13809 libname_spec=$lt_libname_spec
13810
13811 # List of archive names. First name is the real one, the rest are links.
13812 # The last name is the one that the linker finds with -lNAME.
13813 library_names_spec=$lt_library_names_spec
13814
13815 # The coded name of the library, if different from the real name.
13816 soname_spec=$lt_soname_spec
13817
13818 # Commands used to build and install an old-style archive.
13819 RANLIB=$lt_RANLIB
13820 old_archive_cmds=$lt_old_archive_cmds_CXX
13821 old_postinstall_cmds=$lt_old_postinstall_cmds
13822 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13823
13824 # Create an old-style archive from a shared archive.
13825 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13826
13827 # Create a temporary old-style archive to link instead of a shared archive.
13828 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13829
13830 # Commands used to build and install a shared archive.
13831 archive_cmds=$lt_archive_cmds_CXX
13832 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13833 postinstall_cmds=$lt_postinstall_cmds
13834 postuninstall_cmds=$lt_postuninstall_cmds
13835
13836 # Commands used to build a loadable module (assumed same as above if empty)
13837 module_cmds=$lt_module_cmds_CXX
13838 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13839
13840 # Commands to strip libraries.
13841 old_striplib=$lt_old_striplib
13842 striplib=$lt_striplib
13843
13844 # Dependencies to place before the objects being linked to create a
13845 # shared library.
13846 predep_objects=$lt_predep_objects_CXX
13847
13848 # Dependencies to place after the objects being linked to create a
13849 # shared library.
13850 postdep_objects=$lt_postdep_objects_CXX
13851
13852 # Dependencies to place before the objects being linked to create a
13853 # shared library.
13854 predeps=$lt_predeps_CXX
13855
13856 # Dependencies to place after the objects being linked to create a
13857 # shared library.
13858 postdeps=$lt_postdeps_CXX
13859
13860 # The directories searched by this compiler when creating a shared
13861 # library
13862 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13863
13864 # The library search path used internally by the compiler when linking
13865 # a shared library.
13866 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13867
13868 # Method to check whether dependent libraries are shared objects.
13869 deplibs_check_method=$lt_deplibs_check_method
13870
13871 # Command to use when deplibs_check_method == file_magic.
13872 file_magic_cmd=$lt_file_magic_cmd
13873
13874 # Flag that allows shared libraries with undefined symbols to be built.
13875 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13876
13877 # Flag that forces no undefined symbols.
13878 no_undefined_flag=$lt_no_undefined_flag_CXX
13879
13880 # Commands used to finish a libtool library installation in a directory.
13881 finish_cmds=$lt_finish_cmds
13882
13883 # Same as above, but a single script fragment to be evaled but not shown.
13884 finish_eval=$lt_finish_eval
13885
13886 # Take the output of nm and produce a listing of raw symbols and C names.
13887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13888
13889 # Transform the output of nm in a proper C declaration
13890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13891
13892 # Transform the output of nm in a C name address pair
13893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13894
13895 # This is the shared library runtime path variable.
13896 runpath_var=$runpath_var
13897
13898 # This is the shared library path variable.
13899 shlibpath_var=$shlibpath_var
13900
13901 # Is shlibpath searched before the hard-coded library search path?
13902 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13903
13904 # How to hardcode a shared library path into an executable.
13905 hardcode_action=$hardcode_action_CXX
13906
13907 # Whether we should hardcode library paths into libraries.
13908 hardcode_into_libs=$hardcode_into_libs
13909
13910 # Flag to hardcode \$libdir into a binary during linking.
13911 # This must work even if \$libdir does not exist.
13912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13913
13914 # If ld is used when linking, flag to hardcode \$libdir into
13915 # a binary during linking. This must work even if \$libdir does
13916 # not exist.
13917 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13918
13919 # Whether we need a single -rpath flag with a separated argument.
13920 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13921
13922 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13923 # resulting binary.
13924 hardcode_direct=$hardcode_direct_CXX
13925
13926 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13927 # resulting binary.
13928 hardcode_minus_L=$hardcode_minus_L_CXX
13929
13930 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13931 # the resulting binary.
13932 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13933
13934 # Set to yes if building a shared library automatically hardcodes DIR into the library
13935 # and all subsequent libraries and executables linked against it.
13936 hardcode_automatic=$hardcode_automatic_CXX
13937
13938 # Variables whose values should be saved in libtool wrapper scripts and
13939 # restored at relink time.
13940 variables_saved_for_relink="$variables_saved_for_relink"
13941
13942 # Whether libtool must link a program against all its dependency libraries.
13943 link_all_deplibs=$link_all_deplibs_CXX
13944
13945 # Compile-time system search path for libraries
13946 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13947
13948 # Run-time system search path for libraries
13949 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13950
13951 # Fix the shell variable \$srcfile for the compiler.
13952 fix_srcfile_path=$lt_fix_srcfile_path
13953
13954 # Set to yes if exported symbols are required.
13955 always_export_symbols=$always_export_symbols_CXX
13956
13957 # The commands to list exported symbols.
13958 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13959
13960 # The commands to extract the exported symbol list from a shared archive.
13961 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13962
13963 # Symbols that should not be listed in the preloaded symbols.
13964 exclude_expsyms=$lt_exclude_expsyms_CXX
13965
13966 # Symbols that must always be exported.
13967 include_expsyms=$lt_include_expsyms_CXX
13968
13969 # ### END LIBTOOL TAG CONFIG: $tagname
13970
13971 __EOF__
13972
13973
13974 else
13975 # If there is no Makefile yet, we rely on a make rule to execute
13976 # `config.status --recheck' to rerun these tests and create the
13977 # libtool script then.
13978 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13979 if test -f "$ltmain_in"; then
13980 test -f Makefile && make "$ltmain"
13981 fi
13982 fi
13983
13984
13985 ac_ext=c
13986 ac_cpp='$CPP $CPPFLAGS'
13987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13990
13991 CC=$lt_save_CC
13992 LDCXX=$LD
13993 LD=$lt_save_LD
13994 GCC=$lt_save_GCC
13995 with_gnu_ldcxx=$with_gnu_ld
13996 with_gnu_ld=$lt_save_with_gnu_ld
13997 lt_cv_path_LDCXX=$lt_cv_path_LD
13998 lt_cv_path_LD=$lt_save_path_LD
13999 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14000 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14001
14002 else
14003 tagname=""
14004 fi
14005 ;;
14006
14007 F77)
14008 if test -n "$F77" && test "X$F77" != "Xno"; then
14009
14010 ac_ext=f
14011 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14012 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14013 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14014
14015
14016 archive_cmds_need_lc_F77=no
14017 allow_undefined_flag_F77=
14018 always_export_symbols_F77=no
14019 archive_expsym_cmds_F77=
14020 export_dynamic_flag_spec_F77=
14021 hardcode_direct_F77=no
14022 hardcode_libdir_flag_spec_F77=
14023 hardcode_libdir_flag_spec_ld_F77=
14024 hardcode_libdir_separator_F77=
14025 hardcode_minus_L_F77=no
14026 hardcode_automatic_F77=no
14027 module_cmds_F77=
14028 module_expsym_cmds_F77=
14029 link_all_deplibs_F77=unknown
14030 old_archive_cmds_F77=$old_archive_cmds
14031 no_undefined_flag_F77=
14032 whole_archive_flag_spec_F77=
14033 enable_shared_with_static_runtimes_F77=no
14034
14035 # Source file extension for f77 test sources.
14036 ac_ext=f
14037
14038 # Object file extension for compiled f77 test sources.
14039 objext=o
14040 objext_F77=$objext
14041
14042 # Code to be used in simple compile tests
14043 lt_simple_compile_test_code="\
14044 subroutine t
14045 return
14046 end
14047 "
14048
14049 # Code to be used in simple link tests
14050 lt_simple_link_test_code="\
14051 program t
14052 end
14053 "
14054
14055 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14056
14057 # If no C compiler was specified, use CC.
14058 LTCC=${LTCC-"$CC"}
14059
14060 # If no C compiler flags were specified, use CFLAGS.
14061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14062
14063 # Allow CC to be a program name with arguments.
14064 compiler=$CC
14065
14066
14067 # save warnings/boilerplate of simple test code
14068 ac_outfile=conftest.$ac_objext
14069 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14071 _lt_compiler_boilerplate=`cat conftest.err`
14072 $rm conftest*
14073
14074 ac_outfile=conftest.$ac_objext
14075 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14077 _lt_linker_boilerplate=`cat conftest.err`
14078 $rm -r conftest*
14079
14080
14081 # Allow CC to be a program name with arguments.
14082 lt_save_CC="$CC"
14083 CC=${F77-"f77"}
14084 compiler=$CC
14085 compiler_F77=$CC
14086 for cc_temp in $compiler""; do
14087 case $cc_temp in
14088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14090 \-*) ;;
14091 *) break;;
14092 esac
14093 done
14094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14095
14096
14097 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14098 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14099 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14100 echo "${ECHO_T}$can_build_shared" >&6; }
14101
14102 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14103 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14104 test "$can_build_shared" = "no" && enable_shared=no
14105
14106 # On AIX, shared libraries and static libraries use the same namespace, and
14107 # are all built from PIC.
14108 case $host_os in
14109 aix3*)
14110 test "$enable_shared" = yes && enable_static=no
14111 if test -n "$RANLIB"; then
14112 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14113 postinstall_cmds='$RANLIB $lib'
14114 fi
14115 ;;
14116 aix[4-9]*)
14117 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14118 test "$enable_shared" = yes && enable_static=no
14119 fi
14120 ;;
14121 esac
14122 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14123 echo "${ECHO_T}$enable_shared" >&6; }
14124
14125 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14126 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14127 # Make sure either enable_shared or enable_static is yes.
14128 test "$enable_shared" = yes || enable_static=yes
14129 { echo "$as_me:$LINENO: result: $enable_static" >&5
14130 echo "${ECHO_T}$enable_static" >&6; }
14131
14132 GCC_F77="$G77"
14133 LD_F77="$LD"
14134
14135 lt_prog_compiler_wl_F77=
14136 lt_prog_compiler_pic_F77=
14137 lt_prog_compiler_static_F77=
14138
14139 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14140 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14141
14142 if test "$GCC" = yes; then
14143 lt_prog_compiler_wl_F77='-Wl,'
14144 lt_prog_compiler_static_F77='-static'
14145
14146 case $host_os in
14147 aix*)
14148 # All AIX code is PIC.
14149 if test "$host_cpu" = ia64; then
14150 # AIX 5 now supports IA64 processor
14151 lt_prog_compiler_static_F77='-Bstatic'
14152 fi
14153 ;;
14154
14155 amigaos*)
14156 # FIXME: we need at least 68020 code to build shared libraries, but
14157 # adding the `-m68020' flag to GCC prevents building anything better,
14158 # like `-m68040'.
14159 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14160 ;;
14161
14162 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14163 # PIC is the default for these OSes.
14164 ;;
14165
14166 mingw* | cygwin* | pw32* | os2*)
14167 # This hack is so that the source file can tell whether it is being
14168 # built for inclusion in a dll (and should export symbols for example).
14169 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14170 # (--disable-auto-import) libraries
14171 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14172 ;;
14173
14174 darwin* | rhapsody*)
14175 # PIC is the default on this platform
14176 # Common symbols not allowed in MH_DYLIB files
14177 lt_prog_compiler_pic_F77='-fno-common'
14178 ;;
14179
14180 interix[3-9]*)
14181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14182 # Instead, we relocate shared libraries at runtime.
14183 ;;
14184
14185 msdosdjgpp*)
14186 # Just because we use GCC doesn't mean we suddenly get shared libraries
14187 # on systems that don't support them.
14188 lt_prog_compiler_can_build_shared_F77=no
14189 enable_shared=no
14190 ;;
14191
14192 sysv4*MP*)
14193 if test -d /usr/nec; then
14194 lt_prog_compiler_pic_F77=-Kconform_pic
14195 fi
14196 ;;
14197
14198 hpux*)
14199 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14200 # not for PA HP-UX.
14201 case $host_cpu in
14202 hppa*64*|ia64*)
14203 # +Z the default
14204 ;;
14205 *)
14206 lt_prog_compiler_pic_F77='-fPIC'
14207 ;;
14208 esac
14209 ;;
14210
14211 *)
14212 lt_prog_compiler_pic_F77='-fPIC'
14213 ;;
14214 esac
14215 else
14216 # PORTME Check for flag to pass linker flags through the system compiler.
14217 case $host_os in
14218 aix*)
14219 lt_prog_compiler_wl_F77='-Wl,'
14220 if test "$host_cpu" = ia64; then
14221 # AIX 5 now supports IA64 processor
14222 lt_prog_compiler_static_F77='-Bstatic'
14223 else
14224 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14225 fi
14226 ;;
14227 darwin*)
14228 # PIC is the default on this platform
14229 # Common symbols not allowed in MH_DYLIB files
14230 case $cc_basename in
14231 xlc*)
14232 lt_prog_compiler_pic_F77='-qnocommon'
14233 lt_prog_compiler_wl_F77='-Wl,'
14234 ;;
14235 esac
14236 ;;
14237
14238 mingw* | cygwin* | pw32* | os2*)
14239 # This hack is so that the source file can tell whether it is being
14240 # built for inclusion in a dll (and should export symbols for example).
14241 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14242 ;;
14243
14244 hpux9* | hpux10* | hpux11*)
14245 lt_prog_compiler_wl_F77='-Wl,'
14246 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14247 # not for PA HP-UX.
14248 case $host_cpu in
14249 hppa*64*|ia64*)
14250 # +Z the default
14251 ;;
14252 *)
14253 lt_prog_compiler_pic_F77='+Z'
14254 ;;
14255 esac
14256 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14257 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14258 ;;
14259
14260 irix5* | irix6* | nonstopux*)
14261 lt_prog_compiler_wl_F77='-Wl,'
14262 # PIC (with -KPIC) is the default.
14263 lt_prog_compiler_static_F77='-non_shared'
14264 ;;
14265
14266 newsos6)
14267 lt_prog_compiler_pic_F77='-KPIC'
14268 lt_prog_compiler_static_F77='-Bstatic'
14269 ;;
14270
14271 linux* | k*bsd*-gnu)
14272 case $cc_basename in
14273 icc* | ecc*)
14274 lt_prog_compiler_wl_F77='-Wl,'
14275 lt_prog_compiler_pic_F77='-KPIC'
14276 lt_prog_compiler_static_F77='-static'
14277 ;;
14278 pgcc* | pgf77* | pgf90* | pgf95*)
14279 # Portland Group compilers (*not* the Pentium gcc compiler,
14280 # which looks to be a dead project)
14281 lt_prog_compiler_wl_F77='-Wl,'
14282 lt_prog_compiler_pic_F77='-fpic'
14283 lt_prog_compiler_static_F77='-Bstatic'
14284 ;;
14285 ccc*)
14286 lt_prog_compiler_wl_F77='-Wl,'
14287 # All Alpha code is PIC.
14288 lt_prog_compiler_static_F77='-non_shared'
14289 ;;
14290 *)
14291 case `$CC -V 2>&1 | sed 5q` in
14292 *Sun\ C*)
14293 # Sun C 5.9
14294 lt_prog_compiler_pic_F77='-KPIC'
14295 lt_prog_compiler_static_F77='-Bstatic'
14296 lt_prog_compiler_wl_F77='-Wl,'
14297 ;;
14298 *Sun\ F*)
14299 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14300 lt_prog_compiler_pic_F77='-KPIC'
14301 lt_prog_compiler_static_F77='-Bstatic'
14302 lt_prog_compiler_wl_F77=''
14303 ;;
14304 esac
14305 ;;
14306 esac
14307 ;;
14308
14309 osf3* | osf4* | osf5*)
14310 lt_prog_compiler_wl_F77='-Wl,'
14311 # All OSF/1 code is PIC.
14312 lt_prog_compiler_static_F77='-non_shared'
14313 ;;
14314
14315 rdos*)
14316 lt_prog_compiler_static_F77='-non_shared'
14317 ;;
14318
14319 solaris*)
14320 lt_prog_compiler_pic_F77='-KPIC'
14321 lt_prog_compiler_static_F77='-Bstatic'
14322 case $cc_basename in
14323 f77* | f90* | f95*)
14324 lt_prog_compiler_wl_F77='-Qoption ld ';;
14325 *)
14326 lt_prog_compiler_wl_F77='-Wl,';;
14327 esac
14328 ;;
14329
14330 sunos4*)
14331 lt_prog_compiler_wl_F77='-Qoption ld '
14332 lt_prog_compiler_pic_F77='-PIC'
14333 lt_prog_compiler_static_F77='-Bstatic'
14334 ;;
14335
14336 sysv4 | sysv4.2uw2* | sysv4.3*)
14337 lt_prog_compiler_wl_F77='-Wl,'
14338 lt_prog_compiler_pic_F77='-KPIC'
14339 lt_prog_compiler_static_F77='-Bstatic'
14340 ;;
14341
14342 sysv4*MP*)
14343 if test -d /usr/nec ;then
14344 lt_prog_compiler_pic_F77='-Kconform_pic'
14345 lt_prog_compiler_static_F77='-Bstatic'
14346 fi
14347 ;;
14348
14349 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14350 lt_prog_compiler_wl_F77='-Wl,'
14351 lt_prog_compiler_pic_F77='-KPIC'
14352 lt_prog_compiler_static_F77='-Bstatic'
14353 ;;
14354
14355 unicos*)
14356 lt_prog_compiler_wl_F77='-Wl,'
14357 lt_prog_compiler_can_build_shared_F77=no
14358 ;;
14359
14360 uts4*)
14361 lt_prog_compiler_pic_F77='-pic'
14362 lt_prog_compiler_static_F77='-Bstatic'
14363 ;;
14364
14365 *)
14366 lt_prog_compiler_can_build_shared_F77=no
14367 ;;
14368 esac
14369 fi
14370
14371 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14372 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14373
14374 #
14375 # Check to make sure the PIC flag actually works.
14376 #
14377 if test -n "$lt_prog_compiler_pic_F77"; then
14378
14379 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14380 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14381 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 else
14384 lt_cv_prog_compiler_pic_works_F77=no
14385 ac_outfile=conftest.$ac_objext
14386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14387 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14388 # Insert the option either (1) after the last *FLAGS variable, or
14389 # (2) before a word containing "conftest.", or (3) at the end.
14390 # Note that $ac_compile itself does not contain backslashes and begins
14391 # with a dollar sign (not a hyphen), so the echo should work correctly.
14392 # The option is referenced via a variable to avoid confusing sed.
14393 lt_compile=`echo "$ac_compile" | $SED \
14394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14396 -e 's:$: $lt_compiler_flag:'`
14397 (eval echo "\"\$as_me:14398: $lt_compile\"" >&5)
14398 (eval "$lt_compile" 2>conftest.err)
14399 ac_status=$?
14400 cat conftest.err >&5
14401 echo "$as_me:14402: \$? = $ac_status" >&5
14402 if (exit $ac_status) && test -s "$ac_outfile"; then
14403 # The compiler can only warn and ignore the option if not recognized
14404 # So say no if there are warnings other than the usual output.
14405 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14407 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14408 lt_cv_prog_compiler_pic_works_F77=yes
14409 fi
14410 fi
14411 $rm conftest*
14412
14413 fi
14414 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14415 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14416
14417 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14418 case $lt_prog_compiler_pic_F77 in
14419 "" | " "*) ;;
14420 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14421 esac
14422 else
14423 lt_prog_compiler_pic_F77=
14424 lt_prog_compiler_can_build_shared_F77=no
14425 fi
14426
14427 fi
14428 case $host_os in
14429 # For platforms which do not support PIC, -DPIC is meaningless:
14430 *djgpp*)
14431 lt_prog_compiler_pic_F77=
14432 ;;
14433 *)
14434 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14435 ;;
14436 esac
14437
14438 #
14439 # Check to make sure the static flag actually works.
14440 #
14441 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14442 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14443 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14444 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 lt_cv_prog_compiler_static_works_F77=no
14448 save_LDFLAGS="$LDFLAGS"
14449 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14450 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14451 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14452 # The linker can only warn and ignore the option if not recognized
14453 # So say no if there are warnings
14454 if test -s conftest.err; then
14455 # Append any errors to the config.log.
14456 cat conftest.err 1>&5
14457 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14459 if diff conftest.exp conftest.er2 >/dev/null; then
14460 lt_cv_prog_compiler_static_works_F77=yes
14461 fi
14462 else
14463 lt_cv_prog_compiler_static_works_F77=yes
14464 fi
14465 fi
14466 $rm -r conftest*
14467 LDFLAGS="$save_LDFLAGS"
14468
14469 fi
14470 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14471 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14472
14473 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14474 :
14475 else
14476 lt_prog_compiler_static_F77=
14477 fi
14478
14479
14480 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14481 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14482 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485 lt_cv_prog_compiler_c_o_F77=no
14486 $rm -r conftest 2>/dev/null
14487 mkdir conftest
14488 cd conftest
14489 mkdir out
14490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14491
14492 lt_compiler_flag="-o out/conftest2.$ac_objext"
14493 # Insert the option either (1) after the last *FLAGS variable, or
14494 # (2) before a word containing "conftest.", or (3) at the end.
14495 # Note that $ac_compile itself does not contain backslashes and begins
14496 # with a dollar sign (not a hyphen), so the echo should work correctly.
14497 lt_compile=`echo "$ac_compile" | $SED \
14498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14500 -e 's:$: $lt_compiler_flag:'`
14501 (eval echo "\"\$as_me:14502: $lt_compile\"" >&5)
14502 (eval "$lt_compile" 2>out/conftest.err)
14503 ac_status=$?
14504 cat out/conftest.err >&5
14505 echo "$as_me:14506: \$? = $ac_status" >&5
14506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14507 then
14508 # The compiler can only warn and ignore the option if not recognized
14509 # So say no if there are warnings
14510 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14513 lt_cv_prog_compiler_c_o_F77=yes
14514 fi
14515 fi
14516 chmod u+w . 2>&5
14517 $rm conftest*
14518 # SGI C++ compiler will create directory out/ii_files/ for
14519 # template instantiation
14520 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14521 $rm out/* && rmdir out
14522 cd ..
14523 rmdir conftest
14524 $rm conftest*
14525
14526 fi
14527 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14528 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14529
14530
14531 hard_links="nottested"
14532 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14533 # do not overwrite the value of need_locks provided by the user
14534 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14535 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14536 hard_links=yes
14537 $rm conftest*
14538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14539 touch conftest.a
14540 ln conftest.a conftest.b 2>&5 || hard_links=no
14541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14542 { echo "$as_me:$LINENO: result: $hard_links" >&5
14543 echo "${ECHO_T}$hard_links" >&6; }
14544 if test "$hard_links" = no; then
14545 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14546 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14547 need_locks=warn
14548 fi
14549 else
14550 need_locks=no
14551 fi
14552
14553 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14554 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14555
14556 runpath_var=
14557 allow_undefined_flag_F77=
14558 enable_shared_with_static_runtimes_F77=no
14559 archive_cmds_F77=
14560 archive_expsym_cmds_F77=
14561 old_archive_From_new_cmds_F77=
14562 old_archive_from_expsyms_cmds_F77=
14563 export_dynamic_flag_spec_F77=
14564 whole_archive_flag_spec_F77=
14565 thread_safe_flag_spec_F77=
14566 hardcode_libdir_flag_spec_F77=
14567 hardcode_libdir_flag_spec_ld_F77=
14568 hardcode_libdir_separator_F77=
14569 hardcode_direct_F77=no
14570 hardcode_minus_L_F77=no
14571 hardcode_shlibpath_var_F77=unsupported
14572 link_all_deplibs_F77=unknown
14573 hardcode_automatic_F77=no
14574 module_cmds_F77=
14575 module_expsym_cmds_F77=
14576 always_export_symbols_F77=no
14577 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14578 # include_expsyms should be a list of space-separated symbols to be *always*
14579 # included in the symbol list
14580 include_expsyms_F77=
14581 # exclude_expsyms can be an extended regexp of symbols to exclude
14582 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14583 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14584 # as well as any symbol that contains `d'.
14585 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14587 # platforms (ab)use it in PIC code, but their linkers get confused if
14588 # the symbol is explicitly referenced. Since portable code cannot
14589 # rely on this symbol name, it's probably fine to never include it in
14590 # preloaded symbol tables.
14591 # Exclude shared library initialization/finalization symbols.
14592 extract_expsyms_cmds=
14593 # Just being paranoid about ensuring that cc_basename is set.
14594 for cc_temp in $compiler""; do
14595 case $cc_temp in
14596 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14597 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14598 \-*) ;;
14599 *) break;;
14600 esac
14601 done
14602 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14603
14604 case $host_os in
14605 cygwin* | mingw* | pw32*)
14606 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14607 # When not using gcc, we currently assume that we are using
14608 # Microsoft Visual C++.
14609 if test "$GCC" != yes; then
14610 with_gnu_ld=no
14611 fi
14612 ;;
14613 interix*)
14614 # we just hope/assume this is gcc and not c89 (= MSVC++)
14615 with_gnu_ld=yes
14616 ;;
14617 openbsd*)
14618 with_gnu_ld=no
14619 ;;
14620 esac
14621
14622 ld_shlibs_F77=yes
14623 if test "$with_gnu_ld" = yes; then
14624 # If archive_cmds runs LD, not CC, wlarc should be empty
14625 wlarc='${wl}'
14626
14627 # Set some defaults for GNU ld with shared library support. These
14628 # are reset later if shared libraries are not supported. Putting them
14629 # here allows them to be overridden if necessary.
14630 runpath_var=LD_RUN_PATH
14631 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14632 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14633 # ancient GNU ld didn't support --whole-archive et. al.
14634 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14635 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14636 else
14637 whole_archive_flag_spec_F77=
14638 fi
14639 supports_anon_versioning=no
14640 case `$LD -v 2>/dev/null` in
14641 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14642 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14643 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14644 *\ 2.11.*) ;; # other 2.11 versions
14645 *) supports_anon_versioning=yes ;;
14646 esac
14647
14648 # See if GNU ld supports shared libraries.
14649 case $host_os in
14650 aix[3-9]*)
14651 # On AIX/PPC, the GNU linker is very broken
14652 if test "$host_cpu" != ia64; then
14653 ld_shlibs_F77=no
14654 cat <<EOF 1>&2
14655
14656 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14657 *** to be unable to reliably create shared libraries on AIX.
14658 *** Therefore, libtool is disabling shared libraries support. If you
14659 *** really care for shared libraries, you may want to modify your PATH
14660 *** so that a non-GNU linker is found, and then restart.
14661
14662 EOF
14663 fi
14664 ;;
14665
14666 amigaos*)
14667 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14668 hardcode_libdir_flag_spec_F77='-L$libdir'
14669 hardcode_minus_L_F77=yes
14670
14671 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14672 # that the semantics of dynamic libraries on AmigaOS, at least up
14673 # to version 4, is to share data among multiple programs linked
14674 # with the same dynamic library. Since this doesn't match the
14675 # behavior of shared libraries on other platforms, we can't use
14676 # them.
14677 ld_shlibs_F77=no
14678 ;;
14679
14680 beos*)
14681 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14682 allow_undefined_flag_F77=unsupported
14683 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14684 # support --undefined. This deserves some investigation. FIXME
14685 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14686 else
14687 ld_shlibs_F77=no
14688 fi
14689 ;;
14690
14691 cygwin* | mingw* | pw32*)
14692 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14693 # as there is no search path for DLLs.
14694 hardcode_libdir_flag_spec_F77='-L$libdir'
14695 allow_undefined_flag_F77=unsupported
14696 always_export_symbols_F77=no
14697 enable_shared_with_static_runtimes_F77=yes
14698 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14699
14700 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14701 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14702 # If the export-symbols file already is a .def file (1st line
14703 # is EXPORTS), use it as is; otherwise, prepend...
14704 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14705 cp $export_symbols $output_objdir/$soname.def;
14706 else
14707 echo EXPORTS > $output_objdir/$soname.def;
14708 cat $export_symbols >> $output_objdir/$soname.def;
14709 fi~
14710 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14711 else
14712 ld_shlibs_F77=no
14713 fi
14714 ;;
14715
14716 interix[3-9]*)
14717 hardcode_direct_F77=no
14718 hardcode_shlibpath_var_F77=no
14719 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14720 export_dynamic_flag_spec_F77='${wl}-E'
14721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14722 # Instead, shared libraries are loaded at an image base (0x10000000 by
14723 # default) and relocated if they conflict, which is a slow very memory
14724 # consuming and fragmenting process. To avoid this, we pick a random,
14725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14727 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14728 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14729 ;;
14730
14731 gnu* | linux* | k*bsd*-gnu)
14732 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14733 tmp_addflag=
14734 case $cc_basename,$host_cpu in
14735 pgcc*) # Portland Group C compiler
14736 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14737 tmp_addflag=' $pic_flag'
14738 ;;
14739 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14740 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14741 tmp_addflag=' $pic_flag -Mnomain' ;;
14742 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14743 tmp_addflag=' -i_dynamic' ;;
14744 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14745 tmp_addflag=' -i_dynamic -nofor_main' ;;
14746 ifc* | ifort*) # Intel Fortran compiler
14747 tmp_addflag=' -nofor_main' ;;
14748 esac
14749 case `$CC -V 2>&1 | sed 5q` in
14750 *Sun\ C*) # Sun C 5.9
14751 whole_archive_flag_spec_F77='${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'
14752 tmp_sharedflag='-G' ;;
14753 *Sun\ F*) # Sun Fortran 8.3
14754 tmp_sharedflag='-G' ;;
14755 *)
14756 tmp_sharedflag='-shared' ;;
14757 esac
14758 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14759
14760 if test $supports_anon_versioning = yes; then
14761 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14763 $echo "local: *; };" >> $output_objdir/$libname.ver~
14764 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14765 fi
14766 link_all_deplibs_F77=no
14767 else
14768 ld_shlibs_F77=no
14769 fi
14770 ;;
14771
14772 netbsd* | netbsdelf*-gnu)
14773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14774 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14775 wlarc=
14776 else
14777 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14778 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14779 fi
14780 ;;
14781
14782 solaris*)
14783 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14784 ld_shlibs_F77=no
14785 cat <<EOF 1>&2
14786
14787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14788 *** create shared libraries on Solaris systems. Therefore, libtool
14789 *** is disabling shared libraries support. We urge you to upgrade GNU
14790 *** binutils to release 2.9.1 or newer. Another option is to modify
14791 *** your PATH or compiler configuration so that the native linker is
14792 *** used, and then restart.
14793
14794 EOF
14795 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14796 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14797 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14798 else
14799 ld_shlibs_F77=no
14800 fi
14801 ;;
14802
14803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14804 case `$LD -v 2>&1` in
14805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14806 ld_shlibs_F77=no
14807 cat <<_LT_EOF 1>&2
14808
14809 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14810 *** reliably create shared libraries on SCO systems. Therefore, libtool
14811 *** is disabling shared libraries support. We urge you to upgrade GNU
14812 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14813 *** your PATH or compiler configuration so that the native linker is
14814 *** used, and then restart.
14815
14816 _LT_EOF
14817 ;;
14818 *)
14819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14820 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14821 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14822 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14823 else
14824 ld_shlibs_F77=no
14825 fi
14826 ;;
14827 esac
14828 ;;
14829
14830 sunos4*)
14831 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14832 wlarc=
14833 hardcode_direct_F77=yes
14834 hardcode_shlibpath_var_F77=no
14835 ;;
14836
14837 *)
14838 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14839 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14840 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14841 else
14842 ld_shlibs_F77=no
14843 fi
14844 ;;
14845 esac
14846
14847 if test "$ld_shlibs_F77" = no; then
14848 runpath_var=
14849 hardcode_libdir_flag_spec_F77=
14850 export_dynamic_flag_spec_F77=
14851 whole_archive_flag_spec_F77=
14852 fi
14853 else
14854 # PORTME fill in a description of your system's linker (not GNU ld)
14855 case $host_os in
14856 aix3*)
14857 allow_undefined_flag_F77=unsupported
14858 always_export_symbols_F77=yes
14859 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14860 # Note: this linker hardcodes the directories in LIBPATH if there
14861 # are no directories specified by -L.
14862 hardcode_minus_L_F77=yes
14863 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14864 # Neither direct hardcoding nor static linking is supported with a
14865 # broken collect2.
14866 hardcode_direct_F77=unsupported
14867 fi
14868 ;;
14869
14870 aix[4-9]*)
14871 if test "$host_cpu" = ia64; then
14872 # On IA64, the linker does run time linking by default, so we don't
14873 # have to do anything special.
14874 aix_use_runtimelinking=no
14875 exp_sym_flag='-Bexport'
14876 no_entry_flag=""
14877 else
14878 # If we're using GNU nm, then we don't want the "-C" option.
14879 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14880 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14881 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14882 else
14883 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14884 fi
14885 aix_use_runtimelinking=no
14886
14887 # Test if we are trying to use run time linking or normal
14888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14889 # need to do runtime linking.
14890 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14891 for ld_flag in $LDFLAGS; do
14892 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14893 aix_use_runtimelinking=yes
14894 break
14895 fi
14896 done
14897 ;;
14898 esac
14899
14900 exp_sym_flag='-bexport'
14901 no_entry_flag='-bnoentry'
14902 fi
14903
14904 # When large executables or shared objects are built, AIX ld can
14905 # have problems creating the table of contents. If linking a library
14906 # or program results in "error TOC overflow" add -mminimal-toc to
14907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14909
14910 archive_cmds_F77=''
14911 hardcode_direct_F77=yes
14912 hardcode_libdir_separator_F77=':'
14913 link_all_deplibs_F77=yes
14914
14915 if test "$GCC" = yes; then
14916 case $host_os in aix4.[012]|aix4.[012].*)
14917 # We only want to do this on AIX 4.2 and lower, the check
14918 # below for broken collect2 doesn't work under 4.3+
14919 collect2name=`${CC} -print-prog-name=collect2`
14920 if test -f "$collect2name" && \
14921 strings "$collect2name" | grep resolve_lib_name >/dev/null
14922 then
14923 # We have reworked collect2
14924 :
14925 else
14926 # We have old collect2
14927 hardcode_direct_F77=unsupported
14928 # It fails to find uninstalled libraries when the uninstalled
14929 # path is not listed in the libpath. Setting hardcode_minus_L
14930 # to unsupported forces relinking
14931 hardcode_minus_L_F77=yes
14932 hardcode_libdir_flag_spec_F77='-L$libdir'
14933 hardcode_libdir_separator_F77=
14934 fi
14935 ;;
14936 esac
14937 shared_flag='-shared'
14938 if test "$aix_use_runtimelinking" = yes; then
14939 shared_flag="$shared_flag "'${wl}-G'
14940 fi
14941 else
14942 # not using gcc
14943 if test "$host_cpu" = ia64; then
14944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14945 # chokes on -Wl,-G. The following line is correct:
14946 shared_flag='-G'
14947 else
14948 if test "$aix_use_runtimelinking" = yes; then
14949 shared_flag='${wl}-G'
14950 else
14951 shared_flag='${wl}-bM:SRE'
14952 fi
14953 fi
14954 fi
14955
14956 # It seems that -bexpall does not export symbols beginning with
14957 # underscore (_), so it is better to generate a list of symbols to export.
14958 always_export_symbols_F77=yes
14959 if test "$aix_use_runtimelinking" = yes; then
14960 # Warning - without using the other runtime loading flags (-brtl),
14961 # -berok will link without error, but may produce a broken library.
14962 allow_undefined_flag_F77='-berok'
14963 # Determine the default libpath from the value encoded in an empty executable.
14964 cat >conftest.$ac_ext <<_ACEOF
14965 program main
14966
14967 end
14968 _ACEOF
14969 rm -f conftest.$ac_objext conftest$ac_exeext
14970 if { (ac_try="$ac_link"
14971 case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14974 esac
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_link") 2>conftest.er1
14977 ac_status=$?
14978 grep -v '^ *+' conftest.er1 >conftest.err
14979 rm -f conftest.er1
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_f77_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest$ac_exeext &&
14986 $as_test_x conftest$ac_exeext; then
14987
14988 lt_aix_libpath_sed='
14989 /Import File Strings/,/^$/ {
14990 /^0/ {
14991 s/^0 *\(.*\)$/\1/
14992 p
14993 }
14994 }'
14995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14996 # Check for a 64-bit object if we didn't find anything.
14997 if test -z "$aix_libpath"; then
14998 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14999 fi
15000 else
15001 echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15003
15004
15005 fi
15006
15007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15008 conftest$ac_exeext conftest.$ac_ext
15009 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15010
15011 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15012 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15013 else
15014 if test "$host_cpu" = ia64; then
15015 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15016 allow_undefined_flag_F77="-z nodefs"
15017 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15018 else
15019 # Determine the default libpath from the value encoded in an empty executable.
15020 cat >conftest.$ac_ext <<_ACEOF
15021 program main
15022
15023 end
15024 _ACEOF
15025 rm -f conftest.$ac_objext conftest$ac_exeext
15026 if { (ac_try="$ac_link"
15027 case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15030 esac
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_link") 2>conftest.er1
15033 ac_status=$?
15034 grep -v '^ *+' conftest.er1 >conftest.err
15035 rm -f conftest.er1
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } && {
15039 test -z "$ac_f77_werror_flag" ||
15040 test ! -s conftest.err
15041 } && test -s conftest$ac_exeext &&
15042 $as_test_x conftest$ac_exeext; then
15043
15044 lt_aix_libpath_sed='
15045 /Import File Strings/,/^$/ {
15046 /^0/ {
15047 s/^0 *\(.*\)$/\1/
15048 p
15049 }
15050 }'
15051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15052 # Check for a 64-bit object if we didn't find anything.
15053 if test -z "$aix_libpath"; then
15054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15055 fi
15056 else
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15059
15060
15061 fi
15062
15063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15064 conftest$ac_exeext conftest.$ac_ext
15065 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15066
15067 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15068 # Warning - without using the other run time loading flags,
15069 # -berok will link without error, but may produce a broken library.
15070 no_undefined_flag_F77=' ${wl}-bernotok'
15071 allow_undefined_flag_F77=' ${wl}-berok'
15072 # Exported symbols can be pulled into shared objects from archives
15073 whole_archive_flag_spec_F77='$convenience'
15074 archive_cmds_need_lc_F77=yes
15075 # This is similar to how AIX traditionally builds its shared libraries.
15076 archive_expsym_cmds_F77="\$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'
15077 fi
15078 fi
15079 ;;
15080
15081 amigaos*)
15082 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15083 hardcode_libdir_flag_spec_F77='-L$libdir'
15084 hardcode_minus_L_F77=yes
15085 # see comment about different semantics on the GNU ld section
15086 ld_shlibs_F77=no
15087 ;;
15088
15089 bsdi[45]*)
15090 export_dynamic_flag_spec_F77=-rdynamic
15091 ;;
15092
15093 cygwin* | mingw* | pw32*)
15094 # When not using gcc, we currently assume that we are using
15095 # Microsoft Visual C++.
15096 # hardcode_libdir_flag_spec is actually meaningless, as there is
15097 # no search path for DLLs.
15098 hardcode_libdir_flag_spec_F77=' '
15099 allow_undefined_flag_F77=unsupported
15100 # Tell ltmain to make .lib files, not .a files.
15101 libext=lib
15102 # Tell ltmain to make .dll files, not .so files.
15103 shrext_cmds=".dll"
15104 # FIXME: Setting linknames here is a bad hack.
15105 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15106 # The linker will automatically build a .lib file if we build a DLL.
15107 old_archive_From_new_cmds_F77='true'
15108 # FIXME: Should let the user specify the lib program.
15109 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15110 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15111 enable_shared_with_static_runtimes_F77=yes
15112 ;;
15113
15114 darwin* | rhapsody*)
15115 case $host_os in
15116 rhapsody* | darwin1.[012])
15117 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15118 ;;
15119 *) # Darwin 1.3 on
15120 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15121 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15122 else
15123 case ${MACOSX_DEPLOYMENT_TARGET} in
15124 10.[012])
15125 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15126 ;;
15127 10.*)
15128 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15129 ;;
15130 esac
15131 fi
15132 ;;
15133 esac
15134 archive_cmds_need_lc_F77=no
15135 hardcode_direct_F77=no
15136 hardcode_automatic_F77=yes
15137 hardcode_shlibpath_var_F77=unsupported
15138 whole_archive_flag_spec_F77=''
15139 link_all_deplibs_F77=yes
15140 if test "$GCC" = yes ; then
15141 output_verbose_link_cmd='echo'
15142 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15143 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15144 archive_expsym_cmds_F77="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}"
15145 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15146 else
15147 case $cc_basename in
15148 xlc*)
15149 output_verbose_link_cmd='echo'
15150 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15151 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15152 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15153 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15154 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15155 ;;
15156 *)
15157 ld_shlibs_F77=no
15158 ;;
15159 esac
15160 fi
15161 ;;
15162
15163 dgux*)
15164 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15165 hardcode_libdir_flag_spec_F77='-L$libdir'
15166 hardcode_shlibpath_var_F77=no
15167 ;;
15168
15169 freebsd1*)
15170 ld_shlibs_F77=no
15171 ;;
15172
15173 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15174 # support. Future versions do this automatically, but an explicit c++rt0.o
15175 # does not break anything, and helps significantly (at the cost of a little
15176 # extra space).
15177 freebsd2.2*)
15178 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15179 hardcode_libdir_flag_spec_F77='-R$libdir'
15180 hardcode_direct_F77=yes
15181 hardcode_shlibpath_var_F77=no
15182 ;;
15183
15184 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15185 freebsd2*)
15186 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15187 hardcode_direct_F77=yes
15188 hardcode_minus_L_F77=yes
15189 hardcode_shlibpath_var_F77=no
15190 ;;
15191
15192 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15193 freebsd* | dragonfly*)
15194 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15195 hardcode_libdir_flag_spec_F77='-R$libdir'
15196 hardcode_direct_F77=yes
15197 hardcode_shlibpath_var_F77=no
15198 ;;
15199
15200 hpux9*)
15201 if test "$GCC" = yes; then
15202 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15203 else
15204 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15205 fi
15206 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15207 hardcode_libdir_separator_F77=:
15208 hardcode_direct_F77=yes
15209
15210 # hardcode_minus_L: Not really in the search PATH,
15211 # but as the default location of the library.
15212 hardcode_minus_L_F77=yes
15213 export_dynamic_flag_spec_F77='${wl}-E'
15214 ;;
15215
15216 hpux10*)
15217 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15218 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15219 else
15220 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15221 fi
15222 if test "$with_gnu_ld" = no; then
15223 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15224 hardcode_libdir_separator_F77=:
15225
15226 hardcode_direct_F77=yes
15227 export_dynamic_flag_spec_F77='${wl}-E'
15228
15229 # hardcode_minus_L: Not really in the search PATH,
15230 # but as the default location of the library.
15231 hardcode_minus_L_F77=yes
15232 fi
15233 ;;
15234
15235 hpux11*)
15236 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15237 case $host_cpu in
15238 hppa*64*)
15239 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15240 ;;
15241 ia64*)
15242 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15243 ;;
15244 *)
15245 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15246 ;;
15247 esac
15248 else
15249 case $host_cpu in
15250 hppa*64*)
15251 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15252 ;;
15253 ia64*)
15254 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15255 ;;
15256 *)
15257 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15258 ;;
15259 esac
15260 fi
15261 if test "$with_gnu_ld" = no; then
15262 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15263 hardcode_libdir_separator_F77=:
15264
15265 case $host_cpu in
15266 hppa*64*|ia64*)
15267 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15268 hardcode_direct_F77=no
15269 hardcode_shlibpath_var_F77=no
15270 ;;
15271 *)
15272 hardcode_direct_F77=yes
15273 export_dynamic_flag_spec_F77='${wl}-E'
15274
15275 # hardcode_minus_L: Not really in the search PATH,
15276 # but as the default location of the library.
15277 hardcode_minus_L_F77=yes
15278 ;;
15279 esac
15280 fi
15281 ;;
15282
15283 irix5* | irix6* | nonstopux*)
15284 if test "$GCC" = yes; then
15285 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15286 else
15287 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15288 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15289 fi
15290 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15291 hardcode_libdir_separator_F77=:
15292 link_all_deplibs_F77=yes
15293 ;;
15294
15295 netbsd* | netbsdelf*-gnu)
15296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15297 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15298 else
15299 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15300 fi
15301 hardcode_libdir_flag_spec_F77='-R$libdir'
15302 hardcode_direct_F77=yes
15303 hardcode_shlibpath_var_F77=no
15304 ;;
15305
15306 newsos6)
15307 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15308 hardcode_direct_F77=yes
15309 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15310 hardcode_libdir_separator_F77=:
15311 hardcode_shlibpath_var_F77=no
15312 ;;
15313
15314 openbsd*)
15315 if test -f /usr/libexec/ld.so; then
15316 hardcode_direct_F77=yes
15317 hardcode_shlibpath_var_F77=no
15318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15319 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15320 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15321 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15322 export_dynamic_flag_spec_F77='${wl}-E'
15323 else
15324 case $host_os in
15325 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15326 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15327 hardcode_libdir_flag_spec_F77='-R$libdir'
15328 ;;
15329 *)
15330 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15331 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15332 ;;
15333 esac
15334 fi
15335 else
15336 ld_shlibs_F77=no
15337 fi
15338 ;;
15339
15340 os2*)
15341 hardcode_libdir_flag_spec_F77='-L$libdir'
15342 hardcode_minus_L_F77=yes
15343 allow_undefined_flag_F77=unsupported
15344 archive_cmds_F77='$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'
15345 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15346 ;;
15347
15348 osf3*)
15349 if test "$GCC" = yes; then
15350 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15351 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15352 else
15353 allow_undefined_flag_F77=' -expect_unresolved \*'
15354 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15355 fi
15356 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15357 hardcode_libdir_separator_F77=:
15358 ;;
15359
15360 osf4* | osf5*) # as osf3* with the addition of -msym flag
15361 if test "$GCC" = yes; then
15362 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15363 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15364 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15365 else
15366 allow_undefined_flag_F77=' -expect_unresolved \*'
15367 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15368 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15369 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15370
15371 # Both c and cxx compiler support -rpath directly
15372 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15373 fi
15374 hardcode_libdir_separator_F77=:
15375 ;;
15376
15377 solaris*)
15378 no_undefined_flag_F77=' -z text'
15379 if test "$GCC" = yes; then
15380 wlarc='${wl}'
15381 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15382 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15383 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15384 else
15385 wlarc=''
15386 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15388 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15389 fi
15390 hardcode_libdir_flag_spec_F77='-R$libdir'
15391 hardcode_shlibpath_var_F77=no
15392 case $host_os in
15393 solaris2.[0-5] | solaris2.[0-5].*) ;;
15394 *)
15395 # The compiler driver will combine and reorder linker options,
15396 # but understands `-z linker_flag'. GCC discards it without `$wl',
15397 # but is careful enough not to reorder.
15398 # Supported since Solaris 2.6 (maybe 2.5.1?)
15399 if test "$GCC" = yes; then
15400 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15401 else
15402 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15403 fi
15404 ;;
15405 esac
15406 link_all_deplibs_F77=yes
15407 ;;
15408
15409 sunos4*)
15410 if test "x$host_vendor" = xsequent; then
15411 # Use $CC to link under sequent, because it throws in some extra .o
15412 # files that make .init and .fini sections work.
15413 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15414 else
15415 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15416 fi
15417 hardcode_libdir_flag_spec_F77='-L$libdir'
15418 hardcode_direct_F77=yes
15419 hardcode_minus_L_F77=yes
15420 hardcode_shlibpath_var_F77=no
15421 ;;
15422
15423 sysv4)
15424 case $host_vendor in
15425 sni)
15426 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15427 hardcode_direct_F77=yes # is this really true???
15428 ;;
15429 siemens)
15430 ## LD is ld it makes a PLAMLIB
15431 ## CC just makes a GrossModule.
15432 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15433 reload_cmds_F77='$CC -r -o $output$reload_objs'
15434 hardcode_direct_F77=no
15435 ;;
15436 motorola)
15437 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15438 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15439 ;;
15440 esac
15441 runpath_var='LD_RUN_PATH'
15442 hardcode_shlibpath_var_F77=no
15443 ;;
15444
15445 sysv4.3*)
15446 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15447 hardcode_shlibpath_var_F77=no
15448 export_dynamic_flag_spec_F77='-Bexport'
15449 ;;
15450
15451 sysv4*MP*)
15452 if test -d /usr/nec; then
15453 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15454 hardcode_shlibpath_var_F77=no
15455 runpath_var=LD_RUN_PATH
15456 hardcode_runpath_var=yes
15457 ld_shlibs_F77=yes
15458 fi
15459 ;;
15460
15461 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15462 no_undefined_flag_F77='${wl}-z,text'
15463 archive_cmds_need_lc_F77=no
15464 hardcode_shlibpath_var_F77=no
15465 runpath_var='LD_RUN_PATH'
15466
15467 if test "$GCC" = yes; then
15468 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470 else
15471 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15472 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15473 fi
15474 ;;
15475
15476 sysv5* | sco3.2v5* | sco5v6*)
15477 # Note: We can NOT use -z defs as we might desire, because we do not
15478 # link with -lc, and that would cause any symbols used from libc to
15479 # always be unresolved, which means just about no library would
15480 # ever link correctly. If we're not using GNU ld we use -z text
15481 # though, which does catch some bad symbols but isn't as heavy-handed
15482 # as -z defs.
15483 no_undefined_flag_F77='${wl}-z,text'
15484 allow_undefined_flag_F77='${wl}-z,nodefs'
15485 archive_cmds_need_lc_F77=no
15486 hardcode_shlibpath_var_F77=no
15487 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15488 hardcode_libdir_separator_F77=':'
15489 link_all_deplibs_F77=yes
15490 export_dynamic_flag_spec_F77='${wl}-Bexport'
15491 runpath_var='LD_RUN_PATH'
15492
15493 if test "$GCC" = yes; then
15494 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15495 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496 else
15497 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15498 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15499 fi
15500 ;;
15501
15502 uts4*)
15503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15504 hardcode_libdir_flag_spec_F77='-L$libdir'
15505 hardcode_shlibpath_var_F77=no
15506 ;;
15507
15508 *)
15509 ld_shlibs_F77=no
15510 ;;
15511 esac
15512 fi
15513
15514 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15515 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15516 test "$ld_shlibs_F77" = no && can_build_shared=no
15517
15518 #
15519 # Do we need to explicitly link libc?
15520 #
15521 case "x$archive_cmds_need_lc_F77" in
15522 x|xyes)
15523 # Assume -lc should be added
15524 archive_cmds_need_lc_F77=yes
15525
15526 if test "$enable_shared" = yes && test "$GCC" = yes; then
15527 case $archive_cmds_F77 in
15528 *'~'*)
15529 # FIXME: we may have to deal with multi-command sequences.
15530 ;;
15531 '$CC '*)
15532 # Test whether the compiler implicitly links with -lc since on some
15533 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15534 # to ld, don't add -lc before -lgcc.
15535 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15536 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15537 $rm conftest*
15538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15539
15540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15541 (eval $ac_compile) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } 2>conftest.err; then
15545 soname=conftest
15546 lib=conftest
15547 libobjs=conftest.$ac_objext
15548 deplibs=
15549 wl=$lt_prog_compiler_wl_F77
15550 pic_flag=$lt_prog_compiler_pic_F77
15551 compiler_flags=-v
15552 linker_flags=-v
15553 verstring=
15554 output_objdir=.
15555 libname=conftest
15556 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15557 allow_undefined_flag_F77=
15558 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15559 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }
15563 then
15564 archive_cmds_need_lc_F77=no
15565 else
15566 archive_cmds_need_lc_F77=yes
15567 fi
15568 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15569 else
15570 cat conftest.err 1>&5
15571 fi
15572 $rm conftest*
15573 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15574 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15575 ;;
15576 esac
15577 fi
15578 ;;
15579 esac
15580
15581 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15582 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15583 library_names_spec=
15584 libname_spec='lib$name'
15585 soname_spec=
15586 shrext_cmds=".so"
15587 postinstall_cmds=
15588 postuninstall_cmds=
15589 finish_cmds=
15590 finish_eval=
15591 shlibpath_var=
15592 shlibpath_overrides_runpath=unknown
15593 version_type=none
15594 dynamic_linker="$host_os ld.so"
15595 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15596
15597 need_lib_prefix=unknown
15598 hardcode_into_libs=no
15599
15600 # when you set need_version to no, make sure it does not cause -set_version
15601 # flags to be left without arguments
15602 need_version=unknown
15603
15604 case $host_os in
15605 aix3*)
15606 version_type=linux
15607 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15608 shlibpath_var=LIBPATH
15609
15610 # AIX 3 has no versioning support, so we append a major version to the name.
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 ;;
15613
15614 aix[4-9]*)
15615 version_type=linux
15616 need_lib_prefix=no
15617 need_version=no
15618 hardcode_into_libs=yes
15619 if test "$host_cpu" = ia64; then
15620 # AIX 5 supports IA64
15621 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15622 shlibpath_var=LD_LIBRARY_PATH
15623 else
15624 # With GCC up to 2.95.x, collect2 would create an import file
15625 # for dependence libraries. The import file would start with
15626 # the line `#! .'. This would cause the generated library to
15627 # depend on `.', always an invalid library. This was fixed in
15628 # development snapshots of GCC prior to 3.0.
15629 case $host_os in
15630 aix4 | aix4.[01] | aix4.[01].*)
15631 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15632 echo ' yes '
15633 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15634 :
15635 else
15636 can_build_shared=no
15637 fi
15638 ;;
15639 esac
15640 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15641 # soname into executable. Probably we can add versioning support to
15642 # collect2, so additional links can be useful in future.
15643 if test "$aix_use_runtimelinking" = yes; then
15644 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15645 # instead of lib<name>.a to let people know that these are not
15646 # typical AIX shared libraries.
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 else
15649 # We preserve .a as extension for shared libraries through AIX4.2
15650 # and later when we are not doing run time linking.
15651 library_names_spec='${libname}${release}.a $libname.a'
15652 soname_spec='${libname}${release}${shared_ext}$major'
15653 fi
15654 shlibpath_var=LIBPATH
15655 fi
15656 ;;
15657
15658 amigaos*)
15659 library_names_spec='$libname.ixlibrary $libname.a'
15660 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15661 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'
15662 ;;
15663
15664 beos*)
15665 library_names_spec='${libname}${shared_ext}'
15666 dynamic_linker="$host_os ld.so"
15667 shlibpath_var=LIBRARY_PATH
15668 ;;
15669
15670 bsdi[45]*)
15671 version_type=linux
15672 need_version=no
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 soname_spec='${libname}${release}${shared_ext}$major'
15675 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15676 shlibpath_var=LD_LIBRARY_PATH
15677 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15678 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15679 # the default ld.so.conf also contains /usr/contrib/lib and
15680 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15681 # libtool to hard-code these into programs
15682 ;;
15683
15684 cygwin* | mingw* | pw32*)
15685 version_type=windows
15686 shrext_cmds=".dll"
15687 need_version=no
15688 need_lib_prefix=no
15689
15690 case $GCC,$host_os in
15691 yes,cygwin* | yes,mingw* | yes,pw32*)
15692 library_names_spec='$libname.dll.a'
15693 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15694 postinstall_cmds='base_file=`basename \${file}`~
15695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15696 dldir=$destdir/`dirname \$dlpath`~
15697 test -d \$dldir || mkdir -p \$dldir~
15698 $install_prog $dir/$dlname \$dldir/$dlname~
15699 chmod a+x \$dldir/$dlname'
15700 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15701 dlpath=$dir/\$dldll~
15702 $rm \$dlpath'
15703 shlibpath_overrides_runpath=yes
15704
15705 case $host_os in
15706 cygwin*)
15707 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15708 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15709 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15710 ;;
15711 mingw*)
15712 # MinGW DLLs use traditional 'lib' prefix
15713 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15714 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15715 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15716 # It is most probably a Windows format PATH printed by
15717 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15718 # path with ; separators, and with drive letters. We can handle the
15719 # drive letters (cygwin fileutils understands them), so leave them,
15720 # especially as we might pass files found there to a mingw objdump,
15721 # which wouldn't understand a cygwinified path. Ahh.
15722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15723 else
15724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15725 fi
15726 ;;
15727 pw32*)
15728 # pw32 DLLs use 'pw' prefix rather than 'lib'
15729 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15730 ;;
15731 esac
15732 ;;
15733
15734 *)
15735 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15736 ;;
15737 esac
15738 dynamic_linker='Win32 ld.exe'
15739 # FIXME: first we should search . and the directory the executable is in
15740 shlibpath_var=PATH
15741 ;;
15742
15743 darwin* | rhapsody*)
15744 dynamic_linker="$host_os dyld"
15745 version_type=darwin
15746 need_lib_prefix=no
15747 need_version=no
15748 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15749 soname_spec='${libname}${release}${major}$shared_ext'
15750 shlibpath_overrides_runpath=yes
15751 shlibpath_var=DYLD_LIBRARY_PATH
15752 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15753
15754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15755 ;;
15756
15757 dgux*)
15758 version_type=linux
15759 need_lib_prefix=no
15760 need_version=no
15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15762 soname_spec='${libname}${release}${shared_ext}$major'
15763 shlibpath_var=LD_LIBRARY_PATH
15764 ;;
15765
15766 freebsd1*)
15767 dynamic_linker=no
15768 ;;
15769
15770 freebsd* | dragonfly*)
15771 # DragonFly does not have aout. When/if they implement a new
15772 # versioning mechanism, adjust this.
15773 if test -x /usr/bin/objformat; then
15774 objformat=`/usr/bin/objformat`
15775 else
15776 case $host_os in
15777 freebsd[123]*) objformat=aout ;;
15778 *) objformat=elf ;;
15779 esac
15780 fi
15781 version_type=freebsd-$objformat
15782 case $version_type in
15783 freebsd-elf*)
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15785 need_version=no
15786 need_lib_prefix=no
15787 ;;
15788 freebsd-*)
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15790 need_version=yes
15791 ;;
15792 esac
15793 shlibpath_var=LD_LIBRARY_PATH
15794 case $host_os in
15795 freebsd2*)
15796 shlibpath_overrides_runpath=yes
15797 ;;
15798 freebsd3.[01]* | freebsdelf3.[01]*)
15799 shlibpath_overrides_runpath=yes
15800 hardcode_into_libs=yes
15801 ;;
15802 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15803 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15804 shlibpath_overrides_runpath=no
15805 hardcode_into_libs=yes
15806 ;;
15807 *) # from 4.6 on, and DragonFly
15808 shlibpath_overrides_runpath=yes
15809 hardcode_into_libs=yes
15810 ;;
15811 esac
15812 ;;
15813
15814 gnu*)
15815 version_type=linux
15816 need_lib_prefix=no
15817 need_version=no
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 shlibpath_var=LD_LIBRARY_PATH
15821 hardcode_into_libs=yes
15822 ;;
15823
15824 hpux9* | hpux10* | hpux11*)
15825 # Give a soname corresponding to the major version so that dld.sl refuses to
15826 # link against other versions.
15827 version_type=sunos
15828 need_lib_prefix=no
15829 need_version=no
15830 case $host_cpu in
15831 ia64*)
15832 shrext_cmds='.so'
15833 hardcode_into_libs=yes
15834 dynamic_linker="$host_os dld.so"
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838 soname_spec='${libname}${release}${shared_ext}$major'
15839 if test "X$HPUX_IA64_MODE" = X32; then
15840 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15841 else
15842 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15843 fi
15844 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15845 ;;
15846 hppa*64*)
15847 shrext_cmds='.sl'
15848 hardcode_into_libs=yes
15849 dynamic_linker="$host_os dld.sl"
15850 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15851 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15853 soname_spec='${libname}${release}${shared_ext}$major'
15854 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15856 ;;
15857 *)
15858 shrext_cmds='.sl'
15859 dynamic_linker="$host_os dld.sl"
15860 shlibpath_var=SHLIB_PATH
15861 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15863 soname_spec='${libname}${release}${shared_ext}$major'
15864 ;;
15865 esac
15866 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15867 postinstall_cmds='chmod 555 $lib'
15868 ;;
15869
15870 interix[3-9]*)
15871 version_type=linux
15872 need_lib_prefix=no
15873 need_version=no
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15877 shlibpath_var=LD_LIBRARY_PATH
15878 shlibpath_overrides_runpath=no
15879 hardcode_into_libs=yes
15880 ;;
15881
15882 irix5* | irix6* | nonstopux*)
15883 case $host_os in
15884 nonstopux*) version_type=nonstopux ;;
15885 *)
15886 if test "$lt_cv_prog_gnu_ld" = yes; then
15887 version_type=linux
15888 else
15889 version_type=irix
15890 fi ;;
15891 esac
15892 need_lib_prefix=no
15893 need_version=no
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15896 case $host_os in
15897 irix5* | nonstopux*)
15898 libsuff= shlibsuff=
15899 ;;
15900 *)
15901 case $LD in # libtool.m4 will add one of these switches to LD
15902 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15903 libsuff= shlibsuff= libmagic=32-bit;;
15904 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15905 libsuff=32 shlibsuff=N32 libmagic=N32;;
15906 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15907 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15908 *) libsuff= shlibsuff= libmagic=never-match;;
15909 esac
15910 ;;
15911 esac
15912 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15913 shlibpath_overrides_runpath=no
15914 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15915 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15916 hardcode_into_libs=yes
15917 ;;
15918
15919 # No shared lib support for Linux oldld, aout, or coff.
15920 linux*oldld* | linux*aout* | linux*coff*)
15921 dynamic_linker=no
15922 ;;
15923
15924 # This must be Linux ELF.
15925 linux* | k*bsd*-gnu)
15926 version_type=linux
15927 need_lib_prefix=no
15928 need_version=no
15929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15930 soname_spec='${libname}${release}${shared_ext}$major'
15931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15932 shlibpath_var=LD_LIBRARY_PATH
15933 shlibpath_overrides_runpath=no
15934 # This implies no fast_install, which is unacceptable.
15935 # Some rework will be needed to allow for fast_install
15936 # before this can be enabled.
15937 hardcode_into_libs=yes
15938
15939 # Append ld.so.conf contents to the search path
15940 if test -f /etc/ld.so.conf; then
15941 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' ' '`
15942 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15943 fi
15944
15945 # We used to test for /lib/ld.so.1 and disable shared libraries on
15946 # powerpc, because MkLinux only supported shared libraries with the
15947 # GNU dynamic linker. Since this was broken with cross compilers,
15948 # most powerpc-linux boxes support dynamic linking these days and
15949 # people can always --disable-shared, the test was removed, and we
15950 # assume the GNU/Linux dynamic linker is in use.
15951 dynamic_linker='GNU/Linux ld.so'
15952 ;;
15953
15954 netbsdelf*-gnu)
15955 version_type=linux
15956 need_lib_prefix=no
15957 need_version=no
15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15959 soname_spec='${libname}${release}${shared_ext}$major'
15960 shlibpath_var=LD_LIBRARY_PATH
15961 shlibpath_overrides_runpath=no
15962 hardcode_into_libs=yes
15963 dynamic_linker='NetBSD ld.elf_so'
15964 ;;
15965
15966 netbsd*)
15967 version_type=sunos
15968 need_lib_prefix=no
15969 need_version=no
15970 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15973 dynamic_linker='NetBSD (a.out) ld.so'
15974 else
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15976 soname_spec='${libname}${release}${shared_ext}$major'
15977 dynamic_linker='NetBSD ld.elf_so'
15978 fi
15979 shlibpath_var=LD_LIBRARY_PATH
15980 shlibpath_overrides_runpath=yes
15981 hardcode_into_libs=yes
15982 ;;
15983
15984 newsos6)
15985 version_type=linux
15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15987 shlibpath_var=LD_LIBRARY_PATH
15988 shlibpath_overrides_runpath=yes
15989 ;;
15990
15991 nto-qnx*)
15992 version_type=linux
15993 need_lib_prefix=no
15994 need_version=no
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996 soname_spec='${libname}${release}${shared_ext}$major'
15997 shlibpath_var=LD_LIBRARY_PATH
15998 shlibpath_overrides_runpath=yes
15999 ;;
16000
16001 openbsd*)
16002 version_type=sunos
16003 sys_lib_dlsearch_path_spec="/usr/lib"
16004 need_lib_prefix=no
16005 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16006 case $host_os in
16007 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16008 *) need_version=no ;;
16009 esac
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16012 shlibpath_var=LD_LIBRARY_PATH
16013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16014 case $host_os in
16015 openbsd2.[89] | openbsd2.[89].*)
16016 shlibpath_overrides_runpath=no
16017 ;;
16018 *)
16019 shlibpath_overrides_runpath=yes
16020 ;;
16021 esac
16022 else
16023 shlibpath_overrides_runpath=yes
16024 fi
16025 ;;
16026
16027 os2*)
16028 libname_spec='$name'
16029 shrext_cmds=".dll"
16030 need_lib_prefix=no
16031 library_names_spec='$libname${shared_ext} $libname.a'
16032 dynamic_linker='OS/2 ld.exe'
16033 shlibpath_var=LIBPATH
16034 ;;
16035
16036 osf3* | osf4* | osf5*)
16037 version_type=osf
16038 need_lib_prefix=no
16039 need_version=no
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16044 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16045 ;;
16046
16047 rdos*)
16048 dynamic_linker=no
16049 ;;
16050
16051 solaris*)
16052 version_type=linux
16053 need_lib_prefix=no
16054 need_version=no
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=yes
16059 hardcode_into_libs=yes
16060 # ldd complains unless libraries are executable
16061 postinstall_cmds='chmod +x $lib'
16062 ;;
16063
16064 sunos4*)
16065 version_type=sunos
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 shlibpath_overrides_runpath=yes
16070 if test "$with_gnu_ld" = yes; then
16071 need_lib_prefix=no
16072 fi
16073 need_version=yes
16074 ;;
16075
16076 sysv4 | sysv4.3*)
16077 version_type=linux
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 case $host_vendor in
16082 sni)
16083 shlibpath_overrides_runpath=no
16084 need_lib_prefix=no
16085 export_dynamic_flag_spec='${wl}-Blargedynsym'
16086 runpath_var=LD_RUN_PATH
16087 ;;
16088 siemens)
16089 need_lib_prefix=no
16090 ;;
16091 motorola)
16092 need_lib_prefix=no
16093 need_version=no
16094 shlibpath_overrides_runpath=no
16095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16096 ;;
16097 esac
16098 ;;
16099
16100 sysv4*MP*)
16101 if test -d /usr/nec ;then
16102 version_type=linux
16103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16104 soname_spec='$libname${shared_ext}.$major'
16105 shlibpath_var=LD_LIBRARY_PATH
16106 fi
16107 ;;
16108
16109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16110 version_type=freebsd-elf
16111 need_lib_prefix=no
16112 need_version=no
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 hardcode_into_libs=yes
16117 if test "$with_gnu_ld" = yes; then
16118 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16119 shlibpath_overrides_runpath=no
16120 else
16121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16122 shlibpath_overrides_runpath=yes
16123 case $host_os in
16124 sco3.2v5*)
16125 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16126 ;;
16127 esac
16128 fi
16129 sys_lib_dlsearch_path_spec='/usr/lib'
16130 ;;
16131
16132 uts4*)
16133 version_type=linux
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 shlibpath_var=LD_LIBRARY_PATH
16137 ;;
16138
16139 *)
16140 dynamic_linker=no
16141 ;;
16142 esac
16143 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16144 echo "${ECHO_T}$dynamic_linker" >&6; }
16145 test "$dynamic_linker" = no && can_build_shared=no
16146
16147 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16151 fi
16152
16153 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16154 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16157 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16158 fi
16159
16160 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16161
16162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16163 if test "$GCC" = yes; then
16164 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16165 fi
16166
16167 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16168 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16169 hardcode_action_F77=
16170 if test -n "$hardcode_libdir_flag_spec_F77" || \
16171 test -n "$runpath_var_F77" || \
16172 test "X$hardcode_automatic_F77" = "Xyes" ; then
16173
16174 # We can hardcode non-existant directories.
16175 if test "$hardcode_direct_F77" != no &&
16176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16177 # have to relink, otherwise we might link with an installed library
16178 # when we should be linking with a yet-to-be-installed one
16179 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16180 test "$hardcode_minus_L_F77" != no; then
16181 # Linking always hardcodes the temporary library directory.
16182 hardcode_action_F77=relink
16183 else
16184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16185 hardcode_action_F77=immediate
16186 fi
16187 else
16188 # We cannot hardcode anything, or else we can only hardcode existing
16189 # directories.
16190 hardcode_action_F77=unsupported
16191 fi
16192 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16193 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16194
16195 if test "$hardcode_action_F77" = relink; then
16196 # Fast installation is not supported
16197 enable_fast_install=no
16198 elif test "$shlibpath_overrides_runpath" = yes ||
16199 test "$enable_shared" = no; then
16200 # Fast installation is not necessary
16201 enable_fast_install=needless
16202 fi
16203
16204
16205 # The else clause should only fire when bootstrapping the
16206 # libtool distribution, otherwise you forgot to ship ltmain.sh
16207 # with your package, and you will get complaints that there are
16208 # no rules to generate ltmain.sh.
16209 if test -f "$ltmain"; then
16210 # See if we are running on zsh, and set the options which allow our commands through
16211 # without removal of \ escapes.
16212 if test -n "${ZSH_VERSION+set}" ; then
16213 setopt NO_GLOB_SUBST
16214 fi
16215 # Now quote all the things that may contain metacharacters while being
16216 # careful not to overquote the AC_SUBSTed values. We take copies of the
16217 # variables and quote the copies for generation of the libtool script.
16218 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16219 SED SHELL STRIP \
16220 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16221 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16222 deplibs_check_method reload_flag reload_cmds need_locks \
16223 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16224 lt_cv_sys_global_symbol_to_c_name_address \
16225 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16226 old_postinstall_cmds old_postuninstall_cmds \
16227 compiler_F77 \
16228 CC_F77 \
16229 LD_F77 \
16230 lt_prog_compiler_wl_F77 \
16231 lt_prog_compiler_pic_F77 \
16232 lt_prog_compiler_static_F77 \
16233 lt_prog_compiler_no_builtin_flag_F77 \
16234 export_dynamic_flag_spec_F77 \
16235 thread_safe_flag_spec_F77 \
16236 whole_archive_flag_spec_F77 \
16237 enable_shared_with_static_runtimes_F77 \
16238 old_archive_cmds_F77 \
16239 old_archive_from_new_cmds_F77 \
16240 predep_objects_F77 \
16241 postdep_objects_F77 \
16242 predeps_F77 \
16243 postdeps_F77 \
16244 compiler_lib_search_path_F77 \
16245 compiler_lib_search_dirs_F77 \
16246 archive_cmds_F77 \
16247 archive_expsym_cmds_F77 \
16248 postinstall_cmds_F77 \
16249 postuninstall_cmds_F77 \
16250 old_archive_from_expsyms_cmds_F77 \
16251 allow_undefined_flag_F77 \
16252 no_undefined_flag_F77 \
16253 export_symbols_cmds_F77 \
16254 hardcode_libdir_flag_spec_F77 \
16255 hardcode_libdir_flag_spec_ld_F77 \
16256 hardcode_libdir_separator_F77 \
16257 hardcode_automatic_F77 \
16258 module_cmds_F77 \
16259 module_expsym_cmds_F77 \
16260 lt_cv_prog_compiler_c_o_F77 \
16261 fix_srcfile_path_F77 \
16262 exclude_expsyms_F77 \
16263 include_expsyms_F77; do
16264
16265 case $var in
16266 old_archive_cmds_F77 | \
16267 old_archive_from_new_cmds_F77 | \
16268 archive_cmds_F77 | \
16269 archive_expsym_cmds_F77 | \
16270 module_cmds_F77 | \
16271 module_expsym_cmds_F77 | \
16272 old_archive_from_expsyms_cmds_F77 | \
16273 export_symbols_cmds_F77 | \
16274 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16275 postinstall_cmds | postuninstall_cmds | \
16276 old_postinstall_cmds | old_postuninstall_cmds | \
16277 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16278 # Double-quote double-evaled strings.
16279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16280 ;;
16281 *)
16282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16283 ;;
16284 esac
16285 done
16286
16287 case $lt_echo in
16288 *'\$0 --fallback-echo"')
16289 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16290 ;;
16291 esac
16292
16293 cfgfile="$ofile"
16294
16295 cat <<__EOF__ >> "$cfgfile"
16296 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16297
16298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16299
16300 # Shell to use when invoking shell scripts.
16301 SHELL=$lt_SHELL
16302
16303 # Whether or not to build shared libraries.
16304 build_libtool_libs=$enable_shared
16305
16306 # Whether or not to build static libraries.
16307 build_old_libs=$enable_static
16308
16309 # Whether or not to add -lc for building shared libraries.
16310 build_libtool_need_lc=$archive_cmds_need_lc_F77
16311
16312 # Whether or not to disallow shared libs when runtime libs are static
16313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16314
16315 # Whether or not to optimize for fast installation.
16316 fast_install=$enable_fast_install
16317
16318 # The host system.
16319 host_alias=$host_alias
16320 host=$host
16321 host_os=$host_os
16322
16323 # The build system.
16324 build_alias=$build_alias
16325 build=$build
16326 build_os=$build_os
16327
16328 # An echo program that does not interpret backslashes.
16329 echo=$lt_echo
16330
16331 # The archiver.
16332 AR=$lt_AR
16333 AR_FLAGS=$lt_AR_FLAGS
16334
16335 # A C compiler.
16336 LTCC=$lt_LTCC
16337
16338 # LTCC compiler flags.
16339 LTCFLAGS=$lt_LTCFLAGS
16340
16341 # A language-specific compiler.
16342 CC=$lt_compiler_F77
16343
16344 # Is the compiler the GNU C compiler?
16345 with_gcc=$GCC_F77
16346
16347 # An ERE matcher.
16348 EGREP=$lt_EGREP
16349
16350 # The linker used to build libraries.
16351 LD=$lt_LD_F77
16352
16353 # Whether we need hard or soft links.
16354 LN_S=$lt_LN_S
16355
16356 # A BSD-compatible nm program.
16357 NM=$lt_NM
16358
16359 # A symbol stripping program
16360 STRIP=$lt_STRIP
16361
16362 # Used to examine libraries when file_magic_cmd begins "file"
16363 MAGIC_CMD=$MAGIC_CMD
16364
16365 # Used on cygwin: DLL creation program.
16366 DLLTOOL="$DLLTOOL"
16367
16368 # Used on cygwin: object dumper.
16369 OBJDUMP="$OBJDUMP"
16370
16371 # Used on cygwin: assembler.
16372 AS="$AS"
16373
16374 # The name of the directory that contains temporary libtool files.
16375 objdir=$objdir
16376
16377 # How to create reloadable object files.
16378 reload_flag=$lt_reload_flag
16379 reload_cmds=$lt_reload_cmds
16380
16381 # How to pass a linker flag through the compiler.
16382 wl=$lt_lt_prog_compiler_wl_F77
16383
16384 # Object file suffix (normally "o").
16385 objext="$ac_objext"
16386
16387 # Old archive suffix (normally "a").
16388 libext="$libext"
16389
16390 # Shared library suffix (normally ".so").
16391 shrext_cmds='$shrext_cmds'
16392
16393 # Executable file suffix (normally "").
16394 exeext="$exeext"
16395
16396 # Additional compiler flags for building library objects.
16397 pic_flag=$lt_lt_prog_compiler_pic_F77
16398 pic_mode=$pic_mode
16399
16400 # What is the maximum length of a command?
16401 max_cmd_len=$lt_cv_sys_max_cmd_len
16402
16403 # Does compiler simultaneously support -c and -o options?
16404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16405
16406 # Must we lock files when doing compilation?
16407 need_locks=$lt_need_locks
16408
16409 # Do we need the lib prefix for modules?
16410 need_lib_prefix=$need_lib_prefix
16411
16412 # Do we need a version for libraries?
16413 need_version=$need_version
16414
16415 # Whether dlopen is supported.
16416 dlopen_support=$enable_dlopen
16417
16418 # Whether dlopen of programs is supported.
16419 dlopen_self=$enable_dlopen_self
16420
16421 # Whether dlopen of statically linked programs is supported.
16422 dlopen_self_static=$enable_dlopen_self_static
16423
16424 # Compiler flag to prevent dynamic linking.
16425 link_static_flag=$lt_lt_prog_compiler_static_F77
16426
16427 # Compiler flag to turn off builtin functions.
16428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16429
16430 # Compiler flag to allow reflexive dlopens.
16431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16432
16433 # Compiler flag to generate shared objects directly from archives.
16434 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16435
16436 # Compiler flag to generate thread-safe objects.
16437 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16438
16439 # Library versioning type.
16440 version_type=$version_type
16441
16442 # Format of library name prefix.
16443 libname_spec=$lt_libname_spec
16444
16445 # List of archive names. First name is the real one, the rest are links.
16446 # The last name is the one that the linker finds with -lNAME.
16447 library_names_spec=$lt_library_names_spec
16448
16449 # The coded name of the library, if different from the real name.
16450 soname_spec=$lt_soname_spec
16451
16452 # Commands used to build and install an old-style archive.
16453 RANLIB=$lt_RANLIB
16454 old_archive_cmds=$lt_old_archive_cmds_F77
16455 old_postinstall_cmds=$lt_old_postinstall_cmds
16456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16457
16458 # Create an old-style archive from a shared archive.
16459 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16460
16461 # Create a temporary old-style archive to link instead of a shared archive.
16462 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16463
16464 # Commands used to build and install a shared archive.
16465 archive_cmds=$lt_archive_cmds_F77
16466 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16467 postinstall_cmds=$lt_postinstall_cmds
16468 postuninstall_cmds=$lt_postuninstall_cmds
16469
16470 # Commands used to build a loadable module (assumed same as above if empty)
16471 module_cmds=$lt_module_cmds_F77
16472 module_expsym_cmds=$lt_module_expsym_cmds_F77
16473
16474 # Commands to strip libraries.
16475 old_striplib=$lt_old_striplib
16476 striplib=$lt_striplib
16477
16478 # Dependencies to place before the objects being linked to create a
16479 # shared library.
16480 predep_objects=$lt_predep_objects_F77
16481
16482 # Dependencies to place after the objects being linked to create a
16483 # shared library.
16484 postdep_objects=$lt_postdep_objects_F77
16485
16486 # Dependencies to place before the objects being linked to create a
16487 # shared library.
16488 predeps=$lt_predeps_F77
16489
16490 # Dependencies to place after the objects being linked to create a
16491 # shared library.
16492 postdeps=$lt_postdeps_F77
16493
16494 # The directories searched by this compiler when creating a shared
16495 # library
16496 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16497
16498 # The library search path used internally by the compiler when linking
16499 # a shared library.
16500 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16501
16502 # Method to check whether dependent libraries are shared objects.
16503 deplibs_check_method=$lt_deplibs_check_method
16504
16505 # Command to use when deplibs_check_method == file_magic.
16506 file_magic_cmd=$lt_file_magic_cmd
16507
16508 # Flag that allows shared libraries with undefined symbols to be built.
16509 allow_undefined_flag=$lt_allow_undefined_flag_F77
16510
16511 # Flag that forces no undefined symbols.
16512 no_undefined_flag=$lt_no_undefined_flag_F77
16513
16514 # Commands used to finish a libtool library installation in a directory.
16515 finish_cmds=$lt_finish_cmds
16516
16517 # Same as above, but a single script fragment to be evaled but not shown.
16518 finish_eval=$lt_finish_eval
16519
16520 # Take the output of nm and produce a listing of raw symbols and C names.
16521 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16522
16523 # Transform the output of nm in a proper C declaration
16524 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16525
16526 # Transform the output of nm in a C name address pair
16527 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16528
16529 # This is the shared library runtime path variable.
16530 runpath_var=$runpath_var
16531
16532 # This is the shared library path variable.
16533 shlibpath_var=$shlibpath_var
16534
16535 # Is shlibpath searched before the hard-coded library search path?
16536 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16537
16538 # How to hardcode a shared library path into an executable.
16539 hardcode_action=$hardcode_action_F77
16540
16541 # Whether we should hardcode library paths into libraries.
16542 hardcode_into_libs=$hardcode_into_libs
16543
16544 # Flag to hardcode \$libdir into a binary during linking.
16545 # This must work even if \$libdir does not exist.
16546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16547
16548 # If ld is used when linking, flag to hardcode \$libdir into
16549 # a binary during linking. This must work even if \$libdir does
16550 # not exist.
16551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16552
16553 # Whether we need a single -rpath flag with a separated argument.
16554 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16555
16556 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16557 # resulting binary.
16558 hardcode_direct=$hardcode_direct_F77
16559
16560 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16561 # resulting binary.
16562 hardcode_minus_L=$hardcode_minus_L_F77
16563
16564 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16565 # the resulting binary.
16566 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16567
16568 # Set to yes if building a shared library automatically hardcodes DIR into the library
16569 # and all subsequent libraries and executables linked against it.
16570 hardcode_automatic=$hardcode_automatic_F77
16571
16572 # Variables whose values should be saved in libtool wrapper scripts and
16573 # restored at relink time.
16574 variables_saved_for_relink="$variables_saved_for_relink"
16575
16576 # Whether libtool must link a program against all its dependency libraries.
16577 link_all_deplibs=$link_all_deplibs_F77
16578
16579 # Compile-time system search path for libraries
16580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16581
16582 # Run-time system search path for libraries
16583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16584
16585 # Fix the shell variable \$srcfile for the compiler.
16586 fix_srcfile_path=$lt_fix_srcfile_path
16587
16588 # Set to yes if exported symbols are required.
16589 always_export_symbols=$always_export_symbols_F77
16590
16591 # The commands to list exported symbols.
16592 export_symbols_cmds=$lt_export_symbols_cmds_F77
16593
16594 # The commands to extract the exported symbol list from a shared archive.
16595 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16596
16597 # Symbols that should not be listed in the preloaded symbols.
16598 exclude_expsyms=$lt_exclude_expsyms_F77
16599
16600 # Symbols that must always be exported.
16601 include_expsyms=$lt_include_expsyms_F77
16602
16603 # ### END LIBTOOL TAG CONFIG: $tagname
16604
16605 __EOF__
16606
16607
16608 else
16609 # If there is no Makefile yet, we rely on a make rule to execute
16610 # `config.status --recheck' to rerun these tests and create the
16611 # libtool script then.
16612 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16613 if test -f "$ltmain_in"; then
16614 test -f Makefile && make "$ltmain"
16615 fi
16616 fi
16617
16618
16619 ac_ext=c
16620 ac_cpp='$CPP $CPPFLAGS'
16621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16624
16625 CC="$lt_save_CC"
16626
16627 else
16628 tagname=""
16629 fi
16630 ;;
16631
16632 GCJ)
16633 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16634
16635
16636 # Source file extension for Java test sources.
16637 ac_ext=java
16638
16639 # Object file extension for compiled Java test sources.
16640 objext=o
16641 objext_GCJ=$objext
16642
16643 # Code to be used in simple compile tests
16644 lt_simple_compile_test_code="class foo {}"
16645
16646 # Code to be used in simple link tests
16647 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16648
16649 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16650
16651 # If no C compiler was specified, use CC.
16652 LTCC=${LTCC-"$CC"}
16653
16654 # If no C compiler flags were specified, use CFLAGS.
16655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16656
16657 # Allow CC to be a program name with arguments.
16658 compiler=$CC
16659
16660
16661 # save warnings/boilerplate of simple test code
16662 ac_outfile=conftest.$ac_objext
16663 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16665 _lt_compiler_boilerplate=`cat conftest.err`
16666 $rm conftest*
16667
16668 ac_outfile=conftest.$ac_objext
16669 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16671 _lt_linker_boilerplate=`cat conftest.err`
16672 $rm -r conftest*
16673
16674
16675 # Allow CC to be a program name with arguments.
16676 lt_save_CC="$CC"
16677 CC=${GCJ-"gcj"}
16678 compiler=$CC
16679 compiler_GCJ=$CC
16680 for cc_temp in $compiler""; do
16681 case $cc_temp in
16682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16684 \-*) ;;
16685 *) break;;
16686 esac
16687 done
16688 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16689
16690
16691 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16692 archive_cmds_need_lc_GCJ=no
16693
16694 old_archive_cmds_GCJ=$old_archive_cmds
16695
16696
16697 lt_prog_compiler_no_builtin_flag_GCJ=
16698
16699 if test "$GCC" = yes; then
16700 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16701
16702
16703 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16704 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16705 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 else
16708 lt_cv_prog_compiler_rtti_exceptions=no
16709 ac_outfile=conftest.$ac_objext
16710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16711 lt_compiler_flag="-fno-rtti -fno-exceptions"
16712 # Insert the option either (1) after the last *FLAGS variable, or
16713 # (2) before a word containing "conftest.", or (3) at the end.
16714 # Note that $ac_compile itself does not contain backslashes and begins
16715 # with a dollar sign (not a hyphen), so the echo should work correctly.
16716 # The option is referenced via a variable to avoid confusing sed.
16717 lt_compile=`echo "$ac_compile" | $SED \
16718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16720 -e 's:$: $lt_compiler_flag:'`
16721 (eval echo "\"\$as_me:16722: $lt_compile\"" >&5)
16722 (eval "$lt_compile" 2>conftest.err)
16723 ac_status=$?
16724 cat conftest.err >&5
16725 echo "$as_me:16726: \$? = $ac_status" >&5
16726 if (exit $ac_status) && test -s "$ac_outfile"; then
16727 # The compiler can only warn and ignore the option if not recognized
16728 # So say no if there are warnings other than the usual output.
16729 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16731 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16732 lt_cv_prog_compiler_rtti_exceptions=yes
16733 fi
16734 fi
16735 $rm conftest*
16736
16737 fi
16738 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16739 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16740
16741 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16742 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16743 else
16744 :
16745 fi
16746
16747 fi
16748
16749 lt_prog_compiler_wl_GCJ=
16750 lt_prog_compiler_pic_GCJ=
16751 lt_prog_compiler_static_GCJ=
16752
16753 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16754 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16755
16756 if test "$GCC" = yes; then
16757 lt_prog_compiler_wl_GCJ='-Wl,'
16758 lt_prog_compiler_static_GCJ='-static'
16759
16760 case $host_os in
16761 aix*)
16762 # All AIX code is PIC.
16763 if test "$host_cpu" = ia64; then
16764 # AIX 5 now supports IA64 processor
16765 lt_prog_compiler_static_GCJ='-Bstatic'
16766 fi
16767 ;;
16768
16769 amigaos*)
16770 # FIXME: we need at least 68020 code to build shared libraries, but
16771 # adding the `-m68020' flag to GCC prevents building anything better,
16772 # like `-m68040'.
16773 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16774 ;;
16775
16776 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16777 # PIC is the default for these OSes.
16778 ;;
16779
16780 mingw* | cygwin* | pw32* | os2*)
16781 # This hack is so that the source file can tell whether it is being
16782 # built for inclusion in a dll (and should export symbols for example).
16783 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16784 # (--disable-auto-import) libraries
16785
16786 ;;
16787
16788 darwin* | rhapsody*)
16789 # PIC is the default on this platform
16790 # Common symbols not allowed in MH_DYLIB files
16791 lt_prog_compiler_pic_GCJ='-fno-common'
16792 ;;
16793
16794 interix[3-9]*)
16795 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16796 # Instead, we relocate shared libraries at runtime.
16797 ;;
16798
16799 msdosdjgpp*)
16800 # Just because we use GCC doesn't mean we suddenly get shared libraries
16801 # on systems that don't support them.
16802 lt_prog_compiler_can_build_shared_GCJ=no
16803 enable_shared=no
16804 ;;
16805
16806 sysv4*MP*)
16807 if test -d /usr/nec; then
16808 lt_prog_compiler_pic_GCJ=-Kconform_pic
16809 fi
16810 ;;
16811
16812 hpux*)
16813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16814 # not for PA HP-UX.
16815 case $host_cpu in
16816 hppa*64*|ia64*)
16817 # +Z the default
16818 ;;
16819 *)
16820 lt_prog_compiler_pic_GCJ='-fPIC'
16821 ;;
16822 esac
16823 ;;
16824
16825 *)
16826 lt_prog_compiler_pic_GCJ='-fPIC'
16827 ;;
16828 esac
16829 else
16830 # PORTME Check for flag to pass linker flags through the system compiler.
16831 case $host_os in
16832 aix*)
16833 lt_prog_compiler_wl_GCJ='-Wl,'
16834 if test "$host_cpu" = ia64; then
16835 # AIX 5 now supports IA64 processor
16836 lt_prog_compiler_static_GCJ='-Bstatic'
16837 else
16838 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16839 fi
16840 ;;
16841 darwin*)
16842 # PIC is the default on this platform
16843 # Common symbols not allowed in MH_DYLIB files
16844 case $cc_basename in
16845 xlc*)
16846 lt_prog_compiler_pic_GCJ='-qnocommon'
16847 lt_prog_compiler_wl_GCJ='-Wl,'
16848 ;;
16849 esac
16850 ;;
16851
16852 mingw* | cygwin* | pw32* | os2*)
16853 # This hack is so that the source file can tell whether it is being
16854 # built for inclusion in a dll (and should export symbols for example).
16855
16856 ;;
16857
16858 hpux9* | hpux10* | hpux11*)
16859 lt_prog_compiler_wl_GCJ='-Wl,'
16860 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16861 # not for PA HP-UX.
16862 case $host_cpu in
16863 hppa*64*|ia64*)
16864 # +Z the default
16865 ;;
16866 *)
16867 lt_prog_compiler_pic_GCJ='+Z'
16868 ;;
16869 esac
16870 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16871 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16872 ;;
16873
16874 irix5* | irix6* | nonstopux*)
16875 lt_prog_compiler_wl_GCJ='-Wl,'
16876 # PIC (with -KPIC) is the default.
16877 lt_prog_compiler_static_GCJ='-non_shared'
16878 ;;
16879
16880 newsos6)
16881 lt_prog_compiler_pic_GCJ='-KPIC'
16882 lt_prog_compiler_static_GCJ='-Bstatic'
16883 ;;
16884
16885 linux* | k*bsd*-gnu)
16886 case $cc_basename in
16887 icc* | ecc*)
16888 lt_prog_compiler_wl_GCJ='-Wl,'
16889 lt_prog_compiler_pic_GCJ='-KPIC'
16890 lt_prog_compiler_static_GCJ='-static'
16891 ;;
16892 pgcc* | pgf77* | pgf90* | pgf95*)
16893 # Portland Group compilers (*not* the Pentium gcc compiler,
16894 # which looks to be a dead project)
16895 lt_prog_compiler_wl_GCJ='-Wl,'
16896 lt_prog_compiler_pic_GCJ='-fpic'
16897 lt_prog_compiler_static_GCJ='-Bstatic'
16898 ;;
16899 ccc*)
16900 lt_prog_compiler_wl_GCJ='-Wl,'
16901 # All Alpha code is PIC.
16902 lt_prog_compiler_static_GCJ='-non_shared'
16903 ;;
16904 *)
16905 case `$CC -V 2>&1 | sed 5q` in
16906 *Sun\ C*)
16907 # Sun C 5.9
16908 lt_prog_compiler_pic_GCJ='-KPIC'
16909 lt_prog_compiler_static_GCJ='-Bstatic'
16910 lt_prog_compiler_wl_GCJ='-Wl,'
16911 ;;
16912 *Sun\ F*)
16913 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16914 lt_prog_compiler_pic_GCJ='-KPIC'
16915 lt_prog_compiler_static_GCJ='-Bstatic'
16916 lt_prog_compiler_wl_GCJ=''
16917 ;;
16918 esac
16919 ;;
16920 esac
16921 ;;
16922
16923 osf3* | osf4* | osf5*)
16924 lt_prog_compiler_wl_GCJ='-Wl,'
16925 # All OSF/1 code is PIC.
16926 lt_prog_compiler_static_GCJ='-non_shared'
16927 ;;
16928
16929 rdos*)
16930 lt_prog_compiler_static_GCJ='-non_shared'
16931 ;;
16932
16933 solaris*)
16934 lt_prog_compiler_pic_GCJ='-KPIC'
16935 lt_prog_compiler_static_GCJ='-Bstatic'
16936 case $cc_basename in
16937 f77* | f90* | f95*)
16938 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16939 *)
16940 lt_prog_compiler_wl_GCJ='-Wl,';;
16941 esac
16942 ;;
16943
16944 sunos4*)
16945 lt_prog_compiler_wl_GCJ='-Qoption ld '
16946 lt_prog_compiler_pic_GCJ='-PIC'
16947 lt_prog_compiler_static_GCJ='-Bstatic'
16948 ;;
16949
16950 sysv4 | sysv4.2uw2* | sysv4.3*)
16951 lt_prog_compiler_wl_GCJ='-Wl,'
16952 lt_prog_compiler_pic_GCJ='-KPIC'
16953 lt_prog_compiler_static_GCJ='-Bstatic'
16954 ;;
16955
16956 sysv4*MP*)
16957 if test -d /usr/nec ;then
16958 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16959 lt_prog_compiler_static_GCJ='-Bstatic'
16960 fi
16961 ;;
16962
16963 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16964 lt_prog_compiler_wl_GCJ='-Wl,'
16965 lt_prog_compiler_pic_GCJ='-KPIC'
16966 lt_prog_compiler_static_GCJ='-Bstatic'
16967 ;;
16968
16969 unicos*)
16970 lt_prog_compiler_wl_GCJ='-Wl,'
16971 lt_prog_compiler_can_build_shared_GCJ=no
16972 ;;
16973
16974 uts4*)
16975 lt_prog_compiler_pic_GCJ='-pic'
16976 lt_prog_compiler_static_GCJ='-Bstatic'
16977 ;;
16978
16979 *)
16980 lt_prog_compiler_can_build_shared_GCJ=no
16981 ;;
16982 esac
16983 fi
16984
16985 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16986 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16987
16988 #
16989 # Check to make sure the PIC flag actually works.
16990 #
16991 if test -n "$lt_prog_compiler_pic_GCJ"; then
16992
16993 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16994 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16995 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998 lt_cv_prog_compiler_pic_works_GCJ=no
16999 ac_outfile=conftest.$ac_objext
17000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17001 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17002 # Insert the option either (1) after the last *FLAGS variable, or
17003 # (2) before a word containing "conftest.", or (3) at the end.
17004 # Note that $ac_compile itself does not contain backslashes and begins
17005 # with a dollar sign (not a hyphen), so the echo should work correctly.
17006 # The option is referenced via a variable to avoid confusing sed.
17007 lt_compile=`echo "$ac_compile" | $SED \
17008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17010 -e 's:$: $lt_compiler_flag:'`
17011 (eval echo "\"\$as_me:17012: $lt_compile\"" >&5)
17012 (eval "$lt_compile" 2>conftest.err)
17013 ac_status=$?
17014 cat conftest.err >&5
17015 echo "$as_me:17016: \$? = $ac_status" >&5
17016 if (exit $ac_status) && test -s "$ac_outfile"; then
17017 # The compiler can only warn and ignore the option if not recognized
17018 # So say no if there are warnings other than the usual output.
17019 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17021 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17022 lt_cv_prog_compiler_pic_works_GCJ=yes
17023 fi
17024 fi
17025 $rm conftest*
17026
17027 fi
17028 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17029 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17030
17031 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17032 case $lt_prog_compiler_pic_GCJ in
17033 "" | " "*) ;;
17034 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17035 esac
17036 else
17037 lt_prog_compiler_pic_GCJ=
17038 lt_prog_compiler_can_build_shared_GCJ=no
17039 fi
17040
17041 fi
17042 case $host_os in
17043 # For platforms which do not support PIC, -DPIC is meaningless:
17044 *djgpp*)
17045 lt_prog_compiler_pic_GCJ=
17046 ;;
17047 *)
17048 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17049 ;;
17050 esac
17051
17052 #
17053 # Check to make sure the static flag actually works.
17054 #
17055 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17056 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17057 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17058 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061 lt_cv_prog_compiler_static_works_GCJ=no
17062 save_LDFLAGS="$LDFLAGS"
17063 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17064 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17065 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17066 # The linker can only warn and ignore the option if not recognized
17067 # So say no if there are warnings
17068 if test -s conftest.err; then
17069 # Append any errors to the config.log.
17070 cat conftest.err 1>&5
17071 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17073 if diff conftest.exp conftest.er2 >/dev/null; then
17074 lt_cv_prog_compiler_static_works_GCJ=yes
17075 fi
17076 else
17077 lt_cv_prog_compiler_static_works_GCJ=yes
17078 fi
17079 fi
17080 $rm -r conftest*
17081 LDFLAGS="$save_LDFLAGS"
17082
17083 fi
17084 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17085 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17086
17087 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17088 :
17089 else
17090 lt_prog_compiler_static_GCJ=
17091 fi
17092
17093
17094 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17095 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17096 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17097 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 else
17099 lt_cv_prog_compiler_c_o_GCJ=no
17100 $rm -r conftest 2>/dev/null
17101 mkdir conftest
17102 cd conftest
17103 mkdir out
17104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17105
17106 lt_compiler_flag="-o out/conftest2.$ac_objext"
17107 # Insert the option either (1) after the last *FLAGS variable, or
17108 # (2) before a word containing "conftest.", or (3) at the end.
17109 # Note that $ac_compile itself does not contain backslashes and begins
17110 # with a dollar sign (not a hyphen), so the echo should work correctly.
17111 lt_compile=`echo "$ac_compile" | $SED \
17112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17114 -e 's:$: $lt_compiler_flag:'`
17115 (eval echo "\"\$as_me:17116: $lt_compile\"" >&5)
17116 (eval "$lt_compile" 2>out/conftest.err)
17117 ac_status=$?
17118 cat out/conftest.err >&5
17119 echo "$as_me:17120: \$? = $ac_status" >&5
17120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17121 then
17122 # The compiler can only warn and ignore the option if not recognized
17123 # So say no if there are warnings
17124 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17127 lt_cv_prog_compiler_c_o_GCJ=yes
17128 fi
17129 fi
17130 chmod u+w . 2>&5
17131 $rm conftest*
17132 # SGI C++ compiler will create directory out/ii_files/ for
17133 # template instantiation
17134 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17135 $rm out/* && rmdir out
17136 cd ..
17137 rmdir conftest
17138 $rm conftest*
17139
17140 fi
17141 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17142 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17143
17144
17145 hard_links="nottested"
17146 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17147 # do not overwrite the value of need_locks provided by the user
17148 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17149 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17150 hard_links=yes
17151 $rm conftest*
17152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17153 touch conftest.a
17154 ln conftest.a conftest.b 2>&5 || hard_links=no
17155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17156 { echo "$as_me:$LINENO: result: $hard_links" >&5
17157 echo "${ECHO_T}$hard_links" >&6; }
17158 if test "$hard_links" = no; then
17159 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17160 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17161 need_locks=warn
17162 fi
17163 else
17164 need_locks=no
17165 fi
17166
17167 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17168 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17169
17170 runpath_var=
17171 allow_undefined_flag_GCJ=
17172 enable_shared_with_static_runtimes_GCJ=no
17173 archive_cmds_GCJ=
17174 archive_expsym_cmds_GCJ=
17175 old_archive_From_new_cmds_GCJ=
17176 old_archive_from_expsyms_cmds_GCJ=
17177 export_dynamic_flag_spec_GCJ=
17178 whole_archive_flag_spec_GCJ=
17179 thread_safe_flag_spec_GCJ=
17180 hardcode_libdir_flag_spec_GCJ=
17181 hardcode_libdir_flag_spec_ld_GCJ=
17182 hardcode_libdir_separator_GCJ=
17183 hardcode_direct_GCJ=no
17184 hardcode_minus_L_GCJ=no
17185 hardcode_shlibpath_var_GCJ=unsupported
17186 link_all_deplibs_GCJ=unknown
17187 hardcode_automatic_GCJ=no
17188 module_cmds_GCJ=
17189 module_expsym_cmds_GCJ=
17190 always_export_symbols_GCJ=no
17191 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17192 # include_expsyms should be a list of space-separated symbols to be *always*
17193 # included in the symbol list
17194 include_expsyms_GCJ=
17195 # exclude_expsyms can be an extended regexp of symbols to exclude
17196 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17197 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17198 # as well as any symbol that contains `d'.
17199 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17200 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17201 # platforms (ab)use it in PIC code, but their linkers get confused if
17202 # the symbol is explicitly referenced. Since portable code cannot
17203 # rely on this symbol name, it's probably fine to never include it in
17204 # preloaded symbol tables.
17205 # Exclude shared library initialization/finalization symbols.
17206 extract_expsyms_cmds=
17207 # Just being paranoid about ensuring that cc_basename is set.
17208 for cc_temp in $compiler""; do
17209 case $cc_temp in
17210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17212 \-*) ;;
17213 *) break;;
17214 esac
17215 done
17216 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17217
17218 case $host_os in
17219 cygwin* | mingw* | pw32*)
17220 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17221 # When not using gcc, we currently assume that we are using
17222 # Microsoft Visual C++.
17223 if test "$GCC" != yes; then
17224 with_gnu_ld=no
17225 fi
17226 ;;
17227 interix*)
17228 # we just hope/assume this is gcc and not c89 (= MSVC++)
17229 with_gnu_ld=yes
17230 ;;
17231 openbsd*)
17232 with_gnu_ld=no
17233 ;;
17234 esac
17235
17236 ld_shlibs_GCJ=yes
17237 if test "$with_gnu_ld" = yes; then
17238 # If archive_cmds runs LD, not CC, wlarc should be empty
17239 wlarc='${wl}'
17240
17241 # Set some defaults for GNU ld with shared library support. These
17242 # are reset later if shared libraries are not supported. Putting them
17243 # here allows them to be overridden if necessary.
17244 runpath_var=LD_RUN_PATH
17245 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17246 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17247 # ancient GNU ld didn't support --whole-archive et. al.
17248 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17249 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17250 else
17251 whole_archive_flag_spec_GCJ=
17252 fi
17253 supports_anon_versioning=no
17254 case `$LD -v 2>/dev/null` in
17255 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17256 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17257 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17258 *\ 2.11.*) ;; # other 2.11 versions
17259 *) supports_anon_versioning=yes ;;
17260 esac
17261
17262 # See if GNU ld supports shared libraries.
17263 case $host_os in
17264 aix[3-9]*)
17265 # On AIX/PPC, the GNU linker is very broken
17266 if test "$host_cpu" != ia64; then
17267 ld_shlibs_GCJ=no
17268 cat <<EOF 1>&2
17269
17270 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17271 *** to be unable to reliably create shared libraries on AIX.
17272 *** Therefore, libtool is disabling shared libraries support. If you
17273 *** really care for shared libraries, you may want to modify your PATH
17274 *** so that a non-GNU linker is found, and then restart.
17275
17276 EOF
17277 fi
17278 ;;
17279
17280 amigaos*)
17281 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17282 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17283 hardcode_minus_L_GCJ=yes
17284
17285 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17286 # that the semantics of dynamic libraries on AmigaOS, at least up
17287 # to version 4, is to share data among multiple programs linked
17288 # with the same dynamic library. Since this doesn't match the
17289 # behavior of shared libraries on other platforms, we can't use
17290 # them.
17291 ld_shlibs_GCJ=no
17292 ;;
17293
17294 beos*)
17295 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17296 allow_undefined_flag_GCJ=unsupported
17297 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17298 # support --undefined. This deserves some investigation. FIXME
17299 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17300 else
17301 ld_shlibs_GCJ=no
17302 fi
17303 ;;
17304
17305 cygwin* | mingw* | pw32*)
17306 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17307 # as there is no search path for DLLs.
17308 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17309 allow_undefined_flag_GCJ=unsupported
17310 always_export_symbols_GCJ=no
17311 enable_shared_with_static_runtimes_GCJ=yes
17312 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17313
17314 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17315 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17316 # If the export-symbols file already is a .def file (1st line
17317 # is EXPORTS), use it as is; otherwise, prepend...
17318 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17319 cp $export_symbols $output_objdir/$soname.def;
17320 else
17321 echo EXPORTS > $output_objdir/$soname.def;
17322 cat $export_symbols >> $output_objdir/$soname.def;
17323 fi~
17324 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17325 else
17326 ld_shlibs_GCJ=no
17327 fi
17328 ;;
17329
17330 interix[3-9]*)
17331 hardcode_direct_GCJ=no
17332 hardcode_shlibpath_var_GCJ=no
17333 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17334 export_dynamic_flag_spec_GCJ='${wl}-E'
17335 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17336 # Instead, shared libraries are loaded at an image base (0x10000000 by
17337 # default) and relocated if they conflict, which is a slow very memory
17338 # consuming and fragmenting process. To avoid this, we pick a random,
17339 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17340 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17341 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17342 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17343 ;;
17344
17345 gnu* | linux* | k*bsd*-gnu)
17346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17347 tmp_addflag=
17348 case $cc_basename,$host_cpu in
17349 pgcc*) # Portland Group C compiler
17350 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17351 tmp_addflag=' $pic_flag'
17352 ;;
17353 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17354 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17355 tmp_addflag=' $pic_flag -Mnomain' ;;
17356 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17357 tmp_addflag=' -i_dynamic' ;;
17358 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17359 tmp_addflag=' -i_dynamic -nofor_main' ;;
17360 ifc* | ifort*) # Intel Fortran compiler
17361 tmp_addflag=' -nofor_main' ;;
17362 esac
17363 case `$CC -V 2>&1 | sed 5q` in
17364 *Sun\ C*) # Sun C 5.9
17365 whole_archive_flag_spec_GCJ='${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'
17366 tmp_sharedflag='-G' ;;
17367 *Sun\ F*) # Sun Fortran 8.3
17368 tmp_sharedflag='-G' ;;
17369 *)
17370 tmp_sharedflag='-shared' ;;
17371 esac
17372 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17373
17374 if test $supports_anon_versioning = yes; then
17375 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17377 $echo "local: *; };" >> $output_objdir/$libname.ver~
17378 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17379 fi
17380 link_all_deplibs_GCJ=no
17381 else
17382 ld_shlibs_GCJ=no
17383 fi
17384 ;;
17385
17386 netbsd* | netbsdelf*-gnu)
17387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17388 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17389 wlarc=
17390 else
17391 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17392 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17393 fi
17394 ;;
17395
17396 solaris*)
17397 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17398 ld_shlibs_GCJ=no
17399 cat <<EOF 1>&2
17400
17401 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17402 *** create shared libraries on Solaris systems. Therefore, libtool
17403 *** is disabling shared libraries support. We urge you to upgrade GNU
17404 *** binutils to release 2.9.1 or newer. Another option is to modify
17405 *** your PATH or compiler configuration so that the native linker is
17406 *** used, and then restart.
17407
17408 EOF
17409 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17410 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17411 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17412 else
17413 ld_shlibs_GCJ=no
17414 fi
17415 ;;
17416
17417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17418 case `$LD -v 2>&1` in
17419 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17420 ld_shlibs_GCJ=no
17421 cat <<_LT_EOF 1>&2
17422
17423 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17424 *** reliably create shared libraries on SCO systems. Therefore, libtool
17425 *** is disabling shared libraries support. We urge you to upgrade GNU
17426 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17427 *** your PATH or compiler configuration so that the native linker is
17428 *** used, and then restart.
17429
17430 _LT_EOF
17431 ;;
17432 *)
17433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17434 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17435 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17436 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17437 else
17438 ld_shlibs_GCJ=no
17439 fi
17440 ;;
17441 esac
17442 ;;
17443
17444 sunos4*)
17445 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17446 wlarc=
17447 hardcode_direct_GCJ=yes
17448 hardcode_shlibpath_var_GCJ=no
17449 ;;
17450
17451 *)
17452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17455 else
17456 ld_shlibs_GCJ=no
17457 fi
17458 ;;
17459 esac
17460
17461 if test "$ld_shlibs_GCJ" = no; then
17462 runpath_var=
17463 hardcode_libdir_flag_spec_GCJ=
17464 export_dynamic_flag_spec_GCJ=
17465 whole_archive_flag_spec_GCJ=
17466 fi
17467 else
17468 # PORTME fill in a description of your system's linker (not GNU ld)
17469 case $host_os in
17470 aix3*)
17471 allow_undefined_flag_GCJ=unsupported
17472 always_export_symbols_GCJ=yes
17473 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17474 # Note: this linker hardcodes the directories in LIBPATH if there
17475 # are no directories specified by -L.
17476 hardcode_minus_L_GCJ=yes
17477 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17478 # Neither direct hardcoding nor static linking is supported with a
17479 # broken collect2.
17480 hardcode_direct_GCJ=unsupported
17481 fi
17482 ;;
17483
17484 aix[4-9]*)
17485 if test "$host_cpu" = ia64; then
17486 # On IA64, the linker does run time linking by default, so we don't
17487 # have to do anything special.
17488 aix_use_runtimelinking=no
17489 exp_sym_flag='-Bexport'
17490 no_entry_flag=""
17491 else
17492 # If we're using GNU nm, then we don't want the "-C" option.
17493 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17494 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17495 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17496 else
17497 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17498 fi
17499 aix_use_runtimelinking=no
17500
17501 # Test if we are trying to use run time linking or normal
17502 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17503 # need to do runtime linking.
17504 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17505 for ld_flag in $LDFLAGS; do
17506 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17507 aix_use_runtimelinking=yes
17508 break
17509 fi
17510 done
17511 ;;
17512 esac
17513
17514 exp_sym_flag='-bexport'
17515 no_entry_flag='-bnoentry'
17516 fi
17517
17518 # When large executables or shared objects are built, AIX ld can
17519 # have problems creating the table of contents. If linking a library
17520 # or program results in "error TOC overflow" add -mminimal-toc to
17521 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17522 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17523
17524 archive_cmds_GCJ=''
17525 hardcode_direct_GCJ=yes
17526 hardcode_libdir_separator_GCJ=':'
17527 link_all_deplibs_GCJ=yes
17528
17529 if test "$GCC" = yes; then
17530 case $host_os in aix4.[012]|aix4.[012].*)
17531 # We only want to do this on AIX 4.2 and lower, the check
17532 # below for broken collect2 doesn't work under 4.3+
17533 collect2name=`${CC} -print-prog-name=collect2`
17534 if test -f "$collect2name" && \
17535 strings "$collect2name" | grep resolve_lib_name >/dev/null
17536 then
17537 # We have reworked collect2
17538 :
17539 else
17540 # We have old collect2
17541 hardcode_direct_GCJ=unsupported
17542 # It fails to find uninstalled libraries when the uninstalled
17543 # path is not listed in the libpath. Setting hardcode_minus_L
17544 # to unsupported forces relinking
17545 hardcode_minus_L_GCJ=yes
17546 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17547 hardcode_libdir_separator_GCJ=
17548 fi
17549 ;;
17550 esac
17551 shared_flag='-shared'
17552 if test "$aix_use_runtimelinking" = yes; then
17553 shared_flag="$shared_flag "'${wl}-G'
17554 fi
17555 else
17556 # not using gcc
17557 if test "$host_cpu" = ia64; then
17558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17559 # chokes on -Wl,-G. The following line is correct:
17560 shared_flag='-G'
17561 else
17562 if test "$aix_use_runtimelinking" = yes; then
17563 shared_flag='${wl}-G'
17564 else
17565 shared_flag='${wl}-bM:SRE'
17566 fi
17567 fi
17568 fi
17569
17570 # It seems that -bexpall does not export symbols beginning with
17571 # underscore (_), so it is better to generate a list of symbols to export.
17572 always_export_symbols_GCJ=yes
17573 if test "$aix_use_runtimelinking" = yes; then
17574 # Warning - without using the other runtime loading flags (-brtl),
17575 # -berok will link without error, but may produce a broken library.
17576 allow_undefined_flag_GCJ='-berok'
17577 # Determine the default libpath from the value encoded in an empty executable.
17578 cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h. */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584
17585 int
17586 main ()
17587 {
17588
17589 ;
17590 return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (ac_try="$ac_link"
17595 case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17598 esac
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_link") 2>conftest.er1
17601 ac_status=$?
17602 grep -v '^ *+' conftest.er1 >conftest.err
17603 rm -f conftest.er1
17604 cat conftest.err >&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } && {
17607 test -z "$ac_c_werror_flag" ||
17608 test ! -s conftest.err
17609 } && test -s conftest$ac_exeext &&
17610 $as_test_x conftest$ac_exeext; then
17611
17612 lt_aix_libpath_sed='
17613 /Import File Strings/,/^$/ {
17614 /^0/ {
17615 s/^0 *\(.*\)$/\1/
17616 p
17617 }
17618 }'
17619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17620 # Check for a 64-bit object if we didn't find anything.
17621 if test -z "$aix_libpath"; then
17622 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17623 fi
17624 else
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628
17629 fi
17630
17631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17632 conftest$ac_exeext conftest.$ac_ext
17633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17634
17635 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17636 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17637 else
17638 if test "$host_cpu" = ia64; then
17639 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17640 allow_undefined_flag_GCJ="-z nodefs"
17641 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17642 else
17643 # Determine the default libpath from the value encoded in an empty executable.
17644 cat >conftest.$ac_ext <<_ACEOF
17645 /* confdefs.h. */
17646 _ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h. */
17650
17651 int
17652 main ()
17653 {
17654
17655 ;
17656 return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_link") 2>conftest.er1
17667 ac_status=$?
17668 grep -v '^ *+' conftest.er1 >conftest.err
17669 rm -f conftest.er1
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } && {
17673 test -z "$ac_c_werror_flag" ||
17674 test ! -s conftest.err
17675 } && test -s conftest$ac_exeext &&
17676 $as_test_x conftest$ac_exeext; then
17677
17678 lt_aix_libpath_sed='
17679 /Import File Strings/,/^$/ {
17680 /^0/ {
17681 s/^0 *\(.*\)$/\1/
17682 p
17683 }
17684 }'
17685 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17686 # Check for a 64-bit object if we didn't find anything.
17687 if test -z "$aix_libpath"; then
17688 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17689 fi
17690 else
17691 echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694
17695 fi
17696
17697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17698 conftest$ac_exeext conftest.$ac_ext
17699 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17700
17701 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17702 # Warning - without using the other run time loading flags,
17703 # -berok will link without error, but may produce a broken library.
17704 no_undefined_flag_GCJ=' ${wl}-bernotok'
17705 allow_undefined_flag_GCJ=' ${wl}-berok'
17706 # Exported symbols can be pulled into shared objects from archives
17707 whole_archive_flag_spec_GCJ='$convenience'
17708 archive_cmds_need_lc_GCJ=yes
17709 # This is similar to how AIX traditionally builds its shared libraries.
17710 archive_expsym_cmds_GCJ="\$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'
17711 fi
17712 fi
17713 ;;
17714
17715 amigaos*)
17716 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17717 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17718 hardcode_minus_L_GCJ=yes
17719 # see comment about different semantics on the GNU ld section
17720 ld_shlibs_GCJ=no
17721 ;;
17722
17723 bsdi[45]*)
17724 export_dynamic_flag_spec_GCJ=-rdynamic
17725 ;;
17726
17727 cygwin* | mingw* | pw32*)
17728 # When not using gcc, we currently assume that we are using
17729 # Microsoft Visual C++.
17730 # hardcode_libdir_flag_spec is actually meaningless, as there is
17731 # no search path for DLLs.
17732 hardcode_libdir_flag_spec_GCJ=' '
17733 allow_undefined_flag_GCJ=unsupported
17734 # Tell ltmain to make .lib files, not .a files.
17735 libext=lib
17736 # Tell ltmain to make .dll files, not .so files.
17737 shrext_cmds=".dll"
17738 # FIXME: Setting linknames here is a bad hack.
17739 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17740 # The linker will automatically build a .lib file if we build a DLL.
17741 old_archive_From_new_cmds_GCJ='true'
17742 # FIXME: Should let the user specify the lib program.
17743 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17744 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17745 enable_shared_with_static_runtimes_GCJ=yes
17746 ;;
17747
17748 darwin* | rhapsody*)
17749 case $host_os in
17750 rhapsody* | darwin1.[012])
17751 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17752 ;;
17753 *) # Darwin 1.3 on
17754 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17755 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17756 else
17757 case ${MACOSX_DEPLOYMENT_TARGET} in
17758 10.[012])
17759 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17760 ;;
17761 10.*)
17762 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17763 ;;
17764 esac
17765 fi
17766 ;;
17767 esac
17768 archive_cmds_need_lc_GCJ=no
17769 hardcode_direct_GCJ=no
17770 hardcode_automatic_GCJ=yes
17771 hardcode_shlibpath_var_GCJ=unsupported
17772 whole_archive_flag_spec_GCJ=''
17773 link_all_deplibs_GCJ=yes
17774 if test "$GCC" = yes ; then
17775 output_verbose_link_cmd='echo'
17776 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17777 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17778 archive_expsym_cmds_GCJ="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}"
17779 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17780 else
17781 case $cc_basename in
17782 xlc*)
17783 output_verbose_link_cmd='echo'
17784 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17785 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17786 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17787 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17788 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17789 ;;
17790 *)
17791 ld_shlibs_GCJ=no
17792 ;;
17793 esac
17794 fi
17795 ;;
17796
17797 dgux*)
17798 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17800 hardcode_shlibpath_var_GCJ=no
17801 ;;
17802
17803 freebsd1*)
17804 ld_shlibs_GCJ=no
17805 ;;
17806
17807 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17808 # support. Future versions do this automatically, but an explicit c++rt0.o
17809 # does not break anything, and helps significantly (at the cost of a little
17810 # extra space).
17811 freebsd2.2*)
17812 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17813 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17814 hardcode_direct_GCJ=yes
17815 hardcode_shlibpath_var_GCJ=no
17816 ;;
17817
17818 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17819 freebsd2*)
17820 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17821 hardcode_direct_GCJ=yes
17822 hardcode_minus_L_GCJ=yes
17823 hardcode_shlibpath_var_GCJ=no
17824 ;;
17825
17826 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17827 freebsd* | dragonfly*)
17828 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17829 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17830 hardcode_direct_GCJ=yes
17831 hardcode_shlibpath_var_GCJ=no
17832 ;;
17833
17834 hpux9*)
17835 if test "$GCC" = yes; then
17836 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17837 else
17838 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17839 fi
17840 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17841 hardcode_libdir_separator_GCJ=:
17842 hardcode_direct_GCJ=yes
17843
17844 # hardcode_minus_L: Not really in the search PATH,
17845 # but as the default location of the library.
17846 hardcode_minus_L_GCJ=yes
17847 export_dynamic_flag_spec_GCJ='${wl}-E'
17848 ;;
17849
17850 hpux10*)
17851 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17852 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17853 else
17854 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17855 fi
17856 if test "$with_gnu_ld" = no; then
17857 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17858 hardcode_libdir_separator_GCJ=:
17859
17860 hardcode_direct_GCJ=yes
17861 export_dynamic_flag_spec_GCJ='${wl}-E'
17862
17863 # hardcode_minus_L: Not really in the search PATH,
17864 # but as the default location of the library.
17865 hardcode_minus_L_GCJ=yes
17866 fi
17867 ;;
17868
17869 hpux11*)
17870 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17871 case $host_cpu in
17872 hppa*64*)
17873 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17874 ;;
17875 ia64*)
17876 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17877 ;;
17878 *)
17879 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17880 ;;
17881 esac
17882 else
17883 case $host_cpu in
17884 hppa*64*)
17885 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17886 ;;
17887 ia64*)
17888 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17889 ;;
17890 *)
17891 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17892 ;;
17893 esac
17894 fi
17895 if test "$with_gnu_ld" = no; then
17896 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17897 hardcode_libdir_separator_GCJ=:
17898
17899 case $host_cpu in
17900 hppa*64*|ia64*)
17901 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17902 hardcode_direct_GCJ=no
17903 hardcode_shlibpath_var_GCJ=no
17904 ;;
17905 *)
17906 hardcode_direct_GCJ=yes
17907 export_dynamic_flag_spec_GCJ='${wl}-E'
17908
17909 # hardcode_minus_L: Not really in the search PATH,
17910 # but as the default location of the library.
17911 hardcode_minus_L_GCJ=yes
17912 ;;
17913 esac
17914 fi
17915 ;;
17916
17917 irix5* | irix6* | nonstopux*)
17918 if test "$GCC" = yes; then
17919 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17920 else
17921 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17922 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17923 fi
17924 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17925 hardcode_libdir_separator_GCJ=:
17926 link_all_deplibs_GCJ=yes
17927 ;;
17928
17929 netbsd* | netbsdelf*-gnu)
17930 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17931 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17932 else
17933 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17934 fi
17935 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17936 hardcode_direct_GCJ=yes
17937 hardcode_shlibpath_var_GCJ=no
17938 ;;
17939
17940 newsos6)
17941 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17942 hardcode_direct_GCJ=yes
17943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17944 hardcode_libdir_separator_GCJ=:
17945 hardcode_shlibpath_var_GCJ=no
17946 ;;
17947
17948 openbsd*)
17949 if test -f /usr/libexec/ld.so; then
17950 hardcode_direct_GCJ=yes
17951 hardcode_shlibpath_var_GCJ=no
17952 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17953 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17954 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17955 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17956 export_dynamic_flag_spec_GCJ='${wl}-E'
17957 else
17958 case $host_os in
17959 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17960 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17961 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17962 ;;
17963 *)
17964 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17965 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17966 ;;
17967 esac
17968 fi
17969 else
17970 ld_shlibs_GCJ=no
17971 fi
17972 ;;
17973
17974 os2*)
17975 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17976 hardcode_minus_L_GCJ=yes
17977 allow_undefined_flag_GCJ=unsupported
17978 archive_cmds_GCJ='$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'
17979 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17980 ;;
17981
17982 osf3*)
17983 if test "$GCC" = yes; then
17984 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17985 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17986 else
17987 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17988 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17989 fi
17990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17991 hardcode_libdir_separator_GCJ=:
17992 ;;
17993
17994 osf4* | osf5*) # as osf3* with the addition of -msym flag
17995 if test "$GCC" = yes; then
17996 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17997 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17999 else
18000 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18001 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18002 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18003 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18004
18005 # Both c and cxx compiler support -rpath directly
18006 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18007 fi
18008 hardcode_libdir_separator_GCJ=:
18009 ;;
18010
18011 solaris*)
18012 no_undefined_flag_GCJ=' -z text'
18013 if test "$GCC" = yes; then
18014 wlarc='${wl}'
18015 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18016 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18017 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18018 else
18019 wlarc=''
18020 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18021 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18022 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18023 fi
18024 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18025 hardcode_shlibpath_var_GCJ=no
18026 case $host_os in
18027 solaris2.[0-5] | solaris2.[0-5].*) ;;
18028 *)
18029 # The compiler driver will combine and reorder linker options,
18030 # but understands `-z linker_flag'. GCC discards it without `$wl',
18031 # but is careful enough not to reorder.
18032 # Supported since Solaris 2.6 (maybe 2.5.1?)
18033 if test "$GCC" = yes; then
18034 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18035 else
18036 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18037 fi
18038 ;;
18039 esac
18040 link_all_deplibs_GCJ=yes
18041 ;;
18042
18043 sunos4*)
18044 if test "x$host_vendor" = xsequent; then
18045 # Use $CC to link under sequent, because it throws in some extra .o
18046 # files that make .init and .fini sections work.
18047 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18048 else
18049 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18050 fi
18051 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18052 hardcode_direct_GCJ=yes
18053 hardcode_minus_L_GCJ=yes
18054 hardcode_shlibpath_var_GCJ=no
18055 ;;
18056
18057 sysv4)
18058 case $host_vendor in
18059 sni)
18060 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18061 hardcode_direct_GCJ=yes # is this really true???
18062 ;;
18063 siemens)
18064 ## LD is ld it makes a PLAMLIB
18065 ## CC just makes a GrossModule.
18066 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18067 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18068 hardcode_direct_GCJ=no
18069 ;;
18070 motorola)
18071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18072 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18073 ;;
18074 esac
18075 runpath_var='LD_RUN_PATH'
18076 hardcode_shlibpath_var_GCJ=no
18077 ;;
18078
18079 sysv4.3*)
18080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18081 hardcode_shlibpath_var_GCJ=no
18082 export_dynamic_flag_spec_GCJ='-Bexport'
18083 ;;
18084
18085 sysv4*MP*)
18086 if test -d /usr/nec; then
18087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18088 hardcode_shlibpath_var_GCJ=no
18089 runpath_var=LD_RUN_PATH
18090 hardcode_runpath_var=yes
18091 ld_shlibs_GCJ=yes
18092 fi
18093 ;;
18094
18095 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18096 no_undefined_flag_GCJ='${wl}-z,text'
18097 archive_cmds_need_lc_GCJ=no
18098 hardcode_shlibpath_var_GCJ=no
18099 runpath_var='LD_RUN_PATH'
18100
18101 if test "$GCC" = yes; then
18102 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18103 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18104 else
18105 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18106 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18107 fi
18108 ;;
18109
18110 sysv5* | sco3.2v5* | sco5v6*)
18111 # Note: We can NOT use -z defs as we might desire, because we do not
18112 # link with -lc, and that would cause any symbols used from libc to
18113 # always be unresolved, which means just about no library would
18114 # ever link correctly. If we're not using GNU ld we use -z text
18115 # though, which does catch some bad symbols but isn't as heavy-handed
18116 # as -z defs.
18117 no_undefined_flag_GCJ='${wl}-z,text'
18118 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18119 archive_cmds_need_lc_GCJ=no
18120 hardcode_shlibpath_var_GCJ=no
18121 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18122 hardcode_libdir_separator_GCJ=':'
18123 link_all_deplibs_GCJ=yes
18124 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18125 runpath_var='LD_RUN_PATH'
18126
18127 if test "$GCC" = yes; then
18128 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130 else
18131 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18132 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18133 fi
18134 ;;
18135
18136 uts4*)
18137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18139 hardcode_shlibpath_var_GCJ=no
18140 ;;
18141
18142 *)
18143 ld_shlibs_GCJ=no
18144 ;;
18145 esac
18146 fi
18147
18148 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18149 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18150 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18151
18152 #
18153 # Do we need to explicitly link libc?
18154 #
18155 case "x$archive_cmds_need_lc_GCJ" in
18156 x|xyes)
18157 # Assume -lc should be added
18158 archive_cmds_need_lc_GCJ=yes
18159
18160 if test "$enable_shared" = yes && test "$GCC" = yes; then
18161 case $archive_cmds_GCJ in
18162 *'~'*)
18163 # FIXME: we may have to deal with multi-command sequences.
18164 ;;
18165 '$CC '*)
18166 # Test whether the compiler implicitly links with -lc since on some
18167 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18168 # to ld, don't add -lc before -lgcc.
18169 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18170 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18171 $rm conftest*
18172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18173
18174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18175 (eval $ac_compile) 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } 2>conftest.err; then
18179 soname=conftest
18180 lib=conftest
18181 libobjs=conftest.$ac_objext
18182 deplibs=
18183 wl=$lt_prog_compiler_wl_GCJ
18184 pic_flag=$lt_prog_compiler_pic_GCJ
18185 compiler_flags=-v
18186 linker_flags=-v
18187 verstring=
18188 output_objdir=.
18189 libname=conftest
18190 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18191 allow_undefined_flag_GCJ=
18192 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18193 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18194 ac_status=$?
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }
18197 then
18198 archive_cmds_need_lc_GCJ=no
18199 else
18200 archive_cmds_need_lc_GCJ=yes
18201 fi
18202 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18203 else
18204 cat conftest.err 1>&5
18205 fi
18206 $rm conftest*
18207 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18208 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18209 ;;
18210 esac
18211 fi
18212 ;;
18213 esac
18214
18215 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18216 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18217 library_names_spec=
18218 libname_spec='lib$name'
18219 soname_spec=
18220 shrext_cmds=".so"
18221 postinstall_cmds=
18222 postuninstall_cmds=
18223 finish_cmds=
18224 finish_eval=
18225 shlibpath_var=
18226 shlibpath_overrides_runpath=unknown
18227 version_type=none
18228 dynamic_linker="$host_os ld.so"
18229 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18230
18231 need_lib_prefix=unknown
18232 hardcode_into_libs=no
18233
18234 # when you set need_version to no, make sure it does not cause -set_version
18235 # flags to be left without arguments
18236 need_version=unknown
18237
18238 case $host_os in
18239 aix3*)
18240 version_type=linux
18241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18242 shlibpath_var=LIBPATH
18243
18244 # AIX 3 has no versioning support, so we append a major version to the name.
18245 soname_spec='${libname}${release}${shared_ext}$major'
18246 ;;
18247
18248 aix[4-9]*)
18249 version_type=linux
18250 need_lib_prefix=no
18251 need_version=no
18252 hardcode_into_libs=yes
18253 if test "$host_cpu" = ia64; then
18254 # AIX 5 supports IA64
18255 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18256 shlibpath_var=LD_LIBRARY_PATH
18257 else
18258 # With GCC up to 2.95.x, collect2 would create an import file
18259 # for dependence libraries. The import file would start with
18260 # the line `#! .'. This would cause the generated library to
18261 # depend on `.', always an invalid library. This was fixed in
18262 # development snapshots of GCC prior to 3.0.
18263 case $host_os in
18264 aix4 | aix4.[01] | aix4.[01].*)
18265 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18266 echo ' yes '
18267 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18268 :
18269 else
18270 can_build_shared=no
18271 fi
18272 ;;
18273 esac
18274 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18275 # soname into executable. Probably we can add versioning support to
18276 # collect2, so additional links can be useful in future.
18277 if test "$aix_use_runtimelinking" = yes; then
18278 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18279 # instead of lib<name>.a to let people know that these are not
18280 # typical AIX shared libraries.
18281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282 else
18283 # We preserve .a as extension for shared libraries through AIX4.2
18284 # and later when we are not doing run time linking.
18285 library_names_spec='${libname}${release}.a $libname.a'
18286 soname_spec='${libname}${release}${shared_ext}$major'
18287 fi
18288 shlibpath_var=LIBPATH
18289 fi
18290 ;;
18291
18292 amigaos*)
18293 library_names_spec='$libname.ixlibrary $libname.a'
18294 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18295 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'
18296 ;;
18297
18298 beos*)
18299 library_names_spec='${libname}${shared_ext}'
18300 dynamic_linker="$host_os ld.so"
18301 shlibpath_var=LIBRARY_PATH
18302 ;;
18303
18304 bsdi[45]*)
18305 version_type=linux
18306 need_version=no
18307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308 soname_spec='${libname}${release}${shared_ext}$major'
18309 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18310 shlibpath_var=LD_LIBRARY_PATH
18311 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18312 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18313 # the default ld.so.conf also contains /usr/contrib/lib and
18314 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18315 # libtool to hard-code these into programs
18316 ;;
18317
18318 cygwin* | mingw* | pw32*)
18319 version_type=windows
18320 shrext_cmds=".dll"
18321 need_version=no
18322 need_lib_prefix=no
18323
18324 case $GCC,$host_os in
18325 yes,cygwin* | yes,mingw* | yes,pw32*)
18326 library_names_spec='$libname.dll.a'
18327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18328 postinstall_cmds='base_file=`basename \${file}`~
18329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18330 dldir=$destdir/`dirname \$dlpath`~
18331 test -d \$dldir || mkdir -p \$dldir~
18332 $install_prog $dir/$dlname \$dldir/$dlname~
18333 chmod a+x \$dldir/$dlname'
18334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18335 dlpath=$dir/\$dldll~
18336 $rm \$dlpath'
18337 shlibpath_overrides_runpath=yes
18338
18339 case $host_os in
18340 cygwin*)
18341 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18342 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18343 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18344 ;;
18345 mingw*)
18346 # MinGW DLLs use traditional 'lib' prefix
18347 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18348 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18349 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18350 # It is most probably a Windows format PATH printed by
18351 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18352 # path with ; separators, and with drive letters. We can handle the
18353 # drive letters (cygwin fileutils understands them), so leave them,
18354 # especially as we might pass files found there to a mingw objdump,
18355 # which wouldn't understand a cygwinified path. Ahh.
18356 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18357 else
18358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18359 fi
18360 ;;
18361 pw32*)
18362 # pw32 DLLs use 'pw' prefix rather than 'lib'
18363 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18364 ;;
18365 esac
18366 ;;
18367
18368 *)
18369 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18370 ;;
18371 esac
18372 dynamic_linker='Win32 ld.exe'
18373 # FIXME: first we should search . and the directory the executable is in
18374 shlibpath_var=PATH
18375 ;;
18376
18377 darwin* | rhapsody*)
18378 dynamic_linker="$host_os dyld"
18379 version_type=darwin
18380 need_lib_prefix=no
18381 need_version=no
18382 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18383 soname_spec='${libname}${release}${major}$shared_ext'
18384 shlibpath_overrides_runpath=yes
18385 shlibpath_var=DYLD_LIBRARY_PATH
18386 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18387
18388 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18389 ;;
18390
18391 dgux*)
18392 version_type=linux
18393 need_lib_prefix=no
18394 need_version=no
18395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18396 soname_spec='${libname}${release}${shared_ext}$major'
18397 shlibpath_var=LD_LIBRARY_PATH
18398 ;;
18399
18400 freebsd1*)
18401 dynamic_linker=no
18402 ;;
18403
18404 freebsd* | dragonfly*)
18405 # DragonFly does not have aout. When/if they implement a new
18406 # versioning mechanism, adjust this.
18407 if test -x /usr/bin/objformat; then
18408 objformat=`/usr/bin/objformat`
18409 else
18410 case $host_os in
18411 freebsd[123]*) objformat=aout ;;
18412 *) objformat=elf ;;
18413 esac
18414 fi
18415 version_type=freebsd-$objformat
18416 case $version_type in
18417 freebsd-elf*)
18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18419 need_version=no
18420 need_lib_prefix=no
18421 ;;
18422 freebsd-*)
18423 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18424 need_version=yes
18425 ;;
18426 esac
18427 shlibpath_var=LD_LIBRARY_PATH
18428 case $host_os in
18429 freebsd2*)
18430 shlibpath_overrides_runpath=yes
18431 ;;
18432 freebsd3.[01]* | freebsdelf3.[01]*)
18433 shlibpath_overrides_runpath=yes
18434 hardcode_into_libs=yes
18435 ;;
18436 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18437 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18438 shlibpath_overrides_runpath=no
18439 hardcode_into_libs=yes
18440 ;;
18441 *) # from 4.6 on, and DragonFly
18442 shlibpath_overrides_runpath=yes
18443 hardcode_into_libs=yes
18444 ;;
18445 esac
18446 ;;
18447
18448 gnu*)
18449 version_type=linux
18450 need_lib_prefix=no
18451 need_version=no
18452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18453 soname_spec='${libname}${release}${shared_ext}$major'
18454 shlibpath_var=LD_LIBRARY_PATH
18455 hardcode_into_libs=yes
18456 ;;
18457
18458 hpux9* | hpux10* | hpux11*)
18459 # Give a soname corresponding to the major version so that dld.sl refuses to
18460 # link against other versions.
18461 version_type=sunos
18462 need_lib_prefix=no
18463 need_version=no
18464 case $host_cpu in
18465 ia64*)
18466 shrext_cmds='.so'
18467 hardcode_into_libs=yes
18468 dynamic_linker="$host_os dld.so"
18469 shlibpath_var=LD_LIBRARY_PATH
18470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18472 soname_spec='${libname}${release}${shared_ext}$major'
18473 if test "X$HPUX_IA64_MODE" = X32; then
18474 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18475 else
18476 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18477 fi
18478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18479 ;;
18480 hppa*64*)
18481 shrext_cmds='.sl'
18482 hardcode_into_libs=yes
18483 dynamic_linker="$host_os dld.sl"
18484 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18485 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18487 soname_spec='${libname}${release}${shared_ext}$major'
18488 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18489 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18490 ;;
18491 *)
18492 shrext_cmds='.sl'
18493 dynamic_linker="$host_os dld.sl"
18494 shlibpath_var=SHLIB_PATH
18495 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18497 soname_spec='${libname}${release}${shared_ext}$major'
18498 ;;
18499 esac
18500 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18501 postinstall_cmds='chmod 555 $lib'
18502 ;;
18503
18504 interix[3-9]*)
18505 version_type=linux
18506 need_lib_prefix=no
18507 need_version=no
18508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18509 soname_spec='${libname}${release}${shared_ext}$major'
18510 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18511 shlibpath_var=LD_LIBRARY_PATH
18512 shlibpath_overrides_runpath=no
18513 hardcode_into_libs=yes
18514 ;;
18515
18516 irix5* | irix6* | nonstopux*)
18517 case $host_os in
18518 nonstopux*) version_type=nonstopux ;;
18519 *)
18520 if test "$lt_cv_prog_gnu_ld" = yes; then
18521 version_type=linux
18522 else
18523 version_type=irix
18524 fi ;;
18525 esac
18526 need_lib_prefix=no
18527 need_version=no
18528 soname_spec='${libname}${release}${shared_ext}$major'
18529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18530 case $host_os in
18531 irix5* | nonstopux*)
18532 libsuff= shlibsuff=
18533 ;;
18534 *)
18535 case $LD in # libtool.m4 will add one of these switches to LD
18536 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18537 libsuff= shlibsuff= libmagic=32-bit;;
18538 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18539 libsuff=32 shlibsuff=N32 libmagic=N32;;
18540 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18541 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18542 *) libsuff= shlibsuff= libmagic=never-match;;
18543 esac
18544 ;;
18545 esac
18546 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18547 shlibpath_overrides_runpath=no
18548 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18549 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18550 hardcode_into_libs=yes
18551 ;;
18552
18553 # No shared lib support for Linux oldld, aout, or coff.
18554 linux*oldld* | linux*aout* | linux*coff*)
18555 dynamic_linker=no
18556 ;;
18557
18558 # This must be Linux ELF.
18559 linux* | k*bsd*-gnu)
18560 version_type=linux
18561 need_lib_prefix=no
18562 need_version=no
18563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18564 soname_spec='${libname}${release}${shared_ext}$major'
18565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18566 shlibpath_var=LD_LIBRARY_PATH
18567 shlibpath_overrides_runpath=no
18568 # This implies no fast_install, which is unacceptable.
18569 # Some rework will be needed to allow for fast_install
18570 # before this can be enabled.
18571 hardcode_into_libs=yes
18572
18573 # Append ld.so.conf contents to the search path
18574 if test -f /etc/ld.so.conf; then
18575 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' ' '`
18576 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18577 fi
18578
18579 # We used to test for /lib/ld.so.1 and disable shared libraries on
18580 # powerpc, because MkLinux only supported shared libraries with the
18581 # GNU dynamic linker. Since this was broken with cross compilers,
18582 # most powerpc-linux boxes support dynamic linking these days and
18583 # people can always --disable-shared, the test was removed, and we
18584 # assume the GNU/Linux dynamic linker is in use.
18585 dynamic_linker='GNU/Linux ld.so'
18586 ;;
18587
18588 netbsdelf*-gnu)
18589 version_type=linux
18590 need_lib_prefix=no
18591 need_version=no
18592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18593 soname_spec='${libname}${release}${shared_ext}$major'
18594 shlibpath_var=LD_LIBRARY_PATH
18595 shlibpath_overrides_runpath=no
18596 hardcode_into_libs=yes
18597 dynamic_linker='NetBSD ld.elf_so'
18598 ;;
18599
18600 netbsd*)
18601 version_type=sunos
18602 need_lib_prefix=no
18603 need_version=no
18604 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18607 dynamic_linker='NetBSD (a.out) ld.so'
18608 else
18609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18610 soname_spec='${libname}${release}${shared_ext}$major'
18611 dynamic_linker='NetBSD ld.elf_so'
18612 fi
18613 shlibpath_var=LD_LIBRARY_PATH
18614 shlibpath_overrides_runpath=yes
18615 hardcode_into_libs=yes
18616 ;;
18617
18618 newsos6)
18619 version_type=linux
18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18621 shlibpath_var=LD_LIBRARY_PATH
18622 shlibpath_overrides_runpath=yes
18623 ;;
18624
18625 nto-qnx*)
18626 version_type=linux
18627 need_lib_prefix=no
18628 need_version=no
18629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18630 soname_spec='${libname}${release}${shared_ext}$major'
18631 shlibpath_var=LD_LIBRARY_PATH
18632 shlibpath_overrides_runpath=yes
18633 ;;
18634
18635 openbsd*)
18636 version_type=sunos
18637 sys_lib_dlsearch_path_spec="/usr/lib"
18638 need_lib_prefix=no
18639 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18640 case $host_os in
18641 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18642 *) need_version=no ;;
18643 esac
18644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18646 shlibpath_var=LD_LIBRARY_PATH
18647 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18648 case $host_os in
18649 openbsd2.[89] | openbsd2.[89].*)
18650 shlibpath_overrides_runpath=no
18651 ;;
18652 *)
18653 shlibpath_overrides_runpath=yes
18654 ;;
18655 esac
18656 else
18657 shlibpath_overrides_runpath=yes
18658 fi
18659 ;;
18660
18661 os2*)
18662 libname_spec='$name'
18663 shrext_cmds=".dll"
18664 need_lib_prefix=no
18665 library_names_spec='$libname${shared_ext} $libname.a'
18666 dynamic_linker='OS/2 ld.exe'
18667 shlibpath_var=LIBPATH
18668 ;;
18669
18670 osf3* | osf4* | osf5*)
18671 version_type=osf
18672 need_lib_prefix=no
18673 need_version=no
18674 soname_spec='${libname}${release}${shared_ext}$major'
18675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18676 shlibpath_var=LD_LIBRARY_PATH
18677 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18678 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18679 ;;
18680
18681 rdos*)
18682 dynamic_linker=no
18683 ;;
18684
18685 solaris*)
18686 version_type=linux
18687 need_lib_prefix=no
18688 need_version=no
18689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18690 soname_spec='${libname}${release}${shared_ext}$major'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 shlibpath_overrides_runpath=yes
18693 hardcode_into_libs=yes
18694 # ldd complains unless libraries are executable
18695 postinstall_cmds='chmod +x $lib'
18696 ;;
18697
18698 sunos4*)
18699 version_type=sunos
18700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18701 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18702 shlibpath_var=LD_LIBRARY_PATH
18703 shlibpath_overrides_runpath=yes
18704 if test "$with_gnu_ld" = yes; then
18705 need_lib_prefix=no
18706 fi
18707 need_version=yes
18708 ;;
18709
18710 sysv4 | sysv4.3*)
18711 version_type=linux
18712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18713 soname_spec='${libname}${release}${shared_ext}$major'
18714 shlibpath_var=LD_LIBRARY_PATH
18715 case $host_vendor in
18716 sni)
18717 shlibpath_overrides_runpath=no
18718 need_lib_prefix=no
18719 export_dynamic_flag_spec='${wl}-Blargedynsym'
18720 runpath_var=LD_RUN_PATH
18721 ;;
18722 siemens)
18723 need_lib_prefix=no
18724 ;;
18725 motorola)
18726 need_lib_prefix=no
18727 need_version=no
18728 shlibpath_overrides_runpath=no
18729 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18730 ;;
18731 esac
18732 ;;
18733
18734 sysv4*MP*)
18735 if test -d /usr/nec ;then
18736 version_type=linux
18737 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18738 soname_spec='$libname${shared_ext}.$major'
18739 shlibpath_var=LD_LIBRARY_PATH
18740 fi
18741 ;;
18742
18743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18744 version_type=freebsd-elf
18745 need_lib_prefix=no
18746 need_version=no
18747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18748 soname_spec='${libname}${release}${shared_ext}$major'
18749 shlibpath_var=LD_LIBRARY_PATH
18750 hardcode_into_libs=yes
18751 if test "$with_gnu_ld" = yes; then
18752 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18753 shlibpath_overrides_runpath=no
18754 else
18755 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18756 shlibpath_overrides_runpath=yes
18757 case $host_os in
18758 sco3.2v5*)
18759 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18760 ;;
18761 esac
18762 fi
18763 sys_lib_dlsearch_path_spec='/usr/lib'
18764 ;;
18765
18766 uts4*)
18767 version_type=linux
18768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18769 soname_spec='${libname}${release}${shared_ext}$major'
18770 shlibpath_var=LD_LIBRARY_PATH
18771 ;;
18772
18773 *)
18774 dynamic_linker=no
18775 ;;
18776 esac
18777 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18778 echo "${ECHO_T}$dynamic_linker" >&6; }
18779 test "$dynamic_linker" = no && can_build_shared=no
18780
18781 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18785 fi
18786
18787 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18788 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18790 else
18791 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18792 fi
18793
18794 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18795
18796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18797 if test "$GCC" = yes; then
18798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18799 fi
18800
18801 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18802 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18803 hardcode_action_GCJ=
18804 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18805 test -n "$runpath_var_GCJ" || \
18806 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18807
18808 # We can hardcode non-existant directories.
18809 if test "$hardcode_direct_GCJ" != no &&
18810 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18811 # have to relink, otherwise we might link with an installed library
18812 # when we should be linking with a yet-to-be-installed one
18813 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18814 test "$hardcode_minus_L_GCJ" != no; then
18815 # Linking always hardcodes the temporary library directory.
18816 hardcode_action_GCJ=relink
18817 else
18818 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18819 hardcode_action_GCJ=immediate
18820 fi
18821 else
18822 # We cannot hardcode anything, or else we can only hardcode existing
18823 # directories.
18824 hardcode_action_GCJ=unsupported
18825 fi
18826 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18827 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18828
18829 if test "$hardcode_action_GCJ" = relink; then
18830 # Fast installation is not supported
18831 enable_fast_install=no
18832 elif test "$shlibpath_overrides_runpath" = yes ||
18833 test "$enable_shared" = no; then
18834 # Fast installation is not necessary
18835 enable_fast_install=needless
18836 fi
18837
18838
18839 # The else clause should only fire when bootstrapping the
18840 # libtool distribution, otherwise you forgot to ship ltmain.sh
18841 # with your package, and you will get complaints that there are
18842 # no rules to generate ltmain.sh.
18843 if test -f "$ltmain"; then
18844 # See if we are running on zsh, and set the options which allow our commands through
18845 # without removal of \ escapes.
18846 if test -n "${ZSH_VERSION+set}" ; then
18847 setopt NO_GLOB_SUBST
18848 fi
18849 # Now quote all the things that may contain metacharacters while being
18850 # careful not to overquote the AC_SUBSTed values. We take copies of the
18851 # variables and quote the copies for generation of the libtool script.
18852 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18853 SED SHELL STRIP \
18854 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18855 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18856 deplibs_check_method reload_flag reload_cmds need_locks \
18857 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18858 lt_cv_sys_global_symbol_to_c_name_address \
18859 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18860 old_postinstall_cmds old_postuninstall_cmds \
18861 compiler_GCJ \
18862 CC_GCJ \
18863 LD_GCJ \
18864 lt_prog_compiler_wl_GCJ \
18865 lt_prog_compiler_pic_GCJ \
18866 lt_prog_compiler_static_GCJ \
18867 lt_prog_compiler_no_builtin_flag_GCJ \
18868 export_dynamic_flag_spec_GCJ \
18869 thread_safe_flag_spec_GCJ \
18870 whole_archive_flag_spec_GCJ \
18871 enable_shared_with_static_runtimes_GCJ \
18872 old_archive_cmds_GCJ \
18873 old_archive_from_new_cmds_GCJ \
18874 predep_objects_GCJ \
18875 postdep_objects_GCJ \
18876 predeps_GCJ \
18877 postdeps_GCJ \
18878 compiler_lib_search_path_GCJ \
18879 compiler_lib_search_dirs_GCJ \
18880 archive_cmds_GCJ \
18881 archive_expsym_cmds_GCJ \
18882 postinstall_cmds_GCJ \
18883 postuninstall_cmds_GCJ \
18884 old_archive_from_expsyms_cmds_GCJ \
18885 allow_undefined_flag_GCJ \
18886 no_undefined_flag_GCJ \
18887 export_symbols_cmds_GCJ \
18888 hardcode_libdir_flag_spec_GCJ \
18889 hardcode_libdir_flag_spec_ld_GCJ \
18890 hardcode_libdir_separator_GCJ \
18891 hardcode_automatic_GCJ \
18892 module_cmds_GCJ \
18893 module_expsym_cmds_GCJ \
18894 lt_cv_prog_compiler_c_o_GCJ \
18895 fix_srcfile_path_GCJ \
18896 exclude_expsyms_GCJ \
18897 include_expsyms_GCJ; do
18898
18899 case $var in
18900 old_archive_cmds_GCJ | \
18901 old_archive_from_new_cmds_GCJ | \
18902 archive_cmds_GCJ | \
18903 archive_expsym_cmds_GCJ | \
18904 module_cmds_GCJ | \
18905 module_expsym_cmds_GCJ | \
18906 old_archive_from_expsyms_cmds_GCJ | \
18907 export_symbols_cmds_GCJ | \
18908 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18909 postinstall_cmds | postuninstall_cmds | \
18910 old_postinstall_cmds | old_postuninstall_cmds | \
18911 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18912 # Double-quote double-evaled strings.
18913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18914 ;;
18915 *)
18916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18917 ;;
18918 esac
18919 done
18920
18921 case $lt_echo in
18922 *'\$0 --fallback-echo"')
18923 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18924 ;;
18925 esac
18926
18927 cfgfile="$ofile"
18928
18929 cat <<__EOF__ >> "$cfgfile"
18930 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18931
18932 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18933
18934 # Shell to use when invoking shell scripts.
18935 SHELL=$lt_SHELL
18936
18937 # Whether or not to build shared libraries.
18938 build_libtool_libs=$enable_shared
18939
18940 # Whether or not to build static libraries.
18941 build_old_libs=$enable_static
18942
18943 # Whether or not to add -lc for building shared libraries.
18944 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18945
18946 # Whether or not to disallow shared libs when runtime libs are static
18947 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18948
18949 # Whether or not to optimize for fast installation.
18950 fast_install=$enable_fast_install
18951
18952 # The host system.
18953 host_alias=$host_alias
18954 host=$host
18955 host_os=$host_os
18956
18957 # The build system.
18958 build_alias=$build_alias
18959 build=$build
18960 build_os=$build_os
18961
18962 # An echo program that does not interpret backslashes.
18963 echo=$lt_echo
18964
18965 # The archiver.
18966 AR=$lt_AR
18967 AR_FLAGS=$lt_AR_FLAGS
18968
18969 # A C compiler.
18970 LTCC=$lt_LTCC
18971
18972 # LTCC compiler flags.
18973 LTCFLAGS=$lt_LTCFLAGS
18974
18975 # A language-specific compiler.
18976 CC=$lt_compiler_GCJ
18977
18978 # Is the compiler the GNU C compiler?
18979 with_gcc=$GCC_GCJ
18980
18981 # An ERE matcher.
18982 EGREP=$lt_EGREP
18983
18984 # The linker used to build libraries.
18985 LD=$lt_LD_GCJ
18986
18987 # Whether we need hard or soft links.
18988 LN_S=$lt_LN_S
18989
18990 # A BSD-compatible nm program.
18991 NM=$lt_NM
18992
18993 # A symbol stripping program
18994 STRIP=$lt_STRIP
18995
18996 # Used to examine libraries when file_magic_cmd begins "file"
18997 MAGIC_CMD=$MAGIC_CMD
18998
18999 # Used on cygwin: DLL creation program.
19000 DLLTOOL="$DLLTOOL"
19001
19002 # Used on cygwin: object dumper.
19003 OBJDUMP="$OBJDUMP"
19004
19005 # Used on cygwin: assembler.
19006 AS="$AS"
19007
19008 # The name of the directory that contains temporary libtool files.
19009 objdir=$objdir
19010
19011 # How to create reloadable object files.
19012 reload_flag=$lt_reload_flag
19013 reload_cmds=$lt_reload_cmds
19014
19015 # How to pass a linker flag through the compiler.
19016 wl=$lt_lt_prog_compiler_wl_GCJ
19017
19018 # Object file suffix (normally "o").
19019 objext="$ac_objext"
19020
19021 # Old archive suffix (normally "a").
19022 libext="$libext"
19023
19024 # Shared library suffix (normally ".so").
19025 shrext_cmds='$shrext_cmds'
19026
19027 # Executable file suffix (normally "").
19028 exeext="$exeext"
19029
19030 # Additional compiler flags for building library objects.
19031 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19032 pic_mode=$pic_mode
19033
19034 # What is the maximum length of a command?
19035 max_cmd_len=$lt_cv_sys_max_cmd_len
19036
19037 # Does compiler simultaneously support -c and -o options?
19038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19039
19040 # Must we lock files when doing compilation?
19041 need_locks=$lt_need_locks
19042
19043 # Do we need the lib prefix for modules?
19044 need_lib_prefix=$need_lib_prefix
19045
19046 # Do we need a version for libraries?
19047 need_version=$need_version
19048
19049 # Whether dlopen is supported.
19050 dlopen_support=$enable_dlopen
19051
19052 # Whether dlopen of programs is supported.
19053 dlopen_self=$enable_dlopen_self
19054
19055 # Whether dlopen of statically linked programs is supported.
19056 dlopen_self_static=$enable_dlopen_self_static
19057
19058 # Compiler flag to prevent dynamic linking.
19059 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19060
19061 # Compiler flag to turn off builtin functions.
19062 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19063
19064 # Compiler flag to allow reflexive dlopens.
19065 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19066
19067 # Compiler flag to generate shared objects directly from archives.
19068 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19069
19070 # Compiler flag to generate thread-safe objects.
19071 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19072
19073 # Library versioning type.
19074 version_type=$version_type
19075
19076 # Format of library name prefix.
19077 libname_spec=$lt_libname_spec
19078
19079 # List of archive names. First name is the real one, the rest are links.
19080 # The last name is the one that the linker finds with -lNAME.
19081 library_names_spec=$lt_library_names_spec
19082
19083 # The coded name of the library, if different from the real name.
19084 soname_spec=$lt_soname_spec
19085
19086 # Commands used to build and install an old-style archive.
19087 RANLIB=$lt_RANLIB
19088 old_archive_cmds=$lt_old_archive_cmds_GCJ
19089 old_postinstall_cmds=$lt_old_postinstall_cmds
19090 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19091
19092 # Create an old-style archive from a shared archive.
19093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19094
19095 # Create a temporary old-style archive to link instead of a shared archive.
19096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19097
19098 # Commands used to build and install a shared archive.
19099 archive_cmds=$lt_archive_cmds_GCJ
19100 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19101 postinstall_cmds=$lt_postinstall_cmds
19102 postuninstall_cmds=$lt_postuninstall_cmds
19103
19104 # Commands used to build a loadable module (assumed same as above if empty)
19105 module_cmds=$lt_module_cmds_GCJ
19106 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19107
19108 # Commands to strip libraries.
19109 old_striplib=$lt_old_striplib
19110 striplib=$lt_striplib
19111
19112 # Dependencies to place before the objects being linked to create a
19113 # shared library.
19114 predep_objects=$lt_predep_objects_GCJ
19115
19116 # Dependencies to place after the objects being linked to create a
19117 # shared library.
19118 postdep_objects=$lt_postdep_objects_GCJ
19119
19120 # Dependencies to place before the objects being linked to create a
19121 # shared library.
19122 predeps=$lt_predeps_GCJ
19123
19124 # Dependencies to place after the objects being linked to create a
19125 # shared library.
19126 postdeps=$lt_postdeps_GCJ
19127
19128 # The directories searched by this compiler when creating a shared
19129 # library
19130 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19131
19132 # The library search path used internally by the compiler when linking
19133 # a shared library.
19134 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19135
19136 # Method to check whether dependent libraries are shared objects.
19137 deplibs_check_method=$lt_deplibs_check_method
19138
19139 # Command to use when deplibs_check_method == file_magic.
19140 file_magic_cmd=$lt_file_magic_cmd
19141
19142 # Flag that allows shared libraries with undefined symbols to be built.
19143 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19144
19145 # Flag that forces no undefined symbols.
19146 no_undefined_flag=$lt_no_undefined_flag_GCJ
19147
19148 # Commands used to finish a libtool library installation in a directory.
19149 finish_cmds=$lt_finish_cmds
19150
19151 # Same as above, but a single script fragment to be evaled but not shown.
19152 finish_eval=$lt_finish_eval
19153
19154 # Take the output of nm and produce a listing of raw symbols and C names.
19155 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19156
19157 # Transform the output of nm in a proper C declaration
19158 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19159
19160 # Transform the output of nm in a C name address pair
19161 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19162
19163 # This is the shared library runtime path variable.
19164 runpath_var=$runpath_var
19165
19166 # This is the shared library path variable.
19167 shlibpath_var=$shlibpath_var
19168
19169 # Is shlibpath searched before the hard-coded library search path?
19170 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19171
19172 # How to hardcode a shared library path into an executable.
19173 hardcode_action=$hardcode_action_GCJ
19174
19175 # Whether we should hardcode library paths into libraries.
19176 hardcode_into_libs=$hardcode_into_libs
19177
19178 # Flag to hardcode \$libdir into a binary during linking.
19179 # This must work even if \$libdir does not exist.
19180 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19181
19182 # If ld is used when linking, flag to hardcode \$libdir into
19183 # a binary during linking. This must work even if \$libdir does
19184 # not exist.
19185 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19186
19187 # Whether we need a single -rpath flag with a separated argument.
19188 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19189
19190 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19191 # resulting binary.
19192 hardcode_direct=$hardcode_direct_GCJ
19193
19194 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19195 # resulting binary.
19196 hardcode_minus_L=$hardcode_minus_L_GCJ
19197
19198 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19199 # the resulting binary.
19200 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19201
19202 # Set to yes if building a shared library automatically hardcodes DIR into the library
19203 # and all subsequent libraries and executables linked against it.
19204 hardcode_automatic=$hardcode_automatic_GCJ
19205
19206 # Variables whose values should be saved in libtool wrapper scripts and
19207 # restored at relink time.
19208 variables_saved_for_relink="$variables_saved_for_relink"
19209
19210 # Whether libtool must link a program against all its dependency libraries.
19211 link_all_deplibs=$link_all_deplibs_GCJ
19212
19213 # Compile-time system search path for libraries
19214 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19215
19216 # Run-time system search path for libraries
19217 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19218
19219 # Fix the shell variable \$srcfile for the compiler.
19220 fix_srcfile_path=$lt_fix_srcfile_path
19221
19222 # Set to yes if exported symbols are required.
19223 always_export_symbols=$always_export_symbols_GCJ
19224
19225 # The commands to list exported symbols.
19226 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19227
19228 # The commands to extract the exported symbol list from a shared archive.
19229 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19230
19231 # Symbols that should not be listed in the preloaded symbols.
19232 exclude_expsyms=$lt_exclude_expsyms_GCJ
19233
19234 # Symbols that must always be exported.
19235 include_expsyms=$lt_include_expsyms_GCJ
19236
19237 # ### END LIBTOOL TAG CONFIG: $tagname
19238
19239 __EOF__
19240
19241
19242 else
19243 # If there is no Makefile yet, we rely on a make rule to execute
19244 # `config.status --recheck' to rerun these tests and create the
19245 # libtool script then.
19246 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19247 if test -f "$ltmain_in"; then
19248 test -f Makefile && make "$ltmain"
19249 fi
19250 fi
19251
19252
19253 ac_ext=c
19254 ac_cpp='$CPP $CPPFLAGS'
19255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19258
19259 CC="$lt_save_CC"
19260
19261 else
19262 tagname=""
19263 fi
19264 ;;
19265
19266 RC)
19267
19268
19269 # Source file extension for RC test sources.
19270 ac_ext=rc
19271
19272 # Object file extension for compiled RC test sources.
19273 objext=o
19274 objext_RC=$objext
19275
19276 # Code to be used in simple compile tests
19277 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19278
19279 # Code to be used in simple link tests
19280 lt_simple_link_test_code="$lt_simple_compile_test_code"
19281
19282 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19283
19284 # If no C compiler was specified, use CC.
19285 LTCC=${LTCC-"$CC"}
19286
19287 # If no C compiler flags were specified, use CFLAGS.
19288 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19289
19290 # Allow CC to be a program name with arguments.
19291 compiler=$CC
19292
19293
19294 # save warnings/boilerplate of simple test code
19295 ac_outfile=conftest.$ac_objext
19296 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19297 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19298 _lt_compiler_boilerplate=`cat conftest.err`
19299 $rm conftest*
19300
19301 ac_outfile=conftest.$ac_objext
19302 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19303 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19304 _lt_linker_boilerplate=`cat conftest.err`
19305 $rm -r conftest*
19306
19307
19308 # Allow CC to be a program name with arguments.
19309 lt_save_CC="$CC"
19310 CC=${RC-"windres"}
19311 compiler=$CC
19312 compiler_RC=$CC
19313 for cc_temp in $compiler""; do
19314 case $cc_temp in
19315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19317 \-*) ;;
19318 *) break;;
19319 esac
19320 done
19321 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19322
19323 lt_cv_prog_compiler_c_o_RC=yes
19324
19325 # The else clause should only fire when bootstrapping the
19326 # libtool distribution, otherwise you forgot to ship ltmain.sh
19327 # with your package, and you will get complaints that there are
19328 # no rules to generate ltmain.sh.
19329 if test -f "$ltmain"; then
19330 # See if we are running on zsh, and set the options which allow our commands through
19331 # without removal of \ escapes.
19332 if test -n "${ZSH_VERSION+set}" ; then
19333 setopt NO_GLOB_SUBST
19334 fi
19335 # Now quote all the things that may contain metacharacters while being
19336 # careful not to overquote the AC_SUBSTed values. We take copies of the
19337 # variables and quote the copies for generation of the libtool script.
19338 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19339 SED SHELL STRIP \
19340 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19341 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19342 deplibs_check_method reload_flag reload_cmds need_locks \
19343 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19344 lt_cv_sys_global_symbol_to_c_name_address \
19345 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19346 old_postinstall_cmds old_postuninstall_cmds \
19347 compiler_RC \
19348 CC_RC \
19349 LD_RC \
19350 lt_prog_compiler_wl_RC \
19351 lt_prog_compiler_pic_RC \
19352 lt_prog_compiler_static_RC \
19353 lt_prog_compiler_no_builtin_flag_RC \
19354 export_dynamic_flag_spec_RC \
19355 thread_safe_flag_spec_RC \
19356 whole_archive_flag_spec_RC \
19357 enable_shared_with_static_runtimes_RC \
19358 old_archive_cmds_RC \
19359 old_archive_from_new_cmds_RC \
19360 predep_objects_RC \
19361 postdep_objects_RC \
19362 predeps_RC \
19363 postdeps_RC \
19364 compiler_lib_search_path_RC \
19365 compiler_lib_search_dirs_RC \
19366 archive_cmds_RC \
19367 archive_expsym_cmds_RC \
19368 postinstall_cmds_RC \
19369 postuninstall_cmds_RC \
19370 old_archive_from_expsyms_cmds_RC \
19371 allow_undefined_flag_RC \
19372 no_undefined_flag_RC \
19373 export_symbols_cmds_RC \
19374 hardcode_libdir_flag_spec_RC \
19375 hardcode_libdir_flag_spec_ld_RC \
19376 hardcode_libdir_separator_RC \
19377 hardcode_automatic_RC \
19378 module_cmds_RC \
19379 module_expsym_cmds_RC \
19380 lt_cv_prog_compiler_c_o_RC \
19381 fix_srcfile_path_RC \
19382 exclude_expsyms_RC \
19383 include_expsyms_RC; do
19384
19385 case $var in
19386 old_archive_cmds_RC | \
19387 old_archive_from_new_cmds_RC | \
19388 archive_cmds_RC | \
19389 archive_expsym_cmds_RC | \
19390 module_cmds_RC | \
19391 module_expsym_cmds_RC | \
19392 old_archive_from_expsyms_cmds_RC | \
19393 export_symbols_cmds_RC | \
19394 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19395 postinstall_cmds | postuninstall_cmds | \
19396 old_postinstall_cmds | old_postuninstall_cmds | \
19397 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19398 # Double-quote double-evaled strings.
19399 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19400 ;;
19401 *)
19402 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19403 ;;
19404 esac
19405 done
19406
19407 case $lt_echo in
19408 *'\$0 --fallback-echo"')
19409 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19410 ;;
19411 esac
19412
19413 cfgfile="$ofile"
19414
19415 cat <<__EOF__ >> "$cfgfile"
19416 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19417
19418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19419
19420 # Shell to use when invoking shell scripts.
19421 SHELL=$lt_SHELL
19422
19423 # Whether or not to build shared libraries.
19424 build_libtool_libs=$enable_shared
19425
19426 # Whether or not to build static libraries.
19427 build_old_libs=$enable_static
19428
19429 # Whether or not to add -lc for building shared libraries.
19430 build_libtool_need_lc=$archive_cmds_need_lc_RC
19431
19432 # Whether or not to disallow shared libs when runtime libs are static
19433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19434
19435 # Whether or not to optimize for fast installation.
19436 fast_install=$enable_fast_install
19437
19438 # The host system.
19439 host_alias=$host_alias
19440 host=$host
19441 host_os=$host_os
19442
19443 # The build system.
19444 build_alias=$build_alias
19445 build=$build
19446 build_os=$build_os
19447
19448 # An echo program that does not interpret backslashes.
19449 echo=$lt_echo
19450
19451 # The archiver.
19452 AR=$lt_AR
19453 AR_FLAGS=$lt_AR_FLAGS
19454
19455 # A C compiler.
19456 LTCC=$lt_LTCC
19457
19458 # LTCC compiler flags.
19459 LTCFLAGS=$lt_LTCFLAGS
19460
19461 # A language-specific compiler.
19462 CC=$lt_compiler_RC
19463
19464 # Is the compiler the GNU C compiler?
19465 with_gcc=$GCC_RC
19466
19467 # An ERE matcher.
19468 EGREP=$lt_EGREP
19469
19470 # The linker used to build libraries.
19471 LD=$lt_LD_RC
19472
19473 # Whether we need hard or soft links.
19474 LN_S=$lt_LN_S
19475
19476 # A BSD-compatible nm program.
19477 NM=$lt_NM
19478
19479 # A symbol stripping program
19480 STRIP=$lt_STRIP
19481
19482 # Used to examine libraries when file_magic_cmd begins "file"
19483 MAGIC_CMD=$MAGIC_CMD
19484
19485 # Used on cygwin: DLL creation program.
19486 DLLTOOL="$DLLTOOL"
19487
19488 # Used on cygwin: object dumper.
19489 OBJDUMP="$OBJDUMP"
19490
19491 # Used on cygwin: assembler.
19492 AS="$AS"
19493
19494 # The name of the directory that contains temporary libtool files.
19495 objdir=$objdir
19496
19497 # How to create reloadable object files.
19498 reload_flag=$lt_reload_flag
19499 reload_cmds=$lt_reload_cmds
19500
19501 # How to pass a linker flag through the compiler.
19502 wl=$lt_lt_prog_compiler_wl_RC
19503
19504 # Object file suffix (normally "o").
19505 objext="$ac_objext"
19506
19507 # Old archive suffix (normally "a").
19508 libext="$libext"
19509
19510 # Shared library suffix (normally ".so").
19511 shrext_cmds='$shrext_cmds'
19512
19513 # Executable file suffix (normally "").
19514 exeext="$exeext"
19515
19516 # Additional compiler flags for building library objects.
19517 pic_flag=$lt_lt_prog_compiler_pic_RC
19518 pic_mode=$pic_mode
19519
19520 # What is the maximum length of a command?
19521 max_cmd_len=$lt_cv_sys_max_cmd_len
19522
19523 # Does compiler simultaneously support -c and -o options?
19524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19525
19526 # Must we lock files when doing compilation?
19527 need_locks=$lt_need_locks
19528
19529 # Do we need the lib prefix for modules?
19530 need_lib_prefix=$need_lib_prefix
19531
19532 # Do we need a version for libraries?
19533 need_version=$need_version
19534
19535 # Whether dlopen is supported.
19536 dlopen_support=$enable_dlopen
19537
19538 # Whether dlopen of programs is supported.
19539 dlopen_self=$enable_dlopen_self
19540
19541 # Whether dlopen of statically linked programs is supported.
19542 dlopen_self_static=$enable_dlopen_self_static
19543
19544 # Compiler flag to prevent dynamic linking.
19545 link_static_flag=$lt_lt_prog_compiler_static_RC
19546
19547 # Compiler flag to turn off builtin functions.
19548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19549
19550 # Compiler flag to allow reflexive dlopens.
19551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19552
19553 # Compiler flag to generate shared objects directly from archives.
19554 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19555
19556 # Compiler flag to generate thread-safe objects.
19557 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19558
19559 # Library versioning type.
19560 version_type=$version_type
19561
19562 # Format of library name prefix.
19563 libname_spec=$lt_libname_spec
19564
19565 # List of archive names. First name is the real one, the rest are links.
19566 # The last name is the one that the linker finds with -lNAME.
19567 library_names_spec=$lt_library_names_spec
19568
19569 # The coded name of the library, if different from the real name.
19570 soname_spec=$lt_soname_spec
19571
19572 # Commands used to build and install an old-style archive.
19573 RANLIB=$lt_RANLIB
19574 old_archive_cmds=$lt_old_archive_cmds_RC
19575 old_postinstall_cmds=$lt_old_postinstall_cmds
19576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19577
19578 # Create an old-style archive from a shared archive.
19579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19580
19581 # Create a temporary old-style archive to link instead of a shared archive.
19582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19583
19584 # Commands used to build and install a shared archive.
19585 archive_cmds=$lt_archive_cmds_RC
19586 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19587 postinstall_cmds=$lt_postinstall_cmds
19588 postuninstall_cmds=$lt_postuninstall_cmds
19589
19590 # Commands used to build a loadable module (assumed same as above if empty)
19591 module_cmds=$lt_module_cmds_RC
19592 module_expsym_cmds=$lt_module_expsym_cmds_RC
19593
19594 # Commands to strip libraries.
19595 old_striplib=$lt_old_striplib
19596 striplib=$lt_striplib
19597
19598 # Dependencies to place before the objects being linked to create a
19599 # shared library.
19600 predep_objects=$lt_predep_objects_RC
19601
19602 # Dependencies to place after the objects being linked to create a
19603 # shared library.
19604 postdep_objects=$lt_postdep_objects_RC
19605
19606 # Dependencies to place before the objects being linked to create a
19607 # shared library.
19608 predeps=$lt_predeps_RC
19609
19610 # Dependencies to place after the objects being linked to create a
19611 # shared library.
19612 postdeps=$lt_postdeps_RC
19613
19614 # The directories searched by this compiler when creating a shared
19615 # library
19616 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19617
19618 # The library search path used internally by the compiler when linking
19619 # a shared library.
19620 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19621
19622 # Method to check whether dependent libraries are shared objects.
19623 deplibs_check_method=$lt_deplibs_check_method
19624
19625 # Command to use when deplibs_check_method == file_magic.
19626 file_magic_cmd=$lt_file_magic_cmd
19627
19628 # Flag that allows shared libraries with undefined symbols to be built.
19629 allow_undefined_flag=$lt_allow_undefined_flag_RC
19630
19631 # Flag that forces no undefined symbols.
19632 no_undefined_flag=$lt_no_undefined_flag_RC
19633
19634 # Commands used to finish a libtool library installation in a directory.
19635 finish_cmds=$lt_finish_cmds
19636
19637 # Same as above, but a single script fragment to be evaled but not shown.
19638 finish_eval=$lt_finish_eval
19639
19640 # Take the output of nm and produce a listing of raw symbols and C names.
19641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19642
19643 # Transform the output of nm in a proper C declaration
19644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19645
19646 # Transform the output of nm in a C name address pair
19647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19648
19649 # This is the shared library runtime path variable.
19650 runpath_var=$runpath_var
19651
19652 # This is the shared library path variable.
19653 shlibpath_var=$shlibpath_var
19654
19655 # Is shlibpath searched before the hard-coded library search path?
19656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19657
19658 # How to hardcode a shared library path into an executable.
19659 hardcode_action=$hardcode_action_RC
19660
19661 # Whether we should hardcode library paths into libraries.
19662 hardcode_into_libs=$hardcode_into_libs
19663
19664 # Flag to hardcode \$libdir into a binary during linking.
19665 # This must work even if \$libdir does not exist.
19666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19667
19668 # If ld is used when linking, flag to hardcode \$libdir into
19669 # a binary during linking. This must work even if \$libdir does
19670 # not exist.
19671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19672
19673 # Whether we need a single -rpath flag with a separated argument.
19674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19675
19676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19677 # resulting binary.
19678 hardcode_direct=$hardcode_direct_RC
19679
19680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19681 # resulting binary.
19682 hardcode_minus_L=$hardcode_minus_L_RC
19683
19684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19685 # the resulting binary.
19686 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19687
19688 # Set to yes if building a shared library automatically hardcodes DIR into the library
19689 # and all subsequent libraries and executables linked against it.
19690 hardcode_automatic=$hardcode_automatic_RC
19691
19692 # Variables whose values should be saved in libtool wrapper scripts and
19693 # restored at relink time.
19694 variables_saved_for_relink="$variables_saved_for_relink"
19695
19696 # Whether libtool must link a program against all its dependency libraries.
19697 link_all_deplibs=$link_all_deplibs_RC
19698
19699 # Compile-time system search path for libraries
19700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19701
19702 # Run-time system search path for libraries
19703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19704
19705 # Fix the shell variable \$srcfile for the compiler.
19706 fix_srcfile_path=$lt_fix_srcfile_path
19707
19708 # Set to yes if exported symbols are required.
19709 always_export_symbols=$always_export_symbols_RC
19710
19711 # The commands to list exported symbols.
19712 export_symbols_cmds=$lt_export_symbols_cmds_RC
19713
19714 # The commands to extract the exported symbol list from a shared archive.
19715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19716
19717 # Symbols that should not be listed in the preloaded symbols.
19718 exclude_expsyms=$lt_exclude_expsyms_RC
19719
19720 # Symbols that must always be exported.
19721 include_expsyms=$lt_include_expsyms_RC
19722
19723 # ### END LIBTOOL TAG CONFIG: $tagname
19724
19725 __EOF__
19726
19727
19728 else
19729 # If there is no Makefile yet, we rely on a make rule to execute
19730 # `config.status --recheck' to rerun these tests and create the
19731 # libtool script then.
19732 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19733 if test -f "$ltmain_in"; then
19734 test -f Makefile && make "$ltmain"
19735 fi
19736 fi
19737
19738
19739 ac_ext=c
19740 ac_cpp='$CPP $CPPFLAGS'
19741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19744
19745 CC="$lt_save_CC"
19746
19747 ;;
19748
19749 *)
19750 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19751 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19752 { (exit 1); exit 1; }; }
19753 ;;
19754 esac
19755
19756 # Append the new tag name to the list of available tags.
19757 if test -n "$tagname" ; then
19758 available_tags="$available_tags $tagname"
19759 fi
19760 fi
19761 done
19762 IFS="$lt_save_ifs"
19763
19764 # Now substitute the updated list of available tags.
19765 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19766 mv "${ofile}T" "$ofile"
19767 chmod +x "$ofile"
19768 else
19769 rm -f "${ofile}T"
19770 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19771 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19772 { (exit 1); exit 1; }; }
19773 fi
19774 fi
19775
19776
19777
19778 # This can be used to rebuild libtool when needed
19779 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19780
19781 # Always use our own libtool.
19782 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19783
19784 # Prevent multiple expansion
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356 ac_config_commands="$ac_config_commands libtool"
10357
10358
10359
10360
10361 # Only expand once:
1980310362
1980410363
1980510364 ac_config_headers="$ac_config_headers config.h"
1981910378 if test -n "$ac_tool_prefix"; then
1982010379 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1982110380 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19824 if test "${ac_cv_prog_CC+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if test "${ac_cv_prog_CC+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
1982610385 else
1982710386 if test -n "$CC"; then
1982810387 ac_cv_prog_CC="$CC" # Let the user override the test.
1983210391 do
1983310392 IFS=$as_save_IFS
1983410393 test -z "$as_dir" && as_dir=.
19835 for ac_exec_ext in '' $ac_executable_extensions; do
10394 for ac_exec_ext in '' $ac_executable_extensions; do
1983610395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1983710396 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1983910398 break 2
1984010399 fi
1984110400 done
19842 done
10401 done
1984310402 IFS=$as_save_IFS
1984410403
1984510404 fi
1984610405 fi
1984710406 CC=$ac_cv_prog_CC
1984810407 if test -n "$CC"; then
19849 { echo "$as_me:$LINENO: result: $CC" >&5
19850 echo "${ECHO_T}$CC" >&6; }
19851 else
19852 { echo "$as_me:$LINENO: result: no" >&5
19853 echo "${ECHO_T}no" >&6; }
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10409 $as_echo "$CC" >&6; }
10410 else
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
1985410413 fi
1985510414
1985610415
1985910418 ac_ct_CC=$CC
1986010419 # Extract the first word of "gcc", so it can be a program name with args.
1986110420 set dummy gcc; ac_word=$2
19862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422 $as_echo_n "checking for $ac_word... " >&6; }
10423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
1986610425 else
1986710426 if test -n "$ac_ct_CC"; then
1986810427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1987210431 do
1987310432 IFS=$as_save_IFS
1987410433 test -z "$as_dir" && as_dir=.
19875 for ac_exec_ext in '' $ac_executable_extensions; do
10434 for ac_exec_ext in '' $ac_executable_extensions; do
1987610435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1987710436 ac_cv_prog_ac_ct_CC="gcc"
19878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1987910438 break 2
1988010439 fi
1988110440 done
19882 done
10441 done
1988310442 IFS=$as_save_IFS
1988410443
1988510444 fi
1988610445 fi
1988710446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1988810447 if test -n "$ac_ct_CC"; then
19889 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19890 echo "${ECHO_T}$ac_ct_CC" >&6; }
19891 else
19892 { echo "$as_me:$LINENO: result: no" >&5
19893 echo "${ECHO_T}no" >&6; }
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10449 $as_echo "$ac_ct_CC" >&6; }
10450 else
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
1989410453 fi
1989510454
1989610455 if test "x$ac_ct_CC" = x; then
1989810457 else
1989910458 case $cross_compiling:$ac_tool_warned in
1990010459 yes:)
19901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19902 whose name does not start with the host triplet. If you think this
19903 configuration is useful to you, please write to autoconf@gnu.org." >&5
19904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19905 whose name does not start with the host triplet. If you think this
19906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1990710462 ac_tool_warned=yes ;;
1990810463 esac
1990910464 CC=$ac_ct_CC
1991610471 if test -n "$ac_tool_prefix"; then
1991710472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1991810473 set dummy ${ac_tool_prefix}cc; ac_word=$2
19919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19921 if test "${ac_cv_prog_CC+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if test "${ac_cv_prog_CC+set}" = set; then :
10477 $as_echo_n "(cached) " >&6
1992310478 else
1992410479 if test -n "$CC"; then
1992510480 ac_cv_prog_CC="$CC" # Let the user override the test.
1992910484 do
1993010485 IFS=$as_save_IFS
1993110486 test -z "$as_dir" && as_dir=.
19932 for ac_exec_ext in '' $ac_executable_extensions; do
10487 for ac_exec_ext in '' $ac_executable_extensions; do
1993310488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1993410489 ac_cv_prog_CC="${ac_tool_prefix}cc"
19935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1993610491 break 2
1993710492 fi
1993810493 done
19939 done
10494 done
1994010495 IFS=$as_save_IFS
1994110496
1994210497 fi
1994310498 fi
1994410499 CC=$ac_cv_prog_CC
1994510500 if test -n "$CC"; then
19946 { echo "$as_me:$LINENO: result: $CC" >&5
19947 echo "${ECHO_T}$CC" >&6; }
19948 else
19949 { echo "$as_me:$LINENO: result: no" >&5
19950 echo "${ECHO_T}no" >&6; }
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10502 $as_echo "$CC" >&6; }
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
1995110506 fi
1995210507
1995310508
1995610511 if test -z "$CC"; then
1995710512 # Extract the first word of "cc", so it can be a program name with args.
1995810513 set dummy cc; ac_word=$2
19959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19961 if test "${ac_cv_prog_CC+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if test "${ac_cv_prog_CC+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
1996310518 else
1996410519 if test -n "$CC"; then
1996510520 ac_cv_prog_CC="$CC" # Let the user override the test.
1997010525 do
1997110526 IFS=$as_save_IFS
1997210527 test -z "$as_dir" && as_dir=.
19973 for ac_exec_ext in '' $ac_executable_extensions; do
10528 for ac_exec_ext in '' $ac_executable_extensions; do
1997410529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1997510530 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997610531 ac_prog_rejected=yes
1997710532 continue
1997810533 fi
1997910534 ac_cv_prog_CC="cc"
19980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1998110536 break 2
1998210537 fi
1998310538 done
19984 done
10539 done
1998510540 IFS=$as_save_IFS
1998610541
1998710542 if test $ac_prog_rejected = yes; then
2000010555 fi
2000110556 CC=$ac_cv_prog_CC
2000210557 if test -n "$CC"; then
20003 { echo "$as_me:$LINENO: result: $CC" >&5
20004 echo "${ECHO_T}$CC" >&6; }
20005 else
20006 { echo "$as_me:$LINENO: result: no" >&5
20007 echo "${ECHO_T}no" >&6; }
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10559 $as_echo "$CC" >&6; }
10560 else
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
2000810563 fi
2000910564
2001010565
2001510570 do
2001610571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2001710572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20020 if test "${ac_cv_prog_CC+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 $as_echo_n "checking for $ac_word... " >&6; }
10575 if test "${ac_cv_prog_CC+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
2002210577 else
2002310578 if test -n "$CC"; then
2002410579 ac_cv_prog_CC="$CC" # Let the user override the test.
2002810583 do
2002910584 IFS=$as_save_IFS
2003010585 test -z "$as_dir" && as_dir=.
20031 for ac_exec_ext in '' $ac_executable_extensions; do
10586 for ac_exec_ext in '' $ac_executable_extensions; do
2003210587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003310588 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2003510590 break 2
2003610591 fi
2003710592 done
20038 done
10593 done
2003910594 IFS=$as_save_IFS
2004010595
2004110596 fi
2004210597 fi
2004310598 CC=$ac_cv_prog_CC
2004410599 if test -n "$CC"; then
20045 { echo "$as_me:$LINENO: result: $CC" >&5
20046 echo "${ECHO_T}$CC" >&6; }
20047 else
20048 { echo "$as_me:$LINENO: result: no" >&5
20049 echo "${ECHO_T}no" >&6; }
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10601 $as_echo "$CC" >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
2005010605 fi
2005110606
2005210607
2005910614 do
2006010615 # Extract the first word of "$ac_prog", so it can be a program name with args.
2006110616 set dummy $ac_prog; ac_word=$2
20062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
2006610621 else
2006710622 if test -n "$ac_ct_CC"; then
2006810623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2007210627 do
2007310628 IFS=$as_save_IFS
2007410629 test -z "$as_dir" && as_dir=.
20075 for ac_exec_ext in '' $ac_executable_extensions; do
10630 for ac_exec_ext in '' $ac_executable_extensions; do
2007610631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2007710632 ac_cv_prog_ac_ct_CC="$ac_prog"
20078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2007910634 break 2
2008010635 fi
2008110636 done
20082 done
10637 done
2008310638 IFS=$as_save_IFS
2008410639
2008510640 fi
2008610641 fi
2008710642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2008810643 if test -n "$ac_ct_CC"; then
20089 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20090 echo "${ECHO_T}$ac_ct_CC" >&6; }
20091 else
20092 { echo "$as_me:$LINENO: result: no" >&5
20093 echo "${ECHO_T}no" >&6; }
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10645 $as_echo "$ac_ct_CC" >&6; }
10646 else
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
2009410649 fi
2009510650
2009610651
2010210657 else
2010310658 case $cross_compiling:$ac_tool_warned in
2010410659 yes:)
20105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20106 whose name does not start with the host triplet. If you think this
20107 configuration is useful to you, please write to autoconf@gnu.org." >&5
20108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20109 whose name does not start with the host triplet. If you think this
20110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2011110662 ac_tool_warned=yes ;;
2011210663 esac
2011310664 CC=$ac_ct_CC
2011710668 fi
2011810669
2011910670
20120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20121 See \`config.log' for more details." >&5
20122 echo "$as_me: error: no acceptable C compiler found in \$PATH
20123 See \`config.log' for more details." >&2;}
20124 { (exit 1); exit 1; }; }
10671 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10673 as_fn_error "no acceptable C compiler found in \$PATH
10674 See \`config.log' for more details." "$LINENO" 5; }
2012510675
2012610676 # Provide some information about the compiler.
20127 echo "$as_me:$LINENO: checking for C compiler version" >&5
20128 ac_compiler=`set X $ac_compile; echo $2`
20129 { (ac_try="$ac_compiler --version >&5"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10678 set X $ac_compile
10679 ac_compiler=$2
10680 for ac_option in --version -v -V -qversion; do
10681 { { ac_try="$ac_compiler $ac_option >&5"
2013010682 case "(($ac_try" in
2013110683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013210684 *) ac_try_echo=$ac_try;;
2013310685 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_compiler --version >&5") 2>&5
10686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10687 $as_echo "$ac_try_echo"; } >&5
10688 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2013610689 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }
20139 { (ac_try="$ac_compiler -v >&5"
20140 case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_compiler -v >&5") 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }
20149 { (ac_try="$ac_compiler -V >&5"
20150 case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20153 esac
20154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_compiler -V >&5") 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }
20159
20160 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20161 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20162 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 else
20165 cat >conftest.$ac_ext <<_ACEOF
20166 /* confdefs.h. */
20167 _ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
10690 if test -s conftest.err; then
10691 sed '10a\
10692 ... rest of stderr output deleted ...
10693 10q' conftest.err >conftest.er1
10694 cat conftest.er1 >&5
10695 rm -f conftest.er1 conftest.err
10696 fi
10697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10698 test $ac_status = 0; }
10699 done
10700
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10702 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10703 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017010707 /* end confdefs.h. */
2017110708
2017210709 int
2018010717 return 0;
2018110718 }
2018210719 _ACEOF
20183 rm -f conftest.$ac_objext
20184 if { (ac_try="$ac_compile"
20185 case "(($ac_try" in
20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187 *) ac_try_echo=$ac_try;;
20188 esac
20189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190 (eval "$ac_compile") 2>conftest.er1
20191 ac_status=$?
20192 grep -v '^ *+' conftest.er1 >conftest.err
20193 rm -f conftest.er1
20194 cat conftest.err >&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } && {
20197 test -z "$ac_c_werror_flag" ||
20198 test ! -s conftest.err
20199 } && test -s conftest.$ac_objext; then
10720 if ac_fn_c_try_compile "$LINENO"; then :
2020010721 ac_compiler_gnu=yes
2020110722 else
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205 ac_compiler_gnu=no
20206 fi
20207
10723 ac_compiler_gnu=no
10724 fi
2020810725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020910726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021010727
2021110728 fi
20212 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20213 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20214 GCC=`test $ac_compiler_gnu = yes && echo yes`
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10730 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10731 if test $ac_compiler_gnu = yes; then
10732 GCC=yes
10733 else
10734 GCC=
10735 fi
2021510736 ac_test_CFLAGS=${CFLAGS+set}
2021610737 ac_save_CFLAGS=$CFLAGS
20217 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20218 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20219 if test "${ac_cv_prog_cc_g+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10739 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10740 if test "${ac_cv_prog_cc_g+set}" = set; then :
10741 $as_echo_n "(cached) " >&6
2022110742 else
2022210743 ac_save_c_werror_flag=$ac_c_werror_flag
2022310744 ac_c_werror_flag=yes
2022410745 ac_cv_prog_cc_g=no
2022510746 CFLAGS="-g"
20226 cat >conftest.$ac_ext <<_ACEOF
20227 /* confdefs.h. */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023110748 /* end confdefs.h. */
2023210749
2023310750 int
2023810755 return 0;
2023910756 }
2024010757 _ACEOF
20241 rm -f conftest.$ac_objext
20242 if { (ac_try="$ac_compile"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_compile") 2>conftest.er1
20249 ac_status=$?
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest.$ac_objext; then
10758 if ac_fn_c_try_compile "$LINENO"; then :
2025810759 ac_cv_prog_cc_g=yes
2025910760 else
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20262
20263 CFLAGS=""
20264 cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h. */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
10761 CFLAGS=""
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026910763 /* end confdefs.h. */
2027010764
2027110765 int
2027610770 return 0;
2027710771 }
2027810772 _ACEOF
20279 rm -f conftest.$ac_objext
20280 if { (ac_try="$ac_compile"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_compile") 2>conftest.er1
20287 ac_status=$?
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } && {
20293 test -z "$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 } && test -s conftest.$ac_objext; then
20296 :
20297 else
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301 ac_c_werror_flag=$ac_save_c_werror_flag
10773 if ac_fn_c_try_compile "$LINENO"; then :
10774
10775 else
10776 ac_c_werror_flag=$ac_save_c_werror_flag
2030210777 CFLAGS="-g"
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030810779 /* end confdefs.h. */
2030910780
2031010781 int
2031510786 return 0;
2031610787 }
2031710788 _ACEOF
20318 rm -f conftest.$ac_objext
20319 if { (ac_try="$ac_compile"
20320 case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_compile") 2>conftest.er1
20326 ac_status=$?
20327 grep -v '^ *+' conftest.er1 >conftest.err
20328 rm -f conftest.er1
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } && {
20332 test -z "$ac_c_werror_flag" ||
20333 test ! -s conftest.err
20334 } && test -s conftest.$ac_objext; then
10789 if ac_fn_c_try_compile "$LINENO"; then :
2033510790 ac_cv_prog_cc_g=yes
20336 else
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340
20341 fi
20342
10791 fi
2034310792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034410793 fi
20345
2034610794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034710795 fi
20348
2034910796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035010797 ac_c_werror_flag=$ac_save_c_werror_flag
2035110798 fi
20352 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20353 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10800 $as_echo "$ac_cv_prog_cc_g" >&6; }
2035410801 if test "$ac_test_CFLAGS" = set; then
2035510802 CFLAGS=$ac_save_CFLAGS
2035610803 elif test $ac_cv_prog_cc_g = yes; then
2036610813 CFLAGS=
2036710814 fi
2036810815 fi
20369 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20370 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20371 if test "${ac_cv_prog_cc_c89+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10817 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10818 if test "${ac_cv_prog_cc_c89+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
2037310820 else
2037410821 ac_cv_prog_cc_c89=no
2037510822 ac_save_CC=$CC
20376 cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h. */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038110824 /* end confdefs.h. */
2038210825 #include <stdarg.h>
2038310826 #include <stdio.h>
2043410877 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2043510878 do
2043610879 CC="$ac_save_CC $ac_arg"
20437 rm -f conftest.$ac_objext
20438 if { (ac_try="$ac_compile"
20439 case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_compile") 2>conftest.er1
20445 ac_status=$?
20446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } && {
20451 test -z "$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 } && test -s conftest.$ac_objext; then
10880 if ac_fn_c_try_compile "$LINENO"; then :
2045410881 ac_cv_prog_cc_c89=$ac_arg
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459
20460 fi
20461
10882 fi
2046210883 rm -f core conftest.err conftest.$ac_objext
2046310884 test "x$ac_cv_prog_cc_c89" != "xno" && break
2046410885 done
2046910890 # AC_CACHE_VAL
2047010891 case "x$ac_cv_prog_cc_c89" in
2047110892 x)
20472 { echo "$as_me:$LINENO: result: none needed" >&5
20473 echo "${ECHO_T}none needed" >&6; } ;;
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10894 $as_echo "none needed" >&6; } ;;
2047410895 xno)
20475 { echo "$as_me:$LINENO: result: unsupported" >&5
20476 echo "${ECHO_T}unsupported" >&6; } ;;
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10897 $as_echo "unsupported" >&6; } ;;
2047710898 *)
2047810899 CC="$CC $ac_cv_prog_cc_c89"
20479 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20480 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10901 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2048110902 esac
20482
10903 if test "x$ac_cv_prog_cc_c89" != xno; then :
10904
10905 fi
2048310906
2048410907 ac_ext=c
2048510908 ac_cpp='$CPP $CPPFLAGS'
2048910912
2049010913 depcc="$CC" am_compiler_list=
2049110914
20492 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20493 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20494 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10916 $as_echo_n "checking dependency style of $depcc... " >&6; }
10917 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10918 $as_echo_n "(cached) " >&6
2049610919 else
2049710920 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2049810921 # We make a subdir and do the tests there. Otherwise we can end up
2051710940 if test "$am_compiler_list" = ""; then
2051810941 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2051910942 fi
10943 am__universal=false
10944 case " $depcc " in #(
10945 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10946 esac
10947
2052010948 for depmode in $am_compiler_list; do
2052110949 # Setup a source with many dependencies, because some compilers
2052210950 # like to wrap large dependency lists on column 80 (with \), and
2053410962 done
2053510963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2053610964
10965 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10966 # mode. It turns out that the SunPro C++ compiler does not properly
10967 # handle `-M -o', and we need to detect this. Also, some Intel
10968 # versions had trouble with output in subdirs
10969 am__obj=sub/conftest.${OBJEXT-o}
10970 am__minus_obj="-o $am__obj"
2053710971 case $depmode in
10972 gcc)
10973 # This depmode causes a compiler race in universal mode.
10974 test "$am__universal" = false || continue
10975 ;;
2053810976 nosideeffect)
2053910977 # after this tag, mechanisms are not by side-effect, so they'll
2054010978 # only be used when explicitly requested
2054410982 break
2054510983 fi
2054610984 ;;
10985 msvisualcpp | msvcmsys)
10986 # This compiler won't grok `-c -o', but also, the minuso test has
10987 # not run yet. These depmodes are late enough in the game, and
10988 # so weak that their functioning should not be impacted.
10989 am__obj=conftest.${OBJEXT-o}
10990 am__minus_obj=
10991 ;;
2054710992 none) break ;;
2054810993 esac
20549 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20550 # mode. It turns out that the SunPro C++ compiler does not properly
20551 # handle `-M -o', and we need to detect this.
2055210994 if depmode=$depmode \
20553 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10995 source=sub/conftest.c object=$am__obj \
2055410996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20555 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
10997 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2055610998 >/dev/null 2>conftest.err &&
2055710999 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2055811000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20559 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11001 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2056011002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2056111003 # icc doesn't choke on unknown options, it will just issue warnings
2056211004 # or remarks (even with -Werror). So we grep stderr for any message
2058011022 fi
2058111023
2058211024 fi
20583 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20584 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11026 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2058511027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2058611028
2058711029 if
2059511037 fi
2059611038
2059711039
20598 case $ac_cv_prog_cc_stdc in
20599 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
20600 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
20601 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
20602 if test "${ac_cv_prog_cc_c99+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 case $ac_cv_prog_cc_stdc in #(
11041 no) :
11042 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
11043 *) :
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11045 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11046 if test "${ac_cv_prog_cc_c99+set}" = set; then :
11047 $as_echo_n "(cached) " >&6
2060411048 else
2060511049 ac_cv_prog_cc_c99=no
2060611050 ac_save_CC=$CC
20607 cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h. */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061211052 /* end confdefs.h. */
2061311053 #include <stdarg.h>
2061411054 #include <stdbool.h>
2074711187 return 0;
2074811188 }
2074911189 _ACEOF
20750 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
11190 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
2075111191 do
2075211192 CC="$ac_save_CC $ac_arg"
20753 rm -f conftest.$ac_objext
20754 if { (ac_try="$ac_compile"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_compile") 2>conftest.er1
20761 ac_status=$?
20762 grep -v '^ *+' conftest.er1 >conftest.err
20763 rm -f conftest.er1
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } && {
20767 test -z "$ac_c_werror_flag" ||
20768 test ! -s conftest.err
20769 } && test -s conftest.$ac_objext; then
11193 if ac_fn_c_try_compile "$LINENO"; then :
2077011194 ac_cv_prog_cc_c99=$ac_arg
20771 else
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20774
20775
20776 fi
20777
11195 fi
2077811196 rm -f core conftest.err conftest.$ac_objext
2077911197 test "x$ac_cv_prog_cc_c99" != "xno" && break
2078011198 done
2078511203 # AC_CACHE_VAL
2078611204 case "x$ac_cv_prog_cc_c99" in
2078711205 x)
20788 { echo "$as_me:$LINENO: result: none needed" >&5
20789 echo "${ECHO_T}none needed" >&6; } ;;
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11207 $as_echo "none needed" >&6; } ;;
2079011208 xno)
20791 { echo "$as_me:$LINENO: result: unsupported" >&5
20792 echo "${ECHO_T}unsupported" >&6; } ;;
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11210 $as_echo "unsupported" >&6; } ;;
2079311211 *)
2079411212 CC="$CC $ac_cv_prog_cc_c99"
20795 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
20796 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11214 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
2079711215 esac
20798 if test "x$ac_cv_prog_cc_c99" != xno; then
11216 if test "x$ac_cv_prog_cc_c99" != xno; then :
2079911217 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
2080011218 else
20801 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20802 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20803 if test "${ac_cv_prog_cc_c89+set}" = set; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11220 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11221 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
2080511223 else
2080611224 ac_cv_prog_cc_c89=no
2080711225 ac_save_CC=$CC
20808 cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h. */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081311227 /* end confdefs.h. */
2081411228 #include <stdarg.h>
2081511229 #include <stdio.h>
2086611280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2086711281 do
2086811282 CC="$ac_save_CC $ac_arg"
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_compile") 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } && {
20883 test -z "$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 } && test -s conftest.$ac_objext; then
11283 if ac_fn_c_try_compile "$LINENO"; then :
2088611284 ac_cv_prog_cc_c89=$ac_arg
20887 else
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891
20892 fi
20893
11285 fi
2089411286 rm -f core conftest.err conftest.$ac_objext
2089511287 test "x$ac_cv_prog_cc_c89" != "xno" && break
2089611288 done
2090111293 # AC_CACHE_VAL
2090211294 case "x$ac_cv_prog_cc_c89" in
2090311295 x)
20904 { echo "$as_me:$LINENO: result: none needed" >&5
20905 echo "${ECHO_T}none needed" >&6; } ;;
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11297 $as_echo "none needed" >&6; } ;;
2090611298 xno)
20907 { echo "$as_me:$LINENO: result: unsupported" >&5
20908 echo "${ECHO_T}unsupported" >&6; } ;;
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11300 $as_echo "unsupported" >&6; } ;;
2090911301 *)
2091011302 CC="$CC $ac_cv_prog_cc_c89"
20911 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20912 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11304 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2091311305 esac
20914 if test "x$ac_cv_prog_cc_c89" != xno; then
11306 if test "x$ac_cv_prog_cc_c89" != xno; then :
2091511307 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
2091611308 else
2091711309 ac_cv_prog_cc_stdc=no
2091811310 fi
2091911311
20920
20921 fi
20922
11312 fi
2092311313 ;;
2092411314 esac
20925 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
20926 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
20927 if test "${ac_cv_prog_cc_stdc+set}" = set; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 fi
20930
20931 case $ac_cv_prog_cc_stdc in
20932 no) { echo "$as_me:$LINENO: result: unsupported" >&5
20933 echo "${ECHO_T}unsupported" >&6; } ;;
20934 '') { echo "$as_me:$LINENO: result: none needed" >&5
20935 echo "${ECHO_T}none needed" >&6; } ;;
20936 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
20937 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
11316 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
11317 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
11318 $as_echo_n "(cached) " >&6
11319 fi
11320
11321 case $ac_cv_prog_cc_stdc in #(
11322 no) :
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11324 $as_echo "unsupported" >&6; } ;; #(
11325 '') :
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11327 $as_echo "none needed" >&6; } ;; #(
11328 *) :
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
11330 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
2093811331 esac
20939
2094011332
2094111333 # By default we simply use the C compiler to build assembly code.
2094211334
2094711339
2094811340 depcc="$CCAS" am_compiler_list=
2094911341
20950 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20951 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20952 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11343 $as_echo_n "checking dependency style of $depcc... " >&6; }
11344 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
2095411346 else
2095511347 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2095611348 # We make a subdir and do the tests there. Otherwise we can end up
2097511367 if test "$am_compiler_list" = ""; then
2097611368 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2097711369 fi
11370 am__universal=false
11371
11372
2097811373 for depmode in $am_compiler_list; do
2097911374 # Setup a source with many dependencies, because some compilers
2098011375 # like to wrap large dependency lists on column 80 (with \), and
2099211387 done
2099311388 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2099411389
11390 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11391 # mode. It turns out that the SunPro C++ compiler does not properly
11392 # handle `-M -o', and we need to detect this. Also, some Intel
11393 # versions had trouble with output in subdirs
11394 am__obj=sub/conftest.${OBJEXT-o}
11395 am__minus_obj="-o $am__obj"
2099511396 case $depmode in
11397 gcc)
11398 # This depmode causes a compiler race in universal mode.
11399 test "$am__universal" = false || continue
11400 ;;
2099611401 nosideeffect)
2099711402 # after this tag, mechanisms are not by side-effect, so they'll
2099811403 # only be used when explicitly requested
2100211407 break
2100311408 fi
2100411409 ;;
11410 msvisualcpp | msvcmsys)
11411 # This compiler won't grok `-c -o', but also, the minuso test has
11412 # not run yet. These depmodes are late enough in the game, and
11413 # so weak that their functioning should not be impacted.
11414 am__obj=conftest.${OBJEXT-o}
11415 am__minus_obj=
11416 ;;
2100511417 none) break ;;
2100611418 esac
21007 # We check with `-c' and `-o' for the sake of the "dashmstdout"
21008 # mode. It turns out that the SunPro C++ compiler does not properly
21009 # handle `-M -o', and we need to detect this.
2101011419 if depmode=$depmode \
21011 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11420 source=sub/conftest.c object=$am__obj \
2101211421 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21013 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11422 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2101411423 >/dev/null 2>conftest.err &&
2101511424 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2101611425 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21017 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11426 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2101811427 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2101911428 # icc doesn't choke on unknown options, it will just issue warnings
2102011429 # or remarks (even with -Werror). So we grep stderr for any message
2103811447 fi
2103911448
2104011449 fi
21041 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
21042 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11451 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
2104311452 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
2104411453
2104511454 if
2105511464
2105611465
2105711466
21058 { echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
21059 echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6; }
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wall" >&5
11468 $as_echo_n "checking to see if compiler understands -Wall... " >&6; }
2106011469
2106111470 save_CFLAGS="$CFLAGS"
2106211471 CFLAGS="$CFLAGS -Wall"
2106311472
21064 cat >conftest.$ac_ext <<_ACEOF
21065 /* confdefs.h. */
21066 _ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106911474 /* end confdefs.h. */
2107011475
2107111476 int
2107611481 return 0;
2107711482 }
2107811483 _ACEOF
21079 rm -f conftest.$ac_objext
21080 if { (ac_try="$ac_compile"
21081 case "(($ac_try" in
21082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083 *) ac_try_echo=$ac_try;;
21084 esac
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086 (eval "$ac_compile") 2>conftest.er1
21087 ac_status=$?
21088 grep -v '^ *+' conftest.er1 >conftest.err
21089 rm -f conftest.er1
21090 cat conftest.err >&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } && {
21093 test -z "$ac_c_werror_flag" ||
21094 test ! -s conftest.err
21095 } && test -s conftest.$ac_objext; then
11484 if ac_fn_c_try_compile "$LINENO"; then :
2109611485 flag_ok=yes
2109711486 else
21098 echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21100
21101 flag_ok=no
21102 fi
21103
11487 flag_ok=no
11488 fi
2110411489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110511490 CFLAGS="$save_CFLAGS"
2110611491
2111111496 ERROR_CFLAGS=""
2111211497 true
2111311498 fi
21114 { echo "$as_me:$LINENO: result: $flag_ok" >&5
21115 echo "${ECHO_T}$flag_ok" >&6; }
21116
21117
21118 { echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5
21119 echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6; }
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
11500 $as_echo "$flag_ok" >&6; }
11501
11502
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Werror" >&5
11504 $as_echo_n "checking to see if compiler understands -Werror... " >&6; }
2112011505
2112111506 save_CFLAGS="$CFLAGS"
2112211507 CFLAGS="$CFLAGS -Werror"
2112311508
21124 cat >conftest.$ac_ext <<_ACEOF
21125 /* confdefs.h. */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112911510 /* end confdefs.h. */
2113011511
2113111512 int
2113611517 return 0;
2113711518 }
2113811519 _ACEOF
21139 rm -f conftest.$ac_objext
21140 if { (ac_try="$ac_compile"
21141 case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_compile") 2>conftest.er1
21147 ac_status=$?
21148 grep -v '^ *+' conftest.er1 >conftest.err
21149 rm -f conftest.er1
21150 cat conftest.err >&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } && {
21153 test -z "$ac_c_werror_flag" ||
21154 test ! -s conftest.err
21155 } && test -s conftest.$ac_objext; then
11520 if ac_fn_c_try_compile "$LINENO"; then :
2115611521 flag_ok=yes
2115711522 else
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161 flag_ok=no
21162 fi
21163
11523 flag_ok=no
11524 fi
2116411525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116511526 CFLAGS="$save_CFLAGS"
2116611527
2117111532 werror=no
2117211533 true
2117311534 fi
21174 { echo "$as_me:$LINENO: result: $flag_ok" >&5
21175 echo "${ECHO_T}$flag_ok" >&6; }
21176
21177
21178 { echo "$as_me:$LINENO: checking to see if compiler understands -Wextra" >&5
21179 echo $ECHO_N "checking to see if compiler understands -Wextra... $ECHO_C" >&6; }
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
11536 $as_echo "$flag_ok" >&6; }
11537
11538
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wextra" >&5
11540 $as_echo_n "checking to see if compiler understands -Wextra... " >&6; }
2118011541
2118111542 save_CFLAGS="$CFLAGS"
2118211543 CFLAGS="$CFLAGS -Wextra"
2118311544
21184 cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h. */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118911546 /* end confdefs.h. */
2119011547
2119111548 int
2119611553 return 0;
2119711554 }
2119811555 _ACEOF
21199 rm -f conftest.$ac_objext
21200 if { (ac_try="$ac_compile"
21201 case "(($ac_try" in
21202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21203 *) ac_try_echo=$ac_try;;
21204 esac
21205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21206 (eval "$ac_compile") 2>conftest.er1
21207 ac_status=$?
21208 grep -v '^ *+' conftest.er1 >conftest.err
21209 rm -f conftest.er1
21210 cat conftest.err >&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } && {
21213 test -z "$ac_c_werror_flag" ||
21214 test ! -s conftest.err
21215 } && test -s conftest.$ac_objext; then
11556 if ac_fn_c_try_compile "$LINENO"; then :
2121611557 flag_ok=yes
2121711558 else
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21220
21221 flag_ok=no
21222 fi
21223
11559 flag_ok=no
11560 fi
2122411561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122511562 CFLAGS="$save_CFLAGS"
2122611563
2123111568 wextra=no
2123211569 true
2123311570 fi
21234 { echo "$as_me:$LINENO: result: $flag_ok" >&5
21235 echo "${ECHO_T}$flag_ok" >&6; }
21236
21237
21238 { echo "$as_me:$LINENO: checking to see if compiler understands -Wno-missing-field-initializers" >&5
21239 echo $ECHO_N "checking to see if compiler understands -Wno-missing-field-initializers... $ECHO_C" >&6; }
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
11572 $as_echo "$flag_ok" >&6; }
11573
11574
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wno-missing-field-initializers" >&5
11576 $as_echo_n "checking to see if compiler understands -Wno-missing-field-initializers... " >&6; }
2124011577
2124111578 save_CFLAGS="$CFLAGS"
2124211579 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
2124311580
21244 cat >conftest.$ac_ext <<_ACEOF
21245 /* confdefs.h. */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124911582 /* end confdefs.h. */
2125011583
2125111584 int
2125611589 return 0;
2125711590 }
2125811591 _ACEOF
21259 rm -f conftest.$ac_objext
21260 if { (ac_try="$ac_compile"
21261 case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21264 esac
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_compile") 2>conftest.er1
21267 ac_status=$?
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } && {
21273 test -z "$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21275 } && test -s conftest.$ac_objext; then
11592 if ac_fn_c_try_compile "$LINENO"; then :
2127611593 flag_ok=yes
2127711594 else
21278 echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21280
21281 flag_ok=no
21282 fi
21283
11595 flag_ok=no
11596 fi
2128411597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128511598 CFLAGS="$save_CFLAGS"
2128611599
2129111604 wno_missing_field_initializers=no
2129211605 true
2129311606 fi
21294 { echo "$as_me:$LINENO: result: $flag_ok" >&5
21295 echo "${ECHO_T}$flag_ok" >&6; }
21296
21297
21298 { echo "$as_me:$LINENO: checking to see if compiler understands -Wno-unused-parameter" >&5
21299 echo $ECHO_N "checking to see if compiler understands -Wno-unused-parameter... $ECHO_C" >&6; }
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
11608 $as_echo "$flag_ok" >&6; }
11609
11610
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wno-unused-parameter" >&5
11612 $as_echo_n "checking to see if compiler understands -Wno-unused-parameter... " >&6; }
2130011613
2130111614 save_CFLAGS="$CFLAGS"
2130211615 CFLAGS="$CFLAGS -Wno-unused-parameter"
2130311616
21304 cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h. */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130911618 /* end confdefs.h. */
2131011619
2131111620 int
2131611625 return 0;
2131711626 }
2131811627 _ACEOF
21319 rm -f conftest.$ac_objext
21320 if { (ac_try="$ac_compile"
21321 case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21324 esac
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326 (eval "$ac_compile") 2>conftest.er1
21327 ac_status=$?
21328 grep -v '^ *+' conftest.er1 >conftest.err
21329 rm -f conftest.er1
21330 cat conftest.err >&5
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } && {
21333 test -z "$ac_c_werror_flag" ||
21334 test ! -s conftest.err
21335 } && test -s conftest.$ac_objext; then
11628 if ac_fn_c_try_compile "$LINENO"; then :
2133611629 flag_ok=yes
2133711630 else
21338 echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21340
21341 flag_ok=no
21342 fi
21343
11631 flag_ok=no
11632 fi
2134411633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134511634 CFLAGS="$save_CFLAGS"
2134611635
2135111640 wno_unused_parameter=no
2135211641 true
2135311642 fi
21354 { echo "$as_me:$LINENO: result: $flag_ok" >&5
21355 echo "${ECHO_T}$flag_ok" >&6; }
21356
21357
21358
21359
21360
21361
21362 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21363 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21364 if test "${ac_cv_header_stdc+set}" = set; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 else
21367 cat >conftest.$ac_ext <<_ACEOF
21368 /* confdefs.h. */
21369 _ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
11644 $as_echo "$flag_ok" >&6; }
11645
11646
11647
11648
11649
11650
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11652 $as_echo_n "checking for ANSI C header files... " >&6; }
11653 if test "${ac_cv_header_stdc+set}" = set; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137211657 /* end confdefs.h. */
2137311658 #include <stdlib.h>
2137411659 #include <stdarg.h>
2138311668 return 0;
2138411669 }
2138511670 _ACEOF
21386 rm -f conftest.$ac_objext
21387 if { (ac_try="$ac_compile"
21388 case "(($ac_try" in
21389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390 *) ac_try_echo=$ac_try;;
21391 esac
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393 (eval "$ac_compile") 2>conftest.er1
21394 ac_status=$?
21395 grep -v '^ *+' conftest.er1 >conftest.err
21396 rm -f conftest.er1
21397 cat conftest.err >&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } && {
21400 test -z "$ac_c_werror_flag" ||
21401 test ! -s conftest.err
21402 } && test -s conftest.$ac_objext; then
11671 if ac_fn_c_try_compile "$LINENO"; then :
2140311672 ac_cv_header_stdc=yes
2140411673 else
21405 echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21407
21408 ac_cv_header_stdc=no
21409 fi
21410
11674 ac_cv_header_stdc=no
11675 fi
2141111676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141211677
2141311678 if test $ac_cv_header_stdc = yes; then
2141411679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142011681 /* end confdefs.h. */
2142111682 #include <string.h>
2142211683
2142311684 _ACEOF
2142411685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21425 $EGREP "memchr" >/dev/null 2>&1; then
21426 :
11686 $EGREP "memchr" >/dev/null 2>&1; then :
11687
2142711688 else
2142811689 ac_cv_header_stdc=no
2142911690 fi
2143311694
2143411695 if test $ac_cv_header_stdc = yes; then
2143511696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
11697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144111698 /* end confdefs.h. */
2144211699 #include <stdlib.h>
2144311700
2144411701 _ACEOF
2144511702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21446 $EGREP "free" >/dev/null 2>&1; then
21447 :
11703 $EGREP "free" >/dev/null 2>&1; then :
11704
2144811705 else
2144911706 ac_cv_header_stdc=no
2145011707 fi
2145411711
2145511712 if test $ac_cv_header_stdc = yes; then
2145611713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21457 if test "$cross_compiling" = yes; then
11714 if test "$cross_compiling" = yes; then :
2145811715 :
2145911716 else
21460 cat >conftest.$ac_ext <<_ACEOF
21461 /* confdefs.h. */
21462 _ACEOF
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146511718 /* end confdefs.h. */
2146611719 #include <ctype.h>
2146711720 #include <stdlib.h>
2148811741 return 0;
2148911742 }
2149011743 _ACEOF
21491 rm -f conftest$ac_exeext
21492 if { (ac_try="$ac_link"
21493 case "(($ac_try" in
21494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21496 esac
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_link") 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21502 { (case "(($ac_try" in
21503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504 *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507 (eval "$ac_try") 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21511 :
21512 else
21513 echo "$as_me: program exited with status $ac_status" >&5
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517 ( exit $ac_status )
21518 ac_cv_header_stdc=no
21519 fi
21520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21521 fi
21522
21523
21524 fi
21525 fi
21526 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21527 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11744 if ac_fn_c_try_run "$LINENO"; then :
11745
11746 else
11747 ac_cv_header_stdc=no
11748 fi
11749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11750 conftest.$ac_objext conftest.beam conftest.$ac_ext
11751 fi
11752
11753 fi
11754 fi
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11756 $as_echo "$ac_cv_header_stdc" >&6; }
2152811757 if test $ac_cv_header_stdc = yes; then
2152911758
21530 cat >>confdefs.h <<\_ACEOF
21531 #define STDC_HEADERS 1
21532 _ACEOF
21533
21534 fi
21535
21536 { echo "$as_me:$LINENO: checking for inline" >&5
21537 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21538 if test "${ac_cv_c_inline+set}" = set; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11760
11761 fi
11762
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11764 $as_echo_n "checking for inline... " >&6; }
11765 if test "${ac_cv_c_inline+set}" = set; then :
11766 $as_echo_n "(cached) " >&6
2154011767 else
2154111768 ac_cv_c_inline=no
2154211769 for ac_kw in inline __inline__ __inline; do
21543 cat >conftest.$ac_ext <<_ACEOF
21544 /* confdefs.h. */
21545 _ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154811771 /* end confdefs.h. */
2154911772 #ifndef __cplusplus
2155011773 typedef int foo_t;
2155311776 #endif
2155411777
2155511778 _ACEOF
21556 rm -f conftest.$ac_objext
21557 if { (ac_try="$ac_compile"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21561 esac
21562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_compile") 2>conftest.er1
21564 ac_status=$?
21565 grep -v '^ *+' conftest.er1 >conftest.err
21566 rm -f conftest.er1
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } && {
21570 test -z "$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 } && test -s conftest.$ac_objext; then
11779 if ac_fn_c_try_compile "$LINENO"; then :
2157311780 ac_cv_c_inline=$ac_kw
21574 else
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21577
21578
21579 fi
21580
11781 fi
2158111782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158211783 test "$ac_cv_c_inline" != no && break
2158311784 done
2158411785
2158511786 fi
21586 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21587 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21588
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11788 $as_echo "$ac_cv_c_inline" >&6; }
2158911789
2159011790 case $ac_cv_c_inline in
2159111791 inline | yes) ;;
2160911809 if test -n "$ac_tool_prefix"; then
2161011810 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2161111811 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21614 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21615 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11815 $as_echo_n "(cached) " >&6
2161611816 else
2161711817 case $PKG_CONFIG in
2161811818 [\\/]* | ?:[\\/]*)
2162411824 do
2162511825 IFS=$as_save_IFS
2162611826 test -z "$as_dir" && as_dir=.
21627 for ac_exec_ext in '' $ac_executable_extensions; do
11827 for ac_exec_ext in '' $ac_executable_extensions; do
2162811828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162911829 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2163111831 break 2
2163211832 fi
2163311833 done
21634 done
11834 done
2163511835 IFS=$as_save_IFS
2163611836
2163711837 ;;
2163911839 fi
2164011840 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2164111841 if test -n "$PKG_CONFIG"; then
21642 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21643 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21644 else
21645 { echo "$as_me:$LINENO: result: no" >&5
21646 echo "${ECHO_T}no" >&6; }
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11843 $as_echo "$PKG_CONFIG" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
2164711847 fi
2164811848
2164911849
2165211852 ac_pt_PKG_CONFIG=$PKG_CONFIG
2165311853 # Extract the first word of "pkg-config", so it can be a program name with args.
2165411854 set dummy pkg-config; ac_word=$2
21655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21657 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
2165911859 else
2166011860 case $ac_pt_PKG_CONFIG in
2166111861 [\\/]* | ?:[\\/]*)
2166711867 do
2166811868 IFS=$as_save_IFS
2166911869 test -z "$as_dir" && as_dir=.
21670 for ac_exec_ext in '' $ac_executable_extensions; do
11870 for ac_exec_ext in '' $ac_executable_extensions; do
2167111871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167211872 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2167411874 break 2
2167511875 fi
2167611876 done
21677 done
11877 done
2167811878 IFS=$as_save_IFS
2167911879
2168011880 ;;
2168211882 fi
2168311883 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2168411884 if test -n "$ac_pt_PKG_CONFIG"; then
21685 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21686 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21687 else
21688 { echo "$as_me:$LINENO: result: no" >&5
21689 echo "${ECHO_T}no" >&6; }
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11886 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11887 else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
2169011890 fi
2169111891
2169211892 if test "x$ac_pt_PKG_CONFIG" = x; then
2169411894 else
2169511895 case $cross_compiling:$ac_tool_warned in
2169611896 yes:)
21697 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21698 whose name does not start with the host triplet. If you think this
21699 configuration is useful to you, please write to autoconf@gnu.org." >&5
21700 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21701 whose name does not start with the host triplet. If you think this
21702 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2170311899 ac_tool_warned=yes ;;
2170411900 esac
2170511901 PKG_CONFIG=$ac_pt_PKG_CONFIG
2171111907 fi
2171211908 if test -n "$PKG_CONFIG"; then
2171311909 _pkg_min_version=0.9.0
21714 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21715 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11911 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2171611912 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21717 { echo "$as_me:$LINENO: result: yes" >&5
21718 echo "${ECHO_T}yes" >&6; }
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11914 $as_echo "yes" >&6; }
2171911915 else
21720 { echo "$as_me:$LINENO: result: no" >&5
21721 echo "${ECHO_T}no" >&6; }
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
2172211918 PKG_CONFIG=""
2172311919 fi
2172411920
2172511921 fi
2172611922
2172711923 pkg_failed=no
21728 { echo "$as_me:$LINENO: checking for GLIB" >&5
21729 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
11925 $as_echo_n "checking for GLIB... " >&6; }
2173011926
2173111927 if test -n "$PKG_CONFIG"; then
2173211928 if test -n "$GLIB_CFLAGS"; then
2173311929 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
2173411930 else
2173511931 if test -n "$PKG_CONFIG" && \
21736 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4, gobject-2.0 >= 2.4\"") >&5
11932 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4, gobject-2.0 >= 2.4\""; } >&5
2173711933 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4, gobject-2.0 >= 2.4") 2>&5
2173811934 ac_status=$?
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; then
11935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11936 test $ac_status = 0; }; then
2174111937 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4, gobject-2.0 >= 2.4" 2>/dev/null`
2174211938 else
2174311939 pkg_failed=yes
2175111947 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
2175211948 else
2175311949 if test -n "$PKG_CONFIG" && \
21754 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4, gobject-2.0 >= 2.4\"") >&5
11950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4, gobject-2.0 >= 2.4\""; } >&5
2175511951 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4, gobject-2.0 >= 2.4") 2>&5
2175611952 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; then
11953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11954 test $ac_status = 0; }; then
2175911955 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4, gobject-2.0 >= 2.4" 2>/dev/null`
2176011956 else
2176111957 pkg_failed=yes
2178211978 # Put the nasty error message in config.log where it belongs
2178311979 echo "$GLIB_PKG_ERRORS" >&5
2178411980
21785 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.4, gobject-2.0 >= 2.4) were not met:
11981 as_fn_error "Package requirements (glib-2.0 >= 2.4, gobject-2.0 >= 2.4) were not met:
2178611982
2178711983 $GLIB_PKG_ERRORS
2178811984
2179211988 Alternatively, you may set the environment variables GLIB_CFLAGS
2179311989 and GLIB_LIBS to avoid the need to call pkg-config.
2179411990 See the pkg-config man page for more details.
21795 " >&5
21796 echo "$as_me: error: Package requirements (glib-2.0 >= 2.4, gobject-2.0 >= 2.4) were not met:
21797
21798 $GLIB_PKG_ERRORS
21799
21800 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21801 installed software in a non-standard prefix.
11991 " "$LINENO" 5
11992 elif test $pkg_failed = untried; then
11993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11995 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11996 is in your PATH or set the PKG_CONFIG environment variable to the full
11997 path to pkg-config.
2180211998
2180311999 Alternatively, you may set the environment variables GLIB_CFLAGS
2180412000 and GLIB_LIBS to avoid the need to call pkg-config.
2180512001 See the pkg-config man page for more details.
21806 " >&2;}
21807 { (exit 1); exit 1; }; }
21808 elif test $pkg_failed = untried; then
21809 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21810 is in your PATH or set the PKG_CONFIG environment variable to the full
21811 path to pkg-config.
21812
21813 Alternatively, you may set the environment variables GLIB_CFLAGS
21814 and GLIB_LIBS to avoid the need to call pkg-config.
21815 See the pkg-config man page for more details.
2181612002
2181712003 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21818 See \`config.log' for more details." >&5
21819 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21820 is in your PATH or set the PKG_CONFIG environment variable to the full
21821 path to pkg-config.
21822
21823 Alternatively, you may set the environment variables GLIB_CFLAGS
21824 and GLIB_LIBS to avoid the need to call pkg-config.
21825 See the pkg-config man page for more details.
21826
21827 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21828 See \`config.log' for more details." >&2;}
21829 { (exit 1); exit 1; }; }
12004 See \`config.log' for more details." "$LINENO" 5; }
2183012005 else
2183112006 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
2183212007 GLIB_LIBS=$pkg_cv_GLIB_LIBS
21833 { echo "$as_me:$LINENO: result: yes" >&5
21834 echo "${ECHO_T}yes" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12009 $as_echo "yes" >&6; }
2183512010 :
2183612011 fi
2183712012
2184312018
2184412019
2184512020 pkg_failed=no
21846 { echo "$as_me:$LINENO: checking for DBUS" >&5
21847 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
12022 $as_echo_n "checking for DBUS... " >&6; }
2184812023
2184912024 if test -n "$PKG_CONFIG"; then
2185012025 if test -n "$DBUS_CFLAGS"; then
2185112026 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
2185212027 else
2185312028 if test -n "$PKG_CONFIG" && \
21854 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.51, dbus-glib-1 >= 0.51\"") >&5
12029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.51, dbus-glib-1 >= 0.51\""; } >&5
2185512030 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.51, dbus-glib-1 >= 0.51") 2>&5
2185612031 ac_status=$?
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; then
12032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12033 test $ac_status = 0; }; then
2185912034 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.51, dbus-glib-1 >= 0.51" 2>/dev/null`
2186012035 else
2186112036 pkg_failed=yes
2186912044 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
2187012045 else
2187112046 if test -n "$PKG_CONFIG" && \
21872 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.51, dbus-glib-1 >= 0.51\"") >&5
12047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.51, dbus-glib-1 >= 0.51\""; } >&5
2187312048 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.51, dbus-glib-1 >= 0.51") 2>&5
2187412049 ac_status=$?
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; then
12050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12051 test $ac_status = 0; }; then
2187712052 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.51, dbus-glib-1 >= 0.51" 2>/dev/null`
2187812053 else
2187912054 pkg_failed=yes
2190012075 # Put the nasty error message in config.log where it belongs
2190112076 echo "$DBUS_PKG_ERRORS" >&5
2190212077
21903 { { echo "$as_me:$LINENO: error: Package requirements (dbus-1 >= 0.51, dbus-glib-1 >= 0.51) were not met:
12078 as_fn_error "Package requirements (dbus-1 >= 0.51, dbus-glib-1 >= 0.51) were not met:
2190412079
2190512080 $DBUS_PKG_ERRORS
2190612081
2191012085 Alternatively, you may set the environment variables DBUS_CFLAGS
2191112086 and DBUS_LIBS to avoid the need to call pkg-config.
2191212087 See the pkg-config man page for more details.
21913 " >&5
21914 echo "$as_me: error: Package requirements (dbus-1 >= 0.51, dbus-glib-1 >= 0.51) were not met:
21915
21916 $DBUS_PKG_ERRORS
21917
21918 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21919 installed software in a non-standard prefix.
12088 " "$LINENO" 5
12089 elif test $pkg_failed = untried; then
12090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12092 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
12093 is in your PATH or set the PKG_CONFIG environment variable to the full
12094 path to pkg-config.
2192012095
2192112096 Alternatively, you may set the environment variables DBUS_CFLAGS
2192212097 and DBUS_LIBS to avoid the need to call pkg-config.
2192312098 See the pkg-config man page for more details.
21924 " >&2;}
21925 { (exit 1); exit 1; }; }
21926 elif test $pkg_failed = untried; then
21927 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21928 is in your PATH or set the PKG_CONFIG environment variable to the full
21929 path to pkg-config.
21930
21931 Alternatively, you may set the environment variables DBUS_CFLAGS
21932 and DBUS_LIBS to avoid the need to call pkg-config.
21933 See the pkg-config man page for more details.
2193412099
2193512100 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21936 See \`config.log' for more details." >&5
21937 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21938 is in your PATH or set the PKG_CONFIG environment variable to the full
21939 path to pkg-config.
21940
21941 Alternatively, you may set the environment variables DBUS_CFLAGS
21942 and DBUS_LIBS to avoid the need to call pkg-config.
21943 See the pkg-config man page for more details.
21944
21945 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21946 See \`config.log' for more details." >&2;}
21947 { (exit 1); exit 1; }; }
12101 See \`config.log' for more details." "$LINENO" 5; }
2194812102 else
2194912103 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
2195012104 DBUS_LIBS=$pkg_cv_DBUS_LIBS
21951 { echo "$as_me:$LINENO: result: yes" >&5
21952 echo "${ECHO_T}yes" >&6; }
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12106 $as_echo "yes" >&6; }
2195312107 :
2195412108 fi
2195512109
2195812112
2195912113
2196012114 pkg_failed=no
21961 { echo "$as_me:$LINENO: checking for TELEPATHY" >&5
21962 echo $ECHO_N "checking for TELEPATHY... $ECHO_C" >&6; }
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TELEPATHY" >&5
12116 $as_echo_n "checking for TELEPATHY... " >&6; }
2196312117
2196412118 if test -n "$PKG_CONFIG"; then
2196512119 if test -n "$TELEPATHY_CFLAGS"; then
2196612120 pkg_cv_TELEPATHY_CFLAGS="$TELEPATHY_CFLAGS"
2196712121 else
2196812122 if test -n "$PKG_CONFIG" && \
21969 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"telepathy-glib >= 0.7.15\"") >&5
12123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"telepathy-glib >= 0.7.15\""; } >&5
2197012124 ($PKG_CONFIG --exists --print-errors "telepathy-glib >= 0.7.15") 2>&5
2197112125 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; then
12126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12127 test $ac_status = 0; }; then
2197412128 pkg_cv_TELEPATHY_CFLAGS=`$PKG_CONFIG --cflags "telepathy-glib >= 0.7.15" 2>/dev/null`
2197512129 else
2197612130 pkg_failed=yes
2198412138 pkg_cv_TELEPATHY_LIBS="$TELEPATHY_LIBS"
2198512139 else
2198612140 if test -n "$PKG_CONFIG" && \
21987 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"telepathy-glib >= 0.7.15\"") >&5
12141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"telepathy-glib >= 0.7.15\""; } >&5
2198812142 ($PKG_CONFIG --exists --print-errors "telepathy-glib >= 0.7.15") 2>&5
2198912143 ac_status=$?
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; then
12144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12145 test $ac_status = 0; }; then
2199212146 pkg_cv_TELEPATHY_LIBS=`$PKG_CONFIG --libs "telepathy-glib >= 0.7.15" 2>/dev/null`
2199312147 else
2199412148 pkg_failed=yes
2201512169 # Put the nasty error message in config.log where it belongs
2201612170 echo "$TELEPATHY_PKG_ERRORS" >&5
2201712171
22018 { { echo "$as_me:$LINENO: error: Package requirements (telepathy-glib >= 0.7.15) were not met:
12172 as_fn_error "Package requirements (telepathy-glib >= 0.7.15) were not met:
2201912173
2202012174 $TELEPATHY_PKG_ERRORS
2202112175
2202512179 Alternatively, you may set the environment variables TELEPATHY_CFLAGS
2202612180 and TELEPATHY_LIBS to avoid the need to call pkg-config.
2202712181 See the pkg-config man page for more details.
22028 " >&5
22029 echo "$as_me: error: Package requirements (telepathy-glib >= 0.7.15) were not met:
22030
22031 $TELEPATHY_PKG_ERRORS
22032
22033 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22034 installed software in a non-standard prefix.
12182 " "$LINENO" 5
12183 elif test $pkg_failed = untried; then
12184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12186 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
12187 is in your PATH or set the PKG_CONFIG environment variable to the full
12188 path to pkg-config.
2203512189
2203612190 Alternatively, you may set the environment variables TELEPATHY_CFLAGS
2203712191 and TELEPATHY_LIBS to avoid the need to call pkg-config.
2203812192 See the pkg-config man page for more details.
22039 " >&2;}
22040 { (exit 1); exit 1; }; }
22041 elif test $pkg_failed = untried; then
22042 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22043 is in your PATH or set the PKG_CONFIG environment variable to the full
22044 path to pkg-config.
22045
22046 Alternatively, you may set the environment variables TELEPATHY_CFLAGS
22047 and TELEPATHY_LIBS to avoid the need to call pkg-config.
22048 See the pkg-config man page for more details.
2204912193
2205012194 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22051 See \`config.log' for more details." >&5
22052 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22053 is in your PATH or set the PKG_CONFIG environment variable to the full
22054 path to pkg-config.
22055
22056 Alternatively, you may set the environment variables TELEPATHY_CFLAGS
22057 and TELEPATHY_LIBS to avoid the need to call pkg-config.
22058 See the pkg-config man page for more details.
22059
22060 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22061 See \`config.log' for more details." >&2;}
22062 { (exit 1); exit 1; }; }
12195 See \`config.log' for more details." "$LINENO" 5; }
2206312196 else
2206412197 TELEPATHY_CFLAGS=$pkg_cv_TELEPATHY_CFLAGS
2206512198 TELEPATHY_LIBS=$pkg_cv_TELEPATHY_LIBS
22066 { echo "$as_me:$LINENO: result: yes" >&5
22067 echo "${ECHO_T}yes" >&6; }
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12200 $as_echo "yes" >&6; }
2206812201 :
2206912202 fi
2207012203
2207312206
2207412207
2207512208 pkg_failed=no
22076 { echo "$as_me:$LINENO: checking for OPENSSL" >&5
22077 echo $ECHO_N "checking for OPENSSL... $ECHO_C" >&6; }
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
12210 $as_echo_n "checking for OPENSSL... " >&6; }
2207812211
2207912212 if test -n "$PKG_CONFIG"; then
2208012213 if test -n "$OPENSSL_CFLAGS"; then
2208112214 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
2208212215 else
2208312216 if test -n "$PKG_CONFIG" && \
22084 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\"") >&5
12217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
2208512218 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
2208612219 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; then
12220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12221 test $ac_status = 0; }; then
2208912222 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
2209012223 else
2209112224 pkg_failed=yes
2209912232 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
2210012233 else
2210112234 if test -n "$PKG_CONFIG" && \
22102 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\"") >&5
12235 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
2210312236 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
2210412237 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; then
12238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12239 test $ac_status = 0; }; then
2210712240 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
2210812241 else
2210912242 pkg_failed=yes
2213012263 # Put the nasty error message in config.log where it belongs
2213112264 echo "$OPENSSL_PKG_ERRORS" >&5
2213212265
22133 { { echo "$as_me:$LINENO: error: Package requirements (openssl >= 0.9.7) were not met:
12266 as_fn_error "Package requirements (openssl >= 0.9.7) were not met:
2213412267
2213512268 $OPENSSL_PKG_ERRORS
2213612269
2214012273 Alternatively, you may set the environment variables OPENSSL_CFLAGS
2214112274 and OPENSSL_LIBS to avoid the need to call pkg-config.
2214212275 See the pkg-config man page for more details.
22143 " >&5
22144 echo "$as_me: error: Package requirements (openssl >= 0.9.7) were not met:
22145
22146 $OPENSSL_PKG_ERRORS
22147
22148 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22149 installed software in a non-standard prefix.
12276 " "$LINENO" 5
12277 elif test $pkg_failed = untried; then
12278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12280 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
12281 is in your PATH or set the PKG_CONFIG environment variable to the full
12282 path to pkg-config.
2215012283
2215112284 Alternatively, you may set the environment variables OPENSSL_CFLAGS
2215212285 and OPENSSL_LIBS to avoid the need to call pkg-config.
2215312286 See the pkg-config man page for more details.
22154 " >&2;}
22155 { (exit 1); exit 1; }; }
22156 elif test $pkg_failed = untried; then
22157 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22158 is in your PATH or set the PKG_CONFIG environment variable to the full
22159 path to pkg-config.
22160
22161 Alternatively, you may set the environment variables OPENSSL_CFLAGS
22162 and OPENSSL_LIBS to avoid the need to call pkg-config.
22163 See the pkg-config man page for more details.
2216412287
2216512288 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22166 See \`config.log' for more details." >&5
22167 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22168 is in your PATH or set the PKG_CONFIG environment variable to the full
22169 path to pkg-config.
22170
22171 Alternatively, you may set the environment variables OPENSSL_CFLAGS
22172 and OPENSSL_LIBS to avoid the need to call pkg-config.
22173 See the pkg-config man page for more details.
22174
22175 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22176 See \`config.log' for more details." >&2;}
22177 { (exit 1); exit 1; }; }
12289 See \`config.log' for more details." "$LINENO" 5; }
2217812290 else
2217912291 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
2218012292 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
22181 { echo "$as_me:$LINENO: result: yes" >&5
22182 echo "${ECHO_T}yes" >&6; }
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12294 $as_echo "yes" >&6; }
2218312295 :
2218412296 fi
2218512297
2219112303 do
2219212304 # Extract the first word of "$ac_prog", so it can be a program name with args.
2219312305 set dummy $ac_prog; ac_word=$2
22194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22196 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if test "${ac_cv_prog_XSLTPROC+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
2219812310 else
2219912311 if test -n "$XSLTPROC"; then
2220012312 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
2220412316 do
2220512317 IFS=$as_save_IFS
2220612318 test -z "$as_dir" && as_dir=.
22207 for ac_exec_ext in '' $ac_executable_extensions; do
12319 for ac_exec_ext in '' $ac_executable_extensions; do
2220812320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2220912321 ac_cv_prog_XSLTPROC="$ac_prog"
22210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2221112323 break 2
2221212324 fi
2221312325 done
22214 done
12326 done
2221512327 IFS=$as_save_IFS
2221612328
2221712329 fi
2221812330 fi
2221912331 XSLTPROC=$ac_cv_prog_XSLTPROC
2222012332 if test -n "$XSLTPROC"; then
22221 { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
22222 echo "${ECHO_T}$XSLTPROC" >&6; }
22223 else
22224 { echo "$as_me:$LINENO: result: no" >&5
22225 echo "${ECHO_T}no" >&6; }
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12334 $as_echo "$XSLTPROC" >&6; }
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
2222612338 fi
2222712339
2222812340
2223012342 done
2223112343
2223212344 if test -z "$XSLTPROC"; then
22233 { { echo "$as_me:$LINENO: error: xsltproc (from the libxslt source package) is required" >&5
22234 echo "$as_me: error: xsltproc (from the libxslt source package) is required" >&2;}
22235 { (exit 1); exit 1; }; }
12345 as_fn_error "xsltproc (from the libxslt source package) is required" "$LINENO" 5
2223612346 fi
2223712347 PYTHON=
2223812348 for ac_prog in python2.3 python2.4 python2.5 python
2223912349 do
2224012350 # Extract the first word of "$ac_prog", so it can be a program name with args.
2224112351 set dummy $ac_prog; ac_word=$2
22242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22244 if test "${ac_cv_prog_PYTHON+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353 $as_echo_n "checking for $ac_word... " >&6; }
12354 if test "${ac_cv_prog_PYTHON+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
2224612356 else
2224712357 if test -n "$PYTHON"; then
2224812358 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
2225212362 do
2225312363 IFS=$as_save_IFS
2225412364 test -z "$as_dir" && as_dir=.
22255 for ac_exec_ext in '' $ac_executable_extensions; do
12365 for ac_exec_ext in '' $ac_executable_extensions; do
2225612366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225712367 ac_cv_prog_PYTHON="$ac_prog"
22258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2225912369 break 2
2226012370 fi
2226112371 done
22262 done
12372 done
2226312373 IFS=$as_save_IFS
2226412374
2226512375 fi
2226612376 fi
2226712377 PYTHON=$ac_cv_prog_PYTHON
2226812378 if test -n "$PYTHON"; then
22269 { echo "$as_me:$LINENO: result: $PYTHON" >&5
22270 echo "${ECHO_T}$PYTHON" >&6; }
22271 else
22272 { echo "$as_me:$LINENO: result: no" >&5
22273 echo "${ECHO_T}no" >&6; }
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12380 $as_echo "$PYTHON" >&6; }
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
2227412384 fi
2227512385
2227612386
2227812388 done
2227912389
2228012390 if test -z "$PYTHON"; then
22281 { { echo "$as_me:$LINENO: error: Python is required to compile this package" >&5
22282 echo "$as_me: error: Python is required to compile this package" >&2;}
22283 { (exit 1); exit 1; }; }
22284 fi
22285
22286
22287 { echo "$as_me:$LINENO: checking for Python with Twisted and IRC protocol support" >&5
22288 echo $ECHO_N "checking for Python with Twisted and IRC protocol support... $ECHO_C" >&6; }
12391 as_fn_error "Python is required to compile this package" "$LINENO" 5
12392 fi
12393
12394
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python with Twisted and IRC protocol support" >&5
12396 $as_echo_n "checking for Python with Twisted and IRC protocol support... " >&6; }
2228912397 for TEST_PYTHON in python2.5 python2.6 python; do
2229012398 if $TEST_PYTHON -c "from sys import version_info; import dbus, dbus.mainloop.glib; raise SystemExit(version_info < (2, 5, 0, 'final', 0))" >/dev/null 2>&1; then
2229112399 if $TEST_PYTHON -c "import twisted.words.protocols.irc, twisted.internet.reactor" >/dev/null 2>&1; then
2230312411 fi
2230412412 fi
2230512413 done
22306 { echo "$as_me:$LINENO: result: $TEST_PYTHON" >&5
22307 echo "${ECHO_T}$TEST_PYTHON" >&6; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_PYTHON" >&5
12415 $as_echo "$TEST_PYTHON" >&6; }
2230812416
2230912417 if test xno != x$TEST_PYTHON; then
2231012418 WANT_TWISTED_TESTS_TRUE=
2238112489 case $ac_val in #(
2238212490 *${as_nl}*)
2238312491 case $ac_var in #(
22384 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22385 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12492 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12493 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2238612494 esac
2238712495 case $ac_var in #(
2238812496 _ | IFS | as_nl) ;; #(
22389 *) $as_unset $ac_var ;;
12497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12498 *) { eval $ac_var=; unset $ac_var;} ;;
2239012499 esac ;;
2239112500 esac
2239212501 done
2239412503 (set) 2>&1 |
2239512504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2239612505 *${as_nl}ac_space=\ *)
22397 # `set' does not quote correctly, so add quotes (double-quote
22398 # substitution turns \\\\ into \\, and sed turns \\ into \).
12506 # `set' does not quote correctly, so add quotes: double-quote
12507 # substitution turns \\\\ into \\, and sed turns \\ into \.
2239912508 sed -n \
2240012509 "s/'/'\\\\''/g;
2240112510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2241812527 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2241912528 if test -w "$cache_file"; then
2242012529 test "x$cache_file" != "x/dev/null" &&
22421 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22422 echo "$as_me: updating cache $cache_file" >&6;}
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12531 $as_echo "$as_me: updating cache $cache_file" >&6;}
2242312532 cat confcache >$cache_file
2242412533 else
22425 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22426 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12535 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2242712536 fi
2242812537 fi
2242912538 rm -f confcache
2243912548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2244012549 # 1. Remove the extension, and $U if already installed.
2244112550 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22442 ac_i=`echo "$ac_i" | sed "$ac_script"`
12551 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2244312552 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2244412553 # will be set to the directory where LIBOBJS objects are built.
22445 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22446 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12554 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12555 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2244712556 done
2244812557 LIBOBJS=$ac_libobjs
2244912558
2245012559 LTLIBOBJS=$ac_ltlibobjs
2245112560
2245212561
12562 if test -n "$EXEEXT"; then
12563 am__EXEEXT_TRUE=
12564 am__EXEEXT_FALSE='#'
12565 else
12566 am__EXEEXT_TRUE='#'
12567 am__EXEEXT_FALSE=
12568 fi
12569
2245312570 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22454 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22455 Usually this means the macro was only invoked conditionally." >&5
22456 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22457 Usually this means the macro was only invoked conditionally." >&2;}
22458 { (exit 1); exit 1; }; }
12571 as_fn_error "conditional \"AMDEP\" was never defined.
12572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2245912573 fi
2246012574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22461 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22462 Usually this means the macro was only invoked conditionally." >&5
22463 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22464 Usually this means the macro was only invoked conditionally." >&2;}
22465 { (exit 1); exit 1; }; }
22466 fi
22467 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22468 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22469 Usually this means the macro was only invoked conditionally." >&5
22470 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22471 Usually this means the macro was only invoked conditionally." >&2;}
22472 { (exit 1); exit 1; }; }
12575 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2247312577 fi
2247412578 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22475 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22476 Usually this means the macro was only invoked conditionally." >&5
22477 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22478 Usually this means the macro was only invoked conditionally." >&2;}
22479 { (exit 1); exit 1; }; }
12579 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2248012581 fi
2248112582 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22482 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
22483 Usually this means the macro was only invoked conditionally." >&5
22484 echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
22485 Usually this means the macro was only invoked conditionally." >&2;}
22486 { (exit 1); exit 1; }; }
12583 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
12584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2248712585 fi
2248812586 if test -z "${WANT_TWISTED_TESTS_TRUE}" && test -z "${WANT_TWISTED_TESTS_FALSE}"; then
22489 { { echo "$as_me:$LINENO: error: conditional \"WANT_TWISTED_TESTS\" was never defined.
22490 Usually this means the macro was only invoked conditionally." >&5
22491 echo "$as_me: error: conditional \"WANT_TWISTED_TESTS\" was never defined.
22492 Usually this means the macro was only invoked conditionally." >&2;}
22493 { (exit 1); exit 1; }; }
12587 as_fn_error "conditional \"WANT_TWISTED_TESTS\" was never defined.
12588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2249412589 fi
2249512590 if test -z "${WANT_TWISTED_TESTS_TRUE}" && test -z "${WANT_TWISTED_TESTS_FALSE}"; then
22496 { { echo "$as_me:$LINENO: error: conditional \"WANT_TWISTED_TESTS\" was never defined.
22497 Usually this means the macro was only invoked conditionally." >&5
22498 echo "$as_me: error: conditional \"WANT_TWISTED_TESTS\" was never defined.
22499 Usually this means the macro was only invoked conditionally." >&2;}
22500 { (exit 1); exit 1; }; }
12591 as_fn_error "conditional \"WANT_TWISTED_TESTS\" was never defined.
12592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2250112593 fi
2250212594
2250312595 : ${CONFIG_STATUS=./config.status}
12596 ac_write_fail=0
2250412597 ac_clean_files_save=$ac_clean_files
2250512598 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22506 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22507 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22508 cat >$CONFIG_STATUS <<_ACEOF
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12600 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12601 as_write_fail=0
12602 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2250912603 #! $SHELL
2251012604 # Generated by $as_me.
2251112605 # Run this file to recreate the current configuration.
2251512609 debug=false
2251612610 ac_cs_recheck=false
2251712611 ac_cs_silent=false
12612
2251812613 SHELL=\${CONFIG_SHELL-$SHELL}
22519 _ACEOF
22520
22521 cat >>$CONFIG_STATUS <<\_ACEOF
22522 ## --------------------- ##
22523 ## M4sh Initialization. ##
22524 ## --------------------- ##
12614 export SHELL
12615 _ASEOF
12616 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12617 ## -------------------- ##
12618 ## M4sh Initialization. ##
12619 ## -------------------- ##
2252512620
2252612621 # Be more Bourne compatible
2252712622 DUALCASE=1; export DUALCASE # for MKS sh
22528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2252912624 emulate sh
2253012625 NULLCMD=:
22531 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12626 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2253212627 # is contrary to our usage. Disable this feature.
2253312628 alias -g '${1+"$@"}'='"$@"'
2253412629 setopt NO_GLOB_SUBST
2253512630 else
22536 case `(set -o) 2>/dev/null` in
22537 *posix*) set -o posix ;;
12631 case `(set -o) 2>/dev/null` in #(
12632 *posix*) :
12633 set -o posix ;; #(
12634 *) :
12635 ;;
2253812636 esac
22539
22540 fi
22541
22542
22543
22544
22545 # PATH needs CR
22546 # Avoid depending upon Character Ranges.
22547 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22548 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22549 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22550 as_cr_digits='0123456789'
22551 as_cr_alnum=$as_cr_Letters$as_cr_digits
12637 fi
12638
12639
12640 as_nl='
12641 '
12642 export as_nl
12643 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12644 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12646 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12647 # Prefer a ksh shell builtin over an external printf program on Solaris,
12648 # but without wasting forks for bash or zsh.
12649 if test -z "$BASH_VERSION$ZSH_VERSION" \
12650 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12651 as_echo='print -r --'
12652 as_echo_n='print -rn --'
12653 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12654 as_echo='printf %s\n'
12655 as_echo_n='printf %s'
12656 else
12657 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12658 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12659 as_echo_n='/usr/ucb/echo -n'
12660 else
12661 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12662 as_echo_n_body='eval
12663 arg=$1;
12664 case $arg in #(
12665 *"$as_nl"*)
12666 expr "X$arg" : "X\\(.*\\)$as_nl";
12667 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12668 esac;
12669 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12670 '
12671 export as_echo_n_body
12672 as_echo_n='sh -c $as_echo_n_body as_echo'
12673 fi
12674 export as_echo_body
12675 as_echo='sh -c $as_echo_body as_echo'
12676 fi
2255212677
2255312678 # The user is always right.
2255412679 if test "${PATH_SEPARATOR+set}" != set; then
22555 echo "#! /bin/sh" >conf$$.sh
22556 echo "exit 0" >>conf$$.sh
22557 chmod +x conf$$.sh
22558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22559 PATH_SEPARATOR=';'
22560 else
22561 PATH_SEPARATOR=:
22562 fi
22563 rm -f conf$$.sh
22564 fi
22565
22566 # Support unset when possible.
22567 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22568 as_unset=unset
22569 else
22570 as_unset=false
12680 PATH_SEPARATOR=:
12681 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12682 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12683 PATH_SEPARATOR=';'
12684 }
2257112685 fi
2257212686
2257312687
2257612690 # there to prevent editors from complaining about space-tab.
2257712691 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2257812692 # splitting by setting IFS to empty value.)
22579 as_nl='
22580 '
2258112693 IFS=" "" $as_nl"
2258212694
2258312695 # Find who we are. Look in the path if we contain no directory separator.
22584 case $0 in
12696 case $0 in #((
2258512697 *[\\/]* ) as_myself=$0 ;;
2258612698 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258712699 for as_dir in $PATH
2258812700 do
2258912701 IFS=$as_save_IFS
2259012702 test -z "$as_dir" && as_dir=.
22591 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22592 done
12703 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12704 done
2259312705 IFS=$as_save_IFS
2259412706
2259512707 ;;
2260012712 as_myself=$0
2260112713 fi
2260212714 if test ! -f "$as_myself"; then
22603 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22604 { (exit 1); exit 1; }
22605 fi
22606
22607 # Work around bugs in pre-3.0 UWIN ksh.
22608 for as_var in ENV MAIL MAILPATH
22609 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12715 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12716 exit 1
12717 fi
12718
12719 # Unset variables that we do not need and which cause bugs (e.g. in
12720 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12721 # suppresses any "Segmentation fault" message there. '((' could
12722 # trigger a bug in pdksh 5.2.14.
12723 for as_var in BASH_ENV ENV MAIL MAILPATH
12724 do eval test x\${$as_var+set} = xset \
12725 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2261012726 done
2261112727 PS1='$ '
2261212728 PS2='> '
2261312729 PS4='+ '
2261412730
2261512731 # NLS nuisances.
22616 for as_var in \
22617 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22618 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22619 LC_TELEPHONE LC_TIME
22620 do
22621 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22622 eval $as_var=C; export $as_var
22623 else
22624 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12732 LC_ALL=C
12733 export LC_ALL
12734 LANGUAGE=C
12735 export LANGUAGE
12736
12737 # CDPATH.
12738 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12739
12740
12741 # as_fn_error ERROR [LINENO LOG_FD]
12742 # ---------------------------------
12743 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12744 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12745 # script with status $?, using 1 if that was 0.
12746 as_fn_error ()
12747 {
12748 as_status=$?; test $as_status -eq 0 && as_status=1
12749 if test "$3"; then
12750 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12751 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
2262512752 fi
22626 done
22627
22628 # Required to use basename.
12753 $as_echo "$as_me: error: $1" >&2
12754 as_fn_exit $as_status
12755 } # as_fn_error
12756
12757
12758 # as_fn_set_status STATUS
12759 # -----------------------
12760 # Set $? to STATUS, without forking.
12761 as_fn_set_status ()
12762 {
12763 return $1
12764 } # as_fn_set_status
12765
12766 # as_fn_exit STATUS
12767 # -----------------
12768 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12769 as_fn_exit ()
12770 {
12771 set +e
12772 as_fn_set_status $1
12773 exit $1
12774 } # as_fn_exit
12775
12776 # as_fn_unset VAR
12777 # ---------------
12778 # Portably unset VAR.
12779 as_fn_unset ()
12780 {
12781 { eval $1=; unset $1;}
12782 }
12783 as_unset=as_fn_unset
12784 # as_fn_append VAR VALUE
12785 # ----------------------
12786 # Append the text in VALUE to the end of the definition contained in VAR. Take
12787 # advantage of any shell optimizations that allow amortized linear growth over
12788 # repeated appends, instead of the typical quadratic growth present in naive
12789 # implementations.
12790 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12791 eval 'as_fn_append ()
12792 {
12793 eval $1+=\$2
12794 }'
12795 else
12796 as_fn_append ()
12797 {
12798 eval $1=\$$1\$2
12799 }
12800 fi # as_fn_append
12801
12802 # as_fn_arith ARG...
12803 # ------------------
12804 # Perform arithmetic evaluation on the ARGs, and store the result in the
12805 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12806 # must be portable across $(()) and expr.
12807 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12808 eval 'as_fn_arith ()
12809 {
12810 as_val=$(( $* ))
12811 }'
12812 else
12813 as_fn_arith ()
12814 {
12815 as_val=`expr "$@" || test $? -eq 1`
12816 }
12817 fi # as_fn_arith
12818
12819
2262912820 if expr a : '\(a\)' >/dev/null 2>&1 &&
2263012821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2263112822 as_expr=expr
2263912830 as_basename=false
2264012831 fi
2264112832
22642
22643 # Name of the executable.
12833 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12834 as_dirname=dirname
12835 else
12836 as_dirname=false
12837 fi
12838
2264412839 as_me=`$as_basename -- "$0" ||
2264512840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2264612841 X"$0" : 'X\(//\)$' \| \
2264712842 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22648 echo X/"$0" |
12843 $as_echo X/"$0" |
2264912844 sed '/^.*\/\([^/][^/]*\)\/*$/{
2265012845 s//\1/
2265112846 q
2266012855 }
2266112856 s/.*/./; q'`
2266212857
22663 # CDPATH.
22664 $as_unset CDPATH
22665
22666
22667
22668 as_lineno_1=$LINENO
22669 as_lineno_2=$LINENO
22670 test "x$as_lineno_1" != "x$as_lineno_2" &&
22671 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22672
22673 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22674 # uniformly replaced by the line number. The first 'sed' inserts a
22675 # line-number line after each line using $LINENO; the second 'sed'
22676 # does the real work. The second script uses 'N' to pair each
22677 # line-number line with the line containing $LINENO, and appends
22678 # trailing '-' during substitution so that $LINENO is not a special
22679 # case at line end.
22680 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22681 # scripts with optimization help from Paolo Bonzini. Blame Lee
22682 # E. McMahon (1931-1989) for sed's syntax. :-)
22683 sed -n '
22684 p
22685 /[$]LINENO/=
22686 ' <$as_myself |
22687 sed '
22688 s/[$]LINENO.*/&-/
22689 t lineno
22690 b
22691 :lineno
22692 N
22693 :loop
22694 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22695 t loop
22696 s/-\n.*//
22697 ' >$as_me.lineno &&
22698 chmod +x "$as_me.lineno" ||
22699 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22700 { (exit 1); exit 1; }; }
22701
22702 # Don't try to exec as it changes $[0], causing all sort of problems
22703 # (the dirname of $[0] is not the place where we might find the
22704 # original and so on. Autoconf is especially sensitive to this).
22705 . "./$as_me.lineno"
22706 # Exit status is that of the last command.
22707 exit
22708 }
22709
22710
22711 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22712 as_dirname=dirname
22713 else
22714 as_dirname=false
22715 fi
12858 # Avoid depending upon Character Ranges.
12859 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12860 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12861 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12862 as_cr_digits='0123456789'
12863 as_cr_alnum=$as_cr_Letters$as_cr_digits
2271612864
2271712865 ECHO_C= ECHO_N= ECHO_T=
22718 case `echo -n x` in
12866 case `echo -n x` in #(((((
2271912867 -n*)
22720 case `echo 'x\c'` in
12868 case `echo 'xy\c'` in
2272112869 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22722 *) ECHO_C='\c';;
12870 xy) ECHO_C='\c';;
12871 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12872 ECHO_T=' ';;
2272312873 esac;;
2272412874 *)
2272512875 ECHO_N='-n';;
2272612876 esac
2272712877
22728 if expr a : '\(a\)' >/dev/null 2>&1 &&
22729 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22730 as_expr=expr
22731 else
22732 as_expr=false
22733 fi
22734
2273512878 rm -f conf$$ conf$$.exe conf$$.file
2273612879 if test -d conf$$.dir; then
2273712880 rm -f conf$$.dir/conf$$.file
2273812881 else
2273912882 rm -f conf$$.dir
22740 mkdir conf$$.dir
22741 fi
22742 echo >conf$$.file
22743 if ln -s conf$$.file conf$$ 2>/dev/null; then
22744 as_ln_s='ln -s'
22745 # ... but there are two gotchas:
22746 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22747 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22748 # In both cases, we have to default to `cp -p'.
22749 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12883 mkdir conf$$.dir 2>/dev/null
12884 fi
12885 if (echo >conf$$.file) 2>/dev/null; then
12886 if ln -s conf$$.file conf$$ 2>/dev/null; then
12887 as_ln_s='ln -s'
12888 # ... but there are two gotchas:
12889 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12890 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12891 # In both cases, we have to default to `cp -p'.
12892 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12893 as_ln_s='cp -p'
12894 elif ln conf$$.file conf$$ 2>/dev/null; then
12895 as_ln_s=ln
12896 else
2275012897 as_ln_s='cp -p'
22751 elif ln conf$$.file conf$$ 2>/dev/null; then
22752 as_ln_s=ln
12898 fi
2275312899 else
2275412900 as_ln_s='cp -p'
2275512901 fi
2275612902 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2275712903 rmdir conf$$.dir 2>/dev/null
2275812904
22759 if mkdir -p . 2>/dev/null; then
22760 as_mkdir_p=:
22761 else
22762 test -d ./-p && rmdir ./-p
22763 as_mkdir_p=false
22764 fi
22765
22766 if test -x / >/dev/null 2>&1; then
22767 as_test_x='test -x'
22768 else
22769 if ls -dL / >/dev/null 2>&1; then
22770 as_ls_L_option=L
22771 else
22772 as_ls_L_option=
22773 fi
22774 as_test_x='
22775 eval sh -c '\''
22776 if test -d "$1"; then
22777 test -d "$1/.";
22778 else
22779 case $1 in
22780 -*)set "./$1";;
22781 esac;
22782 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22783 ???[sx]*):;;*)false;;esac;fi
22784 '\'' sh
22785 '
22786 fi
22787 as_executable_p=$as_test_x
22788
22789 # Sed expression to map a string onto a valid CPP name.
22790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22791
22792 # Sed expression to map a string onto a valid variable name.
22793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22794
22795
22796 exec 6>&1
22797
22798 # Save the log message, to keep $[0] and so on meaningful, and to
22799 # report actual input values of CONFIG_FILES etc. instead of their
22800 # values after options handling.
22801 ac_log="
22802 This file was extended by telepathy-idle $as_me 0.1.3, which was
22803 generated by GNU Autoconf 2.61. Invocation command line was
22804
22805 CONFIG_FILES = $CONFIG_FILES
22806 CONFIG_HEADERS = $CONFIG_HEADERS
22807 CONFIG_LINKS = $CONFIG_LINKS
22808 CONFIG_COMMANDS = $CONFIG_COMMANDS
22809 $ $0 $@
22810
22811 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22812 "
22813
22814 _ACEOF
22815
22816 cat >>$CONFIG_STATUS <<_ACEOF
22817 # Files that config.status was made for.
22818 config_files="$ac_config_files"
22819 config_headers="$ac_config_headers"
22820 config_commands="$ac_config_commands"
22821
22822 _ACEOF
22823
22824 cat >>$CONFIG_STATUS <<\_ACEOF
22825 ac_cs_usage="\
22826 \`$as_me' instantiates files from templates according to the
22827 current configuration.
22828
22829 Usage: $0 [OPTIONS] [FILE]...
22830
22831 -h, --help print this help, then exit
22832 -V, --version print version number and configuration settings, then exit
22833 -q, --quiet do not print progress messages
22834 -d, --debug don't remove temporary files
22835 --recheck update $as_me by reconfiguring in the same conditions
22836 --file=FILE[:TEMPLATE]
22837 instantiate the configuration file FILE
22838 --header=FILE[:TEMPLATE]
22839 instantiate the configuration header FILE
22840
22841 Configuration files:
22842 $config_files
22843
22844 Configuration headers:
22845 $config_headers
22846
22847 Configuration commands:
22848 $config_commands
22849
22850 Report bugs to <bug-autoconf@gnu.org>."
22851
22852 _ACEOF
22853 cat >>$CONFIG_STATUS <<_ACEOF
22854 ac_cs_version="\\
22855 telepathy-idle config.status 0.1.3
22856 configured by $0, generated by GNU Autoconf 2.61,
22857 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22858
22859 Copyright (C) 2006 Free Software Foundation, Inc.
22860 This config.status script is free software; the Free Software Foundation
22861 gives unlimited permission to copy, distribute and modify it."
22862
22863 ac_pwd='$ac_pwd'
22864 srcdir='$srcdir'
22865 INSTALL='$INSTALL'
22866 MKDIR_P='$MKDIR_P'
22867 _ACEOF
22868
22869 cat >>$CONFIG_STATUS <<\_ACEOF
22870 # If no file are specified by the user, then we need to provide default
22871 # value. By we need to know if files were specified by the user.
22872 ac_need_defaults=:
22873 while test $# != 0
22874 do
22875 case $1 in
22876 --*=*)
22877 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22878 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22879 ac_shift=:
22880 ;;
22881 *)
22882 ac_option=$1
22883 ac_optarg=$2
22884 ac_shift=shift
22885 ;;
22886 esac
22887
22888 case $ac_option in
22889 # Handling of the options.
22890 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22891 ac_cs_recheck=: ;;
22892 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22893 echo "$ac_cs_version"; exit ;;
22894 --debug | --debu | --deb | --de | --d | -d )
22895 debug=: ;;
22896 --file | --fil | --fi | --f )
22897 $ac_shift
22898 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22899 ac_need_defaults=false;;
22900 --header | --heade | --head | --hea )
22901 $ac_shift
22902 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22903 ac_need_defaults=false;;
22904 --he | --h)
22905 # Conflict between --help and --header
22906 { echo "$as_me: error: ambiguous option: $1
22907 Try \`$0 --help' for more information." >&2
22908 { (exit 1); exit 1; }; };;
22909 --help | --hel | -h )
22910 echo "$ac_cs_usage"; exit ;;
22911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22912 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22913 ac_cs_silent=: ;;
22914
22915 # This is an error.
22916 -*) { echo "$as_me: error: unrecognized option: $1
22917 Try \`$0 --help' for more information." >&2
22918 { (exit 1); exit 1; }; } ;;
22919
22920 *) ac_config_targets="$ac_config_targets $1"
22921 ac_need_defaults=false ;;
22922
22923 esac
22924 shift
22925 done
22926
22927 ac_configure_extra_args=
22928
22929 if $ac_cs_silent; then
22930 exec 6>/dev/null
22931 ac_configure_extra_args="$ac_configure_extra_args --silent"
22932 fi
22933
22934 _ACEOF
22935 cat >>$CONFIG_STATUS <<_ACEOF
22936 if \$ac_cs_recheck; then
22937 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22938 CONFIG_SHELL=$SHELL
22939 export CONFIG_SHELL
22940 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22941 fi
22942
22943 _ACEOF
22944 cat >>$CONFIG_STATUS <<\_ACEOF
22945 exec 5>>config.log
12905
12906 # as_fn_mkdir_p
12907 # -------------
12908 # Create "$as_dir" as a directory, including parents if necessary.
12909 as_fn_mkdir_p ()
2294612910 {
22947 echo
22948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22949 ## Running $as_me. ##
22950 _ASBOX
22951 echo "$ac_log"
22952 } >&5
22953
22954 _ACEOF
22955 cat >>$CONFIG_STATUS <<_ACEOF
22956 #
22957 # INIT-COMMANDS
22958 #
22959 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22960
22961 _ACEOF
22962
22963 cat >>$CONFIG_STATUS <<\_ACEOF
22964
22965 # Handling of arguments.
22966 for ac_config_target in $ac_config_targets
22967 do
22968 case $ac_config_target in
22969 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22970 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22971 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22972 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
22973 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
22974 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22975 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22976 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22977 "tests/twisted/Makefile") CONFIG_FILES="$CONFIG_FILES tests/twisted/Makefile" ;;
22978 "tests/twisted/tools/Makefile") CONFIG_FILES="$CONFIG_FILES tests/twisted/tools/Makefile" ;;
22979 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22980
22981 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22982 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22983 { (exit 1); exit 1; }; };;
22984 esac
22985 done
22986
22987
22988 # If the user did not use the arguments to specify the items to instantiate,
22989 # then the envvar interface is used. Set only those that are not.
22990 # We use the long form for the default assignment because of an extremely
22991 # bizarre bug on SunOS 4.1.3.
22992 if $ac_need_defaults; then
22993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22994 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22995 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22996 fi
22997
22998 # Have a temporary directory for convenience. Make it in the build tree
22999 # simply because there is no reason against having it here, and in addition,
23000 # creating and moving files from /tmp can sometimes cause problems.
23001 # Hook for its removal unless debugging.
23002 # Note that there is a small window in which the directory will not be cleaned:
23003 # after its creation but before its name has been assigned to `$tmp'.
23004 $debug ||
23005 {
23006 tmp=
23007 trap 'exit_status=$?
23008 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23009 ' 0
23010 trap '{ (exit 1); exit 1; }' 1 2 13 15
23011 }
23012 # Create a (secure) tmp directory for tmp files.
23013
23014 {
23015 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23016 test -n "$tmp" && test -d "$tmp"
23017 } ||
23018 {
23019 tmp=./conf$$-$RANDOM
23020 (umask 077 && mkdir "$tmp")
23021 } ||
23022 {
23023 echo "$me: cannot create a temporary directory in ." >&2
23024 { (exit 1); exit 1; }
23025 }
23026
23027 #
23028 # Set up the sed scripts for CONFIG_FILES section.
23029 #
23030
23031 # No need to generate the scripts if there are no CONFIG_FILES.
23032 # This happens for instance when ./config.status config.h
23033 if test -n "$CONFIG_FILES"; then
23034
23035 _ACEOF
23036
23037
23038
23039 ac_delim='%!_!# '
23040 for ac_last_try in false false false false false :; do
23041 cat >conf$$subs.sed <<_ACEOF
23042 SHELL!$SHELL$ac_delim
23043 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23044 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23045 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23046 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23047 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23048 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23049 exec_prefix!$exec_prefix$ac_delim
23050 prefix!$prefix$ac_delim
23051 program_transform_name!$program_transform_name$ac_delim
23052 bindir!$bindir$ac_delim
23053 sbindir!$sbindir$ac_delim
23054 libexecdir!$libexecdir$ac_delim
23055 datarootdir!$datarootdir$ac_delim
23056 datadir!$datadir$ac_delim
23057 sysconfdir!$sysconfdir$ac_delim
23058 sharedstatedir!$sharedstatedir$ac_delim
23059 localstatedir!$localstatedir$ac_delim
23060 includedir!$includedir$ac_delim
23061 oldincludedir!$oldincludedir$ac_delim
23062 docdir!$docdir$ac_delim
23063 infodir!$infodir$ac_delim
23064 htmldir!$htmldir$ac_delim
23065 dvidir!$dvidir$ac_delim
23066 pdfdir!$pdfdir$ac_delim
23067 psdir!$psdir$ac_delim
23068 libdir!$libdir$ac_delim
23069 localedir!$localedir$ac_delim
23070 mandir!$mandir$ac_delim
23071 DEFS!$DEFS$ac_delim
23072 ECHO_C!$ECHO_C$ac_delim
23073 ECHO_N!$ECHO_N$ac_delim
23074 ECHO_T!$ECHO_T$ac_delim
23075 LIBS!$LIBS$ac_delim
23076 build_alias!$build_alias$ac_delim
23077 host_alias!$host_alias$ac_delim
23078 target_alias!$target_alias$ac_delim
23079 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23080 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23081 INSTALL_DATA!$INSTALL_DATA$ac_delim
23082 am__isrc!$am__isrc$ac_delim
23083 CYGPATH_W!$CYGPATH_W$ac_delim
23084 PACKAGE!$PACKAGE$ac_delim
23085 VERSION!$VERSION$ac_delim
23086 ACLOCAL!$ACLOCAL$ac_delim
23087 AUTOCONF!$AUTOCONF$ac_delim
23088 AUTOMAKE!$AUTOMAKE$ac_delim
23089 AUTOHEADER!$AUTOHEADER$ac_delim
23090 MAKEINFO!$MAKEINFO$ac_delim
23091 install_sh!$install_sh$ac_delim
23092 STRIP!$STRIP$ac_delim
23093 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23094 mkdir_p!$mkdir_p$ac_delim
23095 AWK!$AWK$ac_delim
23096 SET_MAKE!$SET_MAKE$ac_delim
23097 am__leading_dot!$am__leading_dot$ac_delim
23098 AMTAR!$AMTAR$ac_delim
23099 am__tar!$am__tar$ac_delim
23100 am__untar!$am__untar$ac_delim
23101 build!$build$ac_delim
23102 build_cpu!$build_cpu$ac_delim
23103 build_vendor!$build_vendor$ac_delim
23104 build_os!$build_os$ac_delim
23105 host!$host$ac_delim
23106 host_cpu!$host_cpu$ac_delim
23107 host_vendor!$host_vendor$ac_delim
23108 host_os!$host_os$ac_delim
23109 CC!$CC$ac_delim
23110 CFLAGS!$CFLAGS$ac_delim
23111 LDFLAGS!$LDFLAGS$ac_delim
23112 CPPFLAGS!$CPPFLAGS$ac_delim
23113 ac_ct_CC!$ac_ct_CC$ac_delim
23114 EXEEXT!$EXEEXT$ac_delim
23115 OBJEXT!$OBJEXT$ac_delim
23116 DEPDIR!$DEPDIR$ac_delim
23117 am__include!$am__include$ac_delim
23118 am__quote!$am__quote$ac_delim
23119 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23120 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23121 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23122 CCDEPMODE!$CCDEPMODE$ac_delim
23123 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23124 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23125 SED!$SED$ac_delim
23126 GREP!$GREP$ac_delim
23127 EGREP!$EGREP$ac_delim
23128 LN_S!$LN_S$ac_delim
23129 ECHO!$ECHO$ac_delim
23130 AR!$AR$ac_delim
23131 RANLIB!$RANLIB$ac_delim
23132 DSYMUTIL!$DSYMUTIL$ac_delim
23133 NMEDIT!$NMEDIT$ac_delim
23134 CPP!$CPP$ac_delim
23135 CXX!$CXX$ac_delim
23136 CXXFLAGS!$CXXFLAGS$ac_delim
23137 ac_ct_CXX!$ac_ct_CXX$ac_delim
23138 CXXDEPMODE!$CXXDEPMODE$ac_delim
23139 _ACEOF
23140
23141 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23142 break
23143 elif $ac_last_try; then
23144 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23145 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23146 { (exit 1); exit 1; }; }
23147 else
23148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23149 fi
23150 done
23151
23152 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23153 if test -n "$ac_eof"; then
23154 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23155 ac_eof=`expr $ac_eof + 1`
23156 fi
23157
23158 cat >>$CONFIG_STATUS <<_ACEOF
23159 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23161 _ACEOF
23162 sed '
23163 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23164 s/^/s,@/; s/!/@,|#_!!_#|/
23165 :n
23166 t n
23167 s/'"$ac_delim"'$/,g/; t
23168 s/$/\\/; p
23169 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23170 ' >>$CONFIG_STATUS <conf$$subs.sed
23171 rm -f conf$$subs.sed
23172 cat >>$CONFIG_STATUS <<_ACEOF
23173 CEOF$ac_eof
23174 _ACEOF
23175
23176
23177 ac_delim='%!_!# '
23178 for ac_last_try in false false false false false :; do
23179 cat >conf$$subs.sed <<_ACEOF
23180 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23181 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23182 CXXCPP!$CXXCPP$ac_delim
23183 F77!$F77$ac_delim
23184 FFLAGS!$FFLAGS$ac_delim
23185 ac_ct_F77!$ac_ct_F77$ac_delim
23186 LIBTOOL!$LIBTOOL$ac_delim
23187 CCAS!$CCAS$ac_delim
23188 CCASFLAGS!$CCASFLAGS$ac_delim
23189 CCASDEPMODE!$CCASDEPMODE$ac_delim
23190 am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
23191 am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
23192 ERROR_CFLAGS!$ERROR_CFLAGS$ac_delim
23193 PKG_CONFIG!$PKG_CONFIG$ac_delim
23194 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
23195 GLIB_LIBS!$GLIB_LIBS$ac_delim
23196 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
23197 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
23198 DBUS_LIBS!$DBUS_LIBS$ac_delim
23199 TELEPATHY_CFLAGS!$TELEPATHY_CFLAGS$ac_delim
23200 TELEPATHY_LIBS!$TELEPATHY_LIBS$ac_delim
23201 OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
23202 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
23203 XSLTPROC!$XSLTPROC$ac_delim
23204 PYTHON!$PYTHON$ac_delim
23205 WANT_TWISTED_TESTS_TRUE!$WANT_TWISTED_TESTS_TRUE$ac_delim
23206 WANT_TWISTED_TESTS_FALSE!$WANT_TWISTED_TESTS_FALSE$ac_delim
23207 TEST_PYTHON!$TEST_PYTHON$ac_delim
23208 DATADIR!$DATADIR$ac_delim
23209 DBUS_SERVICES_DIR!$DBUS_SERVICES_DIR$ac_delim
23210 LIBOBJS!$LIBOBJS$ac_delim
23211 LTLIBOBJS!$LTLIBOBJS$ac_delim
23212 _ACEOF
23213
23214 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then
23215 break
23216 elif $ac_last_try; then
23217 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23218 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23219 { (exit 1); exit 1; }; }
23220 else
23221 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23222 fi
23223 done
23224
23225 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23226 if test -n "$ac_eof"; then
23227 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23228 ac_eof=`expr $ac_eof + 1`
23229 fi
23230
23231 cat >>$CONFIG_STATUS <<_ACEOF
23232 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23234 _ACEOF
23235 sed '
23236 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23237 s/^/s,@/; s/!/@,|#_!!_#|/
23238 :n
23239 t n
23240 s/'"$ac_delim"'$/,g/; t
23241 s/$/\\/; p
23242 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23243 ' >>$CONFIG_STATUS <conf$$subs.sed
23244 rm -f conf$$subs.sed
23245 cat >>$CONFIG_STATUS <<_ACEOF
23246 :end
23247 s/|#_!!_#|//g
23248 CEOF$ac_eof
23249 _ACEOF
23250
23251
23252 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23253 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23254 # trailing colons and then remove the whole line if VPATH becomes empty
23255 # (actually we leave an empty line to preserve line numbers).
23256 if test "x$srcdir" = x.; then
23257 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23258 s/:*\$(srcdir):*/:/
23259 s/:*\${srcdir}:*/:/
23260 s/:*@srcdir@:*/:/
23261 s/^\([^=]*=[ ]*\):*/\1/
23262 s/:*$//
23263 s/^[^=]*=[ ]*$//
23264 }'
23265 fi
23266
23267 cat >>$CONFIG_STATUS <<\_ACEOF
23268 fi # test -n "$CONFIG_FILES"
23269
23270
23271 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23272 do
23273 case $ac_tag in
23274 :[FHLC]) ac_mode=$ac_tag; continue;;
23275 esac
23276 case $ac_mode$ac_tag in
23277 :[FHL]*:*);;
23278 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23279 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23280 { (exit 1); exit 1; }; };;
23281 :[FH]-) ac_tag=-:-;;
23282 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23283 esac
23284 ac_save_IFS=$IFS
23285 IFS=:
23286 set x $ac_tag
23287 IFS=$ac_save_IFS
23288 shift
23289 ac_file=$1
23290 shift
23291
23292 case $ac_mode in
23293 :L) ac_source=$1;;
23294 :[FH])
23295 ac_file_inputs=
23296 for ac_f
23297 do
23298 case $ac_f in
23299 -) ac_f="$tmp/stdin";;
23300 *) # Look for the file first in the build tree, then in the source tree
23301 # (if the path is not absolute). The absolute path cannot be DOS-style,
23302 # because $ac_f cannot contain `:'.
23303 test -f "$ac_f" ||
23304 case $ac_f in
23305 [\\/$]*) false;;
23306 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23307 esac ||
23308 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23309 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23310 { (exit 1); exit 1; }; };;
23311 esac
23312 ac_file_inputs="$ac_file_inputs $ac_f"
23313 done
23314
23315 # Let's still pretend it is `configure' which instantiates (i.e., don't
23316 # use $as_me), people would be surprised to read:
23317 # /* config.h. Generated by config.status. */
23318 configure_input="Generated from "`IFS=:
23319 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23320 if test x"$ac_file" != x-; then
23321 configure_input="$ac_file. $configure_input"
23322 { echo "$as_me:$LINENO: creating $ac_file" >&5
23323 echo "$as_me: creating $ac_file" >&6;}
23324 fi
23325
23326 case $ac_tag in
23327 *:-:* | *:-) cat >"$tmp/stdin";;
23328 esac
23329 ;;
23330 esac
23331
23332 ac_dir=`$as_dirname -- "$ac_file" ||
23333 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23334 X"$ac_file" : 'X\(//\)[^/]' \| \
23335 X"$ac_file" : 'X\(//\)$' \| \
23336 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23337 echo X"$ac_file" |
23338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23339 s//\1/
23340 q
23341 }
23342 /^X\(\/\/\)[^/].*/{
23343 s//\1/
23344 q
23345 }
23346 /^X\(\/\/\)$/{
23347 s//\1/
23348 q
23349 }
23350 /^X\(\/\).*/{
23351 s//\1/
23352 q
23353 }
23354 s/.*/./; q'`
23355 { as_dir="$ac_dir"
12911
2335612912 case $as_dir in #(
2335712913 -*) as_dir=./$as_dir;;
2335812914 esac
23359 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12915 test -d "$as_dir" || eval $as_mkdir_p || {
2336012916 as_dirs=
2336112917 while :; do
2336212918 case $as_dir in #(
23363 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12919 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2336412920 *) as_qdir=$as_dir;;
2336512921 esac
2336612922 as_dirs="'$as_qdir' $as_dirs"
2336912925 X"$as_dir" : 'X\(//\)[^/]' \| \
2337012926 X"$as_dir" : 'X\(//\)$' \| \
2337112927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23372 echo X"$as_dir" |
12928 $as_echo X"$as_dir" |
2337312929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2337412930 s//\1/
2337512931 q
2339012946 test -d "$as_dir" && break
2339112947 done
2339212948 test -z "$as_dirs" || eval "mkdir $as_dirs"
23393 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23394 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23395 { (exit 1); exit 1; }; }; }
12949 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12950
12951
12952 } # as_fn_mkdir_p
12953 if mkdir -p . 2>/dev/null; then
12954 as_mkdir_p='mkdir -p "$as_dir"'
12955 else
12956 test -d ./-p && rmdir ./-p
12957 as_mkdir_p=false
12958 fi
12959
12960 if test -x / >/dev/null 2>&1; then
12961 as_test_x='test -x'
12962 else
12963 if ls -dL / >/dev/null 2>&1; then
12964 as_ls_L_option=L
12965 else
12966 as_ls_L_option=
12967 fi
12968 as_test_x='
12969 eval sh -c '\''
12970 if test -d "$1"; then
12971 test -d "$1/.";
12972 else
12973 case $1 in #(
12974 -*)set "./$1";;
12975 esac;
12976 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12977 ???[sx]*):;;*)false;;esac;fi
12978 '\'' sh
12979 '
12980 fi
12981 as_executable_p=$as_test_x
12982
12983 # Sed expression to map a string onto a valid CPP name.
12984 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12985
12986 # Sed expression to map a string onto a valid variable name.
12987 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12988
12989
12990 exec 6>&1
12991 ## ----------------------------------- ##
12992 ## Main body of $CONFIG_STATUS script. ##
12993 ## ----------------------------------- ##
12994 _ASEOF
12995 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12996
12997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12998 # Save the log message, to keep $0 and so on meaningful, and to
12999 # report actual input values of CONFIG_FILES etc. instead of their
13000 # values after options handling.
13001 ac_log="
13002 This file was extended by telepathy-idle $as_me 0.1.5, which was
13003 generated by GNU Autoconf 2.64. Invocation command line was
13004
13005 CONFIG_FILES = $CONFIG_FILES
13006 CONFIG_HEADERS = $CONFIG_HEADERS
13007 CONFIG_LINKS = $CONFIG_LINKS
13008 CONFIG_COMMANDS = $CONFIG_COMMANDS
13009 $ $0 $@
13010
13011 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13012 "
13013
13014 _ACEOF
13015
13016 case $ac_config_files in *"
13017 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13018 esac
13019
13020 case $ac_config_headers in *"
13021 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13022 esac
13023
13024
13025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13026 # Files that config.status was made for.
13027 config_files="$ac_config_files"
13028 config_headers="$ac_config_headers"
13029 config_commands="$ac_config_commands"
13030
13031 _ACEOF
13032
13033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13034 ac_cs_usage="\
13035 \`$as_me' instantiates files and other configuration actions
13036 from templates according to the current configuration. Unless the files
13037 and actions are specified as TAGs, all are instantiated by default.
13038
13039 Usage: $0 [OPTION]... [TAG]...
13040
13041 -h, --help print this help, then exit
13042 -V, --version print version number and configuration settings, then exit
13043 -q, --quiet, --silent
13044 do not print progress messages
13045 -d, --debug don't remove temporary files
13046 --recheck update $as_me by reconfiguring in the same conditions
13047 --file=FILE[:TEMPLATE]
13048 instantiate the configuration file FILE
13049 --header=FILE[:TEMPLATE]
13050 instantiate the configuration header FILE
13051
13052 Configuration files:
13053 $config_files
13054
13055 Configuration headers:
13056 $config_headers
13057
13058 Configuration commands:
13059 $config_commands
13060
13061 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle>."
13062
13063 _ACEOF
13064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13065 ac_cs_version="\\
13066 telepathy-idle config.status 0.1.5
13067 configured by $0, generated by GNU Autoconf 2.64,
13068 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13069
13070 Copyright (C) 2009 Free Software Foundation, Inc.
13071 This config.status script is free software; the Free Software Foundation
13072 gives unlimited permission to copy, distribute and modify it."
13073
13074 ac_pwd='$ac_pwd'
13075 srcdir='$srcdir'
13076 INSTALL='$INSTALL'
13077 MKDIR_P='$MKDIR_P'
13078 AWK='$AWK'
13079 test -n "\$AWK" || AWK=awk
13080 _ACEOF
13081
13082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13083 # The default lists apply if the user does not specify any file.
13084 ac_need_defaults=:
13085 while test $# != 0
13086 do
13087 case $1 in
13088 --*=*)
13089 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13090 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13091 ac_shift=:
13092 ;;
13093 *)
13094 ac_option=$1
13095 ac_optarg=$2
13096 ac_shift=shift
13097 ;;
13098 esac
13099
13100 case $ac_option in
13101 # Handling of the options.
13102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13103 ac_cs_recheck=: ;;
13104 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13105 $as_echo "$ac_cs_version"; exit ;;
13106 --debug | --debu | --deb | --de | --d | -d )
13107 debug=: ;;
13108 --file | --fil | --fi | --f )
13109 $ac_shift
13110 case $ac_optarg in
13111 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13112 esac
13113 as_fn_append CONFIG_FILES " '$ac_optarg'"
13114 ac_need_defaults=false;;
13115 --header | --heade | --head | --hea )
13116 $ac_shift
13117 case $ac_optarg in
13118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13119 esac
13120 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13121 ac_need_defaults=false;;
13122 --he | --h)
13123 # Conflict between --help and --header
13124 as_fn_error "ambiguous option: \`$1'
13125 Try \`$0 --help' for more information.";;
13126 --help | --hel | -h )
13127 $as_echo "$ac_cs_usage"; exit ;;
13128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13129 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13130 ac_cs_silent=: ;;
13131
13132 # This is an error.
13133 -*) as_fn_error "unrecognized option: \`$1'
13134 Try \`$0 --help' for more information." ;;
13135
13136 *) as_fn_append ac_config_targets " $1"
13137 ac_need_defaults=false ;;
13138
13139 esac
13140 shift
13141 done
13142
13143 ac_configure_extra_args=
13144
13145 if $ac_cs_silent; then
13146 exec 6>/dev/null
13147 ac_configure_extra_args="$ac_configure_extra_args --silent"
13148 fi
13149
13150 _ACEOF
13151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13152 if \$ac_cs_recheck; then
13153 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13154 shift
13155 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13156 CONFIG_SHELL='$SHELL'
13157 export CONFIG_SHELL
13158 exec "\$@"
13159 fi
13160
13161 _ACEOF
13162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13163 exec 5>>config.log
13164 {
13165 echo
13166 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13167 ## Running $as_me. ##
13168 _ASBOX
13169 $as_echo "$ac_log"
13170 } >&5
13171
13172 _ACEOF
13173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13174 #
13175 # INIT-COMMANDS
13176 #
13177 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13178
13179
13180 # The HP-UX ksh and POSIX shell print the target directory to stdout
13181 # if CDPATH is set.
13182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13183
13184 sed_quote_subst='$sed_quote_subst'
13185 double_quote_subst='$double_quote_subst'
13186 delay_variable_subst='$delay_variable_subst'
13187 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13188 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13189 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13190 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13191 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13192 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13193 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13194 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13195 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13196 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13197 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13198 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13199 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13200 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13201 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13202 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13203 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13204 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13205 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13206 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13207 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13208 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13209 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13210 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13211 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13212 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13213 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13214 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13215 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13216 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13217 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13218 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13219 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13220 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13221 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13222 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13223 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13224 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13225 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13226 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13227 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13228 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13229 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13230 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13231 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"`'
13232 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"`'
13233 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13234 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13235 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13236 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13237 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13238 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13239 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13240 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13241 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13242 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13243 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13244 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13245 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13246 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13247 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13248 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13249 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13250 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13251 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13252 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13253 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13254 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13255 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13256 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13257 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13258 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13259 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13260 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13261 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13262 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13263 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13264 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13265 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13266 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13267 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13268 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13269 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13270 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13271 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13272 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13273 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13274 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13275 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13276 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13277 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13278 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13279 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13280 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13281 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13282 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13283 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13284 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13285 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13286 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13287 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13288 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13289 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13290 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13291 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13292 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13293 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13294 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13295 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13296 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13297 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13298 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13299 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13300 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13301 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13302 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13303 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13304 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13305
13306 LTCC='$LTCC'
13307 LTCFLAGS='$LTCFLAGS'
13308 compiler='$compiler_DEFAULT'
13309
13310 # Quote evaled strings.
13311 for var in SED \
13312 GREP \
13313 EGREP \
13314 FGREP \
13315 LD \
13316 NM \
13317 LN_S \
13318 lt_SP2NL \
13319 lt_NL2SP \
13320 reload_flag \
13321 OBJDUMP \
13322 deplibs_check_method \
13323 file_magic_cmd \
13324 AR \
13325 AR_FLAGS \
13326 STRIP \
13327 RANLIB \
13328 CC \
13329 CFLAGS \
13330 compiler \
13331 lt_cv_sys_global_symbol_pipe \
13332 lt_cv_sys_global_symbol_to_cdecl \
13333 lt_cv_sys_global_symbol_to_c_name_address \
13334 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13335 SHELL \
13336 ECHO \
13337 lt_prog_compiler_no_builtin_flag \
13338 lt_prog_compiler_wl \
13339 lt_prog_compiler_pic \
13340 lt_prog_compiler_static \
13341 lt_cv_prog_compiler_c_o \
13342 need_locks \
13343 DSYMUTIL \
13344 NMEDIT \
13345 LIPO \
13346 OTOOL \
13347 OTOOL64 \
13348 shrext_cmds \
13349 export_dynamic_flag_spec \
13350 whole_archive_flag_spec \
13351 compiler_needs_object \
13352 with_gnu_ld \
13353 allow_undefined_flag \
13354 no_undefined_flag \
13355 hardcode_libdir_flag_spec \
13356 hardcode_libdir_flag_spec_ld \
13357 hardcode_libdir_separator \
13358 fix_srcfile_path \
13359 exclude_expsyms \
13360 include_expsyms \
13361 file_list_spec \
13362 variables_saved_for_relink \
13363 libname_spec \
13364 library_names_spec \
13365 soname_spec \
13366 finish_eval \
13367 old_striplib \
13368 striplib; do
13369 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13370 *[\\\\\\\`\\"\\\$]*)
13371 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13372 ;;
13373 *)
13374 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13375 ;;
13376 esac
13377 done
13378
13379 # Double-quote double-evaled strings.
13380 for var in reload_cmds \
13381 old_postinstall_cmds \
13382 old_postuninstall_cmds \
13383 old_archive_cmds \
13384 extract_expsyms_cmds \
13385 old_archive_from_new_cmds \
13386 old_archive_from_expsyms_cmds \
13387 archive_cmds \
13388 archive_expsym_cmds \
13389 module_cmds \
13390 module_expsym_cmds \
13391 export_symbols_cmds \
13392 prelink_cmds \
13393 postinstall_cmds \
13394 postuninstall_cmds \
13395 finish_cmds \
13396 sys_lib_search_path_spec \
13397 sys_lib_dlsearch_path_spec; do
13398 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13399 *[\\\\\\\`\\"\\\$]*)
13400 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13401 ;;
13402 *)
13403 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13404 ;;
13405 esac
13406 done
13407
13408 # Fix-up fallback echo if it was mangled by the above quoting rules.
13409 case \$lt_ECHO in
13410 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13411 ;;
13412 esac
13413
13414 ac_aux_dir='$ac_aux_dir'
13415 xsi_shell='$xsi_shell'
13416 lt_shell_append='$lt_shell_append'
13417
13418 # See if we are running on zsh, and set the options which allow our
13419 # commands through without removal of \ escapes INIT.
13420 if test -n "\${ZSH_VERSION+set}" ; then
13421 setopt NO_GLOB_SUBST
13422 fi
13423
13424
13425 PACKAGE='$PACKAGE'
13426 VERSION='$VERSION'
13427 TIMESTAMP='$TIMESTAMP'
13428 RM='$RM'
13429 ofile='$ofile'
13430
13431
13432
13433
13434 _ACEOF
13435
13436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13437
13438 # Handling of arguments.
13439 for ac_config_target in $ac_config_targets
13440 do
13441 case $ac_config_target in
13442 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13443 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13444 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13445 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13446 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
13447 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
13448 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
13449 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13450 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13451 "tests/twisted/Makefile") CONFIG_FILES="$CONFIG_FILES tests/twisted/Makefile" ;;
13452 "tests/twisted/tools/Makefile") CONFIG_FILES="$CONFIG_FILES tests/twisted/tools/Makefile" ;;
13453 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13454
13455 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13456 esac
13457 done
13458
13459
13460 # If the user did not use the arguments to specify the items to instantiate,
13461 # then the envvar interface is used. Set only those that are not.
13462 # We use the long form for the default assignment because of an extremely
13463 # bizarre bug on SunOS 4.1.3.
13464 if $ac_need_defaults; then
13465 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13466 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13467 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13468 fi
13469
13470 # Have a temporary directory for convenience. Make it in the build tree
13471 # simply because there is no reason against having it here, and in addition,
13472 # creating and moving files from /tmp can sometimes cause problems.
13473 # Hook for its removal unless debugging.
13474 # Note that there is a small window in which the directory will not be cleaned:
13475 # after its creation but before its name has been assigned to `$tmp'.
13476 $debug ||
13477 {
13478 tmp=
13479 trap 'exit_status=$?
13480 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13481 ' 0
13482 trap 'as_fn_exit 1' 1 2 13 15
13483 }
13484 # Create a (secure) tmp directory for tmp files.
13485
13486 {
13487 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13488 test -n "$tmp" && test -d "$tmp"
13489 } ||
13490 {
13491 tmp=./conf$$-$RANDOM
13492 (umask 077 && mkdir "$tmp")
13493 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13494
13495 # Set up the scripts for CONFIG_FILES section.
13496 # No need to generate them if there are no CONFIG_FILES.
13497 # This happens for instance with `./config.status config.h'.
13498 if test -n "$CONFIG_FILES"; then
13499
13500
13501 ac_cr=`echo X | tr X '\015'`
13502 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13503 # But we know of no other shell where ac_cr would be empty at this
13504 # point, so we can use a bashism as a fallback.
13505 if test "x$ac_cr" = x; then
13506 eval ac_cr=\$\'\\r\'
13507 fi
13508 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13509 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13510 ac_cs_awk_cr='\r'
13511 else
13512 ac_cs_awk_cr=$ac_cr
13513 fi
13514
13515 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13516 _ACEOF
13517
13518
13519 {
13520 echo "cat >conf$$subs.awk <<_ACEOF" &&
13521 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13522 echo "_ACEOF"
13523 } >conf$$subs.sh ||
13524 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13525 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13526 ac_delim='%!_!# '
13527 for ac_last_try in false false false false false :; do
13528 . ./conf$$subs.sh ||
13529 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13530
13531 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13532 if test $ac_delim_n = $ac_delim_num; then
13533 break
13534 elif $ac_last_try; then
13535 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13536 else
13537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13538 fi
13539 done
13540 rm -f conf$$subs.sh
13541
13542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13543 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13544 _ACEOF
13545 sed -n '
13546 h
13547 s/^/S["/; s/!.*/"]=/
13548 p
13549 g
13550 s/^[^!]*!//
13551 :repl
13552 t repl
13553 s/'"$ac_delim"'$//
13554 t delim
13555 :nl
13556 h
13557 s/\(.\{148\}\).*/\1/
13558 t more1
13559 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13560 p
13561 n
13562 b repl
13563 :more1
13564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13565 p
13566 g
13567 s/.\{148\}//
13568 t nl
13569 :delim
13570 h
13571 s/\(.\{148\}\).*/\1/
13572 t more2
13573 s/["\\]/\\&/g; s/^/"/; s/$/"/
13574 p
13575 b
13576 :more2
13577 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13578 p
13579 g
13580 s/.\{148\}//
13581 t delim
13582 ' <conf$$subs.awk | sed '
13583 /^[^""]/{
13584 N
13585 s/\n//
13586 }
13587 ' >>$CONFIG_STATUS || ac_write_fail=1
13588 rm -f conf$$subs.awk
13589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13590 _ACAWK
13591 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13592 for (key in S) S_is_set[key] = 1
13593 FS = ""
13594
13595 }
13596 {
13597 line = $ 0
13598 nfields = split(line, field, "@")
13599 substed = 0
13600 len = length(field[1])
13601 for (i = 2; i < nfields; i++) {
13602 key = field[i]
13603 keylen = length(key)
13604 if (S_is_set[key]) {
13605 value = S[key]
13606 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13607 len += length(value) + length(field[++i])
13608 substed = 1
13609 } else
13610 len += 1 + keylen
13611 }
13612
13613 print line
13614 }
13615
13616 _ACAWK
13617 _ACEOF
13618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13619 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13620 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13621 else
13622 cat
13623 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13624 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13625 _ACEOF
13626
13627 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13628 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13629 # trailing colons and then remove the whole line if VPATH becomes empty
13630 # (actually we leave an empty line to preserve line numbers).
13631 if test "x$srcdir" = x.; then
13632 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13633 s/:*\$(srcdir):*/:/
13634 s/:*\${srcdir}:*/:/
13635 s/:*@srcdir@:*/:/
13636 s/^\([^=]*=[ ]*\):*/\1/
13637 s/:*$//
13638 s/^[^=]*=[ ]*$//
13639 }'
13640 fi
13641
13642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13643 fi # test -n "$CONFIG_FILES"
13644
13645 # Set up the scripts for CONFIG_HEADERS section.
13646 # No need to generate them if there are no CONFIG_HEADERS.
13647 # This happens for instance with `./config.status Makefile'.
13648 if test -n "$CONFIG_HEADERS"; then
13649 cat >"$tmp/defines.awk" <<\_ACAWK ||
13650 BEGIN {
13651 _ACEOF
13652
13653 # Transform confdefs.h into an awk script `defines.awk', embedded as
13654 # here-document in config.status, that substitutes the proper values into
13655 # config.h.in to produce config.h.
13656
13657 # Create a delimiter string that does not exist in confdefs.h, to ease
13658 # handling of long lines.
13659 ac_delim='%!_!# '
13660 for ac_last_try in false false :; do
13661 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13662 if test -z "$ac_t"; then
13663 break
13664 elif $ac_last_try; then
13665 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13666 else
13667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13668 fi
13669 done
13670
13671 # For the awk script, D is an array of macro values keyed by name,
13672 # likewise P contains macro parameters if any. Preserve backslash
13673 # newline sequences.
13674
13675 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13676 sed -n '
13677 s/.\{148\}/&'"$ac_delim"'/g
13678 t rset
13679 :rset
13680 s/^[ ]*#[ ]*define[ ][ ]*/ /
13681 t def
13682 d
13683 :def
13684 s/\\$//
13685 t bsnl
13686 s/["\\]/\\&/g
13687 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13688 D["\1"]=" \3"/p
13689 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13690 d
13691 :bsnl
13692 s/["\\]/\\&/g
13693 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13694 D["\1"]=" \3\\\\\\n"\\/p
13695 t cont
13696 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13697 t cont
13698 d
13699 :cont
13700 n
13701 s/.\{148\}/&'"$ac_delim"'/g
13702 t clear
13703 :clear
13704 s/\\$//
13705 t bsnlc
13706 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13707 d
13708 :bsnlc
13709 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13710 b cont
13711 ' <confdefs.h | sed '
13712 s/'"$ac_delim"'/"\\\
13713 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13714
13715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13716 for (key in D) D_is_set[key] = 1
13717 FS = ""
13718 }
13719 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13720 line = \$ 0
13721 split(line, arg, " ")
13722 if (arg[1] == "#") {
13723 defundef = arg[2]
13724 mac1 = arg[3]
13725 } else {
13726 defundef = substr(arg[1], 2)
13727 mac1 = arg[2]
13728 }
13729 split(mac1, mac2, "(") #)
13730 macro = mac2[1]
13731 prefix = substr(line, 1, index(line, defundef) - 1)
13732 if (D_is_set[macro]) {
13733 # Preserve the white space surrounding the "#".
13734 print prefix "define", macro P[macro] D[macro]
13735 next
13736 } else {
13737 # Replace #undef with comments. This is necessary, for example,
13738 # in the case of _POSIX_SOURCE, which is predefined and required
13739 # on some systems where configure will not decide to define it.
13740 if (defundef == "undef") {
13741 print "/*", prefix defundef, macro, "*/"
13742 next
13743 }
13744 }
13745 }
13746 { print }
13747 _ACAWK
13748 _ACEOF
13749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13750 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13751 fi # test -n "$CONFIG_HEADERS"
13752
13753
13754 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13755 shift
13756 for ac_tag
13757 do
13758 case $ac_tag in
13759 :[FHLC]) ac_mode=$ac_tag; continue;;
13760 esac
13761 case $ac_mode$ac_tag in
13762 :[FHL]*:*);;
13763 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13764 :[FH]-) ac_tag=-:-;;
13765 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13766 esac
13767 ac_save_IFS=$IFS
13768 IFS=:
13769 set x $ac_tag
13770 IFS=$ac_save_IFS
13771 shift
13772 ac_file=$1
13773 shift
13774
13775 case $ac_mode in
13776 :L) ac_source=$1;;
13777 :[FH])
13778 ac_file_inputs=
13779 for ac_f
13780 do
13781 case $ac_f in
13782 -) ac_f="$tmp/stdin";;
13783 *) # Look for the file first in the build tree, then in the source tree
13784 # (if the path is not absolute). The absolute path cannot be DOS-style,
13785 # because $ac_f cannot contain `:'.
13786 test -f "$ac_f" ||
13787 case $ac_f in
13788 [\\/$]*) false;;
13789 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13790 esac ||
13791 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13792 esac
13793 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13794 as_fn_append ac_file_inputs " '$ac_f'"
13795 done
13796
13797 # Let's still pretend it is `configure' which instantiates (i.e., don't
13798 # use $as_me), people would be surprised to read:
13799 # /* config.h. Generated by config.status. */
13800 configure_input='Generated from '`
13801 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13802 `' by configure.'
13803 if test x"$ac_file" != x-; then
13804 configure_input="$ac_file. $configure_input"
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13806 $as_echo "$as_me: creating $ac_file" >&6;}
13807 fi
13808 # Neutralize special characters interpreted by sed in replacement strings.
13809 case $configure_input in #(
13810 *\&* | *\|* | *\\* )
13811 ac_sed_conf_input=`$as_echo "$configure_input" |
13812 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13813 *) ac_sed_conf_input=$configure_input;;
13814 esac
13815
13816 case $ac_tag in
13817 *:-:* | *:-) cat >"$tmp/stdin" \
13818 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13819 esac
13820 ;;
13821 esac
13822
13823 ac_dir=`$as_dirname -- "$ac_file" ||
13824 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13825 X"$ac_file" : 'X\(//\)[^/]' \| \
13826 X"$ac_file" : 'X\(//\)$' \| \
13827 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13828 $as_echo X"$ac_file" |
13829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13830 s//\1/
13831 q
13832 }
13833 /^X\(\/\/\)[^/].*/{
13834 s//\1/
13835 q
13836 }
13837 /^X\(\/\/\)$/{
13838 s//\1/
13839 q
13840 }
13841 /^X\(\/\).*/{
13842 s//\1/
13843 q
13844 }
13845 s/.*/./; q'`
13846 as_dir="$ac_dir"; as_fn_mkdir_p
2339613847 ac_builddir=.
2339713848
2339813849 case "$ac_dir" in
2339913850 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2340013851 *)
23401 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13852 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2340213853 # A ".." for each directory in $ac_dir_suffix.
23403 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13854 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2340413855 case $ac_top_builddir_sub in
2340513856 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2340613857 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2344513896 esac
2344613897 _ACEOF
2344713898
23448 cat >>$CONFIG_STATUS <<\_ACEOF
13899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2344913900 # If the template does not know about datarootdir, expand it.
2345013901 # FIXME: This hack should be removed a few years after 2.60.
2345113902 ac_datarootdir_hack=; ac_datarootdir_seen=
23452
23453 case `sed -n '/datarootdir/ {
13903 ac_sed_dataroot='
13904 /datarootdir/ {
2345413905 p
2345513906 q
2345613907 }
2345813909 /@docdir@/p
2345913910 /@infodir@/p
2346013911 /@localedir@/p
23461 /@mandir@/p
23462 ' $ac_file_inputs` in
13912 /@mandir@/p'
13913 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
2346313914 *datarootdir*) ac_datarootdir_seen=yes;;
2346413915 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23465 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23466 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13917 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
2346713918 _ACEOF
23468 cat >>$CONFIG_STATUS <<_ACEOF
13919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2346913920 ac_datarootdir_hack='
2347013921 s&@datadir@&$datadir&g
2347113922 s&@docdir@&$docdir&g
2347213923 s&@infodir@&$infodir&g
2347313924 s&@localedir@&$localedir&g
2347413925 s&@mandir@&$mandir&g
23475 s&\\\${datarootdir}&$datarootdir&g' ;;
13926 s&\\\${datarootdir}&$datarootdir&g' ;;
2347613927 esac
2347713928 _ACEOF
2347813929
2347913930 # Neutralize VPATH when `$srcdir' = `.'.
2348013931 # Shell code in configure.ac might set extrasub.
2348113932 # FIXME: do we really want to maintain this feature?
23482 cat >>$CONFIG_STATUS <<_ACEOF
23483 sed "$ac_vpsub
13933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13934 ac_sed_extra="$ac_vpsub
2348413935 $extrasub
2348513936 _ACEOF
23486 cat >>$CONFIG_STATUS <<\_ACEOF
13937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2348713938 :t
2348813939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23489 s&@configure_input@&$configure_input&;t t
13940 s|@configure_input@|$ac_sed_conf_input|;t t
2349013941 s&@top_builddir@&$ac_top_builddir_sub&;t t
13942 s&@top_build_prefix@&$ac_top_build_prefix&;t t
2349113943 s&@srcdir@&$ac_srcdir&;t t
2349213944 s&@abs_srcdir@&$ac_abs_srcdir&;t t
2349313945 s&@top_srcdir@&$ac_top_srcdir&;t t
2349813950 s&@INSTALL@&$ac_INSTALL&;t t
2349913951 s&@MKDIR_P@&$ac_MKDIR_P&;t t
2350013952 $ac_datarootdir_hack
23501 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13953 "
13954 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13955 || as_fn_error "could not create $ac_file" "$LINENO" 5
2350213956
2350313957 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2350413958 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
2350513959 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23506 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2350713961 which seems to be undefined. Please make sure it is defined." >&5
23508 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13962 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2350913963 which seems to be undefined. Please make sure it is defined." >&2;}
2351013964
2351113965 rm -f "$tmp/stdin"
2351213966 case $ac_file in
23513 -) cat "$tmp/out"; rm -f "$tmp/out";;
23514 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23515 esac
13967 -) cat "$tmp/out" && rm -f "$tmp/out";;
13968 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13969 esac \
13970 || as_fn_error "could not create $ac_file" "$LINENO" 5
2351613971 ;;
2351713972 :H)
2351813973 #
2351913974 # CONFIG_HEADER
2352013975 #
23521 _ACEOF
23522
23523 # Transform confdefs.h into a sed script `conftest.defines', that
23524 # substitutes the proper values into config.h.in to produce config.h.
23525 rm -f conftest.defines conftest.tail
23526 # First, append a space to every undef/define line, to ease matching.
23527 echo 's/$/ /' >conftest.defines
23528 # Then, protect against being on the right side of a sed subst, or in
23529 # an unquoted here document, in config.status. If some macros were
23530 # called several times there might be several #defines for the same
23531 # symbol, which is useless. But do not sort them, since the last
23532 # AC_DEFINE must be honored.
23533 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23534 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23535 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23536 # PARAMS is the parameter list in the macro definition--in most cases, it's
23537 # just an empty string.
23538 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23539 ac_dB='\\)[ (].*,\\1define\\2'
23540 ac_dC=' '
23541 ac_dD=' ,'
23542
23543 uniq confdefs.h |
23544 sed -n '
23545 t rset
23546 :rset
23547 s/^[ ]*#[ ]*define[ ][ ]*//
23548 t ok
23549 d
23550 :ok
23551 s/[\\&,]/\\&/g
23552 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23553 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23554 ' >>conftest.defines
23555
23556 # Remove the space that was appended to ease matching.
23557 # Then replace #undef with comments. This is necessary, for
23558 # example, in the case of _POSIX_SOURCE, which is predefined and required
23559 # on some systems where configure will not decide to define it.
23560 # (The regexp can be short, since the line contains either #define or #undef.)
23561 echo 's/ $//
23562 s,^[ #]*u.*,/* & */,' >>conftest.defines
23563
23564 # Break up conftest.defines:
23565 ac_max_sed_lines=50
23566
23567 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23568 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23569 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23570 # et cetera.
23571 ac_in='$ac_file_inputs'
23572 ac_out='"$tmp/out1"'
23573 ac_nxt='"$tmp/out2"'
23574
23575 while :
23576 do
23577 # Write a here document:
23578 cat >>$CONFIG_STATUS <<_ACEOF
23579 # First, check the format of the line:
23580 cat >"\$tmp/defines.sed" <<\\CEOF
23581 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23582 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23583 b
23584 :def
23585 _ACEOF
23586 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23587 echo 'CEOF
23588 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23589 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23590 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23591 grep . conftest.tail >/dev/null || break
23592 rm -f conftest.defines
23593 mv conftest.tail conftest.defines
23594 done
23595 rm -f conftest.defines conftest.tail
23596
23597 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23598 cat >>$CONFIG_STATUS <<\_ACEOF
2359913976 if test x"$ac_file" != x-; then
23600 echo "/* $configure_input */" >"$tmp/config.h"
23601 cat "$ac_result" >>"$tmp/config.h"
23602 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23603 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23604 echo "$as_me: $ac_file is unchanged" >&6;}
13977 {
13978 $as_echo "/* $configure_input */" \
13979 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13980 } >"$tmp/config.h" \
13981 || as_fn_error "could not create $ac_file" "$LINENO" 5
13982 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13984 $as_echo "$as_me: $ac_file is unchanged" >&6;}
2360513985 else
23606 rm -f $ac_file
23607 mv "$tmp/config.h" $ac_file
13986 rm -f "$ac_file"
13987 mv "$tmp/config.h" "$ac_file" \
13988 || as_fn_error "could not create $ac_file" "$LINENO" 5
2360813989 fi
2360913990 else
23610 echo "/* $configure_input */"
23611 cat "$ac_result"
13991 $as_echo "/* $configure_input */" \
13992 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13993 || as_fn_error "could not create -" "$LINENO" 5
2361213994 fi
23613 rm -f "$tmp/out12"
23614 # Compute $ac_file's index in $config_headers.
23615 _am_arg=$ac_file
13995 # Compute "$ac_file"'s index in $config_headers.
13996 _am_arg="$ac_file"
2361613997 _am_stamp_count=1
2361713998 for _am_header in $config_headers :; do
2361813999 case $_am_header in
2362714008 X"$_am_arg" : 'X\(//\)[^/]' \| \
2362814009 X"$_am_arg" : 'X\(//\)$' \| \
2362914010 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23630 echo X"$_am_arg" |
14011 $as_echo X"$_am_arg" |
2363114012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2363214013 s//\1/
2363314014 q
2364714028 s/.*/./; q'`/stamp-h$_am_stamp_count
2364814029 ;;
2364914030
23650 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23651 echo "$as_me: executing $ac_file commands" >&6;}
14031 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14032 $as_echo "$as_me: executing $ac_file commands" >&6;}
2365214033 ;;
2365314034 esac
2365414035
2365514036
2365614037 case $ac_file$ac_mode in
23657 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23658 # Strip MF so we end up with the name of the file.
23659 mf=`echo "$mf" | sed -e 's/:.*$//'`
23660 # Check whether this is an Automake generated Makefile or not.
23661 # We used to match only the files named `Makefile.in', but
23662 # some people rename them; so instead we look at the file content.
23663 # Grep'ing the first line is not enough: some people post-process
23664 # each Makefile.in and add a new line on top of each file to say so.
23665 # Grep'ing the whole file is not good either: AIX grep has a line
23666 # limit of 2048, but all sed's we know have understand at least 4000.
23667 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23668 dirpart=`$as_dirname -- "$mf" ||
14038 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14039 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14040 # are listed without --file. Let's play safe and only enable the eval
14041 # if we detect the quoting.
14042 case $CONFIG_FILES in
14043 *\'*) eval set x "$CONFIG_FILES" ;;
14044 *) set x $CONFIG_FILES ;;
14045 esac
14046 shift
14047 for mf
14048 do
14049 # Strip MF so we end up with the name of the file.
14050 mf=`echo "$mf" | sed -e 's/:.*$//'`
14051 # Check whether this is an Automake generated Makefile or not.
14052 # We used to match only the files named `Makefile.in', but
14053 # some people rename them; so instead we look at the file content.
14054 # Grep'ing the first line is not enough: some people post-process
14055 # each Makefile.in and add a new line on top of each file to say so.
14056 # Grep'ing the whole file is not good either: AIX grep has a line
14057 # limit of 2048, but all sed's we know have understand at least 4000.
14058 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14059 dirpart=`$as_dirname -- "$mf" ||
2366914060 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2367014061 X"$mf" : 'X\(//\)[^/]' \| \
2367114062 X"$mf" : 'X\(//\)$' \| \
2367214063 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23673 echo X"$mf" |
14064 $as_echo X"$mf" |
2367414065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2367514066 s//\1/
2367614067 q
2368814079 q
2368914080 }
2369014081 s/.*/./; q'`
23691 else
23692 continue
23693 fi
23694 # Extract the definition of DEPDIR, am__include, and am__quote
23695 # from the Makefile without running `make'.
23696 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23697 test -z "$DEPDIR" && continue
23698 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23699 test -z "am__include" && continue
23700 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23701 # When using ansi2knr, U may be empty or an underscore; expand it
23702 U=`sed -n 's/^U = //p' < "$mf"`
23703 # Find all dependency output files, they are included files with
23704 # $(DEPDIR) in their names. We invoke sed twice because it is the
23705 # simplest approach to changing $(DEPDIR) to its actual value in the
23706 # expansion.
23707 for file in `sed -n "
23708 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23709 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23710 # Make sure the directory exists.
23711 test -f "$dirpart/$file" && continue
23712 fdir=`$as_dirname -- "$file" ||
14082 else
14083 continue
14084 fi
14085 # Extract the definition of DEPDIR, am__include, and am__quote
14086 # from the Makefile without running `make'.
14087 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14088 test -z "$DEPDIR" && continue
14089 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14090 test -z "am__include" && continue
14091 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14092 # When using ansi2knr, U may be empty or an underscore; expand it
14093 U=`sed -n 's/^U = //p' < "$mf"`
14094 # Find all dependency output files, they are included files with
14095 # $(DEPDIR) in their names. We invoke sed twice because it is the
14096 # simplest approach to changing $(DEPDIR) to its actual value in the
14097 # expansion.
14098 for file in `sed -n "
14099 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14100 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14101 # Make sure the directory exists.
14102 test -f "$dirpart/$file" && continue
14103 fdir=`$as_dirname -- "$file" ||
2371314104 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2371414105 X"$file" : 'X\(//\)[^/]' \| \
2371514106 X"$file" : 'X\(//\)$' \| \
2371614107 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23717 echo X"$file" |
14108 $as_echo X"$file" |
2371814109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2371914110 s//\1/
2372014111 q
2373214123 q
2373314124 }
2373414125 s/.*/./; q'`
23735 { as_dir=$dirpart/$fdir
23736 case $as_dir in #(
23737 -*) as_dir=./$as_dir;;
14126 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14127 # echo "creating $dirpart/$file"
14128 echo '# dummy' > "$dirpart/$file"
14129 done
14130 done
14131 }
14132 ;;
14133 "libtool":C)
14134
14135 # See if we are running on zsh, and set the options which allow our
14136 # commands through without removal of \ escapes.
14137 if test -n "${ZSH_VERSION+set}" ; then
14138 setopt NO_GLOB_SUBST
14139 fi
14140
14141 cfgfile="${ofile}T"
14142 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14143 $RM "$cfgfile"
14144
14145 cat <<_LT_EOF >> "$cfgfile"
14146 #! $SHELL
14147
14148 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14149 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14150 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14151 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14152 #
14153 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14154 # 2006, 2007, 2008 Free Software Foundation, Inc.
14155 # Written by Gordon Matzigkeit, 1996
14156 #
14157 # This file is part of GNU Libtool.
14158 #
14159 # GNU Libtool is free software; you can redistribute it and/or
14160 # modify it under the terms of the GNU General Public License as
14161 # published by the Free Software Foundation; either version 2 of
14162 # the License, or (at your option) any later version.
14163 #
14164 # As a special exception to the GNU General Public License,
14165 # if you distribute this file as part of a program or library that
14166 # is built using GNU Libtool, you may include this file under the
14167 # same distribution terms that you use for the rest of that program.
14168 #
14169 # GNU Libtool is distributed in the hope that it will be useful,
14170 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14171 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14172 # GNU General Public License for more details.
14173 #
14174 # You should have received a copy of the GNU General Public License
14175 # along with GNU Libtool; see the file COPYING. If not, a copy
14176 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14177 # obtained by writing to the Free Software Foundation, Inc.,
14178 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14179
14180
14181 # The names of the tagged configurations supported by this script.
14182 available_tags=""
14183
14184 # ### BEGIN LIBTOOL CONFIG
14185
14186 # Which release of libtool.m4 was used?
14187 macro_version=$macro_version
14188 macro_revision=$macro_revision
14189
14190 # Whether or not to build shared libraries.
14191 build_libtool_libs=$enable_shared
14192
14193 # Whether or not to build static libraries.
14194 build_old_libs=$enable_static
14195
14196 # What type of objects to build.
14197 pic_mode=$pic_mode
14198
14199 # Whether or not to optimize for fast installation.
14200 fast_install=$enable_fast_install
14201
14202 # The host system.
14203 host_alias=$host_alias
14204 host=$host
14205 host_os=$host_os
14206
14207 # The build system.
14208 build_alias=$build_alias
14209 build=$build
14210 build_os=$build_os
14211
14212 # A sed program that does not truncate output.
14213 SED=$lt_SED
14214
14215 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14216 Xsed="\$SED -e 1s/^X//"
14217
14218 # A grep program that handles long lines.
14219 GREP=$lt_GREP
14220
14221 # An ERE matcher.
14222 EGREP=$lt_EGREP
14223
14224 # A literal string matcher.
14225 FGREP=$lt_FGREP
14226
14227 # A BSD- or MS-compatible name lister.
14228 NM=$lt_NM
14229
14230 # Whether we need soft or hard links.
14231 LN_S=$lt_LN_S
14232
14233 # What is the maximum length of a command?
14234 max_cmd_len=$max_cmd_len
14235
14236 # Object file suffix (normally "o").
14237 objext=$ac_objext
14238
14239 # Executable file suffix (normally "").
14240 exeext=$exeext
14241
14242 # whether the shell understands "unset".
14243 lt_unset=$lt_unset
14244
14245 # turn spaces into newlines.
14246 SP2NL=$lt_lt_SP2NL
14247
14248 # turn newlines into spaces.
14249 NL2SP=$lt_lt_NL2SP
14250
14251 # How to create reloadable object files.
14252 reload_flag=$lt_reload_flag
14253 reload_cmds=$lt_reload_cmds
14254
14255 # An object symbol dumper.
14256 OBJDUMP=$lt_OBJDUMP
14257
14258 # Method to check whether dependent libraries are shared objects.
14259 deplibs_check_method=$lt_deplibs_check_method
14260
14261 # Command to use when deplibs_check_method == "file_magic".
14262 file_magic_cmd=$lt_file_magic_cmd
14263
14264 # The archiver.
14265 AR=$lt_AR
14266 AR_FLAGS=$lt_AR_FLAGS
14267
14268 # A symbol stripping program.
14269 STRIP=$lt_STRIP
14270
14271 # Commands used to install an old-style archive.
14272 RANLIB=$lt_RANLIB
14273 old_postinstall_cmds=$lt_old_postinstall_cmds
14274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14275
14276 # A C compiler.
14277 LTCC=$lt_CC
14278
14279 # LTCC compiler flags.
14280 LTCFLAGS=$lt_CFLAGS
14281
14282 # Take the output of nm and produce a listing of raw symbols and C names.
14283 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14284
14285 # Transform the output of nm in a proper C declaration.
14286 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14287
14288 # Transform the output of nm in a C name address pair.
14289 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14290
14291 # Transform the output of nm in a C name address pair when lib prefix is needed.
14292 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14293
14294 # The name of the directory that contains temporary libtool files.
14295 objdir=$objdir
14296
14297 # Shell to use when invoking shell scripts.
14298 SHELL=$lt_SHELL
14299
14300 # An echo program that does not interpret backslashes.
14301 ECHO=$lt_ECHO
14302
14303 # Used to examine libraries when file_magic_cmd begins with "file".
14304 MAGIC_CMD=$MAGIC_CMD
14305
14306 # Must we lock files when doing compilation?
14307 need_locks=$lt_need_locks
14308
14309 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14310 DSYMUTIL=$lt_DSYMUTIL
14311
14312 # Tool to change global to local symbols on Mac OS X.
14313 NMEDIT=$lt_NMEDIT
14314
14315 # Tool to manipulate fat objects and archives on Mac OS X.
14316 LIPO=$lt_LIPO
14317
14318 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14319 OTOOL=$lt_OTOOL
14320
14321 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14322 OTOOL64=$lt_OTOOL64
14323
14324 # Old archive suffix (normally "a").
14325 libext=$libext
14326
14327 # Shared library suffix (normally ".so").
14328 shrext_cmds=$lt_shrext_cmds
14329
14330 # The commands to extract the exported symbol list from a shared archive.
14331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14332
14333 # Variables whose values should be saved in libtool wrapper scripts and
14334 # restored at link time.
14335 variables_saved_for_relink=$lt_variables_saved_for_relink
14336
14337 # Do we need the "lib" prefix for modules?
14338 need_lib_prefix=$need_lib_prefix
14339
14340 # Do we need a version for libraries?
14341 need_version=$need_version
14342
14343 # Library versioning type.
14344 version_type=$version_type
14345
14346 # Shared library runtime path variable.
14347 runpath_var=$runpath_var
14348
14349 # Shared library path variable.
14350 shlibpath_var=$shlibpath_var
14351
14352 # Is shlibpath searched before the hard-coded library search path?
14353 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14354
14355 # Format of library name prefix.
14356 libname_spec=$lt_libname_spec
14357
14358 # List of archive names. First name is the real one, the rest are links.
14359 # The last name is the one that the linker finds with -lNAME
14360 library_names_spec=$lt_library_names_spec
14361
14362 # The coded name of the library, if different from the real name.
14363 soname_spec=$lt_soname_spec
14364
14365 # Command to use after installation of a shared archive.
14366 postinstall_cmds=$lt_postinstall_cmds
14367
14368 # Command to use after uninstallation of a shared archive.
14369 postuninstall_cmds=$lt_postuninstall_cmds
14370
14371 # Commands used to finish a libtool library installation in a directory.
14372 finish_cmds=$lt_finish_cmds
14373
14374 # As "finish_cmds", except a single script fragment to be evaled but
14375 # not shown.
14376 finish_eval=$lt_finish_eval
14377
14378 # Whether we should hardcode library paths into libraries.
14379 hardcode_into_libs=$hardcode_into_libs
14380
14381 # Compile-time system search path for libraries.
14382 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14383
14384 # Run-time system search path for libraries.
14385 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14386
14387 # Whether dlopen is supported.
14388 dlopen_support=$enable_dlopen
14389
14390 # Whether dlopen of programs is supported.
14391 dlopen_self=$enable_dlopen_self
14392
14393 # Whether dlopen of statically linked programs is supported.
14394 dlopen_self_static=$enable_dlopen_self_static
14395
14396 # Commands to strip libraries.
14397 old_striplib=$lt_old_striplib
14398 striplib=$lt_striplib
14399
14400
14401 # The linker used to build libraries.
14402 LD=$lt_LD
14403
14404 # Commands used to build an old-style archive.
14405 old_archive_cmds=$lt_old_archive_cmds
14406
14407 # A language specific compiler.
14408 CC=$lt_compiler
14409
14410 # Is the compiler the GNU compiler?
14411 with_gcc=$GCC
14412
14413 # Compiler flag to turn off builtin functions.
14414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14415
14416 # How to pass a linker flag through the compiler.
14417 wl=$lt_lt_prog_compiler_wl
14418
14419 # Additional compiler flags for building library objects.
14420 pic_flag=$lt_lt_prog_compiler_pic
14421
14422 # Compiler flag to prevent dynamic linking.
14423 link_static_flag=$lt_lt_prog_compiler_static
14424
14425 # Does compiler simultaneously support -c and -o options?
14426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14427
14428 # Whether or not to add -lc for building shared libraries.
14429 build_libtool_need_lc=$archive_cmds_need_lc
14430
14431 # Whether or not to disallow shared libs when runtime libs are static.
14432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14433
14434 # Compiler flag to allow reflexive dlopens.
14435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14436
14437 # Compiler flag to generate shared objects directly from archives.
14438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14439
14440 # Whether the compiler copes with passing no objects directly.
14441 compiler_needs_object=$lt_compiler_needs_object
14442
14443 # Create an old-style archive from a shared archive.
14444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14445
14446 # Create a temporary old-style archive to link instead of a shared archive.
14447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14448
14449 # Commands used to build a shared archive.
14450 archive_cmds=$lt_archive_cmds
14451 archive_expsym_cmds=$lt_archive_expsym_cmds
14452
14453 # Commands used to build a loadable module if different from building
14454 # a shared archive.
14455 module_cmds=$lt_module_cmds
14456 module_expsym_cmds=$lt_module_expsym_cmds
14457
14458 # Whether we are building with GNU ld or not.
14459 with_gnu_ld=$lt_with_gnu_ld
14460
14461 # Flag that allows shared libraries with undefined symbols to be built.
14462 allow_undefined_flag=$lt_allow_undefined_flag
14463
14464 # Flag that enforces no undefined symbols.
14465 no_undefined_flag=$lt_no_undefined_flag
14466
14467 # Flag to hardcode \$libdir into a binary during linking.
14468 # This must work even if \$libdir does not exist
14469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14470
14471 # If ld is used when linking, flag to hardcode \$libdir into a binary
14472 # during linking. This must work even if \$libdir does not exist.
14473 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14474
14475 # Whether we need a single "-rpath" flag with a separated argument.
14476 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14477
14478 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14479 # DIR into the resulting binary.
14480 hardcode_direct=$hardcode_direct
14481
14482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14483 # DIR into the resulting binary and the resulting library dependency is
14484 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14485 # library is relocated.
14486 hardcode_direct_absolute=$hardcode_direct_absolute
14487
14488 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14489 # into the resulting binary.
14490 hardcode_minus_L=$hardcode_minus_L
14491
14492 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14493 # into the resulting binary.
14494 hardcode_shlibpath_var=$hardcode_shlibpath_var
14495
14496 # Set to "yes" if building a shared library automatically hardcodes DIR
14497 # into the library and all subsequent libraries and executables linked
14498 # against it.
14499 hardcode_automatic=$hardcode_automatic
14500
14501 # Set to yes if linker adds runtime paths of dependent libraries
14502 # to runtime path list.
14503 inherit_rpath=$inherit_rpath
14504
14505 # Whether libtool must link a program against all its dependency libraries.
14506 link_all_deplibs=$link_all_deplibs
14507
14508 # Fix the shell variable \$srcfile for the compiler.
14509 fix_srcfile_path=$lt_fix_srcfile_path
14510
14511 # Set to "yes" if exported symbols are required.
14512 always_export_symbols=$always_export_symbols
14513
14514 # The commands to list exported symbols.
14515 export_symbols_cmds=$lt_export_symbols_cmds
14516
14517 # Symbols that should not be listed in the preloaded symbols.
14518 exclude_expsyms=$lt_exclude_expsyms
14519
14520 # Symbols that must always be exported.
14521 include_expsyms=$lt_include_expsyms
14522
14523 # Commands necessary for linking programs (against libraries) with templates.
14524 prelink_cmds=$lt_prelink_cmds
14525
14526 # Specify filename containing input files.
14527 file_list_spec=$lt_file_list_spec
14528
14529 # How to hardcode a shared library path into an executable.
14530 hardcode_action=$hardcode_action
14531
14532 # ### END LIBTOOL CONFIG
14533
14534 _LT_EOF
14535
14536 case $host_os in
14537 aix3*)
14538 cat <<\_LT_EOF >> "$cfgfile"
14539 # AIX sometimes has problems with the GCC collect2 program. For some
14540 # reason, if we set the COLLECT_NAMES environment variable, the problems
14541 # vanish in a puff of smoke.
14542 if test "X${COLLECT_NAMES+set}" != Xset; then
14543 COLLECT_NAMES=
14544 export COLLECT_NAMES
14545 fi
14546 _LT_EOF
14547 ;;
2373814548 esac
23739 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23740 as_dirs=
23741 while :; do
23742 case $as_dir in #(
23743 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23744 *) as_qdir=$as_dir;;
23745 esac
23746 as_dirs="'$as_qdir' $as_dirs"
23747 as_dir=`$as_dirname -- "$as_dir" ||
23748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23749 X"$as_dir" : 'X\(//\)[^/]' \| \
23750 X"$as_dir" : 'X\(//\)$' \| \
23751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23752 echo X"$as_dir" |
23753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23754 s//\1/
23755 q
23756 }
23757 /^X\(\/\/\)[^/].*/{
23758 s//\1/
23759 q
23760 }
23761 /^X\(\/\/\)$/{
23762 s//\1/
23763 q
23764 }
23765 /^X\(\/\).*/{
23766 s//\1/
23767 q
23768 }
23769 s/.*/./; q'`
23770 test -d "$as_dir" && break
23771 done
23772 test -z "$as_dirs" || eval "mkdir $as_dirs"
23773 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23774 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23775 { (exit 1); exit 1; }; }; }
23776 # echo "creating $dirpart/$file"
23777 echo '# dummy' > "$dirpart/$file"
23778 done
23779 done
14549
14550
14551 ltmain="$ac_aux_dir/ltmain.sh"
14552
14553
14554 # We use sed instead of cat because bash on DJGPP gets confused if
14555 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14556 # text mode, it properly converts lines to CR/LF. This bash problem
14557 # is reportedly fixed, but why not run on old versions too?
14558 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14559 || (rm -f "$cfgfile"; exit 1)
14560
14561 case $xsi_shell in
14562 yes)
14563 cat << \_LT_EOF >> "$cfgfile"
14564
14565 # func_dirname file append nondir_replacement
14566 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14567 # otherwise set result to NONDIR_REPLACEMENT.
14568 func_dirname ()
14569 {
14570 case ${1} in
14571 */*) func_dirname_result="${1%/*}${2}" ;;
14572 * ) func_dirname_result="${3}" ;;
14573 esac
14574 }
14575
14576 # func_basename file
14577 func_basename ()
14578 {
14579 func_basename_result="${1##*/}"
14580 }
14581
14582 # func_dirname_and_basename file append nondir_replacement
14583 # perform func_basename and func_dirname in a single function
14584 # call:
14585 # dirname: Compute the dirname of FILE. If nonempty,
14586 # add APPEND to the result, otherwise set result
14587 # to NONDIR_REPLACEMENT.
14588 # value returned in "$func_dirname_result"
14589 # basename: Compute filename of FILE.
14590 # value retuned in "$func_basename_result"
14591 # Implementation must be kept synchronized with func_dirname
14592 # and func_basename. For efficiency, we do not delegate to
14593 # those functions but instead duplicate the functionality here.
14594 func_dirname_and_basename ()
14595 {
14596 case ${1} in
14597 */*) func_dirname_result="${1%/*}${2}" ;;
14598 * ) func_dirname_result="${3}" ;;
14599 esac
14600 func_basename_result="${1##*/}"
14601 }
14602
14603 # func_stripname prefix suffix name
14604 # strip PREFIX and SUFFIX off of NAME.
14605 # PREFIX and SUFFIX must not contain globbing or regex special
14606 # characters, hashes, percent signs, but SUFFIX may contain a leading
14607 # dot (in which case that matches only a dot).
14608 func_stripname ()
14609 {
14610 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14611 # positional parameters, so assign one to ordinary parameter first.
14612 func_stripname_result=${3}
14613 func_stripname_result=${func_stripname_result#"${1}"}
14614 func_stripname_result=${func_stripname_result%"${2}"}
14615 }
14616
14617 # func_opt_split
14618 func_opt_split ()
14619 {
14620 func_opt_split_opt=${1%%=*}
14621 func_opt_split_arg=${1#*=}
14622 }
14623
14624 # func_lo2o object
14625 func_lo2o ()
14626 {
14627 case ${1} in
14628 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14629 *) func_lo2o_result=${1} ;;
14630 esac
14631 }
14632
14633 # func_xform libobj-or-source
14634 func_xform ()
14635 {
14636 func_xform_result=${1%.*}.lo
14637 }
14638
14639 # func_arith arithmetic-term...
14640 func_arith ()
14641 {
14642 func_arith_result=$(( $* ))
14643 }
14644
14645 # func_len string
14646 # STRING may not start with a hyphen.
14647 func_len ()
14648 {
14649 func_len_result=${#1}
14650 }
14651
14652 _LT_EOF
14653 ;;
14654 *) # Bourne compatible functions.
14655 cat << \_LT_EOF >> "$cfgfile"
14656
14657 # func_dirname file append nondir_replacement
14658 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14659 # otherwise set result to NONDIR_REPLACEMENT.
14660 func_dirname ()
14661 {
14662 # Extract subdirectory from the argument.
14663 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14664 if test "X$func_dirname_result" = "X${1}"; then
14665 func_dirname_result="${3}"
14666 else
14667 func_dirname_result="$func_dirname_result${2}"
14668 fi
14669 }
14670
14671 # func_basename file
14672 func_basename ()
14673 {
14674 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14675 }
14676
14677
14678 # func_stripname prefix suffix name
14679 # strip PREFIX and SUFFIX off of NAME.
14680 # PREFIX and SUFFIX must not contain globbing or regex special
14681 # characters, hashes, percent signs, but SUFFIX may contain a leading
14682 # dot (in which case that matches only a dot).
14683 # func_strip_suffix prefix name
14684 func_stripname ()
14685 {
14686 case ${2} in
14687 .*) func_stripname_result=`$ECHO "X${3}" \
14688 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14689 *) func_stripname_result=`$ECHO "X${3}" \
14690 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14691 esac
14692 }
14693
14694 # sed scripts:
14695 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14696 my_sed_long_arg='1s/^-[^=]*=//'
14697
14698 # func_opt_split
14699 func_opt_split ()
14700 {
14701 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14702 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14703 }
14704
14705 # func_lo2o object
14706 func_lo2o ()
14707 {
14708 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14709 }
14710
14711 # func_xform libobj-or-source
14712 func_xform ()
14713 {
14714 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14715 }
14716
14717 # func_arith arithmetic-term...
14718 func_arith ()
14719 {
14720 func_arith_result=`expr "$@"`
14721 }
14722
14723 # func_len string
14724 # STRING may not start with a hyphen.
14725 func_len ()
14726 {
14727 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14728 }
14729
14730 _LT_EOF
14731 esac
14732
14733 case $lt_shell_append in
14734 yes)
14735 cat << \_LT_EOF >> "$cfgfile"
14736
14737 # func_append var value
14738 # Append VALUE to the end of shell variable VAR.
14739 func_append ()
14740 {
14741 eval "$1+=\$2"
14742 }
14743 _LT_EOF
14744 ;;
14745 *)
14746 cat << \_LT_EOF >> "$cfgfile"
14747
14748 # func_append var value
14749 # Append VALUE to the end of shell variable VAR.
14750 func_append ()
14751 {
14752 eval "$1=\$$1\$2"
14753 }
14754
14755 _LT_EOF
14756 ;;
14757 esac
14758
14759
14760 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14761 || (rm -f "$cfgfile"; exit 1)
14762
14763 mv -f "$cfgfile" "$ofile" ||
14764 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14765 chmod +x "$ofile"
14766
2378014767 ;;
2378114768
2378214769 esac
2378314770 done # for ac_tag
2378414771
2378514772
23786 { (exit 0); exit 0; }
14773 as_fn_exit 0
2378714774 _ACEOF
23788 chmod +x $CONFIG_STATUS
2378914775 ac_clean_files=$ac_clean_files_save
14776
14777 test $ac_write_fail = 0 ||
14778 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
2379014779
2379114780
2379214781 # configure is writing to config.log, and then calls config.status.
2380714796 exec 5>>config.log
2380814797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2380914798 # would make configure fail if this is the last instruction.
23810 $ac_cs_success || { (exit 1); exit 1; }
23811 fi
23812
14799 $ac_cs_success || as_fn_exit $?
14800 fi
14801 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14803 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14804 fi
14805
1010
1111 m4_define([idle_major_version], [0])
1212 m4_define([idle_minor_version], [1])
13 m4_define([idle_micro_version], [3])
13 m4_define([idle_micro_version], [5])
1414 m4_define([idle_nano_version], [0])
1515
1616 m4_define([idle_base_version],
2424 [https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle])
2525
2626 AC_CONFIG_MACRO_DIR([m4])
27
28 # Enable silent build rules by default, requires at least
29 # Automake-1.11. Disable by either passing --disable-silent-rules to
30 # configure or passing V=1 to make
31 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
2732
2833 AM_INIT_AUTOMAKE([1.9 -Wno-portability])
2934
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1516
1617 VPATH = @srcdir@
1718 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
1820 pkglibdir = $(libdir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
2022 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2123 install_sh_DATA = $(install_sh) -c -m 644
2224 install_sh_PROGRAM = $(install_sh) -c
3638 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3739 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
3840 $(top_srcdir)/m4/as-compiler-flag.m4 \
39 $(top_srcdir)/configure.ac
41 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
42 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
43 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
4044 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4145 $(ACLOCAL_M4)
4246 mkinstalldirs = $(install_sh) -d
4347 CONFIG_HEADER = $(top_builddir)/config.h
4448 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 AM_V_GEN = $(am__v_GEN_$(V))
51 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
52 am__v_GEN_0 = @echo " GEN " $@;
53 AM_V_at = $(am__v_at_$(V))
54 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
55 am__v_at_0 = @
4556 SOURCES =
4657 DIST_SOURCES =
4758 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
4960 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
5061 *) f=$$p;; \
5162 esac;
52 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
63 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
64 am__install_max = 40
65 am__nobase_strip_setup = \
66 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
67 am__nobase_strip = \
68 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
69 am__nobase_list = $(am__nobase_strip_setup); \
70 for p in $$list; do echo "$$p $$p"; done | \
71 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
72 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
73 if (++n[$$2] == $(am__install_max)) \
74 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
75 END { for (dir in files) print dir, files[dir] }'
76 am__base_list = \
77 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
78 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
5379 am__installdirs = "$(DESTDIR)$(managerdir)" "$(DESTDIR)$(servicedir)"
54 managerDATA_INSTALL = $(INSTALL_DATA)
55 serviceDATA_INSTALL = $(INSTALL_DATA)
5680 DATA = $(manager_DATA) $(service_DATA)
5781 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
5882 ACLOCAL = @ACLOCAL@
5983 AMTAR = @AMTAR@
84 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
6085 AR = @AR@
6186 AUTOCONF = @AUTOCONF@
6287 AUTOHEADER = @AUTOHEADER@
7095 CFLAGS = @CFLAGS@
7196 CPP = @CPP@
7297 CPPFLAGS = @CPPFLAGS@
73 CXX = @CXX@
74 CXXCPP = @CXXCPP@
75 CXXDEPMODE = @CXXDEPMODE@
76 CXXFLAGS = @CXXFLAGS@
7798 CYGPATH_W = @CYGPATH_W@
7899 DATADIR = @DATADIR@
79100 DBUS_CFLAGS = @DBUS_CFLAGS@
82103 DEFS = @DEFS@
83104 DEPDIR = @DEPDIR@
84105 DSYMUTIL = @DSYMUTIL@
85 ECHO = @ECHO@
106 DUMPBIN = @DUMPBIN@
86107 ECHO_C = @ECHO_C@
87108 ECHO_N = @ECHO_N@
88109 ECHO_T = @ECHO_T@
89110 EGREP = @EGREP@
90111 ERROR_CFLAGS = @ERROR_CFLAGS@
91112 EXEEXT = @EXEEXT@
92 F77 = @F77@
93 FFLAGS = @FFLAGS@
113 FGREP = @FGREP@
94114 GLIB_CFLAGS = @GLIB_CFLAGS@
95115 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
96116 GLIB_LIBS = @GLIB_LIBS@
100120 INSTALL_PROGRAM = @INSTALL_PROGRAM@
101121 INSTALL_SCRIPT = @INSTALL_SCRIPT@
102122 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
123 LD = @LD@
103124 LDFLAGS = @LDFLAGS@
104125 LIBOBJS = @LIBOBJS@
105126 LIBS = @LIBS@
106127 LIBTOOL = @LIBTOOL@
128 LIPO = @LIPO@
107129 LN_S = @LN_S@
108130 LTLIBOBJS = @LTLIBOBJS@
109131 MAKEINFO = @MAKEINFO@
110132 MKDIR_P = @MKDIR_P@
133 NM = @NM@
111134 NMEDIT = @NMEDIT@
135 OBJDUMP = @OBJDUMP@
112136 OBJEXT = @OBJEXT@
113137 OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
114138 OPENSSL_LIBS = @OPENSSL_LIBS@
139 OTOOL = @OTOOL@
140 OTOOL64 = @OTOOL64@
115141 PACKAGE = @PACKAGE@
116142 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
117143 PACKAGE_NAME = @PACKAGE_NAME@
118144 PACKAGE_STRING = @PACKAGE_STRING@
119145 PACKAGE_TARNAME = @PACKAGE_TARNAME@
146 PACKAGE_URL = @PACKAGE_URL@
120147 PACKAGE_VERSION = @PACKAGE_VERSION@
121148 PATH_SEPARATOR = @PATH_SEPARATOR@
122149 PKG_CONFIG = @PKG_CONFIG@
136163 abs_top_builddir = @abs_top_builddir@
137164 abs_top_srcdir = @abs_top_srcdir@
138165 ac_ct_CC = @ac_ct_CC@
139 ac_ct_CXX = @ac_ct_CXX@
140 ac_ct_F77 = @ac_ct_F77@
166 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
141167 am__include = @am__include@
142168 am__leading_dot = @am__leading_dot@
143169 am__quote = @am__quote@
168194 libexecdir = @libexecdir@
169195 localedir = @localedir@
170196 localstatedir = @localstatedir@
197 lt_ECHO = @lt_ECHO@
171198 mandir = @mandir@
172199 mkdir_p = @mkdir_p@
173200 oldincludedir = @oldincludedir@
180207 srcdir = @srcdir@
181208 sysconfdir = @sysconfdir@
182209 target_alias = @target_alias@
210 top_build_prefix = @top_build_prefix@
183211 top_builddir = @top_builddir@
184212 top_srcdir = @top_srcdir@
185213
204232 @for dep in $?; do \
205233 case '$(am__configure_deps)' in \
206234 *$$dep*) \
207 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
208 && exit 0; \
235 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
236 && { if test -f $@; then exit 0; else break; fi; }; \
209237 exit 1;; \
210238 esac; \
211239 done; \
212 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/Makefile'; \
213 cd $(top_srcdir) && \
214 $(AUTOMAKE) --gnu data/Makefile
240 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/Makefile'; \
241 $(am__cd) $(top_srcdir) && \
242 $(AUTOMAKE) --gnu data/Makefile
215243 .PRECIOUS: Makefile
216244 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
217245 @case '$?' in \
229257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230258 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
231259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260 $(am__aclocal_m4_deps):
232261
233262 mostlyclean-libtool:
234263 -rm -f *.lo
238267 install-managerDATA: $(manager_DATA)
239268 @$(NORMAL_INSTALL)
240269 test -z "$(managerdir)" || $(MKDIR_P) "$(DESTDIR)$(managerdir)"
241 @list='$(manager_DATA)'; for p in $$list; do \
270 @list='$(manager_DATA)'; test -n "$(managerdir)" || list=; \
271 for p in $$list; do \
242272 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
243 f=$(am__strip_dir) \
244 echo " $(managerDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(managerdir)/$$f'"; \
245 $(managerDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(managerdir)/$$f"; \
273 echo "$$d$$p"; \
274 done | $(am__base_list) | \
275 while read files; do \
276 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(managerdir)'"; \
277 $(INSTALL_DATA) $$files "$(DESTDIR)$(managerdir)" || exit $$?; \
246278 done
247279
248280 uninstall-managerDATA:
249281 @$(NORMAL_UNINSTALL)
250 @list='$(manager_DATA)'; for p in $$list; do \
251 f=$(am__strip_dir) \
252 echo " rm -f '$(DESTDIR)$(managerdir)/$$f'"; \
253 rm -f "$(DESTDIR)$(managerdir)/$$f"; \
254 done
282 @list='$(manager_DATA)'; test -n "$(managerdir)" || list=; \
283 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
284 test -n "$$files" || exit 0; \
285 echo " ( cd '$(DESTDIR)$(managerdir)' && rm -f" $$files ")"; \
286 cd "$(DESTDIR)$(managerdir)" && rm -f $$files
255287 install-serviceDATA: $(service_DATA)
256288 @$(NORMAL_INSTALL)
257289 test -z "$(servicedir)" || $(MKDIR_P) "$(DESTDIR)$(servicedir)"
258 @list='$(service_DATA)'; for p in $$list; do \
290 @list='$(service_DATA)'; test -n "$(servicedir)" || list=; \
291 for p in $$list; do \
259292 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
260 f=$(am__strip_dir) \
261 echo " $(serviceDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(servicedir)/$$f'"; \
262 $(serviceDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(servicedir)/$$f"; \
293 echo "$$d$$p"; \
294 done | $(am__base_list) | \
295 while read files; do \
296 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(servicedir)'"; \
297 $(INSTALL_DATA) $$files "$(DESTDIR)$(servicedir)" || exit $$?; \
263298 done
264299
265300 uninstall-serviceDATA:
266301 @$(NORMAL_UNINSTALL)
267 @list='$(service_DATA)'; for p in $$list; do \
268 f=$(am__strip_dir) \
269 echo " rm -f '$(DESTDIR)$(servicedir)/$$f'"; \
270 rm -f "$(DESTDIR)$(servicedir)/$$f"; \
271 done
302 @list='$(service_DATA)'; test -n "$(servicedir)" || list=; \
303 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
304 test -n "$$files" || exit 0; \
305 echo " ( cd '$(DESTDIR)$(servicedir)' && rm -f" $$files ")"; \
306 cd "$(DESTDIR)$(servicedir)" && rm -f $$files
272307 tags: TAGS
273308 TAGS:
274309
292327 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
293328 if test -d $$d/$$file; then \
294329 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
330 if test -d "$(distdir)/$$file"; then \
331 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
332 fi; \
295333 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
296 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
334 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
335 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
297336 fi; \
298 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
337 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
299338 else \
300 test -f $(distdir)/$$file \
301 || cp -p $$d/$$file $(distdir)/$$file \
339 test -f "$(distdir)/$$file" \
340 || cp -p $$d/$$file "$(distdir)/$$file" \
302341 || exit 1; \
303342 fi; \
304343 done
330369
331370 distclean-generic:
332371 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
372 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
333373
334374 maintainer-clean-generic:
335375 @echo "This command is intended for maintainers to use"
348388
349389 html: html-am
350390
391 html-am:
392
351393 info: info-am
352394
353395 info-am:
356398
357399 install-dvi: install-dvi-am
358400
401 install-dvi-am:
402
359403 install-exec-am:
360404
361405 install-html: install-html-am
362406
407 install-html-am:
408
363409 install-info: install-info-am
364410
411 install-info-am:
412
365413 install-man:
366414
367415 install-pdf: install-pdf-am
368416
417 install-pdf-am:
418
369419 install-ps: install-ps-am
420
421 install-ps-am:
370422
371423 installcheck-am:
372424
407459 # Rule to make the service file with libexecdir expanded
408460 $(service_DATA): $(service_in_files) Makefile
409461 @sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
462
410463 # Tell versions [3.59,3.63) of GNU make to not export all variables.
411464 # Otherwise a system limit (for SysV at least) may be exceeded.
412465 .NOEXPORT:
33 ObjectPath = /org/freedesktop/Telepathy/ConnectionManager/idle
44
55 [Protocol irc]
6 param-account = s required register
7 param-server = s required register
6 param-account = s required
7 param-server = s required
88 param-fullname = s
99 param-port = q
1010 param-password = s
1313 param-use-ssl = b
1414 default-port = 6667
1515 default-charset = UTF-8
16 default-quit-message = So long and thanks for all the IRC - telepathy-idle IRC Connection Manager for Telepathy - http://telepathy.freedesktop.org
1716 default-use-ssl = false
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2007-03-29.01
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
6 # Foundation, Inc.
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
77
88 # This program is free software; you can redistribute it and/or modify
99 # it under the terms of the GNU General Public License as published by
1616 # GNU General Public License for more details.
1717
1818 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 # 02110-1301, USA.
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
2220
2321 # As a special exception to the GNU General Public License, if you
2422 # distribute this file as part of a program that contains a
8482 # This is just like dashmstdout with a different argument.
8583 dashmflag=-xM
8684 depmode=dashmstdout
85 fi
86
87 cygpath_u="cygpath -u -f -"
88 if test "$depmode" = msvcmsys; then
89 # This is just like msvisualcpp but w/o cygpath translation.
90 # Just convert the backslash-escaped backslashes to single forward
91 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
93 depmode=msvisualcpp
8794 fi
8895
8996 case "$depmode" in
191198 ' < "$tmpdepfile" \
192199 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
193200 tr '
194 ' ' ' >> $depfile
195 echo >> $depfile
201 ' ' ' >> "$depfile"
202 echo >> "$depfile"
196203
197204 # The second pass generates a dummy entry for each header file.
198205 tr ' ' '
199206 ' < "$tmpdepfile" \
200207 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
201 >> $depfile
208 >> "$depfile"
202209 else
203210 # The sourcefile does not contain any dependencies, so just
204211 # store a dummy comment line, to avoid errors with the Makefile
327334 if test -f "$tmpdepfile"; then
328335 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
329336 # Add `dependent.h:' lines.
330 sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
337 sed -ne '2,${
338 s/^ *//
339 s/ \\*$//
340 s/$/:/
341 p
342 }' "$tmpdepfile" >> "$depfile"
331343 else
332344 echo "#dummy" > "$depfile"
333345 fi
403415
404416 # Remove the call to Libtool.
405417 if test "$libtool" = yes; then
406 while test $1 != '--mode=compile'; do
418 while test "X$1" != 'X--mode=compile'; do
407419 shift
408420 done
409421 shift
454466 "$@" || exit $?
455467 # Remove any Libtool call
456468 if test "$libtool" = yes; then
457 while test $1 != '--mode=compile'; do
469 while test "X$1" != 'X--mode=compile'; do
458470 shift
459471 done
460472 shift
461473 fi
462474 # X makedepend
463475 shift
464 cleared=no
465 for arg in "$@"; do
476 cleared=no eat=no
477 for arg
478 do
466479 case $cleared in
467480 no)
468481 set ""; shift
469482 cleared=yes ;;
470483 esac
484 if test $eat = yes; then
485 eat=no
486 continue
487 fi
471488 case "$arg" in
472489 -D*|-I*)
473490 set fnord "$@" "$arg"; shift ;;
474491 # Strip any option that makedepend may not understand. Remove
475492 # the object too, otherwise makedepend will parse it as a source file.
493 -arch)
494 eat=yes ;;
476495 -*|$object)
477496 ;;
478497 *)
479498 set fnord "$@" "$arg"; shift ;;
480499 esac
481500 done
482 obj_suffix="`echo $object | sed 's/^.*\././'`"
501 obj_suffix=`echo "$object" | sed 's/^.*\././'`
483502 touch "$tmpdepfile"
484503 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
485504 rm -f "$depfile"
499518
500519 # Remove the call to Libtool.
501520 if test "$libtool" = yes; then
502 while test $1 != '--mode=compile'; do
521 while test "X$1" != 'X--mode=compile'; do
503522 shift
504523 done
505524 shift
537556
538557 msvisualcpp)
539558 # Important note: in order to support this mode, a compiler *must*
540 # always write the preprocessed file to stdout, regardless of -o,
541 # because we must use -o when running libtool.
559 # always write the preprocessed file to stdout.
542560 "$@" || exit $?
561
562 # Remove the call to Libtool.
563 if test "$libtool" = yes; then
564 while test "X$1" != 'X--mode=compile'; do
565 shift
566 done
567 shift
568 fi
569
543570 IFS=" "
544571 for arg
545572 do
546573 case "$arg" in
574 -o)
575 shift
576 ;;
577 $object)
578 shift
579 ;;
547580 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
548581 set fnord "$@"
549582 shift
556589 ;;
557590 esac
558591 done
559 "$@" -E |
560 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
592 "$@" -E 2>/dev/null |
593 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
561594 rm -f "$depfile"
562595 echo "$object : \\" > "$depfile"
563 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
596 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
564597 echo " " >> "$depfile"
565 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
598 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
566599 rm -f "$tmpdepfile"
600 ;;
601
602 msvcmsys)
603 # This case exists only to let depend.m4 do its work. It works by
604 # looking at the text of this script. This case will never be run,
605 # since it is checked for above.
606 exit 1
567607 ;;
568608
569609 none)
584624 # eval: (add-hook 'write-file-hooks 'time-stamp)
585625 # time-stamp-start: "scriptversion="
586626 # time-stamp-format: "%:y-%02m-%02d.%02H"
587 # time-stamp-end: "$"
627 # time-stamp-time-zone: "UTC"
628 # time-stamp-end: "; # UTC"
588629 # End:
3333 XSLTPROCFLAGS = --nonet --novalid
3434
3535 _gen/all.xml: all.xml $(wildcard *.xml)
36 $(mkdir_p) _gen
37 $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
36 @$(mkdir_p) _gen
37 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
38 --xinclude $(tools_dir)/identity.xsl \
3839 $< > $@
3940
4041 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
41 $(XSLTPROC) $(XSLTPROCFLAGS) \
42 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
4243 $(tools_dir)/doc-generator.xsl \
4344 $< > $@
4445
4546 _gen/svc.c _gen/svc.h: _gen/all.xml \
4647 $(tools_dir)/glib-ginterface-gen.py
47 $(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
48 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
4849 --filename=_gen/svc --signal-marshal-prefix=_idle_ext \
4950 --include='<telepathy-glib/dbus.h>' \
5051 --include='"_gen/signals-marshal.h"' \
5253 $< Idle_Svc_
5354
5455 _gen/signals-marshal.list: _gen/all.xml $(tools_dir)/glib-signals-marshal-gen.py
55 $(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
56 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
5657
5758 _gen/signals-marshal.h: _gen/signals-marshal.list
58 $(GLIB_GENMARSHAL) --header --prefix=_idle_ext_marshal $< > $@
59 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_idle_ext_marshal $< > $@
5960
6061 _gen/signals-marshal.c: _gen/signals-marshal.list
61 $(GLIB_GENMARSHAL) --body --prefix=_idle_ext_marshal $< > $@
62 $(AM_V_GEN)$(GLIB_GENMARSHAL) --body --prefix=_idle_ext_marshal $< > $@
6263
6364 _gen/enums.h: _gen/all.xml $(tools_dir)/c-constants-generator.xsl
64 $(XSLTPROC) $(XSLTPROCFLAGS) \
65 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
6566 --stringparam mixed-case-prefix Idle \
6667 $(tools_dir)/c-constants-generator.xsl \
6768 $< > $@
6869
6970 _gen/interfaces.h: _gen/all.xml $(tools_dir)/c-interfaces-generator.xsl
70 $(XSLTPROC) $(XSLTPROCFLAGS) \
71 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
7172 --stringparam mixed-case-prefix Idle \
7273 $(tools_dir)/c-interfaces-generator.xsl \
7374 $< > $@
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1516
1617 VPATH = @srcdir@
1718 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
1820 pkglibdir = $(libdir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
2022 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2123 install_sh_DATA = $(install_sh) -c -m 644
2224 install_sh_PROGRAM = $(install_sh) -c
3638 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3739 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
3840 $(top_srcdir)/m4/as-compiler-flag.m4 \
39 $(top_srcdir)/configure.ac
41 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
42 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
43 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
4044 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4145 $(ACLOCAL_M4)
4246 mkinstalldirs = $(install_sh) -d
4347 CONFIG_HEADER = $(top_builddir)/config.h
4448 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
4550 LTLIBRARIES = $(noinst_LTLIBRARIES)
4651 libidle_extensions_la_LIBADD =
4752 am_libidle_extensions_la_OBJECTS =
4853 nodist_libidle_extensions_la_OBJECTS = signals-marshal.lo svc.lo
4954 libidle_extensions_la_OBJECTS = $(am_libidle_extensions_la_OBJECTS) \
5055 $(nodist_libidle_extensions_la_OBJECTS)
56 AM_V_lt = $(am__v_lt_$(V))
57 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
58 am__v_lt_0 = --silent
5159 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
5260 depcomp = $(SHELL) $(top_srcdir)/depcomp
5361 am__depfiles_maybe = depfiles
62 am__mv = mv -f
5463 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
5564 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
56 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
57 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
58 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
66 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
67 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
68 $(AM_CFLAGS) $(CFLAGS)
69 AM_V_CC = $(am__v_CC_$(V))
70 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
71 am__v_CC_0 = @echo " CC " $@;
72 AM_V_at = $(am__v_at_$(V))
73 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
74 am__v_at_0 = @
5975 CCLD = $(CC)
60 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
61 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
62 $(LDFLAGS) -o $@
76 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
77 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
78 $(AM_LDFLAGS) $(LDFLAGS) -o $@
79 AM_V_CCLD = $(am__v_CCLD_$(V))
80 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
81 am__v_CCLD_0 = @echo " CCLD " $@;
82 AM_V_GEN = $(am__v_GEN_$(V))
83 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
84 am__v_GEN_0 = @echo " GEN " $@;
6385 SOURCES = $(libidle_extensions_la_SOURCES) \
6486 $(nodist_libidle_extensions_la_SOURCES)
6587 DIST_SOURCES = $(libidle_extensions_la_SOURCES)
6890 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
6991 ACLOCAL = @ACLOCAL@
7092 AMTAR = @AMTAR@
93 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
7194 AR = @AR@
7295 AUTOCONF = @AUTOCONF@
7396 AUTOHEADER = @AUTOHEADER@
81104 CFLAGS = @CFLAGS@
82105 CPP = @CPP@
83106 CPPFLAGS = @CPPFLAGS@
84 CXX = @CXX@
85 CXXCPP = @CXXCPP@
86 CXXDEPMODE = @CXXDEPMODE@
87 CXXFLAGS = @CXXFLAGS@
88107 CYGPATH_W = @CYGPATH_W@
89108 DATADIR = @DATADIR@
90109 DBUS_CFLAGS = @DBUS_CFLAGS@
93112 DEFS = @DEFS@
94113 DEPDIR = @DEPDIR@
95114 DSYMUTIL = @DSYMUTIL@
96 ECHO = @ECHO@
115 DUMPBIN = @DUMPBIN@
97116 ECHO_C = @ECHO_C@
98117 ECHO_N = @ECHO_N@
99118 ECHO_T = @ECHO_T@
100119 EGREP = @EGREP@
101120 ERROR_CFLAGS = @ERROR_CFLAGS@
102121 EXEEXT = @EXEEXT@
103 F77 = @F77@
104 FFLAGS = @FFLAGS@
122 FGREP = @FGREP@
105123 GLIB_CFLAGS = @GLIB_CFLAGS@
106124 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
107125 GLIB_LIBS = @GLIB_LIBS@
111129 INSTALL_PROGRAM = @INSTALL_PROGRAM@
112130 INSTALL_SCRIPT = @INSTALL_SCRIPT@
113131 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
132 LD = @LD@
114133 LDFLAGS = @LDFLAGS@
115134 LIBOBJS = @LIBOBJS@
116135 LIBS = @LIBS@
117136 LIBTOOL = @LIBTOOL@
137 LIPO = @LIPO@
118138 LN_S = @LN_S@
119139 LTLIBOBJS = @LTLIBOBJS@
120140 MAKEINFO = @MAKEINFO@
121141 MKDIR_P = @MKDIR_P@
142 NM = @NM@
122143 NMEDIT = @NMEDIT@
144 OBJDUMP = @OBJDUMP@
123145 OBJEXT = @OBJEXT@
124146 OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
125147 OPENSSL_LIBS = @OPENSSL_LIBS@
148 OTOOL = @OTOOL@
149 OTOOL64 = @OTOOL64@
126150 PACKAGE = @PACKAGE@
127151 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
128152 PACKAGE_NAME = @PACKAGE_NAME@
129153 PACKAGE_STRING = @PACKAGE_STRING@
130154 PACKAGE_TARNAME = @PACKAGE_TARNAME@
155 PACKAGE_URL = @PACKAGE_URL@
131156 PACKAGE_VERSION = @PACKAGE_VERSION@
132157 PATH_SEPARATOR = @PATH_SEPARATOR@
133158 PKG_CONFIG = @PKG_CONFIG@
147172 abs_top_builddir = @abs_top_builddir@
148173 abs_top_srcdir = @abs_top_srcdir@
149174 ac_ct_CC = @ac_ct_CC@
150 ac_ct_CXX = @ac_ct_CXX@
151 ac_ct_F77 = @ac_ct_F77@
175 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
152176 am__include = @am__include@
153177 am__leading_dot = @am__leading_dot@
154178 am__quote = @am__quote@
179203 libexecdir = @libexecdir@
180204 localedir = @localedir@
181205 localstatedir = @localstatedir@
206 lt_ECHO = @lt_ECHO@
182207 mandir = @mandir@
183208 mkdir_p = @mkdir_p@
184209 oldincludedir = @oldincludedir@
191216 srcdir = @srcdir@
192217 sysconfdir = @sysconfdir@
193218 target_alias = @target_alias@
219 top_build_prefix = @top_build_prefix@
194220 top_builddir = @top_builddir@
195221 top_srcdir = @top_srcdir@
196222 tools_dir = $(top_srcdir)/tools
232258 @for dep in $?; do \
233259 case '$(am__configure_deps)' in \
234260 *$$dep*) \
235 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
236 && exit 0; \
261 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
262 && { if test -f $@; then exit 0; else break; fi; }; \
237263 exit 1;; \
238264 esac; \
239265 done; \
240 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu extensions/Makefile'; \
241 cd $(top_srcdir) && \
242 $(AUTOMAKE) --gnu extensions/Makefile
266 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu extensions/Makefile'; \
267 $(am__cd) $(top_srcdir) && \
268 $(AUTOMAKE) --gnu extensions/Makefile
243269 .PRECIOUS: Makefile
244270 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
245271 @case '$?' in \
257283 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258284 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
259285 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
286 $(am__aclocal_m4_deps):
260287
261288 clean-noinstLTLIBRARIES:
262289 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
267294 rm -f "$${dir}/so_locations"; \
268295 done
269296 libidle-extensions.la: $(libidle_extensions_la_OBJECTS) $(libidle_extensions_la_DEPENDENCIES)
270 $(LINK) $(libidle_extensions_la_OBJECTS) $(libidle_extensions_la_LIBADD) $(LIBS)
297 $(AM_V_CCLD)$(LINK) $(libidle_extensions_la_OBJECTS) $(libidle_extensions_la_LIBADD) $(LIBS)
271298
272299 mostlyclean-compile:
273300 -rm -f *.$(OBJEXT)
279306 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/svc.Plo@am__quote@
280307
281308 .c.o:
282 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
283 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
310 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
284312 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
285313 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
286314 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
287315
288316 .c.obj:
289 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
290 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
317 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
318 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
291320 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
292321 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
293322 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
294323
295324 .c.lo:
296 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
297 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
325 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
327 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
298328 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
299329 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
300330 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
301331
302332 signals-marshal.lo: _gen/signals-marshal.c
303 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT signals-marshal.lo -MD -MP -MF $(DEPDIR)/signals-marshal.Tpo -c -o signals-marshal.lo `test -f '_gen/signals-marshal.c' || echo '$(srcdir)/'`_gen/signals-marshal.c
304 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/signals-marshal.Tpo $(DEPDIR)/signals-marshal.Plo
333 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT signals-marshal.lo -MD -MP -MF $(DEPDIR)/signals-marshal.Tpo -c -o signals-marshal.lo `test -f '_gen/signals-marshal.c' || echo '$(srcdir)/'`_gen/signals-marshal.c
334 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/signals-marshal.Tpo $(DEPDIR)/signals-marshal.Plo
335 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
305336 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='_gen/signals-marshal.c' object='signals-marshal.lo' libtool=yes @AMDEPBACKSLASH@
306337 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o signals-marshal.lo `test -f '_gen/signals-marshal.c' || echo '$(srcdir)/'`_gen/signals-marshal.c
338 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o signals-marshal.lo `test -f '_gen/signals-marshal.c' || echo '$(srcdir)/'`_gen/signals-marshal.c
308339
309340 svc.lo: _gen/svc.c
310 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT svc.lo -MD -MP -MF $(DEPDIR)/svc.Tpo -c -o svc.lo `test -f '_gen/svc.c' || echo '$(srcdir)/'`_gen/svc.c
311 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/svc.Tpo $(DEPDIR)/svc.Plo
341 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT svc.lo -MD -MP -MF $(DEPDIR)/svc.Tpo -c -o svc.lo `test -f '_gen/svc.c' || echo '$(srcdir)/'`_gen/svc.c
342 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/svc.Tpo $(DEPDIR)/svc.Plo
343 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
312344 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='_gen/svc.c' object='svc.lo' libtool=yes @AMDEPBACKSLASH@
313345 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o svc.lo `test -f '_gen/svc.c' || echo '$(srcdir)/'`_gen/svc.c
346 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o svc.lo `test -f '_gen/svc.c' || echo '$(srcdir)/'`_gen/svc.c
315347
316348 mostlyclean-libtool:
317349 -rm -f *.lo
324356 unique=`for i in $$list; do \
325357 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
326358 done | \
327 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
359 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
328360 END { if (nonempty) { for (i in files) print i; }; }'`; \
329361 mkid -fID $$unique
330362 tags: TAGS
331363
332364 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
333365 $(TAGS_FILES) $(LISP)
334 tags=; \
366 set x; \
335367 here=`pwd`; \
336368 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
337369 unique=`for i in $$list; do \
339371 done | \
340372 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
341373 END { if (nonempty) { for (i in files) print i; }; }'`; \
342 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
374 shift; \
375 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
343376 test -n "$$unique" || unique=$$empty_fix; \
344 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
345 $$tags $$unique; \
377 if test $$# -gt 0; then \
378 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
379 "$$@" $$unique; \
380 else \
381 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
382 $$unique; \
383 fi; \
346384 fi
347385 ctags: CTAGS
348386 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
349387 $(TAGS_FILES) $(LISP)
350 tags=; \
351388 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
352389 unique=`for i in $$list; do \
353390 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
354391 done | \
355392 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
356393 END { if (nonempty) { for (i in files) print i; }; }'`; \
357 test -z "$(CTAGS_ARGS)$$tags$$unique" \
394 test -z "$(CTAGS_ARGS)$$unique" \
358395 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
359 $$tags $$unique
396 $$unique
360397
361398 GTAGS:
362399 here=`$(am__cd) $(top_builddir) && pwd` \
363 && cd $(top_srcdir) \
364 && gtags -i $(GTAGS_ARGS) $$here
400 && $(am__cd) $(top_srcdir) \
401 && gtags -i $(GTAGS_ARGS) "$$here"
365402
366403 distclean-tags:
367404 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382419 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
383420 if test -d $$d/$$file; then \
384421 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
422 if test -d "$(distdir)/$$file"; then \
423 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
424 fi; \
385425 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
386 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
426 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
427 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
387428 fi; \
388 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
429 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
389430 else \
390 test -f $(distdir)/$$file \
391 || cp -p $$d/$$file $(distdir)/$$file \
431 test -f "$(distdir)/$$file" \
432 || cp -p $$d/$$file "$(distdir)/$$file" \
392433 || exit 1; \
393434 fi; \
394435 done
419460
420461 distclean-generic:
421462 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
463 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
422464
423465 maintainer-clean-generic:
424466 @echo "This command is intended for maintainers to use"
441483
442484 html: html-am
443485
486 html-am:
487
444488 info: info-am
445489
446490 info-am:
449493
450494 install-dvi: install-dvi-am
451495
496 install-dvi-am:
497
452498 install-exec-am:
453499
454500 install-html: install-html-am
455501
502 install-html-am:
503
456504 install-info: install-info-am
457505
506 install-info-am:
507
458508 install-man:
459509
460510 install-pdf: install-pdf-am
461511
512 install-pdf-am:
513
462514 install-ps: install-ps-am
515
516 install-ps-am:
463517
464518 installcheck-am:
465519
483537
484538 uninstall-am:
485539
486 .MAKE: install-am install-strip
540 .MAKE: all check install install-am install-strip
487541
488542 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
489543 clean-libtool clean-noinstLTLIBRARIES ctags distclean \
500554
501555
502556 _gen/all.xml: all.xml $(wildcard *.xml)
503 $(mkdir_p) _gen
504 $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
557 @$(mkdir_p) _gen
558 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
559 --xinclude $(tools_dir)/identity.xsl \
505560 $< > $@
506561
507562 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
508 $(XSLTPROC) $(XSLTPROCFLAGS) \
563 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
509564 $(tools_dir)/doc-generator.xsl \
510565 $< > $@
511566
512567 _gen/svc.c _gen/svc.h: _gen/all.xml \
513568 $(tools_dir)/glib-ginterface-gen.py
514 $(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
569 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
515570 --filename=_gen/svc --signal-marshal-prefix=_idle_ext \
516571 --include='<telepathy-glib/dbus.h>' \
517572 --include='"_gen/signals-marshal.h"' \
519574 $< Idle_Svc_
520575
521576 _gen/signals-marshal.list: _gen/all.xml $(tools_dir)/glib-signals-marshal-gen.py
522 $(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
577 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
523578
524579 _gen/signals-marshal.h: _gen/signals-marshal.list
525 $(GLIB_GENMARSHAL) --header --prefix=_idle_ext_marshal $< > $@
580 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_idle_ext_marshal $< > $@
526581
527582 _gen/signals-marshal.c: _gen/signals-marshal.list
528 $(GLIB_GENMARSHAL) --body --prefix=_idle_ext_marshal $< > $@
583 $(AM_V_GEN)$(GLIB_GENMARSHAL) --body --prefix=_idle_ext_marshal $< > $@
529584
530585 _gen/enums.h: _gen/all.xml $(tools_dir)/c-constants-generator.xsl
531 $(XSLTPROC) $(XSLTPROCFLAGS) \
586 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
532587 --stringparam mixed-case-prefix Idle \
533588 $(tools_dir)/c-constants-generator.xsl \
534589 $< > $@
535590
536591 _gen/interfaces.h: _gen/all.xml $(tools_dir)/c-interfaces-generator.xsl
537 $(XSLTPROC) $(XSLTPROCFLAGS) \
592 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
538593 --stringparam mixed-case-prefix Idle \
539594 $(tools_dir)/c-interfaces-generator.xsl \
540595 $< > $@
596
541597 # Tell versions [3.59,3.63) of GNU make to not export all variables.
542598 # Otherwise a system limit (for SysV at least) may be exceeded.
543599 .NOEXPORT:
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2006-12-25.00
3 scriptversion=2009-04-28.21; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
514514 # eval: (add-hook 'write-file-hooks 'time-stamp)
515515 # time-stamp-start: "scriptversion="
516516 # time-stamp-format: "%:y-%02m-%02d.%02H"
517 # time-stamp-end: "$"
517 # time-stamp-time-zone: "UTC"
518 # time-stamp-end: "; # UTC"
518519 # End:
+5277
-3820
ltmain.sh less more
0 # ltmain.sh - Provide generalized library-building support services.
1 # NOTE: Changing this file will not affect anything until you rerun configure.
2 #
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
4 # 2007, 2008 Free Software Foundation, Inc.
5 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6 #
7 # This program is free software; you can redistribute it and/or modify
0 # Generated from ltmain.m4sh.
1
2 # ltmain.sh (GNU libtool) 2.2.6
3 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
6 # This is free software; see the source for copying conditions. There is NO
7 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
9 # GNU Libtool is free software; you can redistribute it and/or modify
810 # it under the terms of the GNU General Public License as published by
911 # the Free Software Foundation; either version 2 of the License, or
1012 # (at your option) any later version.
1113 #
12 # This program is distributed in the hope that it will be useful, but
14 # As a special exception to the GNU General Public License,
15 # if you distribute this file as part of a program or library that
16 # is built using GNU Libtool, you may include this file under the
17 # same distribution terms that you use for the rest of that program.
18 #
19 # GNU Libtool is distributed in the hope that it will be useful, but
1320 # WITHOUT ANY WARRANTY; without even the implied warranty of
1421 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1522 # General Public License for more details.
1623 #
1724 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
2031 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 basename="s,^.*/,,g"
27
28 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
29 # is ksh but when the shell is invoked as "sh" and the current value of
30 # the _XPG environment variable is not equal to 1 (one), the special
31 # positional parameter $0, within a function call, is the name of the
32 # function.
33 progpath="$0"
34
35 # The name of this program:
36 progname=`echo "$progpath" | $SED $basename`
37 modename="$progname"
38
39 # Global variables:
40 EXIT_SUCCESS=0
41 EXIT_FAILURE=1
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --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
45 #
46 # MODE must be one of the following:
47 #
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
55 #
56 # MODE-ARGS vary depending on the MODE.
57 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
58 #
59 # When reporting a bug, please describe a test case to reproduce it and
60 # include the following information:
61 #
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.6 Debian-2.2.6a-4
68 # automake: $automake_version
69 # autoconf: $autoconf_version
70 #
71 # Report bugs to <bug-libtool@gnu.org>.
4272
4373 PROGRAM=ltmain.sh
4474 PACKAGE=libtool
45 VERSION=1.5.26
46 TIMESTAMP=" (1.1220.2.492 2008/01/30 06:40:56)"
47
48 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
75 VERSION="2.2.6 Debian-2.2.6a-4"
76 TIMESTAMP=""
77 package_revision=1.3012
78
79 # Be Bourne compatible
4980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5081 emulate sh
5182 NULLCMD=:
5990 BIN_SH=xpg4; export BIN_SH # for Tru64
6091 DUALCASE=1; export DUALCASE # for MKS sh
6192
62 # Check that we have a working $echo.
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).
97 lt_user_locale=
98 lt_safe_locale=
99 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
100 do
101 eval "if test \"\${$lt_var+set}\" = set; then
102 save_$lt_var=\$$lt_var
103 $lt_var=C
104 export $lt_var
105 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
106 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
107 fi"
108 done
109
110 $lt_unset CDPATH
111
112
113
114
115
116 : ${CP="cp -f"}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
121 : ${LN_S="ln -s"}
122 : ${MAKE="make"}
123 : ${MKDIR="mkdir"}
124 : ${MV="mv -f"}
125 : ${RM="rm -f"}
126 : ${SED="/bin/sed"}
127 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
128 : ${Xsed="$SED -e 1s/^X//"}
129
130 # Global variables:
131 EXIT_SUCCESS=0
132 EXIT_FAILURE=1
133 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
134 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
135
136 exit_status=$EXIT_SUCCESS
137
138 # Make sure IFS has a sensible default
139 lt_nl='
140 '
141 IFS=" $lt_nl"
142
143 dirname="s,/[^/]*$,,"
144 basename="s,^.*/,,"
145
146 # func_dirname_and_basename file append nondir_replacement
147 # perform func_basename and func_dirname in a single function
148 # call:
149 # dirname: Compute the dirname of FILE. If nonempty,
150 # add APPEND to the result, otherwise set result
151 # to NONDIR_REPLACEMENT.
152 # value returned in "$func_dirname_result"
153 # basename: Compute filename of FILE.
154 # value retuned in "$func_basename_result"
155 # Implementation must be kept synchronized with func_dirname
156 # and func_basename. For efficiency, we do not delegate to
157 # those functions but instead duplicate the functionality here.
158 func_dirname_and_basename ()
159 {
160 # Extract subdirectory from the argument.
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
162 if test "X$func_dirname_result" = "X${1}"; then
163 func_dirname_result="${3}"
164 else
165 func_dirname_result="$func_dirname_result${2}"
166 fi
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
168 }
169
170 # Generated shell functions inserted here.
171
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"
178
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:
182 func_dirname_and_basename "$progpath"
183 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
187
188 # Make sure we have an absolute path for reexecution:
189 case $progpath in
190 [\\/]*|[A-Za-z]:\\*) ;;
191 *[\\/]*)
192 progdir=$func_dirname_result
193 progdir=`cd "$progdir" && pwd`
194 progpath="$progdir/$progname"
195 ;;
196 *)
197 save_IFS="$IFS"
198 IFS=:
199 for progdir in $PATH; do
200 IFS="$save_IFS"
201 test -x "$progdir/$progname" && break
202 done
203 IFS="$save_IFS"
204 test -n "$progdir" || progdir=`pwd`
205 progpath="$progdir/$progname"
206 ;;
207 esac
208
209 # Sed substitution that helps us do robust quoting. It backslashifies
210 # metacharacters that are still active within double-quoted strings.
211 Xsed="${SED}"' -e 1s/^X//'
212 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
213
214 # Same as above, but do not quote variable references.
215 double_quote_subst='s/\(["`\\]\)/\\\1/g'
216
217 # Re-`\' parameter expansions in output of double_quote_subst that were
218 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
219 # in input to double_quote_subst, that '$' was protected from expansion.
220 # Since each input `\' is now two `\'s, look for any number of runs of
221 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
222 bs='\\'
223 bs2='\\\\'
224 bs4='\\\\\\\\'
225 dollar='\$'
226 sed_double_backslash="\
227 s/$bs4/&\\
228 /g
229 s/^$bs2$dollar/$bs&/
230 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
231 s/\n//g"
232
233 # Standard options:
234 opt_dry_run=false
235 opt_help=false
236 opt_quiet=false
237 opt_verbose=false
238 opt_warning=:
239
240 # func_echo arg...
241 # Echo program name prefixed message, along with the current mode
242 # name if it has been set yet.
243 func_echo ()
244 {
245 $ECHO "$progname${mode+: }$mode: $*"
246 }
247
248 # func_verbose arg...
249 # Echo program name prefixed message in verbose mode only.
250 func_verbose ()
251 {
252 $opt_verbose && func_echo ${1+"$@"}
253
254 # A bug in bash halts the script if the last line of a function
255 # fails when set -e is in force, so we need another command to
256 # work around that:
257 :
258 }
259
260 # func_error arg...
261 # Echo program name prefixed message to standard error.
262 func_error ()
263 {
264 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
265 }
266
267 # func_warning arg...
268 # Echo program name prefixed warning message to standard error.
269 func_warning ()
270 {
271 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
272
273 # bash bug again:
274 :
275 }
276
277 # func_fatal_error arg...
278 # Echo program name prefixed message to standard error, and exit.
279 func_fatal_error ()
280 {
281 func_error ${1+"$@"}
282 exit $EXIT_FAILURE
283 }
284
285 # func_fatal_help arg...
286 # Echo program name prefixed message to standard error, followed by
287 # a help hint, and exit.
288 func_fatal_help ()
289 {
290 func_error ${1+"$@"}
291 func_fatal_error "$help"
292 }
293 help="Try \`$progname --help' for more information." ## default
294
295
296 # func_grep expression filename
297 # Check whether EXPRESSION matches any line of FILENAME, without output.
298 func_grep ()
299 {
300 $GREP "$1" "$2" >/dev/null 2>&1
301 }
302
303
304 # func_mkdir_p directory-path
305 # Make sure the entire path to DIRECTORY-PATH is available.
306 func_mkdir_p ()
307 {
308 my_directory_path="$1"
309 my_dir_list=
310
311 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
312
313 # Protect directory names starting with `-'
314 case $my_directory_path in
315 -*) my_directory_path="./$my_directory_path" ;;
316 esac
317
318 # While some portion of DIR does not yet exist...
319 while test ! -d "$my_directory_path"; do
320 # ...make a list in topmost first order. Use a colon delimited
321 # list incase some portion of path contains whitespace.
322 my_dir_list="$my_directory_path:$my_dir_list"
323
324 # If the last portion added has no slash in it, the list is done
325 case $my_directory_path in */*) ;; *) break ;; esac
326
327 # ...otherwise throw away the child directory and loop
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
329 done
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
331
332 save_mkdir_p_IFS="$IFS"; IFS=':'
333 for my_dir in $my_dir_list; do
334 IFS="$save_mkdir_p_IFS"
335 # mkdir can fail with a `File exist' error if two processes
336 # try to create one of the directories concurrently. Don't
337 # stop in that case!
338 $MKDIR "$my_dir" 2>/dev/null || :
339 done
340 IFS="$save_mkdir_p_IFS"
341
342 # Bail out if we (or some other process) failed to create a directory.
343 test -d "$my_directory_path" || \
344 func_fatal_error "Failed to create \`$1'"
345 fi
346 }
347
348
349 # func_mktempdir [string]
350 # Make a temporary directory that won't clash with other running
351 # libtool processes, and avoids race conditions if possible. If
352 # given, STRING is the basename for that directory.
353 func_mktempdir ()
354 {
355 my_template="${TMPDIR-/tmp}/${1-$progname}"
356
357 if test "$opt_dry_run" = ":"; then
358 # Return a directory name, but don't create it in dry-run mode
359 my_tmpdir="${my_template}-$$"
360 else
361
362 # If mktemp works, use that first and foremost
363 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
364
365 if test ! -d "$my_tmpdir"; then
366 # Failing that, at least try and use $RANDOM to avoid a race
367 my_tmpdir="${my_template}-${RANDOM-0}$$"
368
369 save_mktempdir_umask=`umask`
370 umask 0077
371 $MKDIR "$my_tmpdir"
372 umask $save_mktempdir_umask
373 fi
374
375 # If we're not in dry-run mode, bomb out on failure
376 test -d "$my_tmpdir" || \
377 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
378 fi
379
380 $ECHO "X$my_tmpdir" | $Xsed
381 }
382
383
384 # func_quote_for_eval arg
385 # Aesthetically quote ARG to be evaled later.
386 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
387 # is double-quoted, suitable for a subsequent eval, whereas
388 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
389 # which are still active within double quotes backslashified.
390 func_quote_for_eval ()
391 {
392 case $1 in
393 *[\\\`\"\$]*)
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
395 *)
396 func_quote_for_eval_unquoted_result="$1" ;;
397 esac
398
399 case $func_quote_for_eval_unquoted_result in
400 # Double-quote args containing shell metacharacters to delay
401 # word splitting, command substitution and and variable
402 # expansion for a subsequent eval.
403 # Many Bourne shells cannot handle close brackets correctly
404 # in scan sets, so we specify it separately.
405 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
406 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
407 ;;
408 *)
409 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
410 esac
411 }
412
413
414 # func_quote_for_expand arg
415 # Aesthetically quote ARG to be evaled later; same as above,
416 # but do not quote variable references.
417 func_quote_for_expand ()
418 {
419 case $1 in
420 *[\\\`\"]*)
421 my_arg=`$ECHO "X$1" | $Xsed \
422 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
423 *)
424 my_arg="$1" ;;
425 esac
426
427 case $my_arg in
428 # Double-quote args containing shell metacharacters to delay
429 # word splitting and command substitution for a subsequent eval.
430 # Many Bourne shells cannot handle close brackets correctly
431 # in scan sets, so we specify it separately.
432 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
433 my_arg="\"$my_arg\""
434 ;;
435 esac
436
437 func_quote_for_expand_result="$my_arg"
438 }
439
440
441 # func_show_eval cmd [fail_exp]
442 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
443 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
444 # is given, then evaluate it.
445 func_show_eval ()
446 {
447 my_cmd="$1"
448 my_fail_exp="${2-:}"
449
450 ${opt_silent-false} || {
451 func_quote_for_expand "$my_cmd"
452 eval "func_echo $func_quote_for_expand_result"
453 }
454
455 if ${opt_dry_run-false}; then :; else
456 eval "$my_cmd"
457 my_status=$?
458 if test "$my_status" -eq 0; then :; else
459 eval "(exit $my_status); $my_fail_exp"
460 fi
461 fi
462 }
463
464
465 # func_show_eval_locale cmd [fail_exp]
466 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
467 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
468 # is given, then evaluate it. Use the saved locale for evaluation.
469 func_show_eval_locale ()
470 {
471 my_cmd="$1"
472 my_fail_exp="${2-:}"
473
474 ${opt_silent-false} || {
475 func_quote_for_expand "$my_cmd"
476 eval "func_echo $func_quote_for_expand_result"
477 }
478
479 if ${opt_dry_run-false}; then :; else
480 eval "$lt_user_locale
481 $my_cmd"
482 my_status=$?
483 eval "$lt_safe_locale"
484 if test "$my_status" -eq 0; then :; else
485 eval "(exit $my_status); $my_fail_exp"
486 fi
487 fi
488 }
489
490
491
492
493
494 # func_version
495 # Echo version message to standard output and exit.
496 func_version ()
497 {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
499 s/^# //
500 s/^# *$//
501 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
502 p
503 }' < "$progpath"
504 exit $?
505 }
506
507 # func_usage
508 # Echo short help message to standard output and exit.
509 func_usage ()
510 {
511 $SED -n '/^# Usage:/,/# -h/ {
512 s/^# //
513 s/^# *$//
514 s/\$progname/'$progname'/
515 p
516 }' < "$progpath"
517 $ECHO
518 $ECHO "run \`$progname --help | more' for full usage"
519 exit $?
520 }
521
522 # func_help
523 # Echo long help message to standard output and exit.
524 func_help ()
525 {
526 $SED -n '/^# Usage:/,/# Report bugs to/ {
527 s/^# //
528 s/^# *$//
529 s*\$progname*'$progname'*
530 s*\$host*'"$host"'*
531 s*\$SHELL*'"$SHELL"'*
532 s*\$LTCC*'"$LTCC"'*
533 s*\$LTCFLAGS*'"$LTCFLAGS"'*
534 s*\$LD*'"$LD"'*
535 s/\$with_gnu_ld/'"$with_gnu_ld"'/
536 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
538 p
539 }' < "$progpath"
540 exit $?
541 }
542
543 # func_missing_arg argname
544 # Echo program name prefixed message to standard error and set global
545 # exit_cmd.
546 func_missing_arg ()
547 {
548 func_error "missing argument for $1"
549 exit_cmd=exit
550 }
551
552 exit_cmd=:
553
554
555
556
557
558 # Check that we have a working $ECHO.
63559 if test "X$1" = X--no-reexec; then
64560 # Discard the --no-reexec flag, and continue.
65561 shift
66562 elif test "X$1" = X--fallback-echo; then
67563 # Avoid inline document here, it may be left over
68564 :
69 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
70 # Yippee, $echo works!
565 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
566 # Yippee, $ECHO works!
71567 :
72568 else
73 # Restart under the correct shell, and then maybe $echo will work.
569 # Restart under the correct shell, and then maybe $ECHO will work.
74570 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
75571 fi
76572
83579 exit $EXIT_SUCCESS
84580 fi
85581
86 default_mode=
87 help="Try \`$progname --help' for more information."
88582 magic="%%%MAGIC variable%%%"
89 mkdir="mkdir"
90 mv="mv -f"
91 rm="rm -f"
92
93 # Sed substitution that helps us do robust quoting. It backslashifies
94 # metacharacters that are still active within double-quoted strings.
95 Xsed="${SED}"' -e 1s/^X//'
96 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
97 # test EBCDIC or ASCII
98 case `echo X|tr X '\101'` in
99 A) # ASCII based system
100 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
101 SP2NL='tr \040 \012'
102 NL2SP='tr \015\012 \040\040'
103 ;;
104 *) # EBCDIC based system
105 SP2NL='tr \100 \n'
106 NL2SP='tr \r\n \100\100'
107 ;;
108 esac
109
110 # NLS nuisances.
111 # Only set LANG and LC_ALL to C if already set.
112 # These must not be set unconditionally because not all systems understand
113 # e.g. LANG=C (notably SCO).
114 # We save the old values to restore during execute mode.
115 lt_env=
116 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
117 do
118 eval "if test \"\${$lt_var+set}\" = set; then
119 save_$lt_var=\$$lt_var
120 lt_env=\"$lt_var=\$$lt_var \$lt_env\"
121 $lt_var=C
122 export $lt_var
123 fi"
124 done
125
126 if test -n "$lt_env"; then
127 lt_env="env $lt_env"
128 fi
129
130 # Make sure IFS has a sensible default
131 lt_nl='
132 '
133 IFS=" $lt_nl"
134
135 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
136 $echo "$modename: not configured to build any kind of library" 1>&2
137 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
138 exit $EXIT_FAILURE
139 fi
583 magic_exe="%%%MAGIC EXE variable%%%"
140584
141585 # Global variables.
142 mode=$default_mode
586 # $mode is unset
143587 nonopt=
144 prev=
145 prevopt=
146 run=
147 show="$echo"
148 show_help=
149588 execute_dlfiles=
150 duplicate_deps=no
151589 preserve_args=
152590 lo2o="s/\\.lo\$/.${objext}/"
153591 o2lo="s/\\.${objext}\$/.lo/"
154592 extracted_archives=
155593 extracted_serial=0
156594
157 #####################################
158 # Shell function definitions:
159 # This seems to be the best place for them
160
161 # func_mktempdir [string]
162 # Make a temporary directory that won't clash with other running
163 # libtool processes, and avoids race conditions if possible. If
164 # given, STRING is the basename for that directory.
165 func_mktempdir ()
595 opt_dry_run=false
596 opt_duplicate_deps=false
597 opt_silent=false
598 opt_debug=:
599
600 # If this variable is set in any of the actions, the command in it
601 # will be execed at the end. This prevents here-documents from being
602 # left over by shells.
603 exec_cmd=
604
605 # func_fatal_configuration arg...
606 # Echo program name prefixed message to standard error, followed by
607 # a configuration failure hint, and exit.
608 func_fatal_configuration ()
166609 {
167 my_template="${TMPDIR-/tmp}/${1-$progname}"
168
169 if test "$run" = ":"; then
170 # Return a directory name, but don't create it in dry-run mode
171 my_tmpdir="${my_template}-$$"
610 func_error ${1+"$@"}
611 func_error "See the $PACKAGE documentation for more information."
612 func_fatal_error "Fatal configuration error."
613 }
614
615
616 # func_config
617 # Display the configuration for all the tags in this script.
618 func_config ()
619 {
620 re_begincf='^# ### BEGIN LIBTOOL'
621 re_endcf='^# ### END LIBTOOL'
622
623 # Default configuration.
624 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
625
626 # Now print the configurations for the tags.
627 for tagname in $taglist; do
628 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
629 done
630
631 exit $?
632 }
633
634 # func_features
635 # Display the features supported by this script.
636 func_features ()
637 {
638 $ECHO "host: $host"
639 if test "$build_libtool_libs" = yes; then
640 $ECHO "enable shared libraries"
172641 else
173
174 # If mktemp works, use that first and foremost
175 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
176
177 if test ! -d "$my_tmpdir"; then
178 # Failing that, at least try and use $RANDOM to avoid a race
179 my_tmpdir="${my_template}-${RANDOM-0}$$"
180
181 save_mktempdir_umask=`umask`
182 umask 0077
183 $mkdir "$my_tmpdir"
184 umask $save_mktempdir_umask
642 $ECHO "disable shared libraries"
643 fi
644 if test "$build_old_libs" = yes; then
645 $ECHO "enable static libraries"
646 else
647 $ECHO "disable static libraries"
648 fi
649
650 exit $?
651 }
652
653 # func_enable_tag tagname
654 # Verify that TAGNAME is valid, and either flag an error and exit, or
655 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
656 # variable here.
657 func_enable_tag ()
658 {
659 # Global variable:
660 tagname="$1"
661
662 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
663 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
664 sed_extractcf="/$re_begincf/,/$re_endcf/p"
665
666 # Validate tagname.
667 case $tagname in
668 *[!-_A-Za-z0-9,/]*)
669 func_fatal_error "invalid tag name: $tagname"
670 ;;
671 esac
672
673 # Don't test for the "default" C tag, as we know it's
674 # there but not specially marked.
675 case $tagname in
676 CC) ;;
677 *)
678 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
679 taglist="$taglist $tagname"
680
681 # Evaluate the configuration. Be careful to quote the path
682 # and the sed script, to avoid splitting on whitespace, but
683 # also don't use non-portable quotes within backquotes within
684 # quotes we have to do it in 2 steps:
685 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
686 eval "$extractedcf"
687 else
688 func_error "ignoring unknown tag $tagname"
185689 fi
186
187 # If we're not in dry-run mode, bomb out on failure
188 test -d "$my_tmpdir" || {
189 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
690 ;;
691 esac
692 }
693
694 # Parse options once, thoroughly. This comes as soon as possible in
695 # the script to make things like `libtool --version' happen quickly.
696 {
697
698 # Shorthand for --mode=foo, only valid as the first argument
699 case $1 in
700 clean|clea|cle|cl)
701 shift; set dummy --mode clean ${1+"$@"}; shift
702 ;;
703 compile|compil|compi|comp|com|co|c)
704 shift; set dummy --mode compile ${1+"$@"}; shift
705 ;;
706 execute|execut|execu|exec|exe|ex|e)
707 shift; set dummy --mode execute ${1+"$@"}; shift
708 ;;
709 finish|finis|fini|fin|fi|f)
710 shift; set dummy --mode finish ${1+"$@"}; shift
711 ;;
712 install|instal|insta|inst|ins|in|i)
713 shift; set dummy --mode install ${1+"$@"}; shift
714 ;;
715 link|lin|li|l)
716 shift; set dummy --mode link ${1+"$@"}; shift
717 ;;
718 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
719 shift; set dummy --mode uninstall ${1+"$@"}; shift
720 ;;
721 esac
722
723 # Parse non-mode specific arguments:
724 while test "$#" -gt 0; do
725 opt="$1"
726 shift
727
728 case $opt in
729 --config) func_config ;;
730
731 --debug) preserve_args="$preserve_args $opt"
732 func_echo "enabling shell trace mode"
733 opt_debug='set -x'
734 $opt_debug
735 ;;
736
737 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
738 execute_dlfiles="$execute_dlfiles $1"
739 shift
740 ;;
741
742 --dry-run | -n) opt_dry_run=: ;;
743 --features) func_features ;;
744 --finish) mode="finish" ;;
745
746 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
747 case $1 in
748 # Valid mode arguments:
749 clean) ;;
750 compile) ;;
751 execute) ;;
752 finish) ;;
753 install) ;;
754 link) ;;
755 relink) ;;
756 uninstall) ;;
757
758 # Catch anything else as an error
759 *) func_error "invalid argument for $opt"
760 exit_cmd=exit
761 break
762 ;;
763 esac
764
765 mode="$1"
766 shift
767 ;;
768
769 --preserve-dup-deps)
770 opt_duplicate_deps=: ;;
771
772 --quiet|--silent) preserve_args="$preserve_args $opt"
773 opt_silent=:
774 ;;
775
776 --verbose| -v) preserve_args="$preserve_args $opt"
777 opt_silent=false
778 ;;
779
780 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
781 preserve_args="$preserve_args $opt $1"
782 func_enable_tag "$1" # tagname is set here
783 shift
784 ;;
785
786 # Separate optargs to long options:
787 -dlopen=*|--mode=*|--tag=*)
788 func_opt_split "$opt"
789 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
790 shift
791 ;;
792
793 -\?|-h) func_usage ;;
794 --help) opt_help=: ;;
795 --version) func_version ;;
796
797 -*) func_fatal_help "unrecognized option \`$opt'" ;;
798
799 *) nonopt="$opt"
800 break
801 ;;
802 esac
803 done
804
805
806 case $host in
807 *cygwin* | *mingw* | *pw32* | *cegcc*)
808 # don't eliminate duplications in $postdeps and $predeps
809 opt_duplicate_compiler_generated_deps=:
810 ;;
811 *)
812 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
813 ;;
814 esac
815
816 # Having warned about all mis-specified options, bail out if
817 # anything was wrong.
818 $exit_cmd $EXIT_FAILURE
819 }
820
821 # func_check_version_match
822 # Ensure that we are using m4 macros, and libtool script from the same
823 # release of libtool.
824 func_check_version_match ()
825 {
826 if test "$package_revision" != "$macro_revision"; then
827 if test "$VERSION" != "$macro_version"; then
828 if test -z "$macro_version"; then
829 cat >&2 <<_LT_EOF
830 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
831 $progname: definition of this LT_INIT comes from an older release.
832 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
833 $progname: and run autoconf again.
834 _LT_EOF
835 else
836 cat >&2 <<_LT_EOF
837 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
838 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
839 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
840 $progname: and run autoconf again.
841 _LT_EOF
842 fi
843 else
844 cat >&2 <<_LT_EOF
845 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
846 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
847 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
848 $progname: of $PACKAGE $VERSION and run autoconf again.
849 _LT_EOF
850 fi
851
852 exit $EXIT_MISMATCH
853 fi
854 }
855
856
857 ## ----------- ##
858 ## Main. ##
859 ## ----------- ##
860
861 $opt_help || {
862 # Sanity checks first:
863 func_check_version_match
864
865 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
866 func_fatal_configuration "not configured to build any kind of library"
867 fi
868
869 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
870
871
872 # Darwin sucks
873 eval std_shrext=\"$shrext_cmds\"
874
875
876 # Only execute mode is allowed to have -dlopen flags.
877 if test -n "$execute_dlfiles" && test "$mode" != execute; then
878 func_error "unrecognized option \`-dlopen'"
879 $ECHO "$help" 1>&2
880 exit $EXIT_FAILURE
881 fi
882
883 # Change the help message to a mode-specific one.
884 generic_help="$help"
885 help="Try \`$progname --help --mode=$mode' for more information."
886 }
887
888
889 # func_lalib_p file
890 # True iff FILE is a libtool `.la' library or `.lo' object file.
891 # This function is only a basic sanity check; it will hardly flush out
892 # determined imposters.
893 func_lalib_p ()
894 {
895 test -f "$1" &&
896 $SED -e 4q "$1" 2>/dev/null \
897 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
898 }
899
900 # func_lalib_unsafe_p file
901 # True iff FILE is a libtool `.la' library or `.lo' object file.
902 # This function implements the same check as func_lalib_p without
903 # resorting to external programs. To this end, it redirects stdin and
904 # closes it afterwards, without saving the original file descriptor.
905 # As a safety measure, use it only where a negative result would be
906 # fatal anyway. Works if `file' does not exist.
907 func_lalib_unsafe_p ()
908 {
909 lalib_p=no
910 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
911 for lalib_p_l in 1 2 3 4
912 do
913 read lalib_p_line
914 case "$lalib_p_line" in
915 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
916 esac
917 done
918 exec 0<&5 5<&-
919 fi
920 test "$lalib_p" = yes
921 }
922
923 # func_ltwrapper_script_p file
924 # True iff FILE is a libtool wrapper script
925 # This function is only a basic sanity check; it will hardly flush out
926 # determined imposters.
927 func_ltwrapper_script_p ()
928 {
929 func_lalib_p "$1"
930 }
931
932 # func_ltwrapper_executable_p file
933 # True iff FILE is a libtool wrapper executable
934 # This function is only a basic sanity check; it will hardly flush out
935 # determined imposters.
936 func_ltwrapper_executable_p ()
937 {
938 func_ltwrapper_exec_suffix=
939 case $1 in
940 *.exe) ;;
941 *) func_ltwrapper_exec_suffix=.exe ;;
942 esac
943 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
944 }
945
946 # func_ltwrapper_scriptname file
947 # Assumes file is an ltwrapper_executable
948 # uses $file to determine the appropriate filename for a
949 # temporary ltwrapper_script.
950 func_ltwrapper_scriptname ()
951 {
952 func_ltwrapper_scriptname_result=""
953 if func_ltwrapper_executable_p "$1"; then
954 func_dirname_and_basename "$1" "" "."
955 func_stripname '' '.exe' "$func_basename_result"
956 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
957 fi
958 }
959
960 # func_ltwrapper_p file
961 # True iff FILE is a libtool wrapper script or wrapper executable
962 # This function is only a basic sanity check; it will hardly flush out
963 # determined imposters.
964 func_ltwrapper_p ()
965 {
966 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
967 }
968
969
970 # func_execute_cmds commands fail_cmd
971 # Execute tilde-delimited COMMANDS.
972 # If FAIL_CMD is given, eval that upon failure.
973 # FAIL_CMD may read-access the current command in variable CMD!
974 func_execute_cmds ()
975 {
976 $opt_debug
977 save_ifs=$IFS; IFS='~'
978 for cmd in $1; do
979 IFS=$save_ifs
980 eval cmd=\"$cmd\"
981 func_show_eval "$cmd" "${2-:}"
982 done
983 IFS=$save_ifs
984 }
985
986
987 # func_source file
988 # Source FILE, adding directory component if necessary.
989 # Note that it is not necessary on cygwin/mingw to append a dot to
990 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
991 # behavior happens only for exec(3), not for open(2)! Also, sourcing
992 # `FILE.' does not work on cygwin managed mounts.
993 func_source ()
994 {
995 $opt_debug
996 case $1 in
997 */* | *\\*) . "$1" ;;
998 *) . "./$1" ;;
999 esac
1000 }
1001
1002
1003 # func_infer_tag arg
1004 # Infer tagged configuration to use if any are available and
1005 # if one wasn't chosen via the "--tag" command line option.
1006 # Only attempt this if the compiler in the base compile
1007 # command doesn't match the default compiler.
1008 # arg is usually of the form 'gcc ...'
1009 func_infer_tag ()
1010 {
1011 $opt_debug
1012 if test -n "$available_tags" && test -z "$tagname"; then
1013 CC_quoted=
1014 for arg in $CC; do
1015 func_quote_for_eval "$arg"
1016 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1017 done
1018 case $@ in
1019 # Blanks in the command may have been stripped by the calling shell,
1020 # but not from the CC environment variable when configure was run.
1021 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
1022 # Blanks at the start of $base_compile will cause this to fail
1023 # if we don't check for them as well.
1024 *)
1025 for z in $available_tags; do
1026 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
1027 # Evaluate the configuration.
1028 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
1029 CC_quoted=
1030 for arg in $CC; do
1031 # Double-quote args containing other shell metacharacters.
1032 func_quote_for_eval "$arg"
1033 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1034 done
1035 case "$@ " in
1036 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
1037 # The compiler in the base compile command matches
1038 # the one in the tagged configuration.
1039 # Assume this is the tagged configuration we want.
1040 tagname=$z
1041 break
1042 ;;
1043 esac
1044 fi
1045 done
1046 # If $tagname still isn't set, then no tagged configuration
1047 # was found and let the user know that the "--tag" command
1048 # line option must be used.
1049 if test -z "$tagname"; then
1050 func_echo "unable to infer tagged configuration"
1051 func_fatal_error "specify a tag with \`--tag'"
1052 # else
1053 # func_verbose "using $tagname tagged configuration"
1054 fi
1055 ;;
1056 esac
1057 fi
1058 }
1059
1060
1061
1062 # func_write_libtool_object output_name pic_name nonpic_name
1063 # Create a libtool object file (analogous to a ".la" file),
1064 # but don't create it if we're doing a dry run.
1065 func_write_libtool_object ()
1066 {
1067 write_libobj=${1}
1068 if test "$build_libtool_libs" = yes; then
1069 write_lobj=\'${2}\'
1070 else
1071 write_lobj=none
1072 fi
1073
1074 if test "$build_old_libs" = yes; then
1075 write_oldobj=\'${3}\'
1076 else
1077 write_oldobj=none
1078 fi
1079
1080 $opt_dry_run || {
1081 cat >${write_libobj}T <<EOF
1082 # $write_libobj - a libtool object file
1083 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
1084 #
1085 # Please DO NOT delete this file!
1086 # It is necessary for linking the library.
1087
1088 # Name of the PIC object.
1089 pic_object=$write_lobj
1090
1091 # Name of the non-PIC object
1092 non_pic_object=$write_oldobj
1093
1094 EOF
1095 $MV "${write_libobj}T" "${write_libobj}"
1096 }
1097 }
1098
1099 # func_mode_compile arg...
1100 func_mode_compile ()
1101 {
1102 $opt_debug
1103 # Get the compilation command and the source file.
1104 base_compile=
1105 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1106 suppress_opt=yes
1107 suppress_output=
1108 arg_mode=normal
1109 libobj=
1110 later=
1111 pie_flag=
1112
1113 for arg
1114 do
1115 case $arg_mode in
1116 arg )
1117 # do not "continue". Instead, add this to base_compile
1118 lastarg="$arg"
1119 arg_mode=normal
1120 ;;
1121
1122 target )
1123 libobj="$arg"
1124 arg_mode=normal
1125 continue
1126 ;;
1127
1128 normal )
1129 # Accept any command-line options.
1130 case $arg in
1131 -o)
1132 test -n "$libobj" && \
1133 func_fatal_error "you cannot specify \`-o' more than once"
1134 arg_mode=target
1135 continue
1136 ;;
1137
1138 -pie | -fpie | -fPIE)
1139 pie_flag="$pie_flag $arg"
1140 continue
1141 ;;
1142
1143 -shared | -static | -prefer-pic | -prefer-non-pic)
1144 later="$later $arg"
1145 continue
1146 ;;
1147
1148 -no-suppress)
1149 suppress_opt=no
1150 continue
1151 ;;
1152
1153 -Xcompiler)
1154 arg_mode=arg # the next one goes into the "base_compile" arg list
1155 continue # The current "srcfile" will either be retained or
1156 ;; # replaced later. I would guess that would be a bug.
1157
1158 -Wc,*)
1159 func_stripname '-Wc,' '' "$arg"
1160 args=$func_stripname_result
1161 lastarg=
1162 save_ifs="$IFS"; IFS=','
1163 for arg in $args; do
1164 IFS="$save_ifs"
1165 func_quote_for_eval "$arg"
1166 lastarg="$lastarg $func_quote_for_eval_result"
1167 done
1168 IFS="$save_ifs"
1169 func_stripname ' ' '' "$lastarg"
1170 lastarg=$func_stripname_result
1171
1172 # Add the arguments to base_compile.
1173 base_compile="$base_compile $lastarg"
1174 continue
1175 ;;
1176
1177 *)
1178 # Accept the current argument as the source file.
1179 # The previous "srcfile" becomes the current argument.
1180 #
1181 lastarg="$srcfile"
1182 srcfile="$arg"
1183 ;;
1184 esac # case $arg
1185 ;;
1186 esac # case $arg_mode
1187
1188 # Aesthetically quote the previous argument.
1189 func_quote_for_eval "$lastarg"
1190 base_compile="$base_compile $func_quote_for_eval_result"
1191 done # for arg
1192
1193 case $arg_mode in
1194 arg)
1195 func_fatal_error "you must specify an argument for -Xcompile"
1196 ;;
1197 target)
1198 func_fatal_error "you must specify a target with \`-o'"
1199 ;;
1200 *)
1201 # Get the name of the library object.
1202 test -z "$libobj" && {
1203 func_basename "$srcfile"
1204 libobj="$func_basename_result"
1205 }
1206 ;;
1207 esac
1208
1209 # Recognize several different file suffixes.
1210 # If the user specifies -o file.o, it is replaced with file.lo
1211 case $libobj in
1212 *.[cCFSifmso] | \
1213 *.ada | *.adb | *.ads | *.asm | \
1214 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1215 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
1216 func_xform "$libobj"
1217 libobj=$func_xform_result
1218 ;;
1219 esac
1220
1221 case $libobj in
1222 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
1223 *)
1224 func_fatal_error "cannot determine name of library object from \`$libobj'"
1225 ;;
1226 esac
1227
1228 func_infer_tag $base_compile
1229
1230 for arg in $later; do
1231 case $arg in
1232 -shared)
1233 test "$build_libtool_libs" != yes && \
1234 func_fatal_configuration "can not build a shared library"
1235 build_old_libs=no
1236 continue
1237 ;;
1238
1239 -static)
1240 build_libtool_libs=no
1241 build_old_libs=yes
1242 continue
1243 ;;
1244
1245 -prefer-pic)
1246 pic_mode=yes
1247 continue
1248 ;;
1249
1250 -prefer-non-pic)
1251 pic_mode=no
1252 continue
1253 ;;
1254 esac
1255 done
1256
1257 func_quote_for_eval "$libobj"
1258 test "X$libobj" != "X$func_quote_for_eval_result" \
1259 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
1260 && func_warning "libobj name \`$libobj' may not contain shell special characters."
1261 func_dirname_and_basename "$obj" "/" ""
1262 objname="$func_basename_result"
1263 xdir="$func_dirname_result"
1264 lobj=${xdir}$objdir/$objname
1265
1266 test -z "$base_compile" && \
1267 func_fatal_help "you must specify a compilation command"
1268
1269 # Delete any leftover library objects.
1270 if test "$build_old_libs" = yes; then
1271 removelist="$obj $lobj $libobj ${libobj}T"
1272 else
1273 removelist="$lobj $libobj ${libobj}T"
1274 fi
1275
1276 # On Cygwin there's no "real" PIC flag so we must build both object types
1277 case $host_os in
1278 cygwin* | mingw* | pw32* | os2* | cegcc*)
1279 pic_mode=default
1280 ;;
1281 esac
1282 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
1283 # non-PIC code in shared libraries is not supported
1284 pic_mode=default
1285 fi
1286
1287 # Calculate the filename of the output object if compiler does
1288 # not support -o with -c
1289 if test "$compiler_c_o" = no; then
1290 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
1291 lockfile="$output_obj.lock"
1292 else
1293 output_obj=
1294 need_locks=no
1295 lockfile=
1296 fi
1297
1298 # Lock this critical section if it is needed
1299 # We use this script file to make the link, it avoids creating a new file
1300 if test "$need_locks" = yes; then
1301 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
1302 func_echo "Waiting for $lockfile to be removed"
1303 sleep 2
1304 done
1305 elif test "$need_locks" = warn; then
1306 if test -f "$lockfile"; then
1307 $ECHO "\
1308 *** ERROR, $lockfile exists and contains:
1309 `cat $lockfile 2>/dev/null`
1310
1311 This indicates that another process is trying to use the same
1312 temporary object file, and libtool could not work around it because
1313 your compiler does not support \`-c' and \`-o' together. If you
1314 repeat this compilation, it may succeed, by chance, but you had better
1315 avoid parallel builds (make -j) in this platform, or get a better
1316 compiler."
1317
1318 $opt_dry_run || $RM $removelist
1901319 exit $EXIT_FAILURE
191 }
1320 fi
1321 removelist="$removelist $output_obj"
1322 $ECHO "$srcfile" > "$lockfile"
1921323 fi
1931324
194 $echo "X$my_tmpdir" | $Xsed
1325 $opt_dry_run || $RM $removelist
1326 removelist="$removelist $lockfile"
1327 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
1328
1329 if test -n "$fix_srcfile_path"; then
1330 eval srcfile=\"$fix_srcfile_path\"
1331 fi
1332 func_quote_for_eval "$srcfile"
1333 qsrcfile=$func_quote_for_eval_result
1334
1335 # Only build a PIC object if we are building libtool libraries.
1336 if test "$build_libtool_libs" = yes; then
1337 # Without this assignment, base_compile gets emptied.
1338 fbsd_hideous_sh_bug=$base_compile
1339
1340 if test "$pic_mode" != no; then
1341 command="$base_compile $qsrcfile $pic_flag"
1342 else
1343 # Don't build PIC code
1344 command="$base_compile $qsrcfile"
1345 fi
1346
1347 func_mkdir_p "$xdir$objdir"
1348
1349 if test -z "$output_obj"; then
1350 # Place PIC objects in $objdir
1351 command="$command -o $lobj"
1352 fi
1353
1354 func_show_eval_locale "$command" \
1355 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
1356
1357 if test "$need_locks" = warn &&
1358 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1359 $ECHO "\
1360 *** ERROR, $lockfile contains:
1361 `cat $lockfile 2>/dev/null`
1362
1363 but it should contain:
1364 $srcfile
1365
1366 This indicates that another process is trying to use the same
1367 temporary object file, and libtool could not work around it because
1368 your compiler does not support \`-c' and \`-o' together. If you
1369 repeat this compilation, it may succeed, by chance, but you had better
1370 avoid parallel builds (make -j) in this platform, or get a better
1371 compiler."
1372
1373 $opt_dry_run || $RM $removelist
1374 exit $EXIT_FAILURE
1375 fi
1376
1377 # Just move the object if needed, then go on to compile the next one
1378 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
1379 func_show_eval '$MV "$output_obj" "$lobj"' \
1380 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1381 fi
1382
1383 # Allow error messages only from the first compilation.
1384 if test "$suppress_opt" = yes; then
1385 suppress_output=' >/dev/null 2>&1'
1386 fi
1387 fi
1388
1389 # Only build a position-dependent object if we build old libraries.
1390 if test "$build_old_libs" = yes; then
1391 if test "$pic_mode" != yes; then
1392 # Don't build PIC code
1393 command="$base_compile $qsrcfile$pie_flag"
1394 else
1395 command="$base_compile $qsrcfile $pic_flag"
1396 fi
1397 if test "$compiler_c_o" = yes; then
1398 command="$command -o $obj"
1399 fi
1400
1401 # Suppress compiler output if we already did a PIC compilation.
1402 command="$command$suppress_output"
1403 func_show_eval_locale "$command" \
1404 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
1405
1406 if test "$need_locks" = warn &&
1407 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1408 $ECHO "\
1409 *** ERROR, $lockfile contains:
1410 `cat $lockfile 2>/dev/null`
1411
1412 but it should contain:
1413 $srcfile
1414
1415 This indicates that another process is trying to use the same
1416 temporary object file, and libtool could not work around it because
1417 your compiler does not support \`-c' and \`-o' together. If you
1418 repeat this compilation, it may succeed, by chance, but you had better
1419 avoid parallel builds (make -j) in this platform, or get a better
1420 compiler."
1421
1422 $opt_dry_run || $RM $removelist
1423 exit $EXIT_FAILURE
1424 fi
1425
1426 # Just move the object if needed
1427 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1428 func_show_eval '$MV "$output_obj" "$obj"' \
1429 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1430 fi
1431 fi
1432
1433 $opt_dry_run || {
1434 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
1435
1436 # Unlock the critical section if it was locked
1437 if test "$need_locks" != no; then
1438 removelist=$lockfile
1439 $RM "$lockfile"
1440 fi
1441 }
1442
1443 exit $EXIT_SUCCESS
1951444 }
1961445
1446 $opt_help || {
1447 test "$mode" = compile && func_mode_compile ${1+"$@"}
1448 }
1449
1450 func_mode_help ()
1451 {
1452 # We need to display help for each of the modes.
1453 case $mode in
1454 "")
1455 # Generic help is extracted from the usage comments
1456 # at the start of this file.
1457 func_help
1458 ;;
1459
1460 clean)
1461 $ECHO \
1462 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
1463
1464 Remove files from the build directory.
1465
1466 RM is the name of the program to use to delete files associated with each FILE
1467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1468 to RM.
1469
1470 If FILE is a libtool library, object or program, all the files associated
1471 with it are deleted. Otherwise, only FILE itself is deleted using RM."
1472 ;;
1473
1474 compile)
1475 $ECHO \
1476 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
1477
1478 Compile a source file into a libtool library object.
1479
1480 This mode accepts the following additional options:
1481
1482 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
1483 -no-suppress do not suppress compiler output for multiple passes
1484 -prefer-pic try to building PIC objects only
1485 -prefer-non-pic try to building non-PIC objects only
1486 -shared do not build a \`.o' file suitable for static linking
1487 -static only build a \`.o' file suitable for static linking
1488
1489 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
1490 from the given SOURCEFILE.
1491
1492 The output file name is determined by removing the directory component from
1493 SOURCEFILE, then substituting the C source code suffix \`.c' with the
1494 library object suffix, \`.lo'."
1495 ;;
1496
1497 execute)
1498 $ECHO \
1499 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
1500
1501 Automatically set library path, then run a program.
1502
1503 This mode accepts the following additional options:
1504
1505 -dlopen FILE add the directory containing FILE to the library path
1506
1507 This mode sets the library path environment variable according to \`-dlopen'
1508 flags.
1509
1510 If any of the ARGS are libtool executable wrappers, then they are translated
1511 into their corresponding uninstalled binary, and any of their required library
1512 directories are added to the library path.
1513
1514 Then, COMMAND is executed, with ARGS as arguments."
1515 ;;
1516
1517 finish)
1518 $ECHO \
1519 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
1520
1521 Complete the installation of libtool libraries.
1522
1523 Each LIBDIR is a directory that contains libtool libraries.
1524
1525 The commands that this mode executes may require superuser privileges. Use
1526 the \`--dry-run' option if you just want to see what would be executed."
1527 ;;
1528
1529 install)
1530 $ECHO \
1531 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
1532
1533 Install executables or libraries.
1534
1535 INSTALL-COMMAND is the installation command. The first component should be
1536 either the \`install' or \`cp' program.
1537
1538 The following components of INSTALL-COMMAND are treated specially:
1539
1540 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
1541
1542 The rest of the components are interpreted as arguments to that command (only
1543 BSD-compatible install options are recognized)."
1544 ;;
1545
1546 link)
1547 $ECHO \
1548 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
1549
1550 Link object files or libraries together to form another library, or to
1551 create an executable program.
1552
1553 LINK-COMMAND is a command using the C compiler that you would use to create
1554 a program from several object files.
1555
1556 The following components of LINK-COMMAND are treated specially:
1557
1558 -all-static do not do any dynamic linking at all
1559 -avoid-version do not add a version suffix if possible
1560 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
1561 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
1562 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
1563 -export-symbols SYMFILE
1564 try to export only the symbols listed in SYMFILE
1565 -export-symbols-regex REGEX
1566 try to export only the symbols matching REGEX
1567 -LLIBDIR search LIBDIR for required installed libraries
1568 -lNAME OUTPUT-FILE requires the installed library libNAME
1569 -module build a library that can dlopened
1570 -no-fast-install disable the fast-install mode
1571 -no-install link a not-installable executable
1572 -no-undefined declare that a library does not refer to external symbols
1573 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
1574 -objectlist FILE Use a list of object files found in FILE to specify objects
1575 -precious-files-regex REGEX
1576 don't remove output files matching REGEX
1577 -release RELEASE specify package release information
1578 -rpath LIBDIR the created library will eventually be installed in LIBDIR
1579 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
1580 -shared only do dynamic linking of libtool libraries
1581 -shrext SUFFIX override the standard shared library file extension
1582 -static do not do any dynamic linking of uninstalled libtool libraries
1583 -static-libtool-libs
1584 do not do any dynamic linking of libtool libraries
1585 -version-info CURRENT[:REVISION[:AGE]]
1586 specify library version info [each variable defaults to 0]
1587 -weak LIBNAME declare that the target provides the LIBNAME interface
1588
1589 All other options (arguments beginning with \`-') are ignored.
1590
1591 Every other argument is treated as a filename. Files ending in \`.la' are
1592 treated as uninstalled libtool libraries, other files are standard or library
1593 object files.
1594
1595 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
1596 only library objects (\`.lo' files) may be specified, and \`-rpath' is
1597 required, except when creating a convenience library.
1598
1599 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
1600 using \`ar' and \`ranlib', or on Windows using \`lib'.
1601
1602 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
1603 is created, otherwise an executable program is created."
1604 ;;
1605
1606 uninstall)
1607 $ECHO \
1608 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
1609
1610 Remove libraries from an installation directory.
1611
1612 RM is the name of the program to use to delete files associated with each FILE
1613 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1614 to RM.
1615
1616 If FILE is a libtool library, all the files associated with it are deleted.
1617 Otherwise, only FILE itself is deleted using RM."
1618 ;;
1619
1620 *)
1621 func_fatal_help "invalid operation mode \`$mode'"
1622 ;;
1623 esac
1624
1625 $ECHO
1626 $ECHO "Try \`$progname --help' for more information about other modes."
1627
1628 exit $?
1629 }
1630
1631 # Now that we've collected a possible --mode arg, show help if necessary
1632 $opt_help && func_mode_help
1633
1634
1635 # func_mode_execute arg...
1636 func_mode_execute ()
1637 {
1638 $opt_debug
1639 # The first argument is the command name.
1640 cmd="$nonopt"
1641 test -z "$cmd" && \
1642 func_fatal_help "you must specify a COMMAND"
1643
1644 # Handle -dlopen flags immediately.
1645 for file in $execute_dlfiles; do
1646 test -f "$file" \
1647 || func_fatal_help "\`$file' is not a file"
1648
1649 dir=
1650 case $file in
1651 *.la)
1652 # Check to see that this really is a libtool archive.
1653 func_lalib_unsafe_p "$file" \
1654 || func_fatal_help "\`$lib' is not a valid libtool archive"
1655
1656 # Read the libtool library.
1657 dlname=
1658 library_names=
1659 func_source "$file"
1660
1661 # Skip this library if it cannot be dlopened.
1662 if test -z "$dlname"; then
1663 # Warn if it was a shared library.
1664 test -n "$library_names" && \
1665 func_warning "\`$file' was not linked with \`-export-dynamic'"
1666 continue
1667 fi
1668
1669 func_dirname "$file" "" "."
1670 dir="$func_dirname_result"
1671
1672 if test -f "$dir/$objdir/$dlname"; then
1673 dir="$dir/$objdir"
1674 else
1675 if test ! -f "$dir/$dlname"; then
1676 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
1677 fi
1678 fi
1679 ;;
1680
1681 *.lo)
1682 # Just add the directory containing the .lo file.
1683 func_dirname "$file" "" "."
1684 dir="$func_dirname_result"
1685 ;;
1686
1687 *)
1688 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
1689 continue
1690 ;;
1691 esac
1692
1693 # Get the absolute pathname.
1694 absdir=`cd "$dir" && pwd`
1695 test -n "$absdir" && dir="$absdir"
1696
1697 # Now add the directory to shlibpath_var.
1698 if eval "test -z \"\$$shlibpath_var\""; then
1699 eval "$shlibpath_var=\"\$dir\""
1700 else
1701 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
1702 fi
1703 done
1704
1705 # This variable tells wrapper scripts just to set shlibpath_var
1706 # rather than running their programs.
1707 libtool_execute_magic="$magic"
1708
1709 # Check if any of the arguments is a wrapper script.
1710 args=
1711 for file
1712 do
1713 case $file in
1714 -*) ;;
1715 *)
1716 # Do a test to see if this is really a libtool program.
1717 if func_ltwrapper_script_p "$file"; then
1718 func_source "$file"
1719 # Transform arg to wrapped name.
1720 file="$progdir/$program"
1721 elif func_ltwrapper_executable_p "$file"; then
1722 func_ltwrapper_scriptname "$file"
1723 func_source "$func_ltwrapper_scriptname_result"
1724 # Transform arg to wrapped name.
1725 file="$progdir/$program"
1726 fi
1727 ;;
1728 esac
1729 # Quote arguments (to preserve shell metacharacters).
1730 func_quote_for_eval "$file"
1731 args="$args $func_quote_for_eval_result"
1732 done
1733
1734 if test "X$opt_dry_run" = Xfalse; then
1735 if test -n "$shlibpath_var"; then
1736 # Export the shlibpath_var.
1737 eval "export $shlibpath_var"
1738 fi
1739
1740 # Restore saved environment variables
1741 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
1742 do
1743 eval "if test \"\${save_$lt_var+set}\" = set; then
1744 $lt_var=\$save_$lt_var; export $lt_var
1745 else
1746 $lt_unset $lt_var
1747 fi"
1748 done
1749
1750 # Now prepare to actually exec the command.
1751 exec_cmd="\$cmd$args"
1752 else
1753 # Display what would be done.
1754 if test -n "$shlibpath_var"; then
1755 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
1756 $ECHO "export $shlibpath_var"
1757 fi
1758 $ECHO "$cmd$args"
1759 exit $EXIT_SUCCESS
1760 fi
1761 }
1762
1763 test "$mode" = execute && func_mode_execute ${1+"$@"}
1764
1765
1766 # func_mode_finish arg...
1767 func_mode_finish ()
1768 {
1769 $opt_debug
1770 libdirs="$nonopt"
1771 admincmds=
1772
1773 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1774 for dir
1775 do
1776 libdirs="$libdirs $dir"
1777 done
1778
1779 for libdir in $libdirs; do
1780 if test -n "$finish_cmds"; then
1781 # Do each command in the finish commands.
1782 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
1783 '"$cmd"'"'
1784 fi
1785 if test -n "$finish_eval"; then
1786 # Do the single finish_eval.
1787 eval cmds=\"$finish_eval\"
1788 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
1789 $cmds"
1790 fi
1791 done
1792 fi
1793
1794 # Exit here if they wanted silent mode.
1795 $opt_silent && exit $EXIT_SUCCESS
1796
1797 $ECHO "X----------------------------------------------------------------------" | $Xsed
1798 $ECHO "Libraries have been installed in:"
1799 for libdir in $libdirs; do
1800 $ECHO " $libdir"
1801 done
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:"
1807 if test -n "$shlibpath_var"; then
1808 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
1809 $ECHO " during execution"
1810 fi
1811 if test -n "$runpath_var"; then
1812 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
1813 $ECHO " during linking"
1814 fi
1815 if test -n "$hardcode_libdir_flag_spec"; then
1816 libdir=LIBDIR
1817 eval flag=\"$hardcode_libdir_flag_spec\"
1818
1819 $ECHO " - use the \`$flag' linker flag"
1820 fi
1821 if test -n "$admincmds"; then
1822 $ECHO " - have your system administrator run these commands:$admincmds"
1823 fi
1824 if test -f /etc/ld.so.conf; then
1825 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
1826 fi
1827 $ECHO
1828
1829 $ECHO "See any operating system documentation about shared libraries for"
1830 case $host in
1831 solaris2.[6789]|solaris2.1[0-9])
1832 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
1833 $ECHO "pages."
1834 ;;
1835 *)
1836 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
1837 ;;
1838 esac
1839 $ECHO "X----------------------------------------------------------------------" | $Xsed
1840 exit $EXIT_SUCCESS
1841 }
1842
1843 test "$mode" = finish && func_mode_finish ${1+"$@"}
1844
1845
1846 # func_mode_install arg...
1847 func_mode_install ()
1848 {
1849 $opt_debug
1850 # There may be an optional sh(1) argument at the beginning of
1851 # install_prog (especially on Windows NT).
1852 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
1853 # Allow the use of GNU shtool's install command.
1854 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
1855 # Aesthetically quote it.
1856 func_quote_for_eval "$nonopt"
1857 install_prog="$func_quote_for_eval_result "
1858 arg=$1
1859 shift
1860 else
1861 install_prog=
1862 arg=$nonopt
1863 fi
1864
1865 # The real first argument should be the name of the installation program.
1866 # Aesthetically quote it.
1867 func_quote_for_eval "$arg"
1868 install_prog="$install_prog$func_quote_for_eval_result"
1869
1870 # We need to accept at least all the BSD install flags.
1871 dest=
1872 files=
1873 opts=
1874 prev=
1875 install_type=
1876 isdir=no
1877 stripme=
1878 for arg
1879 do
1880 if test -n "$dest"; then
1881 files="$files $dest"
1882 dest=$arg
1883 continue
1884 fi
1885
1886 case $arg in
1887 -d) isdir=yes ;;
1888 -f)
1889 case " $install_prog " in
1890 *[\\\ /]cp\ *) ;;
1891 *) prev=$arg ;;
1892 esac
1893 ;;
1894 -g | -m | -o)
1895 prev=$arg
1896 ;;
1897 -s)
1898 stripme=" -s"
1899 continue
1900 ;;
1901 -*)
1902 ;;
1903 *)
1904 # If the previous option needed an argument, then skip it.
1905 if test -n "$prev"; then
1906 prev=
1907 else
1908 dest=$arg
1909 continue
1910 fi
1911 ;;
1912 esac
1913
1914 # Aesthetically quote the argument.
1915 func_quote_for_eval "$arg"
1916 install_prog="$install_prog $func_quote_for_eval_result"
1917 done
1918
1919 test -z "$install_prog" && \
1920 func_fatal_help "you must specify an install program"
1921
1922 test -n "$prev" && \
1923 func_fatal_help "the \`$prev' option requires an argument"
1924
1925 if test -z "$files"; then
1926 if test -z "$dest"; then
1927 func_fatal_help "no file or destination specified"
1928 else
1929 func_fatal_help "you must specify a destination"
1930 fi
1931 fi
1932
1933 # Strip any trailing slash from the destination.
1934 func_stripname '' '/' "$dest"
1935 dest=$func_stripname_result
1936
1937 # Check to see that the destination is a directory.
1938 test -d "$dest" && isdir=yes
1939 if test "$isdir" = yes; then
1940 destdir="$dest"
1941 destname=
1942 else
1943 func_dirname_and_basename "$dest" "" "."
1944 destdir="$func_dirname_result"
1945 destname="$func_basename_result"
1946
1947 # Not a directory, so check to see that there is only one file specified.
1948 set dummy $files; shift
1949 test "$#" -gt 1 && \
1950 func_fatal_help "\`$dest' is not a directory"
1951 fi
1952 case $destdir in
1953 [\\/]* | [A-Za-z]:[\\/]*) ;;
1954 *)
1955 for file in $files; do
1956 case $file in
1957 *.lo) ;;
1958 *)
1959 func_fatal_help "\`$destdir' must be an absolute directory name"
1960 ;;
1961 esac
1962 done
1963 ;;
1964 esac
1965
1966 # This variable tells wrapper scripts just to set variables rather
1967 # than running their programs.
1968 libtool_install_magic="$magic"
1969
1970 staticlibs=
1971 future_libdirs=
1972 current_libdirs=
1973 for file in $files; do
1974
1975 # Do each installation.
1976 case $file in
1977 *.$libext)
1978 # Do the static libraries later.
1979 staticlibs="$staticlibs $file"
1980 ;;
1981
1982 *.la)
1983 # Check to see that this really is a libtool archive.
1984 func_lalib_unsafe_p "$file" \
1985 || func_fatal_help "\`$file' is not a valid libtool archive"
1986
1987 library_names=
1988 old_library=
1989 relink_command=
1990 func_source "$file"
1991
1992 # Add the libdir to current_libdirs if it is the destination.
1993 if test "X$destdir" = "X$libdir"; then
1994 case "$current_libdirs " in
1995 *" $libdir "*) ;;
1996 *) current_libdirs="$current_libdirs $libdir" ;;
1997 esac
1998 else
1999 # Note the libdir as a future libdir.
2000 case "$future_libdirs " in
2001 *" $libdir "*) ;;
2002 *) future_libdirs="$future_libdirs $libdir" ;;
2003 esac
2004 fi
2005
2006 func_dirname "$file" "/" ""
2007 dir="$func_dirname_result"
2008 dir="$dir$objdir"
2009
2010 if test -n "$relink_command"; then
2011 # Determine the prefix the user has applied to our future dir.
2012 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
2013
2014 # Don't allow the user to place us outside of our expected
2015 # location b/c this prevents finding dependent libraries that
2016 # are installed to the same prefix.
2017 # At present, this check doesn't affect windows .dll's that
2018 # are installed into $libdir/../bin (currently, that works fine)
2019 # but it's something to keep an eye on.
2020 test "$inst_prefix_dir" = "$destdir" && \
2021 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
2022
2023 if test -n "$inst_prefix_dir"; then
2024 # Stick the inst_prefix_dir data into the link command.
2025 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2026 else
2027 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
2028 fi
2029
2030 func_warning "relinking \`$file'"
2031 func_show_eval "$relink_command" \
2032 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
2033 fi
2034
2035 # See the names of the shared library.
2036 set dummy $library_names; shift
2037 if test -n "$1"; then
2038 realname="$1"
2039 shift
2040
2041 srcname="$realname"
2042 test -n "$relink_command" && srcname="$realname"T
2043
2044 # Install the shared library and build the symlinks.
2045 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
2046 'exit $?'
2047 tstripme="$stripme"
2048 case $host_os in
2049 cygwin* | mingw* | pw32* | cegcc*)
2050 case $realname in
2051 *.dll.a)
2052 tstripme=""
2053 ;;
2054 esac
2055 ;;
2056 esac
2057 if test -n "$tstripme" && test -n "$striplib"; then
2058 func_show_eval "$striplib $destdir/$realname" 'exit $?'
2059 fi
2060
2061 if test "$#" -gt 0; then
2062 # Delete the old symlinks, and create new ones.
2063 # Try `ln -sf' first, because the `ln' binary might depend on
2064 # the symlink we replace! Solaris /bin/ln does not understand -f,
2065 # so we also need to try rm && ln -s.
2066 for linkname
2067 do
2068 test "$linkname" != "$realname" \
2069 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
2070 done
2071 fi
2072
2073 # Do each command in the postinstall commands.
2074 lib="$destdir/$realname"
2075 func_execute_cmds "$postinstall_cmds" 'exit $?'
2076 fi
2077
2078 # Install the pseudo-library for information purposes.
2079 func_basename "$file"
2080 name="$func_basename_result"
2081 instname="$dir/$name"i
2082 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
2083
2084 # Maybe install the static library, too.
2085 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
2086 ;;
2087
2088 *.lo)
2089 # Install (i.e. copy) a libtool object.
2090
2091 # Figure out destination file name, if it wasn't already specified.
2092 if test -n "$destname"; then
2093 destfile="$destdir/$destname"
2094 else
2095 func_basename "$file"
2096 destfile="$func_basename_result"
2097 destfile="$destdir/$destfile"
2098 fi
2099
2100 # Deduce the name of the destination old-style object file.
2101 case $destfile in
2102 *.lo)
2103 func_lo2o "$destfile"
2104 staticdest=$func_lo2o_result
2105 ;;
2106 *.$objext)
2107 staticdest="$destfile"
2108 destfile=
2109 ;;
2110 *)
2111 func_fatal_help "cannot copy a libtool object to \`$destfile'"
2112 ;;
2113 esac
2114
2115 # Install the libtool object if requested.
2116 test -n "$destfile" && \
2117 func_show_eval "$install_prog $file $destfile" 'exit $?'
2118
2119 # Install the old object if enabled.
2120 if test "$build_old_libs" = yes; then
2121 # Deduce the name of the old-style object file.
2122 func_lo2o "$file"
2123 staticobj=$func_lo2o_result
2124 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
2125 fi
2126 exit $EXIT_SUCCESS
2127 ;;
2128
2129 *)
2130 # Figure out destination file name, if it wasn't already specified.
2131 if test -n "$destname"; then
2132 destfile="$destdir/$destname"
2133 else
2134 func_basename "$file"
2135 destfile="$func_basename_result"
2136 destfile="$destdir/$destfile"
2137 fi
2138
2139 # If the file is missing, and there is a .exe on the end, strip it
2140 # because it is most likely a libtool script we actually want to
2141 # install
2142 stripped_ext=""
2143 case $file in
2144 *.exe)
2145 if test ! -f "$file"; then
2146 func_stripname '' '.exe' "$file"
2147 file=$func_stripname_result
2148 stripped_ext=".exe"
2149 fi
2150 ;;
2151 esac
2152
2153 # Do a test to see if this is really a libtool program.
2154 case $host in
2155 *cygwin* | *mingw*)
2156 if func_ltwrapper_executable_p "$file"; then
2157 func_ltwrapper_scriptname "$file"
2158 wrapper=$func_ltwrapper_scriptname_result
2159 else
2160 func_stripname '' '.exe' "$file"
2161 wrapper=$func_stripname_result
2162 fi
2163 ;;
2164 *)
2165 wrapper=$file
2166 ;;
2167 esac
2168 if func_ltwrapper_script_p "$wrapper"; then
2169 notinst_deplibs=
2170 relink_command=
2171
2172 func_source "$wrapper"
2173
2174 # Check the variables that should have been set.
2175 test -z "$generated_by_libtool_version" && \
2176 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
2177
2178 finalize=yes
2179 for lib in $notinst_deplibs; do
2180 # Check to see that each library is installed.
2181 libdir=
2182 if test -f "$lib"; then
2183 func_source "$lib"
2184 fi
2185 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
2186 if test -n "$libdir" && test ! -f "$libfile"; then
2187 func_warning "\`$lib' has not been installed in \`$libdir'"
2188 finalize=no
2189 fi
2190 done
2191
2192 relink_command=
2193 func_source "$wrapper"
2194
2195 outputname=
2196 if test "$fast_install" = no && test -n "$relink_command"; then
2197 $opt_dry_run || {
2198 if test "$finalize" = yes; then
2199 tmpdir=`func_mktempdir`
2200 func_basename "$file$stripped_ext"
2201 file="$func_basename_result"
2202 outputname="$tmpdir/$file"
2203 # Replace the output file specification.
2204 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
2205
2206 $opt_silent || {
2207 func_quote_for_expand "$relink_command"
2208 eval "func_echo $func_quote_for_expand_result"
2209 }
2210 if eval "$relink_command"; then :
2211 else
2212 func_error "error: relink \`$file' with the above command before installing it"
2213 $opt_dry_run || ${RM}r "$tmpdir"
2214 continue
2215 fi
2216 file="$outputname"
2217 else
2218 func_warning "cannot relink \`$file'"
2219 fi
2220 }
2221 else
2222 # Install the binary that we compiled earlier.
2223 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
2224 fi
2225 fi
2226
2227 # remove .exe since cygwin /usr/bin/install will append another
2228 # one anyway
2229 case $install_prog,$host in
2230 */usr/bin/install*,*cygwin*)
2231 case $file:$destfile in
2232 *.exe:*.exe)
2233 # this is ok
2234 ;;
2235 *.exe:*)
2236 destfile=$destfile.exe
2237 ;;
2238 *:*.exe)
2239 func_stripname '' '.exe' "$destfile"
2240 destfile=$func_stripname_result
2241 ;;
2242 esac
2243 ;;
2244 esac
2245 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
2246 $opt_dry_run || if test -n "$outputname"; then
2247 ${RM}r "$tmpdir"
2248 fi
2249 ;;
2250 esac
2251 done
2252
2253 for file in $staticlibs; do
2254 func_basename "$file"
2255 name="$func_basename_result"
2256
2257 # Set up the ranlib parameters.
2258 oldlib="$destdir/$name"
2259
2260 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
2261
2262 if test -n "$stripme" && test -n "$old_striplib"; then
2263 func_show_eval "$old_striplib $oldlib" 'exit $?'
2264 fi
2265
2266 # Do each command in the postinstall commands.
2267 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
2268 done
2269
2270 test -n "$future_libdirs" && \
2271 func_warning "remember to run \`$progname --finish$future_libdirs'"
2272
2273 if test -n "$current_libdirs"; then
2274 # Maybe just do a dry run.
2275 $opt_dry_run && current_libdirs=" -n$current_libdirs"
2276 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
2277 else
2278 exit $EXIT_SUCCESS
2279 fi
2280 }
2281
2282 test "$mode" = install && func_mode_install ${1+"$@"}
2283
2284
2285 # func_generate_dlsyms outputname originator pic_p
2286 # Extract symbols from dlprefiles and create ${outputname}S.o with
2287 # a dlpreopen symbol table.
2288 func_generate_dlsyms ()
2289 {
2290 $opt_debug
2291 my_outputname="$1"
2292 my_originator="$2"
2293 my_pic_p="${3-no}"
2294 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
2295 my_dlsyms=
2296
2297 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2298 if test -n "$NM" && test -n "$global_symbol_pipe"; then
2299 my_dlsyms="${my_outputname}S.c"
2300 else
2301 func_error "not configured to extract global symbols from dlpreopened files"
2302 fi
2303 fi
2304
2305 if test -n "$my_dlsyms"; then
2306 case $my_dlsyms in
2307 "") ;;
2308 *.c)
2309 # Discover the nlist of each of the dlfiles.
2310 nlist="$output_objdir/${my_outputname}.nm"
2311
2312 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
2313
2314 # Parse the name list into a source file.
2315 func_verbose "creating $output_objdir/$my_dlsyms"
2316
2317 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
2318 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
2319 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
2320
2321 #ifdef __cplusplus
2322 extern \"C\" {
2323 #endif
2324
2325 /* External symbol declarations for the compiler. */\
2326 "
2327
2328 if test "$dlself" = yes; then
2329 func_verbose "generating symbol list for \`$output'"
2330
2331 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
2332
2333 # Add our own program objects to the symbol list.
2334 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2335 for progfile in $progfiles; do
2336 func_verbose "extracting global C symbols from \`$progfile'"
2337 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
2338 done
2339
2340 if test -n "$exclude_expsyms"; then
2341 $opt_dry_run || {
2342 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
2343 eval '$MV "$nlist"T "$nlist"'
2344 }
2345 fi
2346
2347 if test -n "$export_symbols_regex"; then
2348 $opt_dry_run || {
2349 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
2350 eval '$MV "$nlist"T "$nlist"'
2351 }
2352 fi
2353
2354 # Prepare the list of exported symbols
2355 if test -z "$export_symbols"; then
2356 export_symbols="$output_objdir/$outputname.exp"
2357 $opt_dry_run || {
2358 $RM $export_symbols
2359 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
2360 case $host in
2361 *cygwin* | *mingw* | *cegcc* )
2362 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2363 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
2364 ;;
2365 esac
2366 }
2367 else
2368 $opt_dry_run || {
2369 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
2370 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
2371 eval '$MV "$nlist"T "$nlist"'
2372 case $host in
2373 *cygwin | *mingw* | *cegcc* )
2374 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2375 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
2376 ;;
2377 esac
2378 }
2379 fi
2380 fi
2381
2382 for dlprefile in $dlprefiles; do
2383 func_verbose "extracting global C symbols from \`$dlprefile'"
2384 func_basename "$dlprefile"
2385 name="$func_basename_result"
2386 $opt_dry_run || {
2387 eval '$ECHO ": $name " >> "$nlist"'
2388 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2389 }
2390 done
2391
2392 $opt_dry_run || {
2393 # Make sure we have at least an empty file.
2394 test -f "$nlist" || : > "$nlist"
2395
2396 if test -n "$exclude_expsyms"; then
2397 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
2398 $MV "$nlist"T "$nlist"
2399 fi
2400
2401 # Try sorting and uniquifying the output.
2402 if $GREP -v "^: " < "$nlist" |
2403 if sort -k 3 </dev/null >/dev/null 2>&1; then
2404 sort -k 3
2405 else
2406 sort +2
2407 fi |
2408 uniq > "$nlist"S; then
2409 :
2410 else
2411 $GREP -v "^: " < "$nlist" > "$nlist"S
2412 fi
2413
2414 if test -f "$nlist"S; then
2415 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
2416 else
2417 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
2418 fi
2419
2420 $ECHO >> "$output_objdir/$my_dlsyms" "\
2421
2422 /* The mapping between symbol names and symbols. */
2423 typedef struct {
2424 const char *name;
2425 void *address;
2426 } lt_dlsymlist;
2427 "
2428 case $host in
2429 *cygwin* | *mingw* | *cegcc* )
2430 $ECHO >> "$output_objdir/$my_dlsyms" "\
2431 /* DATA imports from DLLs on WIN32 con't be const, because
2432 runtime relocations are performed -- see ld's documentation
2433 on pseudo-relocs. */"
2434 lt_dlsym_const= ;;
2435 *osf5*)
2436 echo >> "$output_objdir/$my_dlsyms" "\
2437 /* This system does not cope well with relocations in const data */"
2438 lt_dlsym_const= ;;
2439 *)
2440 lt_dlsym_const=const ;;
2441 esac
2442
2443 $ECHO >> "$output_objdir/$my_dlsyms" "\
2444 extern $lt_dlsym_const lt_dlsymlist
2445 lt_${my_prefix}_LTX_preloaded_symbols[];
2446 $lt_dlsym_const lt_dlsymlist
2447 lt_${my_prefix}_LTX_preloaded_symbols[] =
2448 {\
2449 { \"$my_originator\", (void *) 0 },"
2450
2451 case $need_lib_prefix in
2452 no)
2453 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
2454 ;;
2455 *)
2456 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
2457 ;;
2458 esac
2459 $ECHO >> "$output_objdir/$my_dlsyms" "\
2460 {0, (void *) 0}
2461 };
2462
2463 /* This works around a problem in FreeBSD linker */
2464 #ifdef FREEBSD_WORKAROUND
2465 static const void *lt_preloaded_setup() {
2466 return lt_${my_prefix}_LTX_preloaded_symbols;
2467 }
2468 #endif
2469
2470 #ifdef __cplusplus
2471 }
2472 #endif\
2473 "
2474 } # !$opt_dry_run
2475
2476 pic_flag_for_symtable=
2477 case "$compile_command " in
2478 *" -static "*) ;;
2479 *)
2480 case $host in
2481 # compiling the symbol table file with pic_flag works around
2482 # a FreeBSD bug that causes programs to crash when -lm is
2483 # linked before any other PIC object. But we must not use
2484 # pic_flag when linking with -static. The problem exists in
2485 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2486 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
2487 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
2488 *-*-hpux*)
2489 pic_flag_for_symtable=" $pic_flag" ;;
2490 *)
2491 if test "X$my_pic_p" != Xno; then
2492 pic_flag_for_symtable=" $pic_flag"
2493 fi
2494 ;;
2495 esac
2496 ;;
2497 esac
2498 symtab_cflags=
2499 for arg in $LTCFLAGS; do
2500 case $arg in
2501 -pie | -fpie | -fPIE) ;;
2502 *) symtab_cflags="$symtab_cflags $arg" ;;
2503 esac
2504 done
2505
2506 # Now compile the dynamic symbol file.
2507 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
2508
2509 # Clean up the generated files.
2510 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
2511
2512 # Transform the symbol file into the correct name.
2513 symfileobj="$output_objdir/${my_outputname}S.$objext"
2514 case $host in
2515 *cygwin* | *mingw* | *cegcc* )
2516 if test -f "$output_objdir/$my_outputname.def"; then
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%"`
2519 else
2520 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2522 fi
2523 ;;
2524 *)
2525 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2527 ;;
2528 esac
2529 ;;
2530 *)
2531 func_fatal_error "unknown suffix for \`$my_dlsyms'"
2532 ;;
2533 esac
2534 else
2535 # We keep going just in case the user didn't refer to
2536 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
2537 # really was required.
2538
2539 # Nullify the symbol file.
2540 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
2542 fi
2543 }
1972544
1982545 # func_win32_libid arg
1992546 # return the library type of file 'arg'
2032550 # that is supplied when $file_magic_command is called.
2042551 func_win32_libid ()
2052552 {
2553 $opt_debug
2062554 win32_libid_type="unknown"
2072555 win32_fileres=`file -L $1 2>/dev/null`
2082556 case $win32_fileres in
2102558 win32_libid_type="x86 archive import"
2112559 ;;
2122560 *ar\ archive*) # could be an import, or static
213 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
214 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
215 win32_nmres=`eval $NM -f posix -A $1 | \
216 $SED -n -e '1,100{
2561 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
2562 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2563 win32_nmres=`eval $NM -f posix -A $1 |
2564 $SED -n -e '
2565 1,100{
2172566 / I /{
218 s,.*,import,
219 p
220 q
221 }
222 }'`
2567 s,.*,import,
2568 p
2569 q
2570 }
2571 }'`
2232572 case $win32_nmres in
2242573 import*) win32_libid_type="x86 archive import";;
2252574 *) win32_libid_type="x86 archive static";;
2372586 esac
2382587 ;;
2392588 esac
240 $echo $win32_libid_type
2589 $ECHO "$win32_libid_type"
2412590 }
2422591
243
244 # func_infer_tag arg
245 # Infer tagged configuration to use if any are available and
246 # if one wasn't chosen via the "--tag" command line option.
247 # Only attempt this if the compiler in the base compile
248 # command doesn't match the default compiler.
249 # arg is usually of the form 'gcc ...'
250 func_infer_tag ()
251 {
252 if test -n "$available_tags" && test -z "$tagname"; then
253 CC_quoted=
254 for arg in $CC; do
255 case $arg in
256 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
257 arg="\"$arg\""
258 ;;
259 esac
260 CC_quoted="$CC_quoted $arg"
261 done
262 case $@ in
263 # Blanks in the command may have been stripped by the calling shell,
264 # but not from the CC environment variable when configure was run.
265 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
266 # Blanks at the start of $base_compile will cause this to fail
267 # if we don't check for them as well.
268 *)
269 for z in $available_tags; do
270 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
271 # Evaluate the configuration.
272 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
273 CC_quoted=
274 for arg in $CC; do
275 # Double-quote args containing other shell metacharacters.
276 case $arg in
277 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
278 arg="\"$arg\""
279 ;;
280 esac
281 CC_quoted="$CC_quoted $arg"
282 done
283 case "$@ " in
284 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
285 # The compiler in the base compile command matches
286 # the one in the tagged configuration.
287 # Assume this is the tagged configuration we want.
288 tagname=$z
289 break
290 ;;
291 esac
292 fi
293 done
294 # If $tagname still isn't set, then no tagged configuration
295 # was found and let the user know that the "--tag" command
296 # line option must be used.
297 if test -z "$tagname"; then
298 $echo "$modename: unable to infer tagged configuration"
299 $echo "$modename: specify a tag with \`--tag'" 1>&2
300 exit $EXIT_FAILURE
301 # else
302 # $echo "$modename: using $tagname tagged configuration"
303 fi
304 ;;
305 esac
306 fi
307 }
3082592
3092593
3102594 # func_extract_an_archive dir oldlib
3112595 func_extract_an_archive ()
3122596 {
2597 $opt_debug
3132598 f_ex_an_ar_dir="$1"; shift
3142599 f_ex_an_ar_oldlib="$1"
315
316 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
317 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
2600 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
3182601 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
3192602 :
3202603 else
321 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
322 exit $EXIT_FAILURE
2604 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
3232605 fi
3242606 }
2607
3252608
3262609 # func_extract_archives gentop oldlib ...
3272610 func_extract_archives ()
3282611 {
2612 $opt_debug
3292613 my_gentop="$1"; shift
3302614 my_oldlibs=${1+"$@"}
3312615 my_oldobjs=""
3322616 my_xlib=""
3332617 my_xabs=""
3342618 my_xdir=""
335 my_status=""
336
337 $show "${rm}r $my_gentop"
338 $run ${rm}r "$my_gentop"
339 $show "$mkdir $my_gentop"
340 $run $mkdir "$my_gentop"
341 my_status=$?
342 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
343 exit $my_status
344 fi
3452619
3462620 for my_xlib in $my_oldlibs; do
3472621 # Extract the objects.
3492623 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
3502624 *) my_xabs=`pwd`"/$my_xlib" ;;
3512625 esac
352 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
2626 func_basename "$my_xlib"
2627 my_xlib="$func_basename_result"
3532628 my_xlib_u=$my_xlib
3542629 while :; do
3552630 case " $extracted_archives " in
3562631 *" $my_xlib_u "*)
357 extracted_serial=`expr $extracted_serial + 1`
2632 func_arith $extracted_serial + 1
2633 extracted_serial=$func_arith_result
3582634 my_xlib_u=lt$extracted_serial-$my_xlib ;;
3592635 *) break ;;
3602636 esac
3622638 extracted_archives="$extracted_archives $my_xlib_u"
3632639 my_xdir="$my_gentop/$my_xlib_u"
3642640
365 $show "${rm}r $my_xdir"
366 $run ${rm}r "$my_xdir"
367 $show "$mkdir $my_xdir"
368 $run $mkdir "$my_xdir"
369 exit_status=$?
370 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
371 exit $exit_status
372 fi
2641 func_mkdir_p "$my_xdir"
2642
3732643 case $host in
3742644 *-darwin*)
375 $show "Extracting $my_xabs"
2645 func_verbose "Extracting $my_xabs"
3762646 # Do not bother doing anything if just a dry run
377 if test -z "$run"; then
2647 $opt_dry_run || {
3782648 darwin_orig_dir=`pwd`
3792649 cd $my_xdir || exit $?
3802650 darwin_archive=$my_xabs
3812651 darwin_curdir=`pwd`
382 darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
383 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
384 if test -n "$darwin_arches"; then
385 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
2652 darwin_base_archive=`basename "$darwin_archive"`
2653 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
2654 if test -n "$darwin_arches"; then
2655 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
3862656 darwin_arch=
387 $show "$darwin_base_archive has multiple architectures $darwin_arches"
2657 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3882658 for darwin_arch in $darwin_arches ; do
389 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
390 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
2659 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
2660 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3912661 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3922662 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
3932663 cd "$darwin_curdir"
394 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
2664 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
3952665 done # $darwin_arches
396 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
397 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
2666 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
2667 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
3982668 darwin_file=
3992669 darwin_files=
4002670 for darwin_file in $darwin_filelist; do
4012671 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
402 lipo -create -output "$darwin_file" $darwin_files
2672 $LIPO -create -output "$darwin_file" $darwin_files
4032673 done # $darwin_filelist
404 ${rm}r unfat-$$
2674 $RM -rf unfat-$$
4052675 cd "$darwin_orig_dir"
4062676 else
407 cd "$darwin_orig_dir"
408 func_extract_an_archive "$my_xdir" "$my_xabs"
2677 cd $darwin_orig_dir
2678 func_extract_an_archive "$my_xdir" "$my_xabs"
4092679 fi # $darwin_arches
410 fi # $run
2680 } # !$opt_dry_run
4112681 ;;
4122682 *)
4132683 func_extract_an_archive "$my_xdir" "$my_xabs"
414 ;;
2684 ;;
4152685 esac
4162686 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
4172687 done
2688
4182689 func_extract_archives_result="$my_oldobjs"
4192690 }
420 # End of Shell function definitions
421 #####################################
422
423 # Darwin sucks
424 eval std_shrext=\"$shrext_cmds\"
425
426 disable_libs=no
427
428 # Parse our command line options once, thoroughly.
429 while test "$#" -gt 0
430 do
431 arg="$1"
432 shift
433
434 case $arg in
435 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
436 *) optarg= ;;
437 esac
438
439 # If the previous option needs an argument, assign it.
440 if test -n "$prev"; then
441 case $prev in
442 execute_dlfiles)
443 execute_dlfiles="$execute_dlfiles $arg"
444 ;;
445 tag)
446 tagname="$arg"
447 preserve_args="${preserve_args}=$arg"
448
449 # Check whether tagname contains only valid characters
450 case $tagname in
451 *[!-_A-Za-z0-9,/]*)
452 $echo "$progname: invalid tag name: $tagname" 1>&2
453 exit $EXIT_FAILURE
454 ;;
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\" ;;
4552782 esac
456
457 case $tagname in
458 CC)
459 # Don't test for the "default" C tag, as we know, it's there, but
460 # not specially marked.
461 ;;
462 *)
463 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
464 taglist="$taglist $tagname"
465 # Evaluate the configuration.
466 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
467 else
468 $echo "$progname: ignoring unknown tag $tagname" 1>&2
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
4692802 fi
470 ;;
471 esac
472 ;;
473 *)
474 eval "$prev=\$arg"
475 ;;
476 esac
477
478 prev=
479 prevopt=
480 continue
481 fi
482
483 # Have we seen a non-optional argument yet?
484 case $arg in
485 --help)
486 show_help=yes
487 ;;
488
489 --version)
490 echo "\
491 $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
492
493 Copyright (C) 2008 Free Software Foundation, Inc.
494 This is free software; see the source for copying conditions. There is NO
495 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
496 exit $?
497 ;;
498
499 --config)
500 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
501 # Now print the configurations for the tags.
502 for tagname in $taglist; do
503 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
504 done
505 exit $?
506 ;;
507
508 --debug)
509 $echo "$progname: enabling shell trace mode"
510 set -x
511 preserve_args="$preserve_args $arg"
512 ;;
513
514 --dry-run | -n)
515 run=:
516 ;;
517
518 --features)
519 $echo "host: $host"
520 if test "$build_libtool_libs" = yes; then
521 $echo "enable shared libraries"
522 else
523 $echo "disable shared libraries"
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\`
5242813 fi
525 if test "$build_old_libs" = yes; then
526 $echo "enable static libraries"
527 else
528 $echo "disable static libraries"
529 fi
530 exit $?
531 ;;
532
533 --finish) mode="finish" ;;
534
535 --mode) prevopt="--mode" prev=mode ;;
536 --mode=*) mode="$optarg" ;;
537
538 --preserve-dup-deps) duplicate_deps="yes" ;;
539
540 --quiet | --silent)
541 show=:
542 preserve_args="$preserve_args $arg"
543 ;;
544
545 --tag)
546 prevopt="--tag"
547 prev=tag
548 preserve_args="$preserve_args --tag"
549 ;;
550 --tag=*)
551 set tag "$optarg" ${1+"$@"}
552 shift
553 prev=tag
554 preserve_args="$preserve_args --tag"
555 ;;
556
557 -dlopen)
558 prevopt="-dlopen"
559 prev=execute_dlfiles
560 ;;
561
562 -*)
563 $echo "$modename: unrecognized option \`$arg'" 1>&2
564 $echo "$help" 1>&2
565 exit $EXIT_FAILURE
566 ;;
567
568 *)
569 nonopt="$arg"
570 break
571 ;;
572 esac
573 done
574
575 if test -n "$prevopt"; then
576 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
577 $echo "$help" 1>&2
578 exit $EXIT_FAILURE
579 fi
580
581 case $disable_libs in
582 no)
583 ;;
584 shared)
585 build_libtool_libs=no
586 build_old_libs=yes
587 ;;
588 static)
589 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
590 ;;
591 esac
592
593 # If this variable is set in any of the actions, the command in it
594 # will be execed at the end. This prevents here-documents from being
595 # left over by shells.
596 exec_cmd=
597
598 if test -z "$show_help"; then
599
600 # Infer the operation mode.
601 if test -z "$mode"; then
602 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
603 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
604 case $nonopt in
605 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
606 mode=link
607 for arg
608 do
609 case $arg in
610 -c)
611 mode=compile
612 break
613 ;;
614 esac
615 done
616 ;;
617 *db | *dbx | *strace | *truss)
618 mode=execute
619 ;;
620 *install*|cp|mv)
621 mode=install
622 ;;
623 *rm)
624 mode=uninstall
625 ;;
626 *)
627 # If we have no mode, but dlfiles were specified, then do execute mode.
628 test -n "$execute_dlfiles" && mode=execute
629
630 # Just use the default operation mode.
631 if test -z "$mode"; then
632 if test -n "$nonopt"; then
633 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
634 else
635 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
636 fi
637 fi
638 ;;
2814 # remove .libs from thisdir
2815 case \"\$thisdir\" in
2816 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
2817 $objdir ) thisdir=. ;;
6392818 esac
6402819 fi
6412820
642 # Only execute mode is allowed to have -dlopen flags.
643 if test -n "$execute_dlfiles" && test "$mode" != execute; then
644 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
645 $echo "$help" 1>&2
646 exit $EXIT_FAILURE
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
6472921 fi
648
649 # Change the help message to a mode-specific one.
650 generic_help="$help"
651 help="Try \`$modename --help --mode=$mode' for more information."
652
653 # These modes are in order of execution frequency so that they run quickly.
654 case $mode in
655 # libtool compile mode
656 compile)
657 modename="$modename: compile"
658 # Get the compilation command and the source file.
659 base_compile=
660 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
661 suppress_opt=yes
662 suppress_output=
663 arg_mode=normal
664 libobj=
665 later=
666
667 for arg
668 do
669 case $arg_mode in
670 arg )
671 # do not "continue". Instead, add this to base_compile
672 lastarg="$arg"
673 arg_mode=normal
674 ;;
675
676 target )
677 libobj="$arg"
678 arg_mode=normal
679 continue
680 ;;
681
682 normal )
683 # Accept any command-line options.
684 case $arg in
685 -o)
686 if test -n "$libobj" ; then
687 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
688 exit $EXIT_FAILURE
689 fi
690 arg_mode=target
691 continue
692 ;;
693
694 -static | -prefer-pic | -prefer-non-pic)
695 later="$later $arg"
696 continue
697 ;;
698
699 -no-suppress)
700 suppress_opt=no
701 continue
702 ;;
703
704 -Xcompiler)
705 arg_mode=arg # the next one goes into the "base_compile" arg list
706 continue # The current "srcfile" will either be retained or
707 ;; # replaced later. I would guess that would be a bug.
708
709 -Wc,*)
710 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
711 lastarg=
712 save_ifs="$IFS"; IFS=','
713 for arg in $args; do
714 IFS="$save_ifs"
715
716 # Double-quote args containing other shell metacharacters.
717 # Many Bourne shells cannot handle close brackets correctly
718 # in scan sets, so we specify it separately.
719 case $arg in
720 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
721 arg="\"$arg\""
722 ;;
2922 fi\
2923 "
2924 }
2925 # end: func_emit_wrapper_part2
2926
2927
2928 # func_emit_wrapper [arg=no]
2929 #
2930 # Emit a libtool wrapper script on stdout.
2931 # Don't directly open a file because we may want to
2932 # incorporate the script contents within a cygwin/mingw
2933 # wrapper executable. Must ONLY be called from within
2934 # func_mode_link because it depends on a number of variables
2935 # set therein.
2936 #
2937 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
2938 # variable will take. If 'yes', then the emitted script
2939 # will assume that the directory in which it is stored is
2940 # the $objdir directory. This is a cygwin/mingw-specific
2941 # behavior.
2942 func_emit_wrapper ()
2943 {
2944 func_emit_wrapper_arg1=no
2945 if test -n "$1" ; then
2946 func_emit_wrapper_arg1=$1
2947 fi
2948
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}"
2953 }
2954
2955
2956 # func_to_host_path arg
2957 #
2958 # Convert paths to host format when used with build tools.
2959 # Intended for use with "native" mingw (where libtool itself
2960 # is running under the msys shell), or in the following cross-
2961 # build environments:
2962 # $build $host
2963 # mingw (msys) mingw [e.g. native]
2964 # cygwin mingw
2965 # *nix + wine mingw
2966 # where wine is equipped with the `winepath' executable.
2967 # In the native mingw case, the (msys) shell automatically
2968 # converts paths for any non-msys applications it launches,
2969 # but that facility isn't available from inside the cwrapper.
2970 # Similar accommodations are necessary for $host mingw and
2971 # $build cygwin. Calling this function does no harm for other
2972 # $host/$build combinations not listed above.
2973 #
2974 # ARG is the path (on $build) that should be converted to
2975 # the proper representation for $host. The result is stored
2976 # in $func_to_host_path_result.
2977 func_to_host_path ()
2978 {
2979 func_to_host_path_result="$1"
2980 if test -n "$1" ; then
2981 case $host in
2982 *mingw* )
2983 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
2984 case $build in
2985 *mingw* ) # actually, msys
2986 # awkward: cmd appends spaces to result
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"`
2992 ;;
2993 *cygwin* )
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"`
2997 ;;
2998 * )
2999 # Unfortunately, winepath does not exit with a non-zero
3000 # error code, so we are forced to check the contents of
3001 # stdout. On the other hand, if the command is not
3002 # found, the shell will set an exit code of 127 and print
3003 # *an error message* to stdout. So we must check for both
3004 # error code of zero AND non-empty stdout, which explains
3005 # the odd construction:
3006 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
3007 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3008 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
3009 $SED -e "$lt_sed_naive_backslashify"`
3010 else
3011 # Allow warning below.
3012 func_to_host_path_result=""
3013 fi
3014 ;;
3015 esac
3016 if test -z "$func_to_host_path_result" ; then
3017 func_error "Could not determine host path corresponding to"
3018 func_error " '$1'"
3019 func_error "Continuing, but uninstalled executables may not work."
3020 # Fallback:
3021 func_to_host_path_result="$1"
3022 fi
3023 ;;
3024 esac
3025 fi
3026 }
3027 # end: func_to_host_path
3028
3029 # func_to_host_pathlist arg
3030 #
3031 # Convert pathlists to host format when used with build tools.
3032 # See func_to_host_path(), above. This function supports the
3033 # following $build/$host combinations (but does no harm for
3034 # combinations not listed here):
3035 # $build $host
3036 # mingw (msys) mingw [e.g. native]
3037 # cygwin mingw
3038 # *nix + wine mingw
3039 #
3040 # Path separators are also converted from $build format to
3041 # $host format. If ARG begins or ends with a path separator
3042 # character, it is preserved (but converted to $host format)
3043 # on output.
3044 #
3045 # ARG is a pathlist (on $build) that should be converted to
3046 # the proper representation on $host. The result is stored
3047 # in $func_to_host_pathlist_result.
3048 func_to_host_pathlist ()
3049 {
3050 func_to_host_pathlist_result="$1"
3051 if test -n "$1" ; then
3052 case $host in
3053 *mingw* )
3054 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3055 # Remove leading and trailing path separator characters from
3056 # ARG. msys behavior is inconsistent here, cygpath turns them
3057 # into '.;' and ';.', and winepath ignores them completely.
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|:*$||'`
3063 case $build in
3064 *mingw* ) # Actually, msys.
3065 # Awkward: cmd appends spaces to result.
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"`
3071 ;;
3072 *cygwin* )
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" |\
3075 $SED -e "$lt_sed_naive_backslashify"`
3076 ;;
3077 * )
3078 # unfortunately, winepath doesn't convert pathlists
3079 func_to_host_pathlist_result=""
3080 func_to_host_pathlist_oldIFS=$IFS
3081 IFS=:
3082 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
3083 IFS=$func_to_host_pathlist_oldIFS
3084 if test -n "$func_to_host_pathlist_f" ; then
3085 func_to_host_path "$func_to_host_pathlist_f"
3086 if test -n "$func_to_host_path_result" ; then
3087 if test -z "$func_to_host_pathlist_result" ; then
3088 func_to_host_pathlist_result="$func_to_host_path_result"
3089 else
3090 func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
3091 fi
3092 fi
3093 fi
3094 IFS=:
3095 done
3096 IFS=$func_to_host_pathlist_oldIFS
3097 ;;
3098 esac
3099 if test -z "$func_to_host_pathlist_result" ; then
3100 func_error "Could not determine the host path(s) corresponding to"
3101 func_error " '$1'"
3102 func_error "Continuing, but uninstalled executables may not work."
3103 # Fallback. This may break if $1 contains DOS-style drive
3104 # specifications. The fix is not to complicate the expression
3105 # below, but for the user to provide a working wine installation
3106 # with winepath so that path translation in the cross-to-mingw
3107 # case works properly.
3108 lt_replace_pathsep_nix_to_dos="s|:|;|g"
3109 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
3110 $SED -e "$lt_replace_pathsep_nix_to_dos"`
3111 fi
3112 # Now, add the leading and trailing path separators back
3113 case "$1" in
3114 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
3115 ;;
3116 esac
3117 case "$1" in
3118 *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
3119 ;;
3120 esac
3121 ;;
3122 esac
3123 fi
3124 }
3125 # end: func_to_host_pathlist
3126
3127 # func_emit_cwrapperexe_src
3128 # emit the source code for a wrapper executable on stdout
3129 # Must ONLY be called from within func_mode_link because
3130 # it depends on a number of variable set therein.
3131 func_emit_cwrapperexe_src ()
3132 {
3133 cat <<EOF
3134
3135 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
3136 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
3137
3138 The $output program cannot be directly executed until all the libtool
3139 libraries that it depends on are installed.
3140
3141 This wrapper executable should never be moved out of the build directory.
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.
3147 */
3148 EOF
3149 cat <<"EOF"
3150 #include <stdio.h>
3151 #include <stdlib.h>
3152 #ifdef _MSC_VER
3153 # include <direct.h>
3154 # include <process.h>
3155 # include <io.h>
3156 # define setmode _setmode
3157 #else
3158 # include <unistd.h>
3159 # include <stdint.h>
3160 # ifdef __CYGWIN__
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
3168 # endif
3169 #endif
3170 #include <malloc.h>
3171 #include <stdarg.h>
3172 #include <assert.h>
3173 #include <string.h>
3174 #include <ctype.h>
3175 #include <errno.h>
3176 #include <fcntl.h>
3177 #include <sys/stat.h>
3178
3179 #if defined(PATH_MAX)
3180 # define LT_PATHMAX PATH_MAX
3181 #elif defined(MAXPATHLEN)
3182 # define LT_PATHMAX MAXPATHLEN
3183 #else
3184 # define LT_PATHMAX 1024
3185 #endif
3186
3187 #ifndef S_IXOTH
3188 # define S_IXOTH 0
3189 #endif
3190 #ifndef S_IXGRP
3191 # define S_IXGRP 0
3192 #endif
3193
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
3202 #ifndef DIR_SEPARATOR
3203 # define DIR_SEPARATOR '/'
3204 # define PATH_SEPARATOR ':'
3205 #endif
3206
3207 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
3208 defined (__OS2__)
3209 # define HAVE_DOS_BASED_FILE_SYSTEM
3210 # define FOPEN_WB "wb"
3211 # ifndef DIR_SEPARATOR_2
3212 # define DIR_SEPARATOR_2 '\\'
3213 # endif
3214 # ifndef PATH_SEPARATOR_2
3215 # define PATH_SEPARATOR_2 ';'
3216 # endif
3217 #endif
3218
3219 #ifndef DIR_SEPARATOR_2
3220 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
3221 #else /* DIR_SEPARATOR_2 */
3222 # define IS_DIR_SEPARATOR(ch) \
3223 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
3224 #endif /* DIR_SEPARATOR_2 */
3225
3226 #ifndef PATH_SEPARATOR_2
3227 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
3228 #else /* PATH_SEPARATOR_2 */
3229 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
3230 #endif /* PATH_SEPARATOR_2 */
3231
3232 #ifdef __CYGWIN__
3233 # define FOPEN_WB "wb"
3234 #endif
3235
3236 #ifndef FOPEN_WB
3237 # define FOPEN_WB "w"
3238 #endif
3239 #ifndef _O_BINARY
3240 # define _O_BINARY 0
3241 #endif
3242
3243 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
3244 #define XFREE(stale) do { \
3245 if (stale) { free ((void *) stale); stale = 0; } \
3246 } while (0)
3247
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 }
3259 #else
3260 # define LTWRAPPER_DEBUGPRINTF(args)
3261 #endif
3262
3263 const char *program_name = NULL;
3264
3265 void *xmalloc (size_t num);
3266 char *xstrdup (const char *string);
3267 const char *base_name (const char *name);
3268 char *find_executable (const char *wrapper);
3269 char *chase_symlinks (const char *pathspec);
3270 int make_executable (const char *path);
3271 int check_executable (const char *path);
3272 char *strendzap (char *str, const char *pat);
3273 void lt_fatal (const char *message, ...);
3274 void lt_setenv (const char *name, const char *value);
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);
3280 void lt_update_exe_path (const char *name, const char *value);
3281 void lt_update_lib_path (const char *name, const char *value);
3282
3283 static const char *script_text_part1 =
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 ";"
3298
3299 cat <<EOF
3300 const char * MAGIC_EXE = "$magic_exe";
3301 const char * LIB_PATH_VARNAME = "$shlibpath_var";
3302 EOF
3303
3304 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3305 func_to_host_pathlist "$temp_rpath"
3306 cat <<EOF
3307 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
3308 EOF
3309 else
3310 cat <<"EOF"
3311 const char * LIB_PATH_VALUE = "";
3312 EOF
3313 fi
3314
3315 if test -n "$dllsearchpath"; then
3316 func_to_host_pathlist "$dllsearchpath:"
3317 cat <<EOF
3318 const char * EXE_PATH_VARNAME = "PATH";
3319 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
3320 EOF
3321 else
3322 cat <<"EOF"
3323 const char * EXE_PATH_VARNAME = "";
3324 const char * EXE_PATH_VALUE = "";
3325 EOF
3326 fi
3327
3328 if test "$fast_install" = yes; then
3329 cat <<EOF
3330 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
3331 EOF
3332 else
3333 cat <<EOF
3334 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
3335 EOF
3336 fi
3337
3338
3339 cat <<"EOF"
3340
3341 #define LTWRAPPER_OPTION_PREFIX "--lt-"
3342 #define LTWRAPPER_OPTION_PREFIX_LENGTH 5
3343
3344 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
3345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
3346
3347 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
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 */
3360
3361 int
3362 main (int argc, char *argv[])
3363 {
3364 char **newargz;
3365 int newargc;
3366 char *tmp_pathspec;
3367 char *actual_cwrapper_path;
3368 char *actual_cwrapper_name;
3369 char *target_name;
3370 char *lt_argv_zero;
3371 intptr_t rval = 127;
3372
3373 int i;
3374
3375 program_name = (char *) xstrdup (base_name (argv[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 */
3380 for (i = 1; i < argc; i++)
3381 {
3382 if (strcmp (argv[i], dumpscript_opt) == 0)
3383 {
3384 EOF
3385 case "$host" in
3386 *mingw* | *cygwin* )
3387 # make stdout use "unix" line endings
3388 echo " setmode(1,_O_BINARY);"
3389 ;;
3390 esac
3391
3392 cat <<"EOF"
3393 printf ("%s", script_text_part1);
3394 printf ("%s", script_text_part2);
3395 return 0;
3396 }
3397 }
3398
3399 newargz = XMALLOC (char *, argc + 1);
3400 tmp_pathspec = find_executable (argv[0]);
3401 if (tmp_pathspec == NULL)
3402 lt_fatal ("Couldn't find %s", argv[0]);
3403 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3404 tmp_pathspec));
3405
3406 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
3407 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3408 actual_cwrapper_path));
3409 XFREE (tmp_pathspec);
3410
3411 actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
3412 strendzap (actual_cwrapper_path, actual_cwrapper_name);
3413
3414 /* wrapper name transforms */
3415 strendzap (actual_cwrapper_name, ".exe");
3416 tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
3417 XFREE (actual_cwrapper_name);
3418 actual_cwrapper_name = tmp_pathspec;
3419 tmp_pathspec = 0;
3420
3421 /* target_name transforms -- use actual target program name; might have lt- prefix */
3422 target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
3423 strendzap (target_name, ".exe");
3424 tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
3425 XFREE (target_name);
3426 target_name = tmp_pathspec;
3427 tmp_pathspec = 0;
3428
3429 LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
3430 target_name));
3431 EOF
3432
3433 cat <<EOF
3434 newargz[0] =
3435 XMALLOC (char, (strlen (actual_cwrapper_path) +
3436 strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
3437 strcpy (newargz[0], actual_cwrapper_path);
3438 strcat (newargz[0], "$objdir");
3439 strcat (newargz[0], "/");
3440 EOF
3441
3442 cat <<"EOF"
3443 /* stop here, and copy so we don't have to do this twice */
3444 tmp_pathspec = xstrdup (newargz[0]);
3445
3446 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
3447 strcat (newargz[0], actual_cwrapper_name);
3448
3449 /* DO want the lt- prefix here if it exists, so use target_name */
3450 lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
3451 XFREE (tmp_pathspec);
3452 tmp_pathspec = NULL;
3453 EOF
3454
3455 case $host_os in
3456 mingw*)
3457 cat <<"EOF"
3458 {
3459 char* p;
3460 while ((p = strchr (newargz[0], '\\')) != NULL)
3461 {
3462 *p = '/';
3463 }
3464 while ((p = strchr (lt_argv_zero, '\\')) != NULL)
3465 {
3466 *p = '/';
3467 }
3468 }
3469 EOF
3470 ;;
7233471 esac
724 lastarg="$lastarg $arg"
725 done
726 IFS="$save_ifs"
727 lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
728
729 # Add the arguments to base_compile.
730 base_compile="$base_compile $lastarg"
731 continue
732 ;;
733
734 * )
735 # Accept the current argument as the source file.
736 # The previous "srcfile" becomes the current argument.
737 #
738 lastarg="$srcfile"
739 srcfile="$arg"
740 ;;
741 esac # case $arg
742 ;;
743 esac # case $arg_mode
744
745 # Aesthetically quote the previous argument.
746 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
747
748 case $lastarg in
749 # Double-quote args containing other shell metacharacters.
750 # Many Bourne shells cannot handle close brackets correctly
751 # in scan sets, and some SunOS ksh mistreat backslash-escaping
752 # in scan sets (worked around with variable expansion),
753 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
754 # at all, so we specify them separately.
755 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
756 lastarg="\"$lastarg\""
757 ;;
758 esac
759
760 base_compile="$base_compile $lastarg"
761 done # for arg
762
763 case $arg_mode in
764 arg)
765 $echo "$modename: you must specify an argument for -Xcompile"
766 exit $EXIT_FAILURE
767 ;;
768 target)
769 $echo "$modename: you must specify a target with \`-o'" 1>&2
770 exit $EXIT_FAILURE
771 ;;
772 *)
773 # Get the name of the library object.
774 [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
775 ;;
776 esac
777
778 # Recognize several different file suffixes.
779 # If the user specifies -o file.o, it is replaced with file.lo
780 xform='[cCFSifmso]'
781 case $libobj in
782 *.ada) xform=ada ;;
783 *.adb) xform=adb ;;
784 *.ads) xform=ads ;;
785 *.asm) xform=asm ;;
786 *.c++) xform=c++ ;;
787 *.cc) xform=cc ;;
788 *.ii) xform=ii ;;
789 *.class) xform=class ;;
790 *.cpp) xform=cpp ;;
791 *.cxx) xform=cxx ;;
792 *.[fF][09]?) xform=[fF][09]. ;;
793 *.for) xform=for ;;
794 *.java) xform=java ;;
795 *.obj) xform=obj ;;
796 *.sx) xform=sx ;;
797 esac
798
799 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
800
801 case $libobj in
802 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
803 *)
804 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
805 exit $EXIT_FAILURE
806 ;;
807 esac
808
809 func_infer_tag $base_compile
810
811 for arg in $later; do
812 case $arg in
813 -static)
814 build_old_libs=yes
815 continue
816 ;;
817
818 -prefer-pic)
819 pic_mode=yes
820 continue
821 ;;
822
823 -prefer-non-pic)
824 pic_mode=no
825 continue
826 ;;
827 esac
828 done
829
830 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
831 case $qlibobj in
832 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
833 qlibobj="\"$qlibobj\"" ;;
834 esac
835 test "X$libobj" != "X$qlibobj" \
836 && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
837 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
838 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
839 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
840 if test "X$xdir" = "X$obj"; then
841 xdir=
842 else
843 xdir=$xdir/
844 fi
845 lobj=${xdir}$objdir/$objname
846
847 if test -z "$base_compile"; then
848 $echo "$modename: you must specify a compilation command" 1>&2
849 $echo "$help" 1>&2
850 exit $EXIT_FAILURE
851 fi
852
853 # Delete any leftover library objects.
854 if test "$build_old_libs" = yes; then
855 removelist="$obj $lobj $libobj ${libobj}T"
856 else
857 removelist="$lobj $libobj ${libobj}T"
858 fi
859
860 $run $rm $removelist
861 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
862
863 # On Cygwin there's no "real" PIC flag so we must build both object types
864 case $host_os in
865 cygwin* | mingw* | pw32* | os2*)
866 pic_mode=default
867 ;;
868 esac
869 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
870 # non-PIC code in shared libraries is not supported
871 pic_mode=default
872 fi
873
874 # Calculate the filename of the output object if compiler does
875 # not support -o with -c
876 if test "$compiler_c_o" = no; then
877 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
878 lockfile="$output_obj.lock"
879 removelist="$removelist $output_obj $lockfile"
880 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
881 else
882 output_obj=
883 need_locks=no
884 lockfile=
885 fi
886
887 # Lock this critical section if it is needed
888 # We use this script file to make the link, it avoids creating a new file
889 if test "$need_locks" = yes; then
890 until $run ln "$progpath" "$lockfile" 2>/dev/null; do
891 $show "Waiting for $lockfile to be removed"
892 sleep 2
893 done
894 elif test "$need_locks" = warn; then
895 if test -f "$lockfile"; then
896 $echo "\
897 *** ERROR, $lockfile exists and contains:
898 `cat $lockfile 2>/dev/null`
899
900 This indicates that another process is trying to use the same
901 temporary object file, and libtool could not work around it because
902 your compiler does not support \`-c' and \`-o' together. If you
903 repeat this compilation, it may succeed, by chance, but you had better
904 avoid parallel builds (make -j) in this platform, or get a better
905 compiler."
906
907 $run $rm $removelist
908 exit $EXIT_FAILURE
909 fi
910 $echo "$srcfile" > "$lockfile"
911 fi
912
913 if test -n "$fix_srcfile_path"; then
914 eval srcfile=\"$fix_srcfile_path\"
915 fi
916 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
917 case $qsrcfile in
918 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
919 qsrcfile="\"$qsrcfile\"" ;;
920 esac
921
922 $run $rm "$libobj" "${libobj}T"
923
924 # Create a libtool object file (analogous to a ".la" file),
925 # but don't create it if we're doing a dry run.
926 test -z "$run" && cat > ${libobj}T <<EOF
927 # $libobj - a libtool object file
928 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
929 #
930 # Please DO NOT delete this file!
931 # It is necessary for linking the library.
932
933 # Name of the PIC object.
3472
3473 cat <<"EOF"
3474 XFREE (target_name);
3475 XFREE (actual_cwrapper_path);
3476 XFREE (actual_cwrapper_name);
3477
3478 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
3479 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
3480 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
3481 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
3482
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>")));
3551 for (i = 0; i < newargc; i++)
3552 {
3553 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
3554 }
3555
9343556 EOF
9353557
936 # Only build a PIC object if we are building libtool libraries.
937 if test "$build_libtool_libs" = yes; then
938 # Without this assignment, base_compile gets emptied.
939 fbsd_hideous_sh_bug=$base_compile
940
941 if test "$pic_mode" != no; then
942 command="$base_compile $qsrcfile $pic_flag"
3558 case $host_os in
3559 mingw*)
3560 cat <<"EOF"
3561 /* execv doesn't actually work on mingw as expected on unix */
3562 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
3563 if (rval == -1)
3564 {
3565 /* failed to start process */
3566 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
3567 return 127;
3568 }
3569 return rval;
3570 EOF
3571 ;;
3572 *)
3573 cat <<"EOF"
3574 execv (lt_argv_zero, newargz);
3575 return rval; /* =127, but avoids unused variable warning */
3576 EOF
3577 ;;
3578 esac
3579
3580 cat <<"EOF"
3581 }
3582
3583 void *
3584 xmalloc (size_t num)
3585 {
3586 void *p = (void *) malloc (num);
3587 if (!p)
3588 lt_fatal ("Memory exhausted");
3589
3590 return p;
3591 }
3592
3593 char *
3594 xstrdup (const char *string)
3595 {
3596 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
3597 string) : NULL;
3598 }
3599
3600 const char *
3601 base_name (const char *name)
3602 {
3603 const char *base;
3604
3605 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3606 /* Skip over the disk name in MSDOS pathnames. */
3607 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
3608 name += 2;
3609 #endif
3610
3611 for (base = name; *name; name++)
3612 if (IS_DIR_SEPARATOR (*name))
3613 base = name + 1;
3614 return base;
3615 }
3616
3617 int
3618 check_executable (const char *path)
3619 {
3620 struct stat st;
3621
3622 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3623 path ? (*path ? path : "EMPTY!") : "NULL!"));
3624 if ((!path) || (!*path))
3625 return 0;
3626
3627 if ((stat (path, &st) >= 0)
3628 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
3629 return 1;
3630 else
3631 return 0;
3632 }
3633
3634 int
3635 make_executable (const char *path)
3636 {
3637 int rval = 0;
3638 struct stat st;
3639
3640 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3641 path ? (*path ? path : "EMPTY!") : "NULL!"));
3642 if ((!path) || (!*path))
3643 return 0;
3644
3645 if (stat (path, &st) >= 0)
3646 {
3647 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
3648 }
3649 return rval;
3650 }
3651
3652 /* Searches for the full path of the wrapper. Returns
3653 newly allocated full path name if found, NULL otherwise
3654 Does not chase symlinks, even on platforms that support them.
3655 */
3656 char *
3657 find_executable (const char *wrapper)
3658 {
3659 int has_slash = 0;
3660 const char *p;
3661 const char *p_next;
3662 /* static buffer for getcwd */
3663 char tmp[LT_PATHMAX + 1];
3664 int tmp_len;
3665 char *concat_name;
3666
3667 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3668 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
3669
3670 if ((wrapper == NULL) || (*wrapper == '\0'))
3671 return NULL;
3672
3673 /* Absolute path? */
3674 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3675 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
3676 {
3677 concat_name = xstrdup (wrapper);
3678 if (check_executable (concat_name))
3679 return concat_name;
3680 XFREE (concat_name);
3681 }
3682 else
3683 {
3684 #endif
3685 if (IS_DIR_SEPARATOR (wrapper[0]))
3686 {
3687 concat_name = xstrdup (wrapper);
3688 if (check_executable (concat_name))
3689 return concat_name;
3690 XFREE (concat_name);
3691 }
3692 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3693 }
3694 #endif
3695
3696 for (p = wrapper; *p; p++)
3697 if (*p == '/')
3698 {
3699 has_slash = 1;
3700 break;
3701 }
3702 if (!has_slash)
3703 {
3704 /* no slashes; search PATH */
3705 const char *path = getenv ("PATH");
3706 if (path != NULL)
3707 {
3708 for (p = path; *p; p = p_next)
3709 {
3710 const char *q;
3711 size_t p_len;
3712 for (q = p; *q; q++)
3713 if (IS_PATH_SEPARATOR (*q))
3714 break;
3715 p_len = q - p;
3716 p_next = (*q == '\0' ? q : q + 1);
3717 if (p_len == 0)
3718 {
3719 /* empty path: current directory */
3720 if (getcwd (tmp, LT_PATHMAX) == NULL)
3721 lt_fatal ("getcwd failed");
3722 tmp_len = strlen (tmp);
3723 concat_name =
3724 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3725 memcpy (concat_name, tmp, tmp_len);
3726 concat_name[tmp_len] = '/';
3727 strcpy (concat_name + tmp_len + 1, wrapper);
3728 }
3729 else
3730 {
3731 concat_name =
3732 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
3733 memcpy (concat_name, p, p_len);
3734 concat_name[p_len] = '/';
3735 strcpy (concat_name + p_len + 1, wrapper);
3736 }
3737 if (check_executable (concat_name))
3738 return concat_name;
3739 XFREE (concat_name);
3740 }
3741 }
3742 /* not found in PATH; assume curdir */
3743 }
3744 /* Relative path | not found in path: prepend cwd */
3745 if (getcwd (tmp, LT_PATHMAX) == NULL)
3746 lt_fatal ("getcwd failed");
3747 tmp_len = strlen (tmp);
3748 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3749 memcpy (concat_name, tmp, tmp_len);
3750 concat_name[tmp_len] = '/';
3751 strcpy (concat_name + tmp_len + 1, wrapper);
3752
3753 if (check_executable (concat_name))
3754 return concat_name;
3755 XFREE (concat_name);
3756 return NULL;
3757 }
3758
3759 char *
3760 chase_symlinks (const char *pathspec)
3761 {
3762 #ifndef S_ISLNK
3763 return xstrdup (pathspec);
3764 #else
3765 char buf[LT_PATHMAX];
3766 struct stat s;
3767 char *tmp_pathspec = xstrdup (pathspec);
3768 char *p;
3769 int has_symlinks = 0;
3770 while (strlen (tmp_pathspec) && !has_symlinks)
3771 {
3772 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3773 tmp_pathspec));
3774 if (lstat (tmp_pathspec, &s) == 0)
3775 {
3776 if (S_ISLNK (s.st_mode) != 0)
3777 {
3778 has_symlinks = 1;
3779 break;
3780 }
3781
3782 /* search backwards for last DIR_SEPARATOR */
3783 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
3784 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3785 p--;
3786 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3787 {
3788 /* no more DIR_SEPARATORS left */
3789 break;
3790 }
3791 *p = '\0';
3792 }
9433793 else
944 # Don't build PIC code
945 command="$base_compile $qsrcfile"
946 fi
947
948 if test ! -d "${xdir}$objdir"; then
949 $show "$mkdir ${xdir}$objdir"
950 $run $mkdir ${xdir}$objdir
951 exit_status=$?
952 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
953 exit $exit_status
954 fi
955 fi
956
957 if test -z "$output_obj"; then
958 # Place PIC objects in $objdir
959 command="$command -o $lobj"
960 fi
961
962 $run $rm "$lobj" "$output_obj"
963
964 $show "$command"
965 if $run eval $lt_env "$command"; then :
3794 {
3795 char *errstr = strerror (errno);
3796 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
3797 }
3798 }
3799 XFREE (tmp_pathspec);
3800
3801 if (!has_symlinks)
3802 {
3803 return xstrdup (pathspec);
3804 }
3805
3806 tmp_pathspec = realpath (pathspec, buf);
3807 if (tmp_pathspec == 0)
3808 {
3809 lt_fatal ("Could not follow symlinks for %s", pathspec);
3810 }
3811 return xstrdup (tmp_pathspec);
3812 #endif
3813 }
3814
3815 char *
3816 strendzap (char *str, const char *pat)
3817 {
3818 size_t len, patlen;
3819
3820 assert (str != NULL);
3821 assert (pat != NULL);
3822
3823 len = strlen (str);
3824 patlen = strlen (pat);
3825
3826 if (patlen <= len)
3827 {
3828 str += len - patlen;
3829 if (strcmp (str, pat) == 0)
3830 *str = '\0';
3831 }
3832 return str;
3833 }
3834
3835 static void
3836 lt_error_core (int exit_status, const char *mode,
3837 const char *message, va_list ap)
3838 {
3839 fprintf (stderr, "%s: %s: ", program_name, mode);
3840 vfprintf (stderr, message, ap);
3841 fprintf (stderr, ".\n");
3842
3843 if (exit_status >= 0)
3844 exit (exit_status);
3845 }
3846
3847 void
3848 lt_fatal (const char *message, ...)
3849 {
3850 va_list ap;
3851 va_start (ap, message);
3852 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
3853 va_end (ap);
3854 }
3855
3856 void
3857 lt_setenv (const char *name, const char *value)
3858 {
3859 LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
3860 (name ? name : "<NULL>"),
3861 (value ? value : "<NULL>")));
3862 {
3863 #ifdef HAVE_SETENV
3864 /* always make a copy, for consistency with !HAVE_SETENV */
3865 char *str = xstrdup (value);
3866 setenv (name, str, 1);
3867 #else
3868 int len = strlen (name) + 1 + strlen (value) + 1;
3869 char *str = XMALLOC (char, len);
3870 sprintf (str, "%s=%s", name, value);
3871 if (putenv (str) != EXIT_SUCCESS)
3872 {
3873 XFREE (str);
3874 }
3875 #endif
3876 }
3877 }
3878
3879 char *
3880 lt_extend_str (const char *orig_value, const char *add, int to_end)
3881 {
3882 char *new_value;
3883 if (orig_value && *orig_value)
3884 {
3885 int orig_value_len = strlen (orig_value);
3886 int add_len = strlen (add);
3887 new_value = XMALLOC (char, add_len + orig_value_len + 1);
3888 if (to_end)
3889 {
3890 strcpy (new_value, orig_value);
3891 strcpy (new_value + orig_value_len, add);
3892 }
9663893 else
967 test -n "$output_obj" && $run $rm $removelist
968 exit $EXIT_FAILURE
969 fi
970
971 if test "$need_locks" = warn &&
972 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
973 $echo "\
974 *** ERROR, $lockfile contains:
975 `cat $lockfile 2>/dev/null`
976
977 but it should contain:
978 $srcfile
979
980 This indicates that another process is trying to use the same
981 temporary object file, and libtool could not work around it because
982 your compiler does not support \`-c' and \`-o' together. If you
983 repeat this compilation, it may succeed, by chance, but you had better
984 avoid parallel builds (make -j) in this platform, or get a better
985 compiler."
986
987 $run $rm $removelist
988 exit $EXIT_FAILURE
989 fi
990
991 # Just move the object if needed, then go on to compile the next one
992 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
993 $show "$mv $output_obj $lobj"
994 if $run $mv $output_obj $lobj; then :
995 else
996 error=$?
997 $run $rm $removelist
998 exit $error
999 fi
1000 fi
1001
1002 # Append the name of the PIC object to the libtool object file.
1003 test -z "$run" && cat >> ${libobj}T <<EOF
1004 pic_object='$objdir/$objname'
3894 {
3895 strcpy (new_value, add);
3896 strcpy (new_value + add_len, orig_value);
3897 }
3898 }
3899 else
3900 {
3901 new_value = xstrdup (add);
3902 }
3903 return new_value;
3904 }
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
3989 void
3990 lt_update_exe_path (const char *name, const char *value)
3991 {
3992 LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
3993 (name ? name : "<NULL>"),
3994 (value ? value : "<NULL>")));
3995
3996 if (name && *name && value && *value)
3997 {
3998 char *new_value = lt_extend_str (getenv (name), value, 0);
3999 /* some systems can't cope with a ':'-terminated path #' */
4000 int len = strlen (new_value);
4001 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
4002 {
4003 new_value[len-1] = '\0';
4004 }
4005 lt_setenv (name, new_value);
4006 XFREE (new_value);
4007 }
4008 }
4009
4010 void
4011 lt_update_lib_path (const char *name, const char *value)
4012 {
4013 LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4014 (name ? name : "<NULL>"),
4015 (value ? value : "<NULL>")));
4016
4017 if (name && *name && value && *value)
4018 {
4019 char *new_value = lt_extend_str (getenv (name), value, 0);
4020 lt_setenv (name, new_value);
4021 XFREE (new_value);
4022 }
4023 }
4024
10054025
10064026 EOF
1007
1008 # Allow error messages only from the first compilation.
1009 if test "$suppress_opt" = yes; then
1010 suppress_output=' >/dev/null 2>&1'
1011 fi
1012 else
1013 # No PIC object so indicate it doesn't exist in the libtool
1014 # object file.
1015 test -z "$run" && cat >> ${libobj}T <<EOF
1016 pic_object=none
1017
1018 EOF
1019 fi
1020
1021 # Only build a position-dependent object if we build old libraries.
1022 if test "$build_old_libs" = yes; then
1023 if test "$pic_mode" != yes; then
1024 # Don't build PIC code
1025 command="$base_compile $qsrcfile"
1026 else
1027 command="$base_compile $qsrcfile $pic_flag"
1028 fi
1029 if test "$compiler_c_o" = yes; then
1030 command="$command -o $obj"
1031 fi
1032
1033 # Suppress compiler output if we already did a PIC compilation.
1034 command="$command$suppress_output"
1035 $run $rm "$obj" "$output_obj"
1036 $show "$command"
1037 if $run eval $lt_env "$command"; then :
1038 else
1039 $run $rm $removelist
1040 exit $EXIT_FAILURE
1041 fi
1042
1043 if test "$need_locks" = warn &&
1044 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1045 $echo "\
1046 *** ERROR, $lockfile contains:
1047 `cat $lockfile 2>/dev/null`
1048
1049 but it should contain:
1050 $srcfile
1051
1052 This indicates that another process is trying to use the same
1053 temporary object file, and libtool could not work around it because
1054 your compiler does not support \`-c' and \`-o' together. If you
1055 repeat this compilation, it may succeed, by chance, but you had better
1056 avoid parallel builds (make -j) in this platform, or get a better
1057 compiler."
1058
1059 $run $rm $removelist
1060 exit $EXIT_FAILURE
1061 fi
1062
1063 # Just move the object if needed
1064 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1065 $show "$mv $output_obj $obj"
1066 if $run $mv $output_obj $obj; then :
1067 else
1068 error=$?
1069 $run $rm $removelist
1070 exit $error
1071 fi
1072 fi
1073
1074 # Append the name of the non-PIC object the libtool object file.
1075 # Only append if the libtool object file exists.
1076 test -z "$run" && cat >> ${libobj}T <<EOF
1077 # Name of the non-PIC object.
1078 non_pic_object='$objname'
1079
1080 EOF
1081 else
1082 # Append the name of the non-PIC object the libtool object file.
1083 # Only append if the libtool object file exists.
1084 test -z "$run" && cat >> ${libobj}T <<EOF
1085 # Name of the non-PIC object.
1086 non_pic_object=none
1087
1088 EOF
1089 fi
1090
1091 $run $mv "${libobj}T" "${libobj}"
1092
1093 # Unlock the critical section if it was locked
1094 if test "$need_locks" != no; then
1095 $run $rm "$lockfile"
1096 fi
1097
1098 exit $EXIT_SUCCESS
1099 ;;
1100
1101 # libtool link mode
1102 link | relink)
1103 modename="$modename: link"
4027 }
4028 # end: func_emit_cwrapperexe_src
4029
4030 # func_mode_link arg...
4031 func_mode_link ()
4032 {
4033 $opt_debug
11044034 case $host in
1105 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4035 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
11064036 # It is impossible to link a dll without this setting, and
11074037 # we shouldn't force the makefile maintainer to figure out
11084038 # which system we are compiling for in order to pass an extra
11204050 allow_undefined=yes
11214051 ;;
11224052 esac
1123 libtool_args="$nonopt"
4053 libtool_args=$nonopt
11244054 base_compile="$nonopt $@"
1125 compile_command="$nonopt"
1126 finalize_command="$nonopt"
4055 compile_command=$nonopt
4056 finalize_command=$nonopt
11274057
11284058 compile_rpath=
11294059 finalize_rpath=
11384068 dllsearchpath=
11394069 lib_search_path=`pwd`
11404070 inst_prefix_dir=
4071 new_inherited_linker_flags=
11414072
11424073 avoid_version=no
11434074 dlfiles=
11534084 no_install=no
11544085 objs=
11554086 non_pic_objects=
1156 notinst_path= # paths that contain not-installed libtool libraries
11574087 precious_files_regex=
11584088 prefer_static_libs=no
11594089 preload=no
11674097 thread_safe=no
11684098 vinfo=
11694099 vinfo_number=no
4100 weak_libs=
11704101 single_module="${wl}-single_module"
1171
11724102 func_infer_tag $base_compile
11734103
11744104 # We need to know -static, to get the right output filenames.
11754105 for arg
11764106 do
11774107 case $arg in
4108 -shared)
4109 test "$build_libtool_libs" != yes && \
4110 func_fatal_configuration "can not build a shared library"
4111 build_old_libs=no
4112 break
4113 ;;
11784114 -all-static | -static | -static-libtool-libs)
11794115 case $arg in
11804116 -all-static)
11814117 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1182 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
4118 func_warning "complete static linking is impossible in this configuration"
11834119 fi
11844120 if test -n "$link_static_flag"; then
11854121 dlopen_self=$dlopen_self_static
12134149 while test "$#" -gt 0; do
12144150 arg="$1"
12154151 shift
1216 case $arg in
1217 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1218 qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1219 ;;
1220 *) qarg=$arg ;;
1221 esac
1222 libtool_args="$libtool_args $qarg"
4152 func_quote_for_eval "$arg"
4153 qarg=$func_quote_for_eval_unquoted_result
4154 func_append libtool_args " $func_quote_for_eval_result"
12234155
12244156 # If the previous option needs an argument, assign it.
12254157 if test -n "$prev"; then
12264158 case $prev in
12274159 output)
1228 compile_command="$compile_command @OUTPUT@"
1229 finalize_command="$finalize_command @OUTPUT@"
4160 func_append compile_command " @OUTPUT@"
4161 func_append finalize_command " @OUTPUT@"
12304162 ;;
12314163 esac
12324164
12344166 dlfiles|dlprefiles)
12354167 if test "$preload" = no; then
12364168 # Add the symbol object into the linking commands.
1237 compile_command="$compile_command @SYMFILE@"
1238 finalize_command="$finalize_command @SYMFILE@"
4169 func_append compile_command " @SYMFILE@"
4170 func_append finalize_command " @SYMFILE@"
12394171 preload=yes
12404172 fi
12414173 case $arg in
12734205 ;;
12744206 expsyms)
12754207 export_symbols="$arg"
1276 if test ! -f "$arg"; then
1277 $echo "$modename: symbol file \`$arg' does not exist"
1278 exit $EXIT_FAILURE
1279 fi
4208 test -f "$arg" \
4209 || func_fatal_error "symbol file \`$arg' does not exist"
12804210 prev=
12814211 continue
12824212 ;;
12854215 prev=
12864216 continue
12874217 ;;
4218 framework)
4219 case $host in
4220 *-*-darwin*)
4221 case "$deplibs " in
4222 *" $qarg.ltframework "*) ;;
4223 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
4224 ;;
4225 esac
4226 ;;
4227 esac
4228 prev=
4229 continue
4230 ;;
12884231 inst_prefix)
12894232 inst_prefix_dir="$arg"
4233 prev=
4234 continue
4235 ;;
4236 objectlist)
4237 if test -f "$arg"; then
4238 save_arg=$arg
4239 moreargs=
4240 for fil in `cat "$save_arg"`
4241 do
4242 # moreargs="$moreargs $fil"
4243 arg=$fil
4244 # A libtool-controlled object.
4245
4246 # Check to see that this really is a libtool object.
4247 if func_lalib_unsafe_p "$arg"; then
4248 pic_object=
4249 non_pic_object=
4250
4251 # Read the .lo file
4252 func_source "$arg"
4253
4254 if test -z "$pic_object" ||
4255 test -z "$non_pic_object" ||
4256 test "$pic_object" = none &&
4257 test "$non_pic_object" = none; then
4258 func_fatal_error "cannot find name of object for \`$arg'"
4259 fi
4260
4261 # Extract subdirectory from the argument.
4262 func_dirname "$arg" "/" ""
4263 xdir="$func_dirname_result"
4264
4265 if test "$pic_object" != none; then
4266 # Prepend the subdirectory the object is found in.
4267 pic_object="$xdir$pic_object"
4268
4269 if test "$prev" = dlfiles; then
4270 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4271 dlfiles="$dlfiles $pic_object"
4272 prev=
4273 continue
4274 else
4275 # If libtool objects are unsupported, then we need to preload.
4276 prev=dlprefiles
4277 fi
4278 fi
4279
4280 # CHECK ME: I think I busted this. -Ossama
4281 if test "$prev" = dlprefiles; then
4282 # Preload the old-style object.
4283 dlprefiles="$dlprefiles $pic_object"
4284 prev=
4285 fi
4286
4287 # A PIC object.
4288 func_append libobjs " $pic_object"
4289 arg="$pic_object"
4290 fi
4291
4292 # Non-PIC object.
4293 if test "$non_pic_object" != none; then
4294 # Prepend the subdirectory the object is found in.
4295 non_pic_object="$xdir$non_pic_object"
4296
4297 # A standard non-PIC object
4298 func_append non_pic_objects " $non_pic_object"
4299 if test -z "$pic_object" || test "$pic_object" = none ; then
4300 arg="$non_pic_object"
4301 fi
4302 else
4303 # If the PIC object exists, use it instead.
4304 # $xdir was prepended to $pic_object above.
4305 non_pic_object="$pic_object"
4306 func_append non_pic_objects " $non_pic_object"
4307 fi
4308 else
4309 # Only an error if not doing a dry-run.
4310 if $opt_dry_run; then
4311 # Extract subdirectory from the argument.
4312 func_dirname "$arg" "/" ""
4313 xdir="$func_dirname_result"
4314
4315 func_lo2o "$arg"
4316 pic_object=$xdir$objdir/$func_lo2o_result
4317 non_pic_object=$xdir$func_lo2o_result
4318 func_append libobjs " $pic_object"
4319 func_append non_pic_objects " $non_pic_object"
4320 else
4321 func_fatal_error "\`$arg' is not a valid libtool object"
4322 fi
4323 fi
4324 done
4325 else
4326 func_fatal_error "link input file \`$arg' does not exist"
4327 fi
4328 arg=$save_arg
12904329 prev=
12914330 continue
12924331 ;;
13004339 prev=
13014340 continue
13024341 ;;
1303 objectlist)
1304 if test -f "$arg"; then
1305 save_arg=$arg
1306 moreargs=
1307 for fil in `cat $save_arg`
1308 do
1309 # moreargs="$moreargs $fil"
1310 arg=$fil
1311 # A libtool-controlled object.
1312
1313 # Check to see that this really is a libtool object.
1314 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1315 pic_object=
1316 non_pic_object=
1317
1318 # Read the .lo file
1319 # If there is no directory component, then add one.
1320 case $arg in
1321 */* | *\\*) . $arg ;;
1322 *) . ./$arg ;;
1323 esac
1324
1325 if test -z "$pic_object" || \
1326 test -z "$non_pic_object" ||
1327 test "$pic_object" = none && \
1328 test "$non_pic_object" = none; then
1329 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1330 exit $EXIT_FAILURE
1331 fi
1332
1333 # Extract subdirectory from the argument.
1334 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1335 if test "X$xdir" = "X$arg"; then
1336 xdir=
1337 else
1338 xdir="$xdir/"
1339 fi
1340
1341 if test "$pic_object" != none; then
1342 # Prepend the subdirectory the object is found in.
1343 pic_object="$xdir$pic_object"
1344
1345 if test "$prev" = dlfiles; then
1346 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1347 dlfiles="$dlfiles $pic_object"
1348 prev=
1349 continue
1350 else
1351 # If libtool objects are unsupported, then we need to preload.
1352 prev=dlprefiles
1353 fi
1354 fi
1355
1356 # CHECK ME: I think I busted this. -Ossama
1357 if test "$prev" = dlprefiles; then
1358 # Preload the old-style object.
1359 dlprefiles="$dlprefiles $pic_object"
1360 prev=
1361 fi
1362
1363 # A PIC object.
1364 libobjs="$libobjs $pic_object"
1365 arg="$pic_object"
1366 fi
1367
1368 # Non-PIC object.
1369 if test "$non_pic_object" != none; then
1370 # Prepend the subdirectory the object is found in.
1371 non_pic_object="$xdir$non_pic_object"
1372
1373 # A standard non-PIC object
1374 non_pic_objects="$non_pic_objects $non_pic_object"
1375 if test -z "$pic_object" || test "$pic_object" = none ; then
1376 arg="$non_pic_object"
1377 fi
1378 else
1379 # If the PIC object exists, use it instead.
1380 # $xdir was prepended to $pic_object above.
1381 non_pic_object="$pic_object"
1382 non_pic_objects="$non_pic_objects $non_pic_object"
1383 fi
1384 else
1385 # Only an error if not doing a dry-run.
1386 if test -z "$run"; then
1387 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1388 exit $EXIT_FAILURE
1389 else
1390 # Dry-run case.
1391
1392 # Extract subdirectory from the argument.
1393 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1394 if test "X$xdir" = "X$arg"; then
1395 xdir=
1396 else
1397 xdir="$xdir/"
1398 fi
1399
1400 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1401 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1402 libobjs="$libobjs $pic_object"
1403 non_pic_objects="$non_pic_objects $non_pic_object"
1404 fi
1405 fi
1406 done
1407 else
1408 $echo "$modename: link input file \`$save_arg' does not exist"
1409 exit $EXIT_FAILURE
1410 fi
1411 arg=$save_arg
1412 prev=
1413 continue
1414 ;;
14154342 rpath | xrpath)
14164343 # We need an absolute path.
14174344 case $arg in
14184345 [\\/]* | [A-Za-z]:[\\/]*) ;;
14194346 *)
1420 $echo "$modename: only absolute run-paths are allowed" 1>&2
1421 exit $EXIT_FAILURE
4347 func_fatal_error "only absolute run-paths are allowed"
14224348 ;;
14234349 esac
14244350 if test "$prev" = rpath; then
14354361 prev=
14364362 continue
14374363 ;;
4364 shrext)
4365 shrext_cmds="$arg"
4366 prev=
4367 continue
4368 ;;
4369 weak)
4370 weak_libs="$weak_libs $arg"
4371 prev=
4372 continue
4373 ;;
4374 xcclinker)
4375 linker_flags="$linker_flags $qarg"
4376 compiler_flags="$compiler_flags $qarg"
4377 prev=
4378 func_append compile_command " $qarg"
4379 func_append finalize_command " $qarg"
4380 continue
4381 ;;
14384382 xcompiler)
14394383 compiler_flags="$compiler_flags $qarg"
14404384 prev=
1441 compile_command="$compile_command $qarg"
1442 finalize_command="$finalize_command $qarg"
4385 func_append compile_command " $qarg"
4386 func_append finalize_command " $qarg"
14434387 continue
14444388 ;;
14454389 xlinker)
14464390 linker_flags="$linker_flags $qarg"
14474391 compiler_flags="$compiler_flags $wl$qarg"
14484392 prev=
1449 compile_command="$compile_command $wl$qarg"
1450 finalize_command="$finalize_command $wl$qarg"
1451 continue
1452 ;;
1453 xcclinker)
1454 linker_flags="$linker_flags $qarg"
1455 compiler_flags="$compiler_flags $qarg"
1456 prev=
1457 compile_command="$compile_command $qarg"
1458 finalize_command="$finalize_command $qarg"
1459 continue
1460 ;;
1461 shrext)
1462 shrext_cmds="$arg"
1463 prev=
1464 continue
1465 ;;
1466 darwin_framework|darwin_framework_skip)
1467 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1468 compile_command="$compile_command $arg"
1469 finalize_command="$finalize_command $arg"
1470 prev=
4393 func_append compile_command " $wl$qarg"
4394 func_append finalize_command " $wl$qarg"
14714395 continue
14724396 ;;
14734397 *)
14834407 case $arg in
14844408 -all-static)
14854409 if test -n "$link_static_flag"; then
1486 compile_command="$compile_command $link_static_flag"
1487 finalize_command="$finalize_command $link_static_flag"
4410 # See comment for -static flag below, for more details.
4411 func_append compile_command " $link_static_flag"
4412 func_append finalize_command " $link_static_flag"
14884413 fi
14894414 continue
14904415 ;;
14914416
14924417 -allow-undefined)
14934418 # FIXME: remove this flag sometime in the future.
1494 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1495 continue
4419 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
14964420 ;;
14974421
14984422 -avoid-version)
15174441
15184442 -export-symbols | -export-symbols-regex)
15194443 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1520 $echo "$modename: more than one -exported-symbols argument is not allowed"
1521 exit $EXIT_FAILURE
4444 func_fatal_error "more than one -exported-symbols argument is not allowed"
15224445 fi
15234446 if test "X$arg" = "X-export-symbols"; then
15244447 prev=expsyms
15284451 continue
15294452 ;;
15304453
1531 -framework|-arch|-isysroot)
1532 case " $CC " in
1533 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1534 prev=darwin_framework_skip ;;
1535 *) compiler_flags="$compiler_flags $arg"
1536 prev=darwin_framework ;;
1537 esac
1538 compile_command="$compile_command $arg"
1539 finalize_command="$finalize_command $arg"
4454 -framework)
4455 prev=framework
15404456 continue
15414457 ;;
15424458
15504466 -L[A-Z][A-Z]*:*)
15514467 case $with_gcc/$host in
15524468 no/*-*-irix* | /*-*-irix*)
1553 compile_command="$compile_command $arg"
1554 finalize_command="$finalize_command $arg"
4469 func_append compile_command " $arg"
4470 func_append finalize_command " $arg"
15554471 ;;
15564472 esac
15574473 continue
15584474 ;;
15594475
15604476 -L*)
1561 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
4477 func_stripname '-L' '' "$arg"
4478 dir=$func_stripname_result
4479 if test -z "$dir"; then
4480 if test "$#" -gt 0; then
4481 func_fatal_error "require no space between \`-L' and \`$1'"
4482 else
4483 func_fatal_error "need path for \`-L' option"
4484 fi
4485 fi
15624486 # We need an absolute path.
15634487 case $dir in
15644488 [\\/]* | [A-Za-z]:[\\/]*) ;;
15654489 *)
15664490 absdir=`cd "$dir" && pwd`
1567 if test -z "$absdir"; then
1568 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1569 absdir="$dir"
1570 notinst_path="$notinst_path $dir"
1571 fi
4491 test -z "$absdir" && \
4492 func_fatal_error "cannot determine absolute directory name of \`$dir'"
15724493 dir="$absdir"
15734494 ;;
15744495 esac
15804501 ;;
15814502 esac
15824503 case $host in
1583 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1584 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
4504 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
4505 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
15854506 case :$dllsearchpath: in
15864507 *":$dir:"*) ;;
4508 ::) dllsearchpath=$dir;;
15874509 *) dllsearchpath="$dllsearchpath:$dir";;
15884510 esac
15894511 case :$dllsearchpath: in
15904512 *":$testbindir:"*) ;;
4513 ::) dllsearchpath=$testbindir;;
15914514 *) dllsearchpath="$dllsearchpath:$testbindir";;
15924515 esac
15934516 ;;
15984521 -l*)
15994522 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
16004523 case $host in
1601 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
16024525 # These systems don't actually have a C or math library (as such)
16034526 continue
16044527 ;;
16124535 ;;
16134536 *-*-rhapsody* | *-*-darwin1.[012])
16144537 # Rhapsody C and math libraries are in the System framework
1615 deplibs="$deplibs -framework System"
4538 deplibs="$deplibs System.ltframework"
16164539 continue
16174540 ;;
16184541 *-*-sco3.2v5* | *-*-sco5v6*)
16364559 continue
16374560 ;;
16384561
4562 -module)
4563 module=yes
4564 continue
4565 ;;
4566
16394567 # Tru64 UNIX uses -model [arg] to determine the layout of C++
16404568 # classes, name mangling, and exception handling.
1641 -model)
1642 compile_command="$compile_command $arg"
4569 # Darwin uses the -arch flag to determine output architecture.
4570 -model|-arch|-isysroot)
16434571 compiler_flags="$compiler_flags $arg"
1644 finalize_command="$finalize_command $arg"
4572 func_append compile_command " $arg"
4573 func_append finalize_command " $arg"
16454574 prev=xcompiler
16464575 continue
16474576 ;;
16484577
1649 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4578 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
16504579 compiler_flags="$compiler_flags $arg"
1651 compile_command="$compile_command $arg"
1652 finalize_command="$finalize_command $arg"
4580 func_append compile_command " $arg"
4581 func_append finalize_command " $arg"
4582 case "$new_inherited_linker_flags " in
4583 *" $arg "*) ;;
4584 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
4585 esac
16534586 continue
16544587 ;;
16554588
16584591 continue
16594592 ;;
16604593
1661 -module)
1662 module=yes
1663 continue
1664 ;;
1665
1666 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1667 # -r[0-9][0-9]* specifies the processor on the SGI compiler
1668 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1669 # +DA*, +DD* enable 64-bit mode on the HP compiler
1670 # -q* pass through compiler args for the IBM compiler
1671 # -m* pass through architecture-specific compiler args for GCC
1672 # -m*, -t[45]*, -txscale* pass through architecture-specific
1673 # compiler args for GCC
1674 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1675 # -F/path gives path to uninstalled frameworks, gcc on darwin
1676 # @file GCC response files
1677 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
1678 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1679
1680 # Unknown arguments in both finalize_command and compile_command need
1681 # to be aesthetically quoted because they are evaled later.
1682 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1683 case $arg in
1684 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1685 arg="\"$arg\""
1686 ;;
1687 esac
1688 compile_command="$compile_command $arg"
1689 finalize_command="$finalize_command $arg"
1690 compiler_flags="$compiler_flags $arg"
1691 continue
1692 ;;
1693
1694 -shrext)
1695 prev=shrext
1696 continue
1697 ;;
1698
16994594 -no-fast-install)
17004595 fast_install=no
17014596 continue
17034598
17044599 -no-install)
17054600 case $host in
1706 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
4601 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
17074602 # The PATH hackery in wrapper scripts is required on Windows
17084603 # and Darwin in order for the loader to find any dlls it needs.
1709 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1710 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
4604 func_warning "\`-no-install' is ignored for $host"
4605 func_warning "assuming \`-no-fast-install' instead"
17114606 fast_install=no
17124607 ;;
17134608 *) no_install=yes ;;
17484643 ;;
17494644
17504645 -R*)
1751 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
4646 func_stripname '-R' '' "$arg"
4647 dir=$func_stripname_result
17524648 # We need an absolute path.
17534649 case $dir in
17544650 [\\/]* | [A-Za-z]:[\\/]*) ;;
17554651 *)
1756 $echo "$modename: only absolute run-paths are allowed" 1>&2
1757 exit $EXIT_FAILURE
4652 func_fatal_error "only absolute run-paths are allowed"
17584653 ;;
17594654 esac
17604655 case "$xrpath " in
17644659 continue
17654660 ;;
17664661
4662 -shared)
4663 # The effects of -shared are defined in a previous loop.
4664 continue
4665 ;;
4666
4667 -shrext)
4668 prev=shrext
4669 continue
4670 ;;
4671
17674672 -static | -static-libtool-libs)
17684673 # The effects of -static are defined in a previous loop.
17694674 # We used to do the same as -all-static on platforms that
17824687 prev=vinfo
17834688 continue
17844689 ;;
4690
17854691 -version-number)
17864692 prev=vinfo
17874693 vinfo_number=yes
17884694 continue
17894695 ;;
17904696
4697 -weak)
4698 prev=weak
4699 continue
4700 ;;
4701
17914702 -Wc,*)
1792 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
4703 func_stripname '-Wc,' '' "$arg"
4704 args=$func_stripname_result
17934705 arg=
17944706 save_ifs="$IFS"; IFS=','
17954707 for flag in $args; do
17964708 IFS="$save_ifs"
1797 case $flag in
1798 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1799 flag="\"$flag\""
1800 ;;
1801 esac
1802 arg="$arg $wl$flag"
1803 compiler_flags="$compiler_flags $flag"
4709 func_quote_for_eval "$flag"
4710 arg="$arg $wl$func_quote_for_eval_result"
4711 compiler_flags="$compiler_flags $func_quote_for_eval_result"
18044712 done
18054713 IFS="$save_ifs"
1806 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
4714 func_stripname ' ' '' "$arg"
4715 arg=$func_stripname_result
18074716 ;;
18084717
18094718 -Wl,*)
1810 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
4719 func_stripname '-Wl,' '' "$arg"
4720 args=$func_stripname_result
18114721 arg=
18124722 save_ifs="$IFS"; IFS=','
18134723 for flag in $args; do
18144724 IFS="$save_ifs"
1815 case $flag in
1816 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1817 flag="\"$flag\""
1818 ;;
1819 esac
1820 arg="$arg $wl$flag"
1821 compiler_flags="$compiler_flags $wl$flag"
1822 linker_flags="$linker_flags $flag"
4725 func_quote_for_eval "$flag"
4726 arg="$arg $wl$func_quote_for_eval_result"
4727 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
4728 linker_flags="$linker_flags $func_quote_for_eval_result"
18234729 done
18244730 IFS="$save_ifs"
1825 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
4731 func_stripname ' ' '' "$arg"
4732 arg=$func_stripname_result
18264733 ;;
18274734
18284735 -Xcompiler)
18404747 continue
18414748 ;;
18424749
4750 # -msg_* for osf cc
4751 -msg_*)
4752 func_quote_for_eval "$arg"
4753 arg="$func_quote_for_eval_result"
4754 ;;
4755
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
4766 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
4767 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
4768 func_quote_for_eval "$arg"
4769 arg="$func_quote_for_eval_result"
4770 func_append compile_command " $arg"
4771 func_append finalize_command " $arg"
4772 compiler_flags="$compiler_flags $arg"
4773 continue
4774 ;;
4775
18434776 # Some other compiler flag.
18444777 -* | +*)
1845 # Unknown arguments in both finalize_command and compile_command need
1846 # to be aesthetically quoted because they are evaled later.
1847 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1848 case $arg in
1849 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1850 arg="\"$arg\""
1851 ;;
1852 esac
4778 func_quote_for_eval "$arg"
4779 arg="$func_quote_for_eval_result"
18534780 ;;
18544781
18554782 *.$objext)
18614788 # A libtool-controlled object.
18624789
18634790 # Check to see that this really is a libtool object.
1864 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
4791 if func_lalib_unsafe_p "$arg"; then
18654792 pic_object=
18664793 non_pic_object=
18674794
18684795 # Read the .lo file
1869 # If there is no directory component, then add one.
1870 case $arg in
1871 */* | *\\*) . $arg ;;
1872 *) . ./$arg ;;
1873 esac
1874
1875 if test -z "$pic_object" || \
4796 func_source "$arg"
4797
4798 if test -z "$pic_object" ||
18764799 test -z "$non_pic_object" ||
1877 test "$pic_object" = none && \
4800 test "$pic_object" = none &&
18784801 test "$non_pic_object" = none; then
1879 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1880 exit $EXIT_FAILURE
4802 func_fatal_error "cannot find name of object for \`$arg'"
18814803 fi
18824804
18834805 # Extract subdirectory from the argument.
1884 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1885 if test "X$xdir" = "X$arg"; then
1886 xdir=
1887 else
1888 xdir="$xdir/"
1889 fi
4806 func_dirname "$arg" "/" ""
4807 xdir="$func_dirname_result"
18904808
18914809 if test "$pic_object" != none; then
18924810 # Prepend the subdirectory the object is found in.
19114829 fi
19124830
19134831 # A PIC object.
1914 libobjs="$libobjs $pic_object"
4832 func_append libobjs " $pic_object"
19154833 arg="$pic_object"
19164834 fi
19174835
19214839 non_pic_object="$xdir$non_pic_object"
19224840
19234841 # A standard non-PIC object
1924 non_pic_objects="$non_pic_objects $non_pic_object"
4842 func_append non_pic_objects " $non_pic_object"
19254843 if test -z "$pic_object" || test "$pic_object" = none ; then
19264844 arg="$non_pic_object"
19274845 fi
19294847 # If the PIC object exists, use it instead.
19304848 # $xdir was prepended to $pic_object above.
19314849 non_pic_object="$pic_object"
1932 non_pic_objects="$non_pic_objects $non_pic_object"
4850 func_append non_pic_objects " $non_pic_object"
19334851 fi
19344852 else
19354853 # Only an error if not doing a dry-run.
1936 if test -z "$run"; then
1937 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1938 exit $EXIT_FAILURE
4854 if $opt_dry_run; then
4855 # Extract subdirectory from the argument.
4856 func_dirname "$arg" "/" ""
4857 xdir="$func_dirname_result"
4858
4859 func_lo2o "$arg"
4860 pic_object=$xdir$objdir/$func_lo2o_result
4861 non_pic_object=$xdir$func_lo2o_result
4862 func_append libobjs " $pic_object"
4863 func_append non_pic_objects " $non_pic_object"
19394864 else
1940 # Dry-run case.
1941
1942 # Extract subdirectory from the argument.
1943 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1944 if test "X$xdir" = "X$arg"; then
1945 xdir=
1946 else
1947 xdir="$xdir/"
1948 fi
1949
1950 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1951 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1952 libobjs="$libobjs $pic_object"
1953 non_pic_objects="$non_pic_objects $non_pic_object"
4865 func_fatal_error "\`$arg' is not a valid libtool object"
19544866 fi
19554867 fi
19564868 ;;
19834895 *)
19844896 # Unknown arguments in both finalize_command and compile_command need
19854897 # to be aesthetically quoted because they are evaled later.
1986 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1987 case $arg in
1988 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1989 arg="\"$arg\""
1990 ;;
1991 esac
4898 func_quote_for_eval "$arg"
4899 arg="$func_quote_for_eval_result"
19924900 ;;
19934901 esac # arg
19944902
19954903 # Now actually substitute the argument into the commands.
19964904 if test -n "$arg"; then
1997 compile_command="$compile_command $arg"
1998 finalize_command="$finalize_command $arg"
4905 func_append compile_command " $arg"
4906 func_append finalize_command " $arg"
19994907 fi
20004908 done # argument parsing loop
20014909
2002 if test -n "$prev"; then
2003 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
2004 $echo "$help" 1>&2
2005 exit $EXIT_FAILURE
2006 fi
4910 test -n "$prev" && \
4911 func_fatal_help "the \`$prevarg' option requires an argument"
20074912
20084913 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
20094914 eval arg=\"$export_dynamic_flag_spec\"
2010 compile_command="$compile_command $arg"
2011 finalize_command="$finalize_command $arg"
4915 func_append compile_command " $arg"
4916 func_append finalize_command " $arg"
20124917 fi
20134918
20144919 oldlibs=
20154920 # calculate the name of the file, without its directory
2016 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
4921 func_basename "$output"
4922 outputname="$func_basename_result"
20174923 libobjs_save="$libobjs"
20184924
20194925 if test -n "$shlibpath_var"; then
20204926 # get the directories listed in $shlibpath_var
2021 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
4927 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
20224928 else
20234929 shlib_search_path=
20244930 fi
20254931 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
20264932 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
20274933
2028 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
2029 if test "X$output_objdir" = "X$output"; then
2030 output_objdir="$objdir"
2031 else
2032 output_objdir="$output_objdir/$objdir"
2033 fi
4934 func_dirname "$output" "/" ""
4935 output_objdir="$func_dirname_result$objdir"
20344936 # Create the object directory.
2035 if test ! -d "$output_objdir"; then
2036 $show "$mkdir $output_objdir"
2037 $run $mkdir $output_objdir
2038 exit_status=$?
2039 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
2040 exit $exit_status
2041 fi
2042 fi
4937 func_mkdir_p "$output_objdir"
20434938
20444939 # Determine the type of output
20454940 case $output in
20464941 "")
2047 $echo "$modename: you must specify an output file" 1>&2
2048 $echo "$help" 1>&2
2049 exit $EXIT_FAILURE
4942 func_fatal_help "you must specify an output file"
20504943 ;;
20514944 *.$libext) linkmode=oldlib ;;
20524945 *.lo | *.$objext) linkmode=obj ;;
20544947 *) linkmode=prog ;; # Anything else should be a program.
20554948 esac
20564949
2057 case $host in
2058 *cygwin* | *mingw* | *pw32*)
2059 # don't eliminate duplications in $postdeps and $predeps
2060 duplicate_compiler_generated_deps=yes
2061 ;;
2062 *)
2063 duplicate_compiler_generated_deps=$duplicate_deps
2064 ;;
2065 esac
20664950 specialdeplibs=
20674951
20684952 libs=
20694953 # Find all interdependent deplibs by searching for libraries
20704954 # that are linked more than once (e.g. -la -lb -la)
20714955 for deplib in $deplibs; do
2072 if test "X$duplicate_deps" = "Xyes" ; then
4956 if $opt_duplicate_deps ; then
20734957 case "$libs " in
20744958 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
20754959 esac
20844968 # $postdeps and mark them as special (i.e., whose duplicates are
20854969 # not to be eliminated).
20864970 pre_post_deps=
2087 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
4971 if $opt_duplicate_compiler_generated_deps; then
20884972 for pre_post_dep in $predeps $postdeps; do
20894973 case "$pre_post_deps " in
20904974 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
21004984 newlib_search_path=
21014985 need_relink=no # whether we're linking any uninstalled libtool libraries
21024986 notinst_deplibs= # not-installed libtool libraries
4987 notinst_path= # paths that contain not-installed libtool libraries
4988
21034989 case $linkmode in
21044990 lib)
2105 passes="conv link"
4991 passes="conv dlpreopen link"
21064992 for file in $dlfiles $dlprefiles; do
21074993 case $file in
21084994 *.la) ;;
21094995 *)
2110 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2111 exit $EXIT_FAILURE
4996 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
21124997 ;;
21134998 esac
21144999 done
21245009 *) passes="conv"
21255010 ;;
21265011 esac
5012
21275013 for pass in $passes; do
5014 # The preopen pass in lib mode reverses $deplibs; put it back here
5015 # so that -L comes before libs that need it for instance...
5016 if test "$linkmode,$pass" = "lib,link"; then
5017 ## FIXME: Find the place where the list is rebuilt in the wrong
5018 ## order, and fix it there properly
5019 tmp_deplibs=
5020 for deplib in $deplibs; do
5021 tmp_deplibs="$deplib $tmp_deplibs"
5022 done
5023 deplibs="$tmp_deplibs"
5024 fi
5025
21285026 if test "$linkmode,$pass" = "lib,link" ||
21295027 test "$linkmode,$pass" = "prog,scan"; then
21305028 libs="$deplibs"
21345032 case $pass in
21355033 dlopen) libs="$dlfiles" ;;
21365034 dlpreopen) libs="$dlprefiles" ;;
2137 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
5035 link)
5036 libs="$deplibs %DEPLIBS%"
5037 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
5038 ;;
21385039 esac
5040 fi
5041 if test "$linkmode,$pass" = "lib,dlpreopen"; then
5042 # Collect and forward deplibs of preopened libtool libs
5043 for lib in $dlprefiles; do
5044 # Ignore non-libtool-libs
5045 dependency_libs=
5046 case $lib in
5047 *.la) func_source "$lib" ;;
5048 esac
5049
5050 # Collect preopened libtool deplibs, except any this library
5051 # has declared as weak libs
5052 for deplib in $dependency_libs; do
5053 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
5054 case " $weak_libs " in
5055 *" $deplib_base "*) ;;
5056 *) deplibs="$deplibs $deplib" ;;
5057 esac
5058 done
5059 done
5060 libs="$dlprefiles"
21395061 fi
21405062 if test "$pass" = dlopen; then
21415063 # Collect dlpreopened libraries
21425064 save_deplibs="$deplibs"
21435065 deplibs=
21445066 fi
5067
21455068 for deplib in $libs; do
21465069 lib=
21475070 found=no
21525075 finalize_deplibs="$deplib $finalize_deplibs"
21535076 else
21545077 compiler_flags="$compiler_flags $deplib"
5078 if test "$linkmode" = lib ; then
5079 case "$new_inherited_linker_flags " in
5080 *" $deplib "*) ;;
5081 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
5082 esac
5083 fi
21555084 fi
21565085 continue
21575086 ;;
21585087 -l*)
21595088 if test "$linkmode" != lib && test "$linkmode" != prog; then
2160 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
5089 func_warning "\`-l' is ignored for archives/objects"
21615090 continue
21625091 fi
2163 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
5092 func_stripname '-l' '' "$deplib"
5093 name=$func_stripname_result
21645094 if test "$linkmode" = lib; then
21655095 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
21665096 else
21965126 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
21975127 case " $predeps $postdeps " in
21985128 *" $deplib "*)
2199 if (${SED} -e '2q' $lib |
2200 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5129 if func_lalib_p "$lib"; then
22015130 library_names=
22025131 old_library=
2203 case $lib in
2204 */* | *\\*) . $lib ;;
2205 *) . ./$lib ;;
2206 esac
5132 func_source "$lib"
22075133 for l in $old_library $library_names; do
22085134 ll="$l"
22095135 done
22105136 if test "X$ll" = "X$old_library" ; then # only static version available
22115137 found=no
2212 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2213 test "X$ladir" = "X$lib" && ladir="."
5138 func_dirname "$lib" "" "."
5139 ladir="$func_dirname_result"
22145140 lib=$ladir/$old_library
22155141 if test "$linkmode,$pass" = "prog,link"; then
22165142 compile_deplibs="$deplib $compile_deplibs"
22225148 continue
22235149 fi
22245150 fi
2225 ;;
5151 ;;
22265152 *) ;;
22275153 esac
22285154 fi
22295155 fi
22305156 ;; # -l
5157 *.ltframework)
5158 if test "$linkmode,$pass" = "prog,link"; then
5159 compile_deplibs="$deplib $compile_deplibs"
5160 finalize_deplibs="$deplib $finalize_deplibs"
5161 else
5162 deplibs="$deplib $deplibs"
5163 if test "$linkmode" = lib ; then
5164 case "$new_inherited_linker_flags " in
5165 *" $deplib "*) ;;
5166 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
5167 esac
5168 fi
5169 fi
5170 continue
5171 ;;
22315172 -L*)
22325173 case $linkmode in
22335174 lib)
22345175 deplibs="$deplib $deplibs"
22355176 test "$pass" = conv && continue
22365177 newdependency_libs="$deplib $newdependency_libs"
2237 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
5178 func_stripname '-L' '' "$deplib"
5179 newlib_search_path="$newlib_search_path $func_stripname_result"
22385180 ;;
22395181 prog)
22405182 if test "$pass" = conv; then
22475189 compile_deplibs="$deplib $compile_deplibs"
22485190 finalize_deplibs="$deplib $finalize_deplibs"
22495191 fi
2250 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
5192 func_stripname '-L' '' "$deplib"
5193 newlib_search_path="$newlib_search_path $func_stripname_result"
22515194 ;;
22525195 *)
2253 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
5196 func_warning "\`-L' is ignored for archives/objects"
22545197 ;;
22555198 esac # linkmode
22565199 continue
22575200 ;; # -L
22585201 -R*)
22595202 if test "$pass" = link; then
2260 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
5203 func_stripname '-R' '' "$deplib"
5204 dir=$func_stripname_result
22615205 # Make sure the xrpath contains only unique directories.
22625206 case "$xrpath " in
22635207 *" $dir "*) ;;
22755219 fi
22765220 case $linkmode in
22775221 lib)
2278 valid_a_lib=no
2279 case $deplibs_check_method in
2280 match_pattern*)
2281 set dummy $deplibs_check_method
2282 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2283 if eval $echo \"$deplib\" 2>/dev/null \
2284 | $SED 10q \
5222 # Linking convenience modules into shared libraries is allowed,
5223 # but linking other static libraries is non-portable.
5224 case " $dlpreconveniencelibs " in
5225 *" $deplib "*) ;;
5226 *)
5227 valid_a_lib=no
5228 case $deplibs_check_method in
5229 match_pattern*)
5230 set dummy $deplibs_check_method; shift
5231 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
5232 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
22855233 | $EGREP "$match_pattern_regex" > /dev/null; then
5234 valid_a_lib=yes
5235 fi
5236 ;;
5237 pass_all)
22865238 valid_a_lib=yes
2287 fi
22885239 ;;
2289 pass_all)
2290 valid_a_lib=yes
2291 ;;
2292 esac
2293 if test "$valid_a_lib" != yes; then
2294 $echo
2295 $echo "*** Warning: Trying to link with static lib archive $deplib."
2296 $echo "*** I have the capability to make that library automatically link in when"
2297 $echo "*** you link to this library. But I can only do this if you have a"
2298 $echo "*** shared version of the library, which you do not appear to have"
2299 $echo "*** because the file extensions .$libext of this argument makes me believe"
2300 $echo "*** that it is just a static archive that I should not used here."
2301 else
2302 $echo
2303 $echo "*** Warning: Linking the shared library $output against the"
2304 $echo "*** static library $deplib is not portable!"
2305 deplibs="$deplib $deplibs"
2306 fi
5240 esac
5241 if test "$valid_a_lib" != yes; then
5242 $ECHO
5243 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
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."
5249 else
5250 $ECHO
5251 $ECHO "*** Warning: Linking the shared library $output against the"
5252 $ECHO "*** static library $deplib is not portable!"
5253 deplibs="$deplib $deplibs"
5254 fi
5255 ;;
5256 esac
23075257 continue
23085258 ;;
23095259 prog)
23385288 continue
23395289 ;;
23405290 esac # case $deplib
5291
23415292 if test "$found" = yes || test -f "$lib"; then :
23425293 else
2343 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2344 exit $EXIT_FAILURE
5294 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
23455295 fi
23465296
23475297 # Check to see that this really is a libtool archive.
2348 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2349 else
2350 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2351 exit $EXIT_FAILURE
2352 fi
2353
2354 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2355 test "X$ladir" = "X$lib" && ladir="."
5298 func_lalib_unsafe_p "$lib" \
5299 || func_fatal_error "\`$lib' is not a valid libtool archive"
5300
5301 func_dirname "$lib" "" "."
5302 ladir="$func_dirname_result"
23565303
23575304 dlname=
23585305 dlopen=
23605307 libdir=
23615308 library_names=
23625309 old_library=
5310 inherited_linker_flags=
23635311 # If the library was installed with an old release of libtool,
23645312 # it will not redefine variables installed, or shouldnotlink
23655313 installed=yes
23685316
23695317
23705318 # Read the .la file
2371 case $lib in
2372 */* | *\\*) . $lib ;;
2373 *) . ./$lib ;;
2374 esac
2375
5319 func_source "$lib"
5320
5321 # Convert "-framework foo" to "foo.ltframework"
5322 if test -n "$inherited_linker_flags"; then
5323 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
5324 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
5325 case " $new_inherited_linker_flags " in
5326 *" $tmp_inherited_linker_flag "*) ;;
5327 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
5328 esac
5329 done
5330 fi
5331 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
23765332 if test "$linkmode,$pass" = "lib,link" ||
23775333 test "$linkmode,$pass" = "prog,scan" ||
23785334 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
23855341 deplibs="$lib $deplibs"
23865342 if test -z "$libdir"; then
23875343 if test -z "$old_library"; then
2388 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2389 exit $EXIT_FAILURE
5344 func_fatal_error "cannot find name of link library for \`$lib'"
23905345 fi
23915346 # It is a libtool convenience library, so add in its objects.
23925347 convenience="$convenience $ladir/$objdir/$old_library"
23945349 tmp_libs=
23955350 for deplib in $dependency_libs; do
23965351 deplibs="$deplib $deplibs"
2397 if test "X$duplicate_deps" = "Xyes" ; then
2398 case "$tmp_libs " in
2399 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2400 esac
2401 fi
5352 if $opt_duplicate_deps ; then
5353 case "$tmp_libs " in
5354 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5355 esac
5356 fi
24025357 tmp_libs="$tmp_libs $deplib"
24035358 done
24045359 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2405 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2406 exit $EXIT_FAILURE
5360 func_fatal_error "\`$lib' is not a convenience library"
24075361 fi
24085362 continue
24095363 fi # $pass = conv
24155369 linklib="$l"
24165370 done
24175371 if test -z "$linklib"; then
2418 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2419 exit $EXIT_FAILURE
5372 func_fatal_error "cannot find name of link library for \`$lib'"
24205373 fi
24215374
24225375 # This library was specified with -dlopen.
24235376 if test "$pass" = dlopen; then
24245377 if test -z "$libdir"; then
2425 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2426 exit $EXIT_FAILURE
5378 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
24275379 fi
24285380 if test -z "$dlname" ||
24295381 test "$dlopen_support" != yes ||
24455397 *)
24465398 abs_ladir=`cd "$ladir" && pwd`
24475399 if test -z "$abs_ladir"; then
2448 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2449 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
5400 func_warning "cannot determine absolute directory name of \`$ladir'"
5401 func_warning "passing it literally to the linker, although it might fail"
24505402 abs_ladir="$ladir"
24515403 fi
24525404 ;;
24535405 esac
2454 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5406 func_basename "$lib"
5407 laname="$func_basename_result"
24555408
24565409 # Find the relevant object directory and library name.
24575410 if test "X$installed" = Xyes; then
24585411 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2459 $echo "$modename: warning: library \`$lib' was moved." 1>&2
5412 func_warning "library \`$lib' was moved."
24605413 dir="$ladir"
24615414 absdir="$abs_ladir"
24625415 libdir="$abs_ladir"
24785431 notinst_path="$notinst_path $abs_ladir"
24795432 fi
24805433 fi # $installed = yes
2481 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
5434 func_stripname 'lib' '.la' "$laname"
5435 name=$func_stripname_result
24825436
24835437 # This library was specified with -dlpreopen.
24845438 if test "$pass" = dlpreopen; then
2485 if test -z "$libdir"; then
2486 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2487 exit $EXIT_FAILURE
5439 if test -z "$libdir" && test "$linkmode" = prog; then
5440 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
24885441 fi
24895442 # Prefer using a static library (so that no silly _DYNAMIC symbols
24905443 # are required to link).
24915444 if test -n "$old_library"; then
24925445 newdlprefiles="$newdlprefiles $dir/$old_library"
5446 # Keep a list of preopened convenience libraries to check
5447 # that they are being used correctly in the link pass.
5448 test -z "$libdir" && \
5449 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
24935450 # Otherwise, use the dlname, so that lt_dlopen finds it.
24945451 elif test -n "$dlname"; then
24955452 newdlprefiles="$newdlprefiles $dir/$dlname"
25255482 tmp_libs=
25265483 for deplib in $dependency_libs; do
25275484 case $deplib in
2528 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
5485 -L*) func_stripname '-L' '' "$deplib"
5486 newlib_search_path="$newlib_search_path $func_stripname_result"
5487 ;;
25295488 esac
25305489 # Need to link against all dependency_libs?
25315490 if test "$linkalldeplibs" = yes; then
25355494 # or/and link against static libraries
25365495 newdependency_libs="$deplib $newdependency_libs"
25375496 fi
2538 if test "X$duplicate_deps" = "Xyes" ; then
5497 if $opt_duplicate_deps ; then
25395498 case "$tmp_libs " in
25405499 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
25415500 esac
25485507 if test "$linkmode,$pass" = "prog,link"; then
25495508 if test -n "$library_names" &&
25505509 { { test "$prefer_static_libs" = no ||
2551 test "$prefer_static_libs,$installed" = "built,yes"; } ||
5510 test "$prefer_static_libs,$installed" = "built,yes"; } ||
25525511 test -z "$old_library"; }; then
25535512 # We need to hardcode the library path
25545513 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
25555514 # Make sure the rpath contains only unique directories.
2556 case "$temp_rpath " in
2557 *" $dir "*) ;;
2558 *" $absdir "*) ;;
2559 *) temp_rpath="$temp_rpath $absdir" ;;
5515 case "$temp_rpath:" in
5516 *"$absdir:"*) ;;
5517 *) temp_rpath="$temp_rpath$absdir:" ;;
25605518 esac
25615519 fi
25625520
25945552
25955553 link_static=no # Whether the deplib will be linked statically
25965554 use_static_libs=$prefer_static_libs
2597 if test "$use_static_libs" = built && test "$installed" = yes ; then
5555 if test "$use_static_libs" = built && test "$installed" = yes; then
25985556 use_static_libs=no
25995557 fi
26005558 if test -n "$library_names" &&
26015559 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2602 if test "$installed" = no; then
2603 notinst_deplibs="$notinst_deplibs $lib"
2604 need_relink=yes
2605 fi
5560 case $host in
5561 *cygwin* | *mingw* | *cegcc*)
5562 # No point in relinking DLLs because paths are not encoded
5563 notinst_deplibs="$notinst_deplibs $lib"
5564 need_relink=no
5565 ;;
5566 *)
5567 if test "$installed" = no; then
5568 notinst_deplibs="$notinst_deplibs $lib"
5569 need_relink=yes
5570 fi
5571 ;;
5572 esac
26065573 # This is a shared library
26075574
2608 # Warn about portability, can't link against -module's on
2609 # some systems (darwin)
2610 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2611 $echo
5575 # Warn about portability, can't link against -module's on some
5576 # systems (darwin). Don't bleat about dlopened modules though!
5577 dlopenmodule=""
5578 for dlpremoduletest in $dlprefiles; do
5579 if test "X$dlpremoduletest" = "X$lib"; then
5580 dlopenmodule="$dlpremoduletest"
5581 break
5582 fi
5583 done
5584 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5585 $ECHO
26125586 if test "$linkmode" = prog; then
2613 $echo "*** Warning: Linking the executable $output against the loadable module"
5587 $ECHO "*** Warning: Linking the executable $output against the loadable module"
26145588 else
2615 $echo "*** Warning: Linking the shared library $output against the loadable module"
5589 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
26165590 fi
2617 $echo "*** $linklib is not portable!"
5591 $ECHO "*** $linklib is not portable!"
26185592 fi
26195593 if test "$linkmode" = lib &&
26205594 test "$hardcode_into_libs" = yes; then
26445618 if test -n "$old_archive_from_expsyms_cmds"; then
26455619 # figure out the soname
26465620 set dummy $library_names
2647 realname="$2"
2648 shift; shift
2649 libname=`eval \\$echo \"$libname_spec\"`
5621 shift
5622 realname="$1"
5623 shift
5624 libname=`eval "\\$ECHO \"$libname_spec\""`
26505625 # use dlname if we got it. it's perfectly good, no?
26515626 if test -n "$dlname"; then
26525627 soname="$dlname"
26535628 elif test -n "$soname_spec"; then
26545629 # bleh windows
26555630 case $host in
2656 *cygwin* | mingw*)
2657 major=`expr $current - $age`
5631 *cygwin* | mingw* | *cegcc*)
5632 func_arith $current - $age
5633 major=$func_arith_result
26585634 versuffix="-$major"
26595635 ;;
26605636 esac
26655641
26665642 # Make a new name for the extract_expsyms_cmds to use
26675643 soroot="$soname"
2668 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2669 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
5644 func_basename "$soroot"
5645 soname="$func_basename_result"
5646 func_stripname 'lib' '.dll' "$soname"
5647 newlib=libimp-$func_stripname_result.a
26705648
26715649 # If the library has no export list, then create one now
26725650 if test -f "$output_objdir/$soname-def"; then :
26735651 else
2674 $show "extracting exported symbol list from \`$soname'"
2675 save_ifs="$IFS"; IFS='~'
2676 cmds=$extract_expsyms_cmds
2677 for cmd in $cmds; do
2678 IFS="$save_ifs"
2679 eval cmd=\"$cmd\"
2680 $show "$cmd"
2681 $run eval "$cmd" || exit $?
2682 done
2683 IFS="$save_ifs"
5652 func_verbose "extracting exported symbol list from \`$soname'"
5653 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
26845654 fi
26855655
26865656 # Create $newlib
26875657 if test -f "$output_objdir/$newlib"; then :; else
2688 $show "generating import library for \`$soname'"
2689 save_ifs="$IFS"; IFS='~'
2690 cmds=$old_archive_from_expsyms_cmds
2691 for cmd in $cmds; do
2692 IFS="$save_ifs"
2693 eval cmd=\"$cmd\"
2694 $show "$cmd"
2695 $run eval "$cmd" || exit $?
2696 done
2697 IFS="$save_ifs"
5658 func_verbose "generating import library for \`$soname'"
5659 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
26985660 fi
26995661 # make sure the library variables are pointing to the new library
27005662 dir=$output_objdir
27165678 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
27175679 *-*-unixware7*) add_dir="-L$dir" ;;
27185680 *-*-darwin* )
2719 # if the lib is a module then we can not link against
2720 # it, someone is ignoring the new warnings I added
5681 # if the lib is a (non-dlopened) module then we can not
5682 # link against it, someone is ignoring the earlier warnings
27215683 if /usr/bin/file -L $add 2> /dev/null |
2722 $EGREP ": [^:]* bundle" >/dev/null ; then
2723 $echo "** Warning, lib $linklib is a module, not a shared library"
2724 if test -z "$old_library" ; then
2725 $echo
2726 $echo "** And there doesn't seem to be a static archive available"
2727 $echo "** The link will probably fail, sorry"
2728 else
2729 add="$dir/$old_library"
5684 $GREP ": [^:]* bundle" >/dev/null ; then
5685 if test "X$dlopenmodule" != "X$lib"; then
5686 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
5687 if test -z "$old_library" ; then
5688 $ECHO
5689 $ECHO "*** And there doesn't seem to be a static archive available"
5690 $ECHO "*** The link will probably fail, sorry"
5691 else
5692 add="$dir/$old_library"
5693 fi
5694 elif test -n "$old_library"; then
5695 add="$dir/$old_library"
27305696 fi
27315697 fi
27325698 esac
27445710 fi
27455711 ;;
27465712 relink)
2747 if test "$hardcode_direct" = yes; then
5713 if test "$hardcode_direct" = yes &&
5714 test "$hardcode_direct_absolute" = no; then
27485715 add="$dir/$linklib"
27495716 elif test "$hardcode_minus_L" = yes; then
27505717 add_dir="-L$dir"
27685735 esac
27695736
27705737 if test "$lib_linked" != yes; then
2771 $echo "$modename: configuration error: unsupported hardcode properties"
2772 exit $EXIT_FAILURE
5738 func_fatal_configuration "unsupported hardcode properties"
27735739 fi
27745740
27755741 if test -n "$add_shlibpath"; then
27845750 else
27855751 test -n "$add_dir" && deplibs="$add_dir $deplibs"
27865752 test -n "$add" && deplibs="$add $deplibs"
2787 if test "$hardcode_direct" != yes && \
2788 test "$hardcode_minus_L" != yes && \
5753 if test "$hardcode_direct" != yes &&
5754 test "$hardcode_minus_L" != yes &&
27895755 test "$hardcode_shlibpath_var" = yes; then
27905756 case :$finalize_shlibpath: in
27915757 *":$libdir:"*) ;;
28005766 add_dir=
28015767 add=
28025768 # Finalize command for both is simple: just hardcode it.
2803 if test "$hardcode_direct" = yes; then
5769 if test "$hardcode_direct" = yes &&
5770 test "$hardcode_direct_absolute" = no; then
28045771 add="$libdir/$linklib"
28055772 elif test "$hardcode_minus_L" = yes; then
28065773 add_dir="-L$libdir"
28145781 elif test "$hardcode_automatic" = yes; then
28155782 if test -n "$inst_prefix_dir" &&
28165783 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2817 add="$inst_prefix_dir$libdir/$linklib"
5784 add="$inst_prefix_dir$libdir/$linklib"
28185785 else
2819 add="$libdir/$linklib"
5786 add="$libdir/$linklib"
28205787 fi
28215788 else
28225789 # We cannot seem to hardcode it, guess we'll fake it.
28605827
28615828 # Just print a warning and add the library to dependency_libs so
28625829 # that the program can be linked against the static library.
2863 $echo
2864 $echo "*** Warning: This system can not link to static lib archive $lib."
2865 $echo "*** I have the capability to make that library automatically link in when"
2866 $echo "*** you link to this library. But I can only do this if you have a"
2867 $echo "*** shared version of the library, which you do not appear to have."
5830 $ECHO
5831 $ECHO "*** Warning: This system can not link to static lib archive $lib."
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."
28685835 if test "$module" = yes; then
2869 $echo "*** But as you try to build a module library, libtool will still create "
2870 $echo "*** a static module, that should work as long as the dlopening application"
2871 $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."
28725839 if test -z "$global_symbol_pipe"; then
2873 $echo
2874 $echo "*** However, this would only work if libtool was able to extract symbol"
2875 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2876 $echo "*** not find such a program. So, this module is probably useless."
2877 $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."
28785845 fi
28795846 if test "$build_old_libs" = no; then
28805847 build_libtool_libs=module
28985865 temp_deplibs=
28995866 for libdir in $dependency_libs; do
29005867 case $libdir in
2901 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
5868 -R*) func_stripname '-R' '' "$libdir"
5869 temp_xrpath=$func_stripname_result
29025870 case " $xrpath " in
29035871 *" $temp_xrpath "*) ;;
29045872 *) xrpath="$xrpath $temp_xrpath";;
29165884 tmp_libs=
29175885 for deplib in $dependency_libs; do
29185886 newdependency_libs="$deplib $newdependency_libs"
2919 if test "X$duplicate_deps" = "Xyes" ; then
5887 if $opt_duplicate_deps ; then
29205888 case "$tmp_libs " in
29215889 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
29225890 esac
29275895 if test "$link_all_deplibs" != no; then
29285896 # Add the search paths of all dependency libraries
29295897 for deplib in $dependency_libs; do
5898 path=
29305899 case $deplib in
29315900 -L*) path="$deplib" ;;
29325901 *.la)
2933 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2934 test "X$dir" = "X$deplib" && dir="."
5902 func_dirname "$deplib" "" "."
5903 dir="$func_dirname_result"
29355904 # We need an absolute path.
29365905 case $dir in
29375906 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
29385907 *)
29395908 absdir=`cd "$dir" && pwd`
29405909 if test -z "$absdir"; then
2941 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
5910 func_warning "cannot determine absolute directory name of \`$dir'"
29425911 absdir="$dir"
29435912 fi
29445913 ;;
29455914 esac
2946 if grep "^installed=no" $deplib > /dev/null; then
2947 path="$absdir/$objdir"
2948 else
2949 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2950 if test -z "$libdir"; then
2951 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2952 exit $EXIT_FAILURE
2953 fi
2954 if test "$absdir" != "$libdir"; then
2955 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2956 fi
2957 path="$absdir"
2958 fi
2959 depdepl=
5915 if $GREP "^installed=no" $deplib > /dev/null; then
29605916 case $host in
29615917 *-*-darwin*)
2962 # we do not want to link against static libs,
2963 # but need to link against shared
5918 depdepl=
29645919 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2965 eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
29665920 if test -n "$deplibrary_names" ; then
29675921 for tmp in $deplibrary_names ; do
29685922 depdepl=$tmp
29695923 done
2970 if test -f "$deplibdir/$depdepl" ; then
2971 depdepl="$deplibdir/$depdepl"
2972 elif test -f "$path/$depdepl" ; then
2973 depdepl="$path/$depdepl"
2974 else
2975 # Can't find it, oh well...
2976 depdepl=
5924 if test -f "$absdir/$objdir/$depdepl" ; then
5925 depdepl="$absdir/$objdir/$depdepl"
5926 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5927 if test -z "$darwin_install_name"; then
5928 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5929 fi
5930 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5931 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
5932 path=
29775933 fi
2978 # do not add paths which are already there
2979 case " $newlib_search_path " in
2980 *" $path "*) ;;
2981 *) newlib_search_path="$newlib_search_path $path";;
2982 esac
29835934 fi
2984 path=""
29855935 ;;
29865936 *)
2987 path="-L$path"
5937 path="-L$absdir/$objdir"
29885938 ;;
29895939 esac
5940 else
5941 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5942 test -z "$libdir" && \
5943 func_fatal_error "\`$deplib' is not a valid libtool archive"
5944 test "$absdir" != "$libdir" && \
5945 func_warning "\`$deplib' seems to be moved"
5946
5947 path="-L$absdir"
5948 fi
29905949 ;;
2991 -l*)
2992 case $host in
2993 *-*-darwin*)
2994 # Again, we only want to link against shared libraries
2995 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2996 for tmp in $newlib_search_path ; do
2997 if test -f "$tmp/lib$tmp_libs.dylib" ; then
2998 eval depdepl="$tmp/lib$tmp_libs.dylib"
2999 break
3000 fi
3001 done
3002 path=""
3003 ;;
3004 *) continue ;;
3005 esac
3006 ;;
3007 *) continue ;;
30085950 esac
30095951 case " $deplibs " in
30105952 *" $path "*) ;;
30115953 *) deplibs="$path $deplibs" ;;
30125954 esac
3013 case " $deplibs " in
3014 *" $depdepl "*) ;;
3015 *) deplibs="$depdepl $deplibs" ;;
3016 esac
30175955 done
30185956 fi # link_all_deplibs != no
30195957 fi # linkmode = lib
30205958 done # for deplib in $libs
5959 if test "$pass" = link; then
5960 if test "$linkmode" = "prog"; then
5961 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
5962 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
5963 else
5964 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
5965 fi
5966 fi
30215967 dependency_libs="$newdependency_libs"
30225968 if test "$pass" = dlpreopen; then
30235969 # Link the dlpreopened libraries before other libraries
31166062 done # for pass
31176063 if test "$linkmode" = prog; then
31186064 dlfiles="$newdlfiles"
6065 fi
6066 if test "$linkmode" = prog || test "$linkmode" = lib; then
31196067 dlprefiles="$newdlprefiles"
31206068 fi
31216069
31226070 case $linkmode in
31236071 oldlib)
6072 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
6073 func_warning "\`-dlopen' is ignored for archives"
6074 fi
6075
31246076 case " $deplibs" in
31256077 *\ -l* | *\ -L*)
3126 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
6078 func_warning "\`-l' and \`-L' are ignored for archives" ;;
31276079 esac
31286080
3129 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3130 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3131 fi
3132
3133 if test -n "$rpath"; then
3134 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
3135 fi
3136
3137 if test -n "$xrpath"; then
3138 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
3139 fi
3140
3141 if test -n "$vinfo"; then
3142 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
3143 fi
3144
3145 if test -n "$release"; then
3146 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
3147 fi
3148
3149 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
3150 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
3151 fi
6081 test -n "$rpath" && \
6082 func_warning "\`-rpath' is ignored for archives"
6083
6084 test -n "$xrpath" && \
6085 func_warning "\`-R' is ignored for archives"
6086
6087 test -n "$vinfo" && \
6088 func_warning "\`-version-info/-version-number' is ignored for archives"
6089
6090 test -n "$release" && \
6091 func_warning "\`-release' is ignored for archives"
6092
6093 test -n "$export_symbols$export_symbols_regex" && \
6094 func_warning "\`-export-symbols' is ignored for archives"
31526095
31536096 # Now set the variables for building old libraries.
31546097 build_libtool_libs=no
31606103 # Make sure we only generate libraries of the form `libNAME.la'.
31616104 case $outputname in
31626105 lib*)
3163 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
6106 func_stripname 'lib' '.la' "$outputname"
6107 name=$func_stripname_result
31646108 eval shared_ext=\"$shrext_cmds\"
31656109 eval libname=\"$libname_spec\"
31666110 ;;
31676111 *)
3168 if test "$module" = no; then
3169 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3170 $echo "$help" 1>&2
3171 exit $EXIT_FAILURE
3172 fi
6112 test "$module" = no && \
6113 func_fatal_help "libtool library \`$output' must begin with \`lib'"
6114
31736115 if test "$need_lib_prefix" != no; then
31746116 # Add the "lib" prefix for modules if required
3175 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
6117 func_stripname '' '.la' "$outputname"
6118 name=$func_stripname_result
31766119 eval shared_ext=\"$shrext_cmds\"
31776120 eval libname=\"$libname_spec\"
31786121 else
3179 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
6122 func_stripname '' '.la' "$outputname"
6123 libname=$func_stripname_result
31806124 fi
31816125 ;;
31826126 esac
31836127
31846128 if test -n "$objs"; then
31856129 if test "$deplibs_check_method" != pass_all; then
3186 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3187 exit $EXIT_FAILURE
6130 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
31886131 else
3189 $echo
3190 $echo "*** Warning: Linking the shared library $output against the non-libtool"
3191 $echo "*** objects $objs is not portable!"
6132 $ECHO
6133 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
6134 $ECHO "*** objects $objs is not portable!"
31926135 libobjs="$libobjs $objs"
31936136 fi
31946137 fi
31956138
3196 if test "$dlself" != no; then
3197 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
3198 fi
6139 test "$dlself" != no && \
6140 func_warning "\`-dlopen self' is ignored for libtool libraries"
31996141
32006142 set dummy $rpath
3201 if test "$#" -gt 2; then
3202 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
3203 fi
3204 install_libdir="$2"
6143 shift
6144 test "$#" -gt 1 && \
6145 func_warning "ignoring multiple \`-rpath's for a libtool library"
6146
6147 install_libdir="$1"
32056148
32066149 oldlibs=
32076150 if test -z "$rpath"; then
32156158 build_old_libs=yes
32166159 fi
32176160
3218 if test -n "$vinfo"; then
3219 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
3220 fi
3221
3222 if test -n "$release"; then
3223 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
3224 fi
6161 test -n "$vinfo" && \
6162 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
6163
6164 test -n "$release" && \
6165 func_warning "\`-release' is ignored for convenience libraries"
32256166 else
32266167
32276168 # Parse the version information argument.
32286169 save_ifs="$IFS"; IFS=':'
32296170 set dummy $vinfo 0 0 0
6171 shift
32306172 IFS="$save_ifs"
32316173
3232 if test -n "$8"; then
3233 $echo "$modename: too many parameters to \`-version-info'" 1>&2
3234 $echo "$help" 1>&2
3235 exit $EXIT_FAILURE
3236 fi
6174 test -n "$7" && \
6175 func_fatal_help "too many parameters to \`-version-info'"
32376176
32386177 # convert absolute version numbers to libtool ages
32396178 # this retains compatibility with .la files and attempts
32416180
32426181 case $vinfo_number in
32436182 yes)
3244 number_major="$2"
3245 number_minor="$3"
3246 number_revision="$4"
6183 number_major="$1"
6184 number_minor="$2"
6185 number_revision="$3"
32476186 #
32486187 # There are really only two kinds -- those that
32496188 # use the current revision as the major version
32536192 #
32546193 case $version_type in
32556194 darwin|linux|osf|windows|none)
3256 current=`expr $number_major + $number_minor`
6195 func_arith $number_major + $number_minor
6196 current=$func_arith_result
32576197 age="$number_minor"
32586198 revision="$number_revision"
32596199 ;;
32636203 age="0"
32646204 ;;
32656205 irix|nonstopux)
3266 current=`expr $number_major + $number_minor`
6206 func_arith $number_major + $number_minor
6207 current=$func_arith_result
32676208 age="$number_minor"
32686209 revision="$number_minor"
32696210 lt_irix_increment=no
32706211 ;;
6212 *)
6213 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
6214 ;;
32716215 esac
32726216 ;;
32736217 no)
3274 current="$2"
3275 revision="$3"
3276 age="$4"
6218 current="$1"
6219 revision="$2"
6220 age="$3"
32776221 ;;
32786222 esac
32796223
32816225 case $current in
32826226 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
32836227 *)
3284 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
3285 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3286 exit $EXIT_FAILURE
6228 func_error "CURRENT \`$current' must be a nonnegative integer"
6229 func_fatal_error "\`$vinfo' is not valid version information"
32876230 ;;
32886231 esac
32896232
32906233 case $revision in
32916234 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
32926235 *)
3293 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
3294 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3295 exit $EXIT_FAILURE
6236 func_error "REVISION \`$revision' must be a nonnegative integer"
6237 func_fatal_error "\`$vinfo' is not valid version information"
32966238 ;;
32976239 esac
32986240
32996241 case $age in
33006242 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
33016243 *)
3302 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
3303 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3304 exit $EXIT_FAILURE
6244 func_error "AGE \`$age' must be a nonnegative integer"
6245 func_fatal_error "\`$vinfo' is not valid version information"
33056246 ;;
33066247 esac
33076248
33086249 if test "$age" -gt "$current"; then
3309 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3310 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3311 exit $EXIT_FAILURE
6250 func_error "AGE \`$age' is greater than the current interface number \`$current'"
6251 func_fatal_error "\`$vinfo' is not valid version information"
33126252 fi
33136253
33146254 # Calculate the version variables.
33216261 darwin)
33226262 # Like Linux, but with the current version available in
33236263 # verstring for coding it into the library header
3324 major=.`expr $current - $age`
6264 func_arith $current - $age
6265 major=.$func_arith_result
33256266 versuffix="$major.$age.$revision"
33266267 # Darwin ld doesn't like 0 for these options...
3327 minor_current=`expr $current + 1`
6268 func_arith $current + 1
6269 minor_current=$func_arith_result
33286270 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
33296271 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
33306272 ;;
33366278
33376279 freebsd-elf)
33386280 major=".$current"
3339 versuffix=".$current";
6281 versuffix=".$current"
33406282 ;;
33416283
33426284 irix | nonstopux)
33436285 if test "X$lt_irix_increment" = "Xno"; then
3344 major=`expr $current - $age`
6286 func_arith $current - $age
33456287 else
3346 major=`expr $current - $age + 1`
6288 func_arith $current - $age + 1
33476289 fi
6290 major=$func_arith_result
6291
33486292 case $version_type in
33496293 nonstopux) verstring_prefix=nonstopux ;;
33506294 *) verstring_prefix=sgi ;;
33546298 # Add in all the interfaces that we are compatible with.
33556299 loop=$revision
33566300 while test "$loop" -ne 0; do
3357 iface=`expr $revision - $loop`
3358 loop=`expr $loop - 1`
6301 func_arith $revision - $loop
6302 iface=$func_arith_result
6303 func_arith $loop - 1
6304 loop=$func_arith_result
33596305 verstring="$verstring_prefix$major.$iface:$verstring"
33606306 done
33616307
33656311 ;;
33666312
33676313 linux)
3368 major=.`expr $current - $age`
6314 func_arith $current - $age
6315 major=.$func_arith_result
33696316 versuffix="$major.$age.$revision"
33706317 ;;
33716318
33726319 osf)
3373 major=.`expr $current - $age`
6320 func_arith $current - $age
6321 major=.$func_arith_result
33746322 versuffix=".$current.$age.$revision"
33756323 verstring="$current.$age.$revision"
33766324
33776325 # Add in all the interfaces that we are compatible with.
33786326 loop=$age
33796327 while test "$loop" -ne 0; do
3380 iface=`expr $current - $loop`
3381 loop=`expr $loop - 1`
6328 func_arith $current - $loop
6329 iface=$func_arith_result
6330 func_arith $loop - 1
6331 loop=$func_arith_result
33826332 verstring="$verstring:${iface}.0"
33836333 done
33846334
33856335 # Make executables depend on our current version.
33866336 verstring="$verstring:${current}.0"
6337 ;;
6338
6339 qnx)
6340 major=".$current"
6341 versuffix=".$current"
33876342 ;;
33886343
33896344 sunos)
33946349 windows)
33956350 # Use '-' rather than '.', since we only want one
33966351 # extension on DOS 8.3 filesystems.
3397 major=`expr $current - $age`
6352 func_arith $current - $age
6353 major=$func_arith_result
33986354 versuffix="-$major"
33996355 ;;
34006356
34016357 *)
3402 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3403 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3404 exit $EXIT_FAILURE
6358 func_fatal_configuration "unknown library version type \`$version_type'"
34056359 ;;
34066360 esac
34076361
34356389 # Check to see if the archive will have undefined symbols.
34366390 if test "$allow_undefined" = yes; then
34376391 if test "$allow_undefined_flag" = unsupported; then
3438 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
6392 func_warning "undefined symbols not allowed in $host shared libraries"
34396393 build_libtool_libs=no
34406394 build_old_libs=yes
34416395 fi
34436397 # Don't allow undefined symbols.
34446398 allow_undefined_flag="$no_undefined_flag"
34456399 fi
6400
34466401 fi
6402
6403 func_generate_dlsyms "$libname" "$libname" "yes"
6404 libobjs="$libobjs $symfileobj"
6405 test "X$libobjs" = "X " && libobjs=
34476406
34486407 if test "$mode" != relink; then
34496408 # Remove our outputs, but don't remove object files since they
34506409 # may have been created when compiling PIC objects.
34516410 removelist=
3452 tempremovelist=`$echo "$output_objdir/*"`
6411 tempremovelist=`$ECHO "$output_objdir/*"`
34536412 for p in $tempremovelist; do
34546413 case $p in
3455 *.$objext)
6414 *.$objext | *.gcno)
34566415 ;;
34576416 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
34586417 if test "X$precious_files_regex" != "X"; then
3459 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3460 then
6418 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
6419 then
34616420 continue
34626421 fi
34636422 fi
34666425 *) ;;
34676426 esac
34686427 done
3469 if test -n "$removelist"; then
3470 $show "${rm}r $removelist"
3471 $run ${rm}r $removelist
3472 fi
6428 test -n "$removelist" && \
6429 func_show_eval "${RM}r \$removelist"
34736430 fi
34746431
34756432 # Now set the variables for building old libraries.
34776434 oldlibs="$oldlibs $output_objdir/$libname.$libext"
34786435
34796436 # Transform .lo files to .o files.
3480 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
6437 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
34816438 fi
34826439
34836440 # Eliminate all temporary directories.
34846441 #for path in $notinst_path; do
3485 # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3486 # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3487 # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "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"`
34886445 #done
34896446
34906447 if test -n "$xrpath"; then
35256482 if test "$build_libtool_libs" = yes; then
35266483 if test -n "$rpath"; then
35276484 case $host in
3528 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
6485 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
35296486 # these systems don't actually have a c library (as such)!
35306487 ;;
35316488 *-*-rhapsody* | *-*-darwin1.[012])
35326489 # Rhapsody C library is in the System framework
3533 deplibs="$deplibs -framework System"
6490 deplibs="$deplibs System.ltframework"
35346491 ;;
35356492 *-*-netbsd*)
35366493 # Don't link with libc until the a.out ld.so is fixed.
35446501 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
35456502 # Compiler inserts libc in the correct place for threads to work
35466503 ;;
3547 *)
6504 *)
35486505 # Add libc to deplibs on all other systems if necessary.
35496506 if test "$build_libtool_need_lc" = "yes"; then
35506507 deplibs="$deplibs -lc"
35816538 # limits. Maybe even breaks it. We compile a program, linking it
35826539 # against the deplibs as a proxy for the library. Then we can check
35836540 # whether they linked in statically or dynamically with ldd.
3584 $rm conftest.c
6541 $opt_dry_run || $RM conftest.c
35856542 cat > conftest.c <<EOF
35866543 int main() { return 0; }
35876544 EOF
3588 $rm conftest
6545 $opt_dry_run || $RM conftest
35896546 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
35906547 ldd_output=`ldd conftest`
35916548 for i in $deplibs; do
3592 name=`expr $i : '-l\(.*\)'`
3593 # If $name is empty we are operating on a -L argument.
3594 if test "$name" != "" && test "$name" != "0"; then
6549 case $i in
6550 -l*)
6551 func_stripname -l '' "$i"
6552 name=$func_stripname_result
35956553 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35966554 case " $predeps $postdeps " in
35976555 *" $i "*)
35996557 i=""
36006558 ;;
36016559 esac
3602 fi
6560 fi
36036561 if test -n "$i" ; then
3604 libname=`eval \\$echo \"$libname_spec\"`
3605 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3606 set dummy $deplib_matches
3607 deplib_match=$2
6562 libname=`eval "\\$ECHO \"$libname_spec\""`
6563 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6564 set dummy $deplib_matches; shift
6565 deplib_match=$1
36086566 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
36096567 newdeplibs="$newdeplibs $i"
36106568 else
36116569 droppeddeps=yes
3612 $echo
3613 $echo "*** Warning: dynamic linker does not accept needed library $i."
3614 $echo "*** I have the capability to make that library automatically link in when"
3615 $echo "*** you link to this library. But I can only do this if you have a"
3616 $echo "*** shared version of the library, which I believe you do not have"
3617 $echo "*** because a test_compile did reveal that the linker did not use it for"
3618 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
6570 $ECHO
6571 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
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."
36196577 fi
36206578 fi
3621 else
6579 ;;
6580 *)
36226581 newdeplibs="$newdeplibs $i"
3623 fi
6582 ;;
6583 esac
36246584 done
36256585 else
36266586 # Error occurred in the first compile. Let's try to salvage
36276587 # the situation: Compile a separate program for each library.
36286588 for i in $deplibs; do
3629 name=`expr $i : '-l\(.*\)'`
3630 # If $name is empty we are operating on a -L argument.
3631 if test "$name" != "" && test "$name" != "0"; then
3632 $rm conftest
6589 case $i in
6590 -l*)
6591 func_stripname -l '' "$i"
6592 name=$func_stripname_result
6593 $opt_dry_run || $RM conftest
36336594 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
36346595 ldd_output=`ldd conftest`
36356596 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36416602 esac
36426603 fi
36436604 if test -n "$i" ; then
3644 libname=`eval \\$echo \"$libname_spec\"`
3645 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3646 set dummy $deplib_matches
3647 deplib_match=$2
6605 libname=`eval "\\$ECHO \"$libname_spec\""`
6606 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6607 set dummy $deplib_matches; shift
6608 deplib_match=$1
36486609 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
36496610 newdeplibs="$newdeplibs $i"
36506611 else
36516612 droppeddeps=yes
3652 $echo
3653 $echo "*** Warning: dynamic linker does not accept needed library $i."
3654 $echo "*** I have the capability to make that library automatically link in when"
3655 $echo "*** you link to this library. But I can only do this if you have a"
3656 $echo "*** shared version of the library, which you do not appear to have"
3657 $echo "*** because a test_compile did reveal that the linker did not use this one"
3658 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
6613 $ECHO
6614 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
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."
36596620 fi
36606621 fi
36616622 else
36626623 droppeddeps=yes
3663 $echo
3664 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3665 $echo "*** make it link in! You will probably need to install it or some"
3666 $echo "*** library that it depends on before this library will be fully"
3667 $echo "*** functional. Installing it before continuing would be even better."
6624 $ECHO
6625 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
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."
36686629 fi
3669 else
6630 ;;
6631 *)
36706632 newdeplibs="$newdeplibs $i"
3671 fi
6633 ;;
6634 esac
36726635 done
36736636 fi
36746637 ;;
36756638 file_magic*)
3676 set dummy $deplibs_check_method
3677 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
6639 set dummy $deplibs_check_method; shift
6640 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
36786641 for a_deplib in $deplibs; do
3679 name=`expr $a_deplib : '-l\(.*\)'`
3680 # If $name is empty we are operating on a -L argument.
3681 if test "$name" != "" && test "$name" != "0"; then
6642 case $a_deplib in
6643 -l*)
6644 func_stripname -l '' "$a_deplib"
6645 name=$func_stripname_result
36826646 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36836647 case " $predeps $postdeps " in
36846648 *" $a_deplib "*)
36886652 esac
36896653 fi
36906654 if test -n "$a_deplib" ; then
3691 libname=`eval \\$echo \"$libname_spec\"`
6655 libname=`eval "\\$ECHO \"$libname_spec\""`
36926656 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
36936657 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
36946658 for potent_lib in $potential_libs; do
36956659 # Follow soft links.
3696 if ls -lLd "$potent_lib" 2>/dev/null \
3697 | grep " -> " >/dev/null; then
6660 if ls -lLd "$potent_lib" 2>/dev/null |
6661 $GREP " -> " >/dev/null; then
36986662 continue
36996663 fi
37006664 # The statement above tries to avoid entering an
37076671 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
37086672 case $potliblink in
37096673 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3710 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
6674 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
37116675 esac
37126676 done
3713 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3714 | ${SED} 10q \
3715 | $EGREP "$file_magic_regex" > /dev/null; then
6677 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
6678 $SED -e 10q |
6679 $EGREP "$file_magic_regex" > /dev/null; then
37166680 newdeplibs="$newdeplibs $a_deplib"
37176681 a_deplib=""
37186682 break 2
37226686 fi
37236687 if test -n "$a_deplib" ; then
37246688 droppeddeps=yes
3725 $echo
3726 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3727 $echo "*** I have the capability to make that library automatically link in when"
3728 $echo "*** you link to this library. But I can only do this if you have a"
3729 $echo "*** shared version of the library, which you do not appear to have"
3730 $echo "*** because I did check the linker path looking for a file starting"
6689 $ECHO
6690 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
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"
37316695 if test -z "$potlib" ; then
3732 $echo "*** with $libname but no candidates were found. (...for file magic test)"
6696 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
37336697 else
3734 $echo "*** with $libname and none of the candidates passed a file format test"
3735 $echo "*** using a file magic. Last file checked: $potlib"
6698 $ECHO "*** with $libname and none of the candidates passed a file format test"
6699 $ECHO "*** using a file magic. Last file checked: $potlib"
37366700 fi
37376701 fi
3738 else
6702 ;;
6703 *)
37396704 # Add a -L argument.
37406705 newdeplibs="$newdeplibs $a_deplib"
3741 fi
6706 ;;
6707 esac
37426708 done # Gone through all deplibs.
37436709 ;;
37446710 match_pattern*)
3745 set dummy $deplibs_check_method
3746 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
6711 set dummy $deplibs_check_method; shift
6712 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
37476713 for a_deplib in $deplibs; do
3748 name=`expr $a_deplib : '-l\(.*\)'`
3749 # If $name is empty we are operating on a -L argument.
3750 if test -n "$name" && test "$name" != "0"; then
6714 case $a_deplib in
6715 -l*)
6716 func_stripname -l '' "$a_deplib"
6717 name=$func_stripname_result
37516718 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
37526719 case " $predeps $postdeps " in
37536720 *" $a_deplib "*)
37576724 esac
37586725 fi
37596726 if test -n "$a_deplib" ; then
3760 libname=`eval \\$echo \"$libname_spec\"`
6727 libname=`eval "\\$ECHO \"$libname_spec\""`
37616728 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
37626729 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
37636730 for potent_lib in $potential_libs; do
37646731 potlib="$potent_lib" # see symlink-check above in file_magic test
3765 if eval $echo \"$potent_lib\" 2>/dev/null \
3766 | ${SED} 10q \
3767 | $EGREP "$match_pattern_regex" > /dev/null; then
6732 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
6733 $EGREP "$match_pattern_regex" > /dev/null; then
37686734 newdeplibs="$newdeplibs $a_deplib"
37696735 a_deplib=""
37706736 break 2
37746740 fi
37756741 if test -n "$a_deplib" ; then
37766742 droppeddeps=yes
3777 $echo
3778 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3779 $echo "*** I have the capability to make that library automatically link in when"
3780 $echo "*** you link to this library. But I can only do this if you have a"
3781 $echo "*** shared version of the library, which you do not appear to have"
3782 $echo "*** because I did check the linker path looking for a file starting"
6743 $ECHO
6744 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
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"
37836749 if test -z "$potlib" ; then
3784 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
6750 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
37856751 else
3786 $echo "*** with $libname and none of the candidates passed a file format test"
3787 $echo "*** using a regex pattern. Last file checked: $potlib"
6752 $ECHO "*** with $libname and none of the candidates passed a file format test"
6753 $ECHO "*** using a regex pattern. Last file checked: $potlib"
37886754 fi
37896755 fi
3790 else
6756 ;;
6757 *)
37916758 # Add a -L argument.
37926759 newdeplibs="$newdeplibs $a_deplib"
3793 fi
6760 ;;
6761 esac
37946762 done # Gone through all deplibs.
37956763 ;;
37966764 none | unknown | *)
37976765 newdeplibs=""
3798 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3799 -e 's/ -[LR][^ ]*//g'`
6766 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6767 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
38006768 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
38016769 for i in $predeps $postdeps ; do
38026770 # can't use Xsed below, because $i might contain '/'
3803 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
6771 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
38046772 done
38056773 fi
3806 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3807 | grep . >/dev/null; then
3808 $echo
6774 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6775 $GREP . >/dev/null; then
6776 $ECHO
38096777 if test "X$deplibs_check_method" = "Xnone"; then
3810 $echo "*** Warning: inter-library dependencies are not supported in this platform."
6778 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
38116779 else
3812 $echo "*** Warning: inter-library dependencies are not known to be supported."
6780 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
38136781 fi
3814 $echo "*** All declared inter-library dependencies are being dropped."
6782 $ECHO "*** All declared inter-library dependencies are being dropped."
38156783 droppeddeps=yes
38166784 fi
38176785 ;;
38246792
38256793 case $host in
38266794 *-*-rhapsody* | *-*-darwin1.[012])
3827 # On Rhapsody replace the C library is the System framework
3828 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
6795 # On Rhapsody replace the C library with the System framework
6796 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
38296797 ;;
38306798 esac
38316799
38326800 if test "$droppeddeps" = yes; then
38336801 if test "$module" = yes; then
3834 $echo
3835 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3836 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3837 $echo "*** a static module, that should work as long as the dlopening"
3838 $echo "*** application is linked with the -dlopen flag."
6802 $ECHO
6803 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
6804 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
6805 $ECHO "*** a static module, that should work as long as the dlopening"
6806 $ECHO "*** application is linked with the -dlopen flag."
38396807 if test -z "$global_symbol_pipe"; then
3840 $echo
3841 $echo "*** However, this would only work if libtool was able to extract symbol"
3842 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3843 $echo "*** not find such a program. So, this module is probably useless."
3844 $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."
38456813 fi
38466814 if test "$build_old_libs" = no; then
38476815 oldlibs="$output_objdir/$libname.$libext"
38516819 build_libtool_libs=no
38526820 fi
38536821 else
3854 $echo "*** The inter-library dependencies that have been dropped here will be"
3855 $echo "*** automatically added whenever a program is linked with this library"
3856 $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."
38576825
38586826 if test "$allow_undefined" = no; then
3859 $echo
3860 $echo "*** Since this library must not contain undefined symbols,"
3861 $echo "*** because either the platform does not support them or"
3862 $echo "*** it was explicitly requested with -no-undefined,"
3863 $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."
38646832 if test "$build_old_libs" = no; then
38656833 oldlibs="$output_objdir/$libname.$libext"
38666834 build_libtool_libs=module
38746842 # Done checking deplibs!
38756843 deplibs=$newdeplibs
38766844 fi
3877
6845 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
6846 case $host in
6847 *-*-darwin*)
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'`
6851 ;;
6852 esac
38786853
38796854 # move library search paths that coincide with paths to not yet
38806855 # installed libraries to the beginning of the library search list
39026877 esac
39036878 done
39046879 deplibs="$new_libs"
3905
39066880
39076881 # All the library-specific variables (install_libdir is set above).
39086882 library_names=
39486922 test -n "$hardcode_libdirs"; then
39496923 libdir="$hardcode_libdirs"
39506924 if test -n "$hardcode_libdir_flag_spec_ld"; then
3951 case $archive_cmds in
3952 *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3953 *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3954 esac
6925 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
39556926 else
39566927 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
39576928 fi
39776948 eval shared_ext=\"$shrext_cmds\"
39786949 eval library_names=\"$library_names_spec\"
39796950 set dummy $library_names
3980 realname="$2"
3981 shift; shift
6951 shift
6952 realname="$1"
6953 shift
39826954
39836955 if test -n "$soname_spec"; then
39846956 eval soname=\"$soname_spec\"
39976969 done
39986970
39996971 # Use standard objects if they are pic
4000 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
6972 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
6973 test "X$libobjs" = "X " && libobjs=
6974
6975 delfiles=
6976 if test -n "$export_symbols" && test -n "$include_expsyms"; then
6977 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
6978 export_symbols="$output_objdir/$libname.uexp"
6979 delfiles="$delfiles $export_symbols"
6980 fi
6981
6982 orig_export_symbols=
6983 case $host_os in
6984 cygwin* | mingw* | cegcc*)
6985 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
6986 # exporting using user supplied symfile
6987 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
6988 # and it's NOT already a .def file. Must figure out
6989 # which of the given symbols are data symbols and tag
6990 # them as such. So, trigger use of export_symbols_cmds.
6991 # export_symbols gets reassigned inside the "prepare
6992 # the list of exported symbols" if statement, so the
6993 # include_expsyms logic still works.
6994 orig_export_symbols="$export_symbols"
6995 export_symbols=
6996 always_export_symbols=yes
6997 fi
6998 fi
6999 ;;
7000 esac
40017001
40027002 # Prepare the list of exported symbols
40037003 if test -z "$export_symbols"; then
40047004 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
4005 $show "generating symbol list for \`$libname.la'"
7005 func_verbose "generating symbol list for \`$libname.la'"
40067006 export_symbols="$output_objdir/$libname.exp"
4007 $run $rm $export_symbols
7007 $opt_dry_run || $RM $export_symbols
40087008 cmds=$export_symbols_cmds
40097009 save_ifs="$IFS"; IFS='~'
40107010 for cmd in $cmds; do
40117011 IFS="$save_ifs"
40127012 eval cmd=\"$cmd\"
4013 if len=`expr "X$cmd" : ".*"` &&
4014 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4015 $show "$cmd"
4016 $run eval "$cmd" || exit $?
4017 skipped_export=false
7013 func_len " $cmd"
7014 len=$func_len_result
7015 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7016 func_show_eval "$cmd" 'exit $?'
7017 skipped_export=false
40187018 else
4019 # The command line is too long to execute in one step.
4020 $show "using reloadable object file for export list..."
4021 skipped_export=:
7019 # The command line is too long to execute in one step.
7020 func_verbose "using reloadable object file for export list..."
7021 skipped_export=:
40227022 # Break out early, otherwise skipped_export may be
40237023 # set to false by a later but shorter cmd.
40247024 break
40257025 fi
40267026 done
40277027 IFS="$save_ifs"
4028 if test -n "$export_symbols_regex"; then
4029 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
4030 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
4031 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
4032 $run eval '$mv "${export_symbols}T" "$export_symbols"'
7028 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
7029 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
7030 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
40337031 fi
40347032 fi
40357033 fi
40367034
40377035 if test -n "$export_symbols" && test -n "$include_expsyms"; then
4038 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
7036 tmp_export_symbols="$export_symbols"
7037 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7038 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
7039 fi
7040
7041 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
7042 # The given exports_symbols file has to be filtered, so filter it.
7043 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
7044 # FIXME: $output_objdir/$libname.filter potentially contains lots of
7045 # 's' commands which not all seds can handle. GNU sed should be fine
7046 # though. Also, the filter scales superlinearly with the number of
7047 # global variables. join(1) would be nice here, but unfortunately
7048 # isn't a blessed tool.
7049 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7050 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
7051 export_symbols=$output_objdir/$libname.def
7052 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
40397053 fi
40407054
40417055 tmp_deplibs=
40427056 for test_deplib in $deplibs; do
4043 case " $convenience " in
4044 *" $test_deplib "*) ;;
4045 *)
4046 tmp_deplibs="$tmp_deplibs $test_deplib"
4047 ;;
4048 esac
7057 case " $convenience " in
7058 *" $test_deplib "*) ;;
7059 *)
7060 tmp_deplibs="$tmp_deplibs $test_deplib"
7061 ;;
7062 esac
40497063 done
40507064 deplibs="$tmp_deplibs"
40517065
40527066 if test -n "$convenience"; then
7067 if test -n "$whole_archive_flag_spec" &&
7068 test "$compiler_needs_object" = yes &&
7069 test -z "$libobjs"; then
7070 # extract the archives, so we have objects to list.
7071 # TODO: could optimize this to just extract one archive.
7072 whole_archive_flag_spec=
7073 fi
40537074 if test -n "$whole_archive_flag_spec"; then
40547075 save_libobjs=$libobjs
40557076 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
7077 test "X$libobjs" = "X " && libobjs=
40567078 else
40577079 gentop="$output_objdir/${outputname}x"
40587080 generated="$generated $gentop"
40597081
40607082 func_extract_archives $gentop $convenience
40617083 libobjs="$libobjs $func_extract_archives_result"
7084 test "X$libobjs" = "X " && libobjs=
40627085 fi
40637086 fi
4064
7087
40657088 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
40667089 eval flag=\"$thread_safe_flag_spec\"
40677090 linker_flags="$linker_flags $flag"
40697092
40707093 # Make a backup of the uninstalled library when relinking
40717094 if test "$mode" = relink; then
4072 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
7095 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
40737096 fi
40747097
40757098 # Do each of the archive commands.
40827105 cmds=$module_cmds
40837106 fi
40847107 else
4085 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4086 eval test_cmds=\"$archive_expsym_cmds\"
4087 cmds=$archive_expsym_cmds
4088 else
4089 eval test_cmds=\"$archive_cmds\"
4090 cmds=$archive_cmds
7108 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
7109 eval test_cmds=\"$archive_expsym_cmds\"
7110 cmds=$archive_expsym_cmds
7111 else
7112 eval test_cmds=\"$archive_cmds\"
7113 cmds=$archive_cmds
40917114 fi
40927115 fi
40937116
40947117 if test "X$skipped_export" != "X:" &&
4095 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4096 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7118 func_len " $test_cmds" &&
7119 len=$func_len_result &&
7120 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
40977121 :
40987122 else
4099 # The command line is too long to link in one step, link piecewise.
4100 $echo "creating reloadable object files..."
7123 # The command line is too long to link in one step, link piecewise
7124 # or, if using GNU ld and skipped_export is not :, use a linker
7125 # script.
41017126
41027127 # Save the value of $output and $libobjs because we want to
41037128 # use them later. If we have whole_archive_flag_spec, we
41117136 save_libobjs=$libobjs
41127137 fi
41137138 save_output=$output
4114 output_la=`$echo "X$output" | $Xsed -e "$basename"`
7139 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
41157140
41167141 # Clear the reloadable object creation command queue and
41177142 # initialize k to one.
41187143 test_cmds=
41197144 concat_cmds=
41207145 objlist=
4121 delfiles=
41227146 last_robj=
41237147 k=1
4124 output=$output_objdir/$output_la-${k}.$objext
4125 # Loop over the list of objects to be linked.
4126 for obj in $save_libobjs
4127 do
4128 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
4129 if test "X$objlist" = X ||
4130 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4131 test "$len" -le "$max_cmd_len"; }; then
4132 objlist="$objlist $obj"
7148
7149 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
7150 output=${output_objdir}/${output_la}.lnkscript
7151 func_verbose "creating GNU ld script: $output"
7152 $ECHO 'INPUT (' > $output
7153 for obj in $save_libobjs
7154 do
7155 $ECHO "$obj" >> $output
7156 done
7157 $ECHO ')' >> $output
7158 delfiles="$delfiles $output"
7159 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
7160 output=${output_objdir}/${output_la}.lnk
7161 func_verbose "creating linker input file list: $output"
7162 : > $output
7163 set x $save_libobjs
7164 shift
7165 firstobj=
7166 if test "$compiler_needs_object" = yes; then
7167 firstobj="$1 "
7168 shift
7169 fi
7170 for obj
7171 do
7172 $ECHO "$obj" >> $output
7173 done
7174 delfiles="$delfiles $output"
7175 output=$firstobj\"$file_list_spec$output\"
7176 else
7177 if test -n "$save_libobjs"; then
7178 func_verbose "creating reloadable object files..."
7179 output=$output_objdir/$output_la-${k}.$objext
7180 eval test_cmds=\"$reload_cmds\"
7181 func_len " $test_cmds"
7182 len0=$func_len_result
7183 len=$len0
7184
7185 # Loop over the list of objects to be linked.
7186 for obj in $save_libobjs
7187 do
7188 func_len " $obj"
7189 func_arith $len + $func_len_result
7190 len=$func_arith_result
7191 if test "X$objlist" = X ||
7192 test "$len" -lt "$max_cmd_len"; then
7193 func_append objlist " $obj"
7194 else
7195 # The command $test_cmds is almost too long, add a
7196 # command to the queue.
7197 if test "$k" -eq 1 ; then
7198 # The first file doesn't have a previous command to add.
7199 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
7200 else
7201 # All subsequent reloadable object files will link in
7202 # the last one created.
7203 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
7204 fi
7205 last_robj=$output_objdir/$output_la-${k}.$objext
7206 func_arith $k + 1
7207 k=$func_arith_result
7208 output=$output_objdir/$output_la-${k}.$objext
7209 objlist=$obj
7210 func_len " $last_robj"
7211 func_arith $len0 + $func_len_result
7212 len=$func_arith_result
7213 fi
7214 done
7215 # Handle the remaining objects by creating one last
7216 # reloadable object file. All subsequent reloadable object
7217 # files will link in the last one created.
7218 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7219 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
7220 if test -n "$last_robj"; then
7221 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
7222 fi
7223 delfiles="$delfiles $output"
7224
41337225 else
4134 # The command $test_cmds is almost too long, add a
4135 # command to the queue.
4136 if test "$k" -eq 1 ; then
4137 # The first file doesn't have a previous command to add.
4138 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
4139 else
4140 # All subsequent reloadable object files will link in
4141 # the last one created.
4142 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
7226 output=
7227 fi
7228
7229 if ${skipped_export-false}; then
7230 func_verbose "generating symbol list for \`$libname.la'"
7231 export_symbols="$output_objdir/$libname.exp"
7232 $opt_dry_run || $RM $export_symbols
7233 libobjs=$output
7234 # Append the command to create the export file.
7235 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7236 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
7237 if test -n "$last_robj"; then
7238 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
41437239 fi
4144 last_robj=$output_objdir/$output_la-${k}.$objext
4145 k=`expr $k + 1`
4146 output=$output_objdir/$output_la-${k}.$objext
4147 objlist=$obj
4148 len=1
41497240 fi
4150 done
4151 # Handle the remaining objects by creating one last
4152 # reloadable object file. All subsequent reloadable object
4153 # files will link in the last one created.
4154 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
4155 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
4156
4157 if ${skipped_export-false}; then
4158 $show "generating symbol list for \`$libname.la'"
4159 export_symbols="$output_objdir/$libname.exp"
4160 $run $rm $export_symbols
4161 libobjs=$output
4162 # Append the command to create the export file.
4163 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
4164 fi
4165
4166 # Set up a command to remove the reloadable object files
4167 # after they are used.
4168 i=0
4169 while test "$i" -lt "$k"
4170 do
4171 i=`expr $i + 1`
4172 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
4173 done
4174
4175 $echo "creating a temporary reloadable object file: $output"
4176
4177 # Loop through the commands generated above and execute them.
4178 save_ifs="$IFS"; IFS='~'
4179 for cmd in $concat_cmds; do
7241
7242 test -n "$save_libobjs" &&
7243 func_verbose "creating a temporary reloadable object file: $output"
7244
7245 # Loop through the commands generated above and execute them.
7246 save_ifs="$IFS"; IFS='~'
7247 for cmd in $concat_cmds; do
7248 IFS="$save_ifs"
7249 $opt_silent || {
7250 func_quote_for_expand "$cmd"
7251 eval "func_echo $func_quote_for_expand_result"
7252 }
7253 $opt_dry_run || eval "$cmd" || {
7254 lt_exit=$?
7255
7256 # Restore the uninstalled library and exit
7257 if test "$mode" = relink; then
7258 ( cd "$output_objdir" && \
7259 $RM "${realname}T" && \
7260 $MV "${realname}U" "$realname" )
7261 fi
7262
7263 exit $lt_exit
7264 }
7265 done
41807266 IFS="$save_ifs"
4181 $show "$cmd"
4182 $run eval "$cmd" || exit $?
4183 done
4184 IFS="$save_ifs"
7267
7268 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
7269 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
7270 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
7271 fi
7272 fi
7273
7274 if ${skipped_export-false}; then
7275 if test -n "$export_symbols" && test -n "$include_expsyms"; then
7276 tmp_export_symbols="$export_symbols"
7277 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7278 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
7279 fi
7280
7281 if test -n "$orig_export_symbols"; then
7282 # The given exports_symbols file has to be filtered, so filter it.
7283 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
7284 # FIXME: $output_objdir/$libname.filter potentially contains lots of
7285 # 's' commands which not all seds can handle. GNU sed should be fine
7286 # though. Also, the filter scales superlinearly with the number of
7287 # global variables. join(1) would be nice here, but unfortunately
7288 # isn't a blessed tool.
7289 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7290 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
7291 export_symbols=$output_objdir/$libname.def
7292 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
7293 fi
7294 fi
41857295
41867296 libobjs=$output
41877297 # Restore the value of output.
41897299
41907300 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
41917301 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
7302 test "X$libobjs" = "X " && libobjs=
41927303 fi
41937304 # Expand the library linking commands again to reset the
41947305 # value of $libobjs for piecewise linking.
42017312 cmds=$module_cmds
42027313 fi
42037314 else
4204 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4205 cmds=$archive_expsym_cmds
4206 else
4207 cmds=$archive_cmds
7315 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
7316 cmds=$archive_expsym_cmds
7317 else
7318 cmds=$archive_cmds
42087319 fi
42097320 fi
4210
4211 # Append the command to remove the reloadable object files
4212 # to the just-reset $cmds.
4213 eval cmds=\"\$cmds~\$rm $delfiles\"
42147321 fi
7322
7323 if test -n "$delfiles"; then
7324 # Append the command to remove temporary files to $cmds.
7325 eval cmds=\"\$cmds~\$RM $delfiles\"
7326 fi
7327
7328 # Add any objects from preloaded convenience libraries
7329 if test -n "$dlprefiles"; then
7330 gentop="$output_objdir/${outputname}x"
7331 generated="$generated $gentop"
7332
7333 func_extract_archives $gentop $dlprefiles
7334 libobjs="$libobjs $func_extract_archives_result"
7335 test "X$libobjs" = "X " && libobjs=
7336 fi
7337
42157338 save_ifs="$IFS"; IFS='~'
42167339 for cmd in $cmds; do
42177340 IFS="$save_ifs"
42187341 eval cmd=\"$cmd\"
4219 $show "$cmd"
4220 $run eval "$cmd" || {
7342 $opt_silent || {
7343 func_quote_for_expand "$cmd"
7344 eval "func_echo $func_quote_for_expand_result"
7345 }
7346 $opt_dry_run || eval "$cmd" || {
42217347 lt_exit=$?
42227348
42237349 # Restore the uninstalled library and exit
42247350 if test "$mode" = relink; then
4225 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
7351 ( cd "$output_objdir" && \
7352 $RM "${realname}T" && \
7353 $MV "${realname}U" "$realname" )
42267354 fi
42277355
42287356 exit $lt_exit
42327360
42337361 # Restore the uninstalled library and exit
42347362 if test "$mode" = relink; then
4235 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
7363 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
42367364
42377365 if test -n "$convenience"; then
42387366 if test -z "$whole_archive_flag_spec"; then
4239 $show "${rm}r $gentop"
4240 $run ${rm}r "$gentop"
7367 func_show_eval '${RM}r "$gentop"'
42417368 fi
42427369 fi
42437370
42477374 # Create links to the real library.
42487375 for linkname in $linknames; do
42497376 if test "$realname" != "$linkname"; then
4250 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
4251 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
7377 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
42527378 fi
42537379 done
42547380
42617387 ;;
42627388
42637389 obj)
7390 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7391 func_warning "\`-dlopen' is ignored for objects"
7392 fi
7393
42647394 case " $deplibs" in
42657395 *\ -l* | *\ -L*)
4266 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
7396 func_warning "\`-l' and \`-L' are ignored for objects" ;;
42677397 esac
42687398
4269 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4270 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4271 fi
4272
4273 if test -n "$rpath"; then
4274 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
4275 fi
4276
4277 if test -n "$xrpath"; then
4278 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
4279 fi
4280
4281 if test -n "$vinfo"; then
4282 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
4283 fi
4284
4285 if test -n "$release"; then
4286 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
4287 fi
7399 test -n "$rpath" && \
7400 func_warning "\`-rpath' is ignored for objects"
7401
7402 test -n "$xrpath" && \
7403 func_warning "\`-R' is ignored for objects"
7404
7405 test -n "$vinfo" && \
7406 func_warning "\`-version-info' is ignored for objects"
7407
7408 test -n "$release" && \
7409 func_warning "\`-release' is ignored for objects"
42887410
42897411 case $output in
42907412 *.lo)
4291 if test -n "$objs$old_deplibs"; then
4292 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4293 exit $EXIT_FAILURE
4294 fi
4295 libobj="$output"
4296 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
7413 test -n "$objs$old_deplibs" && \
7414 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
7415
7416 libobj=$output
7417 func_lo2o "$libobj"
7418 obj=$func_lo2o_result
42977419 ;;
42987420 *)
42997421 libobj=
43027424 esac
43037425
43047426 # Delete the old objects.
4305 $run $rm $obj $libobj
7427 $opt_dry_run || $RM $obj $libobj
43067428
43077429 # Objects from convenience libraries. This assumes
43087430 # single-version convenience libraries. Whenever we create
43187440 if test -n "$convenience"; then
43197441 if test -n "$whole_archive_flag_spec"; then
43207442 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4321 reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
7443 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
43227444 else
43237445 gentop="$output_objdir/${obj}x"
43247446 generated="$generated $gentop"
43297451 fi
43307452
43317453 # Create the old-style object.
4332 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
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
43337455
43347456 output="$obj"
4335 cmds=$reload_cmds
4336 save_ifs="$IFS"; IFS='~'
4337 for cmd in $cmds; do
4338 IFS="$save_ifs"
4339 eval cmd=\"$cmd\"
4340 $show "$cmd"
4341 $run eval "$cmd" || exit $?
4342 done
4343 IFS="$save_ifs"
7457 func_execute_cmds "$reload_cmds" 'exit $?'
43447458
43457459 # Exit if we aren't doing a library object file.
43467460 if test -z "$libobj"; then
43477461 if test -n "$gentop"; then
4348 $show "${rm}r $gentop"
4349 $run ${rm}r $gentop
7462 func_show_eval '${RM}r "$gentop"'
43507463 fi
43517464
43527465 exit $EXIT_SUCCESS
43547467
43557468 if test "$build_libtool_libs" != yes; then
43567469 if test -n "$gentop"; then
4357 $show "${rm}r $gentop"
4358 $run ${rm}r $gentop
7470 func_show_eval '${RM}r "$gentop"'
43597471 fi
43607472
43617473 # Create an invalid libtool object if no PIC, so that we don't
43627474 # accidentally link it into a program.
43637475 # $show "echo timestamp > $libobj"
4364 # $run eval "echo timestamp > $libobj" || exit $?
7476 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
43657477 exit $EXIT_SUCCESS
43667478 fi
43677479
43697481 # Only do commands if we really have different PIC objects.
43707482 reload_objs="$libobjs $reload_conv_objs"
43717483 output="$libobj"
4372 cmds=$reload_cmds
4373 save_ifs="$IFS"; IFS='~'
4374 for cmd in $cmds; do
4375 IFS="$save_ifs"
4376 eval cmd=\"$cmd\"
4377 $show "$cmd"
4378 $run eval "$cmd" || exit $?
4379 done
4380 IFS="$save_ifs"
7484 func_execute_cmds "$reload_cmds" 'exit $?'
43817485 fi
43827486
43837487 if test -n "$gentop"; then
4384 $show "${rm}r $gentop"
4385 $run ${rm}r $gentop
7488 func_show_eval '${RM}r "$gentop"'
43867489 fi
43877490
43887491 exit $EXIT_SUCCESS
43907493
43917494 prog)
43927495 case $host in
4393 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
7496 *cygwin*) func_stripname '' '.exe' "$output"
7497 output=$func_stripname_result.exe;;
43947498 esac
4395 if test -n "$vinfo"; then
4396 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4397 fi
4398
4399 if test -n "$release"; then
4400 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4401 fi
4402
4403 if test "$preload" = yes; then
4404 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4405 test "$dlopen_self_static" = unknown; then
4406 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4407 fi
4408 fi
7499 test -n "$vinfo" && \
7500 func_warning "\`-version-info' is ignored for programs"
7501
7502 test -n "$release" && \
7503 func_warning "\`-release' is ignored for programs"
7504
7505 test "$preload" = yes \
7506 && test "$dlopen_support" = unknown \
7507 && test "$dlopen_self" = unknown \
7508 && test "$dlopen_self_static" = unknown && \
7509 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
44097510
44107511 case $host in
44117512 *-*-rhapsody* | *-*-darwin1.[012])
44127513 # On Rhapsody replace the C library is the System framework
4413 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4414 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
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 /'`
44157516 ;;
44167517 esac
44177518
44187519 case $host in
4419 *darwin*)
4420 # Don't allow lazy linking, it breaks C++ global constructors
4421 if test "$tagname" = CXX ; then
4422 compile_command="$compile_command ${wl}-bind_at_load"
4423 finalize_command="$finalize_command ${wl}-bind_at_load"
4424 fi
4425 ;;
7520 *-*-darwin*)
7521 # Don't allow lazy linking, it breaks C++ global constructors
7522 # But is supposedly fixed on 10.4 or later (yay!).
7523 if test "$tagname" = CXX ; then
7524 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7525 10.[0123])
7526 compile_command="$compile_command ${wl}-bind_at_load"
7527 finalize_command="$finalize_command ${wl}-bind_at_load"
7528 ;;
7529 esac
7530 fi
7531 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
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'`
7534 ;;
44267535 esac
44277536
44287537
44977606 esac
44987607 fi
44997608 case $host in
4500 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4501 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
7609 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7610 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
45027611 case :$dllsearchpath: in
45037612 *":$libdir:"*) ;;
7613 ::) dllsearchpath=$libdir;;
45047614 *) dllsearchpath="$dllsearchpath:$libdir";;
45057615 esac
45067616 case :$dllsearchpath: in
45077617 *":$testbindir:"*) ;;
7618 ::) dllsearchpath=$testbindir;;
45087619 *) dllsearchpath="$dllsearchpath:$testbindir";;
45097620 esac
45107621 ;;
45567667
45577668 if test -n "$libobjs" && test "$build_old_libs" = yes; then
45587669 # Transform all the library objects into standard objects.
4559 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4560 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$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`
45617672 fi
45627673
4563 dlsyms=
4564 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4565 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4566 dlsyms="${outputname}S.c"
4567 else
4568 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
7674 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
7675
7676 # template prelinking step
7677 if test -n "$prelink_cmds"; then
7678 func_execute_cmds "$prelink_cmds" 'exit $?'
7679 fi
7680
7681 wrappers_required=yes
7682 case $host in
7683 *cygwin* | *mingw* )
7684 if test "$build_libtool_libs" != yes; then
7685 wrappers_required=no
7686 fi
7687 ;;
7688 *cegcc)
7689 # Disable wrappers for cegcc, we are cross compiling anyway.
7690 wrappers_required=no
7691 ;;
7692 *)
7693 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
7694 wrappers_required=no
7695 fi
7696 ;;
7697 esac
7698 if test "$wrappers_required" = no; then
7699 # Replace the output file specification.
7700 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
7701 link_command="$compile_command$compile_rpath"
7702
7703 # We have no uninstalled library dependencies, so finalize right now.
7704 exit_status=0
7705 func_show_eval "$link_command" 'exit_status=$?'
7706
7707 # Delete the generated files.
7708 if test -f "$output_objdir/${outputname}S.${objext}"; then
7709 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
45697710 fi
4570 fi
4571
4572 if test -n "$dlsyms"; then
4573 case $dlsyms in
4574 "") ;;
4575 *.c)
4576 # Discover the nlist of each of the dlfiles.
4577 nlist="$output_objdir/${outputname}.nm"
4578
4579 $show "$rm $nlist ${nlist}S ${nlist}T"
4580 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4581
4582 # Parse the name list into a source file.
4583 $show "creating $output_objdir/$dlsyms"
4584
4585 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4586 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4587 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4588
4589 #ifdef __cplusplus
4590 extern \"C\" {
4591 #endif
4592
4593 /* Prevent the only kind of declaration conflicts we can make. */
4594 #define lt_preloaded_symbols some_other_symbol
4595
4596 /* External symbol declarations for the compiler. */\
4597 "
4598
4599 if test "$dlself" = yes; then
4600 $show "generating symbol list for \`$output'"
4601
4602 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4603
4604 # Add our own program objects to the symbol list.
4605 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4606 for arg in $progfiles; do
4607 $show "extracting global C symbols from \`$arg'"
4608 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4609 done
4610
4611 if test -n "$exclude_expsyms"; then
4612 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4613 $run eval '$mv "$nlist"T "$nlist"'
4614 fi
4615
4616 if test -n "$export_symbols_regex"; then
4617 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4618 $run eval '$mv "$nlist"T "$nlist"'
4619 fi
4620
4621 # Prepare the list of exported symbols
4622 if test -z "$export_symbols"; then
4623 export_symbols="$output_objdir/$outputname.exp"
4624 $run $rm $export_symbols
4625 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4626 case $host in
4627 *cygwin* | *mingw* )
4628 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4629 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4630 ;;
4631 esac
4632 else
4633 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4634 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4635 $run eval 'mv "$nlist"T "$nlist"'
4636 case $host in
4637 *cygwin* | *mingw* )
4638 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4639 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4640 ;;
4641 esac
4642 fi
4643 fi
4644
4645 for arg in $dlprefiles; do
4646 $show "extracting global C symbols from \`$arg'"
4647 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4648 $run eval '$echo ": $name " >> "$nlist"'
4649 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4650 done
4651
4652 if test -z "$run"; then
4653 # Make sure we have at least an empty file.
4654 test -f "$nlist" || : > "$nlist"
4655
4656 if test -n "$exclude_expsyms"; then
4657 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4658 $mv "$nlist"T "$nlist"
4659 fi
4660
4661 # Try sorting and uniquifying the output.
4662 if grep -v "^: " < "$nlist" |
4663 if sort -k 3 </dev/null >/dev/null 2>&1; then
4664 sort -k 3
4665 else
4666 sort +2
4667 fi |
4668 uniq > "$nlist"S; then
4669 :
4670 else
4671 grep -v "^: " < "$nlist" > "$nlist"S
4672 fi
4673
4674 if test -f "$nlist"S; then
4675 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4676 else
4677 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4678 fi
4679
4680 $echo >> "$output_objdir/$dlsyms" "\
4681
4682 #undef lt_preloaded_symbols
4683
4684 #if defined (__STDC__) && __STDC__
4685 # define lt_ptr void *
4686 #else
4687 # define lt_ptr char *
4688 # define const
4689 #endif
4690
4691 /* The mapping between symbol names and symbols. */
4692 "
4693
4694 case $host in
4695 *cygwin* | *mingw* )
4696 $echo >> "$output_objdir/$dlsyms" "\
4697 /* DATA imports from DLLs on WIN32 can't be const, because
4698 runtime relocations are performed -- see ld's documentation
4699 on pseudo-relocs */
4700 struct {
4701 "
4702 ;;
4703 * )
4704 $echo >> "$output_objdir/$dlsyms" "\
4705 const struct {
4706 "
4707 ;;
4708 esac
4709
4710
4711 $echo >> "$output_objdir/$dlsyms" "\
4712 const char *name;
4713 lt_ptr address;
4714 }
4715 lt_preloaded_symbols[] =
4716 {\
4717 "
4718
4719 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4720
4721 $echo >> "$output_objdir/$dlsyms" "\
4722 {0, (lt_ptr) 0}
4723 };
4724
4725 /* This works around a problem in FreeBSD linker */
4726 #ifdef FREEBSD_WORKAROUND
4727 static const void *lt_preloaded_setup() {
4728 return lt_preloaded_symbols;
4729 }
4730 #endif
4731
4732 #ifdef __cplusplus
4733 }
4734 #endif\
4735 "
4736 fi
4737
4738 pic_flag_for_symtable=
4739 case $host in
4740 # compiling the symbol table file with pic_flag works around
4741 # a FreeBSD bug that causes programs to crash when -lm is
4742 # linked before any other PIC object. But we must not use
4743 # pic_flag when linking with -static. The problem exists in
4744 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4745 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4746 case "$compile_command " in
4747 *" -static "*) ;;
4748 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4749 esac;;
4750 *-*-hpux*)
4751 case "$compile_command " in
4752 *" -static "*) ;;
4753 *) pic_flag_for_symtable=" $pic_flag";;
4754 esac
4755 esac
4756
4757 # Now compile the dynamic symbol file.
4758 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4759 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4760
4761 # Clean up the generated files.
4762 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4763 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4764
4765 # Transform the symbol file into the correct name.
4766 case $host in
4767 *cygwin* | *mingw* )
4768 if test -f "$output_objdir/${outputname}.def" ; then
4769 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4770 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4771 else
4772 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4773 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4774 fi
4775 ;;
4776 * )
4777 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4778 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4779 ;;
4780 esac
4781 ;;
4782 *)
4783 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4784 exit $EXIT_FAILURE
4785 ;;
4786 esac
4787 else
4788 # We keep going just in case the user didn't refer to
4789 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4790 # really was required.
4791
4792 # Nullify the symbol file.
4793 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4794 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4795 fi
4796
4797 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4798 # Replace the output file specification.
4799 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4800 link_command="$compile_command$compile_rpath"
4801
4802 # We have no uninstalled library dependencies, so finalize right now.
4803 $show "$link_command"
4804 $run eval "$link_command"
4805 exit_status=$?
4806
4807 # Delete the generated files.
4808 if test -n "$dlsyms"; then
4809 $show "$rm $output_objdir/${outputname}S.${objext}"
4810 $run $rm "$output_objdir/${outputname}S.${objext}"
4811 fi
48127711
48137712 exit $exit_status
4814 fi
4815
4816 if test -n "$shlibpath_var"; then
4817 # We should set the shlibpath_var
4818 rpath=
4819 for dir in $temp_rpath; do
4820 case $dir in
4821 [\\/]* | [A-Za-z]:[\\/]*)
4822 # Absolute path.
4823 rpath="$rpath$dir:"
4824 ;;
4825 *)
4826 # Relative path: add a thisdir entry.
4827 rpath="$rpath\$thisdir/$dir:"
4828 ;;
4829 esac
4830 done
4831 temp_rpath="$rpath"
48327713 fi
48337714
48347715 if test -n "$compile_shlibpath$finalize_shlibpath"; then
48637744 # We don't need to create a wrapper script.
48647745 link_command="$compile_var$compile_command$compile_rpath"
48657746 # Replace the output file specification.
4866 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
7747 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
48677748 # Delete the old output file.
4868 $run $rm $output
7749 $opt_dry_run || $RM $output
48697750 # Link the executable and exit
4870 $show "$link_command"
4871 $run eval "$link_command" || exit $?
7751 func_show_eval "$link_command" 'exit $?'
48727752 exit $EXIT_SUCCESS
48737753 fi
48747754
48777757 link_command="$compile_var$compile_command$compile_rpath"
48787758 relink_command="$finalize_var$finalize_command$finalize_rpath"
48797759
4880 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4881 $echo "$modename: \`$output' will be relinked during installation" 1>&2
7760 func_warning "this platform does not like uninstalled shared libraries"
7761 func_warning "\`$output' will be relinked during installation"
48827762 else
48837763 if test "$fast_install" != no; then
48847764 link_command="$finalize_var$compile_command$finalize_rpath"
48857765 if test "$fast_install" = yes; then
4886 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
7766 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
48877767 else
48887768 # fast_install is set to needless
48897769 relink_command=
48957775 fi
48967776
48977777 # Replace the output file specification.
4898 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
7778 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
48997779
49007780 # Delete the old output files.
4901 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4902
4903 $show "$link_command"
4904 $run eval "$link_command" || exit $?
7781 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
7782
7783 func_show_eval "$link_command" 'exit $?'
49057784
49067785 # Now create the wrapper script.
4907 $show "creating $output"
7786 func_verbose "creating $output"
49087787
49097788 # Quote the relink command for shipping.
49107789 if test -n "$relink_command"; then
49117790 # Preserve any variables that may affect compiler behavior
49127791 for var in $variables_saved_for_relink; do
49137792 if eval test -z \"\${$var+set}\"; then
4914 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
7793 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
49157794 elif eval var_value=\$$var; test -z "$var_value"; then
49167795 relink_command="$var=; export $var; $relink_command"
49177796 else
4918 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4919 relink_command="$var=\"$var_value\"; export $var; $relink_command"
7797 func_quote_for_eval "$var_value"
7798 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
49207799 fi
49217800 done
49227801 relink_command="(cd `pwd`; $relink_command)"
4923 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
7802 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
49247803 fi
49257804
4926 # Quote $echo for shipping.
4927 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
7805 # Quote $ECHO for shipping.
7806 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
49287807 case $progpath in
49297808 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
49307809 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
49317810 esac
4932 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
7811 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
49337812 else
4934 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
7813 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
49357814 fi
49367815
4937 # Only actually do things if our run command is non-null.
4938 if test -z "$run"; then
7816 # Only actually do things if not in dry run mode.
7817 $opt_dry_run || {
49397818 # win32 will think the script is a binary if it has
49407819 # a .exe suffix, so we strip it off here.
49417820 case $output in
4942 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
7821 *.exe) func_stripname '' '.exe' "$output"
7822 output=$func_stripname_result ;;
49437823 esac
49447824 # test for cygwin because mv fails w/o .exe extensions
49457825 case $host in
49467826 *cygwin*)
49477827 exeext=.exe
4948 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
7828 func_stripname '' '.exe' "$outputname"
7829 outputname=$func_stripname_result ;;
49497830 *) exeext= ;;
49507831 esac
49517832 case $host in
49527833 *cygwin* | *mingw* )
4953 output_name=`basename $output`
4954 output_path=`dirname $output`
4955 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4956 cwrapper="$output_path/$output_name.exe"
4957 $rm $cwrappersource $cwrapper
4958 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4959
4960 cat > $cwrappersource <<EOF
4961
4962 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4963 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4964
4965 The $output program cannot be directly executed until all the libtool
4966 libraries that it depends on are installed.
4967
4968 This wrapper executable should never be moved out of the build directory.
4969 If it is, it will not operate correctly.
4970
4971 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4972 but could eventually absorb all of the scripts functionality and
4973 exec $objdir/$outputname directly.
4974 */
4975 EOF
4976 cat >> $cwrappersource<<"EOF"
4977 #include <stdio.h>
4978 #include <stdlib.h>
4979 #include <unistd.h>
4980 #include <malloc.h>
4981 #include <stdarg.h>
4982 #include <assert.h>
4983 #include <string.h>
4984 #include <ctype.h>
4985 #include <sys/stat.h>
4986
4987 #if defined(PATH_MAX)
4988 # define LT_PATHMAX PATH_MAX
4989 #elif defined(MAXPATHLEN)
4990 # define LT_PATHMAX MAXPATHLEN
4991 #else
4992 # define LT_PATHMAX 1024
4993 #endif
4994
4995 #ifndef DIR_SEPARATOR
4996 # define DIR_SEPARATOR '/'
4997 # define PATH_SEPARATOR ':'
4998 #endif
4999
5000 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
5001 defined (__OS2__)
5002 # define HAVE_DOS_BASED_FILE_SYSTEM
5003 # ifndef DIR_SEPARATOR_2
5004 # define DIR_SEPARATOR_2 '\\'
5005 # endif
5006 # ifndef PATH_SEPARATOR_2
5007 # define PATH_SEPARATOR_2 ';'
5008 # endif
5009 #endif
5010
5011 #ifndef DIR_SEPARATOR_2
5012 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
5013 #else /* DIR_SEPARATOR_2 */
5014 # define IS_DIR_SEPARATOR(ch) \
5015 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
5016 #endif /* DIR_SEPARATOR_2 */
5017
5018 #ifndef PATH_SEPARATOR_2
5019 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5020 #else /* PATH_SEPARATOR_2 */
5021 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5022 #endif /* PATH_SEPARATOR_2 */
5023
5024 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5025 #define XFREE(stale) do { \
5026 if (stale) { free ((void *) stale); stale = 0; } \
5027 } while (0)
5028
5029 /* -DDEBUG is fairly common in CFLAGS. */
5030 #undef DEBUG
5031 #if defined DEBUGWRAPPER
5032 # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5033 #else
5034 # define DEBUG(format, ...)
5035 #endif
5036
5037 const char *program_name = NULL;
5038
5039 void * xmalloc (size_t num);
5040 char * xstrdup (const char *string);
5041 const char * base_name (const char *name);
5042 char * find_executable(const char *wrapper);
5043 int check_executable(const char *path);
5044 char * strendzap(char *str, const char *pat);
5045 void lt_fatal (const char *message, ...);
5046
5047 int
5048 main (int argc, char *argv[])
5049 {
5050 char **newargz;
5051 int i;
5052
5053 program_name = (char *) xstrdup (base_name (argv[0]));
5054 DEBUG("(main) argv[0] : %s\n",argv[0]);
5055 DEBUG("(main) program_name : %s\n",program_name);
5056 newargz = XMALLOC(char *, argc+2);
5057 EOF
5058
5059 cat >> $cwrappersource <<EOF
5060 newargz[0] = (char *) xstrdup("$SHELL");
5061 EOF
5062
5063 cat >> $cwrappersource <<"EOF"
5064 newargz[1] = find_executable(argv[0]);
5065 if (newargz[1] == NULL)
5066 lt_fatal("Couldn't find %s", argv[0]);
5067 DEBUG("(main) found exe at : %s\n",newargz[1]);
5068 /* we know the script has the same name, without the .exe */
5069 /* so make sure newargz[1] doesn't end in .exe */
5070 strendzap(newargz[1],".exe");
5071 for (i = 1; i < argc; i++)
5072 newargz[i+1] = xstrdup(argv[i]);
5073 newargz[argc+1] = NULL;
5074
5075 for (i=0; i<argc+1; i++)
5076 {
5077 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5078 ;
5079 }
5080
5081 EOF
5082
5083 case $host_os in
5084 mingw*)
5085 cat >> $cwrappersource <<EOF
5086 execv("$SHELL",(char const **)newargz);
5087 EOF
5088 ;;
5089 *)
5090 cat >> $cwrappersource <<EOF
5091 execv("$SHELL",newargz);
5092 EOF
5093 ;;
5094 esac
5095
5096 cat >> $cwrappersource <<"EOF"
5097 return 127;
5098 }
5099
5100 void *
5101 xmalloc (size_t num)
5102 {
5103 void * p = (void *) malloc (num);
5104 if (!p)
5105 lt_fatal ("Memory exhausted");
5106
5107 return p;
5108 }
5109
5110 char *
5111 xstrdup (const char *string)
5112 {
5113 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5114 ;
5115 }
5116
5117 const char *
5118 base_name (const char *name)
5119 {
5120 const char *base;
5121
5122 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5123 /* Skip over the disk name in MSDOS pathnames. */
5124 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5125 name += 2;
5126 #endif
5127
5128 for (base = name; *name; name++)
5129 if (IS_DIR_SEPARATOR (*name))
5130 base = name + 1;
5131 return base;
5132 }
5133
5134 int
5135 check_executable(const char * path)
5136 {
5137 struct stat st;
5138
5139 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5140 if ((!path) || (!*path))
5141 return 0;
5142
5143 if ((stat (path, &st) >= 0) &&
5144 (
5145 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5146 #if defined (S_IXOTH)
5147 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5148 #endif
5149 #if defined (S_IXGRP)
5150 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5151 #endif
5152 ((st.st_mode & S_IXUSR) == S_IXUSR))
5153 )
5154 return 1;
5155 else
5156 return 0;
5157 }
5158
5159 /* Searches for the full path of the wrapper. Returns
5160 newly allocated full path name if found, NULL otherwise */
5161 char *
5162 find_executable (const char* wrapper)
5163 {
5164 int has_slash = 0;
5165 const char* p;
5166 const char* p_next;
5167 /* static buffer for getcwd */
5168 char tmp[LT_PATHMAX + 1];
5169 int tmp_len;
5170 char* concat_name;
5171
5172 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5173
5174 if ((wrapper == NULL) || (*wrapper == '\0'))
5175 return NULL;
5176
5177 /* Absolute path? */
5178 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5179 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5180 {
5181 concat_name = xstrdup (wrapper);
5182 if (check_executable(concat_name))
5183 return concat_name;
5184 XFREE(concat_name);
5185 }
5186 else
5187 {
5188 #endif
5189 if (IS_DIR_SEPARATOR (wrapper[0]))
5190 {
5191 concat_name = xstrdup (wrapper);
5192 if (check_executable(concat_name))
5193 return concat_name;
5194 XFREE(concat_name);
5195 }
5196 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5197 }
5198 #endif
5199
5200 for (p = wrapper; *p; p++)
5201 if (*p == '/')
5202 {
5203 has_slash = 1;
5204 break;
5205 }
5206 if (!has_slash)
5207 {
5208 /* no slashes; search PATH */
5209 const char* path = getenv ("PATH");
5210 if (path != NULL)
5211 {
5212 for (p = path; *p; p = p_next)
5213 {
5214 const char* q;
5215 size_t p_len;
5216 for (q = p; *q; q++)
5217 if (IS_PATH_SEPARATOR(*q))
5218 break;
5219 p_len = q - p;
5220 p_next = (*q == '\0' ? q : q + 1);
5221 if (p_len == 0)
5222 {
5223 /* empty path: current directory */
5224 if (getcwd (tmp, LT_PATHMAX) == NULL)
5225 lt_fatal ("getcwd failed");
5226 tmp_len = strlen(tmp);
5227 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5228 memcpy (concat_name, tmp, tmp_len);
5229 concat_name[tmp_len] = '/';
5230 strcpy (concat_name + tmp_len + 1, wrapper);
5231 }
5232 else
5233 {
5234 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5235 memcpy (concat_name, p, p_len);
5236 concat_name[p_len] = '/';
5237 strcpy (concat_name + p_len + 1, wrapper);
5238 }
5239 if (check_executable(concat_name))
5240 return concat_name;
5241 XFREE(concat_name);
5242 }
5243 }
5244 /* not found in PATH; assume curdir */
5245 }
5246 /* Relative path | not found in path: prepend cwd */
5247 if (getcwd (tmp, LT_PATHMAX) == NULL)
5248 lt_fatal ("getcwd failed");
5249 tmp_len = strlen(tmp);
5250 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5251 memcpy (concat_name, tmp, tmp_len);
5252 concat_name[tmp_len] = '/';
5253 strcpy (concat_name + tmp_len + 1, wrapper);
5254
5255 if (check_executable(concat_name))
5256 return concat_name;
5257 XFREE(concat_name);
5258 return NULL;
5259 }
5260
5261 char *
5262 strendzap(char *str, const char *pat)
5263 {
5264 size_t len, patlen;
5265
5266 assert(str != NULL);
5267 assert(pat != NULL);
5268
5269 len = strlen(str);
5270 patlen = strlen(pat);
5271
5272 if (patlen <= len)
5273 {
5274 str += len - patlen;
5275 if (strcmp(str, pat) == 0)
5276 *str = '\0';
5277 }
5278 return str;
5279 }
5280
5281 static void
5282 lt_error_core (int exit_status, const char * mode,
5283 const char * message, va_list ap)
5284 {
5285 fprintf (stderr, "%s: %s: ", program_name, mode);
5286 vfprintf (stderr, message, ap);
5287 fprintf (stderr, ".\n");
5288
5289 if (exit_status >= 0)
5290 exit (exit_status);
5291 }
5292
5293 void
5294 lt_fatal (const char *message, ...)
5295 {
5296 va_list ap;
5297 va_start (ap, message);
5298 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5299 va_end (ap);
5300 }
5301 EOF
5302 # we should really use a build-platform specific compiler
5303 # here, but OTOH, the wrappers (shell script and this C one)
5304 # are only useful if you want to execute the "real" binary.
5305 # Since the "real" binary is built for $host, then this
5306 # wrapper might as well be built for $host, too.
5307 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5308 ;;
5309 esac
5310 $rm $output
5311 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5312
5313 $echo > $output "\
5314 #! $SHELL
5315
5316 # $output - temporary wrapper script for $objdir/$outputname
5317 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5318 #
5319 # The $output program cannot be directly executed until all the libtool
5320 # libraries that it depends on are installed.
5321 #
5322 # This wrapper script should never be moved out of the build directory.
5323 # If it is, it will not operate correctly.
5324
5325 # Sed substitution that helps us do robust quoting. It backslashifies
5326 # metacharacters that are still active within double-quoted strings.
5327 Xsed='${SED} -e 1s/^X//'
5328 sed_quote_subst='$sed_quote_subst'
5329
5330 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5331 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5332 emulate sh
5333 NULLCMD=:
5334 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5335 # is contrary to our usage. Disable this feature.
5336 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5337 setopt NO_GLOB_SUBST
5338 else
5339 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5340 fi
5341 BIN_SH=xpg4; export BIN_SH # for Tru64
5342 DUALCASE=1; export DUALCASE # for MKS sh
5343
5344 # The HP-UX ksh and POSIX shell print the target directory to stdout
5345 # if CDPATH is set.
5346 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5347
5348 relink_command=\"$relink_command\"
5349
5350 # This environment variable determines our operation mode.
5351 if test \"\$libtool_install_magic\" = \"$magic\"; then
5352 # install mode needs the following variable:
5353 notinst_deplibs='$notinst_deplibs'
5354 else
5355 # When we are sourced in execute mode, \$file and \$echo are already set.
5356 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5357 echo=\"$qecho\"
5358 file=\"\$0\"
5359 # Make sure echo works.
5360 if test \"X\$1\" = X--no-reexec; then
5361 # Discard the --no-reexec flag, and continue.
5362 shift
5363 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
5364 # Yippee, \$echo works!
5365 :
5366 else
5367 # Restart under the correct shell, and then maybe \$echo will work.
5368 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5369 fi
5370 fi\
5371 "
5372 $echo >> $output "\
5373
5374 # Find the directory that this script lives in.
5375 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
5376 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5377
5378 # Follow symbolic links until we get to the real thisdir.
5379 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
5380 while test -n \"\$file\"; do
5381 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
5382
5383 # If there was a directory component, then change thisdir.
5384 if test \"x\$destdir\" != \"x\$file\"; then
5385 case \"\$destdir\" in
5386 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5387 *) thisdir=\"\$thisdir/\$destdir\" ;;
5388 esac
5389 fi
5390
5391 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
5392 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
5393 done
5394
5395 # Try to get the absolute directory name.
5396 absdir=\`cd \"\$thisdir\" && pwd\`
5397 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5398 "
5399
5400 if test "$fast_install" = yes; then
5401 $echo >> $output "\
5402 program=lt-'$outputname'$exeext
5403 progdir=\"\$thisdir/$objdir\"
5404
5405 if test ! -f \"\$progdir/\$program\" || \\
5406 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5407 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5408
5409 file=\"\$\$-\$program\"
5410
5411 if test ! -d \"\$progdir\"; then
5412 $mkdir \"\$progdir\"
5413 else
5414 $rm \"\$progdir/\$file\"
5415 fi"
5416
5417 $echo >> $output "\
5418
5419 # relink executable if necessary
5420 if test -n \"\$relink_command\"; then
5421 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5422 else
5423 $echo \"\$relink_command_output\" >&2
5424 $rm \"\$progdir/\$file\"
5425 exit $EXIT_FAILURE
5426 fi
5427 fi
5428
5429 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5430 { $rm \"\$progdir/\$program\";
5431 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5432 $rm \"\$progdir/\$file\"
5433 fi"
5434 else
5435 $echo >> $output "\
5436 program='$outputname'
5437 progdir=\"\$thisdir/$objdir\"
5438 "
5439 fi
5440
5441 $echo >> $output "\
5442
5443 if test -f \"\$progdir/\$program\"; then"
5444
5445 # Export our shlibpath_var if we have one.
5446 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5447 $echo >> $output "\
5448 # Add our own library path to $shlibpath_var
5449 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5450
5451 # Some systems cannot cope with colon-terminated $shlibpath_var
5452 # The second colon is a workaround for a bug in BeOS R4 sed
5453 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
5454
5455 export $shlibpath_var
5456 "
5457 fi
5458
5459 # fixup the dll searchpath if we need to.
5460 if test -n "$dllsearchpath"; then
5461 $echo >> $output "\
5462 # Add the dll search path components to the executable PATH
5463 PATH=$dllsearchpath:\$PATH
5464 "
5465 fi
5466
5467 $echo >> $output "\
5468 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5469 # Run the actual program with our arguments.
5470 "
5471 case $host in
5472 # Backslashes separate directories on plain windows
5473 *-*-mingw | *-*-os2*)
5474 $echo >> $output "\
5475 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5476 "
7834 func_dirname_and_basename "$output" "" "."
7835 output_name=$func_basename_result
7836 output_path=$func_dirname_result
7837 cwrappersource="$output_path/$objdir/lt-$output_name.c"
7838 cwrapper="$output_path/$output_name.exe"
7839 $RM $cwrappersource $cwrapper
7840 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
7841
7842 func_emit_cwrapperexe_src > $cwrappersource
7843
7844 # The wrapper executable is built using the $host compiler,
7845 # because it contains $host paths and files. If cross-
7846 # compiling, it, like the target executable, must be
7847 # executed on the $host or under an emulation environment.
7848 $opt_dry_run || {
7849 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
7850 $STRIP $cwrapper
7851 }
7852
7853 # Now, create the wrapper script for func_source use:
7854 func_ltwrapper_scriptname $cwrapper
7855 $RM $func_ltwrapper_scriptname_result
7856 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
7857 $opt_dry_run || {
7858 # note: this script will not be executed, so do not chmod.
7859 if test "x$build" = "x$host" ; then
7860 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
7861 else
7862 func_emit_wrapper no > $func_ltwrapper_scriptname_result
7863 fi
7864 }
54777865 ;;
5478
5479 *)
5480 $echo >> $output "\
5481 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5482 "
7866 * )
7867 $RM $output
7868 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
7869
7870 func_emit_wrapper no > $output
7871 chmod +x $output
54837872 ;;
54847873 esac
5485 $echo >> $output "\
5486 \$echo \"\$0: cannot exec \$program \$*\"
5487 exit $EXIT_FAILURE
5488 fi
5489 else
5490 # The program doesn't exist.
5491 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5492 \$echo \"This script is just a wrapper for \$program.\" 1>&2
5493 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5494 exit $EXIT_FAILURE
5495 fi
5496 fi\
5497 "
5498 chmod +x $output
5499 fi
7874 }
55007875 exit $EXIT_SUCCESS
55017876 ;;
55027877 esac
55057880 for oldlib in $oldlibs; do
55067881
55077882 if test "$build_libtool_libs" = convenience; then
5508 oldobjs="$libobjs_save"
7883 oldobjs="$libobjs_save $symfileobj"
55097884 addlibs="$convenience"
55107885 build_libtool_libs=no
55117886 else
55147889 build_libtool_libs=no
55157890 else
55167891 oldobjs="$old_deplibs $non_pic_objects"
7892 if test "$preload" = yes && test -f "$symfileobj"; then
7893 oldobjs="$oldobjs $symfileobj"
7894 fi
55177895 fi
55187896 addlibs="$old_convenience"
55197897 fi
55287906
55297907 # Do each command in the archive commands.
55307908 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5531 cmds=$old_archive_from_new_cmds
7909 cmds=$old_archive_from_new_cmds
55327910 else
7911
7912 # Add any objects from preloaded convenience libraries
7913 if test -n "$dlprefiles"; then
7914 gentop="$output_objdir/${outputname}x"
7915 generated="$generated $gentop"
7916
7917 func_extract_archives $gentop $dlprefiles
7918 oldobjs="$oldobjs $func_extract_archives_result"
7919 fi
7920
55337921 # POSIX demands no paths to be encoded in archives. We have
55347922 # to avoid creating archives with duplicate basenames if we
55357923 # might have to extract them afterwards, e.g., when creating a
55387926 # not supported by libtool).
55397927 if (for obj in $oldobjs
55407928 do
5541 $echo "X$obj" | $Xsed -e 's%^.*/%%'
7929 func_basename "$obj"
7930 $ECHO "$func_basename_result"
55427931 done | sort | sort -uc >/dev/null 2>&1); then
55437932 :
55447933 else
5545 $echo "copying selected object files to avoid basename conflicts..."
5546
5547 if test -z "$gentop"; then
5548 gentop="$output_objdir/${outputname}x"
5549 generated="$generated $gentop"
5550
5551 $show "${rm}r $gentop"
5552 $run ${rm}r "$gentop"
5553 $show "$mkdir $gentop"
5554 $run $mkdir "$gentop"
5555 exit_status=$?
5556 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5557 exit $exit_status
5558 fi
5559 fi
5560
7934 $ECHO "copying selected object files to avoid basename conflicts..."
7935 gentop="$output_objdir/${outputname}x"
7936 generated="$generated $gentop"
7937 func_mkdir_p "$gentop"
55617938 save_oldobjs=$oldobjs
55627939 oldobjs=
55637940 counter=1
55647941 for obj in $save_oldobjs
55657942 do
5566 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
7943 func_basename "$obj"
7944 objbase="$func_basename_result"
55677945 case " $oldobjs " in
55687946 " ") oldobjs=$obj ;;
55697947 *[\ /]"$objbase "*)
55717949 # Make sure we don't pick an alternate name that also
55727950 # overlaps.
55737951 newobj=lt$counter-$objbase
5574 counter=`expr $counter + 1`
7952 func_arith $counter + 1
7953 counter=$func_arith_result
55757954 case " $oldobjs " in
55767955 *[\ /]"$newobj "*) ;;
55777956 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
55787957 esac
55797958 done
5580 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5581 $run ln "$obj" "$gentop/$newobj" ||
5582 $run cp "$obj" "$gentop/$newobj"
7959 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
55837960 oldobjs="$oldobjs $gentop/$newobj"
55847961 ;;
55857962 *) oldobjs="$oldobjs $obj" ;;
55867963 esac
55877964 done
55887965 fi
5589
55907966 eval cmds=\"$old_archive_cmds\"
55917967
5592 if len=`expr "X$cmds" : ".*"` &&
5593 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7968 func_len " $cmds"
7969 len=$func_len_result
7970 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
55947971 cmds=$old_archive_cmds
55957972 else
55967973 # the command line is too long to link in one step, link in parts
5597 $echo "using piecewise archive linking..."
7974 func_verbose "using piecewise archive linking..."
55987975 save_RANLIB=$RANLIB
55997976 RANLIB=:
56007977 objlist=
56017978 concat_cmds=
56027979 save_oldobjs=$oldobjs
5603
7980 oldobjs=
56047981 # Is there a better way of finding the last object in the list?
56057982 for obj in $save_oldobjs
56067983 do
56077984 last_oldobj=$obj
56087985 done
7986 eval test_cmds=\"$old_archive_cmds\"
7987 func_len " $test_cmds"
7988 len0=$func_len_result
7989 len=$len0
56097990 for obj in $save_oldobjs
56107991 do
5611 oldobjs="$objlist $obj"
5612 objlist="$objlist $obj"
5613 eval test_cmds=\"$old_archive_cmds\"
5614 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5615 test "$len" -le "$max_cmd_len"; then
7992 func_len " $obj"
7993 func_arith $len + $func_len_result
7994 len=$func_arith_result
7995 func_append objlist " $obj"
7996 if test "$len" -lt "$max_cmd_len"; then
56167997 :
56177998 else
56187999 # the above command should be used before it gets too long
56198000 oldobjs=$objlist
56208001 if test "$obj" = "$last_oldobj" ; then
5621 RANLIB=$save_RANLIB
8002 RANLIB=$save_RANLIB
56228003 fi
56238004 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
56248005 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
56258006 objlist=
8007 len=$len0
56268008 fi
56278009 done
56288010 RANLIB=$save_RANLIB
56348016 fi
56358017 fi
56368018 fi
5637 save_ifs="$IFS"; IFS='~'
5638 for cmd in $cmds; do
5639 eval cmd=\"$cmd\"
5640 IFS="$save_ifs"
5641 $show "$cmd"
5642 $run eval "$cmd" || exit $?
5643 done
5644 IFS="$save_ifs"
8019 func_execute_cmds "$cmds" 'exit $?'
56458020 done
56468021
5647 if test -n "$generated"; then
5648 $show "${rm}r$generated"
5649 $run ${rm}r$generated
5650 fi
8022 test -n "$generated" && \
8023 func_show_eval "${RM}r$generated"
56518024
56528025 # Now create the libtool archive.
56538026 case $output in
56548027 *.la)
56558028 old_library=
56568029 test "$build_old_libs" = yes && old_library="$libname.$libext"
5657 $show "creating $output"
8030 func_verbose "creating $output"
56588031
56598032 # Preserve any variables that may affect compiler behavior
56608033 for var in $variables_saved_for_relink; do
56618034 if eval test -z \"\${$var+set}\"; then
5662 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
8035 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
56638036 elif eval var_value=\$$var; test -z "$var_value"; then
56648037 relink_command="$var=; export $var; $relink_command"
56658038 else
5666 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5667 relink_command="$var=\"$var_value\"; export $var; $relink_command"
8039 func_quote_for_eval "$var_value"
8040 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
56688041 fi
56698042 done
56708043 # Quote the link command for shipping.
56718044 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5672 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
8045 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
56738046 if test "$hardcode_automatic" = yes ; then
56748047 relink_command=
56758048 fi
56768049
5677
56788050 # Only create the output if not a dry run.
5679 if test -z "$run"; then
8051 $opt_dry_run || {
56808052 for installed in no yes; do
56818053 if test "$installed" = yes; then
56828054 if test -z "$install_libdir"; then
56888060 for deplib in $dependency_libs; do
56898061 case $deplib in
56908062 *.la)
5691 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
8063 func_basename "$deplib"
8064 name="$func_basename_result"
56928065 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5693 if test -z "$libdir"; then
5694 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5695 exit $EXIT_FAILURE
5696 fi
8066 test -z "$libdir" && \
8067 func_fatal_error "\`$deplib' is not a valid libtool archive"
56978068 newdependency_libs="$newdependency_libs $libdir/$name"
56988069 ;;
56998070 *) newdependency_libs="$newdependency_libs $deplib" ;;
57018072 done
57028073 dependency_libs="$newdependency_libs"
57038074 newdlfiles=
8075
57048076 for lib in $dlfiles; do
5705 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5706 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5707 if test -z "$libdir"; then
5708 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5709 exit $EXIT_FAILURE
5710 fi
5711 newdlfiles="$newdlfiles $libdir/$name"
8077 case $lib in
8078 *.la)
8079 func_basename "$lib"
8080 name="$func_basename_result"
8081 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
8082 test -z "$libdir" && \
8083 func_fatal_error "\`$lib' is not a valid libtool archive"
8084 newdlfiles="$newdlfiles $libdir/$name"
8085 ;;
8086 *) newdlfiles="$newdlfiles $lib" ;;
8087 esac
57128088 done
57138089 dlfiles="$newdlfiles"
57148090 newdlprefiles=
57158091 for lib in $dlprefiles; do
5716 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5717 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5718 if test -z "$libdir"; then
5719 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5720 exit $EXIT_FAILURE
5721 fi
5722 newdlprefiles="$newdlprefiles $libdir/$name"
8092 case $lib in
8093 *.la)
8094 # Only pass preopened files to the pseudo-archive (for
8095 # eventual linking with the app. that links it) if we
8096 # didn't already link the preopened objects directly into
8097 # the library:
8098 func_basename "$lib"
8099 name="$func_basename_result"
8100 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
8101 test -z "$libdir" && \
8102 func_fatal_error "\`$lib' is not a valid libtool archive"
8103 newdlprefiles="$newdlprefiles $libdir/$name"
8104 ;;
8105 esac
57238106 done
57248107 dlprefiles="$newdlprefiles"
57258108 else
57428125 done
57438126 dlprefiles="$newdlprefiles"
57448127 fi
5745 $rm $output
8128 $RM $output
57468129 # place dlname in correct position for cygwin
57478130 tdlname=$dlname
57488131 case $host,$output,$installed,$module,$dlname in
5749 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
8132 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
57508133 esac
5751 $echo > $output "\
8134 $ECHO > $output "\
57528135 # $outputname - a libtool library file
5753 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
8136 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
57548137 #
57558138 # Please DO NOT delete this file!
57568139 # It is necessary for linking the library.
57648147 # The name of the static archive.
57658148 old_library='$old_library'
57668149
8150 # Linker flags that can not go in dependency_libs.
8151 inherited_linker_flags='$new_inherited_linker_flags'
8152
57678153 # Libraries that this one depends upon.
57688154 dependency_libs='$dependency_libs'
8155
8156 # Names of additional weak libraries provided by this library
8157 weak_library_names='$weak_libs'
57698158
57708159 # Version information for $libname.
57718160 current=$current
57858174 # Directory that this library needs to be installed in:
57868175 libdir='$install_libdir'"
57878176 if test "$installed" = no && test "$need_relink" = yes; then
5788 $echo >> $output "\
8177 $ECHO >> $output "\
57898178 relink_command=\"$relink_command\""
57908179 fi
57918180 done
5792 fi
8181 }
57938182
57948183 # Do a symbolic link so that the libtool archive can be found in
57958184 # LD_LIBRARY_PATH before the program is installed.
5796 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5797 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
8185 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
57988186 ;;
57998187 esac
58008188 exit $EXIT_SUCCESS
5801 ;;
5802
5803 # libtool install mode
5804 install)
5805 modename="$modename: install"
5806
5807 # There may be an optional sh(1) argument at the beginning of
5808 # install_prog (especially on Windows NT).
5809 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5810 # Allow the use of GNU shtool's install command.
5811 $echo "X$nonopt" | grep shtool > /dev/null; then
5812 # Aesthetically quote it.
5813 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5814 case $arg in
5815 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5816 arg="\"$arg\""
5817 ;;
5818 esac
5819 install_prog="$arg "
5820 arg="$1"
5821 shift
5822 else
5823 install_prog=
5824 arg=$nonopt
5825 fi
5826
5827 # The real first argument should be the name of the installation program.
5828 # Aesthetically quote it.
5829 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5830 case $arg in
5831 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5832 arg="\"$arg\""
5833 ;;
5834 esac
5835 install_prog="$install_prog$arg"
5836
5837 # We need to accept at least all the BSD install flags.
5838 dest=
8189 }
8190
8191 { test "$mode" = link || test "$mode" = relink; } &&
8192 func_mode_link ${1+"$@"}
8193
8194
8195 # func_mode_uninstall arg...
8196 func_mode_uninstall ()
8197 {
8198 $opt_debug
8199 RM="$nonopt"
58398200 files=
5840 opts=
5841 prev=
5842 install_type=
5843 isdir=no
5844 stripme=
5845 for arg
5846 do
5847 if test -n "$dest"; then
5848 files="$files $dest"
5849 dest=$arg
5850 continue
5851 fi
5852
5853 case $arg in
5854 -d) isdir=yes ;;
5855 -f)
5856 case " $install_prog " in
5857 *[\\\ /]cp\ *) ;;
5858 *) prev=$arg ;;
5859 esac
5860 ;;
5861 -g | -m | -o) prev=$arg ;;
5862 -s)
5863 stripme=" -s"
5864 continue
5865 ;;
5866 -*)
5867 ;;
5868 *)
5869 # If the previous option needed an argument, then skip it.
5870 if test -n "$prev"; then
5871 prev=
5872 else
5873 dest=$arg
5874 continue
5875 fi
5876 ;;
5877 esac
5878
5879 # Aesthetically quote the argument.
5880 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5881 case $arg in
5882 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5883 arg="\"$arg\""
5884 ;;
5885 esac
5886 install_prog="$install_prog $arg"
5887 done
5888
5889 if test -z "$install_prog"; then
5890 $echo "$modename: you must specify an install program" 1>&2
5891 $echo "$help" 1>&2
5892 exit $EXIT_FAILURE
5893 fi
5894
5895 if test -n "$prev"; then
5896 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5897 $echo "$help" 1>&2
5898 exit $EXIT_FAILURE
5899 fi
5900
5901 if test -z "$files"; then
5902 if test -z "$dest"; then
5903 $echo "$modename: no file or destination specified" 1>&2
5904 else
5905 $echo "$modename: you must specify a destination" 1>&2
5906 fi
5907 $echo "$help" 1>&2
5908 exit $EXIT_FAILURE
5909 fi
5910
5911 # Strip any trailing slash from the destination.
5912 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5913
5914 # Check to see that the destination is a directory.
5915 test -d "$dest" && isdir=yes
5916 if test "$isdir" = yes; then
5917 destdir="$dest"
5918 destname=
5919 else
5920 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5921 test "X$destdir" = "X$dest" && destdir=.
5922 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5923
5924 # Not a directory, so check to see that there is only one file specified.
5925 set dummy $files
5926 if test "$#" -gt 2; then
5927 $echo "$modename: \`$dest' is not a directory" 1>&2
5928 $echo "$help" 1>&2
5929 exit $EXIT_FAILURE
5930 fi
5931 fi
5932 case $destdir in
5933 [\\/]* | [A-Za-z]:[\\/]*) ;;
5934 *)
5935 for file in $files; do
5936 case $file in
5937 *.lo) ;;
5938 *)
5939 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5940 $echo "$help" 1>&2
5941 exit $EXIT_FAILURE
5942 ;;
5943 esac
5944 done
5945 ;;
5946 esac
8201 rmforce=
8202 exit_status=0
59478203
59488204 # This variable tells wrapper scripts just to set variables rather
59498205 # than running their programs.
59508206 libtool_install_magic="$magic"
59518207
5952 staticlibs=
5953 future_libdirs=
5954 current_libdirs=
5955 for file in $files; do
5956
5957 # Do each installation.
5958 case $file in
5959 *.$libext)
5960 # Do the static libraries later.
5961 staticlibs="$staticlibs $file"
5962 ;;
5963
5964 *.la)
5965 # Check to see that this really is a libtool archive.
5966 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5967 else
5968 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5969 $echo "$help" 1>&2
5970 exit $EXIT_FAILURE
5971 fi
5972
5973 library_names=
5974 old_library=
5975 relink_command=
5976 # If there is no directory component, then add one.
5977 case $file in
5978 */* | *\\*) . $file ;;
5979 *) . ./$file ;;
5980 esac
5981
5982 # Add the libdir to current_libdirs if it is the destination.
5983 if test "X$destdir" = "X$libdir"; then
5984 case "$current_libdirs " in
5985 *" $libdir "*) ;;
5986 *) current_libdirs="$current_libdirs $libdir" ;;
5987 esac
5988 else
5989 # Note the libdir as a future libdir.
5990 case "$future_libdirs " in
5991 *" $libdir "*) ;;
5992 *) future_libdirs="$future_libdirs $libdir" ;;
5993 esac
5994 fi
5995
5996 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
5997 test "X$dir" = "X$file/" && dir=
5998 dir="$dir$objdir"
5999
6000 if test -n "$relink_command"; then
6001 # Determine the prefix the user has applied to our future dir.
6002 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
6003
6004 # Don't allow the user to place us outside of our expected
6005 # location b/c this prevents finding dependent libraries that
6006 # are installed to the same prefix.
6007 # At present, this check doesn't affect windows .dll's that
6008 # are installed into $libdir/../bin (currently, that works fine)
6009 # but it's something to keep an eye on.
6010 if test "$inst_prefix_dir" = "$destdir"; then
6011 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
6012 exit $EXIT_FAILURE
6013 fi
6014
6015 if test -n "$inst_prefix_dir"; then
6016 # Stick the inst_prefix_dir data into the link command.
6017 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
6018 else
6019 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
6020 fi
6021
6022 $echo "$modename: warning: relinking \`$file'" 1>&2
6023 $show "$relink_command"
6024 if $run eval "$relink_command"; then :
6025 else
6026 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6027 exit $EXIT_FAILURE
6028 fi
6029 fi
6030
6031 # See the names of the shared library.
6032 set dummy $library_names
6033 if test -n "$2"; then
6034 realname="$2"
6035 shift
6036 shift
6037
6038 srcname="$realname"
6039 test -n "$relink_command" && srcname="$realname"T
6040
6041 # Install the shared library and build the symlinks.
6042 $show "$install_prog $dir/$srcname $destdir/$realname"
6043 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
6044 if test -n "$stripme" && test -n "$striplib"; then
6045 $show "$striplib $destdir/$realname"
6046 $run eval "$striplib $destdir/$realname" || exit $?
6047 fi
6048
6049 if test "$#" -gt 0; then
6050 # Delete the old symlinks, and create new ones.
6051 # Try `ln -sf' first, because the `ln' binary might depend on
6052 # the symlink we replace! Solaris /bin/ln does not understand -f,
6053 # so we also need to try rm && ln -s.
6054 for linkname
6055 do
6056 if test "$linkname" != "$realname"; then
6057 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6058 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6059 fi
6060 done
6061 fi
6062
6063 # Do each command in the postinstall commands.
6064 lib="$destdir/$realname"
6065 cmds=$postinstall_cmds
6066 save_ifs="$IFS"; IFS='~'
6067 for cmd in $cmds; do
6068 IFS="$save_ifs"
6069 eval cmd=\"$cmd\"
6070 $show "$cmd"
6071 $run eval "$cmd" || {
6072 lt_exit=$?
6073
6074 # Restore the uninstalled library and exit
6075 if test "$mode" = relink; then
6076 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
6077 fi
6078
6079 exit $lt_exit
6080 }
6081 done
6082 IFS="$save_ifs"
6083 fi
6084
6085 # Install the pseudo-library for information purposes.
6086 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6087 instname="$dir/$name"i
6088 $show "$install_prog $instname $destdir/$name"
6089 $run eval "$install_prog $instname $destdir/$name" || exit $?
6090
6091 # Maybe install the static library, too.
6092 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
6093 ;;
6094
6095 *.lo)
6096 # Install (i.e. copy) a libtool object.
6097
6098 # Figure out destination file name, if it wasn't already specified.
6099 if test -n "$destname"; then
6100 destfile="$destdir/$destname"
6101 else
6102 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6103 destfile="$destdir/$destfile"
6104 fi
6105
6106 # Deduce the name of the destination old-style object file.
6107 case $destfile in
6108 *.lo)
6109 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
6110 ;;
6111 *.$objext)
6112 staticdest="$destfile"
6113 destfile=
6114 ;;
6115 *)
6116 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
6117 $echo "$help" 1>&2
6118 exit $EXIT_FAILURE
6119 ;;
6120 esac
6121
6122 # Install the libtool object if requested.
6123 if test -n "$destfile"; then
6124 $show "$install_prog $file $destfile"
6125 $run eval "$install_prog $file $destfile" || exit $?
6126 fi
6127
6128 # Install the old object if enabled.
6129 if test "$build_old_libs" = yes; then
6130 # Deduce the name of the old-style object file.
6131 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
6132
6133 $show "$install_prog $staticobj $staticdest"
6134 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
6135 fi
6136 exit $EXIT_SUCCESS
6137 ;;
6138
6139 *)
6140 # Figure out destination file name, if it wasn't already specified.
6141 if test -n "$destname"; then
6142 destfile="$destdir/$destname"
6143 else
6144 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6145 destfile="$destdir/$destfile"
6146 fi
6147
6148 # If the file is missing, and there is a .exe on the end, strip it
6149 # because it is most likely a libtool script we actually want to
6150 # install
6151 stripped_ext=""
6152 case $file in
6153 *.exe)
6154 if test ! -f "$file"; then
6155 file=`$echo $file|${SED} 's,.exe$,,'`
6156 stripped_ext=".exe"
6157 fi
6158 ;;
6159 esac
6160
6161 # Do a test to see if this is really a libtool program.
6162 case $host in
6163 *cygwin*|*mingw*)
6164 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
6165 ;;
6166 *)
6167 wrapper=$file
6168 ;;
6169 esac
6170 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
6171 notinst_deplibs=
6172 relink_command=
6173
6174 # Note that it is not necessary on cygwin/mingw to append a dot to
6175 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6176 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6177 # `FILE.' does not work on cygwin managed mounts.
6178 #
6179 # If there is no directory component, then add one.
6180 case $wrapper in
6181 */* | *\\*) . ${wrapper} ;;
6182 *) . ./${wrapper} ;;
6183 esac
6184
6185 # Check the variables that should have been set.
6186 if test -z "$notinst_deplibs"; then
6187 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
6188 exit $EXIT_FAILURE
6189 fi
6190
6191 finalize=yes
6192 for lib in $notinst_deplibs; do
6193 # Check to see that each library is installed.
6194 libdir=
6195 if test -f "$lib"; then
6196 # If there is no directory component, then add one.
6197 case $lib in
6198 */* | *\\*) . $lib ;;
6199 *) . ./$lib ;;
6200 esac
6201 fi
6202 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6203 if test -n "$libdir" && test ! -f "$libfile"; then
6204 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
6205 finalize=no
6206 fi
6207 done
6208
6209 relink_command=
6210 # Note that it is not necessary on cygwin/mingw to append a dot to
6211 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6212 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6213 # `FILE.' does not work on cygwin managed mounts.
6214 #
6215 # If there is no directory component, then add one.
6216 case $wrapper in
6217 */* | *\\*) . ${wrapper} ;;
6218 *) . ./${wrapper} ;;
6219 esac
6220
6221 outputname=
6222 if test "$fast_install" = no && test -n "$relink_command"; then
6223 if test "$finalize" = yes && test -z "$run"; then
6224 tmpdir=`func_mktempdir`
6225 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6226 outputname="$tmpdir/$file"
6227 # Replace the output file specification.
6228 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6229
6230 $show "$relink_command"
6231 if $run eval "$relink_command"; then :
6232 else
6233 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6234 ${rm}r "$tmpdir"
6235 continue
6236 fi
6237 file="$outputname"
6238 else
6239 $echo "$modename: warning: cannot relink \`$file'" 1>&2
6240 fi
6241 else
6242 # Install the binary that we compiled earlier.
6243 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6244 fi
6245 fi
6246
6247 # remove .exe since cygwin /usr/bin/install will append another
6248 # one anyway
6249 case $install_prog,$host in
6250 */usr/bin/install*,*cygwin*)
6251 case $file:$destfile in
6252 *.exe:*.exe)
6253 # this is ok
6254 ;;
6255 *.exe:*)
6256 destfile=$destfile.exe
6257 ;;
6258 *:*.exe)
6259 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
6260 ;;
6261 esac
6262 ;;
6263 esac
6264 $show "$install_prog$stripme $file $destfile"
6265 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
6266 test -n "$outputname" && ${rm}r "$tmpdir"
6267 ;;
6268 esac
6269 done
6270
6271 for file in $staticlibs; do
6272 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6273
6274 # Set up the ranlib parameters.
6275 oldlib="$destdir/$name"
6276
6277 $show "$install_prog $file $oldlib"
6278 $run eval "$install_prog \$file \$oldlib" || exit $?
6279
6280 if test -n "$stripme" && test -n "$old_striplib"; then
6281 $show "$old_striplib $oldlib"
6282 $run eval "$old_striplib $oldlib" || exit $?
6283 fi
6284
6285 # Do each command in the postinstall commands.
6286 cmds=$old_postinstall_cmds
6287 save_ifs="$IFS"; IFS='~'
6288 for cmd in $cmds; do
6289 IFS="$save_ifs"
6290 eval cmd=\"$cmd\"
6291 $show "$cmd"
6292 $run eval "$cmd" || exit $?
6293 done
6294 IFS="$save_ifs"
6295 done
6296
6297 if test -n "$future_libdirs"; then
6298 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
6299 fi
6300
6301 if test -n "$current_libdirs"; then
6302 # Maybe just do a dry run.
6303 test -n "$run" && current_libdirs=" -n$current_libdirs"
6304 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
6305 else
6306 exit $EXIT_SUCCESS
6307 fi
6308 ;;
6309
6310 # libtool finish mode
6311 finish)
6312 modename="$modename: finish"
6313 libdirs="$nonopt"
6314 admincmds=
6315
6316 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
6317 for dir
6318 do
6319 libdirs="$libdirs $dir"
6320 done
6321
6322 for libdir in $libdirs; do
6323 if test -n "$finish_cmds"; then
6324 # Do each command in the finish commands.
6325 cmds=$finish_cmds
6326 save_ifs="$IFS"; IFS='~'
6327 for cmd in $cmds; do
6328 IFS="$save_ifs"
6329 eval cmd=\"$cmd\"
6330 $show "$cmd"
6331 $run eval "$cmd" || admincmds="$admincmds
6332 $cmd"
6333 done
6334 IFS="$save_ifs"
6335 fi
6336 if test -n "$finish_eval"; then
6337 # Do the single finish_eval.
6338 eval cmds=\"$finish_eval\"
6339 $run eval "$cmds" || admincmds="$admincmds
6340 $cmds"
6341 fi
6342 done
6343 fi
6344
6345 # Exit here if they wanted silent mode.
6346 test "$show" = : && exit $EXIT_SUCCESS
6347
6348 $echo "X----------------------------------------------------------------------" | $Xsed
6349 $echo "Libraries have been installed in:"
6350 for libdir in $libdirs; do
6351 $echo " $libdir"
6352 done
6353 $echo
6354 $echo "If you ever happen to want to link against installed libraries"
6355 $echo "in a given directory, LIBDIR, you must either use libtool, and"
6356 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6357 $echo "flag during linking and do at least one of the following:"
6358 if test -n "$shlibpath_var"; then
6359 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6360 $echo " during execution"
6361 fi
6362 if test -n "$runpath_var"; then
6363 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
6364 $echo " during linking"
6365 fi
6366 if test -n "$hardcode_libdir_flag_spec"; then
6367 libdir=LIBDIR
6368 eval flag=\"$hardcode_libdir_flag_spec\"
6369
6370 $echo " - use the \`$flag' linker flag"
6371 fi
6372 if test -n "$admincmds"; then
6373 $echo " - have your system administrator run these commands:$admincmds"
6374 fi
6375 if test -f /etc/ld.so.conf; then
6376 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6377 fi
6378 $echo
6379 $echo "See any operating system documentation about shared libraries for"
6380 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6381 $echo "X----------------------------------------------------------------------" | $Xsed
6382 exit $EXIT_SUCCESS
6383 ;;
6384
6385 # libtool execute mode
6386 execute)
6387 modename="$modename: execute"
6388
6389 # The first argument is the command name.
6390 cmd="$nonopt"
6391 if test -z "$cmd"; then
6392 $echo "$modename: you must specify a COMMAND" 1>&2
6393 $echo "$help"
6394 exit $EXIT_FAILURE
6395 fi
6396
6397 # Handle -dlopen flags immediately.
6398 for file in $execute_dlfiles; do
6399 if test ! -f "$file"; then
6400 $echo "$modename: \`$file' is not a file" 1>&2
6401 $echo "$help" 1>&2
6402 exit $EXIT_FAILURE
6403 fi
6404
6405 dir=
6406 case $file in
6407 *.la)
6408 # Check to see that this really is a libtool archive.
6409 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6410 else
6411 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6412 $echo "$help" 1>&2
6413 exit $EXIT_FAILURE
6414 fi
6415
6416 # Read the libtool library.
6417 dlname=
6418 library_names=
6419
6420 # If there is no directory component, then add one.
6421 case $file in
6422 */* | *\\*) . $file ;;
6423 *) . ./$file ;;
6424 esac
6425
6426 # Skip this library if it cannot be dlopened.
6427 if test -z "$dlname"; then
6428 # Warn if it was a shared library.
6429 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
6430 continue
6431 fi
6432
6433 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6434 test "X$dir" = "X$file" && dir=.
6435
6436 if test -f "$dir/$objdir/$dlname"; then
6437 dir="$dir/$objdir"
6438 else
6439 if test ! -f "$dir/$dlname"; then
6440 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6441 exit $EXIT_FAILURE
6442 fi
6443 fi
6444 ;;
6445
6446 *.lo)
6447 # Just add the directory containing the .lo file.
6448 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6449 test "X$dir" = "X$file" && dir=.
6450 ;;
6451
6452 *)
6453 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
6454 continue
6455 ;;
6456 esac
6457
6458 # Get the absolute pathname.
6459 absdir=`cd "$dir" && pwd`
6460 test -n "$absdir" && dir="$absdir"
6461
6462 # Now add the directory to shlibpath_var.
6463 if eval "test -z \"\$$shlibpath_var\""; then
6464 eval "$shlibpath_var=\"\$dir\""
6465 else
6466 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
6467 fi
6468 done
6469
6470 # This variable tells wrapper scripts just to set shlibpath_var
6471 # rather than running their programs.
6472 libtool_execute_magic="$magic"
6473
6474 # Check if any of the arguments is a wrapper script.
6475 args=
6476 for file
6477 do
6478 case $file in
6479 -*) ;;
6480 *)
6481 # Do a test to see if this is really a libtool program.
6482 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6483 # If there is no directory component, then add one.
6484 case $file in
6485 */* | *\\*) . $file ;;
6486 *) . ./$file ;;
6487 esac
6488
6489 # Transform arg to wrapped name.
6490 file="$progdir/$program"
6491 fi
6492 ;;
6493 esac
6494 # Quote arguments (to preserve shell metacharacters).
6495 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
6496 args="$args \"$file\""
6497 done
6498
6499 if test -z "$run"; then
6500 if test -n "$shlibpath_var"; then
6501 # Export the shlibpath_var.
6502 eval "export $shlibpath_var"
6503 fi
6504
6505 # Restore saved environment variables
6506 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6507 do
6508 eval "if test \"\${save_$lt_var+set}\" = set; then
6509 $lt_var=\$save_$lt_var; export $lt_var
6510 fi"
6511 done
6512
6513 # Now prepare to actually exec the command.
6514 exec_cmd="\$cmd$args"
6515 else
6516 # Display what would be done.
6517 if test -n "$shlibpath_var"; then
6518 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6519 $echo "export $shlibpath_var"
6520 fi
6521 $echo "$cmd$args"
6522 exit $EXIT_SUCCESS
6523 fi
6524 ;;
6525
6526 # libtool clean and uninstall mode
6527 clean | uninstall)
6528 modename="$modename: $mode"
6529 rm="$nonopt"
6530 files=
6531 rmforce=
6532 exit_status=0
6533
6534 # This variable tells wrapper scripts just to set variables rather
6535 # than running their programs.
6536 libtool_install_magic="$magic"
6537
65388208 for arg
65398209 do
65408210 case $arg in
6541 -f) rm="$rm $arg"; rmforce=yes ;;
6542 -*) rm="$rm $arg" ;;
8211 -f) RM="$RM $arg"; rmforce=yes ;;
8212 -*) RM="$RM $arg" ;;
65438213 *) files="$files $arg" ;;
65448214 esac
65458215 done
65468216
6547 if test -z "$rm"; then
6548 $echo "$modename: you must specify an RM program" 1>&2
6549 $echo "$help" 1>&2
6550 exit $EXIT_FAILURE
6551 fi
8217 test -z "$RM" && \
8218 func_fatal_help "you must specify an RM program"
65528219
65538220 rmdirs=
65548221
65558222 origobjdir="$objdir"
65568223 for file in $files; do
6557 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6558 if test "X$dir" = "X$file"; then
6559 dir=.
8224 func_dirname "$file" "" "."
8225 dir="$func_dirname_result"
8226 if test "X$dir" = X.; then
65608227 objdir="$origobjdir"
65618228 else
65628229 objdir="$dir/$origobjdir"
65638230 fi
6564 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
8231 func_basename "$file"
8232 name="$func_basename_result"
65658233 test "$mode" = uninstall && objdir="$dir"
65668234
65678235 # Remember objdir for removal later, being careful to avoid duplicates
65738241 fi
65748242
65758243 # Don't error if the file doesn't exist and rm -f was used.
6576 if (test -L "$file") >/dev/null 2>&1 \
6577 || (test -h "$file") >/dev/null 2>&1 \
6578 || test -f "$file"; then
8244 if { test -L "$file"; } >/dev/null 2>&1 ||
8245 { test -h "$file"; } >/dev/null 2>&1 ||
8246 test -f "$file"; then
65798247 :
65808248 elif test -d "$file"; then
65818249 exit_status=1
65898257 case $name in
65908258 *.la)
65918259 # Possibly a libtool archive, so verify it.
6592 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6593 . $dir/$name
8260 if func_lalib_p "$file"; then
8261 func_source $dir/$name
65948262
65958263 # Delete the libtool libraries and symlinks.
65968264 for n in $library_names; do
66058273 *" $dlname "*) ;;
66068274 *) rmfiles="$rmfiles $objdir/$dlname" ;;
66078275 esac
6608 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
8276 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
66098277 ;;
66108278 uninstall)
66118279 if test -n "$library_names"; then
66128280 # Do each command in the postuninstall commands.
6613 cmds=$postuninstall_cmds
6614 save_ifs="$IFS"; IFS='~'
6615 for cmd in $cmds; do
6616 IFS="$save_ifs"
6617 eval cmd=\"$cmd\"
6618 $show "$cmd"
6619 $run eval "$cmd"
6620 if test "$?" -ne 0 && test "$rmforce" != yes; then
6621 exit_status=1
6622 fi
6623 done
6624 IFS="$save_ifs"
8281 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
66258282 fi
66268283
66278284 if test -n "$old_library"; then
66288285 # Do each command in the old_postuninstall commands.
6629 cmds=$old_postuninstall_cmds
6630 save_ifs="$IFS"; IFS='~'
6631 for cmd in $cmds; do
6632 IFS="$save_ifs"
6633 eval cmd=\"$cmd\"
6634 $show "$cmd"
6635 $run eval "$cmd"
6636 if test "$?" -ne 0 && test "$rmforce" != yes; then
6637 exit_status=1
6638 fi
6639 done
6640 IFS="$save_ifs"
8286 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
66418287 fi
66428288 # FIXME: should reinstall the best remaining shared library.
66438289 ;;
66478293
66488294 *.lo)
66498295 # Possibly a libtool object, so verify it.
6650 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
8296 if func_lalib_p "$file"; then
66518297
66528298 # Read the .lo file
6653 . $dir/$name
8299 func_source $dir/$name
66548300
66558301 # Add PIC object to the list of files to remove.
6656 if test -n "$pic_object" \
6657 && test "$pic_object" != none; then
8302 if test -n "$pic_object" &&
8303 test "$pic_object" != none; then
66588304 rmfiles="$rmfiles $dir/$pic_object"
66598305 fi
66608306
66618307 # Add non-PIC object to the list of files to remove.
6662 if test -n "$non_pic_object" \
6663 && test "$non_pic_object" != none; then
8308 if test -n "$non_pic_object" &&
8309 test "$non_pic_object" != none; then
66648310 rmfiles="$rmfiles $dir/$non_pic_object"
66658311 fi
66668312 fi
66718317 noexename=$name
66728318 case $file in
66738319 *.exe)
6674 file=`$echo $file|${SED} 's,.exe$,,'`
6675 noexename=`$echo $name|${SED} 's,.exe$,,'`
8320 func_stripname '' '.exe' "$file"
8321 file=$func_stripname_result
8322 func_stripname '' '.exe' "$name"
8323 noexename=$func_stripname_result
66768324 # $file with .exe has already been added to rmfiles,
66778325 # add $file without .exe
66788326 rmfiles="$rmfiles $file"
66798327 ;;
66808328 esac
66818329 # Do a test to see if this is a libtool program.
6682 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6683 relink_command=
6684 . $dir/$noexename
8330 if func_ltwrapper_p "$file"; then
8331 if func_ltwrapper_executable_p "$file"; then
8332 func_ltwrapper_scriptname "$file"
8333 relink_command=
8334 func_source $func_ltwrapper_scriptname_result
8335 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
8336 else
8337 relink_command=
8338 func_source $dir/$noexename
8339 fi
66858340
66868341 # note $name still contains .exe if it was in $file originally
66878342 # as does the version of $file that was added into $rmfiles
66968351 fi
66978352 ;;
66988353 esac
6699 $show "$rm $rmfiles"
6700 $run $rm $rmfiles || exit_status=1
8354 func_show_eval "$RM $rmfiles" 'exit_status=1'
67018355 done
67028356 objdir="$origobjdir"
67038357
67048358 # Try to remove the ${objdir}s in the directories where we deleted files
67058359 for dir in $rmdirs; do
67068360 if test -d "$dir"; then
6707 $show "rmdir $dir"
6708 $run rmdir $dir >/dev/null 2>&1
8361 func_show_eval "rmdir $dir >/dev/null 2>&1"
67098362 fi
67108363 done
67118364
67128365 exit $exit_status
6713 ;;
6714
6715 "")
6716 $echo "$modename: you must specify a MODE" 1>&2
6717 $echo "$generic_help" 1>&2
6718 exit $EXIT_FAILURE
6719 ;;
6720 esac
6721
6722 if test -z "$exec_cmd"; then
6723 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6724 $echo "$generic_help" 1>&2
6725 exit $EXIT_FAILURE
6726 fi
6727 fi # test -z "$show_help"
8366 }
8367
8368 { test "$mode" = uninstall || test "$mode" = clean; } &&
8369 func_mode_uninstall ${1+"$@"}
8370
8371 test -z "$mode" && {
8372 help="$generic_help"
8373 func_fatal_help "you must specify a MODE"
8374 }
8375
8376 test -z "$exec_cmd" && \
8377 func_fatal_help "invalid operation mode \`$mode'"
67288378
67298379 if test -n "$exec_cmd"; then
6730 eval exec $exec_cmd
8380 eval exec "$exec_cmd"
67318381 exit $EXIT_FAILURE
67328382 fi
67338383
6734 # We need to display help for each of the modes.
6735 case $mode in
6736 "") $echo \
6737 "Usage: $modename [OPTION]... [MODE-ARG]...
6738
6739 Provide generalized library-building support services.
6740
6741 --config show all configuration variables
6742 --debug enable verbose shell tracing
6743 -n, --dry-run display commands without modifying any files
6744 --features display basic configuration information and exit
6745 --finish same as \`--mode=finish'
6746 --help display this help message and exit
6747 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6748 --quiet same as \`--silent'
6749 --silent don't print informational messages
6750 --tag=TAG use configuration variables from tag TAG
6751 --version print version information
6752
6753 MODE must be one of the following:
6754
6755 clean remove files from the build directory
6756 compile compile a source file into a libtool object
6757 execute automatically set library path, then run a program
6758 finish complete the installation of libtool libraries
6759 install install libraries or executables
6760 link create a library or an executable
6761 uninstall remove libraries from an installed directory
6762
6763 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6764 a more detailed description of MODE.
6765
6766 Report bugs to <bug-libtool@gnu.org>."
6767 exit $EXIT_SUCCESS
6768 ;;
6769
6770 clean)
6771 $echo \
6772 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6773
6774 Remove files from the build directory.
6775
6776 RM is the name of the program to use to delete files associated with each FILE
6777 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6778 to RM.
6779
6780 If FILE is a libtool library, object or program, all the files associated
6781 with it are deleted. Otherwise, only FILE itself is deleted using RM."
6782 ;;
6783
6784 compile)
6785 $echo \
6786 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6787
6788 Compile a source file into a libtool library object.
6789
6790 This mode accepts the following additional options:
6791
6792 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6793 -prefer-pic try to building PIC objects only
6794 -prefer-non-pic try to building non-PIC objects only
6795 -static always build a \`.o' file suitable for static linking
6796
6797 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6798 from the given SOURCEFILE.
6799
6800 The output file name is determined by removing the directory component from
6801 SOURCEFILE, then substituting the C source code suffix \`.c' with the
6802 library object suffix, \`.lo'."
6803 ;;
6804
6805 execute)
6806 $echo \
6807 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6808
6809 Automatically set library path, then run a program.
6810
6811 This mode accepts the following additional options:
6812
6813 -dlopen FILE add the directory containing FILE to the library path
6814
6815 This mode sets the library path environment variable according to \`-dlopen'
6816 flags.
6817
6818 If any of the ARGS are libtool executable wrappers, then they are translated
6819 into their corresponding uninstalled binary, and any of their required library
6820 directories are added to the library path.
6821
6822 Then, COMMAND is executed, with ARGS as arguments."
6823 ;;
6824
6825 finish)
6826 $echo \
6827 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6828
6829 Complete the installation of libtool libraries.
6830
6831 Each LIBDIR is a directory that contains libtool libraries.
6832
6833 The commands that this mode executes may require superuser privileges. Use
6834 the \`--dry-run' option if you just want to see what would be executed."
6835 ;;
6836
6837 install)
6838 $echo \
6839 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6840
6841 Install executables or libraries.
6842
6843 INSTALL-COMMAND is the installation command. The first component should be
6844 either the \`install' or \`cp' program.
6845
6846 The rest of the components are interpreted as arguments to that command (only
6847 BSD-compatible install options are recognized)."
6848 ;;
6849
6850 link)
6851 $echo \
6852 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6853
6854 Link object files or libraries together to form another library, or to
6855 create an executable program.
6856
6857 LINK-COMMAND is a command using the C compiler that you would use to create
6858 a program from several object files.
6859
6860 The following components of LINK-COMMAND are treated specially:
6861
6862 -all-static do not do any dynamic linking at all
6863 -avoid-version do not add a version suffix if possible
6864 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6865 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6866 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6867 -export-symbols SYMFILE
6868 try to export only the symbols listed in SYMFILE
6869 -export-symbols-regex REGEX
6870 try to export only the symbols matching REGEX
6871 -LLIBDIR search LIBDIR for required installed libraries
6872 -lNAME OUTPUT-FILE requires the installed library libNAME
6873 -module build a library that can dlopened
6874 -no-fast-install disable the fast-install mode
6875 -no-install link a not-installable executable
6876 -no-undefined declare that a library does not refer to external symbols
6877 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6878 -objectlist FILE Use a list of object files found in FILE to specify objects
6879 -precious-files-regex REGEX
6880 don't remove output files matching REGEX
6881 -release RELEASE specify package release information
6882 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6883 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6884 -static do not do any dynamic linking of uninstalled libtool libraries
6885 -static-libtool-libs
6886 do not do any dynamic linking of libtool libraries
6887 -version-info CURRENT[:REVISION[:AGE]]
6888 specify library version info [each variable defaults to 0]
6889
6890 All other options (arguments beginning with \`-') are ignored.
6891
6892 Every other argument is treated as a filename. Files ending in \`.la' are
6893 treated as uninstalled libtool libraries, other files are standard or library
6894 object files.
6895
6896 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6897 only library objects (\`.lo' files) may be specified, and \`-rpath' is
6898 required, except when creating a convenience library.
6899
6900 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6901 using \`ar' and \`ranlib', or on Windows using \`lib'.
6902
6903 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6904 is created, otherwise an executable program is created."
6905 ;;
6906
6907 uninstall)
6908 $echo \
6909 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6910
6911 Remove libraries from an installation directory.
6912
6913 RM is the name of the program to use to delete files associated with each FILE
6914 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6915 to RM.
6916
6917 If FILE is a libtool library, all the files associated with it are deleted.
6918 Otherwise, only FILE itself is deleted using RM."
6919 ;;
6920
6921 *)
6922 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6923 $echo "$help" 1>&2
6924 exit $EXIT_FAILURE
6925 ;;
6926 esac
6927
6928 $echo
6929 $echo "Try \`$modename --help' for more information about other modes."
6930
6931 exit $?
8384 exit $exit_status
8385
69328386
69338387 # The TAGs below are defined such that we never get into a situation
69348388 # in which we disable both kinds of libraries. Given conflicting
69428396 # configuration. But we'll never go from static-only to shared-only.
69438397
69448398 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6945 disable_libs=shared
8399 build_libtool_libs=no
8400 build_old_libs=yes
69468401 # ### END LIBTOOL TAG CONFIG: disable-shared
69478402
69488403 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
6949 disable_libs=static
8404 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
69508405 # ### END LIBTOOL TAG CONFIG: disable-static
69518406
69528407 # Local Variables:
69538408 # mode:shell-script
69548409 # sh-indentation:2
69558410 # End:
8411 # vi:sw=2
8412
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1415 @SET_MAKE@
1516 VPATH = @srcdir@
1617 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
1719 pkglibdir = $(libdir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
1921 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2022 install_sh_DATA = $(install_sh) -c -m 644
2123 install_sh_PROGRAM = $(install_sh) -c
3537 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3638 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
3739 $(top_srcdir)/m4/as-compiler-flag.m4 \
38 $(top_srcdir)/configure.ac
40 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
41 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
42 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
3943 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4044 $(ACLOCAL_M4)
4145 mkinstalldirs = $(install_sh) -d
4246 CONFIG_HEADER = $(top_builddir)/config.h
4347 CONFIG_CLEAN_FILES =
48 CONFIG_CLEAN_VPATH_FILES =
49 AM_V_GEN = $(am__v_GEN_$(V))
50 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
51 am__v_GEN_0 = @echo " GEN " $@;
52 AM_V_at = $(am__v_at_$(V))
53 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
54 am__v_at_0 = @
4455 SOURCES =
4556 DIST_SOURCES =
4657 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
4758 ACLOCAL = @ACLOCAL@
4859 AMTAR = @AMTAR@
60 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
4961 AR = @AR@
5062 AUTOCONF = @AUTOCONF@
5163 AUTOHEADER = @AUTOHEADER@
5971 CFLAGS = @CFLAGS@
6072 CPP = @CPP@
6173 CPPFLAGS = @CPPFLAGS@
62 CXX = @CXX@
63 CXXCPP = @CXXCPP@
64 CXXDEPMODE = @CXXDEPMODE@
65 CXXFLAGS = @CXXFLAGS@
6674 CYGPATH_W = @CYGPATH_W@
6775 DATADIR = @DATADIR@
6876 DBUS_CFLAGS = @DBUS_CFLAGS@
7179 DEFS = @DEFS@
7280 DEPDIR = @DEPDIR@
7381 DSYMUTIL = @DSYMUTIL@
74 ECHO = @ECHO@
82 DUMPBIN = @DUMPBIN@
7583 ECHO_C = @ECHO_C@
7684 ECHO_N = @ECHO_N@
7785 ECHO_T = @ECHO_T@
7886 EGREP = @EGREP@
7987 ERROR_CFLAGS = @ERROR_CFLAGS@
8088 EXEEXT = @EXEEXT@
81 F77 = @F77@
82 FFLAGS = @FFLAGS@
89 FGREP = @FGREP@
8390 GLIB_CFLAGS = @GLIB_CFLAGS@
8491 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
8592 GLIB_LIBS = @GLIB_LIBS@
8996 INSTALL_PROGRAM = @INSTALL_PROGRAM@
9097 INSTALL_SCRIPT = @INSTALL_SCRIPT@
9198 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
99 LD = @LD@
92100 LDFLAGS = @LDFLAGS@
93101 LIBOBJS = @LIBOBJS@
94102 LIBS = @LIBS@
95103 LIBTOOL = @LIBTOOL@
104 LIPO = @LIPO@
96105 LN_S = @LN_S@
97106 LTLIBOBJS = @LTLIBOBJS@
98107 MAKEINFO = @MAKEINFO@
99108 MKDIR_P = @MKDIR_P@
109 NM = @NM@
100110 NMEDIT = @NMEDIT@
111 OBJDUMP = @OBJDUMP@
101112 OBJEXT = @OBJEXT@
102113 OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
103114 OPENSSL_LIBS = @OPENSSL_LIBS@
115 OTOOL = @OTOOL@
116 OTOOL64 = @OTOOL64@
104117 PACKAGE = @PACKAGE@
105118 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
106119 PACKAGE_NAME = @PACKAGE_NAME@
107120 PACKAGE_STRING = @PACKAGE_STRING@
108121 PACKAGE_TARNAME = @PACKAGE_TARNAME@
122 PACKAGE_URL = @PACKAGE_URL@
109123 PACKAGE_VERSION = @PACKAGE_VERSION@
110124 PATH_SEPARATOR = @PATH_SEPARATOR@
111125 PKG_CONFIG = @PKG_CONFIG@
125139 abs_top_builddir = @abs_top_builddir@
126140 abs_top_srcdir = @abs_top_srcdir@
127141 ac_ct_CC = @ac_ct_CC@
128 ac_ct_CXX = @ac_ct_CXX@
129 ac_ct_F77 = @ac_ct_F77@
142 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
130143 am__include = @am__include@
131144 am__leading_dot = @am__leading_dot@
132145 am__quote = @am__quote@
157170 libexecdir = @libexecdir@
158171 localedir = @localedir@
159172 localstatedir = @localstatedir@
173 lt_ECHO = @lt_ECHO@
160174 mandir = @mandir@
161175 mkdir_p = @mkdir_p@
162176 oldincludedir = @oldincludedir@
169183 srcdir = @srcdir@
170184 sysconfdir = @sysconfdir@
171185 target_alias = @target_alias@
186 top_build_prefix = @top_build_prefix@
172187 top_builddir = @top_builddir@
173188 top_srcdir = @top_srcdir@
174189 EXTRA_DIST = \
183198 @for dep in $?; do \
184199 case '$(am__configure_deps)' in \
185200 *$$dep*) \
186 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
187 && exit 0; \
201 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
202 && { if test -f $@; then exit 0; else break; fi; }; \
188203 exit 1;; \
189204 esac; \
190205 done; \
191 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \
192 cd $(top_srcdir) && \
193 $(AUTOMAKE) --gnu m4/Makefile
206 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \
207 $(am__cd) $(top_srcdir) && \
208 $(AUTOMAKE) --gnu m4/Makefile
194209 .PRECIOUS: Makefile
195210 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
196211 @case '$?' in \
208223 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
209224 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
210225 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
226 $(am__aclocal_m4_deps):
211227
212228 mostlyclean-libtool:
213229 -rm -f *.lo
237253 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
238254 if test -d $$d/$$file; then \
239255 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
256 if test -d "$(distdir)/$$file"; then \
257 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
258 fi; \
240259 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
241 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
260 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
261 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
242262 fi; \
243 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
263 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
244264 else \
245 test -f $(distdir)/$$file \
246 || cp -p $$d/$$file $(distdir)/$$file \
265 test -f "$(distdir)/$$file" \
266 || cp -p $$d/$$file "$(distdir)/$$file" \
247267 || exit 1; \
248268 fi; \
249269 done
271291
272292 distclean-generic:
273293 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
294 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
274295
275296 maintainer-clean-generic:
276297 @echo "This command is intended for maintainers to use"
289310
290311 html: html-am
291312
313 html-am:
314
292315 info: info-am
293316
294317 info-am:
297320
298321 install-dvi: install-dvi-am
299322
323 install-dvi-am:
324
300325 install-exec-am:
301326
302327 install-html: install-html-am
303328
329 install-html-am:
330
304331 install-info: install-info-am
305332
333 install-info-am:
334
306335 install-man:
307336
308337 install-pdf: install-pdf-am
309338
339 install-pdf-am:
340
310341 install-ps: install-ps-am
342
343 install-ps-am:
311344
312345 installcheck-am:
313346
342375 maintainer-clean-generic mostlyclean mostlyclean-generic \
343376 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
344377
378
345379 # Tell versions [3.59,3.63) of GNU make to not export all variables.
346380 # Otherwise a system limit (for SysV at least) may be exceeded.
347381 .NOEXPORT:
0 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008 Free Software Foundation, Inc.
4 # Written by Gordon Matzigkeit, 1996
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 m4_define([_LT_COPYING], [dnl
11 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12 # 2006, 2007, 2008 Free Software Foundation, Inc.
13 # Written by Gordon Matzigkeit, 1996
14 #
15 # This file is part of GNU Libtool.
16 #
17 # GNU Libtool is free software; you can redistribute it and/or
18 # modify it under the terms of the GNU General Public License as
19 # published by the Free Software Foundation; either version 2 of
20 # the License, or (at your option) any later version.
21 #
22 # As a special exception to the GNU General Public License,
23 # if you distribute this file as part of a program or library that
24 # is built using GNU Libtool, you may include this file under the
25 # same distribution terms that you use for the rest of that program.
26 #
27 # GNU Libtool is distributed in the hope that it will be useful,
28 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 # GNU General Public License for more details.
31 #
32 # You should have received a copy of the GNU General Public License
33 # along with GNU Libtool; see the file COPYING. If not, a copy
34 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35 # obtained by writing to the Free Software Foundation, Inc.,
36 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37 ])
38
39 # serial 56 LT_INIT
40
41
42 # LT_PREREQ(VERSION)
43 # ------------------
44 # Complain and exit if this libtool version is less that VERSION.
45 m4_defun([LT_PREREQ],
46 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
47 [m4_default([$3],
48 [m4_fatal([Libtool version $1 or higher is required],
49 63)])],
50 [$2])])
51
52
53 # _LT_CHECK_BUILDDIR
54 # ------------------
55 # Complain if the absolute build directory name contains unusual characters
56 m4_defun([_LT_CHECK_BUILDDIR],
57 [case `pwd` in
58 *\ * | *\ *)
59 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
60 esac
61 ])
62
63
64 # LT_INIT([OPTIONS])
65 # ------------------
66 AC_DEFUN([LT_INIT],
67 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
68 AC_BEFORE([$0], [LT_LANG])dnl
69 AC_BEFORE([$0], [LT_OUTPUT])dnl
70 AC_BEFORE([$0], [LTDL_INIT])dnl
71 m4_require([_LT_CHECK_BUILDDIR])dnl
72
73 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
74 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
75 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
76 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
77 dnl unless we require an AC_DEFUNed macro:
78 AC_REQUIRE([LTOPTIONS_VERSION])dnl
79 AC_REQUIRE([LTSUGAR_VERSION])dnl
80 AC_REQUIRE([LTVERSION_VERSION])dnl
81 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
82 m4_require([_LT_PROG_LTMAIN])dnl
83
84 dnl Parse OPTIONS
85 _LT_SET_OPTIONS([$0], [$1])
86
87 # This can be used to rebuild libtool when needed
88 LIBTOOL_DEPS="$ltmain"
89
90 # Always use our own libtool.
91 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
92 AC_SUBST(LIBTOOL)dnl
93
94 _LT_SETUP
95
96 # Only expand once:
97 m4_define([LT_INIT])
98 ])# LT_INIT
99
100 # Old names:
101 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
102 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
103 dnl aclocal-1.4 backwards compatibility:
104 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
105 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
106
107
108 # _LT_CC_BASENAME(CC)
109 # -------------------
110 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
111 m4_defun([_LT_CC_BASENAME],
112 [for cc_temp in $1""; do
113 case $cc_temp in
114 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
115 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
116 \-*) ;;
117 *) break;;
118 esac
119 done
120 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
121 ])
122
123
124 # _LT_FILEUTILS_DEFAULTS
125 # ----------------------
126 # It is okay to use these file commands and assume they have been set
127 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
128 m4_defun([_LT_FILEUTILS_DEFAULTS],
129 [: ${CP="cp -f"}
130 : ${MV="mv -f"}
131 : ${RM="rm -f"}
132 ])# _LT_FILEUTILS_DEFAULTS
133
134
135 # _LT_SETUP
136 # ---------
137 m4_defun([_LT_SETUP],
138 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
139 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
140 _LT_DECL([], [host_alias], [0], [The host system])dnl
141 _LT_DECL([], [host], [0])dnl
142 _LT_DECL([], [host_os], [0])dnl
143 dnl
144 _LT_DECL([], [build_alias], [0], [The build system])dnl
145 _LT_DECL([], [build], [0])dnl
146 _LT_DECL([], [build_os], [0])dnl
147 dnl
148 AC_REQUIRE([AC_PROG_CC])dnl
149 AC_REQUIRE([LT_PATH_LD])dnl
150 AC_REQUIRE([LT_PATH_NM])dnl
151 dnl
152 AC_REQUIRE([AC_PROG_LN_S])dnl
153 test -z "$LN_S" && LN_S="ln -s"
154 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
155 dnl
156 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
157 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
158 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
159 dnl
160 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
161 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
162 m4_require([_LT_CMD_RELOAD])dnl
163 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
164 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
165 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
166
167 _LT_CONFIG_LIBTOOL_INIT([
168 # See if we are running on zsh, and set the options which allow our
169 # commands through without removal of \ escapes INIT.
170 if test -n "\${ZSH_VERSION+set}" ; then
171 setopt NO_GLOB_SUBST
172 fi
173 ])
174 if test -n "${ZSH_VERSION+set}" ; then
175 setopt NO_GLOB_SUBST
176 fi
177
178 _LT_CHECK_OBJDIR
179
180 m4_require([_LT_TAG_COMPILER])dnl
181 _LT_PROG_ECHO_BACKSLASH
182
183 case $host_os in
184 aix3*)
185 # AIX sometimes has problems with the GCC collect2 program. For some
186 # reason, if we set the COLLECT_NAMES environment variable, the problems
187 # vanish in a puff of smoke.
188 if test "X${COLLECT_NAMES+set}" != Xset; then
189 COLLECT_NAMES=
190 export COLLECT_NAMES
191 fi
192 ;;
193 esac
194
195 # Sed substitution that helps us do robust quoting. It backslashifies
196 # metacharacters that are still active within double-quoted strings.
197 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
198
199 # Same as above, but do not quote variable references.
200 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
201
202 # Sed substitution to delay expansion of an escaped shell variable in a
203 # double_quote_subst'ed string.
204 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
205
206 # Sed substitution to delay expansion of an escaped single quote.
207 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
208
209 # Sed substitution to avoid accidental globbing in evaled expressions
210 no_glob_subst='s/\*/\\\*/g'
211
212 # Global variables:
213 ofile=libtool
214 can_build_shared=yes
215
216 # All known linkers require a `.a' archive for static linking (except MSVC,
217 # which needs '.lib').
218 libext=a
219
220 with_gnu_ld="$lt_cv_prog_gnu_ld"
221
222 old_CC="$CC"
223 old_CFLAGS="$CFLAGS"
224
225 # Set sane defaults for various variables
226 test -z "$CC" && CC=cc
227 test -z "$LTCC" && LTCC=$CC
228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
229 test -z "$LD" && LD=ld
230 test -z "$ac_objext" && ac_objext=o
231
232 _LT_CC_BASENAME([$compiler])
233
234 # Only perform the check for file, if the check method requires it
235 test -z "$MAGIC_CMD" && MAGIC_CMD=file
236 case $deplibs_check_method in
237 file_magic*)
238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
239 _LT_PATH_MAGIC
240 fi
241 ;;
242 esac
243
244 # Use C for the default configuration in the libtool script
245 LT_SUPPORTED_TAG([CC])
246 _LT_LANG_C_CONFIG
247 _LT_LANG_DEFAULT_CONFIG
248 _LT_CONFIG_COMMANDS
249 ])# _LT_SETUP
250
251
252 # _LT_PROG_LTMAIN
253 # ---------------
254 # Note that this code is called both from `configure', and `config.status'
255 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
256 # `config.status' has no value for ac_aux_dir unless we are using Automake,
257 # so we pass a copy along to make sure it has a sensible value anyway.
258 m4_defun([_LT_PROG_LTMAIN],
259 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
260 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
261 ltmain="$ac_aux_dir/ltmain.sh"
262 ])# _LT_PROG_LTMAIN
263
264
265 ## ------------------------------------- ##
266 ## Accumulate code for creating libtool. ##
267 ## ------------------------------------- ##
268
269 # So that we can recreate a full libtool script including additional
270 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
271 # in macros and then make a single call at the end using the `libtool'
272 # label.
273
274
275 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
276 # ----------------------------------------
277 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
278 m4_define([_LT_CONFIG_LIBTOOL_INIT],
279 [m4_ifval([$1],
280 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
281 [$1
282 ])])])
283
284 # Initialize.
285 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
286
287
288 # _LT_CONFIG_LIBTOOL([COMMANDS])
289 # ------------------------------
290 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
291 m4_define([_LT_CONFIG_LIBTOOL],
292 [m4_ifval([$1],
293 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
294 [$1
295 ])])])
296
297 # Initialize.
298 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
299
300
301 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
302 # -----------------------------------------------------
303 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
304 [_LT_CONFIG_LIBTOOL([$1])
305 _LT_CONFIG_LIBTOOL_INIT([$2])
306 ])
307
308
309 # _LT_FORMAT_COMMENT([COMMENT])
310 # -----------------------------
311 # Add leading comment marks to the start of each line, and a trailing
312 # full-stop to the whole comment if one is not present already.
313 m4_define([_LT_FORMAT_COMMENT],
314 [m4_ifval([$1], [
315 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
316 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
317 )])
318
319
320
321 ## ------------------------ ##
322 ## FIXME: Eliminate VARNAME ##
323 ## ------------------------ ##
324
325
326 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
327 # -------------------------------------------------------------------
328 # CONFIGNAME is the name given to the value in the libtool script.
329 # VARNAME is the (base) name used in the configure script.
330 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
331 # VARNAME. Any other value will be used directly.
332 m4_define([_LT_DECL],
333 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
334 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
335 [m4_ifval([$1], [$1], [$2])])
336 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
337 m4_ifval([$4],
338 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
339 lt_dict_add_subkey([lt_decl_dict], [$2],
340 [tagged?], [m4_ifval([$5], [yes], [no])])])
341 ])
342
343
344 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
345 # --------------------------------------------------------
346 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
347
348
349 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
350 # ------------------------------------------------
351 m4_define([lt_decl_tag_varnames],
352 [_lt_decl_filter([tagged?], [yes], $@)])
353
354
355 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
356 # ---------------------------------------------------------
357 m4_define([_lt_decl_filter],
358 [m4_case([$#],
359 [0], [m4_fatal([$0: too few arguments: $#])],
360 [1], [m4_fatal([$0: too few arguments: $#: $1])],
361 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
362 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
363 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
364 ])
365
366
367 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
368 # --------------------------------------------------
369 m4_define([lt_decl_quote_varnames],
370 [_lt_decl_filter([value], [1], $@)])
371
372
373 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
374 # ---------------------------------------------------
375 m4_define([lt_decl_dquote_varnames],
376 [_lt_decl_filter([value], [2], $@)])
377
378
379 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
380 # ---------------------------------------------------
381 m4_define([lt_decl_varnames_tagged],
382 [m4_assert([$# <= 2])dnl
383 _$0(m4_quote(m4_default([$1], [[, ]])),
384 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
385 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
386 m4_define([_lt_decl_varnames_tagged],
387 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
388
389
390 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
391 # ------------------------------------------------
392 m4_define([lt_decl_all_varnames],
393 [_$0(m4_quote(m4_default([$1], [[, ]])),
394 m4_if([$2], [],
395 m4_quote(lt_decl_varnames),
396 m4_quote(m4_shift($@))))[]dnl
397 ])
398 m4_define([_lt_decl_all_varnames],
399 [lt_join($@, lt_decl_varnames_tagged([$1],
400 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
401 ])
402
403
404 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
405 # ------------------------------------
406 # Quote a variable value, and forward it to `config.status' so that its
407 # declaration there will have the same value as in `configure'. VARNAME
408 # must have a single quote delimited value for this to work.
409 m4_define([_LT_CONFIG_STATUS_DECLARE],
410 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
411
412
413 # _LT_CONFIG_STATUS_DECLARATIONS
414 # ------------------------------
415 # We delimit libtool config variables with single quotes, so when
416 # we write them to config.status, we have to be sure to quote all
417 # embedded single quotes properly. In configure, this macro expands
418 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
419 #
420 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
421 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
422 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
423 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
424
425
426 # _LT_LIBTOOL_TAGS
427 # ----------------
428 # Output comment and list of tags supported by the script
429 m4_defun([_LT_LIBTOOL_TAGS],
430 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
431 available_tags="_LT_TAGS"dnl
432 ])
433
434
435 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
436 # -----------------------------------
437 # Extract the dictionary values for VARNAME (optionally with TAG) and
438 # expand to a commented shell variable setting:
439 #
440 # # Some comment about what VAR is for.
441 # visible_name=$lt_internal_name
442 m4_define([_LT_LIBTOOL_DECLARE],
443 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
444 [description])))[]dnl
445 m4_pushdef([_libtool_name],
446 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
447 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
448 [0], [_libtool_name=[$]$1],
449 [1], [_libtool_name=$lt_[]$1],
450 [2], [_libtool_name=$lt_[]$1],
451 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
452 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
453 ])
454
455
456 # _LT_LIBTOOL_CONFIG_VARS
457 # -----------------------
458 # Produce commented declarations of non-tagged libtool config variables
459 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
460 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
461 # section) are produced by _LT_LIBTOOL_TAG_VARS.
462 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
463 [m4_foreach([_lt_var],
464 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
465 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
466
467
468 # _LT_LIBTOOL_TAG_VARS(TAG)
469 # -------------------------
470 m4_define([_LT_LIBTOOL_TAG_VARS],
471 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
472 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
473
474
475 # _LT_TAGVAR(VARNAME, [TAGNAME])
476 # ------------------------------
477 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
478
479
480 # _LT_CONFIG_COMMANDS
481 # -------------------
482 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
483 # variables for single and double quote escaping we saved from calls
484 # to _LT_DECL, we can put quote escaped variables declarations
485 # into `config.status', and then the shell code to quote escape them in
486 # for loops in `config.status'. Finally, any additional code accumulated
487 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
488 m4_defun([_LT_CONFIG_COMMANDS],
489 [AC_PROVIDE_IFELSE([LT_OUTPUT],
490 dnl If the libtool generation code has been placed in $CONFIG_LT,
491 dnl instead of duplicating it all over again into config.status,
492 dnl then we will have config.status run $CONFIG_LT later, so it
493 dnl needs to know what name is stored there:
494 [AC_CONFIG_COMMANDS([libtool],
495 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
496 dnl If the libtool generation code is destined for config.status,
497 dnl expand the accumulated commands and init code now:
498 [AC_CONFIG_COMMANDS([libtool],
499 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
500 ])#_LT_CONFIG_COMMANDS
501
502
503 # Initialize.
504 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
505 [
506
507 # The HP-UX ksh and POSIX shell print the target directory to stdout
508 # if CDPATH is set.
509 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
510
511 sed_quote_subst='$sed_quote_subst'
512 double_quote_subst='$double_quote_subst'
513 delay_variable_subst='$delay_variable_subst'
514 _LT_CONFIG_STATUS_DECLARATIONS
515 LTCC='$LTCC'
516 LTCFLAGS='$LTCFLAGS'
517 compiler='$compiler_DEFAULT'
518
519 # Quote evaled strings.
520 for var in lt_decl_all_varnames([[ \
521 ]], lt_decl_quote_varnames); do
522 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
523 *[[\\\\\\\`\\"\\\$]]*)
524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
525 ;;
526 *)
527 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
528 ;;
529 esac
530 done
531
532 # Double-quote double-evaled strings.
533 for var in lt_decl_all_varnames([[ \
534 ]], lt_decl_dquote_varnames); do
535 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
536 *[[\\\\\\\`\\"\\\$]]*)
537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
538 ;;
539 *)
540 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
541 ;;
542 esac
543 done
544
545 # Fix-up fallback echo if it was mangled by the above quoting rules.
546 case \$lt_ECHO in
547 *'\\\[$]0 --fallback-echo"')dnl "
548 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
549 ;;
550 esac
551
552 _LT_OUTPUT_LIBTOOL_INIT
553 ])
554
555
556 # LT_OUTPUT
557 # ---------
558 # This macro allows early generation of the libtool script (before
559 # AC_OUTPUT is called), incase it is used in configure for compilation
560 # tests.
561 AC_DEFUN([LT_OUTPUT],
562 [: ${CONFIG_LT=./config.lt}
563 AC_MSG_NOTICE([creating $CONFIG_LT])
564 cat >"$CONFIG_LT" <<_LTEOF
565 #! $SHELL
566 # Generated by $as_me.
567 # Run this file to recreate a libtool stub with the current configuration.
568
569 lt_cl_silent=false
570 SHELL=\${CONFIG_SHELL-$SHELL}
571 _LTEOF
572
573 cat >>"$CONFIG_LT" <<\_LTEOF
574 AS_SHELL_SANITIZE
575 _AS_PREPARE
576
577 exec AS_MESSAGE_FD>&1
578 exec AS_MESSAGE_LOG_FD>>config.log
579 {
580 echo
581 AS_BOX([Running $as_me.])
582 } >&AS_MESSAGE_LOG_FD
583
584 lt_cl_help="\
585 \`$as_me' creates a local libtool stub from the current configuration,
586 for use in further configure time tests before the real libtool is
587 generated.
588
589 Usage: $[0] [[OPTIONS]]
590
591 -h, --help print this help, then exit
592 -V, --version print version number, then exit
593 -q, --quiet do not print progress messages
594 -d, --debug don't remove temporary files
595
596 Report bugs to <bug-libtool@gnu.org>."
597
598 lt_cl_version="\
599 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
600 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
601 configured by $[0], generated by m4_PACKAGE_STRING.
602
603 Copyright (C) 2008 Free Software Foundation, Inc.
604 This config.lt script is free software; the Free Software Foundation
605 gives unlimited permision to copy, distribute and modify it."
606
607 while test $[#] != 0
608 do
609 case $[1] in
610 --version | --v* | -V )
611 echo "$lt_cl_version"; exit 0 ;;
612 --help | --h* | -h )
613 echo "$lt_cl_help"; exit 0 ;;
614 --debug | --d* | -d )
615 debug=: ;;
616 --quiet | --q* | --silent | --s* | -q )
617 lt_cl_silent=: ;;
618
619 -*) AC_MSG_ERROR([unrecognized option: $[1]
620 Try \`$[0] --help' for more information.]) ;;
621
622 *) AC_MSG_ERROR([unrecognized argument: $[1]
623 Try \`$[0] --help' for more information.]) ;;
624 esac
625 shift
626 done
627
628 if $lt_cl_silent; then
629 exec AS_MESSAGE_FD>/dev/null
630 fi
631 _LTEOF
632
633 cat >>"$CONFIG_LT" <<_LTEOF
634 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
635 _LTEOF
636
637 cat >>"$CONFIG_LT" <<\_LTEOF
638 AC_MSG_NOTICE([creating $ofile])
639 _LT_OUTPUT_LIBTOOL_COMMANDS
640 AS_EXIT(0)
641 _LTEOF
642 chmod +x "$CONFIG_LT"
643
644 # configure is writing to config.log, but config.lt does its own redirection,
645 # appending to config.log, which fails on DOS, as config.log is still kept
646 # open by configure. Here we exec the FD to /dev/null, effectively closing
647 # config.log, so it can be properly (re)opened and appended to by config.lt.
648 if test "$no_create" != yes; then
649 lt_cl_success=:
650 test "$silent" = yes &&
651 lt_config_lt_args="$lt_config_lt_args --quiet"
652 exec AS_MESSAGE_LOG_FD>/dev/null
653 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
654 exec AS_MESSAGE_LOG_FD>>config.log
655 $lt_cl_success || AS_EXIT(1)
656 fi
657 ])# LT_OUTPUT
658
659
660 # _LT_CONFIG(TAG)
661 # ---------------
662 # If TAG is the built-in tag, create an initial libtool script with a
663 # default configuration from the untagged config vars. Otherwise add code
664 # to config.status for appending the configuration named by TAG from the
665 # matching tagged config vars.
666 m4_defun([_LT_CONFIG],
667 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
668 _LT_CONFIG_SAVE_COMMANDS([
669 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
670 m4_if(_LT_TAG, [C], [
671 # See if we are running on zsh, and set the options which allow our
672 # commands through without removal of \ escapes.
673 if test -n "${ZSH_VERSION+set}" ; then
674 setopt NO_GLOB_SUBST
675 fi
676
677 cfgfile="${ofile}T"
678 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
679 $RM "$cfgfile"
680
681 cat <<_LT_EOF >> "$cfgfile"
682 #! $SHELL
683
684 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
685 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
686 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
687 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
688 #
689 _LT_COPYING
690 _LT_LIBTOOL_TAGS
691
692 # ### BEGIN LIBTOOL CONFIG
693 _LT_LIBTOOL_CONFIG_VARS
694 _LT_LIBTOOL_TAG_VARS
695 # ### END LIBTOOL CONFIG
696
697 _LT_EOF
698
699 case $host_os in
700 aix3*)
701 cat <<\_LT_EOF >> "$cfgfile"
702 # AIX sometimes has problems with the GCC collect2 program. For some
703 # reason, if we set the COLLECT_NAMES environment variable, the problems
704 # vanish in a puff of smoke.
705 if test "X${COLLECT_NAMES+set}" != Xset; then
706 COLLECT_NAMES=
707 export COLLECT_NAMES
708 fi
709 _LT_EOF
710 ;;
711 esac
712
713 _LT_PROG_LTMAIN
714
715 # We use sed instead of cat because bash on DJGPP gets confused if
716 # if finds mixed CR/LF and LF-only lines. Since sed operates in
717 # text mode, it properly converts lines to CR/LF. This bash problem
718 # is reportedly fixed, but why not run on old versions too?
719 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
720 || (rm -f "$cfgfile"; exit 1)
721
722 _LT_PROG_XSI_SHELLFNS
723
724 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
725 || (rm -f "$cfgfile"; exit 1)
726
727 mv -f "$cfgfile" "$ofile" ||
728 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
729 chmod +x "$ofile"
730 ],
731 [cat <<_LT_EOF >> "$ofile"
732
733 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
734 dnl in a comment (ie after a #).
735 # ### BEGIN LIBTOOL TAG CONFIG: $1
736 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
737 # ### END LIBTOOL TAG CONFIG: $1
738 _LT_EOF
739 ])dnl /m4_if
740 ],
741 [m4_if([$1], [], [
742 PACKAGE='$PACKAGE'
743 VERSION='$VERSION'
744 TIMESTAMP='$TIMESTAMP'
745 RM='$RM'
746 ofile='$ofile'], [])
747 ])dnl /_LT_CONFIG_SAVE_COMMANDS
748 ])# _LT_CONFIG
749
750
751 # LT_SUPPORTED_TAG(TAG)
752 # ---------------------
753 # Trace this macro to discover what tags are supported by the libtool
754 # --tag option, using:
755 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
756 AC_DEFUN([LT_SUPPORTED_TAG], [])
757
758
759 # C support is built-in for now
760 m4_define([_LT_LANG_C_enabled], [])
761 m4_define([_LT_TAGS], [])
762
763
764 # LT_LANG(LANG)
765 # -------------
766 # Enable libtool support for the given language if not already enabled.
767 AC_DEFUN([LT_LANG],
768 [AC_BEFORE([$0], [LT_OUTPUT])dnl
769 m4_case([$1],
770 [C], [_LT_LANG(C)],
771 [C++], [_LT_LANG(CXX)],
772 [Java], [_LT_LANG(GCJ)],
773 [Fortran 77], [_LT_LANG(F77)],
774 [Fortran], [_LT_LANG(FC)],
775 [Windows Resource], [_LT_LANG(RC)],
776 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
777 [_LT_LANG($1)],
778 [m4_fatal([$0: unsupported language: "$1"])])])dnl
779 ])# LT_LANG
780
781
782 # _LT_LANG(LANGNAME)
783 # ------------------
784 m4_defun([_LT_LANG],
785 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
786 [LT_SUPPORTED_TAG([$1])dnl
787 m4_append([_LT_TAGS], [$1 ])dnl
788 m4_define([_LT_LANG_]$1[_enabled], [])dnl
789 _LT_LANG_$1_CONFIG($1)])dnl
790 ])# _LT_LANG
791
792
793 # _LT_LANG_DEFAULT_CONFIG
794 # -----------------------
795 m4_defun([_LT_LANG_DEFAULT_CONFIG],
796 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
797 [LT_LANG(CXX)],
798 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
799
800 AC_PROVIDE_IFELSE([AC_PROG_F77],
801 [LT_LANG(F77)],
802 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
803
804 AC_PROVIDE_IFELSE([AC_PROG_FC],
805 [LT_LANG(FC)],
806 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
807
808 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
809 dnl pulling things in needlessly.
810 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
811 [LT_LANG(GCJ)],
812 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
813 [LT_LANG(GCJ)],
814 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
815 [LT_LANG(GCJ)],
816 [m4_ifdef([AC_PROG_GCJ],
817 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
818 m4_ifdef([A][M_PROG_GCJ],
819 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
820 m4_ifdef([LT_PROG_GCJ],
821 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
822
823 AC_PROVIDE_IFELSE([LT_PROG_RC],
824 [LT_LANG(RC)],
825 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
826 ])# _LT_LANG_DEFAULT_CONFIG
827
828 # Obsolete macros:
829 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
830 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
831 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
832 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
833 dnl aclocal-1.4 backwards compatibility:
834 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
835 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
836 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
837 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
838
839
840 # _LT_TAG_COMPILER
841 # ----------------
842 m4_defun([_LT_TAG_COMPILER],
843 [AC_REQUIRE([AC_PROG_CC])dnl
844
845 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
846 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
847 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
848 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
849
850 # If no C compiler was specified, use CC.
851 LTCC=${LTCC-"$CC"}
852
853 # If no C compiler flags were specified, use CFLAGS.
854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
855
856 # Allow CC to be a program name with arguments.
857 compiler=$CC
858 ])# _LT_TAG_COMPILER
859
860
861 # _LT_COMPILER_BOILERPLATE
862 # ------------------------
863 # Check for compiler boilerplate output or warnings with
864 # the simple compiler test code.
865 m4_defun([_LT_COMPILER_BOILERPLATE],
866 [m4_require([_LT_DECL_SED])dnl
867 ac_outfile=conftest.$ac_objext
868 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
870 _lt_compiler_boilerplate=`cat conftest.err`
871 $RM conftest*
872 ])# _LT_COMPILER_BOILERPLATE
873
874
875 # _LT_LINKER_BOILERPLATE
876 # ----------------------
877 # Check for linker boilerplate output or warnings with
878 # the simple link test code.
879 m4_defun([_LT_LINKER_BOILERPLATE],
880 [m4_require([_LT_DECL_SED])dnl
881 ac_outfile=conftest.$ac_objext
882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
884 _lt_linker_boilerplate=`cat conftest.err`
885 $RM -r conftest*
886 ])# _LT_LINKER_BOILERPLATE
887
888 # _LT_REQUIRED_DARWIN_CHECKS
889 # -------------------------
890 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
891 case $host_os in
892 rhapsody* | darwin*)
893 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
894 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
895 AC_CHECK_TOOL([LIPO], [lipo], [:])
896 AC_CHECK_TOOL([OTOOL], [otool], [:])
897 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
898 _LT_DECL([], [DSYMUTIL], [1],
899 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
900 _LT_DECL([], [NMEDIT], [1],
901 [Tool to change global to local symbols on Mac OS X])
902 _LT_DECL([], [LIPO], [1],
903 [Tool to manipulate fat objects and archives on Mac OS X])
904 _LT_DECL([], [OTOOL], [1],
905 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
906 _LT_DECL([], [OTOOL64], [1],
907 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
908
909 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
910 [lt_cv_apple_cc_single_mod=no
911 if test -z "${LT_MULTI_MODULE}"; then
912 # By default we will add the -single_module flag. You can override
913 # by either setting the environment variable LT_MULTI_MODULE
914 # non-empty at configure time, or by adding -multi_module to the
915 # link flags.
916 rm -rf libconftest.dylib*
917 echo "int foo(void){return 1;}" > conftest.c
918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
919 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
922 _lt_result=$?
923 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
924 lt_cv_apple_cc_single_mod=yes
925 else
926 cat conftest.err >&AS_MESSAGE_LOG_FD
927 fi
928 rm -rf libconftest.dylib*
929 rm -f conftest.*
930 fi])
931 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
932 [lt_cv_ld_exported_symbols_list],
933 [lt_cv_ld_exported_symbols_list=no
934 save_LDFLAGS=$LDFLAGS
935 echo "_main" > conftest.sym
936 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
937 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
938 [lt_cv_ld_exported_symbols_list=yes],
939 [lt_cv_ld_exported_symbols_list=no])
940 LDFLAGS="$save_LDFLAGS"
941 ])
942 case $host_os in
943 rhapsody* | darwin1.[[012]])
944 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
945 darwin1.*)
946 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
947 darwin*) # darwin 5.x on
948 # if running on 10.5 or later, the deployment target defaults
949 # to the OS version, if on x86, and 10.4, the deployment
950 # target defaults to 10.4. Don't you love it?
951 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
952 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
954 10.[[012]]*)
955 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
956 10.*)
957 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
958 esac
959 ;;
960 esac
961 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
962 _lt_dar_single_mod='$single_module'
963 fi
964 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
965 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
966 else
967 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
968 fi
969 if test "$DSYMUTIL" != ":"; then
970 _lt_dsymutil='~$DSYMUTIL $lib || :'
971 else
972 _lt_dsymutil=
973 fi
974 ;;
975 esac
976 ])
977
978
979 # _LT_DARWIN_LINKER_FEATURES
980 # --------------------------
981 # Checks for linker and compiler features on darwin
982 m4_defun([_LT_DARWIN_LINKER_FEATURES],
983 [
984 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
985 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
986 _LT_TAGVAR(hardcode_direct, $1)=no
987 _LT_TAGVAR(hardcode_automatic, $1)=yes
988 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
989 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
990 _LT_TAGVAR(link_all_deplibs, $1)=yes
991 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
992 case $cc_basename in
993 ifort*) _lt_dar_can_shared=yes ;;
994 *) _lt_dar_can_shared=$GCC ;;
995 esac
996 if test "$_lt_dar_can_shared" = "yes"; then
997 output_verbose_link_cmd=echo
998 _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}"
999 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1000 _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}"
1001 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1002 m4_if([$1], [CXX],
1003 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1004 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1005 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1006 fi
1007 ],[])
1008 else
1009 _LT_TAGVAR(ld_shlibs, $1)=no
1010 fi
1011 ])
1012
1013 # _LT_SYS_MODULE_PATH_AIX
1014 # -----------------------
1015 # Links a minimal program and checks the executable
1016 # for the system default hardcoded library path. In most cases,
1017 # this is /usr/lib:/lib, but when the MPI compilers are used
1018 # the location of the communication and MPI libs are included too.
1019 # If we don't find anything, use the default library path according
1020 # to the aix ld manual.
1021 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1022 [m4_require([_LT_DECL_SED])dnl
1023 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1024 lt_aix_libpath_sed='
1025 /Import File Strings/,/^$/ {
1026 /^0/ {
1027 s/^0 *\(.*\)$/\1/
1028 p
1029 }
1030 }'
1031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1032 # Check for a 64-bit object if we didn't find anything.
1033 if test -z "$aix_libpath"; then
1034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1035 fi],[])
1036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1037 ])# _LT_SYS_MODULE_PATH_AIX
1038
1039
1040 # _LT_SHELL_INIT(ARG)
1041 # -------------------
1042 m4_define([_LT_SHELL_INIT],
1043 [ifdef([AC_DIVERSION_NOTICE],
1044 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1045 [AC_DIVERT_PUSH(NOTICE)])
1046 $1
1047 AC_DIVERT_POP
1048 ])# _LT_SHELL_INIT
1049
1050
1051 # _LT_PROG_ECHO_BACKSLASH
1052 # -----------------------
1053 # Add some code to the start of the generated configure script which
1054 # will find an echo command which doesn't interpret backslashes.
1055 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1056 [_LT_SHELL_INIT([
1057 # Check that we are running under the correct shell.
1058 SHELL=${CONFIG_SHELL-/bin/sh}
1059
1060 case X$lt_ECHO in
1061 X*--fallback-echo)
1062 # Remove one level of quotation (which was required for Make).
1063 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1064 ;;
1065 esac
1066
1067 ECHO=${lt_ECHO-echo}
1068 if test "X[$]1" = X--no-reexec; then
1069 # Discard the --no-reexec flag, and continue.
1070 shift
1071 elif test "X[$]1" = X--fallback-echo; then
1072 # Avoid inline document here, it may be left over
1073 :
1074 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1075 # Yippee, $ECHO works!
1076 :
1077 else
1078 # Restart under the correct shell.
1079 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1080 fi
1081
1082 if test "X[$]1" = X--fallback-echo; then
1083 # used as fallback echo
1084 shift
1085 cat <<_LT_EOF
1086 [$]*
1087 _LT_EOF
1088 exit 0
1089 fi
1090
1091 # The HP-UX ksh and POSIX shell print the target directory to stdout
1092 # if CDPATH is set.
1093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1094
1095 if test -z "$lt_ECHO"; then
1096 if test "X${echo_test_string+set}" != Xset; then
1097 # find a string as large as possible, as long as the shell can cope with it
1098 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1099 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1100 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1101 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1102 then
1103 break
1104 fi
1105 done
1106 fi
1107
1108 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1109 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1110 test "X$echo_testing_string" = "X$echo_test_string"; then
1111 :
1112 else
1113 # The Solaris, AIX, and Digital Unix default echo programs unquote
1114 # backslashes. This makes it impossible to quote backslashes using
1115 # echo "$something" | sed 's/\\/\\\\/g'
1116 #
1117 # So, first we look for a working echo in the user's PATH.
1118
1119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1120 for dir in $PATH /usr/ucb; do
1121 IFS="$lt_save_ifs"
1122 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1123 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 ECHO="$dir/echo"
1127 break
1128 fi
1129 done
1130 IFS="$lt_save_ifs"
1131
1132 if test "X$ECHO" = Xecho; then
1133 # We didn't find a better echo, so look for alternatives.
1134 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1135 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1136 test "X$echo_testing_string" = "X$echo_test_string"; then
1137 # This shell has a builtin print -r that does the trick.
1138 ECHO='print -r'
1139 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1140 test "X$CONFIG_SHELL" != X/bin/ksh; then
1141 # If we have ksh, try running configure again with it.
1142 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1143 export ORIGINAL_CONFIG_SHELL
1144 CONFIG_SHELL=/bin/ksh
1145 export CONFIG_SHELL
1146 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1147 else
1148 # Try using printf.
1149 ECHO='printf %s\n'
1150 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1151 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1152 test "X$echo_testing_string" = "X$echo_test_string"; then
1153 # Cool, printf works
1154 :
1155 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1156 test "X$echo_testing_string" = 'X\t' &&
1157 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1158 test "X$echo_testing_string" = "X$echo_test_string"; then
1159 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1160 export CONFIG_SHELL
1161 SHELL="$CONFIG_SHELL"
1162 export SHELL
1163 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1164 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1165 test "X$echo_testing_string" = 'X\t' &&
1166 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1167 test "X$echo_testing_string" = "X$echo_test_string"; then
1168 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1169 else
1170 # maybe with a smaller string...
1171 prev=:
1172
1173 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1174 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1175 then
1176 break
1177 fi
1178 prev="$cmd"
1179 done
1180
1181 if test "$prev" != 'sed 50q "[$]0"'; then
1182 echo_test_string=`eval $prev`
1183 export echo_test_string
1184 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1185 else
1186 # Oops. We lost completely, so just stick with echo.
1187 ECHO=echo
1188 fi
1189 fi
1190 fi
1191 fi
1192 fi
1193 fi
1194
1195 # Copy echo and quote the copy suitably for passing to libtool from
1196 # the Makefile, instead of quoting the original, which is used later.
1197 lt_ECHO=$ECHO
1198 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1199 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1200 fi
1201
1202 AC_SUBST(lt_ECHO)
1203 ])
1204 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1205 _LT_DECL([], [ECHO], [1],
1206 [An echo program that does not interpret backslashes])
1207 ])# _LT_PROG_ECHO_BACKSLASH
1208
1209
1210 # _LT_ENABLE_LOCK
1211 # ---------------
1212 m4_defun([_LT_ENABLE_LOCK],
1213 [AC_ARG_ENABLE([libtool-lock],
1214 [AS_HELP_STRING([--disable-libtool-lock],
1215 [avoid locking (might break parallel builds)])])
1216 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1217
1218 # Some flags need to be propagated to the compiler or linker for good
1219 # libtool support.
1220 case $host in
1221 ia64-*-hpux*)
1222 # Find out which ABI we are using.
1223 echo 'int i;' > conftest.$ac_ext
1224 if AC_TRY_EVAL(ac_compile); then
1225 case `/usr/bin/file conftest.$ac_objext` in
1226 *ELF-32*)
1227 HPUX_IA64_MODE="32"
1228 ;;
1229 *ELF-64*)
1230 HPUX_IA64_MODE="64"
1231 ;;
1232 esac
1233 fi
1234 rm -rf conftest*
1235 ;;
1236 *-*-irix6*)
1237 # Find out which ABI we are using.
1238 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1239 if AC_TRY_EVAL(ac_compile); then
1240 if test "$lt_cv_prog_gnu_ld" = yes; then
1241 case `/usr/bin/file conftest.$ac_objext` in
1242 *32-bit*)
1243 LD="${LD-ld} -melf32bsmip"
1244 ;;
1245 *N32*)
1246 LD="${LD-ld} -melf32bmipn32"
1247 ;;
1248 *64-bit*)
1249 LD="${LD-ld} -melf64bmip"
1250 ;;
1251 esac
1252 else
1253 case `/usr/bin/file conftest.$ac_objext` in
1254 *32-bit*)
1255 LD="${LD-ld} -32"
1256 ;;
1257 *N32*)
1258 LD="${LD-ld} -n32"
1259 ;;
1260 *64-bit*)
1261 LD="${LD-ld} -64"
1262 ;;
1263 esac
1264 fi
1265 fi
1266 rm -rf conftest*
1267 ;;
1268
1269 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1270 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1271 # Find out which ABI we are using.
1272 echo 'int i;' > conftest.$ac_ext
1273 if AC_TRY_EVAL(ac_compile); then
1274 case `/usr/bin/file conftest.o` in
1275 *32-bit*)
1276 case $host in
1277 x86_64-*kfreebsd*-gnu)
1278 LD="${LD-ld} -m elf_i386_fbsd"
1279 ;;
1280 x86_64-*linux*)
1281 LD="${LD-ld} -m elf_i386"
1282 ;;
1283 ppc64-*linux*|powerpc64-*linux*)
1284 LD="${LD-ld} -m elf32ppclinux"
1285 ;;
1286 s390x-*linux*)
1287 LD="${LD-ld} -m elf_s390"
1288 ;;
1289 sparc64-*linux*)
1290 LD="${LD-ld} -m elf32_sparc"
1291 ;;
1292 esac
1293 ;;
1294 *64-bit*)
1295 case $host in
1296 x86_64-*kfreebsd*-gnu)
1297 LD="${LD-ld} -m elf_x86_64_fbsd"
1298 ;;
1299 x86_64-*linux*)
1300 LD="${LD-ld} -m elf_x86_64"
1301 ;;
1302 ppc*-*linux*|powerpc*-*linux*)
1303 LD="${LD-ld} -m elf64ppc"
1304 ;;
1305 s390*-*linux*|s390*-*tpf*)
1306 LD="${LD-ld} -m elf64_s390"
1307 ;;
1308 sparc*-*linux*)
1309 LD="${LD-ld} -m elf64_sparc"
1310 ;;
1311 esac
1312 ;;
1313 esac
1314 fi
1315 rm -rf conftest*
1316 ;;
1317
1318 *-*-sco3.2v5*)
1319 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1320 SAVE_CFLAGS="$CFLAGS"
1321 CFLAGS="$CFLAGS -belf"
1322 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1323 [AC_LANG_PUSH(C)
1324 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1325 AC_LANG_POP])
1326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1328 CFLAGS="$SAVE_CFLAGS"
1329 fi
1330 ;;
1331 sparc*-*solaris*)
1332 # Find out which ABI we are using.
1333 echo 'int i;' > conftest.$ac_ext
1334 if AC_TRY_EVAL(ac_compile); then
1335 case `/usr/bin/file conftest.o` in
1336 *64-bit*)
1337 case $lt_cv_prog_gnu_ld in
1338 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1339 *)
1340 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1341 LD="${LD-ld} -64"
1342 fi
1343 ;;
1344 esac
1345 ;;
1346 esac
1347 fi
1348 rm -rf conftest*
1349 ;;
1350 esac
1351
1352 need_locks="$enable_libtool_lock"
1353 ])# _LT_ENABLE_LOCK
1354
1355
1356 # _LT_CMD_OLD_ARCHIVE
1357 # -------------------
1358 m4_defun([_LT_CMD_OLD_ARCHIVE],
1359 [AC_CHECK_TOOL(AR, ar, false)
1360 test -z "$AR" && AR=ar
1361 test -z "$AR_FLAGS" && AR_FLAGS=cru
1362 _LT_DECL([], [AR], [1], [The archiver])
1363 _LT_DECL([], [AR_FLAGS], [1])
1364
1365 AC_CHECK_TOOL(STRIP, strip, :)
1366 test -z "$STRIP" && STRIP=:
1367 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1368
1369 AC_CHECK_TOOL(RANLIB, ranlib, :)
1370 test -z "$RANLIB" && RANLIB=:
1371 _LT_DECL([], [RANLIB], [1],
1372 [Commands used to install an old-style archive])
1373
1374 # Determine commands to create old-style static archives.
1375 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1376 old_postinstall_cmds='chmod 644 $oldlib'
1377 old_postuninstall_cmds=
1378
1379 if test -n "$RANLIB"; then
1380 case $host_os in
1381 openbsd*)
1382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1383 ;;
1384 *)
1385 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1386 ;;
1387 esac
1388 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1389 fi
1390 _LT_DECL([], [old_postinstall_cmds], [2])
1391 _LT_DECL([], [old_postuninstall_cmds], [2])
1392 _LT_TAGDECL([], [old_archive_cmds], [2],
1393 [Commands used to build an old-style archive])
1394 ])# _LT_CMD_OLD_ARCHIVE
1395
1396
1397 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1398 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1399 # ----------------------------------------------------------------
1400 # Check whether the given compiler option works
1401 AC_DEFUN([_LT_COMPILER_OPTION],
1402 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1403 m4_require([_LT_DECL_SED])dnl
1404 AC_CACHE_CHECK([$1], [$2],
1405 [$2=no
1406 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1408 lt_compiler_flag="$3"
1409 # Insert the option either (1) after the last *FLAGS variable, or
1410 # (2) before a word containing "conftest.", or (3) at the end.
1411 # Note that $ac_compile itself does not contain backslashes and begins
1412 # with a dollar sign (not a hyphen), so the echo should work correctly.
1413 # The option is referenced via a variable to avoid confusing sed.
1414 lt_compile=`echo "$ac_compile" | $SED \
1415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1416 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1417 -e 's:$: $lt_compiler_flag:'`
1418 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1419 (eval "$lt_compile" 2>conftest.err)
1420 ac_status=$?
1421 cat conftest.err >&AS_MESSAGE_LOG_FD
1422 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1423 if (exit $ac_status) && test -s "$ac_outfile"; then
1424 # The compiler can only warn and ignore the option if not recognized
1425 # So say no if there are warnings other than the usual output.
1426 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1429 $2=yes
1430 fi
1431 fi
1432 $RM conftest*
1433 ])
1434
1435 if test x"[$]$2" = xyes; then
1436 m4_if([$5], , :, [$5])
1437 else
1438 m4_if([$6], , :, [$6])
1439 fi
1440 ])# _LT_COMPILER_OPTION
1441
1442 # Old name:
1443 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1444 dnl aclocal-1.4 backwards compatibility:
1445 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1446
1447
1448 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1449 # [ACTION-SUCCESS], [ACTION-FAILURE])
1450 # ----------------------------------------------------
1451 # Check whether the given linker option works
1452 AC_DEFUN([_LT_LINKER_OPTION],
1453 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1454 m4_require([_LT_DECL_SED])dnl
1455 AC_CACHE_CHECK([$1], [$2],
1456 [$2=no
1457 save_LDFLAGS="$LDFLAGS"
1458 LDFLAGS="$LDFLAGS $3"
1459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1461 # The linker can only warn and ignore the option if not recognized
1462 # So say no if there are warnings
1463 if test -s conftest.err; then
1464 # Append any errors to the config.log.
1465 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1466 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1468 if diff conftest.exp conftest.er2 >/dev/null; then
1469 $2=yes
1470 fi
1471 else
1472 $2=yes
1473 fi
1474 fi
1475 $RM -r conftest*
1476 LDFLAGS="$save_LDFLAGS"
1477 ])
1478
1479 if test x"[$]$2" = xyes; then
1480 m4_if([$4], , :, [$4])
1481 else
1482 m4_if([$5], , :, [$5])
1483 fi
1484 ])# _LT_LINKER_OPTION
1485
1486 # Old name:
1487 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1488 dnl aclocal-1.4 backwards compatibility:
1489 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1490
1491
1492 # LT_CMD_MAX_LEN
1493 #---------------
1494 AC_DEFUN([LT_CMD_MAX_LEN],
1495 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1496 # find the maximum length of command line arguments
1497 AC_MSG_CHECKING([the maximum length of command line arguments])
1498 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1499 i=0
1500 teststring="ABCD"
1501
1502 case $build_os in
1503 msdosdjgpp*)
1504 # On DJGPP, this test can blow up pretty badly due to problems in libc
1505 # (any single argument exceeding 2000 bytes causes a buffer overrun
1506 # during glob expansion). Even if it were fixed, the result of this
1507 # check would be larger than it should be.
1508 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1509 ;;
1510
1511 gnu*)
1512 # Under GNU Hurd, this test is not required because there is
1513 # no limit to the length of command line arguments.
1514 # Libtool will interpret -1 as no limit whatsoever
1515 lt_cv_sys_max_cmd_len=-1;
1516 ;;
1517
1518 cygwin* | mingw* | cegcc*)
1519 # On Win9x/ME, this test blows up -- it succeeds, but takes
1520 # about 5 minutes as the teststring grows exponentially.
1521 # Worse, since 9x/ME are not pre-emptively multitasking,
1522 # you end up with a "frozen" computer, even though with patience
1523 # the test eventually succeeds (with a max line length of 256k).
1524 # Instead, let's just punt: use the minimum linelength reported by
1525 # all of the supported platforms: 8192 (on NT/2K/XP).
1526 lt_cv_sys_max_cmd_len=8192;
1527 ;;
1528
1529 amigaos*)
1530 # On AmigaOS with pdksh, this test takes hours, literally.
1531 # So we just punt and use a minimum line length of 8192.
1532 lt_cv_sys_max_cmd_len=8192;
1533 ;;
1534
1535 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1536 # This has been around since 386BSD, at least. Likely further.
1537 if test -x /sbin/sysctl; then
1538 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1539 elif test -x /usr/sbin/sysctl; then
1540 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1541 else
1542 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1543 fi
1544 # And add a safety zone
1545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1547 ;;
1548
1549 interix*)
1550 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1551 lt_cv_sys_max_cmd_len=196608
1552 ;;
1553
1554 osf*)
1555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1557 # nice to cause kernel panics so lets avoid the loop below.
1558 # First set a reasonable default.
1559 lt_cv_sys_max_cmd_len=16384
1560 #
1561 if test -x /sbin/sysconfig; then
1562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1563 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1564 esac
1565 fi
1566 ;;
1567 sco3.2v5*)
1568 lt_cv_sys_max_cmd_len=102400
1569 ;;
1570 sysv5* | sco5v6* | sysv4.2uw2*)
1571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1572 if test -n "$kargmax"; then
1573 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1574 else
1575 lt_cv_sys_max_cmd_len=32768
1576 fi
1577 ;;
1578 *)
1579 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1580 if test -n "$lt_cv_sys_max_cmd_len"; then
1581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1583 else
1584 # Make teststring a little bigger before we do anything with it.
1585 # a 1K string should be a reasonable start.
1586 for i in 1 2 3 4 5 6 7 8 ; do
1587 teststring=$teststring$teststring
1588 done
1589 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1590 # If test is not a shell built-in, we'll probably end up computing a
1591 # maximum length that is only half of the actual maximum length, but
1592 # we can't tell.
1593 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1594 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1595 test $i != 17 # 1/2 MB should be enough
1596 do
1597 i=`expr $i + 1`
1598 teststring=$teststring$teststring
1599 done
1600 # Only check the string length outside the loop.
1601 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1602 teststring=
1603 # Add a significant safety factor because C++ compilers can tack on
1604 # massive amounts of additional arguments before passing them to the
1605 # linker. It appears as though 1/2 is a usable value.
1606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1607 fi
1608 ;;
1609 esac
1610 ])
1611 if test -n $lt_cv_sys_max_cmd_len ; then
1612 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1613 else
1614 AC_MSG_RESULT(none)
1615 fi
1616 max_cmd_len=$lt_cv_sys_max_cmd_len
1617 _LT_DECL([], [max_cmd_len], [0],
1618 [What is the maximum length of a command?])
1619 ])# LT_CMD_MAX_LEN
1620
1621 # Old name:
1622 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1623 dnl aclocal-1.4 backwards compatibility:
1624 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1625
1626
1627 # _LT_HEADER_DLFCN
1628 # ----------------
1629 m4_defun([_LT_HEADER_DLFCN],
1630 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1631 ])# _LT_HEADER_DLFCN
1632
1633
1634 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1635 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1636 # ----------------------------------------------------------------
1637 m4_defun([_LT_TRY_DLOPEN_SELF],
1638 [m4_require([_LT_HEADER_DLFCN])dnl
1639 if test "$cross_compiling" = yes; then :
1640 [$4]
1641 else
1642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1643 lt_status=$lt_dlunknown
1644 cat > conftest.$ac_ext <<_LT_EOF
1645 [#line __oline__ "configure"
1646 #include "confdefs.h"
1647
1648 #if HAVE_DLFCN_H
1649 #include <dlfcn.h>
1650 #endif
1651
1652 #include <stdio.h>
1653
1654 #ifdef RTLD_GLOBAL
1655 # define LT_DLGLOBAL RTLD_GLOBAL
1656 #else
1657 # ifdef DL_GLOBAL
1658 # define LT_DLGLOBAL DL_GLOBAL
1659 # else
1660 # define LT_DLGLOBAL 0
1661 # endif
1662 #endif
1663
1664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1665 find out it does not work in some platform. */
1666 #ifndef LT_DLLAZY_OR_NOW
1667 # ifdef RTLD_LAZY
1668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1669 # else
1670 # ifdef DL_LAZY
1671 # define LT_DLLAZY_OR_NOW DL_LAZY
1672 # else
1673 # ifdef RTLD_NOW
1674 # define LT_DLLAZY_OR_NOW RTLD_NOW
1675 # else
1676 # ifdef DL_NOW
1677 # define LT_DLLAZY_OR_NOW DL_NOW
1678 # else
1679 # define LT_DLLAZY_OR_NOW 0
1680 # endif
1681 # endif
1682 # endif
1683 # endif
1684 #endif
1685
1686 void fnord() { int i=42;}
1687 int main ()
1688 {
1689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1690 int status = $lt_dlunknown;
1691
1692 if (self)
1693 {
1694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1695 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1696 /* dlclose (self); */
1697 }
1698 else
1699 puts (dlerror ());
1700
1701 return status;
1702 }]
1703 _LT_EOF
1704 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1705 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1706 lt_status=$?
1707 case x$lt_status in
1708 x$lt_dlno_uscore) $1 ;;
1709 x$lt_dlneed_uscore) $2 ;;
1710 x$lt_dlunknown|x*) $3 ;;
1711 esac
1712 else :
1713 # compilation failed
1714 $3
1715 fi
1716 fi
1717 rm -fr conftest*
1718 ])# _LT_TRY_DLOPEN_SELF
1719
1720
1721 # LT_SYS_DLOPEN_SELF
1722 # ------------------
1723 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1724 [m4_require([_LT_HEADER_DLFCN])dnl
1725 if test "x$enable_dlopen" != xyes; then
1726 enable_dlopen=unknown
1727 enable_dlopen_self=unknown
1728 enable_dlopen_self_static=unknown
1729 else
1730 lt_cv_dlopen=no
1731 lt_cv_dlopen_libs=
1732
1733 case $host_os in
1734 beos*)
1735 lt_cv_dlopen="load_add_on"
1736 lt_cv_dlopen_libs=
1737 lt_cv_dlopen_self=yes
1738 ;;
1739
1740 mingw* | pw32* | cegcc*)
1741 lt_cv_dlopen="LoadLibrary"
1742 lt_cv_dlopen_libs=
1743 ;;
1744
1745 cygwin*)
1746 lt_cv_dlopen="dlopen"
1747 lt_cv_dlopen_libs=
1748 ;;
1749
1750 darwin*)
1751 # if libdl is installed we need to link against it
1752 AC_CHECK_LIB([dl], [dlopen],
1753 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1754 lt_cv_dlopen="dyld"
1755 lt_cv_dlopen_libs=
1756 lt_cv_dlopen_self=yes
1757 ])
1758 ;;
1759
1760 *)
1761 AC_CHECK_FUNC([shl_load],
1762 [lt_cv_dlopen="shl_load"],
1763 [AC_CHECK_LIB([dld], [shl_load],
1764 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1765 [AC_CHECK_FUNC([dlopen],
1766 [lt_cv_dlopen="dlopen"],
1767 [AC_CHECK_LIB([dl], [dlopen],
1768 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1769 [AC_CHECK_LIB([svld], [dlopen],
1770 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1771 [AC_CHECK_LIB([dld], [dld_link],
1772 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1773 ])
1774 ])
1775 ])
1776 ])
1777 ])
1778 ;;
1779 esac
1780
1781 if test "x$lt_cv_dlopen" != xno; then
1782 enable_dlopen=yes
1783 else
1784 enable_dlopen=no
1785 fi
1786
1787 case $lt_cv_dlopen in
1788 dlopen)
1789 save_CPPFLAGS="$CPPFLAGS"
1790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1791
1792 save_LDFLAGS="$LDFLAGS"
1793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1794
1795 save_LIBS="$LIBS"
1796 LIBS="$lt_cv_dlopen_libs $LIBS"
1797
1798 AC_CACHE_CHECK([whether a program can dlopen itself],
1799 lt_cv_dlopen_self, [dnl
1800 _LT_TRY_DLOPEN_SELF(
1801 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1802 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1803 ])
1804
1805 if test "x$lt_cv_dlopen_self" = xyes; then
1806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1807 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1808 lt_cv_dlopen_self_static, [dnl
1809 _LT_TRY_DLOPEN_SELF(
1810 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1811 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1812 ])
1813 fi
1814
1815 CPPFLAGS="$save_CPPFLAGS"
1816 LDFLAGS="$save_LDFLAGS"
1817 LIBS="$save_LIBS"
1818 ;;
1819 esac
1820
1821 case $lt_cv_dlopen_self in
1822 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1823 *) enable_dlopen_self=unknown ;;
1824 esac
1825
1826 case $lt_cv_dlopen_self_static in
1827 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1828 *) enable_dlopen_self_static=unknown ;;
1829 esac
1830 fi
1831 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1832 [Whether dlopen is supported])
1833 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1834 [Whether dlopen of programs is supported])
1835 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1836 [Whether dlopen of statically linked programs is supported])
1837 ])# LT_SYS_DLOPEN_SELF
1838
1839 # Old name:
1840 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1841 dnl aclocal-1.4 backwards compatibility:
1842 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1843
1844
1845 # _LT_COMPILER_C_O([TAGNAME])
1846 # ---------------------------
1847 # Check to see if options -c and -o are simultaneously supported by compiler.
1848 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1849 m4_defun([_LT_COMPILER_C_O],
1850 [m4_require([_LT_DECL_SED])dnl
1851 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1852 m4_require([_LT_TAG_COMPILER])dnl
1853 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1854 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1855 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1856 $RM -r conftest 2>/dev/null
1857 mkdir conftest
1858 cd conftest
1859 mkdir out
1860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1861
1862 lt_compiler_flag="-o out/conftest2.$ac_objext"
1863 # Insert the option either (1) after the last *FLAGS variable, or
1864 # (2) before a word containing "conftest.", or (3) at the end.
1865 # Note that $ac_compile itself does not contain backslashes and begins
1866 # with a dollar sign (not a hyphen), so the echo should work correctly.
1867 lt_compile=`echo "$ac_compile" | $SED \
1868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1869 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1870 -e 's:$: $lt_compiler_flag:'`
1871 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1872 (eval "$lt_compile" 2>out/conftest.err)
1873 ac_status=$?
1874 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1875 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1877 then
1878 # The compiler can only warn and ignore the option if not recognized
1879 # So say no if there are warnings
1880 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1883 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1884 fi
1885 fi
1886 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1887 $RM conftest*
1888 # SGI C++ compiler will create directory out/ii_files/ for
1889 # template instantiation
1890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1891 $RM out/* && rmdir out
1892 cd ..
1893 $RM -r conftest
1894 $RM conftest*
1895 ])
1896 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1897 [Does compiler simultaneously support -c and -o options?])
1898 ])# _LT_COMPILER_C_O
1899
1900
1901 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1902 # ----------------------------------
1903 # Check to see if we can do hard links to lock some files if needed
1904 m4_defun([_LT_COMPILER_FILE_LOCKS],
1905 [m4_require([_LT_ENABLE_LOCK])dnl
1906 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1907 _LT_COMPILER_C_O([$1])
1908
1909 hard_links="nottested"
1910 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1911 # do not overwrite the value of need_locks provided by the user
1912 AC_MSG_CHECKING([if we can lock with hard links])
1913 hard_links=yes
1914 $RM conftest*
1915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1916 touch conftest.a
1917 ln conftest.a conftest.b 2>&5 || hard_links=no
1918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1919 AC_MSG_RESULT([$hard_links])
1920 if test "$hard_links" = no; then
1921 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1922 need_locks=warn
1923 fi
1924 else
1925 need_locks=no
1926 fi
1927 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1928 ])# _LT_COMPILER_FILE_LOCKS
1929
1930
1931 # _LT_CHECK_OBJDIR
1932 # ----------------
1933 m4_defun([_LT_CHECK_OBJDIR],
1934 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1935 [rm -f .libs 2>/dev/null
1936 mkdir .libs 2>/dev/null
1937 if test -d .libs; then
1938 lt_cv_objdir=.libs
1939 else
1940 # MS-DOS does not allow filenames that begin with a dot.
1941 lt_cv_objdir=_libs
1942 fi
1943 rmdir .libs 2>/dev/null])
1944 objdir=$lt_cv_objdir
1945 _LT_DECL([], [objdir], [0],
1946 [The name of the directory that contains temporary libtool files])dnl
1947 m4_pattern_allow([LT_OBJDIR])dnl
1948 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1949 [Define to the sub-directory in which libtool stores uninstalled libraries.])
1950 ])# _LT_CHECK_OBJDIR
1951
1952
1953 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1954 # --------------------------------------
1955 # Check hardcoding attributes.
1956 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1957 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1958 _LT_TAGVAR(hardcode_action, $1)=
1959 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1960 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1961 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1962
1963 # We can hardcode non-existent directories.
1964 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1965 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1966 # have to relink, otherwise we might link with an installed library
1967 # when we should be linking with a yet-to-be-installed one
1968 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1969 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1970 # Linking always hardcodes the temporary library directory.
1971 _LT_TAGVAR(hardcode_action, $1)=relink
1972 else
1973 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1974 _LT_TAGVAR(hardcode_action, $1)=immediate
1975 fi
1976 else
1977 # We cannot hardcode anything, or else we can only hardcode existing
1978 # directories.
1979 _LT_TAGVAR(hardcode_action, $1)=unsupported
1980 fi
1981 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1982
1983 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1984 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1985 # Fast installation is not supported
1986 enable_fast_install=no
1987 elif test "$shlibpath_overrides_runpath" = yes ||
1988 test "$enable_shared" = no; then
1989 # Fast installation is not necessary
1990 enable_fast_install=needless
1991 fi
1992 _LT_TAGDECL([], [hardcode_action], [0],
1993 [How to hardcode a shared library path into an executable])
1994 ])# _LT_LINKER_HARDCODE_LIBPATH
1995
1996
1997 # _LT_CMD_STRIPLIB
1998 # ----------------
1999 m4_defun([_LT_CMD_STRIPLIB],
2000 [m4_require([_LT_DECL_EGREP])
2001 striplib=
2002 old_striplib=
2003 AC_MSG_CHECKING([whether stripping libraries is possible])
2004 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2005 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2006 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2007 AC_MSG_RESULT([yes])
2008 else
2009 # FIXME - insert some real tests, host_os isn't really good enough
2010 case $host_os in
2011 darwin*)
2012 if test -n "$STRIP" ; then
2013 striplib="$STRIP -x"
2014 old_striplib="$STRIP -S"
2015 AC_MSG_RESULT([yes])
2016 else
2017 AC_MSG_RESULT([no])
2018 fi
2019 ;;
2020 *)
2021 AC_MSG_RESULT([no])
2022 ;;
2023 esac
2024 fi
2025 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2026 _LT_DECL([], [striplib], [1])
2027 ])# _LT_CMD_STRIPLIB
2028
2029
2030 # _LT_SYS_DYNAMIC_LINKER([TAG])
2031 # -----------------------------
2032 # PORTME Fill in your ld.so characteristics
2033 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2034 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2035 m4_require([_LT_DECL_EGREP])dnl
2036 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2037 m4_require([_LT_DECL_OBJDUMP])dnl
2038 m4_require([_LT_DECL_SED])dnl
2039 AC_MSG_CHECKING([dynamic linker characteristics])
2040 m4_if([$1],
2041 [], [
2042 if test "$GCC" = yes; then
2043 case $host_os in
2044 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2045 *) lt_awk_arg="/^libraries:/" ;;
2046 esac
2047 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2048 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2049 # if the path contains ";" then we assume it to be the separator
2050 # otherwise default to the standard path separator (i.e. ":") - it is
2051 # assumed that no part of a normal pathname contains ";" but that should
2052 # okay in the real world where ";" in dirpaths is itself problematic.
2053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2054 else
2055 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2056 fi
2057 # Ok, now we have the path, separated by spaces, we can step through it
2058 # and add multilib dir if necessary.
2059 lt_tmp_lt_search_path_spec=
2060 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2061 for lt_sys_path in $lt_search_path_spec; do
2062 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2064 else
2065 test -d "$lt_sys_path" && \
2066 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2067 fi
2068 done
2069 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2070 BEGIN {RS=" "; FS="/|\n";} {
2071 lt_foo="";
2072 lt_count=0;
2073 for (lt_i = NF; lt_i > 0; lt_i--) {
2074 if ($lt_i != "" && $lt_i != ".") {
2075 if ($lt_i == "..") {
2076 lt_count++;
2077 } else {
2078 if (lt_count == 0) {
2079 lt_foo="/" $lt_i lt_foo;
2080 } else {
2081 lt_count--;
2082 }
2083 }
2084 }
2085 }
2086 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2087 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2088 }'`
2089 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2090 else
2091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2092 fi])
2093 library_names_spec=
2094 libname_spec='lib$name'
2095 soname_spec=
2096 shrext_cmds=".so"
2097 postinstall_cmds=
2098 postuninstall_cmds=
2099 finish_cmds=
2100 finish_eval=
2101 shlibpath_var=
2102 shlibpath_overrides_runpath=unknown
2103 version_type=none
2104 dynamic_linker="$host_os ld.so"
2105 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2106 need_lib_prefix=unknown
2107 hardcode_into_libs=no
2108
2109 # when you set need_version to no, make sure it does not cause -set_version
2110 # flags to be left without arguments
2111 need_version=unknown
2112
2113 case $host_os in
2114 aix3*)
2115 version_type=linux
2116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2117 shlibpath_var=LIBPATH
2118
2119 # AIX 3 has no versioning support, so we append a major version to the name.
2120 soname_spec='${libname}${release}${shared_ext}$major'
2121 ;;
2122
2123 aix[[4-9]]*)
2124 version_type=linux
2125 need_lib_prefix=no
2126 need_version=no
2127 hardcode_into_libs=yes
2128 if test "$host_cpu" = ia64; then
2129 # AIX 5 supports IA64
2130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2131 shlibpath_var=LD_LIBRARY_PATH
2132 else
2133 # With GCC up to 2.95.x, collect2 would create an import file
2134 # for dependence libraries. The import file would start with
2135 # the line `#! .'. This would cause the generated library to
2136 # depend on `.', always an invalid library. This was fixed in
2137 # development snapshots of GCC prior to 3.0.
2138 case $host_os in
2139 aix4 | aix4.[[01]] | aix4.[[01]].*)
2140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2141 echo ' yes '
2142 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2143 :
2144 else
2145 can_build_shared=no
2146 fi
2147 ;;
2148 esac
2149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2150 # soname into executable. Probably we can add versioning support to
2151 # collect2, so additional links can be useful in future.
2152 if test "$aix_use_runtimelinking" = yes; then
2153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2154 # instead of lib<name>.a to let people know that these are not
2155 # typical AIX shared libraries.
2156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2157 else
2158 # We preserve .a as extension for shared libraries through AIX4.2
2159 # and later when we are not doing run time linking.
2160 library_names_spec='${libname}${release}.a $libname.a'
2161 soname_spec='${libname}${release}${shared_ext}$major'
2162 fi
2163 shlibpath_var=LIBPATH
2164 fi
2165 ;;
2166
2167 amigaos*)
2168 case $host_cpu in
2169 powerpc)
2170 # Since July 2007 AmigaOS4 officially supports .so libraries.
2171 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2173 ;;
2174 m68k)
2175 library_names_spec='$libname.ixlibrary $libname.a'
2176 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2177 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'
2178 ;;
2179 esac
2180 ;;
2181
2182 beos*)
2183 library_names_spec='${libname}${shared_ext}'
2184 dynamic_linker="$host_os ld.so"
2185 shlibpath_var=LIBRARY_PATH
2186 ;;
2187
2188 bsdi[[45]]*)
2189 version_type=linux
2190 need_version=no
2191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2192 soname_spec='${libname}${release}${shared_ext}$major'
2193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2194 shlibpath_var=LD_LIBRARY_PATH
2195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2197 # the default ld.so.conf also contains /usr/contrib/lib and
2198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2199 # libtool to hard-code these into programs
2200 ;;
2201
2202 cygwin* | mingw* | pw32* | cegcc*)
2203 version_type=windows
2204 shrext_cmds=".dll"
2205 need_version=no
2206 need_lib_prefix=no
2207
2208 case $GCC,$host_os in
2209 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2210 library_names_spec='$libname.dll.a'
2211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2212 postinstall_cmds='base_file=`basename \${file}`~
2213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2214 dldir=$destdir/`dirname \$dlpath`~
2215 test -d \$dldir || mkdir -p \$dldir~
2216 $install_prog $dir/$dlname \$dldir/$dlname~
2217 chmod a+x \$dldir/$dlname~
2218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2220 fi'
2221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2222 dlpath=$dir/\$dldll~
2223 $RM \$dlpath'
2224 shlibpath_overrides_runpath=yes
2225
2226 case $host_os in
2227 cygwin*)
2228 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2229 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2230 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2231 ;;
2232 mingw* | cegcc*)
2233 # MinGW DLLs use traditional 'lib' prefix
2234 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2235 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2236 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2237 # It is most probably a Windows format PATH printed by
2238 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2239 # path with ; separators, and with drive letters. We can handle the
2240 # drive letters (cygwin fileutils understands them), so leave them,
2241 # especially as we might pass files found there to a mingw objdump,
2242 # which wouldn't understand a cygwinified path. Ahh.
2243 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2244 else
2245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2246 fi
2247 ;;
2248 pw32*)
2249 # pw32 DLLs use 'pw' prefix rather than 'lib'
2250 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2251 ;;
2252 esac
2253 ;;
2254
2255 *)
2256 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2257 ;;
2258 esac
2259 dynamic_linker='Win32 ld.exe'
2260 # FIXME: first we should search . and the directory the executable is in
2261 shlibpath_var=PATH
2262 ;;
2263
2264 darwin* | rhapsody*)
2265 dynamic_linker="$host_os dyld"
2266 version_type=darwin
2267 need_lib_prefix=no
2268 need_version=no
2269 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2270 soname_spec='${libname}${release}${major}$shared_ext'
2271 shlibpath_overrides_runpath=yes
2272 shlibpath_var=DYLD_LIBRARY_PATH
2273 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2274 m4_if([$1], [],[
2275 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2276 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2277 ;;
2278
2279 dgux*)
2280 version_type=linux
2281 need_lib_prefix=no
2282 need_version=no
2283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2284 soname_spec='${libname}${release}${shared_ext}$major'
2285 shlibpath_var=LD_LIBRARY_PATH
2286 ;;
2287
2288 freebsd1*)
2289 dynamic_linker=no
2290 ;;
2291
2292 freebsd* | dragonfly*)
2293 # DragonFly does not have aout. When/if they implement a new
2294 # versioning mechanism, adjust this.
2295 if test -x /usr/bin/objformat; then
2296 objformat=`/usr/bin/objformat`
2297 else
2298 case $host_os in
2299 freebsd[[123]]*) objformat=aout ;;
2300 *) objformat=elf ;;
2301 esac
2302 fi
2303 version_type=freebsd-$objformat
2304 case $version_type in
2305 freebsd-elf*)
2306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2307 need_version=no
2308 need_lib_prefix=no
2309 ;;
2310 freebsd-*)
2311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2312 need_version=yes
2313 ;;
2314 esac
2315 shlibpath_var=LD_LIBRARY_PATH
2316 case $host_os in
2317 freebsd2*)
2318 shlibpath_overrides_runpath=yes
2319 ;;
2320 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2321 shlibpath_overrides_runpath=yes
2322 hardcode_into_libs=yes
2323 ;;
2324 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2325 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2326 shlibpath_overrides_runpath=no
2327 hardcode_into_libs=yes
2328 ;;
2329 *) # from 4.6 on, and DragonFly
2330 shlibpath_overrides_runpath=yes
2331 hardcode_into_libs=yes
2332 ;;
2333 esac
2334 ;;
2335
2336 gnu*)
2337 version_type=linux
2338 need_lib_prefix=no
2339 need_version=no
2340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2341 soname_spec='${libname}${release}${shared_ext}$major'
2342 shlibpath_var=LD_LIBRARY_PATH
2343 hardcode_into_libs=yes
2344 ;;
2345
2346 hpux9* | hpux10* | hpux11*)
2347 # Give a soname corresponding to the major version so that dld.sl refuses to
2348 # link against other versions.
2349 version_type=sunos
2350 need_lib_prefix=no
2351 need_version=no
2352 case $host_cpu in
2353 ia64*)
2354 shrext_cmds='.so'
2355 hardcode_into_libs=yes
2356 dynamic_linker="$host_os dld.so"
2357 shlibpath_var=LD_LIBRARY_PATH
2358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2360 soname_spec='${libname}${release}${shared_ext}$major'
2361 if test "X$HPUX_IA64_MODE" = X32; then
2362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2363 else
2364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2365 fi
2366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2367 ;;
2368 hppa*64*)
2369 shrext_cmds='.sl'
2370 hardcode_into_libs=yes
2371 dynamic_linker="$host_os dld.sl"
2372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2375 soname_spec='${libname}${release}${shared_ext}$major'
2376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2378 ;;
2379 *)
2380 shrext_cmds='.sl'
2381 dynamic_linker="$host_os dld.sl"
2382 shlibpath_var=SHLIB_PATH
2383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2385 soname_spec='${libname}${release}${shared_ext}$major'
2386 ;;
2387 esac
2388 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2389 postinstall_cmds='chmod 555 $lib'
2390 ;;
2391
2392 interix[[3-9]]*)
2393 version_type=linux
2394 need_lib_prefix=no
2395 need_version=no
2396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2397 soname_spec='${libname}${release}${shared_ext}$major'
2398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2399 shlibpath_var=LD_LIBRARY_PATH
2400 shlibpath_overrides_runpath=no
2401 hardcode_into_libs=yes
2402 ;;
2403
2404 irix5* | irix6* | nonstopux*)
2405 case $host_os in
2406 nonstopux*) version_type=nonstopux ;;
2407 *)
2408 if test "$lt_cv_prog_gnu_ld" = yes; then
2409 version_type=linux
2410 else
2411 version_type=irix
2412 fi ;;
2413 esac
2414 need_lib_prefix=no
2415 need_version=no
2416 soname_spec='${libname}${release}${shared_ext}$major'
2417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2418 case $host_os in
2419 irix5* | nonstopux*)
2420 libsuff= shlibsuff=
2421 ;;
2422 *)
2423 case $LD in # libtool.m4 will add one of these switches to LD
2424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2425 libsuff= shlibsuff= libmagic=32-bit;;
2426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2427 libsuff=32 shlibsuff=N32 libmagic=N32;;
2428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2429 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2430 *) libsuff= shlibsuff= libmagic=never-match;;
2431 esac
2432 ;;
2433 esac
2434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2435 shlibpath_overrides_runpath=no
2436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2438 hardcode_into_libs=yes
2439 ;;
2440
2441 # No shared lib support for Linux oldld, aout, or coff.
2442 linux*oldld* | linux*aout* | linux*coff*)
2443 dynamic_linker=no
2444 ;;
2445
2446 # This must be Linux ELF.
2447 linux* | k*bsd*-gnu)
2448 version_type=linux
2449 need_lib_prefix=no
2450 need_version=no
2451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2452 soname_spec='${libname}${release}${shared_ext}$major'
2453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2454 shlibpath_var=LD_LIBRARY_PATH
2455 shlibpath_overrides_runpath=no
2456 # Some binutils ld are patched to set DT_RUNPATH
2457 save_LDFLAGS=$LDFLAGS
2458 save_libdir=$libdir
2459 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2460 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2461 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2462 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2463 [shlibpath_overrides_runpath=yes])])
2464 LDFLAGS=$save_LDFLAGS
2465 libdir=$save_libdir
2466
2467 # This implies no fast_install, which is unacceptable.
2468 # Some rework will be needed to allow for fast_install
2469 # before this can be enabled.
2470 hardcode_into_libs=yes
2471
2472 # Append ld.so.conf contents to the search path
2473 if test -f /etc/ld.so.conf; then
2474 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' ' '`
2475 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2476 fi
2477
2478 # We used to test for /lib/ld.so.1 and disable shared libraries on
2479 # powerpc, because MkLinux only supported shared libraries with the
2480 # GNU dynamic linker. Since this was broken with cross compilers,
2481 # most powerpc-linux boxes support dynamic linking these days and
2482 # people can always --disable-shared, the test was removed, and we
2483 # assume the GNU/Linux dynamic linker is in use.
2484 dynamic_linker='GNU/Linux ld.so'
2485 ;;
2486
2487 netbsdelf*-gnu)
2488 version_type=linux
2489 need_lib_prefix=no
2490 need_version=no
2491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2492 soname_spec='${libname}${release}${shared_ext}$major'
2493 shlibpath_var=LD_LIBRARY_PATH
2494 shlibpath_overrides_runpath=no
2495 hardcode_into_libs=yes
2496 dynamic_linker='NetBSD ld.elf_so'
2497 ;;
2498
2499 netbsd*)
2500 version_type=sunos
2501 need_lib_prefix=no
2502 need_version=no
2503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2506 dynamic_linker='NetBSD (a.out) ld.so'
2507 else
2508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2509 soname_spec='${libname}${release}${shared_ext}$major'
2510 dynamic_linker='NetBSD ld.elf_so'
2511 fi
2512 shlibpath_var=LD_LIBRARY_PATH
2513 shlibpath_overrides_runpath=yes
2514 hardcode_into_libs=yes
2515 ;;
2516
2517 newsos6)
2518 version_type=linux
2519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2520 shlibpath_var=LD_LIBRARY_PATH
2521 shlibpath_overrides_runpath=yes
2522 ;;
2523
2524 *nto* | *qnx*)
2525 version_type=qnx
2526 need_lib_prefix=no
2527 need_version=no
2528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2529 soname_spec='${libname}${release}${shared_ext}$major'
2530 shlibpath_var=LD_LIBRARY_PATH
2531 shlibpath_overrides_runpath=no
2532 hardcode_into_libs=yes
2533 dynamic_linker='ldqnx.so'
2534 ;;
2535
2536 openbsd*)
2537 version_type=sunos
2538 sys_lib_dlsearch_path_spec="/usr/lib"
2539 need_lib_prefix=no
2540 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2541 case $host_os in
2542 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2543 *) need_version=no ;;
2544 esac
2545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2547 shlibpath_var=LD_LIBRARY_PATH
2548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2549 case $host_os in
2550 openbsd2.[[89]] | openbsd2.[[89]].*)
2551 shlibpath_overrides_runpath=no
2552 ;;
2553 *)
2554 shlibpath_overrides_runpath=yes
2555 ;;
2556 esac
2557 else
2558 shlibpath_overrides_runpath=yes
2559 fi
2560 ;;
2561
2562 os2*)
2563 libname_spec='$name'
2564 shrext_cmds=".dll"
2565 need_lib_prefix=no
2566 library_names_spec='$libname${shared_ext} $libname.a'
2567 dynamic_linker='OS/2 ld.exe'
2568 shlibpath_var=LIBPATH
2569 ;;
2570
2571 osf3* | osf4* | osf5*)
2572 version_type=osf
2573 need_lib_prefix=no
2574 need_version=no
2575 soname_spec='${libname}${release}${shared_ext}$major'
2576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2577 shlibpath_var=LD_LIBRARY_PATH
2578 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2579 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2580 ;;
2581
2582 rdos*)
2583 dynamic_linker=no
2584 ;;
2585
2586 solaris*)
2587 version_type=linux
2588 need_lib_prefix=no
2589 need_version=no
2590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2591 soname_spec='${libname}${release}${shared_ext}$major'
2592 shlibpath_var=LD_LIBRARY_PATH
2593 shlibpath_overrides_runpath=yes
2594 hardcode_into_libs=yes
2595 # ldd complains unless libraries are executable
2596 postinstall_cmds='chmod +x $lib'
2597 ;;
2598
2599 sunos4*)
2600 version_type=sunos
2601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2602 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2603 shlibpath_var=LD_LIBRARY_PATH
2604 shlibpath_overrides_runpath=yes
2605 if test "$with_gnu_ld" = yes; then
2606 need_lib_prefix=no
2607 fi
2608 need_version=yes
2609 ;;
2610
2611 sysv4 | sysv4.3*)
2612 version_type=linux
2613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2614 soname_spec='${libname}${release}${shared_ext}$major'
2615 shlibpath_var=LD_LIBRARY_PATH
2616 case $host_vendor in
2617 sni)
2618 shlibpath_overrides_runpath=no
2619 need_lib_prefix=no
2620 runpath_var=LD_RUN_PATH
2621 ;;
2622 siemens)
2623 need_lib_prefix=no
2624 ;;
2625 motorola)
2626 need_lib_prefix=no
2627 need_version=no
2628 shlibpath_overrides_runpath=no
2629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2630 ;;
2631 esac
2632 ;;
2633
2634 sysv4*MP*)
2635 if test -d /usr/nec ;then
2636 version_type=linux
2637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2638 soname_spec='$libname${shared_ext}.$major'
2639 shlibpath_var=LD_LIBRARY_PATH
2640 fi
2641 ;;
2642
2643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2644 version_type=freebsd-elf
2645 need_lib_prefix=no
2646 need_version=no
2647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2648 soname_spec='${libname}${release}${shared_ext}$major'
2649 shlibpath_var=LD_LIBRARY_PATH
2650 shlibpath_overrides_runpath=yes
2651 hardcode_into_libs=yes
2652 if test "$with_gnu_ld" = yes; then
2653 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2654 else
2655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2656 case $host_os in
2657 sco3.2v5*)
2658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2659 ;;
2660 esac
2661 fi
2662 sys_lib_dlsearch_path_spec='/usr/lib'
2663 ;;
2664
2665 tpf*)
2666 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2667 version_type=linux
2668 need_lib_prefix=no
2669 need_version=no
2670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2671 shlibpath_var=LD_LIBRARY_PATH
2672 shlibpath_overrides_runpath=no
2673 hardcode_into_libs=yes
2674 ;;
2675
2676 uts4*)
2677 version_type=linux
2678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2679 soname_spec='${libname}${release}${shared_ext}$major'
2680 shlibpath_var=LD_LIBRARY_PATH
2681 ;;
2682
2683 *)
2684 dynamic_linker=no
2685 ;;
2686 esac
2687 AC_MSG_RESULT([$dynamic_linker])
2688 test "$dynamic_linker" = no && can_build_shared=no
2689
2690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2691 if test "$GCC" = yes; then
2692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2693 fi
2694
2695 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2696 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2697 fi
2698 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2699 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2700 fi
2701
2702 _LT_DECL([], [variables_saved_for_relink], [1],
2703 [Variables whose values should be saved in libtool wrapper scripts and
2704 restored at link time])
2705 _LT_DECL([], [need_lib_prefix], [0],
2706 [Do we need the "lib" prefix for modules?])
2707 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2708 _LT_DECL([], [version_type], [0], [Library versioning type])
2709 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2710 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2711 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2712 [Is shlibpath searched before the hard-coded library search path?])
2713 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2714 _LT_DECL([], [library_names_spec], [1],
2715 [[List of archive names. First name is the real one, the rest are links.
2716 The last name is the one that the linker finds with -lNAME]])
2717 _LT_DECL([], [soname_spec], [1],
2718 [[The coded name of the library, if different from the real name]])
2719 _LT_DECL([], [postinstall_cmds], [2],
2720 [Command to use after installation of a shared archive])
2721 _LT_DECL([], [postuninstall_cmds], [2],
2722 [Command to use after uninstallation of a shared archive])
2723 _LT_DECL([], [finish_cmds], [2],
2724 [Commands used to finish a libtool library installation in a directory])
2725 _LT_DECL([], [finish_eval], [1],
2726 [[As "finish_cmds", except a single script fragment to be evaled but
2727 not shown]])
2728 _LT_DECL([], [hardcode_into_libs], [0],
2729 [Whether we should hardcode library paths into libraries])
2730 _LT_DECL([], [sys_lib_search_path_spec], [2],
2731 [Compile-time system search path for libraries])
2732 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2733 [Run-time system search path for libraries])
2734 ])# _LT_SYS_DYNAMIC_LINKER
2735
2736
2737 # _LT_PATH_TOOL_PREFIX(TOOL)
2738 # --------------------------
2739 # find a file program which can recognize shared library
2740 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2741 [m4_require([_LT_DECL_EGREP])dnl
2742 AC_MSG_CHECKING([for $1])
2743 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2744 [case $MAGIC_CMD in
2745 [[\\/*] | ?:[\\/]*])
2746 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2747 ;;
2748 *)
2749 lt_save_MAGIC_CMD="$MAGIC_CMD"
2750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2751 dnl $ac_dummy forces splitting on constant user-supplied paths.
2752 dnl POSIX.2 word splitting is done only on the output of word expansions,
2753 dnl not every word. This closes a longstanding sh security hole.
2754 ac_dummy="m4_if([$2], , $PATH, [$2])"
2755 for ac_dir in $ac_dummy; do
2756 IFS="$lt_save_ifs"
2757 test -z "$ac_dir" && ac_dir=.
2758 if test -f $ac_dir/$1; then
2759 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2760 if test -n "$file_magic_test_file"; then
2761 case $deplibs_check_method in
2762 "file_magic "*)
2763 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2766 $EGREP "$file_magic_regex" > /dev/null; then
2767 :
2768 else
2769 cat <<_LT_EOF 1>&2
2770
2771 *** Warning: the command libtool uses to detect shared libraries,
2772 *** $file_magic_cmd, produces output that libtool cannot recognize.
2773 *** The result is that libtool may fail to recognize shared libraries
2774 *** as such. This will affect the creation of libtool libraries that
2775 *** depend on shared libraries, but programs linked with such libtool
2776 *** libraries will work regardless of this problem. Nevertheless, you
2777 *** may want to report the problem to your system manager and/or to
2778 *** bug-libtool@gnu.org
2779
2780 _LT_EOF
2781 fi ;;
2782 esac
2783 fi
2784 break
2785 fi
2786 done
2787 IFS="$lt_save_ifs"
2788 MAGIC_CMD="$lt_save_MAGIC_CMD"
2789 ;;
2790 esac])
2791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2792 if test -n "$MAGIC_CMD"; then
2793 AC_MSG_RESULT($MAGIC_CMD)
2794 else
2795 AC_MSG_RESULT(no)
2796 fi
2797 _LT_DECL([], [MAGIC_CMD], [0],
2798 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2799 ])# _LT_PATH_TOOL_PREFIX
2800
2801 # Old name:
2802 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2803 dnl aclocal-1.4 backwards compatibility:
2804 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2805
2806
2807 # _LT_PATH_MAGIC
2808 # --------------
2809 # find a file program which can recognize a shared library
2810 m4_defun([_LT_PATH_MAGIC],
2811 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2812 if test -z "$lt_cv_path_MAGIC_CMD"; then
2813 if test -n "$ac_tool_prefix"; then
2814 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2815 else
2816 MAGIC_CMD=:
2817 fi
2818 fi
2819 ])# _LT_PATH_MAGIC
2820
2821
2822 # LT_PATH_LD
2823 # ----------
2824 # find the pathname to the GNU or non-GNU linker
2825 AC_DEFUN([LT_PATH_LD],
2826 [AC_REQUIRE([AC_PROG_CC])dnl
2827 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2828 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2829 m4_require([_LT_DECL_SED])dnl
2830 m4_require([_LT_DECL_EGREP])dnl
2831
2832 AC_ARG_WITH([gnu-ld],
2833 [AS_HELP_STRING([--with-gnu-ld],
2834 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2835 [test "$withval" = no || with_gnu_ld=yes],
2836 [with_gnu_ld=no])dnl
2837
2838 ac_prog=ld
2839 if test "$GCC" = yes; then
2840 # Check if gcc -print-prog-name=ld gives a path.
2841 AC_MSG_CHECKING([for ld used by $CC])
2842 case $host in
2843 *-*-mingw*)
2844 # gcc leaves a trailing carriage return which upsets mingw
2845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2846 *)
2847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2848 esac
2849 case $ac_prog in
2850 # Accept absolute paths.
2851 [[\\/]]* | ?:[[\\/]]*)
2852 re_direlt='/[[^/]][[^/]]*/\.\./'
2853 # Canonicalize the pathname of ld
2854 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2855 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2856 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2857 done
2858 test -z "$LD" && LD="$ac_prog"
2859 ;;
2860 "")
2861 # If it fails, then pretend we aren't using GCC.
2862 ac_prog=ld
2863 ;;
2864 *)
2865 # If it is relative, then search for the first ld in PATH.
2866 with_gnu_ld=unknown
2867 ;;
2868 esac
2869 elif test "$with_gnu_ld" = yes; then
2870 AC_MSG_CHECKING([for GNU ld])
2871 else
2872 AC_MSG_CHECKING([for non-GNU ld])
2873 fi
2874 AC_CACHE_VAL(lt_cv_path_LD,
2875 [if test -z "$LD"; then
2876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2877 for ac_dir in $PATH; do
2878 IFS="$lt_save_ifs"
2879 test -z "$ac_dir" && ac_dir=.
2880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2881 lt_cv_path_LD="$ac_dir/$ac_prog"
2882 # Check to see if the program is GNU ld. I'd rather use --version,
2883 # but apparently some variants of GNU ld only accept -v.
2884 # Break only if it was the GNU/non-GNU ld that we prefer.
2885 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2886 *GNU* | *'with BFD'*)
2887 test "$with_gnu_ld" != no && break
2888 ;;
2889 *)
2890 test "$with_gnu_ld" != yes && break
2891 ;;
2892 esac
2893 fi
2894 done
2895 IFS="$lt_save_ifs"
2896 else
2897 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2898 fi])
2899 LD="$lt_cv_path_LD"
2900 if test -n "$LD"; then
2901 AC_MSG_RESULT($LD)
2902 else
2903 AC_MSG_RESULT(no)
2904 fi
2905 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2906 _LT_PATH_LD_GNU
2907 AC_SUBST([LD])
2908
2909 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2910 ])# LT_PATH_LD
2911
2912 # Old names:
2913 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2914 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2915 dnl aclocal-1.4 backwards compatibility:
2916 dnl AC_DEFUN([AM_PROG_LD], [])
2917 dnl AC_DEFUN([AC_PROG_LD], [])
2918
2919
2920 # _LT_PATH_LD_GNU
2921 #- --------------
2922 m4_defun([_LT_PATH_LD_GNU],
2923 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2924 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2925 case `$LD -v 2>&1 </dev/null` in
2926 *GNU* | *'with BFD'*)
2927 lt_cv_prog_gnu_ld=yes
2928 ;;
2929 *)
2930 lt_cv_prog_gnu_ld=no
2931 ;;
2932 esac])
2933 with_gnu_ld=$lt_cv_prog_gnu_ld
2934 ])# _LT_PATH_LD_GNU
2935
2936
2937 # _LT_CMD_RELOAD
2938 # --------------
2939 # find reload flag for linker
2940 # -- PORTME Some linkers may need a different reload flag.
2941 m4_defun([_LT_CMD_RELOAD],
2942 [AC_CACHE_CHECK([for $LD option to reload object files],
2943 lt_cv_ld_reload_flag,
2944 [lt_cv_ld_reload_flag='-r'])
2945 reload_flag=$lt_cv_ld_reload_flag
2946 case $reload_flag in
2947 "" | " "*) ;;
2948 *) reload_flag=" $reload_flag" ;;
2949 esac
2950 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2951 case $host_os in
2952 darwin*)
2953 if test "$GCC" = yes; then
2954 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2955 else
2956 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2957 fi
2958 ;;
2959 esac
2960 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2961 _LT_DECL([], [reload_cmds], [2])dnl
2962 ])# _LT_CMD_RELOAD
2963
2964
2965 # _LT_CHECK_MAGIC_METHOD
2966 # ----------------------
2967 # how to check for library dependencies
2968 # -- PORTME fill in with the dynamic library characteristics
2969 m4_defun([_LT_CHECK_MAGIC_METHOD],
2970 [m4_require([_LT_DECL_EGREP])
2971 m4_require([_LT_DECL_OBJDUMP])
2972 AC_CACHE_CHECK([how to recognize dependent libraries],
2973 lt_cv_deplibs_check_method,
2974 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2975 lt_cv_file_magic_test_file=
2976 lt_cv_deplibs_check_method='unknown'
2977 # Need to set the preceding variable on all platforms that support
2978 # interlibrary dependencies.
2979 # 'none' -- dependencies not supported.
2980 # `unknown' -- same as none, but documents that we really don't know.
2981 # 'pass_all' -- all dependencies passed with no checks.
2982 # 'test_compile' -- check by making test program.
2983 # 'file_magic [[regex]]' -- check by looking for files in library path
2984 # which responds to the $file_magic_cmd with a given extended regex.
2985 # If you have `file' or equivalent on your system and you're not sure
2986 # whether `pass_all' will *always* work, you probably want this one.
2987
2988 case $host_os in
2989 aix[[4-9]]*)
2990 lt_cv_deplibs_check_method=pass_all
2991 ;;
2992
2993 beos*)
2994 lt_cv_deplibs_check_method=pass_all
2995 ;;
2996
2997 bsdi[[45]]*)
2998 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2999 lt_cv_file_magic_cmd='/usr/bin/file -L'
3000 lt_cv_file_magic_test_file=/shlib/libc.so
3001 ;;
3002
3003 cygwin*)
3004 # func_win32_libid is a shell function defined in ltmain.sh
3005 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3006 lt_cv_file_magic_cmd='func_win32_libid'
3007 ;;
3008
3009 mingw* | pw32*)
3010 # Base MSYS/MinGW do not provide the 'file' command needed by
3011 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3012 # unless we find 'file', for example because we are cross-compiling.
3013 if ( file / ) >/dev/null 2>&1; then
3014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3015 lt_cv_file_magic_cmd='func_win32_libid'
3016 else
3017 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3018 lt_cv_file_magic_cmd='$OBJDUMP -f'
3019 fi
3020 ;;
3021
3022 cegcc)
3023 # use the weaker test based on 'objdump'. See mingw*.
3024 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3025 lt_cv_file_magic_cmd='$OBJDUMP -f'
3026 ;;
3027
3028 darwin* | rhapsody*)
3029 lt_cv_deplibs_check_method=pass_all
3030 ;;
3031
3032 freebsd* | dragonfly*)
3033 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3034 case $host_cpu in
3035 i*86 )
3036 # Not sure whether the presence of OpenBSD here was a mistake.
3037 # Let's accept both of them until this is cleared up.
3038 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3039 lt_cv_file_magic_cmd=/usr/bin/file
3040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3041 ;;
3042 esac
3043 else
3044 lt_cv_deplibs_check_method=pass_all
3045 fi
3046 ;;
3047
3048 gnu*)
3049 lt_cv_deplibs_check_method=pass_all
3050 ;;
3051
3052 hpux10.20* | hpux11*)
3053 lt_cv_file_magic_cmd=/usr/bin/file
3054 case $host_cpu in
3055 ia64*)
3056 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3057 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3058 ;;
3059 hppa*64*)
3060 [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]']
3061 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3062 ;;
3063 *)
3064 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3065 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3066 ;;
3067 esac
3068 ;;
3069
3070 interix[[3-9]]*)
3071 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3072 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3073 ;;
3074
3075 irix5* | irix6* | nonstopux*)
3076 case $LD in
3077 *-32|*"-32 ") libmagic=32-bit;;
3078 *-n32|*"-n32 ") libmagic=N32;;
3079 *-64|*"-64 ") libmagic=64-bit;;
3080 *) libmagic=never-match;;
3081 esac
3082 lt_cv_deplibs_check_method=pass_all
3083 ;;
3084
3085 # This must be Linux ELF.
3086 linux* | k*bsd*-gnu)
3087 lt_cv_deplibs_check_method=pass_all
3088 ;;
3089
3090 netbsd* | netbsdelf*-gnu)
3091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3092 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3093 else
3094 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3095 fi
3096 ;;
3097
3098 newos6*)
3099 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3100 lt_cv_file_magic_cmd=/usr/bin/file
3101 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3102 ;;
3103
3104 *nto* | *qnx*)
3105 lt_cv_deplibs_check_method=pass_all
3106 ;;
3107
3108 openbsd*)
3109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3110 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3111 else
3112 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3113 fi
3114 ;;
3115
3116 osf3* | osf4* | osf5*)
3117 lt_cv_deplibs_check_method=pass_all
3118 ;;
3119
3120 rdos*)
3121 lt_cv_deplibs_check_method=pass_all
3122 ;;
3123
3124 solaris*)
3125 lt_cv_deplibs_check_method=pass_all
3126 ;;
3127
3128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3129 lt_cv_deplibs_check_method=pass_all
3130 ;;
3131
3132 sysv4 | sysv4.3*)
3133 case $host_vendor in
3134 motorola)
3135 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3137 ;;
3138 ncr)
3139 lt_cv_deplibs_check_method=pass_all
3140 ;;
3141 sequent)
3142 lt_cv_file_magic_cmd='/bin/file'
3143 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3144 ;;
3145 sni)
3146 lt_cv_file_magic_cmd='/bin/file'
3147 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3148 lt_cv_file_magic_test_file=/lib/libc.so
3149 ;;
3150 siemens)
3151 lt_cv_deplibs_check_method=pass_all
3152 ;;
3153 pc)
3154 lt_cv_deplibs_check_method=pass_all
3155 ;;
3156 esac
3157 ;;
3158
3159 tpf*)
3160 lt_cv_deplibs_check_method=pass_all
3161 ;;
3162 esac
3163 ])
3164 file_magic_cmd=$lt_cv_file_magic_cmd
3165 deplibs_check_method=$lt_cv_deplibs_check_method
3166 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3167
3168 _LT_DECL([], [deplibs_check_method], [1],
3169 [Method to check whether dependent libraries are shared objects])
3170 _LT_DECL([], [file_magic_cmd], [1],
3171 [Command to use when deplibs_check_method == "file_magic"])
3172 ])# _LT_CHECK_MAGIC_METHOD
3173
3174
3175 # LT_PATH_NM
3176 # ----------
3177 # find the pathname to a BSD- or MS-compatible name lister
3178 AC_DEFUN([LT_PATH_NM],
3179 [AC_REQUIRE([AC_PROG_CC])dnl
3180 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3181 [if test -n "$NM"; then
3182 # Let the user override the test.
3183 lt_cv_path_NM="$NM"
3184 else
3185 lt_nm_to_check="${ac_tool_prefix}nm"
3186 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3187 lt_nm_to_check="$lt_nm_to_check nm"
3188 fi
3189 for lt_tmp_nm in $lt_nm_to_check; do
3190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3191 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3192 IFS="$lt_save_ifs"
3193 test -z "$ac_dir" && ac_dir=.
3194 tmp_nm="$ac_dir/$lt_tmp_nm"
3195 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3196 # Check to see if the nm accepts a BSD-compat flag.
3197 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3198 # nm: unknown option "B" ignored
3199 # Tru64's nm complains that /dev/null is an invalid object file
3200 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3201 */dev/null* | *'Invalid file or object type'*)
3202 lt_cv_path_NM="$tmp_nm -B"
3203 break
3204 ;;
3205 *)
3206 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3207 */dev/null*)
3208 lt_cv_path_NM="$tmp_nm -p"
3209 break
3210 ;;
3211 *)
3212 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3213 continue # so that we can try to find one that supports BSD flags
3214 ;;
3215 esac
3216 ;;
3217 esac
3218 fi
3219 done
3220 IFS="$lt_save_ifs"
3221 done
3222 : ${lt_cv_path_NM=no}
3223 fi])
3224 if test "$lt_cv_path_NM" != "no"; then
3225 NM="$lt_cv_path_NM"
3226 else
3227 # Didn't find any BSD compatible name lister, look for dumpbin.
3228 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3229 AC_SUBST([DUMPBIN])
3230 if test "$DUMPBIN" != ":"; then
3231 NM="$DUMPBIN"
3232 fi
3233 fi
3234 test -z "$NM" && NM=nm
3235 AC_SUBST([NM])
3236 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3237
3238 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3239 [lt_cv_nm_interface="BSD nm"
3240 echo "int some_variable = 0;" > conftest.$ac_ext
3241 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3242 (eval "$ac_compile" 2>conftest.err)
3243 cat conftest.err >&AS_MESSAGE_LOG_FD
3244 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3245 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3246 cat conftest.err >&AS_MESSAGE_LOG_FD
3247 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3248 cat conftest.out >&AS_MESSAGE_LOG_FD
3249 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3250 lt_cv_nm_interface="MS dumpbin"
3251 fi
3252 rm -f conftest*])
3253 ])# LT_PATH_NM
3254
3255 # Old names:
3256 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3257 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3258 dnl aclocal-1.4 backwards compatibility:
3259 dnl AC_DEFUN([AM_PROG_NM], [])
3260 dnl AC_DEFUN([AC_PROG_NM], [])
3261
3262
3263 # LT_LIB_M
3264 # --------
3265 # check for math library
3266 AC_DEFUN([LT_LIB_M],
3267 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3268 LIBM=
3269 case $host in
3270 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3271 # These system don't have libm, or don't need it
3272 ;;
3273 *-ncr-sysv4.3*)
3274 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3275 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3276 ;;
3277 *)
3278 AC_CHECK_LIB(m, cos, LIBM="-lm")
3279 ;;
3280 esac
3281 AC_SUBST([LIBM])
3282 ])# LT_LIB_M
3283
3284 # Old name:
3285 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3286 dnl aclocal-1.4 backwards compatibility:
3287 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3288
3289
3290 # _LT_COMPILER_NO_RTTI([TAGNAME])
3291 # -------------------------------
3292 m4_defun([_LT_COMPILER_NO_RTTI],
3293 [m4_require([_LT_TAG_COMPILER])dnl
3294
3295 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3296
3297 if test "$GCC" = yes; then
3298 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3299
3300 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3301 lt_cv_prog_compiler_rtti_exceptions,
3302 [-fno-rtti -fno-exceptions], [],
3303 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3304 fi
3305 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3306 [Compiler flag to turn off builtin functions])
3307 ])# _LT_COMPILER_NO_RTTI
3308
3309
3310 # _LT_CMD_GLOBAL_SYMBOLS
3311 # ----------------------
3312 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3313 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3314 AC_REQUIRE([AC_PROG_CC])dnl
3315 AC_REQUIRE([LT_PATH_NM])dnl
3316 AC_REQUIRE([LT_PATH_LD])dnl
3317 m4_require([_LT_DECL_SED])dnl
3318 m4_require([_LT_DECL_EGREP])dnl
3319 m4_require([_LT_TAG_COMPILER])dnl
3320
3321 # Check for command to grab the raw symbol name followed by C symbol from nm.
3322 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3323 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3324 [
3325 # These are sane defaults that work on at least a few old systems.
3326 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3327
3328 # Character class describing NM global symbol codes.
3329 symcode='[[BCDEGRST]]'
3330
3331 # Regexp to match symbols that can be accessed directly from C.
3332 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3333
3334 # Define system-specific variables.
3335 case $host_os in
3336 aix*)
3337 symcode='[[BCDT]]'
3338 ;;
3339 cygwin* | mingw* | pw32* | cegcc*)
3340 symcode='[[ABCDGISTW]]'
3341 ;;
3342 hpux*)
3343 if test "$host_cpu" = ia64; then
3344 symcode='[[ABCDEGRST]]'
3345 fi
3346 ;;
3347 irix* | nonstopux*)
3348 symcode='[[BCDEGRST]]'
3349 ;;
3350 osf*)
3351 symcode='[[BCDEGQRST]]'
3352 ;;
3353 solaris*)
3354 symcode='[[BDRT]]'
3355 ;;
3356 sco3.2v5*)
3357 symcode='[[DT]]'
3358 ;;
3359 sysv4.2uw2*)
3360 symcode='[[DT]]'
3361 ;;
3362 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3363 symcode='[[ABDT]]'
3364 ;;
3365 sysv4)
3366 symcode='[[DFNSTU]]'
3367 ;;
3368 esac
3369
3370 # If we're using GNU nm, then use its standard symbol codes.
3371 case `$NM -V 2>&1` in
3372 *GNU* | *'with BFD'*)
3373 symcode='[[ABCDGIRSTW]]' ;;
3374 esac
3375
3376 # Transform an extracted symbol line into a proper C declaration.
3377 # Some systems (esp. on ia64) link data and code symbols differently,
3378 # so use this general approach.
3379 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3380
3381 # Transform an extracted symbol line into symbol name and symbol address
3382 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3383 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3384
3385 # Handle CRLF in mingw tool chain
3386 opt_cr=
3387 case $build_os in
3388 mingw*)
3389 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3390 ;;
3391 esac
3392
3393 # Try without a prefix underscore, then with it.
3394 for ac_symprfx in "" "_"; do
3395
3396 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3397 symxfrm="\\1 $ac_symprfx\\2 \\2"
3398
3399 # Write the raw and C identifiers.
3400 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3401 # Fake it for dumpbin and say T for any non-static function
3402 # and D for any global variable.
3403 # Also find C++ and __fastcall symbols from MSVC++,
3404 # which start with @ or ?.
3405 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3406 " {last_section=section; section=\$ 3};"\
3407 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3408 " \$ 0!~/External *\|/{next};"\
3409 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3410 " {if(hide[section]) next};"\
3411 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3412 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3413 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3414 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3415 " ' prfx=^$ac_symprfx]"
3416 else
3417 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3418 fi
3419
3420 # Check to see that the pipe works correctly.
3421 pipe_works=no
3422
3423 rm -f conftest*
3424 cat > conftest.$ac_ext <<_LT_EOF
3425 #ifdef __cplusplus
3426 extern "C" {
3427 #endif
3428 char nm_test_var;
3429 void nm_test_func(void);
3430 void nm_test_func(void){}
3431 #ifdef __cplusplus
3432 }
3433 #endif
3434 int main(){nm_test_var='a';nm_test_func();return(0);}
3435 _LT_EOF
3436
3437 if AC_TRY_EVAL(ac_compile); then
3438 # Now try to grab the symbols.
3439 nlist=conftest.nm
3440 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3441 # Try sorting and uniquifying the output.
3442 if sort "$nlist" | uniq > "$nlist"T; then
3443 mv -f "$nlist"T "$nlist"
3444 else
3445 rm -f "$nlist"T
3446 fi
3447
3448 # Make sure that we snagged all the symbols we need.
3449 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3450 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3451 cat <<_LT_EOF > conftest.$ac_ext
3452 #ifdef __cplusplus
3453 extern "C" {
3454 #endif
3455
3456 _LT_EOF
3457 # Now generate the symbol file.
3458 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3459
3460 cat <<_LT_EOF >> conftest.$ac_ext
3461
3462 /* The mapping between symbol names and symbols. */
3463 const struct {
3464 const char *name;
3465 void *address;
3466 }
3467 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3468 {
3469 { "@PROGRAM@", (void *) 0 },
3470 _LT_EOF
3471 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3472 cat <<\_LT_EOF >> conftest.$ac_ext
3473 {0, (void *) 0}
3474 };
3475
3476 /* This works around a problem in FreeBSD linker */
3477 #ifdef FREEBSD_WORKAROUND
3478 static const void *lt_preloaded_setup() {
3479 return lt__PROGRAM__LTX_preloaded_symbols;
3480 }
3481 #endif
3482
3483 #ifdef __cplusplus
3484 }
3485 #endif
3486 _LT_EOF
3487 # Now try linking the two files.
3488 mv conftest.$ac_objext conftstm.$ac_objext
3489 lt_save_LIBS="$LIBS"
3490 lt_save_CFLAGS="$CFLAGS"
3491 LIBS="conftstm.$ac_objext"
3492 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3493 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3494 pipe_works=yes
3495 fi
3496 LIBS="$lt_save_LIBS"
3497 CFLAGS="$lt_save_CFLAGS"
3498 else
3499 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3500 fi
3501 else
3502 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3503 fi
3504 else
3505 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3506 fi
3507 else
3508 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3509 cat conftest.$ac_ext >&5
3510 fi
3511 rm -rf conftest* conftst*
3512
3513 # Do not use the global_symbol_pipe unless it works.
3514 if test "$pipe_works" = yes; then
3515 break
3516 else
3517 lt_cv_sys_global_symbol_pipe=
3518 fi
3519 done
3520 ])
3521 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3522 lt_cv_sys_global_symbol_to_cdecl=
3523 fi
3524 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3525 AC_MSG_RESULT(failed)
3526 else
3527 AC_MSG_RESULT(ok)
3528 fi
3529
3530 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3531 [Take the output of nm and produce a listing of raw symbols and C names])
3532 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3533 [Transform the output of nm in a proper C declaration])
3534 _LT_DECL([global_symbol_to_c_name_address],
3535 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3536 [Transform the output of nm in a C name address pair])
3537 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3538 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3539 [Transform the output of nm in a C name address pair when lib prefix is needed])
3540 ]) # _LT_CMD_GLOBAL_SYMBOLS
3541
3542
3543 # _LT_COMPILER_PIC([TAGNAME])
3544 # ---------------------------
3545 m4_defun([_LT_COMPILER_PIC],
3546 [m4_require([_LT_TAG_COMPILER])dnl
3547 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3548 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3549 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3550
3551 AC_MSG_CHECKING([for $compiler option to produce PIC])
3552 m4_if([$1], [CXX], [
3553 # C++ specific cases for pic, static, wl, etc.
3554 if test "$GXX" = yes; then
3555 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3556 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3557
3558 case $host_os in
3559 aix*)
3560 # All AIX code is PIC.
3561 if test "$host_cpu" = ia64; then
3562 # AIX 5 now supports IA64 processor
3563 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3564 fi
3565 ;;
3566
3567 amigaos*)
3568 case $host_cpu in
3569 powerpc)
3570 # see comment about AmigaOS4 .so support
3571 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3572 ;;
3573 m68k)
3574 # FIXME: we need at least 68020 code to build shared libraries, but
3575 # adding the `-m68020' flag to GCC prevents building anything better,
3576 # like `-m68040'.
3577 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3578 ;;
3579 esac
3580 ;;
3581
3582 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3583 # PIC is the default for these OSes.
3584 ;;
3585 mingw* | cygwin* | os2* | pw32* | cegcc*)
3586 # This hack is so that the source file can tell whether it is being
3587 # built for inclusion in a dll (and should export symbols for example).
3588 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3589 # (--disable-auto-import) libraries
3590 m4_if([$1], [GCJ], [],
3591 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3592 ;;
3593 darwin* | rhapsody*)
3594 # PIC is the default on this platform
3595 # Common symbols not allowed in MH_DYLIB files
3596 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3597 ;;
3598 *djgpp*)
3599 # DJGPP does not support shared libraries at all
3600 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3601 ;;
3602 interix[[3-9]]*)
3603 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3604 # Instead, we relocate shared libraries at runtime.
3605 ;;
3606 sysv4*MP*)
3607 if test -d /usr/nec; then
3608 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3609 fi
3610 ;;
3611 hpux*)
3612 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3613 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3614 # sets the default TLS model and affects inlining.
3615 case $host_cpu in
3616 hppa*64*)
3617 ;;
3618 *)
3619 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3620 ;;
3621 esac
3622 ;;
3623 *qnx* | *nto*)
3624 # QNX uses GNU C++, but need to define -shared option too, otherwise
3625 # it will coredump.
3626 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3627 ;;
3628 *)
3629 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3630 ;;
3631 esac
3632 else
3633 case $host_os in
3634 aix[[4-9]]*)
3635 # All AIX code is PIC.
3636 if test "$host_cpu" = ia64; then
3637 # AIX 5 now supports IA64 processor
3638 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3639 else
3640 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3641 fi
3642 ;;
3643 chorus*)
3644 case $cc_basename in
3645 cxch68*)
3646 # Green Hills C++ Compiler
3647 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3648 ;;
3649 esac
3650 ;;
3651 dgux*)
3652 case $cc_basename in
3653 ec++*)
3654 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3655 ;;
3656 ghcx*)
3657 # Green Hills C++ Compiler
3658 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3659 ;;
3660 *)
3661 ;;
3662 esac
3663 ;;
3664 freebsd* | dragonfly*)
3665 # FreeBSD uses GNU C++
3666 ;;
3667 hpux9* | hpux10* | hpux11*)
3668 case $cc_basename in
3669 CC*)
3670 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3671 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3672 if test "$host_cpu" != ia64; then
3673 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3674 fi
3675 ;;
3676 aCC*)
3677 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3678 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3679 case $host_cpu in
3680 hppa*64*|ia64*)
3681 # +Z the default
3682 ;;
3683 *)
3684 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3685 ;;
3686 esac
3687 ;;
3688 *)
3689 ;;
3690 esac
3691 ;;
3692 interix*)
3693 # This is c89, which is MS Visual C++ (no shared libs)
3694 # Anyone wants to do a port?
3695 ;;
3696 irix5* | irix6* | nonstopux*)
3697 case $cc_basename in
3698 CC*)
3699 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3700 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3701 # CC pic flag -KPIC is the default.
3702 ;;
3703 *)
3704 ;;
3705 esac
3706 ;;
3707 linux* | k*bsd*-gnu)
3708 case $cc_basename in
3709 KCC*)
3710 # KAI C++ Compiler
3711 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3712 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3713 ;;
3714 ecpc* )
3715 # old Intel C++ for x86_64 which still supported -KPIC.
3716 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3717 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3718 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3719 ;;
3720 icpc* )
3721 # Intel C++, used to be incompatible with GCC.
3722 # ICC 10 doesn't accept -KPIC any more.
3723 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3724 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3725 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3726 ;;
3727 pgCC* | pgcpp*)
3728 # Portland Group C++ compiler
3729 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3730 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3731 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3732 ;;
3733 cxx*)
3734 # Compaq C++
3735 # Make sure the PIC flag is empty. It appears that all Alpha
3736 # Linux and Compaq Tru64 Unix objects are PIC.
3737 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3738 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3739 ;;
3740 xlc* | xlC*)
3741 # IBM XL 8.0 on PPC
3742 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3743 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3744 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3745 ;;
3746 *)
3747 case `$CC -V 2>&1 | sed 5q` in
3748 *Sun\ C*)
3749 # Sun C++ 5.9
3750 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3751 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3752 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3753 ;;
3754 esac
3755 ;;
3756 esac
3757 ;;
3758 lynxos*)
3759 ;;
3760 m88k*)
3761 ;;
3762 mvs*)
3763 case $cc_basename in
3764 cxx*)
3765 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3766 ;;
3767 *)
3768 ;;
3769 esac
3770 ;;
3771 netbsd* | netbsdelf*-gnu)
3772 ;;
3773 *qnx* | *nto*)
3774 # QNX uses GNU C++, but need to define -shared option too, otherwise
3775 # it will coredump.
3776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3777 ;;
3778 osf3* | osf4* | osf5*)
3779 case $cc_basename in
3780 KCC*)
3781 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3782 ;;
3783 RCC*)
3784 # Rational C++ 2.4.1
3785 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3786 ;;
3787 cxx*)
3788 # Digital/Compaq C++
3789 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3790 # Make sure the PIC flag is empty. It appears that all Alpha
3791 # Linux and Compaq Tru64 Unix objects are PIC.
3792 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3793 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3794 ;;
3795 *)
3796 ;;
3797 esac
3798 ;;
3799 psos*)
3800 ;;
3801 solaris*)
3802 case $cc_basename in
3803 CC*)
3804 # Sun C++ 4.2, 5.x and Centerline C++
3805 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3806 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3807 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3808 ;;
3809 gcx*)
3810 # Green Hills C++ Compiler
3811 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3812 ;;
3813 *)
3814 ;;
3815 esac
3816 ;;
3817 sunos4*)
3818 case $cc_basename in
3819 CC*)
3820 # Sun C++ 4.x
3821 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3822 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3823 ;;
3824 lcc*)
3825 # Lucid
3826 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3827 ;;
3828 *)
3829 ;;
3830 esac
3831 ;;
3832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3833 case $cc_basename in
3834 CC*)
3835 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3836 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3837 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3838 ;;
3839 esac
3840 ;;
3841 tandem*)
3842 case $cc_basename in
3843 NCC*)
3844 # NonStop-UX NCC 3.20
3845 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3846 ;;
3847 *)
3848 ;;
3849 esac
3850 ;;
3851 vxworks*)
3852 ;;
3853 *)
3854 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3855 ;;
3856 esac
3857 fi
3858 ],
3859 [
3860 if test "$GCC" = yes; then
3861 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3862 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3863
3864 case $host_os in
3865 aix*)
3866 # All AIX code is PIC.
3867 if test "$host_cpu" = ia64; then
3868 # AIX 5 now supports IA64 processor
3869 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3870 fi
3871 ;;
3872
3873 amigaos*)
3874 case $host_cpu in
3875 powerpc)
3876 # see comment about AmigaOS4 .so support
3877 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3878 ;;
3879 m68k)
3880 # FIXME: we need at least 68020 code to build shared libraries, but
3881 # adding the `-m68020' flag to GCC prevents building anything better,
3882 # like `-m68040'.
3883 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3884 ;;
3885 esac
3886 ;;
3887
3888 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3889 # PIC is the default for these OSes.
3890 ;;
3891
3892 mingw* | cygwin* | pw32* | os2* | cegcc*)
3893 # This hack is so that the source file can tell whether it is being
3894 # built for inclusion in a dll (and should export symbols for example).
3895 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3896 # (--disable-auto-import) libraries
3897 m4_if([$1], [GCJ], [],
3898 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3899 ;;
3900
3901 darwin* | rhapsody*)
3902 # PIC is the default on this platform
3903 # Common symbols not allowed in MH_DYLIB files
3904 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3905 ;;
3906
3907 hpux*)
3908 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3909 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3910 # sets the default TLS model and affects inlining.
3911 case $host_cpu in
3912 hppa*64*)
3913 # +Z the default
3914 ;;
3915 *)
3916 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3917 ;;
3918 esac
3919 ;;
3920
3921 interix[[3-9]]*)
3922 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3923 # Instead, we relocate shared libraries at runtime.
3924 ;;
3925
3926 msdosdjgpp*)
3927 # Just because we use GCC doesn't mean we suddenly get shared libraries
3928 # on systems that don't support them.
3929 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3930 enable_shared=no
3931 ;;
3932
3933 *nto* | *qnx*)
3934 # QNX uses GNU C++, but need to define -shared option too, otherwise
3935 # it will coredump.
3936 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3937 ;;
3938
3939 sysv4*MP*)
3940 if test -d /usr/nec; then
3941 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3942 fi
3943 ;;
3944
3945 *)
3946 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3947 ;;
3948 esac
3949 else
3950 # PORTME Check for flag to pass linker flags through the system compiler.
3951 case $host_os in
3952 aix*)
3953 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3954 if test "$host_cpu" = ia64; then
3955 # AIX 5 now supports IA64 processor
3956 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3957 else
3958 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3959 fi
3960 ;;
3961
3962 mingw* | cygwin* | pw32* | os2* | cegcc*)
3963 # This hack is so that the source file can tell whether it is being
3964 # built for inclusion in a dll (and should export symbols for example).
3965 m4_if([$1], [GCJ], [],
3966 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3967 ;;
3968
3969 hpux9* | hpux10* | hpux11*)
3970 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3971 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3972 # not for PA HP-UX.
3973 case $host_cpu in
3974 hppa*64*|ia64*)
3975 # +Z the default
3976 ;;
3977 *)
3978 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3979 ;;
3980 esac
3981 # Is there a better lt_prog_compiler_static that works with the bundled CC?
3982 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3983 ;;
3984
3985 irix5* | irix6* | nonstopux*)
3986 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3987 # PIC (with -KPIC) is the default.
3988 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3989 ;;
3990
3991 linux* | k*bsd*-gnu)
3992 case $cc_basename in
3993 # old Intel for x86_64 which still supported -KPIC.
3994 ecc*)
3995 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3996 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3997 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3998 ;;
3999 # icc used to be incompatible with GCC.
4000 # ICC 10 doesn't accept -KPIC any more.
4001 icc* | ifort*)
4002 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4003 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4004 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4005 ;;
4006 # Lahey Fortran 8.1.
4007 lf95*)
4008 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4009 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4010 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4011 ;;
4012 pgcc* | pgf77* | pgf90* | pgf95*)
4013 # Portland Group compilers (*not* the Pentium gcc compiler,
4014 # which looks to be a dead project)
4015 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4016 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4017 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4018 ;;
4019 ccc*)
4020 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4021 # All Alpha code is PIC.
4022 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4023 ;;
4024 xl*)
4025 # IBM XL C 8.0/Fortran 10.1 on PPC
4026 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4027 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4028 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4029 ;;
4030 *)
4031 case `$CC -V 2>&1 | sed 5q` in
4032 *Sun\ C*)
4033 # Sun C 5.9
4034 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4035 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4036 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4037 ;;
4038 *Sun\ F*)
4039 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4040 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4041 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4042 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4043 ;;
4044 esac
4045 ;;
4046 esac
4047 ;;
4048
4049 newsos6)
4050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4051 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4052 ;;
4053
4054 *nto* | *qnx*)
4055 # QNX uses GNU C++, but need to define -shared option too, otherwise
4056 # it will coredump.
4057 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4058 ;;
4059
4060 osf3* | osf4* | osf5*)
4061 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4062 # All OSF/1 code is PIC.
4063 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4064 ;;
4065
4066 rdos*)
4067 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4068 ;;
4069
4070 solaris*)
4071 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4072 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4073 case $cc_basename in
4074 f77* | f90* | f95*)
4075 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4076 *)
4077 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4078 esac
4079 ;;
4080
4081 sunos4*)
4082 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4083 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4084 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4085 ;;
4086
4087 sysv4 | sysv4.2uw2* | sysv4.3*)
4088 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4089 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4090 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4091 ;;
4092
4093 sysv4*MP*)
4094 if test -d /usr/nec ;then
4095 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4096 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4097 fi
4098 ;;
4099
4100 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4101 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4102 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4103 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4104 ;;
4105
4106 unicos*)
4107 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4108 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4109 ;;
4110
4111 uts4*)
4112 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4113 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4114 ;;
4115
4116 *)
4117 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4118 ;;
4119 esac
4120 fi
4121 ])
4122 case $host_os in
4123 # For platforms which do not support PIC, -DPIC is meaningless:
4124 *djgpp*)
4125 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4126 ;;
4127 *)
4128 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4129 ;;
4130 esac
4131 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4132 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4133 [How to pass a linker flag through the compiler])
4134
4135 #
4136 # Check to make sure the PIC flag actually works.
4137 #
4138 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4139 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4140 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4141 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4142 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4143 "" | " "*) ;;
4144 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4145 esac],
4146 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4147 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4148 fi
4149 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4150 [Additional compiler flags for building library objects])
4151
4152 #
4153 # Check to make sure the static flag actually works.
4154 #
4155 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4156 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4157 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4158 $lt_tmp_static_flag,
4159 [],
4160 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4161 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4162 [Compiler flag to prevent dynamic linking])
4163 ])# _LT_COMPILER_PIC
4164
4165
4166 # _LT_LINKER_SHLIBS([TAGNAME])
4167 # ----------------------------
4168 # See if the linker supports building shared libraries.
4169 m4_defun([_LT_LINKER_SHLIBS],
4170 [AC_REQUIRE([LT_PATH_LD])dnl
4171 AC_REQUIRE([LT_PATH_NM])dnl
4172 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4173 m4_require([_LT_DECL_EGREP])dnl
4174 m4_require([_LT_DECL_SED])dnl
4175 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4176 m4_require([_LT_TAG_COMPILER])dnl
4177 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4178 m4_if([$1], [CXX], [
4179 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4180 case $host_os in
4181 aix[[4-9]]*)
4182 # If we're using GNU nm, then we don't want the "-C" option.
4183 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4184 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4185 _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'
4186 else
4187 _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'
4188 fi
4189 ;;
4190 pw32*)
4191 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4192 ;;
4193 cygwin* | mingw* | cegcc*)
4194 _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'
4195 ;;
4196 linux* | k*bsd*-gnu)
4197 _LT_TAGVAR(link_all_deplibs, $1)=no
4198 ;;
4199 *)
4200 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4201 ;;
4202 esac
4203 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4204 ], [
4205 runpath_var=
4206 _LT_TAGVAR(allow_undefined_flag, $1)=
4207 _LT_TAGVAR(always_export_symbols, $1)=no
4208 _LT_TAGVAR(archive_cmds, $1)=
4209 _LT_TAGVAR(archive_expsym_cmds, $1)=
4210 _LT_TAGVAR(compiler_needs_object, $1)=no
4211 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4212 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4213 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4214 _LT_TAGVAR(hardcode_automatic, $1)=no
4215 _LT_TAGVAR(hardcode_direct, $1)=no
4216 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4217 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4218 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4219 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4220 _LT_TAGVAR(hardcode_minus_L, $1)=no
4221 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4222 _LT_TAGVAR(inherit_rpath, $1)=no
4223 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4224 _LT_TAGVAR(module_cmds, $1)=
4225 _LT_TAGVAR(module_expsym_cmds, $1)=
4226 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4227 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4228 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4229 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4230 # include_expsyms should be a list of space-separated symbols to be *always*
4231 # included in the symbol list
4232 _LT_TAGVAR(include_expsyms, $1)=
4233 # exclude_expsyms can be an extended regexp of symbols to exclude
4234 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4235 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4236 # as well as any symbol that contains `d'.
4237 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4238 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4239 # platforms (ab)use it in PIC code, but their linkers get confused if
4240 # the symbol is explicitly referenced. Since portable code cannot
4241 # rely on this symbol name, it's probably fine to never include it in
4242 # preloaded symbol tables.
4243 # Exclude shared library initialization/finalization symbols.
4244 dnl Note also adjust exclude_expsyms for C++ above.
4245 extract_expsyms_cmds=
4246
4247 case $host_os in
4248 cygwin* | mingw* | pw32* | cegcc*)
4249 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4250 # When not using gcc, we currently assume that we are using
4251 # Microsoft Visual C++.
4252 if test "$GCC" != yes; then
4253 with_gnu_ld=no
4254 fi
4255 ;;
4256 interix*)
4257 # we just hope/assume this is gcc and not c89 (= MSVC++)
4258 with_gnu_ld=yes
4259 ;;
4260 openbsd*)
4261 with_gnu_ld=no
4262 ;;
4263 linux* | k*bsd*-gnu)
4264 _LT_TAGVAR(link_all_deplibs, $1)=no
4265 ;;
4266 esac
4267
4268 _LT_TAGVAR(ld_shlibs, $1)=yes
4269 if test "$with_gnu_ld" = yes; then
4270 # If archive_cmds runs LD, not CC, wlarc should be empty
4271 wlarc='${wl}'
4272
4273 # Set some defaults for GNU ld with shared library support. These
4274 # are reset later if shared libraries are not supported. Putting them
4275 # here allows them to be overridden if necessary.
4276 runpath_var=LD_RUN_PATH
4277 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4278 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4279 # ancient GNU ld didn't support --whole-archive et. al.
4280 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4281 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4282 else
4283 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4284 fi
4285 supports_anon_versioning=no
4286 case `$LD -v 2>&1` in
4287 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4288 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4289 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4290 *\ 2.11.*) ;; # other 2.11 versions
4291 *) supports_anon_versioning=yes ;;
4292 esac
4293
4294 # See if GNU ld supports shared libraries.
4295 case $host_os in
4296 aix[[3-9]]*)
4297 # On AIX/PPC, the GNU linker is very broken
4298 if test "$host_cpu" != ia64; then
4299 _LT_TAGVAR(ld_shlibs, $1)=no
4300 cat <<_LT_EOF 1>&2
4301
4302 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4303 *** to be unable to reliably create shared libraries on AIX.
4304 *** Therefore, libtool is disabling shared libraries support. If you
4305 *** really care for shared libraries, you may want to modify your PATH
4306 *** so that a non-GNU linker is found, and then restart.
4307
4308 _LT_EOF
4309 fi
4310 ;;
4311
4312 amigaos*)
4313 case $host_cpu in
4314 powerpc)
4315 # see comment about AmigaOS4 .so support
4316 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4317 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4318 ;;
4319 m68k)
4320 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4321 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4322 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4323 ;;
4324 esac
4325 ;;
4326
4327 beos*)
4328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4329 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4330 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4331 # support --undefined. This deserves some investigation. FIXME
4332 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4333 else
4334 _LT_TAGVAR(ld_shlibs, $1)=no
4335 fi
4336 ;;
4337
4338 cygwin* | mingw* | pw32* | cegcc*)
4339 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4340 # as there is no search path for DLLs.
4341 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4342 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4343 _LT_TAGVAR(always_export_symbols, $1)=no
4344 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4345 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4346
4347 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4348 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4349 # If the export-symbols file already is a .def file (1st line
4350 # is EXPORTS), use it as is; otherwise, prepend...
4351 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4352 cp $export_symbols $output_objdir/$soname.def;
4353 else
4354 echo EXPORTS > $output_objdir/$soname.def;
4355 cat $export_symbols >> $output_objdir/$soname.def;
4356 fi~
4357 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4358 else
4359 _LT_TAGVAR(ld_shlibs, $1)=no
4360 fi
4361 ;;
4362
4363 interix[[3-9]]*)
4364 _LT_TAGVAR(hardcode_direct, $1)=no
4365 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4367 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4368 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4369 # Instead, shared libraries are loaded at an image base (0x10000000 by
4370 # default) and relocated if they conflict, which is a slow very memory
4371 # consuming and fragmenting process. To avoid this, we pick a random,
4372 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4373 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4374 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4375 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4376 ;;
4377
4378 gnu* | linux* | tpf* | k*bsd*-gnu)
4379 tmp_diet=no
4380 if test "$host_os" = linux-dietlibc; then
4381 case $cc_basename in
4382 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4383 esac
4384 fi
4385 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4386 && test "$tmp_diet" = no
4387 then
4388 tmp_addflag=
4389 tmp_sharedflag='-shared'
4390 case $cc_basename,$host_cpu in
4391 pgcc*) # Portland Group C compiler
4392 _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'
4393 tmp_addflag=' $pic_flag'
4394 ;;
4395 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4396 _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'
4397 tmp_addflag=' $pic_flag -Mnomain' ;;
4398 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4399 tmp_addflag=' -i_dynamic' ;;
4400 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4401 tmp_addflag=' -i_dynamic -nofor_main' ;;
4402 ifc* | ifort*) # Intel Fortran compiler
4403 tmp_addflag=' -nofor_main' ;;
4404 lf95*) # Lahey Fortran 8.1
4405 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4406 tmp_sharedflag='--shared' ;;
4407 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4408 tmp_sharedflag='-qmkshrobj'
4409 tmp_addflag= ;;
4410 esac
4411 case `$CC -V 2>&1 | sed 5q` in
4412 *Sun\ C*) # Sun C 5.9
4413 _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'
4414 _LT_TAGVAR(compiler_needs_object, $1)=yes
4415 tmp_sharedflag='-G' ;;
4416 *Sun\ F*) # Sun Fortran 8.3
4417 tmp_sharedflag='-G' ;;
4418 esac
4419 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4420
4421 if test "x$supports_anon_versioning" = xyes; then
4422 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4423 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4424 echo "local: *; };" >> $output_objdir/$libname.ver~
4425 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4426 fi
4427
4428 case $cc_basename in
4429 xlf*)
4430 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4431 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4432 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4433 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4434 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4435 if test "x$supports_anon_versioning" = xyes; then
4436 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4438 echo "local: *; };" >> $output_objdir/$libname.ver~
4439 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4440 fi
4441 ;;
4442 esac
4443 else
4444 _LT_TAGVAR(ld_shlibs, $1)=no
4445 fi
4446 ;;
4447
4448 netbsd* | netbsdelf*-gnu)
4449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4450 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4451 wlarc=
4452 else
4453 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4454 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4455 fi
4456 ;;
4457
4458 solaris*)
4459 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4460 _LT_TAGVAR(ld_shlibs, $1)=no
4461 cat <<_LT_EOF 1>&2
4462
4463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4464 *** create shared libraries on Solaris systems. Therefore, libtool
4465 *** is disabling shared libraries support. We urge you to upgrade GNU
4466 *** binutils to release 2.9.1 or newer. Another option is to modify
4467 *** your PATH or compiler configuration so that the native linker is
4468 *** used, and then restart.
4469
4470 _LT_EOF
4471 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4472 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4473 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4474 else
4475 _LT_TAGVAR(ld_shlibs, $1)=no
4476 fi
4477 ;;
4478
4479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4480 case `$LD -v 2>&1` in
4481 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4482 _LT_TAGVAR(ld_shlibs, $1)=no
4483 cat <<_LT_EOF 1>&2
4484
4485 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4486 *** reliably create shared libraries on SCO systems. Therefore, libtool
4487 *** is disabling shared libraries support. We urge you to upgrade GNU
4488 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4489 *** your PATH or compiler configuration so that the native linker is
4490 *** used, and then restart.
4491
4492 _LT_EOF
4493 ;;
4494 *)
4495 # For security reasons, it is highly recommended that you always
4496 # use absolute paths for naming shared libraries, and exclude the
4497 # DT_RUNPATH tag from executables and libraries. But doing so
4498 # requires that you compile everything twice, which is a pain.
4499 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4500 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4501 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4502 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4503 else
4504 _LT_TAGVAR(ld_shlibs, $1)=no
4505 fi
4506 ;;
4507 esac
4508 ;;
4509
4510 sunos4*)
4511 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4512 wlarc=
4513 _LT_TAGVAR(hardcode_direct, $1)=yes
4514 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4515 ;;
4516
4517 *)
4518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4519 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4520 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4521 else
4522 _LT_TAGVAR(ld_shlibs, $1)=no
4523 fi
4524 ;;
4525 esac
4526
4527 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4528 runpath_var=
4529 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4530 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4531 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4532 fi
4533 else
4534 # PORTME fill in a description of your system's linker (not GNU ld)
4535 case $host_os in
4536 aix3*)
4537 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4538 _LT_TAGVAR(always_export_symbols, $1)=yes
4539 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4540 # Note: this linker hardcodes the directories in LIBPATH if there
4541 # are no directories specified by -L.
4542 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4543 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4544 # Neither direct hardcoding nor static linking is supported with a
4545 # broken collect2.
4546 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4547 fi
4548 ;;
4549
4550 aix[[4-9]]*)
4551 if test "$host_cpu" = ia64; then
4552 # On IA64, the linker does run time linking by default, so we don't
4553 # have to do anything special.
4554 aix_use_runtimelinking=no
4555 exp_sym_flag='-Bexport'
4556 no_entry_flag=""
4557 else
4558 # If we're using GNU nm, then we don't want the "-C" option.
4559 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4560 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4561 _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'
4562 else
4563 _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'
4564 fi
4565 aix_use_runtimelinking=no
4566
4567 # Test if we are trying to use run time linking or normal
4568 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4569 # need to do runtime linking.
4570 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4571 for ld_flag in $LDFLAGS; do
4572 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4573 aix_use_runtimelinking=yes
4574 break
4575 fi
4576 done
4577 ;;
4578 esac
4579
4580 exp_sym_flag='-bexport'
4581 no_entry_flag='-bnoentry'
4582 fi
4583
4584 # When large executables or shared objects are built, AIX ld can
4585 # have problems creating the table of contents. If linking a library
4586 # or program results in "error TOC overflow" add -mminimal-toc to
4587 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4588 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4589
4590 _LT_TAGVAR(archive_cmds, $1)=''
4591 _LT_TAGVAR(hardcode_direct, $1)=yes
4592 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4593 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4594 _LT_TAGVAR(link_all_deplibs, $1)=yes
4595 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
4596
4597 if test "$GCC" = yes; then
4598 case $host_os in aix4.[[012]]|aix4.[[012]].*)
4599 # We only want to do this on AIX 4.2 and lower, the check
4600 # below for broken collect2 doesn't work under 4.3+
4601 collect2name=`${CC} -print-prog-name=collect2`
4602 if test -f "$collect2name" &&
4603 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
4604 then
4605 # We have reworked collect2
4606 :
4607 else
4608 # We have old collect2
4609 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4610 # It fails to find uninstalled libraries when the uninstalled
4611 # path is not listed in the libpath. Setting hardcode_minus_L
4612 # to unsupported forces relinking
4613 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4614 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4615 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4616 fi
4617 ;;
4618 esac
4619 shared_flag='-shared'
4620 if test "$aix_use_runtimelinking" = yes; then
4621 shared_flag="$shared_flag "'${wl}-G'
4622 fi
4623 _LT_TAGVAR(link_all_deplibs, $1)=no
4624 else
4625 # not using gcc
4626 if test "$host_cpu" = ia64; then
4627 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4628 # chokes on -Wl,-G. The following line is correct:
4629 shared_flag='-G'
4630 else
4631 if test "$aix_use_runtimelinking" = yes; then
4632 shared_flag='${wl}-G'
4633 else
4634 shared_flag='${wl}-bM:SRE'
4635 fi
4636 fi
4637 fi
4638
4639 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
4640 # It seems that -bexpall does not export symbols beginning with
4641 # underscore (_), so it is better to generate a list of symbols to export.
4642 _LT_TAGVAR(always_export_symbols, $1)=yes
4643 if test "$aix_use_runtimelinking" = yes; then
4644 # Warning - without using the other runtime loading flags (-brtl),
4645 # -berok will link without error, but may produce a broken library.
4646 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4647 # Determine the default libpath from the value encoded in an
4648 # empty executable.
4649 _LT_SYS_MODULE_PATH_AIX
4650 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4651 _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"
4652 else
4653 if test "$host_cpu" = ia64; then
4654 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4655 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4656 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4657 else
4658 # Determine the default libpath from the value encoded in an
4659 # empty executable.
4660 _LT_SYS_MODULE_PATH_AIX
4661 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4662 # Warning - without using the other run time loading flags,
4663 # -berok will link without error, but may produce a broken library.
4664 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4665 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4666 # Exported symbols can be pulled into shared objects from archives
4667 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4668 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4669 # This is similar to how AIX traditionally builds its shared libraries.
4670 _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'
4671 fi
4672 fi
4673 ;;
4674
4675 amigaos*)
4676 case $host_cpu in
4677 powerpc)
4678 # see comment about AmigaOS4 .so support
4679 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4680 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4681 ;;
4682 m68k)
4683 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4684 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4685 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4686 ;;
4687 esac
4688 ;;
4689
4690 bsdi[[45]]*)
4691 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4692 ;;
4693
4694 cygwin* | mingw* | pw32* | cegcc*)
4695 # When not using gcc, we currently assume that we are using
4696 # Microsoft Visual C++.
4697 # hardcode_libdir_flag_spec is actually meaningless, as there is
4698 # no search path for DLLs.
4699 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4700 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4701 # Tell ltmain to make .lib files, not .a files.
4702 libext=lib
4703 # Tell ltmain to make .dll files, not .so files.
4704 shrext_cmds=".dll"
4705 # FIXME: Setting linknames here is a bad hack.
4706 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4707 # The linker will automatically build a .lib file if we build a DLL.
4708 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4709 # FIXME: Should let the user specify the lib program.
4710 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4711 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4712 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4713 ;;
4714
4715 darwin* | rhapsody*)
4716 _LT_DARWIN_LINKER_FEATURES($1)
4717 ;;
4718
4719 dgux*)
4720 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4721 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4722 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4723 ;;
4724
4725 freebsd1*)
4726 _LT_TAGVAR(ld_shlibs, $1)=no
4727 ;;
4728
4729 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4730 # support. Future versions do this automatically, but an explicit c++rt0.o
4731 # does not break anything, and helps significantly (at the cost of a little
4732 # extra space).
4733 freebsd2.2*)
4734 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4735 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4736 _LT_TAGVAR(hardcode_direct, $1)=yes
4737 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4738 ;;
4739
4740 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4741 freebsd2*)
4742 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4743 _LT_TAGVAR(hardcode_direct, $1)=yes
4744 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4745 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4746 ;;
4747
4748 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4749 freebsd* | dragonfly*)
4750 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4751 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4752 _LT_TAGVAR(hardcode_direct, $1)=yes
4753 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4754 ;;
4755
4756 hpux9*)
4757 if test "$GCC" = yes; then
4758 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4759 else
4760 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4761 fi
4762 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4763 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4764 _LT_TAGVAR(hardcode_direct, $1)=yes
4765
4766 # hardcode_minus_L: Not really in the search PATH,
4767 # but as the default location of the library.
4768 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4769 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4770 ;;
4771
4772 hpux10*)
4773 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4774 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4775 else
4776 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4777 fi
4778 if test "$with_gnu_ld" = no; then
4779 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4780 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4781 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4782 _LT_TAGVAR(hardcode_direct, $1)=yes
4783 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4784 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4785 # hardcode_minus_L: Not really in the search PATH,
4786 # but as the default location of the library.
4787 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4788 fi
4789 ;;
4790
4791 hpux11*)
4792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4793 case $host_cpu in
4794 hppa*64*)
4795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4796 ;;
4797 ia64*)
4798 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4799 ;;
4800 *)
4801 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4802 ;;
4803 esac
4804 else
4805 case $host_cpu in
4806 hppa*64*)
4807 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4808 ;;
4809 ia64*)
4810 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4811 ;;
4812 *)
4813 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4814 ;;
4815 esac
4816 fi
4817 if test "$with_gnu_ld" = no; then
4818 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4819 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4820
4821 case $host_cpu in
4822 hppa*64*|ia64*)
4823 _LT_TAGVAR(hardcode_direct, $1)=no
4824 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4825 ;;
4826 *)
4827 _LT_TAGVAR(hardcode_direct, $1)=yes
4828 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4829 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4830
4831 # hardcode_minus_L: Not really in the search PATH,
4832 # but as the default location of the library.
4833 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4834 ;;
4835 esac
4836 fi
4837 ;;
4838
4839 irix5* | irix6* | nonstopux*)
4840 if test "$GCC" = yes; then
4841 _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'
4842 # Try to use the -exported_symbol ld option, if it does not
4843 # work, assume that -exports_file does not work either and
4844 # implicitly export all symbols.
4845 save_LDFLAGS="$LDFLAGS"
4846 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4847 AC_LINK_IFELSE(int foo(void) {},
4848 _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'
4849 )
4850 LDFLAGS="$save_LDFLAGS"
4851 else
4852 _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'
4853 _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'
4854 fi
4855 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4856 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4857 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4858 _LT_TAGVAR(inherit_rpath, $1)=yes
4859 _LT_TAGVAR(link_all_deplibs, $1)=yes
4860 ;;
4861
4862 netbsd* | netbsdelf*-gnu)
4863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4864 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4865 else
4866 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4867 fi
4868 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4869 _LT_TAGVAR(hardcode_direct, $1)=yes
4870 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4871 ;;
4872
4873 newsos6)
4874 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4875 _LT_TAGVAR(hardcode_direct, $1)=yes
4876 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4877 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4878 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4879 ;;
4880
4881 *nto* | *qnx*)
4882 ;;
4883
4884 openbsd*)
4885 if test -f /usr/libexec/ld.so; then
4886 _LT_TAGVAR(hardcode_direct, $1)=yes
4887 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4888 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4890 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4891 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4892 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4893 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4894 else
4895 case $host_os in
4896 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4897 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4898 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4899 ;;
4900 *)
4901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4902 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4903 ;;
4904 esac
4905 fi
4906 else
4907 _LT_TAGVAR(ld_shlibs, $1)=no
4908 fi
4909 ;;
4910
4911 os2*)
4912 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4913 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4914 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4915 _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'
4916 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4917 ;;
4918
4919 osf3*)
4920 if test "$GCC" = yes; then
4921 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4922 _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'
4923 else
4924 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4925 _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'
4926 fi
4927 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4928 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4929 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4930 ;;
4931
4932 osf4* | osf5*) # as osf3* with the addition of -msym flag
4933 if test "$GCC" = yes; then
4934 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4935 _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'
4936 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4937 else
4938 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4939 _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'
4940 _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~
4941 $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'
4942
4943 # Both c and cxx compiler support -rpath directly
4944 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4945 fi
4946 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4947 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4948 ;;
4949
4950 solaris*)
4951 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4952 if test "$GCC" = yes; then
4953 wlarc='${wl}'
4954 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4955 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4956 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4957 else
4958 case `$CC -V 2>&1` in
4959 *"Compilers 5.0"*)
4960 wlarc=''
4961 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4962 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4963 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4964 ;;
4965 *)
4966 wlarc='${wl}'
4967 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4968 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4969 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4970 ;;
4971 esac
4972 fi
4973 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4974 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4975 case $host_os in
4976 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4977 *)
4978 # The compiler driver will combine and reorder linker options,
4979 # but understands `-z linker_flag'. GCC discards it without `$wl',
4980 # but is careful enough not to reorder.
4981 # Supported since Solaris 2.6 (maybe 2.5.1?)
4982 if test "$GCC" = yes; then
4983 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4984 else
4985 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4986 fi
4987 ;;
4988 esac
4989 _LT_TAGVAR(link_all_deplibs, $1)=yes
4990 ;;
4991
4992 sunos4*)
4993 if test "x$host_vendor" = xsequent; then
4994 # Use $CC to link under sequent, because it throws in some extra .o
4995 # files that make .init and .fini sections work.
4996 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4997 else
4998 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4999 fi
5000 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5001 _LT_TAGVAR(hardcode_direct, $1)=yes
5002 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5003 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5004 ;;
5005
5006 sysv4)
5007 case $host_vendor in
5008 sni)
5009 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5010 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5011 ;;
5012 siemens)
5013 ## LD is ld it makes a PLAMLIB
5014 ## CC just makes a GrossModule.
5015 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5016 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5017 _LT_TAGVAR(hardcode_direct, $1)=no
5018 ;;
5019 motorola)
5020 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5021 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5022 ;;
5023 esac
5024 runpath_var='LD_RUN_PATH'
5025 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5026 ;;
5027
5028 sysv4.3*)
5029 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5030 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5031 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5032 ;;
5033
5034 sysv4*MP*)
5035 if test -d /usr/nec; then
5036 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5037 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5038 runpath_var=LD_RUN_PATH
5039 hardcode_runpath_var=yes
5040 _LT_TAGVAR(ld_shlibs, $1)=yes
5041 fi
5042 ;;
5043
5044 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5045 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5046 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5047 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5048 runpath_var='LD_RUN_PATH'
5049
5050 if test "$GCC" = yes; then
5051 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5052 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5053 else
5054 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5055 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5056 fi
5057 ;;
5058
5059 sysv5* | sco3.2v5* | sco5v6*)
5060 # Note: We can NOT use -z defs as we might desire, because we do not
5061 # link with -lc, and that would cause any symbols used from libc to
5062 # always be unresolved, which means just about no library would
5063 # ever link correctly. If we're not using GNU ld we use -z text
5064 # though, which does catch some bad symbols but isn't as heavy-handed
5065 # as -z defs.
5066 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5067 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5068 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5069 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5070 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5071 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5072 _LT_TAGVAR(link_all_deplibs, $1)=yes
5073 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5074 runpath_var='LD_RUN_PATH'
5075
5076 if test "$GCC" = yes; then
5077 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5078 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5079 else
5080 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5081 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5082 fi
5083 ;;
5084
5085 uts4*)
5086 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5088 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5089 ;;
5090
5091 *)
5092 _LT_TAGVAR(ld_shlibs, $1)=no
5093 ;;
5094 esac
5095
5096 if test x$host_vendor = xsni; then
5097 case $host in
5098 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5099 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5100 ;;
5101 esac
5102 fi
5103 fi
5104 ])
5105 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5106 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5107
5108 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5109
5110 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5111 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5112 _LT_DECL([], [extract_expsyms_cmds], [2],
5113 [The commands to extract the exported symbol list from a shared archive])
5114
5115 #
5116 # Do we need to explicitly link libc?
5117 #
5118 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5119 x|xyes)
5120 # Assume -lc should be added
5121 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5122
5123 if test "$enable_shared" = yes && test "$GCC" = yes; then
5124 case $_LT_TAGVAR(archive_cmds, $1) in
5125 *'~'*)
5126 # FIXME: we may have to deal with multi-command sequences.
5127 ;;
5128 '$CC '*)
5129 # Test whether the compiler implicitly links with -lc since on some
5130 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5131 # to ld, don't add -lc before -lgcc.
5132 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5133 $RM conftest*
5134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5135
5136 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5137 soname=conftest
5138 lib=conftest
5139 libobjs=conftest.$ac_objext
5140 deplibs=
5141 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5142 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5143 compiler_flags=-v
5144 linker_flags=-v
5145 verstring=
5146 output_objdir=.
5147 libname=conftest
5148 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5149 _LT_TAGVAR(allow_undefined_flag, $1)=
5150 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5151 then
5152 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5153 else
5154 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5155 fi
5156 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5157 else
5158 cat conftest.err 1>&5
5159 fi
5160 $RM conftest*
5161 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5162 ;;
5163 esac
5164 fi
5165 ;;
5166 esac
5167
5168 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5169 [Whether or not to add -lc for building shared libraries])
5170 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5171 [enable_shared_with_static_runtimes], [0],
5172 [Whether or not to disallow shared libs when runtime libs are static])
5173 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5174 [Compiler flag to allow reflexive dlopens])
5175 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5176 [Compiler flag to generate shared objects directly from archives])
5177 _LT_TAGDECL([], [compiler_needs_object], [1],
5178 [Whether the compiler copes with passing no objects directly])
5179 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5180 [Create an old-style archive from a shared archive])
5181 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5182 [Create a temporary old-style archive to link instead of a shared archive])
5183 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5184 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5185 _LT_TAGDECL([], [module_cmds], [2],
5186 [Commands used to build a loadable module if different from building
5187 a shared archive.])
5188 _LT_TAGDECL([], [module_expsym_cmds], [2])
5189 _LT_TAGDECL([], [with_gnu_ld], [1],
5190 [Whether we are building with GNU ld or not])
5191 _LT_TAGDECL([], [allow_undefined_flag], [1],
5192 [Flag that allows shared libraries with undefined symbols to be built])
5193 _LT_TAGDECL([], [no_undefined_flag], [1],
5194 [Flag that enforces no undefined symbols])
5195 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5196 [Flag to hardcode $libdir into a binary during linking.
5197 This must work even if $libdir does not exist])
5198 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5199 [[If ld is used when linking, flag to hardcode $libdir into a binary
5200 during linking. This must work even if $libdir does not exist]])
5201 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5202 [Whether we need a single "-rpath" flag with a separated argument])
5203 _LT_TAGDECL([], [hardcode_direct], [0],
5204 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5205 DIR into the resulting binary])
5206 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5207 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5208 DIR into the resulting binary and the resulting library dependency is
5209 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5210 library is relocated])
5211 _LT_TAGDECL([], [hardcode_minus_L], [0],
5212 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5213 into the resulting binary])
5214 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5215 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5216 into the resulting binary])
5217 _LT_TAGDECL([], [hardcode_automatic], [0],
5218 [Set to "yes" if building a shared library automatically hardcodes DIR
5219 into the library and all subsequent libraries and executables linked
5220 against it])
5221 _LT_TAGDECL([], [inherit_rpath], [0],
5222 [Set to yes if linker adds runtime paths of dependent libraries
5223 to runtime path list])
5224 _LT_TAGDECL([], [link_all_deplibs], [0],
5225 [Whether libtool must link a program against all its dependency libraries])
5226 _LT_TAGDECL([], [fix_srcfile_path], [1],
5227 [Fix the shell variable $srcfile for the compiler])
5228 _LT_TAGDECL([], [always_export_symbols], [0],
5229 [Set to "yes" if exported symbols are required])
5230 _LT_TAGDECL([], [export_symbols_cmds], [2],
5231 [The commands to list exported symbols])
5232 _LT_TAGDECL([], [exclude_expsyms], [1],
5233 [Symbols that should not be listed in the preloaded symbols])
5234 _LT_TAGDECL([], [include_expsyms], [1],
5235 [Symbols that must always be exported])
5236 _LT_TAGDECL([], [prelink_cmds], [2],
5237 [Commands necessary for linking programs (against libraries) with templates])
5238 _LT_TAGDECL([], [file_list_spec], [1],
5239 [Specify filename containing input files])
5240 dnl FIXME: Not yet implemented
5241 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5242 dnl [Compiler flag to generate thread safe objects])
5243 ])# _LT_LINKER_SHLIBS
5244
5245
5246 # _LT_LANG_C_CONFIG([TAG])
5247 # ------------------------
5248 # Ensure that the configuration variables for a C compiler are suitably
5249 # defined. These variables are subsequently used by _LT_CONFIG to write
5250 # the compiler configuration to `libtool'.
5251 m4_defun([_LT_LANG_C_CONFIG],
5252 [m4_require([_LT_DECL_EGREP])dnl
5253 lt_save_CC="$CC"
5254 AC_LANG_PUSH(C)
5255
5256 # Source file extension for C test sources.
5257 ac_ext=c
5258
5259 # Object file extension for compiled C test sources.
5260 objext=o
5261 _LT_TAGVAR(objext, $1)=$objext
5262
5263 # Code to be used in simple compile tests
5264 lt_simple_compile_test_code="int some_variable = 0;"
5265
5266 # Code to be used in simple link tests
5267 lt_simple_link_test_code='int main(){return(0);}'
5268
5269 _LT_TAG_COMPILER
5270 # Save the default compiler, since it gets overwritten when the other
5271 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5272 compiler_DEFAULT=$CC
5273
5274 # save warnings/boilerplate of simple test code
5275 _LT_COMPILER_BOILERPLATE
5276 _LT_LINKER_BOILERPLATE
5277
5278 ## CAVEAT EMPTOR:
5279 ## There is no encapsulation within the following macros, do not change
5280 ## the running order or otherwise move them around unless you know exactly
5281 ## what you are doing...
5282 if test -n "$compiler"; then
5283 _LT_COMPILER_NO_RTTI($1)
5284 _LT_COMPILER_PIC($1)
5285 _LT_COMPILER_C_O($1)
5286 _LT_COMPILER_FILE_LOCKS($1)
5287 _LT_LINKER_SHLIBS($1)
5288 _LT_SYS_DYNAMIC_LINKER($1)
5289 _LT_LINKER_HARDCODE_LIBPATH($1)
5290 LT_SYS_DLOPEN_SELF
5291 _LT_CMD_STRIPLIB
5292
5293 # Report which library types will actually be built
5294 AC_MSG_CHECKING([if libtool supports shared libraries])
5295 AC_MSG_RESULT([$can_build_shared])
5296
5297 AC_MSG_CHECKING([whether to build shared libraries])
5298 test "$can_build_shared" = "no" && enable_shared=no
5299
5300 # On AIX, shared libraries and static libraries use the same namespace, and
5301 # are all built from PIC.
5302 case $host_os in
5303 aix3*)
5304 test "$enable_shared" = yes && enable_static=no
5305 if test -n "$RANLIB"; then
5306 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5307 postinstall_cmds='$RANLIB $lib'
5308 fi
5309 ;;
5310
5311 aix[[4-9]]*)
5312 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5313 test "$enable_shared" = yes && enable_static=no
5314 fi
5315 ;;
5316 esac
5317 AC_MSG_RESULT([$enable_shared])
5318
5319 AC_MSG_CHECKING([whether to build static libraries])
5320 # Make sure either enable_shared or enable_static is yes.
5321 test "$enable_shared" = yes || enable_static=yes
5322 AC_MSG_RESULT([$enable_static])
5323
5324 _LT_CONFIG($1)
5325 fi
5326 AC_LANG_POP
5327 CC="$lt_save_CC"
5328 ])# _LT_LANG_C_CONFIG
5329
5330
5331 # _LT_PROG_CXX
5332 # ------------
5333 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5334 # compiler, we have our own version here.
5335 m4_defun([_LT_PROG_CXX],
5336 [
5337 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5338 AC_PROG_CXX
5339 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5340 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5341 (test "X$CXX" != "Xg++"))) ; then
5342 AC_PROG_CXXCPP
5343 else
5344 _lt_caught_CXX_error=yes
5345 fi
5346 popdef([AC_MSG_ERROR])
5347 ])# _LT_PROG_CXX
5348
5349 dnl aclocal-1.4 backwards compatibility:
5350 dnl AC_DEFUN([_LT_PROG_CXX], [])
5351
5352
5353 # _LT_LANG_CXX_CONFIG([TAG])
5354 # --------------------------
5355 # Ensure that the configuration variables for a C++ compiler are suitably
5356 # defined. These variables are subsequently used by _LT_CONFIG to write
5357 # the compiler configuration to `libtool'.
5358 m4_defun([_LT_LANG_CXX_CONFIG],
5359 [AC_REQUIRE([_LT_PROG_CXX])dnl
5360 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5361 m4_require([_LT_DECL_EGREP])dnl
5362
5363 AC_LANG_PUSH(C++)
5364 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5365 _LT_TAGVAR(allow_undefined_flag, $1)=
5366 _LT_TAGVAR(always_export_symbols, $1)=no
5367 _LT_TAGVAR(archive_expsym_cmds, $1)=
5368 _LT_TAGVAR(compiler_needs_object, $1)=no
5369 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5370 _LT_TAGVAR(hardcode_direct, $1)=no
5371 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5372 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5373 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5374 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5375 _LT_TAGVAR(hardcode_minus_L, $1)=no
5376 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5377 _LT_TAGVAR(hardcode_automatic, $1)=no
5378 _LT_TAGVAR(inherit_rpath, $1)=no
5379 _LT_TAGVAR(module_cmds, $1)=
5380 _LT_TAGVAR(module_expsym_cmds, $1)=
5381 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5382 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5383 _LT_TAGVAR(no_undefined_flag, $1)=
5384 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5385 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5386
5387 # Source file extension for C++ test sources.
5388 ac_ext=cpp
5389
5390 # Object file extension for compiled C++ test sources.
5391 objext=o
5392 _LT_TAGVAR(objext, $1)=$objext
5393
5394 # No sense in running all these tests if we already determined that
5395 # the CXX compiler isn't working. Some variables (like enable_shared)
5396 # are currently assumed to apply to all compilers on this platform,
5397 # and will be corrupted by setting them based on a non-working compiler.
5398 if test "$_lt_caught_CXX_error" != yes; then
5399 # Code to be used in simple compile tests
5400 lt_simple_compile_test_code="int some_variable = 0;"
5401
5402 # Code to be used in simple link tests
5403 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5404
5405 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5406 _LT_TAG_COMPILER
5407
5408 # save warnings/boilerplate of simple test code
5409 _LT_COMPILER_BOILERPLATE
5410 _LT_LINKER_BOILERPLATE
5411
5412 # Allow CC to be a program name with arguments.
5413 lt_save_CC=$CC
5414 lt_save_LD=$LD
5415 lt_save_GCC=$GCC
5416 GCC=$GXX
5417 lt_save_with_gnu_ld=$with_gnu_ld
5418 lt_save_path_LD=$lt_cv_path_LD
5419 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5420 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5421 else
5422 $as_unset lt_cv_prog_gnu_ld
5423 fi
5424 if test -n "${lt_cv_path_LDCXX+set}"; then
5425 lt_cv_path_LD=$lt_cv_path_LDCXX
5426 else
5427 $as_unset lt_cv_path_LD
5428 fi
5429 test -z "${LDCXX+set}" || LD=$LDCXX
5430 CC=${CXX-"c++"}
5431 compiler=$CC
5432 _LT_TAGVAR(compiler, $1)=$CC
5433 _LT_CC_BASENAME([$compiler])
5434
5435 if test -n "$compiler"; then
5436 # We don't want -fno-exception when compiling C++ code, so set the
5437 # no_builtin_flag separately
5438 if test "$GXX" = yes; then
5439 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5440 else
5441 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5442 fi
5443
5444 if test "$GXX" = yes; then
5445 # Set up default GNU C++ configuration
5446
5447 LT_PATH_LD
5448
5449 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5450 # archiving commands below assume that GNU ld is being used.
5451 if test "$with_gnu_ld" = yes; then
5452 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5453 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5454
5455 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5456 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5457
5458 # If archive_cmds runs LD, not CC, wlarc should be empty
5459 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5460 # investigate it a little bit more. (MM)
5461 wlarc='${wl}'
5462
5463 # ancient GNU ld didn't support --whole-archive et. al.
5464 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5465 $GREP 'no-whole-archive' > /dev/null; then
5466 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5467 else
5468 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5469 fi
5470 else
5471 with_gnu_ld=no
5472 wlarc=
5473
5474 # A generic and very simple default shared library creation
5475 # command for GNU C++ for the case where it uses the native
5476 # linker, instead of GNU ld. If possible, this setting should
5477 # overridden to take advantage of the native linker features on
5478 # the platform it is being used on.
5479 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5480 fi
5481
5482 # Commands to make compiler produce verbose output that lists
5483 # what "hidden" libraries, object files and flags are used when
5484 # linking a shared library.
5485 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5486
5487 else
5488 GXX=no
5489 with_gnu_ld=no
5490 wlarc=
5491 fi
5492
5493 # PORTME: fill in a description of your system's C++ link characteristics
5494 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5495 _LT_TAGVAR(ld_shlibs, $1)=yes
5496 case $host_os in
5497 aix3*)
5498 # FIXME: insert proper C++ library support
5499 _LT_TAGVAR(ld_shlibs, $1)=no
5500 ;;
5501 aix[[4-9]]*)
5502 if test "$host_cpu" = ia64; then
5503 # On IA64, the linker does run time linking by default, so we don't
5504 # have to do anything special.
5505 aix_use_runtimelinking=no
5506 exp_sym_flag='-Bexport'
5507 no_entry_flag=""
5508 else
5509 aix_use_runtimelinking=no
5510
5511 # Test if we are trying to use run time linking or normal
5512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5513 # need to do runtime linking.
5514 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5515 for ld_flag in $LDFLAGS; do
5516 case $ld_flag in
5517 *-brtl*)
5518 aix_use_runtimelinking=yes
5519 break
5520 ;;
5521 esac
5522 done
5523 ;;
5524 esac
5525
5526 exp_sym_flag='-bexport'
5527 no_entry_flag='-bnoentry'
5528 fi
5529
5530 # When large executables or shared objects are built, AIX ld can
5531 # have problems creating the table of contents. If linking a library
5532 # or program results in "error TOC overflow" add -mminimal-toc to
5533 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5534 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5535
5536 _LT_TAGVAR(archive_cmds, $1)=''
5537 _LT_TAGVAR(hardcode_direct, $1)=yes
5538 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5539 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5540 _LT_TAGVAR(link_all_deplibs, $1)=yes
5541 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5542
5543 if test "$GXX" = yes; then
5544 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5545 # We only want to do this on AIX 4.2 and lower, the check
5546 # below for broken collect2 doesn't work under 4.3+
5547 collect2name=`${CC} -print-prog-name=collect2`
5548 if test -f "$collect2name" &&
5549 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5550 then
5551 # We have reworked collect2
5552 :
5553 else
5554 # We have old collect2
5555 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5556 # It fails to find uninstalled libraries when the uninstalled
5557 # path is not listed in the libpath. Setting hardcode_minus_L
5558 # to unsupported forces relinking
5559 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5560 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5561 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5562 fi
5563 esac
5564 shared_flag='-shared'
5565 if test "$aix_use_runtimelinking" = yes; then
5566 shared_flag="$shared_flag "'${wl}-G'
5567 fi
5568 else
5569 # not using gcc
5570 if test "$host_cpu" = ia64; then
5571 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5572 # chokes on -Wl,-G. The following line is correct:
5573 shared_flag='-G'
5574 else
5575 if test "$aix_use_runtimelinking" = yes; then
5576 shared_flag='${wl}-G'
5577 else
5578 shared_flag='${wl}-bM:SRE'
5579 fi
5580 fi
5581 fi
5582
5583 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5584 # It seems that -bexpall does not export symbols beginning with
5585 # underscore (_), so it is better to generate a list of symbols to
5586 # export.
5587 _LT_TAGVAR(always_export_symbols, $1)=yes
5588 if test "$aix_use_runtimelinking" = yes; then
5589 # Warning - without using the other runtime loading flags (-brtl),
5590 # -berok will link without error, but may produce a broken library.
5591 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5592 # Determine the default libpath from the value encoded in an empty
5593 # executable.
5594 _LT_SYS_MODULE_PATH_AIX
5595 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5596
5597 _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"
5598 else
5599 if test "$host_cpu" = ia64; then
5600 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5601 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5602 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5603 else
5604 # Determine the default libpath from the value encoded in an
5605 # empty executable.
5606 _LT_SYS_MODULE_PATH_AIX
5607 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5608 # Warning - without using the other run time loading flags,
5609 # -berok will link without error, but may produce a broken library.
5610 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5611 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5612 # Exported symbols can be pulled into shared objects from archives
5613 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5614 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5615 # This is similar to how AIX traditionally builds its shared
5616 # libraries.
5617 _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'
5618 fi
5619 fi
5620 ;;
5621
5622 beos*)
5623 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5624 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5625 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5626 # support --undefined. This deserves some investigation. FIXME
5627 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5628 else
5629 _LT_TAGVAR(ld_shlibs, $1)=no
5630 fi
5631 ;;
5632
5633 chorus*)
5634 case $cc_basename in
5635 *)
5636 # FIXME: insert proper C++ library support
5637 _LT_TAGVAR(ld_shlibs, $1)=no
5638 ;;
5639 esac
5640 ;;
5641
5642 cygwin* | mingw* | pw32* | cegcc*)
5643 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5644 # as there is no search path for DLLs.
5645 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5646 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5647 _LT_TAGVAR(always_export_symbols, $1)=no
5648 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5649
5650 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5651 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5652 # If the export-symbols file already is a .def file (1st line
5653 # is EXPORTS), use it as is; otherwise, prepend...
5654 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5655 cp $export_symbols $output_objdir/$soname.def;
5656 else
5657 echo EXPORTS > $output_objdir/$soname.def;
5658 cat $export_symbols >> $output_objdir/$soname.def;
5659 fi~
5660 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5661 else
5662 _LT_TAGVAR(ld_shlibs, $1)=no
5663 fi
5664 ;;
5665 darwin* | rhapsody*)
5666 _LT_DARWIN_LINKER_FEATURES($1)
5667 ;;
5668
5669 dgux*)
5670 case $cc_basename in
5671 ec++*)
5672 # FIXME: insert proper C++ library support
5673 _LT_TAGVAR(ld_shlibs, $1)=no
5674 ;;
5675 ghcx*)
5676 # Green Hills C++ Compiler
5677 # FIXME: insert proper C++ library support
5678 _LT_TAGVAR(ld_shlibs, $1)=no
5679 ;;
5680 *)
5681 # FIXME: insert proper C++ library support
5682 _LT_TAGVAR(ld_shlibs, $1)=no
5683 ;;
5684 esac
5685 ;;
5686
5687 freebsd[[12]]*)
5688 # C++ shared libraries reported to be fairly broken before
5689 # switch to ELF
5690 _LT_TAGVAR(ld_shlibs, $1)=no
5691 ;;
5692
5693 freebsd-elf*)
5694 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5695 ;;
5696
5697 freebsd* | dragonfly*)
5698 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5699 # conventions
5700 _LT_TAGVAR(ld_shlibs, $1)=yes
5701 ;;
5702
5703 gnu*)
5704 ;;
5705
5706 hpux9*)
5707 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5708 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5709 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5710 _LT_TAGVAR(hardcode_direct, $1)=yes
5711 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5712 # but as the default
5713 # location of the library.
5714
5715 case $cc_basename in
5716 CC*)
5717 # FIXME: insert proper C++ library support
5718 _LT_TAGVAR(ld_shlibs, $1)=no
5719 ;;
5720 aCC*)
5721 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5722 # Commands to make compiler produce verbose output that lists
5723 # what "hidden" libraries, object files and flags are used when
5724 # linking a shared library.
5725 #
5726 # There doesn't appear to be a way to prevent this compiler from
5727 # explicitly linking system object files so we need to strip them
5728 # from the output so that they don't get included in the library
5729 # dependencies.
5730 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'
5731 ;;
5732 *)
5733 if test "$GXX" = yes; then
5734 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5735 else
5736 # FIXME: insert proper C++ library support
5737 _LT_TAGVAR(ld_shlibs, $1)=no
5738 fi
5739 ;;
5740 esac
5741 ;;
5742
5743 hpux10*|hpux11*)
5744 if test $with_gnu_ld = no; then
5745 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5746 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5747
5748 case $host_cpu in
5749 hppa*64*|ia64*)
5750 ;;
5751 *)
5752 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5753 ;;
5754 esac
5755 fi
5756 case $host_cpu in
5757 hppa*64*|ia64*)
5758 _LT_TAGVAR(hardcode_direct, $1)=no
5759 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5760 ;;
5761 *)
5762 _LT_TAGVAR(hardcode_direct, $1)=yes
5763 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5764 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5765 # but as the default
5766 # location of the library.
5767 ;;
5768 esac
5769
5770 case $cc_basename in
5771 CC*)
5772 # FIXME: insert proper C++ library support
5773 _LT_TAGVAR(ld_shlibs, $1)=no
5774 ;;
5775 aCC*)
5776 case $host_cpu in
5777 hppa*64*)
5778 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5779 ;;
5780 ia64*)
5781 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5782 ;;
5783 *)
5784 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5785 ;;
5786 esac
5787 # Commands to make compiler produce verbose output that lists
5788 # what "hidden" libraries, object files and flags are used when
5789 # linking a shared library.
5790 #
5791 # There doesn't appear to be a way to prevent this compiler from
5792 # explicitly linking system object files so we need to strip them
5793 # from the output so that they don't get included in the library
5794 # dependencies.
5795 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'
5796 ;;
5797 *)
5798 if test "$GXX" = yes; then
5799 if test $with_gnu_ld = no; then
5800 case $host_cpu in
5801 hppa*64*)
5802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5803 ;;
5804 ia64*)
5805 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5806 ;;
5807 *)
5808 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5809 ;;
5810 esac
5811 fi
5812 else
5813 # FIXME: insert proper C++ library support
5814 _LT_TAGVAR(ld_shlibs, $1)=no
5815 fi
5816 ;;
5817 esac
5818 ;;
5819
5820 interix[[3-9]]*)
5821 _LT_TAGVAR(hardcode_direct, $1)=no
5822 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5823 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5824 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5826 # Instead, shared libraries are loaded at an image base (0x10000000 by
5827 # default) and relocated if they conflict, which is a slow very memory
5828 # consuming and fragmenting process. To avoid this, we pick a random,
5829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5830 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5831 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5832 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5833 ;;
5834 irix5* | irix6*)
5835 case $cc_basename in
5836 CC*)
5837 # SGI C++
5838 _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'
5839
5840 # Archives containing C++ object files must be created using
5841 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5842 # necessary to make sure instantiated templates are included
5843 # in the archive.
5844 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5845 ;;
5846 *)
5847 if test "$GXX" = yes; then
5848 if test "$with_gnu_ld" = no; then
5849 _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'
5850 else
5851 _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'
5852 fi
5853 fi
5854 _LT_TAGVAR(link_all_deplibs, $1)=yes
5855 ;;
5856 esac
5857 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5858 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5859 _LT_TAGVAR(inherit_rpath, $1)=yes
5860 ;;
5861
5862 linux* | k*bsd*-gnu)
5863 case $cc_basename in
5864 KCC*)
5865 # Kuck and Associates, Inc. (KAI) C++ Compiler
5866
5867 # KCC will only create a shared library if the output file
5868 # ends with ".so" (or ".sl" for HP-UX), so rename the library
5869 # to its proper name (with version) after linking.
5870 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5871 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5872 # Commands to make compiler produce verbose output that lists
5873 # what "hidden" libraries, object files and flags are used when
5874 # linking a shared library.
5875 #
5876 # There doesn't appear to be a way to prevent this compiler from
5877 # explicitly linking system object files so we need to strip them
5878 # from the output so that they don't get included in the library
5879 # dependencies.
5880 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'
5881
5882 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5883 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5884
5885 # Archives containing C++ object files must be created using
5886 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5887 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5888 ;;
5889 icpc* | ecpc* )
5890 # Intel C++
5891 with_gnu_ld=yes
5892 # version 8.0 and above of icpc choke on multiply defined symbols
5893 # if we add $predep_objects and $postdep_objects, however 7.1 and
5894 # earlier do not add the objects themselves.
5895 case `$CC -V 2>&1` in
5896 *"Version 7."*)
5897 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5898 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5899 ;;
5900 *) # Version 8.0 or newer
5901 tmp_idyn=
5902 case $host_cpu in
5903 ia64*) tmp_idyn=' -i_dynamic';;
5904 esac
5905 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5906 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5907 ;;
5908 esac
5909 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5910 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5911 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5912 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5913 ;;
5914 pgCC* | pgcpp*)
5915 # Portland Group C++ compiler
5916 case `$CC -V` in
5917 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5918 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5919 rm -rf $tpldir~
5920 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5921 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5922 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5923 rm -rf $tpldir~
5924 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5925 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5926 $RANLIB $oldlib'
5927 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5928 rm -rf $tpldir~
5929 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5930 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5931 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5932 rm -rf $tpldir~
5933 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5934 $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'
5935 ;;
5936 *) # Version 6 will use weak symbols
5937 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5938 _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'
5939 ;;
5940 esac
5941
5942 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5943 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5944 _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'
5945 ;;
5946 cxx*)
5947 # Compaq C++
5948 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5949 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5950
5951 runpath_var=LD_RUN_PATH
5952 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5953 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5954
5955 # Commands to make compiler produce verbose output that lists
5956 # what "hidden" libraries, object files and flags are used when
5957 # linking a shared library.
5958 #
5959 # There doesn't appear to be a way to prevent this compiler from
5960 # explicitly linking system object files so we need to strip them
5961 # from the output so that they don't get included in the library
5962 # dependencies.
5963 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'
5964 ;;
5965 xl*)
5966 # IBM XL 8.0 on PPC, with GNU ld
5967 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5968 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5969 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5970 if test "x$supports_anon_versioning" = xyes; then
5971 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5972 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5973 echo "local: *; };" >> $output_objdir/$libname.ver~
5974 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5975 fi
5976 ;;
5977 *)
5978 case `$CC -V 2>&1 | sed 5q` in
5979 *Sun\ C*)
5980 # Sun C++ 5.9
5981 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5982 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5983 _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'
5984 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5985 _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'
5986 _LT_TAGVAR(compiler_needs_object, $1)=yes
5987
5988 # Not sure whether something based on
5989 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5990 # would be better.
5991 output_verbose_link_cmd='echo'
5992
5993 # Archives containing C++ object files must be created using
5994 # "CC -xar", where "CC" is the Sun C++ compiler. This is
5995 # necessary to make sure instantiated templates are included
5996 # in the archive.
5997 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5998 ;;
5999 esac
6000 ;;
6001 esac
6002 ;;
6003
6004 lynxos*)
6005 # FIXME: insert proper C++ library support
6006 _LT_TAGVAR(ld_shlibs, $1)=no
6007 ;;
6008
6009 m88k*)
6010 # FIXME: insert proper C++ library support
6011 _LT_TAGVAR(ld_shlibs, $1)=no
6012 ;;
6013
6014 mvs*)
6015 case $cc_basename in
6016 cxx*)
6017 # FIXME: insert proper C++ library support
6018 _LT_TAGVAR(ld_shlibs, $1)=no
6019 ;;
6020 *)
6021 # FIXME: insert proper C++ library support
6022 _LT_TAGVAR(ld_shlibs, $1)=no
6023 ;;
6024 esac
6025 ;;
6026
6027 netbsd*)
6028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6029 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6030 wlarc=
6031 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6032 _LT_TAGVAR(hardcode_direct, $1)=yes
6033 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6034 fi
6035 # Workaround some broken pre-1.5 toolchains
6036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6037 ;;
6038
6039 *nto* | *qnx*)
6040 _LT_TAGVAR(ld_shlibs, $1)=yes
6041 ;;
6042
6043 openbsd2*)
6044 # C++ shared libraries are fairly broken
6045 _LT_TAGVAR(ld_shlibs, $1)=no
6046 ;;
6047
6048 openbsd*)
6049 if test -f /usr/libexec/ld.so; then
6050 _LT_TAGVAR(hardcode_direct, $1)=yes
6051 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6052 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6053 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6054 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6056 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6057 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6058 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6059 fi
6060 output_verbose_link_cmd=echo
6061 else
6062 _LT_TAGVAR(ld_shlibs, $1)=no
6063 fi
6064 ;;
6065
6066 osf3* | osf4* | osf5*)
6067 case $cc_basename in
6068 KCC*)
6069 # Kuck and Associates, Inc. (KAI) C++ Compiler
6070
6071 # KCC will only create a shared library if the output file
6072 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6073 # to its proper name (with version) after linking.
6074 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6075
6076 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6077 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6078
6079 # Archives containing C++ object files must be created using
6080 # the KAI C++ compiler.
6081 case $host in
6082 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6083 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6084 esac
6085 ;;
6086 RCC*)
6087 # Rational C++ 2.4.1
6088 # FIXME: insert proper C++ library support
6089 _LT_TAGVAR(ld_shlibs, $1)=no
6090 ;;
6091 cxx*)
6092 case $host in
6093 osf3*)
6094 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6095 _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'
6096 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6097 ;;
6098 *)
6099 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6100 _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'
6101 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6102 echo "-hidden">> $lib.exp~
6103 $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~
6104 $RM $lib.exp'
6105 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6106 ;;
6107 esac
6108
6109 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6110
6111 # Commands to make compiler produce verbose output that lists
6112 # what "hidden" libraries, object files and flags are used when
6113 # linking a shared library.
6114 #
6115 # There doesn't appear to be a way to prevent this compiler from
6116 # explicitly linking system object files so we need to strip them
6117 # from the output so that they don't get included in the library
6118 # dependencies.
6119 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'
6120 ;;
6121 *)
6122 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6123 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6124 case $host in
6125 osf3*)
6126 _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'
6127 ;;
6128 *)
6129 _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'
6130 ;;
6131 esac
6132
6133 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6134 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6135
6136 # Commands to make compiler produce verbose output that lists
6137 # what "hidden" libraries, object files and flags are used when
6138 # linking a shared library.
6139 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6140
6141 else
6142 # FIXME: insert proper C++ library support
6143 _LT_TAGVAR(ld_shlibs, $1)=no
6144 fi
6145 ;;
6146 esac
6147 ;;
6148
6149 psos*)
6150 # FIXME: insert proper C++ library support
6151 _LT_TAGVAR(ld_shlibs, $1)=no
6152 ;;
6153
6154 sunos4*)
6155 case $cc_basename in
6156 CC*)
6157 # Sun C++ 4.x
6158 # FIXME: insert proper C++ library support
6159 _LT_TAGVAR(ld_shlibs, $1)=no
6160 ;;
6161 lcc*)
6162 # Lucid
6163 # FIXME: insert proper C++ library support
6164 _LT_TAGVAR(ld_shlibs, $1)=no
6165 ;;
6166 *)
6167 # FIXME: insert proper C++ library support
6168 _LT_TAGVAR(ld_shlibs, $1)=no
6169 ;;
6170 esac
6171 ;;
6172
6173 solaris*)
6174 case $cc_basename in
6175 CC*)
6176 # Sun C++ 4.2, 5.x and Centerline C++
6177 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6178 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6179 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6180 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6181 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6182
6183 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6184 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6185 case $host_os in
6186 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6187 *)
6188 # The compiler driver will combine and reorder linker options,
6189 # but understands `-z linker_flag'.
6190 # Supported since Solaris 2.6 (maybe 2.5.1?)
6191 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6192 ;;
6193 esac
6194 _LT_TAGVAR(link_all_deplibs, $1)=yes
6195
6196 output_verbose_link_cmd='echo'
6197
6198 # Archives containing C++ object files must be created using
6199 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6200 # necessary to make sure instantiated templates are included
6201 # in the archive.
6202 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6203 ;;
6204 gcx*)
6205 # Green Hills C++ Compiler
6206 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6207
6208 # The C++ compiler must be used to create the archive.
6209 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6210 ;;
6211 *)
6212 # GNU C++ compiler with Solaris linker
6213 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6214 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6215 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6216 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6217 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6218 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6219
6220 # Commands to make compiler produce verbose output that lists
6221 # what "hidden" libraries, object files and flags are used when
6222 # linking a shared library.
6223 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6224 else
6225 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6226 # platform.
6227 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6228 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6229 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6230
6231 # Commands to make compiler produce verbose output that lists
6232 # what "hidden" libraries, object files and flags are used when
6233 # linking a shared library.
6234 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6235 fi
6236
6237 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6238 case $host_os in
6239 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6240 *)
6241 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6242 ;;
6243 esac
6244 fi
6245 ;;
6246 esac
6247 ;;
6248
6249 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6250 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6251 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6252 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6253 runpath_var='LD_RUN_PATH'
6254
6255 case $cc_basename in
6256 CC*)
6257 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6258 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6259 ;;
6260 *)
6261 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6262 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6263 ;;
6264 esac
6265 ;;
6266
6267 sysv5* | sco3.2v5* | sco5v6*)
6268 # Note: We can NOT use -z defs as we might desire, because we do not
6269 # link with -lc, and that would cause any symbols used from libc to
6270 # always be unresolved, which means just about no library would
6271 # ever link correctly. If we're not using GNU ld we use -z text
6272 # though, which does catch some bad symbols but isn't as heavy-handed
6273 # as -z defs.
6274 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6275 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6276 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6277 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6278 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6279 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6280 _LT_TAGVAR(link_all_deplibs, $1)=yes
6281 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6282 runpath_var='LD_RUN_PATH'
6283
6284 case $cc_basename in
6285 CC*)
6286 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6287 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6288 ;;
6289 *)
6290 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6291 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6292 ;;
6293 esac
6294 ;;
6295
6296 tandem*)
6297 case $cc_basename in
6298 NCC*)
6299 # NonStop-UX NCC 3.20
6300 # FIXME: insert proper C++ library support
6301 _LT_TAGVAR(ld_shlibs, $1)=no
6302 ;;
6303 *)
6304 # FIXME: insert proper C++ library support
6305 _LT_TAGVAR(ld_shlibs, $1)=no
6306 ;;
6307 esac
6308 ;;
6309
6310 vxworks*)
6311 # FIXME: insert proper C++ library support
6312 _LT_TAGVAR(ld_shlibs, $1)=no
6313 ;;
6314
6315 *)
6316 # FIXME: insert proper C++ library support
6317 _LT_TAGVAR(ld_shlibs, $1)=no
6318 ;;
6319 esac
6320
6321 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6322 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6323
6324 _LT_TAGVAR(GCC, $1)="$GXX"
6325 _LT_TAGVAR(LD, $1)="$LD"
6326
6327 ## CAVEAT EMPTOR:
6328 ## There is no encapsulation within the following macros, do not change
6329 ## the running order or otherwise move them around unless you know exactly
6330 ## what you are doing...
6331 _LT_SYS_HIDDEN_LIBDEPS($1)
6332 _LT_COMPILER_PIC($1)
6333 _LT_COMPILER_C_O($1)
6334 _LT_COMPILER_FILE_LOCKS($1)
6335 _LT_LINKER_SHLIBS($1)
6336 _LT_SYS_DYNAMIC_LINKER($1)
6337 _LT_LINKER_HARDCODE_LIBPATH($1)
6338
6339 _LT_CONFIG($1)
6340 fi # test -n "$compiler"
6341
6342 CC=$lt_save_CC
6343 LDCXX=$LD
6344 LD=$lt_save_LD
6345 GCC=$lt_save_GCC
6346 with_gnu_ld=$lt_save_with_gnu_ld
6347 lt_cv_path_LDCXX=$lt_cv_path_LD
6348 lt_cv_path_LD=$lt_save_path_LD
6349 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6350 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6351 fi # test "$_lt_caught_CXX_error" != yes
6352
6353 AC_LANG_POP
6354 ])# _LT_LANG_CXX_CONFIG
6355
6356
6357 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6358 # ---------------------------------
6359 # Figure out "hidden" library dependencies from verbose
6360 # compiler output when linking a shared library.
6361 # Parse the compiler output and extract the necessary
6362 # objects, libraries and library flags.
6363 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6364 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6365 # Dependencies to place before and after the object being linked:
6366 _LT_TAGVAR(predep_objects, $1)=
6367 _LT_TAGVAR(postdep_objects, $1)=
6368 _LT_TAGVAR(predeps, $1)=
6369 _LT_TAGVAR(postdeps, $1)=
6370 _LT_TAGVAR(compiler_lib_search_path, $1)=
6371
6372 dnl we can't use the lt_simple_compile_test_code here,
6373 dnl because it contains code intended for an executable,
6374 dnl not a library. It's possible we should let each
6375 dnl tag define a new lt_????_link_test_code variable,
6376 dnl but it's only used here...
6377 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6378 int a;
6379 void foo (void) { a = 0; }
6380 _LT_EOF
6381 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6382 class Foo
6383 {
6384 public:
6385 Foo (void) { a = 0; }
6386 private:
6387 int a;
6388 };
6389 _LT_EOF
6390 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6391 subroutine foo
6392 implicit none
6393 integer*4 a
6394 a=0
6395 return
6396 end
6397 _LT_EOF
6398 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6399 subroutine foo
6400 implicit none
6401 integer a
6402 a=0
6403 return
6404 end
6405 _LT_EOF
6406 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6407 public class foo {
6408 private int a;
6409 public void bar (void) {
6410 a = 0;
6411 }
6412 };
6413 _LT_EOF
6414 ])
6415 dnl Parse the compiler output and extract the necessary
6416 dnl objects, libraries and library flags.
6417 if AC_TRY_EVAL(ac_compile); then
6418 # Parse the compiler output and extract the necessary
6419 # objects, libraries and library flags.
6420
6421 # Sentinel used to keep track of whether or not we are before
6422 # the conftest object file.
6423 pre_test_object_deps_done=no
6424
6425 for p in `eval "$output_verbose_link_cmd"`; do
6426 case $p in
6427
6428 -L* | -R* | -l*)
6429 # Some compilers place space between "-{L,R}" and the path.
6430 # Remove the space.
6431 if test $p = "-L" ||
6432 test $p = "-R"; then
6433 prev=$p
6434 continue
6435 else
6436 prev=
6437 fi
6438
6439 if test "$pre_test_object_deps_done" = no; then
6440 case $p in
6441 -L* | -R*)
6442 # Internal compiler library paths should come after those
6443 # provided the user. The postdeps already come after the
6444 # user supplied libs so there is no need to process them.
6445 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6446 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6447 else
6448 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6449 fi
6450 ;;
6451 # The "-l" case would never come before the object being
6452 # linked, so don't bother handling this case.
6453 esac
6454 else
6455 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6456 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6457 else
6458 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6459 fi
6460 fi
6461 ;;
6462
6463 *.$objext)
6464 # This assumes that the test object file only shows up
6465 # once in the compiler output.
6466 if test "$p" = "conftest.$objext"; then
6467 pre_test_object_deps_done=yes
6468 continue
6469 fi
6470
6471 if test "$pre_test_object_deps_done" = no; then
6472 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6473 _LT_TAGVAR(predep_objects, $1)="$p"
6474 else
6475 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6476 fi
6477 else
6478 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6479 _LT_TAGVAR(postdep_objects, $1)="$p"
6480 else
6481 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6482 fi
6483 fi
6484 ;;
6485
6486 *) ;; # Ignore the rest.
6487
6488 esac
6489 done
6490
6491 # Clean up.
6492 rm -f a.out a.exe
6493 else
6494 echo "libtool.m4: error: problem compiling $1 test program"
6495 fi
6496
6497 $RM -f confest.$objext
6498
6499 # PORTME: override above test on systems where it is broken
6500 m4_if([$1], [CXX],
6501 [case $host_os in
6502 interix[[3-9]]*)
6503 # Interix 3.5 installs completely hosed .la files for C++, so rather than
6504 # hack all around it, let's just trust "g++" to DTRT.
6505 _LT_TAGVAR(predep_objects,$1)=
6506 _LT_TAGVAR(postdep_objects,$1)=
6507 _LT_TAGVAR(postdeps,$1)=
6508 ;;
6509
6510 linux*)
6511 case `$CC -V 2>&1 | sed 5q` in
6512 *Sun\ C*)
6513 # Sun C++ 5.9
6514
6515 # The more standards-conforming stlport4 library is
6516 # incompatible with the Cstd library. Avoid specifying
6517 # it if it's in CXXFLAGS. Ignore libCrun as
6518 # -library=stlport4 depends on it.
6519 case " $CXX $CXXFLAGS " in
6520 *" -library=stlport4 "*)
6521 solaris_use_stlport4=yes
6522 ;;
6523 esac
6524
6525 if test "$solaris_use_stlport4" != yes; then
6526 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6527 fi
6528 ;;
6529 esac
6530 ;;
6531
6532 solaris*)
6533 case $cc_basename in
6534 CC*)
6535 # The more standards-conforming stlport4 library is
6536 # incompatible with the Cstd library. Avoid specifying
6537 # it if it's in CXXFLAGS. Ignore libCrun as
6538 # -library=stlport4 depends on it.
6539 case " $CXX $CXXFLAGS " in
6540 *" -library=stlport4 "*)
6541 solaris_use_stlport4=yes
6542 ;;
6543 esac
6544
6545 # Adding this requires a known-good setup of shared libraries for
6546 # Sun compiler versions before 5.6, else PIC objects from an old
6547 # archive will be linked into the output, leading to subtle bugs.
6548 if test "$solaris_use_stlport4" != yes; then
6549 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6550 fi
6551 ;;
6552 esac
6553 ;;
6554 esac
6555 ])
6556
6557 case " $_LT_TAGVAR(postdeps, $1) " in
6558 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6559 esac
6560 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6561 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6562 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6563 fi
6564 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6565 [The directories searched by this compiler when creating a shared library])
6566 _LT_TAGDECL([], [predep_objects], [1],
6567 [Dependencies to place before and after the objects being linked to
6568 create a shared library])
6569 _LT_TAGDECL([], [postdep_objects], [1])
6570 _LT_TAGDECL([], [predeps], [1])
6571 _LT_TAGDECL([], [postdeps], [1])
6572 _LT_TAGDECL([], [compiler_lib_search_path], [1],
6573 [The library search path used internally by the compiler when linking
6574 a shared library])
6575 ])# _LT_SYS_HIDDEN_LIBDEPS
6576
6577
6578 # _LT_PROG_F77
6579 # ------------
6580 # Since AC_PROG_F77 is broken, in that it returns the empty string
6581 # if there is no fortran compiler, we have our own version here.
6582 m4_defun([_LT_PROG_F77],
6583 [
6584 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6585 AC_PROG_F77
6586 if test -z "$F77" || test "X$F77" = "Xno"; then
6587 _lt_disable_F77=yes
6588 fi
6589 popdef([AC_MSG_ERROR])
6590 ])# _LT_PROG_F77
6591
6592 dnl aclocal-1.4 backwards compatibility:
6593 dnl AC_DEFUN([_LT_PROG_F77], [])
6594
6595
6596 # _LT_LANG_F77_CONFIG([TAG])
6597 # --------------------------
6598 # Ensure that the configuration variables for a Fortran 77 compiler are
6599 # suitably defined. These variables are subsequently used by _LT_CONFIG
6600 # to write the compiler configuration to `libtool'.
6601 m4_defun([_LT_LANG_F77_CONFIG],
6602 [AC_REQUIRE([_LT_PROG_F77])dnl
6603 AC_LANG_PUSH(Fortran 77)
6604
6605 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6606 _LT_TAGVAR(allow_undefined_flag, $1)=
6607 _LT_TAGVAR(always_export_symbols, $1)=no
6608 _LT_TAGVAR(archive_expsym_cmds, $1)=
6609 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6610 _LT_TAGVAR(hardcode_direct, $1)=no
6611 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6612 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6613 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6614 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6615 _LT_TAGVAR(hardcode_minus_L, $1)=no
6616 _LT_TAGVAR(hardcode_automatic, $1)=no
6617 _LT_TAGVAR(inherit_rpath, $1)=no
6618 _LT_TAGVAR(module_cmds, $1)=
6619 _LT_TAGVAR(module_expsym_cmds, $1)=
6620 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6621 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6622 _LT_TAGVAR(no_undefined_flag, $1)=
6623 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6624 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6625
6626 # Source file extension for f77 test sources.
6627 ac_ext=f
6628
6629 # Object file extension for compiled f77 test sources.
6630 objext=o
6631 _LT_TAGVAR(objext, $1)=$objext
6632
6633 # No sense in running all these tests if we already determined that
6634 # the F77 compiler isn't working. Some variables (like enable_shared)
6635 # are currently assumed to apply to all compilers on this platform,
6636 # and will be corrupted by setting them based on a non-working compiler.
6637 if test "$_lt_disable_F77" != yes; then
6638 # Code to be used in simple compile tests
6639 lt_simple_compile_test_code="\
6640 subroutine t
6641 return
6642 end
6643 "
6644
6645 # Code to be used in simple link tests
6646 lt_simple_link_test_code="\
6647 program t
6648 end
6649 "
6650
6651 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6652 _LT_TAG_COMPILER
6653
6654 # save warnings/boilerplate of simple test code
6655 _LT_COMPILER_BOILERPLATE
6656 _LT_LINKER_BOILERPLATE
6657
6658 # Allow CC to be a program name with arguments.
6659 lt_save_CC="$CC"
6660 lt_save_GCC=$GCC
6661 CC=${F77-"f77"}
6662 compiler=$CC
6663 _LT_TAGVAR(compiler, $1)=$CC
6664 _LT_CC_BASENAME([$compiler])
6665 GCC=$G77
6666 if test -n "$compiler"; then
6667 AC_MSG_CHECKING([if libtool supports shared libraries])
6668 AC_MSG_RESULT([$can_build_shared])
6669
6670 AC_MSG_CHECKING([whether to build shared libraries])
6671 test "$can_build_shared" = "no" && enable_shared=no
6672
6673 # On AIX, shared libraries and static libraries use the same namespace, and
6674 # are all built from PIC.
6675 case $host_os in
6676 aix3*)
6677 test "$enable_shared" = yes && enable_static=no
6678 if test -n "$RANLIB"; then
6679 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6680 postinstall_cmds='$RANLIB $lib'
6681 fi
6682 ;;
6683 aix[[4-9]]*)
6684 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6685 test "$enable_shared" = yes && enable_static=no
6686 fi
6687 ;;
6688 esac
6689 AC_MSG_RESULT([$enable_shared])
6690
6691 AC_MSG_CHECKING([whether to build static libraries])
6692 # Make sure either enable_shared or enable_static is yes.
6693 test "$enable_shared" = yes || enable_static=yes
6694 AC_MSG_RESULT([$enable_static])
6695
6696 _LT_TAGVAR(GCC, $1)="$G77"
6697 _LT_TAGVAR(LD, $1)="$LD"
6698
6699 ## CAVEAT EMPTOR:
6700 ## There is no encapsulation within the following macros, do not change
6701 ## the running order or otherwise move them around unless you know exactly
6702 ## what you are doing...
6703 _LT_COMPILER_PIC($1)
6704 _LT_COMPILER_C_O($1)
6705 _LT_COMPILER_FILE_LOCKS($1)
6706 _LT_LINKER_SHLIBS($1)
6707 _LT_SYS_DYNAMIC_LINKER($1)
6708 _LT_LINKER_HARDCODE_LIBPATH($1)
6709
6710 _LT_CONFIG($1)
6711 fi # test -n "$compiler"
6712
6713 GCC=$lt_save_GCC
6714 CC="$lt_save_CC"
6715 fi # test "$_lt_disable_F77" != yes
6716
6717 AC_LANG_POP
6718 ])# _LT_LANG_F77_CONFIG
6719
6720
6721 # _LT_PROG_FC
6722 # -----------
6723 # Since AC_PROG_FC is broken, in that it returns the empty string
6724 # if there is no fortran compiler, we have our own version here.
6725 m4_defun([_LT_PROG_FC],
6726 [
6727 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6728 AC_PROG_FC
6729 if test -z "$FC" || test "X$FC" = "Xno"; then
6730 _lt_disable_FC=yes
6731 fi
6732 popdef([AC_MSG_ERROR])
6733 ])# _LT_PROG_FC
6734
6735 dnl aclocal-1.4 backwards compatibility:
6736 dnl AC_DEFUN([_LT_PROG_FC], [])
6737
6738
6739 # _LT_LANG_FC_CONFIG([TAG])
6740 # -------------------------
6741 # Ensure that the configuration variables for a Fortran compiler are
6742 # suitably defined. These variables are subsequently used by _LT_CONFIG
6743 # to write the compiler configuration to `libtool'.
6744 m4_defun([_LT_LANG_FC_CONFIG],
6745 [AC_REQUIRE([_LT_PROG_FC])dnl
6746 AC_LANG_PUSH(Fortran)
6747
6748 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6749 _LT_TAGVAR(allow_undefined_flag, $1)=
6750 _LT_TAGVAR(always_export_symbols, $1)=no
6751 _LT_TAGVAR(archive_expsym_cmds, $1)=
6752 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6753 _LT_TAGVAR(hardcode_direct, $1)=no
6754 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6755 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6756 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6757 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6758 _LT_TAGVAR(hardcode_minus_L, $1)=no
6759 _LT_TAGVAR(hardcode_automatic, $1)=no
6760 _LT_TAGVAR(inherit_rpath, $1)=no
6761 _LT_TAGVAR(module_cmds, $1)=
6762 _LT_TAGVAR(module_expsym_cmds, $1)=
6763 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6764 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6765 _LT_TAGVAR(no_undefined_flag, $1)=
6766 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6767 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6768
6769 # Source file extension for fc test sources.
6770 ac_ext=${ac_fc_srcext-f}
6771
6772 # Object file extension for compiled fc test sources.
6773 objext=o
6774 _LT_TAGVAR(objext, $1)=$objext
6775
6776 # No sense in running all these tests if we already determined that
6777 # the FC compiler isn't working. Some variables (like enable_shared)
6778 # are currently assumed to apply to all compilers on this platform,
6779 # and will be corrupted by setting them based on a non-working compiler.
6780 if test "$_lt_disable_FC" != yes; then
6781 # Code to be used in simple compile tests
6782 lt_simple_compile_test_code="\
6783 subroutine t
6784 return
6785 end
6786 "
6787
6788 # Code to be used in simple link tests
6789 lt_simple_link_test_code="\
6790 program t
6791 end
6792 "
6793
6794 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6795 _LT_TAG_COMPILER
6796
6797 # save warnings/boilerplate of simple test code
6798 _LT_COMPILER_BOILERPLATE
6799 _LT_LINKER_BOILERPLATE
6800
6801 # Allow CC to be a program name with arguments.
6802 lt_save_CC="$CC"
6803 lt_save_GCC=$GCC
6804 CC=${FC-"f95"}
6805 compiler=$CC
6806 GCC=$ac_cv_fc_compiler_gnu
6807
6808 _LT_TAGVAR(compiler, $1)=$CC
6809 _LT_CC_BASENAME([$compiler])
6810
6811 if test -n "$compiler"; then
6812 AC_MSG_CHECKING([if libtool supports shared libraries])
6813 AC_MSG_RESULT([$can_build_shared])
6814
6815 AC_MSG_CHECKING([whether to build shared libraries])
6816 test "$can_build_shared" = "no" && enable_shared=no
6817
6818 # On AIX, shared libraries and static libraries use the same namespace, and
6819 # are all built from PIC.
6820 case $host_os in
6821 aix3*)
6822 test "$enable_shared" = yes && enable_static=no
6823 if test -n "$RANLIB"; then
6824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6825 postinstall_cmds='$RANLIB $lib'
6826 fi
6827 ;;
6828 aix[[4-9]]*)
6829 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6830 test "$enable_shared" = yes && enable_static=no
6831 fi
6832 ;;
6833 esac
6834 AC_MSG_RESULT([$enable_shared])
6835
6836 AC_MSG_CHECKING([whether to build static libraries])
6837 # Make sure either enable_shared or enable_static is yes.
6838 test "$enable_shared" = yes || enable_static=yes
6839 AC_MSG_RESULT([$enable_static])
6840
6841 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6842 _LT_TAGVAR(LD, $1)="$LD"
6843
6844 ## CAVEAT EMPTOR:
6845 ## There is no encapsulation within the following macros, do not change
6846 ## the running order or otherwise move them around unless you know exactly
6847 ## what you are doing...
6848 _LT_SYS_HIDDEN_LIBDEPS($1)
6849 _LT_COMPILER_PIC($1)
6850 _LT_COMPILER_C_O($1)
6851 _LT_COMPILER_FILE_LOCKS($1)
6852 _LT_LINKER_SHLIBS($1)
6853 _LT_SYS_DYNAMIC_LINKER($1)
6854 _LT_LINKER_HARDCODE_LIBPATH($1)
6855
6856 _LT_CONFIG($1)
6857 fi # test -n "$compiler"
6858
6859 GCC=$lt_save_GCC
6860 CC="$lt_save_CC"
6861 fi # test "$_lt_disable_FC" != yes
6862
6863 AC_LANG_POP
6864 ])# _LT_LANG_FC_CONFIG
6865
6866
6867 # _LT_LANG_GCJ_CONFIG([TAG])
6868 # --------------------------
6869 # Ensure that the configuration variables for the GNU Java Compiler compiler
6870 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6871 # to write the compiler configuration to `libtool'.
6872 m4_defun([_LT_LANG_GCJ_CONFIG],
6873 [AC_REQUIRE([LT_PROG_GCJ])dnl
6874 AC_LANG_SAVE
6875
6876 # Source file extension for Java test sources.
6877 ac_ext=java
6878
6879 # Object file extension for compiled Java test sources.
6880 objext=o
6881 _LT_TAGVAR(objext, $1)=$objext
6882
6883 # Code to be used in simple compile tests
6884 lt_simple_compile_test_code="class foo {}"
6885
6886 # Code to be used in simple link tests
6887 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6888
6889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6890 _LT_TAG_COMPILER
6891
6892 # save warnings/boilerplate of simple test code
6893 _LT_COMPILER_BOILERPLATE
6894 _LT_LINKER_BOILERPLATE
6895
6896 # Allow CC to be a program name with arguments.
6897 lt_save_CC="$CC"
6898 lt_save_GCC=$GCC
6899 GCC=yes
6900 CC=${GCJ-"gcj"}
6901 compiler=$CC
6902 _LT_TAGVAR(compiler, $1)=$CC
6903 _LT_TAGVAR(LD, $1)="$LD"
6904 _LT_CC_BASENAME([$compiler])
6905
6906 # GCJ did not exist at the time GCC didn't implicitly link libc in.
6907 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6908
6909 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6910
6911 ## CAVEAT EMPTOR:
6912 ## There is no encapsulation within the following macros, do not change
6913 ## the running order or otherwise move them around unless you know exactly
6914 ## what you are doing...
6915 if test -n "$compiler"; then
6916 _LT_COMPILER_NO_RTTI($1)
6917 _LT_COMPILER_PIC($1)
6918 _LT_COMPILER_C_O($1)
6919 _LT_COMPILER_FILE_LOCKS($1)
6920 _LT_LINKER_SHLIBS($1)
6921 _LT_LINKER_HARDCODE_LIBPATH($1)
6922
6923 _LT_CONFIG($1)
6924 fi
6925
6926 AC_LANG_RESTORE
6927
6928 GCC=$lt_save_GCC
6929 CC="$lt_save_CC"
6930 ])# _LT_LANG_GCJ_CONFIG
6931
6932
6933 # _LT_LANG_RC_CONFIG([TAG])
6934 # -------------------------
6935 # Ensure that the configuration variables for the Windows resource compiler
6936 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6937 # to write the compiler configuration to `libtool'.
6938 m4_defun([_LT_LANG_RC_CONFIG],
6939 [AC_REQUIRE([LT_PROG_RC])dnl
6940 AC_LANG_SAVE
6941
6942 # Source file extension for RC test sources.
6943 ac_ext=rc
6944
6945 # Object file extension for compiled RC test sources.
6946 objext=o
6947 _LT_TAGVAR(objext, $1)=$objext
6948
6949 # Code to be used in simple compile tests
6950 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6951
6952 # Code to be used in simple link tests
6953 lt_simple_link_test_code="$lt_simple_compile_test_code"
6954
6955 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6956 _LT_TAG_COMPILER
6957
6958 # save warnings/boilerplate of simple test code
6959 _LT_COMPILER_BOILERPLATE
6960 _LT_LINKER_BOILERPLATE
6961
6962 # Allow CC to be a program name with arguments.
6963 lt_save_CC="$CC"
6964 lt_save_GCC=$GCC
6965 GCC=
6966 CC=${RC-"windres"}
6967 compiler=$CC
6968 _LT_TAGVAR(compiler, $1)=$CC
6969 _LT_CC_BASENAME([$compiler])
6970 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6971
6972 if test -n "$compiler"; then
6973 :
6974 _LT_CONFIG($1)
6975 fi
6976
6977 GCC=$lt_save_GCC
6978 AC_LANG_RESTORE
6979 CC="$lt_save_CC"
6980 ])# _LT_LANG_RC_CONFIG
6981
6982
6983 # LT_PROG_GCJ
6984 # -----------
6985 AC_DEFUN([LT_PROG_GCJ],
6986 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6987 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6988 [AC_CHECK_TOOL(GCJ, gcj,)
6989 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6990 AC_SUBST(GCJFLAGS)])])[]dnl
6991 ])
6992
6993 # Old name:
6994 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6995 dnl aclocal-1.4 backwards compatibility:
6996 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6997
6998
6999 # LT_PROG_RC
7000 # ----------
7001 AC_DEFUN([LT_PROG_RC],
7002 [AC_CHECK_TOOL(RC, windres,)
7003 ])
7004
7005 # Old name:
7006 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7007 dnl aclocal-1.4 backwards compatibility:
7008 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7009
7010
7011 # _LT_DECL_EGREP
7012 # --------------
7013 # If we don't have a new enough Autoconf to choose the best grep
7014 # available, choose the one first in the user's PATH.
7015 m4_defun([_LT_DECL_EGREP],
7016 [AC_REQUIRE([AC_PROG_EGREP])dnl
7017 AC_REQUIRE([AC_PROG_FGREP])dnl
7018 test -z "$GREP" && GREP=grep
7019 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7020 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7021 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7022 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7023 AC_SUBST([GREP])
7024 ])
7025
7026
7027 # _LT_DECL_OBJDUMP
7028 # --------------
7029 # If we don't have a new enough Autoconf to choose the best objdump
7030 # available, choose the one first in the user's PATH.
7031 m4_defun([_LT_DECL_OBJDUMP],
7032 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7033 test -z "$OBJDUMP" && OBJDUMP=objdump
7034 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7035 AC_SUBST([OBJDUMP])
7036 ])
7037
7038
7039 # _LT_DECL_SED
7040 # ------------
7041 # Check for a fully-functional sed program, that truncates
7042 # as few characters as possible. Prefer GNU sed if found.
7043 m4_defun([_LT_DECL_SED],
7044 [AC_PROG_SED
7045 test -z "$SED" && SED=sed
7046 Xsed="$SED -e 1s/^X//"
7047 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7048 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7049 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7050 ])# _LT_DECL_SED
7051
7052 m4_ifndef([AC_PROG_SED], [
7053 ############################################################
7054 # NOTE: This macro has been submitted for inclusion into #
7055 # GNU Autoconf as AC_PROG_SED. When it is available in #
7056 # a released version of Autoconf we should remove this #
7057 # macro and use it instead. #
7058 ############################################################
7059
7060 m4_defun([AC_PROG_SED],
7061 [AC_MSG_CHECKING([for a sed that does not truncate output])
7062 AC_CACHE_VAL(lt_cv_path_SED,
7063 [# Loop through the user's path and test for sed and gsed.
7064 # Then use that list of sed's as ones to test for truncation.
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for lt_ac_prog in sed gsed; do
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7073 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7074 fi
7075 done
7076 done
7077 done
7078 IFS=$as_save_IFS
7079 lt_ac_max=0
7080 lt_ac_count=0
7081 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7082 # along with /bin/sed that truncates output.
7083 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7084 test ! -f $lt_ac_sed && continue
7085 cat /dev/null > conftest.in
7086 lt_ac_count=0
7087 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7088 # Check for GNU sed and select it if it is found.
7089 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7090 lt_cv_path_SED=$lt_ac_sed
7091 break
7092 fi
7093 while true; do
7094 cat conftest.in conftest.in >conftest.tmp
7095 mv conftest.tmp conftest.in
7096 cp conftest.in conftest.nl
7097 echo >>conftest.nl
7098 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7099 cmp -s conftest.out conftest.nl || break
7100 # 10000 chars as input seems more than enough
7101 test $lt_ac_count -gt 10 && break
7102 lt_ac_count=`expr $lt_ac_count + 1`
7103 if test $lt_ac_count -gt $lt_ac_max; then
7104 lt_ac_max=$lt_ac_count
7105 lt_cv_path_SED=$lt_ac_sed
7106 fi
7107 done
7108 done
7109 ])
7110 SED=$lt_cv_path_SED
7111 AC_SUBST([SED])
7112 AC_MSG_RESULT([$SED])
7113 ])#AC_PROG_SED
7114 ])#m4_ifndef
7115
7116 # Old name:
7117 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7118 dnl aclocal-1.4 backwards compatibility:
7119 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7120
7121
7122 # _LT_CHECK_SHELL_FEATURES
7123 # ------------------------
7124 # Find out whether the shell is Bourne or XSI compatible,
7125 # or has some other useful features.
7126 m4_defun([_LT_CHECK_SHELL_FEATURES],
7127 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7128 # Try some XSI features
7129 xsi_shell=no
7130 ( _lt_dummy="a/b/c"
7131 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7132 = c,a/b,, \
7133 && eval 'test $(( 1 + 1 )) -eq 2 \
7134 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7135 && xsi_shell=yes
7136 AC_MSG_RESULT([$xsi_shell])
7137 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7138
7139 AC_MSG_CHECKING([whether the shell understands "+="])
7140 lt_shell_append=no
7141 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7142 >/dev/null 2>&1 \
7143 && lt_shell_append=yes
7144 AC_MSG_RESULT([$lt_shell_append])
7145 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7146
7147 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7148 lt_unset=unset
7149 else
7150 lt_unset=false
7151 fi
7152 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7153
7154 # test EBCDIC or ASCII
7155 case `echo X|tr X '\101'` in
7156 A) # ASCII based system
7157 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7158 lt_SP2NL='tr \040 \012'
7159 lt_NL2SP='tr \015\012 \040\040'
7160 ;;
7161 *) # EBCDIC based system
7162 lt_SP2NL='tr \100 \n'
7163 lt_NL2SP='tr \r\n \100\100'
7164 ;;
7165 esac
7166 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7167 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7168 ])# _LT_CHECK_SHELL_FEATURES
7169
7170
7171 # _LT_PROG_XSI_SHELLFNS
7172 # ---------------------
7173 # Bourne and XSI compatible variants of some useful shell functions.
7174 m4_defun([_LT_PROG_XSI_SHELLFNS],
7175 [case $xsi_shell in
7176 yes)
7177 cat << \_LT_EOF >> "$cfgfile"
7178
7179 # func_dirname file append nondir_replacement
7180 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7181 # otherwise set result to NONDIR_REPLACEMENT.
7182 func_dirname ()
7183 {
7184 case ${1} in
7185 */*) func_dirname_result="${1%/*}${2}" ;;
7186 * ) func_dirname_result="${3}" ;;
7187 esac
7188 }
7189
7190 # func_basename file
7191 func_basename ()
7192 {
7193 func_basename_result="${1##*/}"
7194 }
7195
7196 # func_dirname_and_basename file append nondir_replacement
7197 # perform func_basename and func_dirname in a single function
7198 # call:
7199 # dirname: Compute the dirname of FILE. If nonempty,
7200 # add APPEND to the result, otherwise set result
7201 # to NONDIR_REPLACEMENT.
7202 # value returned in "$func_dirname_result"
7203 # basename: Compute filename of FILE.
7204 # value retuned in "$func_basename_result"
7205 # Implementation must be kept synchronized with func_dirname
7206 # and func_basename. For efficiency, we do not delegate to
7207 # those functions but instead duplicate the functionality here.
7208 func_dirname_and_basename ()
7209 {
7210 case ${1} in
7211 */*) func_dirname_result="${1%/*}${2}" ;;
7212 * ) func_dirname_result="${3}" ;;
7213 esac
7214 func_basename_result="${1##*/}"
7215 }
7216
7217 # func_stripname prefix suffix name
7218 # strip PREFIX and SUFFIX off of NAME.
7219 # PREFIX and SUFFIX must not contain globbing or regex special
7220 # characters, hashes, percent signs, but SUFFIX may contain a leading
7221 # dot (in which case that matches only a dot).
7222 func_stripname ()
7223 {
7224 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7225 # positional parameters, so assign one to ordinary parameter first.
7226 func_stripname_result=${3}
7227 func_stripname_result=${func_stripname_result#"${1}"}
7228 func_stripname_result=${func_stripname_result%"${2}"}
7229 }
7230
7231 # func_opt_split
7232 func_opt_split ()
7233 {
7234 func_opt_split_opt=${1%%=*}
7235 func_opt_split_arg=${1#*=}
7236 }
7237
7238 # func_lo2o object
7239 func_lo2o ()
7240 {
7241 case ${1} in
7242 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7243 *) func_lo2o_result=${1} ;;
7244 esac
7245 }
7246
7247 # func_xform libobj-or-source
7248 func_xform ()
7249 {
7250 func_xform_result=${1%.*}.lo
7251 }
7252
7253 # func_arith arithmetic-term...
7254 func_arith ()
7255 {
7256 func_arith_result=$(( $[*] ))
7257 }
7258
7259 # func_len string
7260 # STRING may not start with a hyphen.
7261 func_len ()
7262 {
7263 func_len_result=${#1}
7264 }
7265
7266 _LT_EOF
7267 ;;
7268 *) # Bourne compatible functions.
7269 cat << \_LT_EOF >> "$cfgfile"
7270
7271 # func_dirname file append nondir_replacement
7272 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7273 # otherwise set result to NONDIR_REPLACEMENT.
7274 func_dirname ()
7275 {
7276 # Extract subdirectory from the argument.
7277 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7278 if test "X$func_dirname_result" = "X${1}"; then
7279 func_dirname_result="${3}"
7280 else
7281 func_dirname_result="$func_dirname_result${2}"
7282 fi
7283 }
7284
7285 # func_basename file
7286 func_basename ()
7287 {
7288 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7289 }
7290
7291 dnl func_dirname_and_basename
7292 dnl A portable version of this function is already defined in general.m4sh
7293 dnl so there is no need for it here.
7294
7295 # func_stripname prefix suffix name
7296 # strip PREFIX and SUFFIX off of NAME.
7297 # PREFIX and SUFFIX must not contain globbing or regex special
7298 # characters, hashes, percent signs, but SUFFIX may contain a leading
7299 # dot (in which case that matches only a dot).
7300 # func_strip_suffix prefix name
7301 func_stripname ()
7302 {
7303 case ${2} in
7304 .*) func_stripname_result=`$ECHO "X${3}" \
7305 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7306 *) func_stripname_result=`$ECHO "X${3}" \
7307 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7308 esac
7309 }
7310
7311 # sed scripts:
7312 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7313 my_sed_long_arg='1s/^-[[^=]]*=//'
7314
7315 # func_opt_split
7316 func_opt_split ()
7317 {
7318 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7319 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7320 }
7321
7322 # func_lo2o object
7323 func_lo2o ()
7324 {
7325 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7326 }
7327
7328 # func_xform libobj-or-source
7329 func_xform ()
7330 {
7331 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7332 }
7333
7334 # func_arith arithmetic-term...
7335 func_arith ()
7336 {
7337 func_arith_result=`expr "$[@]"`
7338 }
7339
7340 # func_len string
7341 # STRING may not start with a hyphen.
7342 func_len ()
7343 {
7344 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7345 }
7346
7347 _LT_EOF
7348 esac
7349
7350 case $lt_shell_append in
7351 yes)
7352 cat << \_LT_EOF >> "$cfgfile"
7353
7354 # func_append var value
7355 # Append VALUE to the end of shell variable VAR.
7356 func_append ()
7357 {
7358 eval "$[1]+=\$[2]"
7359 }
7360 _LT_EOF
7361 ;;
7362 *)
7363 cat << \_LT_EOF >> "$cfgfile"
7364
7365 # func_append var value
7366 # Append VALUE to the end of shell variable VAR.
7367 func_append ()
7368 {
7369 eval "$[1]=\$$[1]\$[2]"
7370 }
7371
7372 _LT_EOF
7373 ;;
7374 esac
7375 ])
0 # Helper functions for option handling. -*- Autoconf -*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3 # Written by Gary V. Vaughan, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 6 ltoptions.m4
10
11 # This is to help aclocal find these macros, as it can't see m4_define.
12 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
13
14
15 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
16 # ------------------------------------------
17 m4_define([_LT_MANGLE_OPTION],
18 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
19
20
21 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
22 # ---------------------------------------
23 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
24 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
25 # saved as a flag.
26 m4_define([_LT_SET_OPTION],
27 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
28 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
29 _LT_MANGLE_DEFUN([$1], [$2]),
30 [m4_warning([Unknown $1 option `$2'])])[]dnl
31 ])
32
33
34 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
35 # ------------------------------------------------------------
36 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
37 m4_define([_LT_IF_OPTION],
38 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
39
40
41 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
42 # -------------------------------------------------------
43 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
44 # are set.
45 m4_define([_LT_UNLESS_OPTIONS],
46 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
47 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
48 [m4_define([$0_found])])])[]dnl
49 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
50 ])[]dnl
51 ])
52
53
54 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
55 # ----------------------------------------
56 # OPTION-LIST is a space-separated list of Libtool options associated
57 # with MACRO-NAME. If any OPTION has a matching handler declared with
58 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
59 # the unknown option and exit.
60 m4_defun([_LT_SET_OPTIONS],
61 [# Set options
62 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
63 [_LT_SET_OPTION([$1], _LT_Option)])
64
65 m4_if([$1],[LT_INIT],[
66 dnl
67 dnl Simply set some default values (i.e off) if boolean options were not
68 dnl specified:
69 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
70 ])
71 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
72 ])
73 dnl
74 dnl If no reference was made to various pairs of opposing options, then
75 dnl we run the default mode handler for the pair. For example, if neither
76 dnl `shared' nor `disable-shared' was passed, we enable building of shared
77 dnl archives by default:
78 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
79 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
80 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
81 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
82 [_LT_ENABLE_FAST_INSTALL])
83 ])
84 ])# _LT_SET_OPTIONS
85
86
87 ## --------------------------------- ##
88 ## Macros to handle LT_INIT options. ##
89 ## --------------------------------- ##
90
91 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
92 # -----------------------------------------
93 m4_define([_LT_MANGLE_DEFUN],
94 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
95
96
97 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
98 # -----------------------------------------------
99 m4_define([LT_OPTION_DEFINE],
100 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
101 ])# LT_OPTION_DEFINE
102
103
104 # dlopen
105 # ------
106 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
107 ])
108
109 AU_DEFUN([AC_LIBTOOL_DLOPEN],
110 [_LT_SET_OPTION([LT_INIT], [dlopen])
111 AC_DIAGNOSE([obsolete],
112 [$0: Remove this warning and the call to _LT_SET_OPTION when you
113 put the `dlopen' option into LT_INIT's first parameter.])
114 ])
115
116 dnl aclocal-1.4 backwards compatibility:
117 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
118
119
120 # win32-dll
121 # ---------
122 # Declare package support for building win32 dll's.
123 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
124 [enable_win32_dll=yes
125
126 case $host in
127 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
128 AC_CHECK_TOOL(AS, as, false)
129 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
130 AC_CHECK_TOOL(OBJDUMP, objdump, false)
131 ;;
132 esac
133
134 test -z "$AS" && AS=as
135 _LT_DECL([], [AS], [0], [Assembler program])dnl
136
137 test -z "$DLLTOOL" && DLLTOOL=dlltool
138 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
139
140 test -z "$OBJDUMP" && OBJDUMP=objdump
141 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
142 ])# win32-dll
143
144 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
145 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
146 _LT_SET_OPTION([LT_INIT], [win32-dll])
147 AC_DIAGNOSE([obsolete],
148 [$0: Remove this warning and the call to _LT_SET_OPTION when you
149 put the `win32-dll' option into LT_INIT's first parameter.])
150 ])
151
152 dnl aclocal-1.4 backwards compatibility:
153 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
154
155
156 # _LT_ENABLE_SHARED([DEFAULT])
157 # ----------------------------
158 # implement the --enable-shared flag, and supports the `shared' and
159 # `disable-shared' LT_INIT options.
160 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
161 m4_define([_LT_ENABLE_SHARED],
162 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
163 AC_ARG_ENABLE([shared],
164 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
165 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
166 [p=${PACKAGE-default}
167 case $enableval in
168 yes) enable_shared=yes ;;
169 no) enable_shared=no ;;
170 *)
171 enable_shared=no
172 # Look at the argument we got. We use all the common list separators.
173 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
174 for pkg in $enableval; do
175 IFS="$lt_save_ifs"
176 if test "X$pkg" = "X$p"; then
177 enable_shared=yes
178 fi
179 done
180 IFS="$lt_save_ifs"
181 ;;
182 esac],
183 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
184
185 _LT_DECL([build_libtool_libs], [enable_shared], [0],
186 [Whether or not to build shared libraries])
187 ])# _LT_ENABLE_SHARED
188
189 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
190 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
191
192 # Old names:
193 AC_DEFUN([AC_ENABLE_SHARED],
194 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
195 ])
196
197 AC_DEFUN([AC_DISABLE_SHARED],
198 [_LT_SET_OPTION([LT_INIT], [disable-shared])
199 ])
200
201 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
202 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
203
204 dnl aclocal-1.4 backwards compatibility:
205 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
206 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
207
208
209
210 # _LT_ENABLE_STATIC([DEFAULT])
211 # ----------------------------
212 # implement the --enable-static flag, and support the `static' and
213 # `disable-static' LT_INIT options.
214 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
215 m4_define([_LT_ENABLE_STATIC],
216 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
217 AC_ARG_ENABLE([static],
218 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
219 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
220 [p=${PACKAGE-default}
221 case $enableval in
222 yes) enable_static=yes ;;
223 no) enable_static=no ;;
224 *)
225 enable_static=no
226 # Look at the argument we got. We use all the common list separators.
227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
228 for pkg in $enableval; do
229 IFS="$lt_save_ifs"
230 if test "X$pkg" = "X$p"; then
231 enable_static=yes
232 fi
233 done
234 IFS="$lt_save_ifs"
235 ;;
236 esac],
237 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
238
239 _LT_DECL([build_old_libs], [enable_static], [0],
240 [Whether or not to build static libraries])
241 ])# _LT_ENABLE_STATIC
242
243 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
244 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
245
246 # Old names:
247 AC_DEFUN([AC_ENABLE_STATIC],
248 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
249 ])
250
251 AC_DEFUN([AC_DISABLE_STATIC],
252 [_LT_SET_OPTION([LT_INIT], [disable-static])
253 ])
254
255 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
256 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
257
258 dnl aclocal-1.4 backwards compatibility:
259 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
260 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
261
262
263
264 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
265 # ----------------------------------
266 # implement the --enable-fast-install flag, and support the `fast-install'
267 # and `disable-fast-install' LT_INIT options.
268 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
269 m4_define([_LT_ENABLE_FAST_INSTALL],
270 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
271 AC_ARG_ENABLE([fast-install],
272 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
273 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
274 [p=${PACKAGE-default}
275 case $enableval in
276 yes) enable_fast_install=yes ;;
277 no) enable_fast_install=no ;;
278 *)
279 enable_fast_install=no
280 # Look at the argument we got. We use all the common list separators.
281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
282 for pkg in $enableval; do
283 IFS="$lt_save_ifs"
284 if test "X$pkg" = "X$p"; then
285 enable_fast_install=yes
286 fi
287 done
288 IFS="$lt_save_ifs"
289 ;;
290 esac],
291 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
292
293 _LT_DECL([fast_install], [enable_fast_install], [0],
294 [Whether or not to optimize for fast installation])dnl
295 ])# _LT_ENABLE_FAST_INSTALL
296
297 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
298 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
299
300 # Old names:
301 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
302 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
303 AC_DIAGNOSE([obsolete],
304 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
305 the `fast-install' option into LT_INIT's first parameter.])
306 ])
307
308 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
309 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
310 AC_DIAGNOSE([obsolete],
311 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
312 the `disable-fast-install' option into LT_INIT's first parameter.])
313 ])
314
315 dnl aclocal-1.4 backwards compatibility:
316 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
317 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
318
319
320 # _LT_WITH_PIC([MODE])
321 # --------------------
322 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
323 # LT_INIT options.
324 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
325 m4_define([_LT_WITH_PIC],
326 [AC_ARG_WITH([pic],
327 [AS_HELP_STRING([--with-pic],
328 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
329 [pic_mode="$withval"],
330 [pic_mode=default])
331
332 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
333
334 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
335 ])# _LT_WITH_PIC
336
337 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
338 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
339
340 # Old name:
341 AU_DEFUN([AC_LIBTOOL_PICMODE],
342 [_LT_SET_OPTION([LT_INIT], [pic-only])
343 AC_DIAGNOSE([obsolete],
344 [$0: Remove this warning and the call to _LT_SET_OPTION when you
345 put the `pic-only' option into LT_INIT's first parameter.])
346 ])
347
348 dnl aclocal-1.4 backwards compatibility:
349 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
350
351 ## ----------------- ##
352 ## LTDL_INIT Options ##
353 ## ----------------- ##
354
355 m4_define([_LTDL_MODE], [])
356 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
357 [m4_define([_LTDL_MODE], [nonrecursive])])
358 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
359 [m4_define([_LTDL_MODE], [recursive])])
360 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
361 [m4_define([_LTDL_MODE], [subproject])])
362
363 m4_define([_LTDL_TYPE], [])
364 LT_OPTION_DEFINE([LTDL_INIT], [installable],
365 [m4_define([_LTDL_TYPE], [installable])])
366 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
367 [m4_define([_LTDL_TYPE], [convenience])])
0 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3 # Written by Gary V. Vaughan, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 6 ltsugar.m4
10
11 # This is to help aclocal find these macros, as it can't see m4_define.
12 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
13
14
15 # lt_join(SEP, ARG1, [ARG2...])
16 # -----------------------------
17 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
18 # associated separator.
19 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
20 # versions in m4sugar had bugs.
21 m4_define([lt_join],
22 [m4_if([$#], [1], [],
23 [$#], [2], [[$2]],
24 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
25 m4_define([_lt_join],
26 [m4_if([$#$2], [2], [],
27 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
28
29
30 # lt_car(LIST)
31 # lt_cdr(LIST)
32 # ------------
33 # Manipulate m4 lists.
34 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 m4_define([lt_car], [[$1]])
37 m4_define([lt_cdr],
38 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
39 [$#], 1, [],
40 [m4_dquote(m4_shift($@))])])
41 m4_define([lt_unquote], $1)
42
43
44 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
45 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Note that neither SEPARATOR nor STRING are expanded; they are appended
48 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
49 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
50 # than defined and empty).
51 #
52 # This macro is needed until we can rely on Autoconf 2.62, since earlier
53 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
54 m4_define([lt_append],
55 [m4_define([$1],
56 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
57
58
59
60 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
61 # ----------------------------------------------------------
62 # Produce a SEP delimited list of all paired combinations of elements of
63 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
64 # has the form PREFIXmINFIXSUFFIXn.
65 # Needed until we can rely on m4_combine added in Autoconf 2.62.
66 m4_define([lt_combine],
67 [m4_if(m4_eval([$# > 3]), [1],
68 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
69 [[m4_foreach([_Lt_prefix], [$2],
70 [m4_foreach([_Lt_suffix],
71 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
72 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
73
74
75 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
76 # -----------------------------------------------------------------------
77 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
78 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
79 m4_define([lt_if_append_uniq],
80 [m4_ifdef([$1],
81 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
82 [lt_append([$1], [$2], [$3])$4],
83 [$5])],
84 [lt_append([$1], [$2], [$3])$4])])
85
86
87 # lt_dict_add(DICT, KEY, VALUE)
88 # -----------------------------
89 m4_define([lt_dict_add],
90 [m4_define([$1($2)], [$3])])
91
92
93 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
94 # --------------------------------------------
95 m4_define([lt_dict_add_subkey],
96 [m4_define([$1($2:$3)], [$4])])
97
98
99 # lt_dict_fetch(DICT, KEY, [SUBKEY])
100 # ----------------------------------
101 m4_define([lt_dict_fetch],
102 [m4_ifval([$3],
103 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
104 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
105
106
107 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
108 # -----------------------------------------------------------------
109 m4_define([lt_if_dict_fetch],
110 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
111 [$5],
112 [$6])])
113
114
115 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
116 # --------------------------------------------------------------
117 m4_define([lt_dict_filter],
118 [m4_if([$5], [], [],
119 [lt_join(m4_quote(m4_default([$4], [[, ]])),
120 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
121 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
122 ])
0 # ltversion.m4 -- version numbers -*- Autoconf -*-
1 #
2 # Copyright (C) 2004 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # Generated from ltversion.in.
10
11 # serial 3012 ltversion.m4
12 # This file is part of GNU Libtool
13
14 m4_define([LT_PACKAGE_VERSION], [2.2.6])
15 m4_define([LT_PACKAGE_REVISION], [1.3012])
16
17 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.2.6'
19 macro_revision='1.3012'
20 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
21 _LT_DECL(, macro_revision, 0)
22 ])
0 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004.
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 4 lt~obsolete.m4
10
11 # These exist entirely to fool aclocal when bootstrapping libtool.
12 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # which have later been changed to m4_define as they aren't part of the
15 # exported API, or moved to Autoconf or Automake where they belong.
16 #
17 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
18 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
19 # using a macro with the same name in our local m4/libtool.m4 it'll
20 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
21 # and doesn't know about Autoconf macros at all.)
22 #
23 # So we provide this file, which has a silly filename so it's always
24 # included after everything else. This provides aclocal with the
25 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
26 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 #
29 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
30 # Yes, that means every name once taken will need to remain here until
31 # we give up compatibility with versions before 1.7, at which point
32 # we need to keep only those names which we still refer to.
33
34 # This is to help aclocal find these macros, as it can't see m4_define.
35 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
36
37 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
38 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
39 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
40 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
41 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
42 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
43 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
44 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
45 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
46 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
47 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
48 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
49 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
50 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
51 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
52 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
53 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
54 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
55 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
56 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
57 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
58 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
59 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
60 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
61 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
62 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
63 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
64 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
65 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
66 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
67 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
68 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
69 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
70 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
71 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
72 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
73 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
74 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
75 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
76 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
77 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
78 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
79 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
80 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
81 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
82 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
83 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
84 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
85 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
86 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
87 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
88 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
89 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
90 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
91 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2006-05-10.23
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
6 # Free Software Foundation, Inc.
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
77 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
88
99 # This program is free software; you can redistribute it and/or modify
1717 # GNU General Public License for more details.
1818
1919 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
2321
2422 # As a special exception to the GNU General Public License, if you
2523 # distribute this file as part of a program that contains a
8886 tar try tar, gnutar, gtar, then tar without non-portable flags
8987 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
9088
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90 \`g' are ignored when checking the name.
91
9192 Send bug reports to <bug-automake@gnu.org>."
9293 exit $?
9394 ;;
105106
106107 esac
107108
109 # normalize program name to check for.
110 program=`echo "$1" | sed '
111 s/^gnu-//; t
112 s/^gnu//; t
113 s/^g//; t'`
114
108115 # Now exit if we have it, but it failed. Also exit now if we
109116 # don't have it and --version was passed (most likely to detect
110 # the program).
117 # the program). This is about non-GNU programs, so use $1 not
118 # $program.
111119 case $1 in
112 lex|yacc)
120 lex*|yacc*)
113121 # Not GNU programs, they don't have --version.
114122 ;;
115123
116 tar)
124 tar*)
117125 if test -n "$run"; then
118126 echo 1>&2 "ERROR: \`tar' requires --run"
119127 exit 1
137145
138146 # If it does not exist, or fails to run (possibly an outdated version),
139147 # try to emulate it.
140 case $1 in
148 case $program in
141149 aclocal*)
142150 echo 1>&2 "\
143151 WARNING: \`$1' is $msg. You should only need it if
147155 touch aclocal.m4
148156 ;;
149157
150 autoconf)
158 autoconf*)
151159 echo 1>&2 "\
152160 WARNING: \`$1' is $msg. You should only need it if
153161 you modified \`${configure_ac}'. You might want to install the
156164 touch configure
157165 ;;
158166
159 autoheader)
167 autoheader*)
160168 echo 1>&2 "\
161169 WARNING: \`$1' is $msg. You should only need it if
162170 you modified \`acconfig.h' or \`${configure_ac}'. You might want
186194 while read f; do touch "$f"; done
187195 ;;
188196
189 autom4te)
197 autom4te*)
190198 echo 1>&2 "\
191199 WARNING: \`$1' is needed, but is $msg.
192200 You might have modified some files without having the
209217 fi
210218 ;;
211219
212 bison|yacc)
220 bison*|yacc*)
213221 echo 1>&2 "\
214222 WARNING: \`$1' $msg. You should only need it if
215223 you modified a \`.y' file. You may need the \`Bison' package
239247 fi
240248 ;;
241249
242 lex|flex)
250 lex*|flex*)
243251 echo 1>&2 "\
244252 WARNING: \`$1' is $msg. You should only need it if
245253 you modified a \`.l' file. You may need the \`Flex' package
262270 fi
263271 ;;
264272
265 help2man)
273 help2man*)
266274 echo 1>&2 "\
267275 WARNING: \`$1' is $msg. You should only need it if
268276 you modified a dependency of a manual page. You may need the
276284 else
277285 test -z "$file" || exec >$file
278286 echo ".ab help2man is required to generate this page"
279 exit 1
280 fi
281 ;;
282
283 makeinfo)
287 exit $?
288 fi
289 ;;
290
291 makeinfo*)
284292 echo 1>&2 "\
285293 WARNING: \`$1' is $msg. You should only need it if
286294 you modified a \`.texi' or \`.texinfo' file, or any other file
309317 touch $file
310318 ;;
311319
312 tar)
320 tar*)
313321 shift
314322
315323 # We have already tried tar in the generic part.
362370 # eval: (add-hook 'write-file-hooks 'time-stamp)
363371 # time-stamp-start: "scriptversion="
364372 # time-stamp-format: "%:y-%02m-%02d.%02H"
365 # time-stamp-end: "$"
373 # time-stamp-time-zone: "UTC"
374 # time-stamp-end: "; # UTC"
366375 # End:
2121 idle-handles.h \
2222 idle-im-channel.c \
2323 idle-im-channel.h \
24 idle-im-factory.c \
25 idle-im-factory.h \
24 idle-im-manager.c \
25 idle-im-manager.h \
2626 idle-muc-channel.c \
2727 idle-muc-channel.h \
28 idle-muc-factory.c \
29 idle-muc-factory.h \
28 idle-muc-manager.c \
29 idle-muc-manager.h \
3030 idle-parser.c \
3131 idle-parser.h \
3232 idle-server-connection.c \
7171 @TELEPATHY_LIBS@
7272
7373 %-signals-marshal.h: %-signals-marshal.list Makefile
74 glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.h
74 $(AM_V_GEN)glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.h
7575
7676 %-signals-marshal.c: %-signals-marshal.list Makefile
77 glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.c
77 $(AM_V_GEN)glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.c
7878
7979 %-marshal.h: %-marshal.list Makefile
80 glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
80 $(AM_V_GEN)glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
8181
8282 %-marshal.c: %-marshal.list Makefile
83 glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.c
83 $(AM_V_GEN)glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.c
8484
8585 man_MANS = telepathy-idle.8
8686
8787 EXTRA_DIST = telepathy-idle.8.in
8888
8989 %.8: %.8.in Makefile
90 sed -e 's,[@]libexecdir[@],@libexecdir@,' < $< > $@
90 $(AM_V_GEN)sed -e 's,[@]libexecdir[@],@libexecdir@,' < $< > $@
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1617
1718 VPATH = @srcdir@
1819 pkgdatadir = $(datadir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
1921 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
22 pkglibexecdir = $(libexecdir)/@PACKAGE@
2123 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2224 install_sh_DATA = $(install_sh) -c -m 644
2325 install_sh_PROGRAM = $(install_sh) -c
3840 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3941 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
4042 $(top_srcdir)/m4/as-compiler-flag.m4 \
41 $(top_srcdir)/configure.ac
43 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
44 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
45 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
4246 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4347 $(ACLOCAL_M4)
4448 mkinstalldirs = $(install_sh) -d
4549 CONFIG_HEADER = $(top_builddir)/config.h
4650 CONFIG_CLEAN_FILES =
51 CONFIG_CLEAN_VPATH_FILES =
4752 LTLIBRARIES = $(noinst_LTLIBRARIES)
4853 libidle_convenience_la_DEPENDENCIES = \
4954 $(top_builddir)/extensions/libidle-extensions.la
5055 am_libidle_convenience_la_OBJECTS = idle-connection.lo \
5156 idle-connection-manager.lo idle-ctcp.lo idle-debug.lo \
5257 idle-dns-resolver.lo idle-handles.lo idle-im-channel.lo \
53 idle-im-factory.lo idle-muc-channel.lo idle-muc-factory.lo \
58 idle-im-manager.lo idle-muc-channel.lo idle-muc-manager.lo \
5459 idle-parser.lo idle-server-connection.lo \
5560 idle-server-connection-iface.lo idle-ssl-server-connection.lo \
5661 idle-text.lo
5863 nodist_libidle_convenience_la_OBJECTS = $(am__objects_1)
5964 libidle_convenience_la_OBJECTS = $(am_libidle_convenience_la_OBJECTS) \
6065 $(nodist_libidle_convenience_la_OBJECTS)
66 AM_V_lt = $(am__v_lt_$(V))
67 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
68 am__v_lt_0 = --silent
6169 am__installdirs = "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(man8dir)"
62 libexecPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
6370 PROGRAMS = $(libexec_PROGRAMS)
6471 am_telepathy_idle_OBJECTS = idle.$(OBJEXT)
6572 telepathy_idle_OBJECTS = $(am_telepathy_idle_OBJECTS)
6976 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
7077 depcomp = $(SHELL) $(top_srcdir)/depcomp
7178 am__depfiles_maybe = depfiles
79 am__mv = mv -f
7280 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
7381 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
74 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
75 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
76 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
82 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
83 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
84 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
85 $(AM_CFLAGS) $(CFLAGS)
86 AM_V_CC = $(am__v_CC_$(V))
87 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
88 am__v_CC_0 = @echo " CC " $@;
89 AM_V_at = $(am__v_at_$(V))
90 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
91 am__v_at_0 = @
7792 CCLD = $(CC)
78 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
79 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
80 $(LDFLAGS) -o $@
93 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
94 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
95 $(AM_LDFLAGS) $(LDFLAGS) -o $@
96 AM_V_CCLD = $(am__v_CCLD_$(V))
97 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
98 am__v_CCLD_0 = @echo " CCLD " $@;
99 AM_V_GEN = $(am__v_GEN_$(V))
100 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
101 am__v_GEN_0 = @echo " GEN " $@;
81102 SOURCES = $(libidle_convenience_la_SOURCES) \
82103 $(nodist_libidle_convenience_la_SOURCES) \
83104 $(telepathy_idle_SOURCES)
84105 DIST_SOURCES = $(libidle_convenience_la_SOURCES) \
85106 $(telepathy_idle_SOURCES)
107 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
108 am__vpath_adj = case $$p in \
109 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
110 *) f=$$p;; \
111 esac;
112 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
113 am__install_max = 40
114 am__nobase_strip_setup = \
115 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
116 am__nobase_strip = \
117 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
118 am__nobase_list = $(am__nobase_strip_setup); \
119 for p in $$list; do echo "$$p $$p"; done | \
120 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
121 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
122 if (++n[$$2] == $(am__install_max)) \
123 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
124 END { for (dir in files) print dir, files[dir] }'
125 am__base_list = \
126 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
127 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
86128 man8dir = $(mandir)/man8
87129 NROFF = nroff
88130 MANS = $(man_MANS)
91133 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
92134 ACLOCAL = @ACLOCAL@
93135 AMTAR = @AMTAR@
136 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
94137 AR = @AR@
95138 AUTOCONF = @AUTOCONF@
96139 AUTOHEADER = @AUTOHEADER@
104147 CFLAGS = @CFLAGS@
105148 CPP = @CPP@
106149 CPPFLAGS = @CPPFLAGS@
107 CXX = @CXX@
108 CXXCPP = @CXXCPP@
109 CXXDEPMODE = @CXXDEPMODE@
110 CXXFLAGS = @CXXFLAGS@
111150 CYGPATH_W = @CYGPATH_W@
112151 DATADIR = @DATADIR@
113152 DBUS_CFLAGS = @DBUS_CFLAGS@
116155 DEFS = @DEFS@
117156 DEPDIR = @DEPDIR@
118157 DSYMUTIL = @DSYMUTIL@
119 ECHO = @ECHO@
158 DUMPBIN = @DUMPBIN@
120159 ECHO_C = @ECHO_C@
121160 ECHO_N = @ECHO_N@
122161 ECHO_T = @ECHO_T@
123162 EGREP = @EGREP@
124163 ERROR_CFLAGS = @ERROR_CFLAGS@
125164 EXEEXT = @EXEEXT@
126 F77 = @F77@
127 FFLAGS = @FFLAGS@
165 FGREP = @FGREP@
128166 GLIB_CFLAGS = @GLIB_CFLAGS@
129167 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
130168 GLIB_LIBS = @GLIB_LIBS@
134172 INSTALL_PROGRAM = @INSTALL_PROGRAM@
135173 INSTALL_SCRIPT = @INSTALL_SCRIPT@
136174 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
175 LD = @LD@
137176 LDFLAGS = @LDFLAGS@
138177 LIBOBJS = @LIBOBJS@
139178 LIBS = @LIBS@
140179 LIBTOOL = @LIBTOOL@
180 LIPO = @LIPO@
141181 LN_S = @LN_S@
142182 LTLIBOBJS = @LTLIBOBJS@
143183 MAKEINFO = @MAKEINFO@
144184 MKDIR_P = @MKDIR_P@
185 NM = @NM@
145186 NMEDIT = @NMEDIT@
187 OBJDUMP = @OBJDUMP@
146188 OBJEXT = @OBJEXT@
147189 OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
148190 OPENSSL_LIBS = @OPENSSL_LIBS@
191 OTOOL = @OTOOL@
192 OTOOL64 = @OTOOL64@
149193 PACKAGE = @PACKAGE@
150194 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
151195 PACKAGE_NAME = @PACKAGE_NAME@
152196 PACKAGE_STRING = @PACKAGE_STRING@
153197 PACKAGE_TARNAME = @PACKAGE_TARNAME@
198 PACKAGE_URL = @PACKAGE_URL@
154199 PACKAGE_VERSION = @PACKAGE_VERSION@
155200 PATH_SEPARATOR = @PATH_SEPARATOR@
156201 PKG_CONFIG = @PKG_CONFIG@
170215 abs_top_builddir = @abs_top_builddir@
171216 abs_top_srcdir = @abs_top_srcdir@
172217 ac_ct_CC = @ac_ct_CC@
173 ac_ct_CXX = @ac_ct_CXX@
174 ac_ct_F77 = @ac_ct_F77@
218 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
175219 am__include = @am__include@
176220 am__leading_dot = @am__leading_dot@
177221 am__quote = @am__quote@
202246 libexecdir = @libexecdir@
203247 localedir = @localedir@
204248 localstatedir = @localstatedir@
249 lt_ECHO = @lt_ECHO@
205250 mandir = @mandir@
206251 mkdir_p = @mkdir_p@
207252 oldincludedir = @oldincludedir@
214259 srcdir = @srcdir@
215260 sysconfdir = @sysconfdir@
216261 target_alias = @target_alias@
262 top_build_prefix = @top_build_prefix@
217263 top_builddir = @top_builddir@
218264 top_srcdir = @top_srcdir@
219265 BUILT_SOURCES = \
238284 idle-handles.h \
239285 idle-im-channel.c \
240286 idle-im-channel.h \
241 idle-im-factory.c \
242 idle-im-factory.h \
287 idle-im-manager.c \
288 idle-im-manager.h \
243289 idle-muc-channel.c \
244290 idle-muc-channel.h \
245 idle-muc-factory.c \
246 idle-muc-factory.h \
291 idle-muc-manager.c \
292 idle-muc-manager.h \
247293 idle-parser.c \
248294 idle-parser.h \
249295 idle-server-connection.c \
297343 @for dep in $?; do \
298344 case '$(am__configure_deps)' in \
299345 *$$dep*) \
300 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
301 && exit 0; \
346 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
347 && { if test -f $@; then exit 0; else break; fi; }; \
302348 exit 1;; \
303349 esac; \
304350 done; \
305 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
306 cd $(top_srcdir) && \
307 $(AUTOMAKE) --gnu src/Makefile
351 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
352 $(am__cd) $(top_srcdir) && \
353 $(AUTOMAKE) --gnu src/Makefile
308354 .PRECIOUS: Makefile
309355 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
310356 @case '$?' in \
322368 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
323369 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
324370 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
371 $(am__aclocal_m4_deps):
325372
326373 clean-noinstLTLIBRARIES:
327374 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
332379 rm -f "$${dir}/so_locations"; \
333380 done
334381 libidle-convenience.la: $(libidle_convenience_la_OBJECTS) $(libidle_convenience_la_DEPENDENCIES)
335 $(LINK) $(libidle_convenience_la_OBJECTS) $(libidle_convenience_la_LIBADD) $(LIBS)
382 $(AM_V_CCLD)$(LINK) $(libidle_convenience_la_OBJECTS) $(libidle_convenience_la_LIBADD) $(LIBS)
336383 install-libexecPROGRAMS: $(libexec_PROGRAMS)
337384 @$(NORMAL_INSTALL)
338385 test -z "$(libexecdir)" || $(MKDIR_P) "$(DESTDIR)$(libexecdir)"
339 @list='$(libexec_PROGRAMS)'; for p in $$list; do \
340 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
341 if test -f $$p \
342 || test -f $$p1 \
343 ; then \
344 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
345 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libexecPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(libexecdir)/$$f'"; \
346 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libexecPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(libexecdir)/$$f" || exit 1; \
347 else :; fi; \
348 done
386 @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \
387 for p in $$list; do echo "$$p $$p"; done | \
388 sed 's/$(EXEEXT)$$//' | \
389 while read p p1; do if test -f $$p || test -f $$p1; \
390 then echo "$$p"; echo "$$p"; else :; fi; \
391 done | \
392 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
393 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
394 sed 'N;N;N;s,\n, ,g' | \
395 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
396 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
397 if ($$2 == $$4) files[d] = files[d] " " $$1; \
398 else { print "f", $$3 "/" $$4, $$1; } } \
399 END { for (d in files) print "f", d, files[d] }' | \
400 while read type dir files; do \
401 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
402 test -z "$$files" || { \
403 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \
404 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \
405 } \
406 ; done
349407
350408 uninstall-libexecPROGRAMS:
351409 @$(NORMAL_UNINSTALL)
352 @list='$(libexec_PROGRAMS)'; for p in $$list; do \
353 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
354 echo " rm -f '$(DESTDIR)$(libexecdir)/$$f'"; \
355 rm -f "$(DESTDIR)$(libexecdir)/$$f"; \
356 done
410 @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \
411 files=`for p in $$list; do echo "$$p"; done | \
412 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
413 -e 's/$$/$(EXEEXT)/' `; \
414 test -n "$$list" || exit 0; \
415 echo " ( cd '$(DESTDIR)$(libexecdir)' && rm -f" $$files ")"; \
416 cd "$(DESTDIR)$(libexecdir)" && rm -f $$files
357417
358418 clean-libexecPROGRAMS:
359 @list='$(libexec_PROGRAMS)'; for p in $$list; do \
360 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
361 echo " rm -f $$p $$f"; \
362 rm -f $$p $$f ; \
363 done
419 @list='$(libexec_PROGRAMS)'; test -n "$$list" || exit 0; \
420 echo " rm -f" $$list; \
421 rm -f $$list || exit $$?; \
422 test -n "$(EXEEXT)" || exit 0; \
423 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
424 echo " rm -f" $$list; \
425 rm -f $$list
364426 telepathy-idle$(EXEEXT): $(telepathy_idle_OBJECTS) $(telepathy_idle_DEPENDENCIES)
365427 @rm -f telepathy-idle$(EXEEXT)
366 $(LINK) $(telepathy_idle_OBJECTS) $(telepathy_idle_LDADD) $(LIBS)
428 $(AM_V_CCLD)$(LINK) $(telepathy_idle_OBJECTS) $(telepathy_idle_LDADD) $(LIBS)
367429
368430 mostlyclean-compile:
369431 -rm -f *.$(OBJEXT)
378440 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-dns-resolver.Plo@am__quote@
379441 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-handles.Plo@am__quote@
380442 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-im-channel.Plo@am__quote@
381 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-im-factory.Plo@am__quote@
443 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-im-manager.Plo@am__quote@
382444 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-muc-channel.Plo@am__quote@
383 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-muc-factory.Plo@am__quote@
445 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-muc-manager.Plo@am__quote@
384446 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-parser.Plo@am__quote@
385447 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-server-connection-iface-signals-marshal.Plo@am__quote@
386448 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle-server-connection-iface.Plo@am__quote@
390452 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idle.Po@am__quote@
391453
392454 .c.o:
393 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
394 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
455 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
456 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
457 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
395458 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
396459 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
397460 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
398461
399462 .c.obj:
400 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
401 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
463 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
464 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
465 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
402466 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
403467 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
404468 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
405469
406470 .c.lo:
407 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
408 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
471 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
472 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
473 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
409474 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
410475 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
411476 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
415480
416481 clean-libtool:
417482 -rm -rf .libs _libs
418 install-man8: $(man8_MANS) $(man_MANS)
483 install-man8: $(man_MANS)
419484 @$(NORMAL_INSTALL)
420485 test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
421 @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
422 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
423 for i in $$l2; do \
424 case "$$i" in \
425 *.8*) list="$$list $$i" ;; \
426 esac; \
486 @list=''; test -n "$(man8dir)" || exit 0; \
487 { for i in $$list; do echo "$$i"; done; \
488 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
489 sed -n '/\.8[a-z]*$$/p'; \
490 } | while read p; do \
491 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
492 echo "$$d$$p"; echo "$$p"; \
493 done | \
494 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
495 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
496 sed 'N;N;s,\n, ,g' | { \
497 list=; while read file base inst; do \
498 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
499 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
500 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \
501 fi; \
427502 done; \
428 for i in $$list; do \
429 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
430 else file=$$i; fi; \
431 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
432 case "$$ext" in \
433 8*) ;; \
434 *) ext='8' ;; \
435 esac; \
436 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
437 inst=`echo $$inst | sed -e 's/^.*\///'`; \
438 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
439 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
440 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \
441 done
503 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
504 while read files; do \
505 test -z "$$files" || { \
506 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \
507 $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \
508 done; }
509
442510 uninstall-man8:
443511 @$(NORMAL_UNINSTALL)
444 @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
445 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
446 for i in $$l2; do \
447 case "$$i" in \
448 *.8*) list="$$list $$i" ;; \
449 esac; \
450 done; \
451 for i in $$list; do \
452 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
453 case "$$ext" in \
454 8*) ;; \
455 *) ext='8' ;; \
456 esac; \
457 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
458 inst=`echo $$inst | sed -e 's/^.*\///'`; \
459 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
460 echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \
461 rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
462 done
512 @list=''; test -n "$(man8dir)" || exit 0; \
513 files=`{ for i in $$list; do echo "$$i"; done; \
514 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
515 sed -n '/\.8[a-z]*$$/p'; \
516 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
517 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
518 test -z "$$files" || { \
519 echo " ( cd '$(DESTDIR)$(man8dir)' && rm -f" $$files ")"; \
520 cd "$(DESTDIR)$(man8dir)" && rm -f $$files; }
463521
464522 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
465523 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
466524 unique=`for i in $$list; do \
467525 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
468526 done | \
469 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
527 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
470528 END { if (nonempty) { for (i in files) print i; }; }'`; \
471529 mkid -fID $$unique
472530 tags: TAGS
473531
474532 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
475533 $(TAGS_FILES) $(LISP)
476 tags=; \
534 set x; \
477535 here=`pwd`; \
478536 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
479537 unique=`for i in $$list; do \
481539 done | \
482540 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
483541 END { if (nonempty) { for (i in files) print i; }; }'`; \
484 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
542 shift; \
543 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
485544 test -n "$$unique" || unique=$$empty_fix; \
486 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
487 $$tags $$unique; \
545 if test $$# -gt 0; then \
546 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
547 "$$@" $$unique; \
548 else \
549 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
550 $$unique; \
551 fi; \
488552 fi
489553 ctags: CTAGS
490554 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
491555 $(TAGS_FILES) $(LISP)
492 tags=; \
493556 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
494557 unique=`for i in $$list; do \
495558 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
496559 done | \
497560 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
498561 END { if (nonempty) { for (i in files) print i; }; }'`; \
499 test -z "$(CTAGS_ARGS)$$tags$$unique" \
562 test -z "$(CTAGS_ARGS)$$unique" \
500563 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
501 $$tags $$unique
564 $$unique
502565
503566 GTAGS:
504567 here=`$(am__cd) $(top_builddir) && pwd` \
505 && cd $(top_srcdir) \
506 && gtags -i $(GTAGS_ARGS) $$here
568 && $(am__cd) $(top_srcdir) \
569 && gtags -i $(GTAGS_ARGS) "$$here"
507570
508571 distclean-tags:
509572 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
510573
511574 distdir: $(DISTFILES)
575 @list='$(MANS)'; if test -n "$$list"; then \
576 list=`for p in $$list; do \
577 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
578 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
579 if test -n "$$list" && \
580 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
581 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
582 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
583 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
584 echo " typically \`make maintainer-clean' will remove them" >&2; \
585 exit 1; \
586 else :; fi; \
587 else :; fi
512588 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
513589 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
514590 list='$(DISTFILES)'; \
524600 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
525601 if test -d $$d/$$file; then \
526602 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
603 if test -d "$(distdir)/$$file"; then \
604 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
605 fi; \
527606 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
528 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
607 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
608 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
529609 fi; \
530 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
610 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
531611 else \
532 test -f $(distdir)/$$file \
533 || cp -p $$d/$$file $(distdir)/$$file \
612 test -f "$(distdir)/$$file" \
613 || cp -p $$d/$$file "$(distdir)/$$file" \
534614 || exit 1; \
535615 fi; \
536616 done
564644
565645 distclean-generic:
566646 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
647 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
567648
568649 maintainer-clean-generic:
569650 @echo "This command is intended for maintainers to use"
586667
587668 html: html-am
588669
670 html-am:
671
589672 info: info-am
590673
591674 info-am:
594677
595678 install-dvi: install-dvi-am
596679
680 install-dvi-am:
681
597682 install-exec-am: install-libexecPROGRAMS
598683
599684 install-html: install-html-am
600685
686 install-html-am:
687
601688 install-info: install-info-am
602689
690 install-info-am:
691
603692 install-man: install-man8
604693
605694 install-pdf: install-pdf-am
606695
696 install-pdf-am:
697
607698 install-ps: install-ps-am
699
700 install-ps-am:
608701
609702 installcheck-am:
610703
630723
631724 uninstall-man: uninstall-man8
632725
633 .MAKE: install-am install-strip
726 .MAKE: all check install install-am install-strip
634727
635728 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
636729 clean-libexecPROGRAMS clean-libtool clean-noinstLTLIBRARIES \
650743
651744
652745 %-signals-marshal.h: %-signals-marshal.list Makefile
653 glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.h
746 $(AM_V_GEN)glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.h
654747
655748 %-signals-marshal.c: %-signals-marshal.list Makefile
656 glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.c
749 $(AM_V_GEN)glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-signals-marshal.c
657750
658751 %-marshal.h: %-marshal.list Makefile
659 glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
752 $(AM_V_GEN)glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
660753
661754 %-marshal.c: %-marshal.list Makefile
662 glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.c
755 $(AM_V_GEN)glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.c
663756
664757 %.8: %.8.in Makefile
665 sed -e 's,[@]libexecdir[@],@libexecdir@,' < $< > $@
758 $(AM_V_GEN)sed -e 's,[@]libexecdir[@],@libexecdir@,' < $< > $@
759
666760 # Tell versions [3.59,3.63) of GNU make to not export all variables.
667761 # Otherwise a system limit (for SysV at least) may be exceeded.
668762 .NOEXPORT:
3535 guint16 port;
3636 gchar *password;
3737 gchar *fullname;
38 gchar *username;
3839 gchar *charset;
3940 gchar *quit_message;
4041 gboolean use_ssl;
5354 g_free(params->server);
5455 g_free(params->password);
5556 g_free(params->fullname);
57 g_free(params->username);
5658 g_free(params->charset);
5759 g_free(params->quit_message);
5860
7880 g_assert(G_VALUE_HOLDS_STRING(value));
7981
8082 const gchar* nick = g_value_get_string (value);
81 if (!idle_nickname_is_valid(nick)) {
83 if (!idle_nickname_is_valid(nick, TRUE)) {
8284 g_set_error(error, TP_ERRORS, TP_ERROR_INVALID_HANDLE, "Invalid account name '%s'", nick);
8385 return FALSE;
8486 }
9294 {"port", DBUS_TYPE_UINT16_AS_STRING, G_TYPE_UINT, TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT, GINT_TO_POINTER(6667), G_STRUCT_OFFSET(Params, port)},
9395 {"password", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, 0, NULL, G_STRUCT_OFFSET(Params, password)},
9496 {"fullname", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, 0, NULL, G_STRUCT_OFFSET(Params, fullname)},
97 {"username", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, 0, NULL, G_STRUCT_OFFSET(Params, username)},
9598 {"charset", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT, "UTF-8", G_STRUCT_OFFSET(Params, charset)},
96 {"quit-message", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT, "So long and thanks for all the IRC - telepathy-idle IRC Connection Manager for Telepathy - http://telepathy.freedesktop.org", G_STRUCT_OFFSET(Params, quit_message)},
99 {"quit-message", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, 0, NULL, G_STRUCT_OFFSET(Params, quit_message)},
97100 {"use-ssl", DBUS_TYPE_BOOLEAN_AS_STRING, G_TYPE_BOOLEAN, TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT, GINT_TO_POINTER(FALSE), G_STRUCT_OFFSET(Params, use_ssl)},
98101 {NULL, NULL, 0, 0, NULL, 0}
99102 };
129132 "port", params->port,
130133 "password", params->password,
131134 "realname", params->fullname,
135 "username", params->username,
132136 "charset", params->charset,
133137 "quit-message", params->quit_message,
134138 "use-ssl", params->use_ssl,
2121
2222 #include <config.h>
2323
24 /* strnlen */
25 #define __USE_GNU
2624 #include <string.h>
2725 #include <time.h>
2826
3331 #include <telepathy-glib/errors.h>
3432 #include <telepathy-glib/interfaces.h>
3533 #include <telepathy-glib/svc-connection.h>
36 #include <telepathy-glib/channel-factory-iface.h>
34 #include <telepathy-glib/channel-manager.h>
3735
3836 #define IDLE_DEBUG_FLAG IDLE_DEBUG_CONNECTION
3937 #include "idle-ctcp.h"
4038 #include "idle-debug.h"
4139 #include "idle-handles.h"
42 #include "idle-im-factory.h"
43 #include "idle-muc-factory.h"
40 #include "idle-im-manager.h"
41 #include "idle-muc-manager.h"
4442 #include "idle-parser.h"
4543 #include "idle-server-connection.h"
4644 #include "idle-server-connection-iface.h"
119117 PROP_PORT,
120118 PROP_PASSWORD,
121119 PROP_REALNAME,
120 PROP_USERNAME,
122121 PROP_CHARSET,
123122 PROP_QUITMESSAGE,
124123 PROP_USE_SSL,
141140 guint port;
142141 char *password;
143142 char *realname;
143 char *username;
144144 char *charset;
145145 char *quit_message;
146146 gboolean use_ssl;
175175 #define IDLE_CONNECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), IDLE_TYPE_CONNECTION, IdleConnectionPrivate))
176176
177177 static void _iface_create_handle_repos(TpBaseConnection *self, TpHandleRepoIface **repos);
178 static GPtrArray *_iface_create_channel_factories(TpBaseConnection *self);
178 static GPtrArray *_iface_create_channel_managers(TpBaseConnection *self);
179179 static gchar *_iface_get_unique_connection_name(TpBaseConnection *self);
180180 static void _iface_disconnected(TpBaseConnection *self);
181181 static void _iface_shut_down(TpBaseConnection *self);
242242 priv->realname = g_value_dup_string(value);
243243 break;
244244
245 case PROP_USERNAME:
246 g_free(priv->username);
247 priv->username = g_value_dup_string(value);
248 break;
249
245250 case PROP_CHARSET:
246251 g_free(priv->charset);
247252 priv->charset = g_value_dup_string(value);
284289
285290 case PROP_REALNAME:
286291 g_value_set_string(value, priv->realname);
292 break;
293
294 case PROP_USERNAME:
295 g_value_set_string(value, priv->username);
287296 break;
288297
289298 case PROP_CHARSET:
341350 g_free(priv->server);
342351 g_free(priv->password);
343352 g_free(priv->realname);
353 g_free(priv->username);
344354 g_free(priv->charset);
345355 g_free(priv->relay_prefix);
346356 g_free(priv->quit_message);
360370 static const gchar *interfaces_always_present[] = {
361371 TP_IFACE_CONNECTION_INTERFACE_ALIASING,
362372 IDLE_IFACE_CONNECTION_INTERFACE_RENAMING,
373 TP_IFACE_CONNECTION_INTERFACE_REQUESTS,
363374 NULL};
364375
365376 g_type_class_add_private(klass, sizeof(IdleConnectionPrivate));
372383
373384 parent_class->create_handle_repos = _iface_create_handle_repos;
374385 parent_class->get_unique_connection_name = _iface_get_unique_connection_name;
375 parent_class->create_channel_factories = _iface_create_channel_factories;
386 parent_class->create_channel_factories = NULL;
387 parent_class->create_channel_managers = _iface_create_channel_managers;
376388 parent_class->connecting = NULL;
377389 parent_class->connected = NULL;
378390 parent_class->disconnected = _iface_disconnected;
395407 param_spec = g_param_spec_string("realname", "Real name", "The real name of the user connecting to IRC", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB);
396408 g_object_class_install_property(object_class, PROP_REALNAME, param_spec);
397409
410 param_spec = g_param_spec_string("username", "User name", "The username of the user connecting to IRC", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB);
411 g_object_class_install_property(object_class, PROP_USERNAME, param_spec);
412
398413 param_spec = g_param_spec_string("charset", "Character set", "The character set to use to communicate with the outside world", "NULL", G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_CONSTRUCT);
399414 g_object_class_install_property(object_class, PROP_CHARSET, param_spec);
400415
405420 g_object_class_install_property(object_class, PROP_USE_SSL, param_spec);
406421 }
407422
408 static GPtrArray *_iface_create_channel_factories(TpBaseConnection *self) {
409 GPtrArray *factories = g_ptr_array_sized_new(1);
410 GObject *factory;
411
412 factory = g_object_new(IDLE_TYPE_IM_FACTORY, "connection", self, NULL);
413 g_ptr_array_add(factories, factory);
414
415 factory = g_object_new(IDLE_TYPE_MUC_FACTORY, "connection", self, NULL);
416 g_ptr_array_add(factories, factory);
417
418 return factories;
423 static GPtrArray *_iface_create_channel_managers(TpBaseConnection *self) {
424 GPtrArray *managers = g_ptr_array_sized_new(1);
425 GObject *manager;
426
427 manager = g_object_new(IDLE_TYPE_IM_MANAGER, "connection", self, NULL);
428 g_ptr_array_add(managers, manager);
429
430 manager = g_object_new(IDLE_TYPE_MUC_MANAGER, "connection", self, NULL);
431 g_ptr_array_add(managers, manager);
432
433 return managers;
419434 }
420435
421436 static void _iface_create_handle_repos(TpBaseConnection *self, TpHandleRepoIface **repos) {
428443 static gchar *_iface_get_unique_connection_name(TpBaseConnection *self) {
429444 IdleConnectionPrivate *priv = IDLE_CONNECTION_GET_PRIVATE(self);
430445
431 return g_strdup_printf("%s@%s", priv->nickname, priv->server);
446 return g_strdup_printf("%s@%s%p", priv->nickname, priv->server, self);
432447 }
433448
434449 static gboolean _finish_shutdown_idle_func(gpointer data) {
503518 priv->realname = g_strdup(g_realname);
504519 else
505520 priv->realname = g_strdup(priv->nickname);
521 }
522
523 if (!priv->username || !priv->username[0]) {
524 g_free(priv->username);
525 priv->username = g_strdup(priv->nickname);
506526 }
507527
508528 sconn = IDLE_SERVER_CONNECTION_IFACE(g_object_new(connection_type, "host", priv->server, "port", priv->port, NULL));
724744 }
725745
726746 void idle_connection_send(IdleConnection *conn, const gchar *msg) {
727 return _send_with_priority(conn, msg, SERVER_CMD_NORMAL_PRIORITY);
747 _send_with_priority(conn, msg, SERVER_CMD_NORMAL_PRIORITY);
728748 }
729749
730750 gsize
765785 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
766786
767787 if (old_handle == conn->parent.self_handle) {
788 IDLE_DEBUG("Self renamed: handle was %d, now %d", old_handle, new_handle);
768789 tp_base_connection_set_self_handle(TP_BASE_CONNECTION(conn), new_handle);
769790 }
770791
863884 g_snprintf(msg, IRC_MSG_MAXLEN + 1, "NICK %s", priv->nickname);
864885 idle_connection_send(conn, msg);
865886
866 g_snprintf(msg, IRC_MSG_MAXLEN + 1, "USER %s %u * :%s", priv->nickname, 8, priv->realname);
887 g_snprintf(msg, IRC_MSG_MAXLEN + 1, "USER %s %u * :%s", priv->username, 8, priv->realname);
867888 idle_connection_send(conn, msg);
868889
869890 /* gather some information about ourselves */
873894
874895 static void send_quit_request(IdleConnection *conn) {
875896 IdleConnectionPrivate *priv = IDLE_CONNECTION_GET_PRIVATE(conn);
876 gchar cmd[IRC_MSG_MAXLEN + 1];
877
878 g_snprintf(cmd, IRC_MSG_MAXLEN + 1, "QUIT :%s", priv->quit_message);
897 gchar cmd[IRC_MSG_MAXLEN + 1] = "QUIT";
898
899 if (priv->quit_message != NULL)
900 g_snprintf(cmd, IRC_MSG_MAXLEN + 1, "QUIT :%s", priv->quit_message);
879901
880902 _send_with_priority(conn, cmd, SERVER_CMD_MAX_PRIORITY);
881903 }
2626 #include <telepathy-glib/errors.h>
2727 #include <telepathy-glib/handle-repo-dynamic.h>
2828
29 gboolean idle_nickname_is_valid(const gchar *nickname) {
30 const gchar *char_pos = nickname;
29 #define IDLE_DEBUG_FLAG IDLE_DEBUG_PARSER
30 #include "idle-debug.h"
31
32 /* When strict_mode is true, we validate the nick strictly against the IRC
33 * RFCs (e.g. only ascii characters, no leading '-'. When strict_mode is
34 * false, we releax the requirements slightly. This is because we don't want
35 * to allow contribute to invalid nicks on IRC, but we want to be able to
36 * handle them if another client allows people to use invalid nicks */
37 gboolean idle_nickname_is_valid(const gchar *nickname, gboolean strict_mode) {
38 const gchar *char_pos;
39
40 IDLE_DEBUG("Validating nickname '%s' with strict mode %d", nickname, strict_mode);
3141
3242 /* FIXME: also check for max length? */
3343 if (!nickname || *nickname == '\0')
3444 return FALSE;
3545
36 while (TRUE) {
46 for (char_pos = nickname; *char_pos; char_pos = g_utf8_find_next_char(char_pos, NULL)) {
47 /* only used for non-strict checks */
48 gunichar ucs4char = g_utf8_get_char_validated(char_pos, -1);
3749
3850 switch (*char_pos) {
3951 case '[':
4759 case '}':
4860 break;
4961
50 /* - not allowed as first char in a nickname */
62 /* '-' is technically not allowed as first char in a nickname */
5163 case '-':
52 if (char_pos == nickname)
53 return FALSE;
54 break;
55
56 case '\0':
57 return TRUE;
64 if (strict_mode) {
65 if (char_pos == nickname)
66 return FALSE;
67 }
5868 break;
5969
6070 default:
61 if (!(g_ascii_isalpha(*char_pos) || ((char_pos != nickname) && g_ascii_isdigit(*char_pos))))
62 return FALSE;
71 if (strict_mode) {
72 /* only accept ascii characters in strict mode */
73 if (!(g_ascii_isalpha(*char_pos) || ((char_pos != nickname) && g_ascii_isdigit(*char_pos)))) {
74 IDLE_DEBUG("invalid character '%c'", *char_pos);
75 return FALSE;
76 }
77 } else {
78 /* allow unicode and digits as first char in non-strict mode */
79 if (!(g_unichar_isalpha(ucs4char) || g_unichar_isdigit(ucs4char))) {
80 IDLE_DEBUG("invalid character %d", ucs4char);
81 return FALSE;
82 }
83 }
6384 break;
6485 }
65
66 ++char_pos;
6786 }
6887
6988 return TRUE;
108127 }
109128
110129 static gchar *_nick_normalize_func(TpHandleRepoIface *repo, const gchar *id, gpointer ctx, GError **error) {
111 if (!idle_nickname_is_valid(id)) {
130 if (!idle_nickname_is_valid(id, FALSE)) {
112131 g_set_error(error, TP_ERRORS, TP_ERROR_INVALID_HANDLE, "invalid nickname");
113132 return NULL;
114133 }
2626 G_BEGIN_DECLS
2727
2828 void idle_handle_repos_init(TpHandleRepoIface **handles);
29 gboolean idle_nickname_is_valid(const gchar *nickname);
29 gboolean idle_nickname_is_valid(const gchar *nickname, gboolean strict_mode);
3030
3131 G_END_DECLS
3232
3939
4040 static void _channel_iface_init(gpointer, gpointer);
4141 static void _text_iface_init(gpointer, gpointer);
42 static void _destroyable_iface_init(gpointer, gpointer);
4243
4344 G_DEFINE_TYPE_WITH_CODE(IdleIMChannel, idle_im_channel, G_TYPE_OBJECT,
4445 G_IMPLEMENT_INTERFACE(TP_TYPE_SVC_CHANNEL, _channel_iface_init);
4546 G_IMPLEMENT_INTERFACE(TP_TYPE_SVC_CHANNEL_TYPE_TEXT, _text_iface_init);
46 G_IMPLEMENT_INTERFACE(TP_TYPE_CHANNEL_IFACE, NULL);)
47 G_IMPLEMENT_INTERFACE(TP_TYPE_CHANNEL_IFACE, NULL);
48 G_IMPLEMENT_INTERFACE(TP_TYPE_EXPORTABLE_CHANNEL, NULL);
49 G_IMPLEMENT_INTERFACE(TP_TYPE_SVC_CHANNEL_INTERFACE_DESTROYABLE, _destroyable_iface_init);)
4750
4851 /* property enum */
4952 enum {
5053 PROP_CONNECTION = 1,
5154 PROP_OBJECT_PATH,
55 PROP_INTERFACES,
5256 PROP_CHANNEL_TYPE,
5357 PROP_HANDLE_TYPE,
5458 PROP_HANDLE,
59 PROP_TARGET_ID,
60 PROP_REQUESTED,
61 PROP_INITIATOR_HANDLE,
62 PROP_INITIATOR_ID,
63 PROP_CHANNEL_DESTROYED,
64 PROP_CHANNEL_PROPERTIES,
5565 LAST_PROPERTY_ENUM
5666 };
67
68 const gchar *im_channel_interfaces[] = {NULL};
5769
5870 /* private structure */
5971 typedef struct _IdleIMChannelPrivate IdleIMChannelPrivate;
6274 IdleConnection *connection;
6375 gchar *object_path;
6476 TpHandle handle;
77 TpHandle initiator;
6578
6679 gboolean closed;
6780
87100
88101 handles = tp_base_connection_get_handles(TP_BASE_CONNECTION(priv->connection), TP_HANDLE_TYPE_CONTACT);
89102 tp_handle_ref(handles, priv->handle);
103 tp_handle_ref(handles, priv->initiator);
90104 g_assert(tp_handle_is_valid(tp_base_connection_get_handles(TP_BASE_CONNECTION(priv->connection), TP_HANDLE_TYPE_CONTACT), priv->handle, NULL));
91105
92106 bus = tp_get_bus();
105119 static void idle_im_channel_get_property(GObject *object, guint property_id, GValue *value, GParamSpec *pspec) {
106120 IdleIMChannel *chan;
107121 IdleIMChannelPrivate *priv;
122 TpHandleRepoIface *handles;
108123
109124 g_assert(object != NULL);
110125 g_assert(IDLE_IS_IM_CHANNEL(object));
111126
112127 chan = IDLE_IM_CHANNEL(object);
113128 priv = IDLE_IM_CHANNEL_GET_PRIVATE(chan);
129 handles = tp_base_connection_get_handles(
130 TP_BASE_CONNECTION(priv->connection), TP_HANDLE_TYPE_CONTACT);
114131
115132 switch (property_id) {
116133 case PROP_CONNECTION:
121138 g_value_set_string(value, priv->object_path);
122139 break;
123140
141 case PROP_INTERFACES:
142 g_value_set_static_boxed(value, im_channel_interfaces);
143 break;
144
124145 case PROP_CHANNEL_TYPE:
125146 g_value_set_string(value, TP_IFACE_CHANNEL_TYPE_TEXT);
126147 break;
132153 case PROP_HANDLE:
133154 g_value_set_uint(value, priv->handle);
134155 break;
156
157 case PROP_TARGET_ID:
158 g_value_set_string(value,
159 tp_handle_inspect(handles, priv->handle));
160 break;
161
162 case PROP_REQUESTED:
163 g_value_set_boolean(value, priv->initiator != priv->handle);
164 break;
165
166 case PROP_INITIATOR_HANDLE:
167 g_value_set_uint(value, priv->initiator);
168 break;
169
170 case PROP_INITIATOR_ID:
171 g_value_set_string(value,
172 tp_handle_inspect(handles, priv->initiator));
173 break;
174
175 case PROP_CHANNEL_DESTROYED:
176 g_value_set_boolean (value, priv->closed);
177 break;
178
179 case PROP_CHANNEL_PROPERTIES:
180 {
181 GHashTable *props =
182 tp_dbus_properties_mixin_make_properties_hash (
183 object,
184 TP_IFACE_CHANNEL, "Interfaces",
185 TP_IFACE_CHANNEL, "ChannelType",
186 TP_IFACE_CHANNEL, "TargetHandleType",
187 TP_IFACE_CHANNEL, "TargetHandle",
188 TP_IFACE_CHANNEL, "TargetID",
189 TP_IFACE_CHANNEL, "InitiatorHandle",
190 TP_IFACE_CHANNEL, "InitiatorID",
191 TP_IFACE_CHANNEL, "Requested",
192 NULL);
193 g_value_take_boxed (value, props);
194 break;
195 }
135196
136197 default:
137198 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
162223
163224 case PROP_HANDLE:
164225 priv->handle = g_value_get_uint(value);
226 break;
227
228 case PROP_INITIATOR_HANDLE:
229 priv->initiator = g_value_get_uint(value);
165230 break;
166231
167232 case PROP_CHANNEL_TYPE:
194259 g_object_class_override_property(object_class, PROP_CHANNEL_TYPE, "channel-type");
195260 g_object_class_override_property(object_class, PROP_HANDLE_TYPE, "handle-type");
196261 g_object_class_override_property(object_class, PROP_HANDLE, "handle");
262 g_object_class_override_property(object_class, PROP_CHANNEL_DESTROYED, "channel-destroyed");
263 g_object_class_override_property(object_class, PROP_CHANNEL_PROPERTIES, "channel-properties");
197264
198265 param_spec = g_param_spec_object("connection", "IdleConnection object",
199 "The IdleConnection object that owns this "
200 "IMChannel object.",
201 IDLE_TYPE_CONNECTION,
202 G_PARAM_CONSTRUCT_ONLY |
203 G_PARAM_READWRITE |
204 G_PARAM_STATIC_NICK |
205 G_PARAM_STATIC_BLURB);
266 "The IdleConnection object that owns this "
267 "IMChannel object.",
268 IDLE_TYPE_CONNECTION,
269 G_PARAM_CONSTRUCT_ONLY |
270 G_PARAM_READWRITE |
271 G_PARAM_STATIC_NICK |
272 G_PARAM_STATIC_BLURB);
206273 g_object_class_install_property(object_class, PROP_CONNECTION, param_spec);
207274
275 param_spec = g_param_spec_boxed ("interfaces", "Extra D-Bus interfaces",
276 "Interfaces implemented by this object besides Channel",
277 G_TYPE_STRV, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
278 g_object_class_install_property (object_class, PROP_INTERFACES, param_spec);
279
280 param_spec = g_param_spec_string ("target-id", "Contact's identifier",
281 "The name of the person we're speaking to",
282 NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
283 g_object_class_install_property (object_class, PROP_TARGET_ID, param_spec);
284
285 param_spec = g_param_spec_boolean ("requested", "Requested?",
286 "True if this channel was requested by the local user",
287 FALSE,
288 G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
289 g_object_class_install_property (object_class, PROP_REQUESTED, param_spec);
290
291 param_spec = g_param_spec_uint ("initiator-handle", "Initiator's handle",
292 "The contact who initiated the channel",
293 0, G_MAXUINT32, 0,
294 G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
295 g_object_class_install_property (object_class, PROP_INITIATOR_HANDLE, param_spec);
296
297 param_spec = g_param_spec_string ("initiator-id", "Initiator's bare JID",
298 "The string obtained by inspecting the initiator-handle",
299 NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
300 g_object_class_install_property (object_class, PROP_INITIATOR_ID, param_spec);
301
302 static TpDBusPropertiesMixinPropImpl channel_props[] = {
303 { "Interfaces", "interfaces", NULL },
304 { "ChannelType", "channel-type", NULL },
305 { "TargetHandleType", "handle-type", NULL },
306 { "TargetHandle", "handle", NULL },
307 { "TargetID", "target-id", NULL },
308 { "InitiatorHandle", "initiator-handle", NULL },
309 { "InitiatorID", "initiator-id", NULL },
310 { "Requested", "requested", NULL },
311 { NULL }
312 };
313 static TpDBusPropertiesMixinIfaceImpl prop_interfaces[] = {
314 { TP_IFACE_CHANNEL,
315 tp_dbus_properties_mixin_getter_gobject_properties,
316 NULL,
317 channel_props,
318 },
319 { NULL }
320 };
321
322 idle_im_channel_class->dbus_props_class.interfaces = prop_interfaces;
208323 tp_text_mixin_class_init(object_class, G_STRUCT_OFFSET(IdleIMChannelClass, text_class));
324 tp_dbus_properties_mixin_class_init(object_class, G_STRUCT_OFFSET(IdleIMChannelClass, dbus_props_class));
209325 }
210326
211327 void idle_im_channel_dispose (GObject *object) {
233349
234350 handles = tp_base_connection_get_handles(TP_BASE_CONNECTION(priv->connection), TP_HANDLE_TYPE_CONTACT);
235351 tp_handle_unref(handles, priv->handle);
352 tp_handle_unref(handles, priv->initiator);
236353
237354 if (priv->object_path)
238355 g_free(priv->object_path);
271388 g_assert(IDLE_IS_IM_CHANNEL(obj));
272389
273390 priv = IDLE_IM_CHANNEL_GET_PRIVATE(obj);
274 priv->closed = TRUE;
275391
276392 IDLE_DEBUG("called on %p", obj);
393
394 /* The IM manager will resurrect the channel if we have pending
395 * messages. When we're resurrected, we want the initiator
396 * to be the contact who sent us those messages, if it isn't already */
397 if (tp_text_mixin_has_pending_messages((GObject *)obj, NULL)) {
398 IDLE_DEBUG("Not really closing, I still have pending messages");
399
400 if (priv->initiator != priv->handle) {
401 TpHandleRepoIface *contact_repo =
402 tp_base_connection_get_handles(
403 (TpBaseConnection *) priv->connection,
404 TP_HANDLE_TYPE_CONTACT);
405
406 g_assert(priv->initiator != 0);
407 g_assert(priv->handle != 0);
408
409 tp_handle_unref(contact_repo, priv->initiator);
410 priv->initiator = priv->handle;
411 tp_handle_ref(contact_repo, priv->initiator);
412 }
413
414 tp_text_mixin_set_rescued((GObject *) obj);
415 } else {
416 IDLE_DEBUG ("Actually closing, I have no pending messages");
417 priv->closed = TRUE;
418 }
277419
278420 tp_svc_channel_emit_closed(iface);
279421
336478 * Returns: TRUE if successful, FALSE if an error was thrown.
337479 */
338480 static void idle_im_channel_get_interfaces(TpSvcChannel *iface, DBusGMethodInvocation *context) {
339 const gchar *interfaces[] = {NULL};
340
341 tp_svc_channel_return_from_get_interfaces(context, interfaces);
481 tp_svc_channel_return_from_get_interfaces(context, im_channel_interfaces);
342482 }
343483
344484 /**
372512 idle_text_send((GObject *)(obj), type, recipient, text, priv->connection, context);
373513 }
374514
515 static void idle_im_channel_destroy(TpSvcChannelInterfaceDestroyable *iface, DBusGMethodInvocation *context) {
516 IdleIMChannel *obj = (IdleIMChannel *)(iface);
517 IdleIMChannelPrivate *priv = IDLE_IM_CHANNEL_GET_PRIVATE(obj);
518
519 IDLE_DEBUG ("called on %p with %spending messages", obj,
520 tp_text_mixin_has_pending_messages((GObject *)obj, NULL) ? "" : "no ");
521
522 priv->closed = TRUE;
523 tp_svc_channel_emit_closed(iface);
524 tp_svc_channel_interface_destroyable_return_from_destroy(context);
525 }
526
375527 static void _channel_iface_init(gpointer g_iface, gpointer iface_data) {
376528 TpSvcChannelClass *klass = (TpSvcChannelClass *)g_iface;
377529
394546 #undef IMPLEMENT
395547 }
396548
549 static void _destroyable_iface_init(gpointer klass, gpointer iface_data) {
550 #define IMPLEMENT(x) tp_svc_channel_interface_destroyable_implement_##x (\
551 klass, idle_im_channel_##x)
552 IMPLEMENT (destroy);
553 #undef IMPLEMENT
554 }
2222
2323 #include <glib-object.h>
2424 #include <telepathy-glib/text-mixin.h>
25 #include <telepathy-glib/dbus-properties-mixin.h>
2526
2627 G_BEGIN_DECLS
2728
3132 struct _IdleIMChannelClass {
3233 GObjectClass parent_class;
3334 TpTextMixinClass text_class;
35 TpDBusPropertiesMixinClass dbus_props_class;
3436 };
3537
3638 struct _IdleIMChannel {
+0
-260
src/idle-im-factory.c less more
0 /*
1 * This file is part of telepathy-idle
2 *
3 * Copyright (C) 2006-2007 Collabora Limited
4 * Copyright (C) 2006-2007 Nokia Corporation
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * version 2.1 as published by the Free Software Foundation.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #include "idle-im-factory.h"
21
22 #include <telepathy-glib/channel-factory-iface.h>
23 #include <telepathy-glib/interfaces.h>
24
25 #define IDLE_DEBUG_FLAG IDLE_DEBUG_IM
26 #include "idle-connection.h"
27 #include "idle-ctcp.h"
28 #include "idle-debug.h"
29 #include "idle-im-channel.h"
30 #include "idle-parser.h"
31 #include "idle-text.h"
32
33 static void _factory_iface_init(gpointer g_iface, gpointer iface_data);
34
35 G_DEFINE_TYPE_WITH_CODE(IdleIMFactory, idle_im_factory, G_TYPE_OBJECT,
36 G_IMPLEMENT_INTERFACE(TP_TYPE_CHANNEL_FACTORY_IFACE, _factory_iface_init));
37
38 /* properties */
39 enum {
40 PROP_CONNECTION = 1,
41 LAST_PROPERTY_ENUM
42 };
43
44 typedef struct _IdleIMFactoryPrivate IdleIMFactoryPrivate;
45 struct _IdleIMFactoryPrivate {
46 IdleConnection *conn;
47 GHashTable *channels;
48
49 gboolean dispose_has_run;
50 };
51
52 #define IDLE_IM_FACTORY_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), IDLE_TYPE_IM_FACTORY, IdleIMFactoryPrivate))
53
54 static IdleParserHandlerResult _notice_privmsg_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
55
56 static void _iface_close_all(TpChannelFactoryIface *iface);
57 static void _iface_connecting(TpChannelFactoryIface *iface);
58 static void _iface_disconnected(TpChannelFactoryIface *iface);
59 static void _iface_foreach(TpChannelFactoryIface *iface, TpChannelFunc func, gpointer user_data);
60 static TpChannelFactoryRequestStatus _iface_request(TpChannelFactoryIface *iface, const gchar *chan_type, TpHandleType handle_type, guint handle, gpointer request, TpChannelIface **new_chan, GError **error);
61
62 static IdleIMChannel *_create_channel(IdleIMFactory *factory, TpHandle handle, gpointer context);
63 static void _channel_closed_cb(IdleIMChannel *chan, gpointer user_data);
64
65 static void idle_im_factory_init(IdleIMFactory *obj) {
66 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(obj);
67
68 priv->channels = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, g_object_unref);
69 }
70
71 static void idle_im_factory_get_property(GObject *object, guint property_id, GValue *value, GParamSpec *pspec) {
72 IdleIMFactory *fac = IDLE_IM_FACTORY(object);
73 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(fac);
74
75 switch (property_id) {
76 case PROP_CONNECTION:
77 g_value_set_object(value, priv->conn);
78 break;
79
80 default:
81 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
82 break;
83 }
84 }
85
86 static void idle_im_factory_set_property(GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) {
87 IdleIMFactory *fac = IDLE_IM_FACTORY(object);
88 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(fac);
89
90 switch (property_id) {
91 case PROP_CONNECTION:
92 priv->conn = g_value_get_object(value);
93 break;
94
95 default:
96 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
97 break;
98 }
99 }
100
101 static void idle_im_factory_class_init(IdleIMFactoryClass *klass) {
102 GObjectClass *object_class = G_OBJECT_CLASS(klass);
103 GParamSpec *param_spec;
104
105 g_type_class_add_private(klass, sizeof(IdleIMFactoryPrivate));
106
107 object_class->get_property = idle_im_factory_get_property;
108 object_class->set_property = idle_im_factory_set_property;
109
110 param_spec = g_param_spec_object("connection", "IdleConnection object", "The IdleConnection object that owns this IM channel factory object.", IDLE_TYPE_CONNECTION, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
111 g_object_class_install_property(object_class, PROP_CONNECTION, param_spec);
112 }
113
114 static IdleParserHandlerResult _notice_privmsg_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
115 IdleIMFactory *factory = IDLE_IM_FACTORY(user_data);
116 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(factory);
117 TpHandle handle = (TpHandle) g_value_get_uint(g_value_array_get_nth(args, 0));
118 IdleIMChannel *chan;
119 TpChannelTextMessageType type;
120 gchar *body;
121
122 if (code == IDLE_PARSER_PREFIXCMD_NOTICE_USER) {
123 type = TP_CHANNEL_TEXT_MESSAGE_TYPE_NOTICE;
124 body = idle_ctcp_kill_blingbling(g_value_get_string(g_value_array_get_nth(args, 2)));
125 } else {
126 gboolean decoded = idle_text_decode(g_value_get_string(g_value_array_get_nth(args, 2)), &type, &body);
127 if (!decoded)
128 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
129 }
130
131 idle_connection_emit_queued_aliases_changed(priv->conn);
132
133 if (!priv->channels) {
134 IDLE_DEBUG("Channels hash table missing, ignoring...");
135 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
136 }
137
138 if (!(chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(handle))))
139 chan = _create_channel(factory, handle, NULL);
140
141 idle_im_channel_receive(chan, type, handle, body);
142
143 g_free(body);
144
145 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
146 }
147
148 static void _iface_close_all(TpChannelFactoryIface *iface) {
149 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(iface);
150
151 if (!priv->channels) {
152 IDLE_DEBUG("Channels already closed, ignoring...");
153 return;
154 }
155
156 GHashTable *tmp = priv->channels;
157 priv->channels = NULL;
158 g_hash_table_destroy(tmp);
159 }
160
161 static void _iface_connecting(TpChannelFactoryIface *iface) {
162 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(iface);
163
164 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_NOTICE_USER, _notice_privmsg_handler, iface);
165 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_PRIVMSG_USER, _notice_privmsg_handler, iface);
166 }
167
168 static void _iface_disconnected(TpChannelFactoryIface *iface) {
169 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(iface);
170
171 idle_parser_remove_handlers_by_data(priv->conn->parser, iface);
172 }
173
174 struct _ForeachHelperData {
175 TpChannelFunc func;
176 gpointer user_data;
177 };
178
179 static void _foreach_helper(gpointer key, gpointer value, gpointer user_data) {
180 struct _ForeachHelperData *data = user_data;
181 data->func(value, data->user_data);
182 }
183
184 static void _iface_foreach(TpChannelFactoryIface *iface, TpChannelFunc func, gpointer user_data) {
185 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(iface);
186 struct _ForeachHelperData data = {func, user_data};
187
188 if (!priv->channels) {
189 IDLE_DEBUG("Channels hash table missing, ignoring...");
190 return;
191 }
192
193 g_hash_table_foreach(priv->channels, _foreach_helper, &data);
194 }
195
196 static TpChannelFactoryRequestStatus _iface_request(TpChannelFactoryIface *iface, const gchar *chan_type, TpHandleType handle_type, guint handle, gpointer request, TpChannelIface **new_chan, GError **error) {
197 IdleIMFactory *factory = IDLE_IM_FACTORY(iface);
198 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(factory);
199
200 if (!g_str_equal(chan_type, TP_IFACE_CHANNEL_TYPE_TEXT))
201 return TP_CHANNEL_FACTORY_REQUEST_STATUS_NOT_IMPLEMENTED;
202
203 if (handle_type != TP_HANDLE_TYPE_CONTACT)
204 return TP_CHANNEL_FACTORY_REQUEST_STATUS_NOT_AVAILABLE;
205
206 if (!tp_handle_is_valid(tp_base_connection_get_handles(TP_BASE_CONNECTION(priv->conn), TP_HANDLE_TYPE_CONTACT), handle, error))
207 return TP_CHANNEL_FACTORY_REQUEST_STATUS_INVALID_HANDLE;
208
209 if (!priv->channels) {
210 IDLE_DEBUG("Channels hash table missing, failing request...");
211 return TP_CHANNEL_FACTORY_REQUEST_STATUS_ERROR;
212 }
213
214 if ((*new_chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(handle)))) {
215 return TP_CHANNEL_FACTORY_REQUEST_STATUS_EXISTING;
216 } else {
217 *new_chan = (TpChannelIface *) _create_channel(factory, handle, request);
218 return TP_CHANNEL_FACTORY_REQUEST_STATUS_CREATED;
219 }
220 }
221
222 static IdleIMChannel *_create_channel(IdleIMFactory *factory, TpHandle handle, gpointer context) {
223 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(factory);
224 IdleIMChannel *chan;
225 gchar *object_path;
226
227 object_path = g_strdup_printf("%s/ImChannel%u", priv->conn->parent.object_path, handle);
228 chan = g_object_new(IDLE_TYPE_IM_CHANNEL, "connection", priv->conn, "object-path", object_path, "handle", handle, NULL);
229
230 g_signal_connect(chan, "closed", (GCallback) _channel_closed_cb, factory);
231 g_hash_table_insert(priv->channels, GUINT_TO_POINTER(handle), chan);
232 tp_channel_factory_iface_emit_new_channel(factory, (TpChannelIface *) chan, context);
233
234 g_free(object_path);
235
236 return chan;
237 }
238
239 static void _channel_closed_cb(IdleIMChannel *chan, gpointer user_data) {
240 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(user_data);
241 TpHandle handle;
242
243 if (priv->channels) {
244 g_object_get(chan, "handle", &handle, NULL);
245 g_hash_table_remove(priv->channels, GUINT_TO_POINTER(handle));
246 }
247 }
248
249 static void _factory_iface_init(gpointer g_iface, gpointer iface_data) {
250 TpChannelFactoryIfaceClass *klass = (TpChannelFactoryIfaceClass *) g_iface;
251
252 klass->close_all = _iface_close_all;
253 klass->connected = NULL;
254 klass->connecting = _iface_connecting;
255 klass->disconnected = _iface_disconnected;
256 klass->foreach = _iface_foreach;
257 klass->request = _iface_request;
258 }
259
+0
-51
src/idle-im-factory.h less more
0 /*
1 * This file is part of telepathy-idle
2 *
3 * Copyright (C) 2006-2007 Collabora Limited
4 * Copyright (C) 2006-2007 Nokia Corporation
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * version 2.1 as published by the Free Software Foundation.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #ifndef __IDLE_IM_FACTORY_H__
21 #define __IDLE_IM_FACTORY_H__
22
23 #include <glib-object.h>
24
25 G_BEGIN_DECLS
26
27 typedef struct _IdleIMFactory IdleIMFactory;
28 typedef struct _IdleIMFactoryClass IdleIMFactoryClass;
29
30 struct _IdleIMFactoryClass {
31 GObjectClass parent_class;
32 };
33
34 struct _IdleIMFactory {
35 GObject parent;
36 };
37
38 GType idle_im_factory_get_type();
39
40 #define IDLE_TYPE_IM_FACTORY (idle_im_factory_get_type())
41 #define IDLE_IM_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), IDLE_TYPE_IM_FACTORY, IdleIMFactory))
42 #define IDLE_IM_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), IDLE_TYPE_IM_FACTORY, IdleIMFactoryClass))
43 #define IDLE_IS_IM_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), IDLE_TYPE_IM_FACTORY))
44 #define IDLE_IS_IM_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), IDLE_TYPE_IM_FACTORY))
45 #define IDLE_IM_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), IDLE_TYPE_IM_FACTORY, IdleIMFactoryClass))
46
47 G_END_DECLS
48
49 #endif /* #ifndef __IDLE_IM_FACTORY_H__ */
50
0 /*
1 * This file is part of telepathy-idle
2 *
3 * Copyright (C) 2006-2007 Collabora Limited
4 * Copyright (C) 2006-2007 Nokia Corporation
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * version 2.1 as published by the Free Software Foundation.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #include "idle-im-manager.h"
21
22 #include <telepathy-glib/channel-manager.h>
23 #include <telepathy-glib/interfaces.h>
24 #include <telepathy-glib/dbus.h>
25
26 #define IDLE_DEBUG_FLAG IDLE_DEBUG_IM
27 #include "idle-connection.h"
28 #include "idle-ctcp.h"
29 #include "idle-debug.h"
30 #include "idle-im-channel.h"
31 #include "idle-parser.h"
32 #include "idle-text.h"
33
34 static void _im_manager_iface_init(gpointer g_iface, gpointer iface_data);
35 static GObject * _im_manager_constructor (GType type, guint n_props, GObjectConstructParam *props);
36 static void _im_manager_dispose (GObject *object);
37
38 G_DEFINE_TYPE_WITH_CODE(IdleIMManager, idle_im_manager, G_TYPE_OBJECT,
39 G_IMPLEMENT_INTERFACE(TP_TYPE_CHANNEL_MANAGER, _im_manager_iface_init));
40
41 /* properties */
42 enum {
43 PROP_CONNECTION = 1,
44 LAST_PROPERTY_ENUM
45 };
46
47 static const gchar * const im_channel_fixed_properties[] = {
48 TP_IFACE_CHANNEL ".ChannelType",
49 TP_IFACE_CHANNEL ".TargetHandleType",
50 NULL
51 };
52
53 static const gchar * const im_channel_allowed_properties[] = {
54 TP_IFACE_CHANNEL ".TargetHandle",
55 TP_IFACE_CHANNEL ".TargetID",
56 NULL
57 };
58
59 typedef struct _IdleIMManagerPrivate IdleIMManagerPrivate;
60 struct _IdleIMManagerPrivate {
61 IdleConnection *conn;
62 GHashTable *channels;
63 int status_changed_id;
64 gboolean dispose_has_run;
65 };
66
67 #define IDLE_IM_MANAGER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), IDLE_TYPE_IM_MANAGER, IdleIMManagerPrivate))
68
69 static IdleParserHandlerResult _notice_privmsg_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
70
71 static void _im_manager_close_all(IdleIMManager *manager);
72 static void connection_status_changed_cb (IdleConnection* conn, guint status, guint reason, IdleIMManager *self);
73
74 static void _im_manager_foreach(TpChannelManager *manager, TpExportableChannelFunc func, gpointer user_data);
75 static void _im_manager_foreach_class (TpChannelManager* manager, TpChannelManagerChannelClassFunc func, gpointer user_data);
76
77 //static TpChannelManagerRequestStatus _iface_request(TpChannelFactoryIface *iface, const gchar *chan_type, TpHandleType handle_type, guint handle, gpointer request, TpChannelIface **new_chan, GError **error);
78
79 static gboolean _im_manager_create_channel(TpChannelManager *manager, gpointer request_token, GHashTable *request_properties);
80 static gboolean _im_manager_request_channel(TpChannelManager *manager, gpointer request_token, GHashTable *request_properties);
81 static gboolean _im_manager_ensure_channel(TpChannelManager *manager, gpointer request_token, GHashTable *request_properties);
82 static gboolean _im_manager_requestotron (IdleIMManager *self, gpointer request_token, GHashTable *request_properties, gboolean require_new);
83 static IdleIMChannel *_im_manager_new_channel (IdleIMManager *mgr, TpHandle handle, TpHandle initiator, gpointer request);
84
85 static void _im_channel_closed_cb (IdleIMChannel *chan, gpointer user_data);
86
87 static void idle_im_manager_init(IdleIMManager *obj) {
88 IdleIMManagerPrivate *priv = IDLE_IM_MANAGER_GET_PRIVATE(obj);
89 priv->channels = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, g_object_unref);
90 priv->status_changed_id = 0;
91 priv->dispose_has_run = FALSE;
92 }
93
94 static void idle_im_manager_get_property(GObject *object, guint property_id, GValue *value, GParamSpec *pspec) {
95 IdleIMManager *mgr = IDLE_IM_MANAGER(object);
96 IdleIMManagerPrivate *priv = IDLE_IM_MANAGER_GET_PRIVATE(mgr);
97
98 switch (property_id) {
99 case PROP_CONNECTION:
100 g_value_set_object(value, priv->conn);
101 break;
102
103 default:
104 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
105 break;
106 }
107 }
108
109 static void idle_im_manager_set_property(GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) {
110 IdleIMManager *manager = IDLE_IM_MANAGER(object);
111 IdleIMManagerPrivate *priv = IDLE_IM_MANAGER_GET_PRIVATE(manager);
112
113 switch (property_id) {
114 case PROP_CONNECTION:
115 priv->conn = g_value_get_object(value);
116 break;
117
118 default:
119 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
120 break;
121 }
122 }
123
124 static void idle_im_manager_class_init(IdleIMManagerClass *klass) {
125 GObjectClass *object_class = G_OBJECT_CLASS(klass);
126 GParamSpec *param_spec;
127
128 g_type_class_add_private(klass, sizeof(IdleIMManagerPrivate));
129
130 object_class->constructor = _im_manager_constructor;
131 object_class->dispose = _im_manager_dispose;
132 object_class->get_property = idle_im_manager_get_property;
133 object_class->set_property = idle_im_manager_set_property;
134
135 param_spec = g_param_spec_object("connection", "IdleConnection object", "The IdleConnection object that owns this IM channel manager object.", IDLE_TYPE_CONNECTION, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
136 g_object_class_install_property(object_class, PROP_CONNECTION, param_spec);
137 }
138
139 static GObject *
140 _im_manager_constructor (GType type,
141 guint n_props,
142 GObjectConstructParam *props)
143 {
144 GObject *obj;
145 IdleIMManager *self;
146 IdleIMManagerPrivate *priv;
147
148 obj = G_OBJECT_CLASS (idle_im_manager_parent_class)->constructor (type,
149 n_props,
150 props);
151
152 self = IDLE_IM_MANAGER (obj);
153 priv = IDLE_IM_MANAGER_GET_PRIVATE (self);
154
155 g_return_val_if_fail (priv->conn, obj);
156
157 priv->status_changed_id = g_signal_connect (priv->conn,
158 "status-changed", (GCallback)
159 connection_status_changed_cb,
160 self);
161
162 return obj;
163 }
164
165
166 static IdleParserHandlerResult _notice_privmsg_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
167 IdleIMManager *manager = IDLE_IM_MANAGER(user_data);
168 IdleIMManagerPrivate *priv = IDLE_IM_MANAGER_GET_PRIVATE(manager);
169 TpHandle handle = (TpHandle) g_value_get_uint(g_value_array_get_nth(args, 0));
170 IdleIMChannel *chan;
171 TpChannelTextMessageType type;
172 gchar *body;
173
174 if (code == IDLE_PARSER_PREFIXCMD_NOTICE_USER) {
175 type = TP_CHANNEL_TEXT_MESSAGE_TYPE_NOTICE;
176 body = idle_ctcp_kill_blingbling(g_value_get_string(g_value_array_get_nth(args, 2)));
177 } else {
178 gboolean decoded = idle_text_decode(g_value_get_string(g_value_array_get_nth(args, 2)), &type, &body);
179 if (!decoded)
180 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
181 }
182
183 idle_connection_emit_queued_aliases_changed(priv->conn);
184
185 if (!priv->channels) {
186 IDLE_DEBUG("Channels hash table missing, ignoring...");
187 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
188 }
189
190 if (!(chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(handle))))
191 chan = _im_manager_new_channel(manager, handle, handle, NULL);
192
193 idle_im_channel_receive(chan, type, handle, body);
194
195 g_free(body);
196
197 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
198 }
199
200 static void _im_manager_close_all(IdleIMManager *manager) {
201 IdleIMManagerPrivate *priv = IDLE_IM_MANAGER_GET_PRIVATE(manager);
202
203 if (priv->channels) {
204 GHashTable *tmp = priv->channels;
205 priv->channels = NULL;
206 g_hash_table_destroy(tmp);
207 }
208 if (priv->status_changed_id != 0) {
209 g_signal_handler_disconnect (priv->conn, priv->status_changed_id);
210 priv->status_changed_id = 0;
211 }
212 }
213
214 static void connection_status_changed_cb (IdleConnection* conn,
215 guint status,
216 guint reason,
217 IdleIMManager *self)
218 {
219 IdleIMManagerPrivate *priv = IDLE_IM_MANAGER_GET_PRIVATE(self);
220
221 if (status == TP_CONNECTION_STATUS_DISCONNECTED) {
222 idle_parser_remove_handlers_by_data(priv->conn->parser, self);
223 _im_manager_close_all (self);
224 } else if (status == TP_CONNECTION_STATUS_CONNECTED) {
225 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_NOTICE_USER, _notice_privmsg_handler, self);
226 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_PRIVMSG_USER, _notice_privmsg_handler, self);
227 }
228 }
229
230 /*
231 static void _iface_connecting(TpChannelFactoryIface *iface) {
232 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(iface);
233
234 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_NOTICE_USER, _notice_privmsg_handler, iface);
235 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_PRIVMSG_USER, _notice_privmsg_handler, iface);
236 }
237
238 static void _iface_disconnected(TpChannelFactoryIface *iface) {
239 IdleIMFactoryPrivate *priv = IDLE_IM_FACTORY_GET_PRIVATE(iface);
240
241 idle_parser_remove_handlers_by_data(priv->conn->parser, iface);
242 }
243 */
244
245 struct _ForeachHelperData {
246 TpExportableChannelFunc func;
247 gpointer user_data;
248 };
249
250 static void _foreach_helper(gpointer key, gpointer value, gpointer user_data) {
251 struct _ForeachHelperData *data = user_data;
252 data->func(value, data->user_data);
253 }
254
255 static void _im_manager_foreach(TpChannelManager *manager, TpExportableChannelFunc func, gpointer user_data) {
256 IdleIMManagerPrivate *priv = IDLE_IM_MANAGER_GET_PRIVATE(manager);
257 struct _ForeachHelperData data = {func, user_data};
258
259 if (!priv->channels) {
260 IDLE_DEBUG("Channels hash table missing, ignoring...");
261 return;
262 }
263
264 g_hash_table_foreach(priv->channels, _foreach_helper, &data);
265 }
266
267
268 static void _im_manager_foreach_class (TpChannelManager* manager,
269 TpChannelManagerChannelClassFunc func,
270 gpointer user_data)
271 {
272 GHashTable *table;
273 GValue *value;
274
275 table = g_hash_table_new_full (g_str_hash, g_str_equal,
276 NULL, (GDestroyNotify) tp_g_value_slice_free);
277
278 value = tp_g_value_slice_new (G_TYPE_STRING);
279 g_value_set_static_string (value, TP_IFACE_CHANNEL_TYPE_TEXT);
280 g_hash_table_insert (table, (gpointer) im_channel_fixed_properties[0], value);
281
282 value = tp_g_value_slice_new (G_TYPE_UINT);
283 g_value_set_uint (value, TP_HANDLE_TYPE_CONTACT);
284 g_hash_table_insert (table, (gpointer) im_channel_fixed_properties[1], value);
285
286 func (manager, table, im_channel_allowed_properties, user_data);
287
288 g_hash_table_destroy (table);
289 }
290
291
292 static gboolean
293 _im_manager_create_channel(TpChannelManager *manager,
294 gpointer request_token,
295 GHashTable *request_properties)
296 {
297 IdleIMManager *self = IDLE_IM_MANAGER (manager);
298
299 return _im_manager_requestotron (self, request_token, request_properties,
300 TRUE);
301 }
302
303
304 static gboolean
305 _im_manager_request_channel(TpChannelManager *manager,
306 gpointer request_token,
307 GHashTable *request_properties)
308 {
309 IdleIMManager *self = IDLE_IM_MANAGER (manager);
310
311 return _im_manager_requestotron (self, request_token, request_properties,
312 FALSE);
313 }
314
315
316 static gboolean
317 _im_manager_ensure_channel(TpChannelManager *manager,
318 gpointer request_token,
319 GHashTable *request_properties)
320 {
321 IdleIMManager *self = IDLE_IM_MANAGER (manager);
322
323 return _im_manager_requestotron (self, request_token, request_properties,
324 FALSE);
325 }
326
327
328 static gboolean
329 _im_manager_requestotron (IdleIMManager *self,
330 gpointer request_token,
331 GHashTable *request_properties,
332 gboolean require_new)
333 {
334 IdleIMManagerPrivate *priv = IDLE_IM_MANAGER_GET_PRIVATE (self);
335 TpBaseConnection *base_conn = (TpBaseConnection *) priv->conn;
336 TpHandleRepoIface *contact_repo =
337 tp_base_connection_get_handles (base_conn, TP_HANDLE_TYPE_CONTACT);
338 TpHandle handle;
339 GError *error = NULL;
340 TpExportableChannel *channel;
341
342 if (tp_strdiff (tp_asv_get_string (request_properties,
343 TP_IFACE_CHANNEL ".ChannelType"), TP_IFACE_CHANNEL_TYPE_TEXT))
344 return FALSE;
345
346 if (tp_asv_get_uint32 (request_properties,
347 TP_IFACE_CHANNEL ".TargetHandleType", NULL) != TP_HANDLE_TYPE_CONTACT)
348 return FALSE;
349
350 handle = tp_asv_get_uint32 (request_properties,
351 TP_IFACE_CHANNEL ".TargetHandle", NULL);
352
353 if (!tp_handle_is_valid (contact_repo, handle, &error))
354 goto error;
355
356 /* Check if there are any other properties that we don't understand */
357 if (tp_channel_manager_asv_has_unknown_properties (request_properties,
358 im_channel_fixed_properties,
359 im_channel_allowed_properties,
360 &error))
361 {
362 goto error;
363 }
364
365 /* Don't support opening a channel to our self handle */
366 if (handle == base_conn->self_handle)
367 {
368 g_set_error (&error, TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED,
369 "Can't open a text channel to yourself");
370 goto error;
371 }
372
373 channel = g_hash_table_lookup (priv->channels, GUINT_TO_POINTER (handle));
374
375 if (channel == NULL)
376 {
377 _im_manager_new_channel (self, handle, base_conn->self_handle, request_token);
378 return TRUE;
379 }
380
381 if (require_new)
382 {
383 g_set_error (&error, TP_ERRORS, TP_ERROR_NOT_AVAILABLE,
384 "Already chatting with contact #%u in another channel", handle);
385 goto error;
386 }
387
388 tp_channel_manager_emit_request_already_satisfied (self, request_token,
389 channel);
390 return TRUE;
391
392 error:
393 tp_channel_manager_emit_request_failed (self, request_token,
394 error->domain, error->code, error->message);
395 g_error_free (error);
396 return TRUE;
397 }
398
399
400 static void
401 _im_channel_closed_cb (IdleIMChannel *chan,
402 gpointer user_data)
403 {
404 IdleIMManager *self = IDLE_IM_MANAGER (user_data);
405 IdleIMManagerPrivate *priv = IDLE_IM_MANAGER_GET_PRIVATE (self);
406 TpHandle handle;
407
408 tp_channel_manager_emit_channel_closed_for_object (self,
409 TP_EXPORTABLE_CHANNEL (chan));
410
411 if (priv->channels)
412 {
413 gboolean really_destroyed;
414
415 g_object_get (chan,
416 "handle", &handle,
417 "channel-destroyed", &really_destroyed,
418 NULL);
419
420 if (really_destroyed)
421 {
422 IDLE_DEBUG ("removing channel with handle %u", handle);
423 g_hash_table_remove (priv->channels, GUINT_TO_POINTER (handle));
424 } else {
425 IDLE_DEBUG ("reopening channel with handle %u due to pending messages",
426 handle);
427 tp_channel_manager_emit_new_channel (self,
428 (TpExportableChannel *) chan, NULL);
429 }
430 }
431 }
432
433
434 static IdleIMChannel *
435 _im_manager_new_channel (IdleIMManager *mgr,
436 TpHandle handle,
437 TpHandle initiator,
438 gpointer request)
439 {
440 IdleIMManagerPrivate *priv = IDLE_IM_MANAGER_GET_PRIVATE (mgr);
441 TpBaseConnection *base_connection = TP_BASE_CONNECTION (priv->conn);
442 TpHandleRepoIface *handle_repo =
443 tp_base_connection_get_handles (base_connection, TP_HANDLE_TYPE_CONTACT);
444 IdleIMChannel *chan;
445 const gchar *name;
446 gchar *object_path = NULL;
447 GSList *requests = NULL;
448
449 g_assert (g_hash_table_lookup (priv->channels, GUINT_TO_POINTER (handle))
450 == NULL);
451
452 name = tp_handle_inspect (handle_repo, handle);
453 IDLE_DEBUG ("Requested channel for handle: %u (%s)", handle, name);
454
455 object_path = g_strdup_printf("%s/ImChannel%u", priv->conn->parent.object_path, handle);
456 chan = g_object_new (IDLE_TYPE_IM_CHANNEL,
457 "connection", priv->conn,
458 "object-path", object_path,
459 "handle", handle,
460 "initiator-handle", initiator,
461 NULL);
462 g_free (object_path);
463 g_hash_table_insert (priv->channels, GUINT_TO_POINTER (handle), chan);
464
465 if (request != NULL)
466 requests = g_slist_prepend (requests, request);
467
468 tp_channel_manager_emit_new_channel (mgr, TP_EXPORTABLE_CHANNEL (chan),
469 requests);
470
471 g_slist_free (requests);
472
473 g_signal_connect (chan, "closed", G_CALLBACK (_im_channel_closed_cb), mgr);
474
475 return chan;
476 }
477
478 static void _im_manager_iface_init(gpointer g_iface, gpointer iface_data) {
479 TpChannelManagerIface *iface = g_iface;
480
481 iface->foreach_channel = _im_manager_foreach;
482 iface->foreach_channel_class = _im_manager_foreach_class;
483 iface->request_channel = _im_manager_request_channel;
484 iface->create_channel = _im_manager_create_channel;
485 iface->ensure_channel = _im_manager_ensure_channel;
486 }
487
488 static void
489 _im_manager_dispose (GObject *object)
490 {
491 IdleIMManager *self = IDLE_IM_MANAGER (object);
492 IdleIMManagerPrivate *priv = IDLE_IM_MANAGER_GET_PRIVATE (self);
493
494 if (priv->dispose_has_run)
495 return;
496
497 priv->dispose_has_run = TRUE;
498
499 _im_manager_close_all (self);
500
501 if (G_OBJECT_CLASS (idle_im_manager_parent_class)->dispose)
502 G_OBJECT_CLASS (idle_im_manager_parent_class)->dispose (object);
503 }
504
0 /*
1 * This file is part of telepathy-idle
2 *
3 * Copyright (C) 2006-2007 Collabora Limited
4 * Copyright (C) 2006-2007 Nokia Corporation
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * version 2.1 as published by the Free Software Foundation.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #ifndef __IDLE_IM_MANAGER_H__
21 #define __IDLE_IM_MANAGER_H__
22
23 #include <glib-object.h>
24
25 G_BEGIN_DECLS
26
27 typedef struct _IdleIMManager IdleIMManager;
28 typedef struct _IdleIMManagerClass IdleIMManagerClass;
29
30 struct _IdleIMManagerClass {
31 GObjectClass parent_class;
32 };
33
34 struct _IdleIMManager {
35 GObject parent;
36 };
37
38 GType idle_im_manager_get_type();
39
40 #define IDLE_TYPE_IM_MANAGER (idle_im_manager_get_type())
41 #define IDLE_IM_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), IDLE_TYPE_IM_MANAGER, IdleIMManager))
42 #define IDLE_IM_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), IDLE_TYPE_IM_MANAGER, IdleIMManagerClass))
43 #define IDLE_IS_IM_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), IDLE_TYPE_IM_MANAGER))
44 #define IDLE_IS_IM_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), IDLE_TYPE_IM_MANAGER))
45 #define IDLE_IM_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), IDLE_TYPE_IM_MANAGER, IdleIMManagerClass))
46
47 G_END_DECLS
48
49 #endif /* #ifndef __IDLE_IM_MANAGER_H__ */
50
5252 G_IMPLEMENT_INTERFACE(TP_TYPE_SVC_CHANNEL_INTERFACE_PASSWORD, _password_iface_init);
5353 G_IMPLEMENT_INTERFACE(TP_TYPE_SVC_CHANNEL_TYPE_TEXT, _text_iface_init);
5454 G_IMPLEMENT_INTERFACE(TP_TYPE_SVC_PROPERTIES_INTERFACE, _properties_iface_init);
55 G_IMPLEMENT_INTERFACE(TP_TYPE_EXPORTABLE_CHANNEL, NULL);
5556 G_IMPLEMENT_INTERFACE(TP_TYPE_CHANNEL_IFACE, NULL);)
5657
5758 /* signal enum */
6465 enum {
6566 PROP_CONNECTION = 1,
6667 PROP_OBJECT_PATH,
68 PROP_INTERFACES,
6769 PROP_CHANNEL_TYPE,
6870 PROP_HANDLE_TYPE,
6971 PROP_HANDLE,
72 PROP_TARGET_ID,
73 PROP_REQUESTED,
74 PROP_INITIATOR_HANDLE,
75 PROP_INITIATOR_ID,
76 PROP_CHANNEL_DESTROYED,
77 PROP_CHANNEL_PROPERTIES,
7078 LAST_PROPERTY_ENUM
7179 };
7280
160168 guint flags;
161169 } TPProperty;
162170
171 static const gchar *muc_channel_interfaces[] = {
172 TP_IFACE_CHANNEL_INTERFACE_PASSWORD,
173 TP_IFACE_CHANNEL_INTERFACE_GROUP,
174 TP_IFACE_PROPERTIES_INTERFACE,
175 NULL
176 };
163177
164178 static const TPPropertySignature property_signatures[] = {
165179 {"invite-only", G_TYPE_BOOLEAN},
218232 TpHandle handle;
219233 const gchar *channel_name;
220234
235 TpHandle initiator;
236 gboolean requested;
237
221238 IdleMUCState state;
222239
223240 IRCChannelModeState mode_state;
272289 g_assert(tp_handle_is_valid(room_handles, priv->handle, NULL));
273290 priv->channel_name = tp_handle_inspect(room_handles, priv->handle);
274291
292 if (priv->initiator)
293 tp_handle_ref(room_handles, priv->initiator);
294
275295 bus = tp_get_bus();
276296 dbus_g_connection_register_g_object(bus, priv->object_path, obj);
277297
278298 tp_group_mixin_init(obj, G_STRUCT_OFFSET(IdleMUCChannel, group), contact_handles, priv->connection->parent.self_handle);
299 tp_group_mixin_change_flags(obj, TP_CHANNEL_GROUP_FLAG_PROPERTIES, 0);
279300
280301 tp_text_mixin_init(obj, G_STRUCT_OFFSET(IdleMUCChannel, text), contact_handles);
281302 tp_text_mixin_set_message_types(obj,
306327 g_value_set_string(value, priv->object_path);
307328 break;
308329
330 case PROP_INTERFACES:
331 g_value_set_static_boxed(value, muc_channel_interfaces);
332 break;
333
309334 case PROP_CHANNEL_TYPE:
310335 g_value_set_string(value, TP_IFACE_CHANNEL_TYPE_TEXT);
311336 break;
317342 case PROP_HANDLE:
318343 g_value_set_uint(value, priv->handle);
319344 break;
345
346 case PROP_TARGET_ID:
347 g_value_set_string(value, priv->channel_name);
348 break;
349
350 case PROP_REQUESTED:
351 g_value_set_boolean(value, priv->requested);
352 break;
353
354 case PROP_INITIATOR_HANDLE:
355 g_value_set_uint(value, priv->initiator);
356 break;
357
358 case PROP_INITIATOR_ID:
359 if (priv->initiator != 0) {
360 TpHandleRepoIface *handles = tp_base_connection_get_handles(
361 TP_BASE_CONNECTION(priv->connection),
362 TP_HANDLE_TYPE_CONTACT);
363 g_value_set_string(value,
364 tp_handle_inspect(handles, priv->initiator));
365 } else {
366 g_value_set_static_string(value, "");
367 }
368
369 break;
370
371 case PROP_CHANNEL_DESTROYED:
372 /* TODO: this should be FALSE if there are still pending messages, so
373 * the channel manager can respawn the channel.
374 */
375 g_value_set_boolean (value, TRUE);
376 break;
377
378 case PROP_CHANNEL_PROPERTIES:
379 {
380 GHashTable *props =
381 tp_dbus_properties_mixin_make_properties_hash (
382 object,
383 TP_IFACE_CHANNEL, "Interfaces",
384 TP_IFACE_CHANNEL, "ChannelType",
385 TP_IFACE_CHANNEL, "TargetHandleType",
386 TP_IFACE_CHANNEL, "TargetHandle",
387 TP_IFACE_CHANNEL, "TargetID",
388 TP_IFACE_CHANNEL, "InitiatorHandle",
389 TP_IFACE_CHANNEL, "InitiatorID",
390 TP_IFACE_CHANNEL, "Requested",
391 NULL);
392 g_value_take_boxed (value, props);
393 break;
394 }
320395
321396 default:
322397 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
348423 case PROP_HANDLE:
349424 priv->handle = g_value_get_uint(value);
350425 IDLE_DEBUG("setting handle to %u", priv->handle);
426 break;
427
428 case PROP_INITIATOR_HANDLE:
429 priv->initiator = g_value_get_uint(value);
430 break;
431
432 case PROP_REQUESTED:
433 priv->requested = g_value_get_boolean(value);
351434 break;
352435
353436 case PROP_CHANNEL_TYPE:
377460 g_object_class_override_property (object_class, PROP_CHANNEL_TYPE, "channel-type");
378461 g_object_class_override_property (object_class, PROP_HANDLE_TYPE, "handle-type");
379462 g_object_class_override_property (object_class, PROP_HANDLE, "handle");
463 g_object_class_override_property (object_class, PROP_CHANNEL_DESTROYED, "channel-destroyed");
464 g_object_class_override_property (object_class, PROP_CHANNEL_PROPERTIES, "channel-properties");
380465
381466 object_class->dispose = idle_muc_channel_dispose;
382467 object_class->finalize = idle_muc_channel_finalize;
384469 param_spec = g_param_spec_object ("connection", "IdleConnection object", "The IdleConnection object that owns this MUCChannel object.", IDLE_TYPE_CONNECTION, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
385470 g_object_class_install_property (object_class, PROP_CONNECTION, param_spec);
386471
472 param_spec = g_param_spec_boxed ("interfaces", "Extra D-Bus interfaces",
473 "Interfaces implemented by this object besides Channel",
474 G_TYPE_STRV, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
475 g_object_class_install_property (object_class, PROP_INTERFACES, param_spec);
476
477 param_spec = g_param_spec_string ("target-id", "Room's identifier",
478 "The name of the IRC channel",
479 NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
480 g_object_class_install_property (object_class, PROP_TARGET_ID, param_spec);
481
482 param_spec = g_param_spec_boolean ("requested", "Requested?",
483 "True if this channel was requested by the local user",
484 FALSE,
485 G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
486 g_object_class_install_property (object_class, PROP_REQUESTED, param_spec);
487
488 param_spec = g_param_spec_uint ("initiator-handle", "Initiator's handle",
489 "The contact who initiated the channel",
490 0, G_MAXUINT32, 0,
491 G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
492 g_object_class_install_property (object_class, PROP_INITIATOR_HANDLE, param_spec);
493
494 param_spec = g_param_spec_string ("initiator-id", "Initiator's bare JID",
495 "The string obtained by inspecting the initiator-handle",
496 NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
497 g_object_class_install_property (object_class, PROP_INITIATOR_ID, param_spec);
498
387499 signals[JOIN_READY] = g_signal_new("join-ready", G_OBJECT_CLASS_TYPE(idle_muc_channel_class), G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT);
388500
389501 tp_group_mixin_class_init(object_class, G_STRUCT_OFFSET(IdleMUCChannelClass, group_class), add_member, remove_member);
390502 tp_text_mixin_class_init(object_class, G_STRUCT_OFFSET(IdleMUCChannelClass, text_class));
503
504 static TpDBusPropertiesMixinPropImpl channel_props[] = {
505 { "Interfaces", "interfaces", NULL },
506 { "ChannelType", "channel-type", NULL },
507 { "TargetHandleType", "handle-type", NULL },
508 { "TargetHandle", "handle", NULL },
509 { "TargetID", "target-id", NULL },
510 { "InitiatorHandle", "initiator-handle", NULL },
511 { "InitiatorID", "initiator-id", NULL },
512 { "Requested", "requested", NULL },
513 { NULL }
514 };
515 static TpDBusPropertiesMixinIfaceImpl prop_interfaces[] = {
516 { TP_IFACE_CHANNEL,
517 tp_dbus_properties_mixin_getter_gobject_properties,
518 NULL,
519 channel_props,
520 },
521 { NULL }
522 };
523
524 idle_muc_channel_class->dbus_props_class.interfaces = prop_interfaces;
525 tp_dbus_properties_mixin_class_init(object_class, G_STRUCT_OFFSET(IdleMUCChannelClass, dbus_props_class));
526 tp_group_mixin_init_dbus_properties (object_class);
527 tp_group_mixin_class_allow_self_removal (object_class);
391528 }
392529
393530 void idle_muc_channel_dispose (GObject *object) {
412549 TpHandleRepoIface *handles = tp_base_connection_get_handles(TP_BASE_CONNECTION(priv->connection), TP_HANDLE_TYPE_ROOM);
413550 tp_handle_unref(handles, priv->handle);
414551
552 if (priv->initiator)
553 tp_handle_unref(handles, priv->initiator);
554
415555 if (priv->object_path)
416556 g_free(priv->object_path);
417557
431571 tp_group_mixin_finalize(object);
432572
433573 G_OBJECT_CLASS (idle_muc_channel_parent_class)->finalize (object);
574 }
575
576 IdleMUCChannel *idle_muc_channel_new(IdleConnection *conn, const gchar *object_path, TpHandle handle, TpHandle initiator, gboolean requested) {
577 return g_object_new(IDLE_TYPE_MUC_CHANNEL,
578 "connection", conn,
579 "object-path", object_path,
580 "handle", handle,
581 "initiator-handle", initiator,
582 "requested", requested,
583 NULL);
434584 }
435585
436586 static void muc_channel_tp_properties_init(IdleMUCChannel *chan) {
674824 priv = IDLE_MUC_CHANNEL_GET_PRIVATE(obj);
675825
676826 if ((state > MUC_STATE_JOINING) && (!priv->join_ready)) {
827 IDLE_DEBUG("emitting join-ready");
677828 g_signal_emit(obj, signals[JOIN_READY], 0, MUC_CHANNEL_JOIN_ERROR_NONE);
678829 priv->join_ready = TRUE;
679830 }
694845 priv->state = state;
695846
696847 IDLE_DEBUG("IdleMUCChannel %u changed to state %s", priv->handle, ascii_muc_states[state]);
848 }
849
850 gboolean idle_muc_channel_is_ready(IdleMUCChannel *obj) {
851 IdleMUCChannelPrivate *priv;
852
853 g_return_val_if_fail(obj != NULL, FALSE);
854 g_return_val_if_fail(IDLE_IS_MUC_CHANNEL(obj), FALSE);
855
856 priv = IDLE_MUC_CHANNEL_GET_PRIVATE(obj);
857
858 return priv->join_ready;
697859 }
698860
699861 static IdleMUCChannelTPProperty to_prop_id(IRCChannelModeFlags flag) {
9601122 }
9611123
9621124 void idle_muc_channel_part(IdleMUCChannel *chan, TpHandle leaver, const gchar *message) {
963 return _network_member_left(chan, leaver, leaver, message, TP_CHANNEL_GROUP_CHANGE_REASON_NONE);
1125 _network_member_left(chan, leaver, leaver, message, TP_CHANNEL_GROUP_CHANGE_REASON_NONE);
9641126 }
9651127
9661128 void idle_muc_channel_kick(IdleMUCChannel *chan, TpHandle kicked, TpHandle kicker, const gchar *message) {
967 return _network_member_left(chan, kicked, kicker, message, TP_CHANNEL_GROUP_CHANGE_REASON_KICKED);
1129 _network_member_left(chan, kicked, kicker, message, TP_CHANNEL_GROUP_CHANGE_REASON_KICKED);
9681130 }
9691131
9701132 void idle_muc_channel_quit(IdleMUCChannel *chan, TpHandle quitter, const gchar *message) {
971 return _network_member_left(chan, quitter, quitter, message, TP_CHANNEL_GROUP_CHANGE_REASON_OFFLINE);
1133 _network_member_left(chan, quitter, quitter, message, TP_CHANNEL_GROUP_CHANGE_REASON_OFFLINE);
9721134 }
9731135
9741136 void idle_muc_channel_invited(IdleMUCChannel *chan, TpHandle inviter) {
14071569 }
14081570
14091571 void idle_muc_channel_join_attempt(IdleMUCChannel *obj) {
1410 return send_join_request(obj, NULL);
1572 send_join_request(obj, NULL);
14111573 }
14121574
14131575 static gboolean send_invite_request(IdleMUCChannel *obj, TpHandle handle, GError **error) {
16471809 * Returns: TRUE if successful, FALSE if an error was thrown.
16481810 */
16491811 static void idle_muc_channel_get_interfaces (TpSvcChannel *obj, DBusGMethodInvocation *context) {
1650 const gchar *interfaces[] = {
1651 TP_IFACE_CHANNEL_INTERFACE_PASSWORD,
1652 TP_IFACE_CHANNEL_INTERFACE_GROUP,
1653 TP_IFACE_PROPERTIES_INTERFACE,
1654 NULL};
1655
1656 tp_svc_channel_return_from_get_interfaces(context, interfaces);
1812 tp_svc_channel_return_from_get_interfaces(context, muc_channel_interfaces);
16571813 }
16581814
16591815 /**
2626 #include <telepathy-glib/group-mixin.h>
2727 #include <telepathy-glib/handle.h>
2828 #include <telepathy-glib/text-mixin.h>
29 #include <telepathy-glib/dbus-properties-mixin.h>
30
31 #include "idle-connection.h"
2932
3033 G_BEGIN_DECLS
3134
3639 GObjectClass parent_class;
3740 TpGroupMixinClass group_class;
3841 TpTextMixinClass text_class;
42 TpDBusPropertiesMixinClass dbus_props_class;
3943 };
4044
4145 struct _IdleMUCChannel {
6771 #define IDLE_MUC_CHANNEL_GET_CLASS(obj) \
6872 (G_TYPE_INSTANCE_GET_CLASS ((obj), IDLE_TYPE_MUC_CHANNEL, IdleMUCChannelClass))
6973
74 IdleMUCChannel *idle_muc_channel_new(IdleConnection *conn, const gchar *object_path, TpHandle handle, TpHandle initiator, gboolean requested);
75
7076 void idle_muc_channel_badchannelkey(IdleMUCChannel *chan);
7177 void idle_muc_channel_invited(IdleMUCChannel *chan, TpHandle inviter);
7278 gboolean idle_muc_channel_is_modechar(char c);
8692 void idle_muc_channel_topic_touch(IdleMUCChannel *chan, const TpHandle handle, const guint timestamp);
8793 void idle_muc_channel_topic_unset(IdleMUCChannel *chan);
8894
95 gboolean idle_muc_channel_is_ready(IdleMUCChannel *chan);
96
8997 G_END_DECLS
9098
9199 #endif /* #ifndef __IDLE_MUC_CHANNEL_H__*/
+0
-632
src/idle-muc-factory.c less more
0 /*
1 * This file is part of telepathy-idle
2 *
3 * Copyright (C) 2006-2007 Collabora Limited
4 * Copyright (C) 2006-2007 Nokia Corporation
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * version 2.1 as published by the Free Software Foundation.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #include "idle-muc-factory.h"
21
22 #include <time.h>
23
24 #include <telepathy-glib/channel-factory-iface.h>
25 #include <telepathy-glib/interfaces.h>
26
27 #define IDLE_DEBUG_FLAG IDLE_DEBUG_MUC
28 #include "idle-connection.h"
29 #include "idle-ctcp.h"
30 #include "idle-debug.h"
31 #include "idle-muc-channel.h"
32 #include "idle-parser.h"
33 #include "idle-text.h"
34
35 static void _factory_iface_init(gpointer, gpointer);
36
37 G_DEFINE_TYPE_WITH_CODE(IdleMUCFactory, idle_muc_factory, G_TYPE_OBJECT,
38 G_IMPLEMENT_INTERFACE(TP_TYPE_CHANNEL_FACTORY_IFACE, _factory_iface_init));
39
40 /* properties */
41 enum {
42 PROP_CONNECTION = 1,
43 LAST_PROPERTY_ENUM
44 };
45
46 typedef struct _IdleMUCFactoryPrivate IdleMUCFactoryPrivate;
47 struct _IdleMUCFactoryPrivate {
48 IdleConnection *conn;
49 GHashTable *channels;
50
51 gboolean dispose_has_run;
52 };
53
54 #define IDLE_MUC_FACTORY_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), IDLE_TYPE_MUC_FACTORY, IdleMUCFactoryPrivate))
55
56 static IdleParserHandlerResult _numeric_error_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
57 static IdleParserHandlerResult _numeric_namereply_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
58 static IdleParserHandlerResult _numeric_namereply_end_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
59 static IdleParserHandlerResult _numeric_topic_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
60 static IdleParserHandlerResult _numeric_topic_stamp_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
61
62 static IdleParserHandlerResult _invite_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
63 static IdleParserHandlerResult _join_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
64 static IdleParserHandlerResult _kick_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
65 static IdleParserHandlerResult _mode_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
66 static IdleParserHandlerResult _nick_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
67 static IdleParserHandlerResult _notice_privmsg_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
68 static IdleParserHandlerResult _part_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
69 static IdleParserHandlerResult _quit_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
70 static IdleParserHandlerResult _topic_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
71
72 static void _iface_close_all(TpChannelFactoryIface *iface);
73 static void _iface_connecting(TpChannelFactoryIface *iface);
74 static void _iface_disconnected(TpChannelFactoryIface *iface);
75 static void _iface_foreach(TpChannelFactoryIface *iface, TpChannelFunc func, gpointer user_data);
76 static TpChannelFactoryRequestStatus _iface_request(TpChannelFactoryIface *iface, const gchar *chan_type, TpHandleType handle_type, guint handle, gpointer request, TpChannelIface **new_chan, GError **error);
77
78 static IdleMUCChannel *_create_channel(IdleMUCFactory *factory, TpHandle handle);
79 static void _channel_closed_cb(IdleMUCChannel *chan, gpointer user_data);
80 static void _channel_join_ready_cb(IdleMUCChannel *chan, guint err, gpointer user_data);
81
82 static void idle_muc_factory_init(IdleMUCFactory *obj) {
83 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(obj);
84
85 priv->channels = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, g_object_unref);
86 }
87
88 static void idle_muc_factory_get_property(GObject *object, guint property_id, GValue *value, GParamSpec *pspec) {
89 IdleMUCFactory *fac = IDLE_MUC_FACTORY(object);
90 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(fac);
91
92 switch (property_id) {
93 case PROP_CONNECTION:
94 g_value_set_object(value, priv->conn);
95 break;
96
97 default:
98 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
99 break;
100 }
101 }
102
103 static void idle_muc_factory_set_property(GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) {
104 IdleMUCFactory *fac = IDLE_MUC_FACTORY(object);
105 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(fac);
106
107 switch (property_id) {
108 case PROP_CONNECTION:
109 priv->conn = g_value_get_object(value);
110 break;
111
112 default:
113 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
114 break;
115 }
116 }
117
118 static void idle_muc_factory_class_init(IdleMUCFactoryClass *klass) {
119 GObjectClass *object_class = G_OBJECT_CLASS(klass);
120 GParamSpec *param_spec;
121
122 g_type_class_add_private(klass, sizeof(IdleMUCFactoryPrivate));
123
124 object_class->get_property = idle_muc_factory_get_property;
125 object_class->set_property = idle_muc_factory_set_property;
126
127 param_spec = g_param_spec_object("connection", "IdleConnection object", "The IdleConnection object that owns this IM channel factory object.", IDLE_TYPE_CONNECTION, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
128 g_object_class_install_property(object_class, PROP_CONNECTION, param_spec);
129 }
130
131 static IdleParserHandlerResult _numeric_error_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
132 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(user_data);
133 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
134
135 if (!priv->channels) {
136 IDLE_DEBUG("Channels hash table missing, ignoring...");
137 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
138 }
139
140 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
141
142 if (!chan)
143 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
144
145 switch (code) {
146 case IDLE_PARSER_NUMERIC_BADCHANNELKEY:
147 idle_muc_channel_badchannelkey(chan);
148 break;
149
150 case IDLE_PARSER_NUMERIC_BANNEDFROMCHAN:
151 idle_muc_channel_join_error(chan, MUC_CHANNEL_JOIN_ERROR_BANNED);
152 break;
153
154 case IDLE_PARSER_NUMERIC_CHANNELISFULL:
155 idle_muc_channel_join_error(chan, MUC_CHANNEL_JOIN_ERROR_FULL);
156 break;
157
158 case IDLE_PARSER_NUMERIC_INVITEONLYCHAN:
159 idle_muc_channel_join_error(chan, MUC_CHANNEL_JOIN_ERROR_INVITE_ONLY);
160 break;
161
162 default:
163 g_assert_not_reached();
164 break;
165 }
166
167 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
168 }
169
170 static IdleParserHandlerResult _numeric_topic_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
171 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(user_data);
172 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
173 const gchar *topic = g_value_get_string(g_value_array_get_nth(args, 1));
174
175 if (!priv->channels) {
176 IDLE_DEBUG("Channels hash table missing, ignoring...");
177 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
178 }
179
180 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
181
182 if (chan)
183 idle_muc_channel_topic(chan, topic);
184
185 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
186 }
187
188 static IdleParserHandlerResult _numeric_topic_stamp_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
189 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(user_data);
190 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
191 TpHandle toucher_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
192 time_t touched = g_value_get_uint(g_value_array_get_nth(args, 2));
193
194 if (!priv->channels) {
195 IDLE_DEBUG("Channels hash table missing, ignoring...");
196 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
197 }
198
199 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
200
201 idle_connection_emit_queued_aliases_changed(priv->conn);
202
203 if (chan)
204 idle_muc_channel_topic_touch(chan, toucher_handle, touched);
205
206 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
207 }
208
209 static IdleParserHandlerResult _invite_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
210 IdleMUCFactory *factory = IDLE_MUC_FACTORY(user_data);
211 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(factory);
212 TpHandle inviter_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
213 TpHandle invited_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
214 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 2));
215
216 if (invited_handle != priv->conn->parent.self_handle)
217 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
218
219 if (!priv->channels) {
220 IDLE_DEBUG("Channels hash table missing, ignoring...");
221 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
222 }
223
224 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
225
226 idle_connection_emit_queued_aliases_changed(priv->conn);
227
228 if (!chan) {
229 chan = _create_channel(factory, room_handle);
230 tp_channel_factory_iface_emit_new_channel(TP_CHANNEL_FACTORY_IFACE(user_data), (TpChannelIface *) chan, NULL);
231 idle_muc_channel_invited(chan, inviter_handle);
232 }
233
234 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
235 }
236
237 static IdleParserHandlerResult _join_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
238 IdleMUCFactory *factory = IDLE_MUC_FACTORY(user_data);
239 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(factory);
240 TpHandle joiner_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
241 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
242
243 idle_connection_emit_queued_aliases_changed(priv->conn);
244
245 if (!priv->channels) {
246 IDLE_DEBUG("Channels hash table missing, ignoring...");
247 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
248 }
249
250 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
251
252 if (!chan)
253 chan = _create_channel(factory, room_handle);
254
255 idle_muc_channel_join(chan, joiner_handle);
256
257 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
258 }
259
260 static IdleParserHandlerResult _kick_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
261 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(user_data);
262 TpHandle kicker_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
263 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
264 TpHandle kicked_handle = g_value_get_uint(g_value_array_get_nth(args, 2));
265 const gchar *message = (args->n_values == 4) ? g_value_get_string(g_value_array_get_nth(args, 3)) : NULL;
266
267 if (!priv->channels) {
268 IDLE_DEBUG("Channels hash table missing, ignoring...");
269 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
270 }
271
272 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
273
274 if (chan)
275 idle_muc_channel_kick(chan, kicked_handle, kicker_handle, message);
276
277 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
278 }
279
280 static IdleParserHandlerResult _numeric_namereply_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
281 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(user_data);
282 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
283
284 if (!priv->channels) {
285 IDLE_DEBUG("Channels hash table missing, ignoring...");
286 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
287 }
288
289 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
290
291 if (chan)
292 idle_muc_channel_namereply(chan, args);
293
294 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
295 }
296
297 static IdleParserHandlerResult _numeric_namereply_end_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
298 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(user_data);
299 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
300
301 if (!priv->channels) {
302 IDLE_DEBUG("Channels hash table missing, ignoring...");
303 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
304 }
305
306 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
307
308 if (chan)
309 idle_muc_channel_namereply_end(chan);
310
311 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
312 }
313
314 static IdleParserHandlerResult _mode_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
315 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(user_data);
316 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
317
318 if (!priv->channels) {
319 IDLE_DEBUG("Channels hash table missing, ignoring...");
320 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
321 }
322
323 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
324
325 if (chan)
326 idle_muc_channel_mode(chan, args);
327
328 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
329 }
330
331 typedef struct _ChannelRenameForeachData ChannelRenameForeachData;
332 struct _ChannelRenameForeachData {
333 TpHandle old_handle, new_handle;
334 };
335
336 static void _channel_rename_foreach(TpChannelIface *iface, gpointer user_data) {
337 IdleMUCChannel *chan = IDLE_MUC_CHANNEL(iface);
338 ChannelRenameForeachData *data = user_data;
339
340 idle_muc_channel_rename(chan, data->old_handle, data->new_handle);
341 }
342
343 static IdleParserHandlerResult _nick_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
344 TpChannelFactoryIface *iface = TP_CHANNEL_FACTORY_IFACE(user_data);
345 TpHandle old_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
346 TpHandle new_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
347 ChannelRenameForeachData data = {old_handle, new_handle};
348
349 if (old_handle == new_handle)
350 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
351
352 tp_channel_factory_iface_foreach(iface, _channel_rename_foreach, &data);
353
354 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
355 }
356
357 static IdleParserHandlerResult _notice_privmsg_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
358 IdleMUCFactory *factory = IDLE_MUC_FACTORY(user_data);
359 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(factory);
360 TpHandle sender_handle = (TpHandle) g_value_get_uint(g_value_array_get_nth(args, 0));
361 TpHandle room_handle = (TpHandle) g_value_get_uint(g_value_array_get_nth(args, 1));
362
363 if (!priv->channels) {
364 IDLE_DEBUG("Channels hash table missing, ignoring...");
365 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
366 }
367
368 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
369
370 TpChannelTextMessageType type;
371 gchar *body;
372
373 if (code == IDLE_PARSER_PREFIXCMD_NOTICE_CHANNEL) {
374 type = TP_CHANNEL_TEXT_MESSAGE_TYPE_NOTICE;
375 body = idle_ctcp_kill_blingbling(g_value_get_string(g_value_array_get_nth(args, 2)));
376 } else {
377 gboolean decoded = idle_text_decode(g_value_get_string(g_value_array_get_nth(args, 2)), &type, &body);
378 if (!decoded)
379 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
380 }
381
382 if (chan)
383 idle_muc_channel_receive(chan, type, sender_handle, body);
384
385 g_free(body);
386
387 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
388 }
389
390
391 static IdleParserHandlerResult _part_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
392 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(user_data);
393 TpHandle leaver_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
394 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
395 const gchar *message = (args->n_values == 3) ? g_value_get_string(g_value_array_get_nth(args, 2)) : NULL;
396
397 if (!priv->channels) {
398 IDLE_DEBUG("Channels hash table missing, ignoring...");
399 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
400 }
401
402 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
403
404 if (chan)
405 idle_muc_channel_part(chan, leaver_handle, message);
406
407 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
408 }
409
410 typedef struct _ChannelQuitForeachData ChannelQuitForeachData;
411 struct _ChannelQuitForeachData {
412 TpHandle handle;
413 const gchar *message;
414 };
415
416 static void _channel_quit_foreach(TpChannelIface *iface, gpointer user_data) {
417 IdleMUCChannel *chan = IDLE_MUC_CHANNEL(iface);
418 ChannelQuitForeachData *data = user_data;
419
420 idle_muc_channel_quit(chan, data->handle, data->message);
421 }
422
423 static IdleParserHandlerResult _quit_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
424 TpChannelFactoryIface *iface = TP_CHANNEL_FACTORY_IFACE(user_data);
425 TpHandle leaver_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
426 const gchar *message = (args->n_values == 2) ? g_value_get_string(g_value_array_get_nth(args, 1)) : NULL;
427 ChannelQuitForeachData data = {leaver_handle, message};
428
429 tp_channel_factory_iface_foreach(iface, _channel_quit_foreach, &data);
430
431 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
432 }
433
434 static IdleParserHandlerResult _topic_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
435 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(user_data);
436 TpHandle setter_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
437 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
438 const gchar *topic = (args->n_values == 3) ? g_value_get_string(g_value_array_get_nth(args, 2)) : NULL;
439 time_t stamp = time(NULL);
440
441 if (!priv->channels) {
442 IDLE_DEBUG("Channels hash table missing, ignoring...");
443 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
444 }
445
446 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
447
448 if (chan) {
449 if (topic)
450 idle_muc_channel_topic_full(chan, setter_handle, stamp, topic);
451 else
452 idle_muc_channel_topic_unset(chan);
453 }
454
455 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
456 }
457
458 static void _iface_close_all(TpChannelFactoryIface *iface) {
459 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(iface);
460
461 if (!priv->channels) {
462 IDLE_DEBUG("Channels already closed, ignoring...");
463 return;
464 }
465
466 GHashTable *tmp = priv->channels;
467 priv->channels = NULL;
468 g_hash_table_destroy(tmp);
469 }
470
471 static void _iface_connecting(TpChannelFactoryIface *iface) {
472 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(iface);
473
474 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_BADCHANNELKEY, _numeric_error_handler, iface);
475 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_BANNEDFROMCHAN, _numeric_error_handler, iface);
476 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_CHANNELISFULL, _numeric_error_handler, iface);
477 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_INVITEONLYCHAN, _numeric_error_handler, iface);
478 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_MODEREPLY, _mode_handler, iface);
479 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_NAMEREPLY, _numeric_namereply_handler, iface);
480 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_NAMEREPLY_END, _numeric_namereply_end_handler, iface);
481 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_TOPIC, _numeric_topic_handler, iface);
482 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_TOPIC_STAMP, _numeric_topic_stamp_handler, iface);
483
484 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_INVITE, _invite_handler, iface);
485 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_JOIN, _join_handler, iface);
486 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_KICK, _kick_handler, iface);
487 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_MODE_CHANNEL, _mode_handler, iface);
488 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_NICK, _nick_handler, iface);
489 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_NOTICE_CHANNEL, _notice_privmsg_handler, iface);
490 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_PRIVMSG_CHANNEL, _notice_privmsg_handler, iface);
491 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_PART, _part_handler, iface);
492 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_QUIT, _quit_handler, iface);
493 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_TOPIC, _topic_handler, iface);
494 }
495
496 static void _iface_disconnected(TpChannelFactoryIface *iface) {
497 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(iface);
498
499 idle_parser_remove_handlers_by_data(priv->conn->parser, iface);
500 }
501
502 struct _ForeachHelperData {
503 TpChannelFunc func;
504 gpointer user_data;
505 };
506
507 static void _foreach_helper(gpointer key, gpointer value, gpointer user_data) {
508 struct _ForeachHelperData *data = user_data;
509 data->func(value, data->user_data);
510 }
511
512 static void _iface_foreach(TpChannelFactoryIface *iface, TpChannelFunc func, gpointer user_data) {
513 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(iface);
514 struct _ForeachHelperData data = {func, user_data};
515
516 if (!priv->channels) {
517 IDLE_DEBUG("Channels hash table missing, ignoring...");
518 return;
519 }
520
521 g_hash_table_foreach(priv->channels, _foreach_helper, &data);
522 }
523
524 static TpChannelFactoryRequestStatus _iface_request(TpChannelFactoryIface *iface, const gchar *chan_type, TpHandleType handle_type, guint handle, gpointer request, TpChannelIface **new_chan, GError **error) {
525 IdleMUCFactory *factory = IDLE_MUC_FACTORY(iface);
526 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(factory);
527
528 if (!g_str_equal(chan_type, TP_IFACE_CHANNEL_TYPE_TEXT))
529 return TP_CHANNEL_FACTORY_REQUEST_STATUS_NOT_IMPLEMENTED;
530
531 if (handle_type != TP_HANDLE_TYPE_ROOM)
532 return TP_CHANNEL_FACTORY_REQUEST_STATUS_NOT_AVAILABLE;
533
534 if (!tp_handle_is_valid(tp_base_connection_get_handles(TP_BASE_CONNECTION(priv->conn), TP_HANDLE_TYPE_ROOM), handle, error))
535 return TP_CHANNEL_FACTORY_REQUEST_STATUS_INVALID_HANDLE;
536
537 if (!priv->channels) {
538 IDLE_DEBUG("Channels hash table missing, failing request...");
539 return TP_CHANNEL_FACTORY_REQUEST_STATUS_ERROR;
540 }
541
542 if ((*new_chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(handle)))) {
543 return TP_CHANNEL_FACTORY_REQUEST_STATUS_EXISTING;
544 } else {
545 IdleMUCChannel *chan = _create_channel(factory, handle);
546 idle_muc_channel_join_attempt(chan);
547
548 return TP_CHANNEL_FACTORY_REQUEST_STATUS_QUEUED;
549 }
550 }
551
552 static IdleMUCChannel *_create_channel(IdleMUCFactory *factory, TpHandle handle) {
553 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(factory);
554 IdleMUCChannel *chan;
555 gchar *object_path;
556
557 object_path = g_strdup_printf("%s/MucChannel%u", priv->conn->parent.object_path, handle);
558 chan = g_object_new(IDLE_TYPE_MUC_CHANNEL, "connection", priv->conn, "object-path", object_path, "handle", handle, NULL);
559
560 g_signal_connect(chan, "closed", (GCallback) _channel_closed_cb, factory);
561 g_signal_connect(chan, "join-ready", (GCallback) _channel_join_ready_cb, factory);
562
563 g_hash_table_insert(priv->channels, GUINT_TO_POINTER(handle), chan);
564
565 g_free(object_path);
566
567 return chan;
568 }
569
570 static void _channel_closed_cb(IdleMUCChannel *chan, gpointer user_data) {
571 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(user_data);
572
573 if (priv->channels) {
574 TpHandle handle;
575 g_object_get(chan, "handle", &handle, NULL);
576 g_hash_table_remove(priv->channels, GUINT_TO_POINTER(handle));
577 }
578 }
579
580 static void _channel_join_ready_cb(IdleMUCChannel *chan, guint err, gpointer user_data) {
581 TpChannelFactoryIface *iface = TP_CHANNEL_FACTORY_IFACE(user_data);
582 IdleMUCFactoryPrivate *priv = IDLE_MUC_FACTORY_GET_PRIVATE(user_data);
583
584 if (err == MUC_CHANNEL_JOIN_ERROR_NONE) {
585 tp_channel_factory_iface_emit_new_channel(iface, (TpChannelIface *) chan, NULL);
586 return;
587 }
588
589 GError error = {TP_ERRORS, 0, NULL};
590 TpHandle handle;
591
592 g_object_get(chan, "handle", &handle, NULL);
593
594 switch (err) {
595 case MUC_CHANNEL_JOIN_ERROR_BANNED:
596 error.code = TP_ERROR_CHANNEL_BANNED;
597 error.message = "You are banned from the channel.";
598 break;
599
600 case MUC_CHANNEL_JOIN_ERROR_FULL:
601 error.code = TP_ERROR_CHANNEL_FULL;
602 error.message = "The channel is full.";
603 break;
604
605 case MUC_CHANNEL_JOIN_ERROR_INVITE_ONLY:
606 error.code = TP_ERROR_CHANNEL_INVITE_ONLY;
607 error.message = "The channel is invite only.";
608 break;
609
610 default:
611 g_assert_not_reached();
612 break;
613 }
614
615 tp_channel_factory_iface_emit_channel_error(iface, (TpChannelIface *) chan, &error, NULL);
616
617 if (priv->channels)
618 g_hash_table_remove(priv->channels, GUINT_TO_POINTER(handle));
619 }
620
621 static void _factory_iface_init(gpointer g_iface, gpointer iface_data) {
622 TpChannelFactoryIfaceClass *klass = (TpChannelFactoryIfaceClass *) g_iface;
623
624 klass->close_all = _iface_close_all;
625 klass->connected = NULL;
626 klass->connecting = _iface_connecting;
627 klass->disconnected = _iface_disconnected;
628 klass->foreach = _iface_foreach;
629 klass->request = _iface_request;
630 }
631
+0
-51
src/idle-muc-factory.h less more
0 /*
1 * This file is part of telepathy-idle
2 *
3 * Copyright (C) 2006-2007 Collabora Limited
4 * Copyright (C) 2006-2007 Nokia Corporation
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * version 2.1 as published by the Free Software Foundation.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #ifndef __IDLE_MUC_FACTORY_H__
21 #define __IDLE_MUC_FACTORY_H__
22
23 #include <glib-object.h>
24
25 G_BEGIN_DECLS
26
27 typedef struct _IdleMUCFactory IdleMUCFactory;
28 typedef struct _IdleMUCFactoryClass IdleMUCFactoryClass;
29
30 struct _IdleMUCFactoryClass {
31 GObjectClass parent_class;
32 };
33
34 struct _IdleMUCFactory {
35 GObject parent;
36 };
37
38 GType idle_muc_factory_get_type();
39
40 #define IDLE_TYPE_MUC_FACTORY (idle_muc_factory_get_type())
41 #define IDLE_MUC_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), IDLE_TYPE_MUC_FACTORY, IdleMUCFactory))
42 #define IDLE_MUC_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), IDLE_TYPE_MUC_FACTORY, IdleMUCFactoryClass))
43 #define IDLE_IS_MUC_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), IDLE_TYPE_MUC_FACTORY))
44 #define IDLE_IS_MUC_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), IDLE_TYPE_MUC_FACTORY))
45 #define IDLE_MUC_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), IDLE_TYPE_MUC_FACTORY, IdleMUCFactoryClass))
46
47 G_END_DECLS
48
49 #endif /* #ifndef __IDLE_MUC_FACTORY_H__ */
50
0 /*
1 * This file is part of telepathy-idle
2 *
3 * Copyright (C) 2006-2007 Collabora Limited
4 * Copyright (C) 2006-2007 Nokia Corporation
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * version 2.1 as published by the Free Software Foundation.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #include "idle-muc-manager.h"
21
22 #include <time.h>
23
24 #include <telepathy-glib/channel-manager.h>
25 #include <telepathy-glib/dbus.h>
26 #include <telepathy-glib/interfaces.h>
27
28 #define IDLE_DEBUG_FLAG IDLE_DEBUG_MUC
29 #include "idle-connection.h"
30 #include "idle-ctcp.h"
31 #include "idle-debug.h"
32 #include "idle-muc-channel.h"
33 #include "idle-parser.h"
34 #include "idle-text.h"
35
36 static void _muc_manager_iface_init(gpointer, gpointer);
37 static GObject* _muc_manager_constructor(GType type, guint n_props, GObjectConstructParam *props);
38
39 G_DEFINE_TYPE_WITH_CODE(IdleMUCManager, idle_muc_manager, G_TYPE_OBJECT,
40 G_IMPLEMENT_INTERFACE(TP_TYPE_CHANNEL_MANAGER, _muc_manager_iface_init));
41
42 /* properties */
43 enum {
44 PROP_CONNECTION = 1,
45 LAST_PROPERTY_ENUM
46 };
47
48 typedef struct _IdleMUCManagerPrivate IdleMUCManagerPrivate;
49 struct _IdleMUCManagerPrivate {
50 IdleConnection *conn;
51 GHashTable *channels;
52
53 /* Map from IdleMUCChannel * (borrowed from channels) to a GSList * of
54 * request tokens. */
55 GHashTable *queued_requests;
56
57 gulong status_changed_id;
58 gboolean dispose_has_run;
59 };
60
61 #define IDLE_MUC_MANAGER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), IDLE_TYPE_MUC_MANAGER, IdleMUCManagerPrivate))
62
63 static IdleParserHandlerResult _numeric_error_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
64 static IdleParserHandlerResult _numeric_namereply_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
65 static IdleParserHandlerResult _numeric_namereply_end_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
66 static IdleParserHandlerResult _numeric_topic_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
67 static IdleParserHandlerResult _numeric_topic_stamp_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
68
69 static IdleParserHandlerResult _invite_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
70 static IdleParserHandlerResult _join_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
71 static IdleParserHandlerResult _kick_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
72 static IdleParserHandlerResult _mode_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
73 static IdleParserHandlerResult _nick_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
74 static IdleParserHandlerResult _notice_privmsg_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
75 static IdleParserHandlerResult _part_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
76 static IdleParserHandlerResult _quit_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
77 static IdleParserHandlerResult _topic_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data);
78
79 static void connection_status_changed_cb (IdleConnection *conn, guint status, guint reason, IdleMUCManager *self);
80 static void _muc_manager_close_all(IdleMUCManager *manager);
81 static void _muc_manager_add_handlers(IdleMUCManager *manager);
82
83 static void _muc_manager_foreach_channel(TpChannelManager *manager, TpExportableChannelFunc func, gpointer user_data);
84 static void _muc_manager_foreach_channel_class (TpChannelManager *manager, TpChannelManagerChannelClassFunc func, gpointer user_data);
85
86 static gboolean _muc_manager_create_channel (TpChannelManager *manager, gpointer request_token, GHashTable *request_properties);
87 static gboolean _muc_manager_request_channel (TpChannelManager *manager, gpointer request_token, GHashTable *request_properties);
88 static gboolean _muc_manager_ensure_channel (TpChannelManager *manager, gpointer request_token, GHashTable *request_properties);
89 static gboolean _muc_manager_request (IdleMUCManager *self, gpointer request_token, GHashTable *request_properties, gboolean require_new);
90
91 static IdleMUCChannel *_muc_manager_new_channel(IdleMUCManager *manager, TpHandle handle, TpHandle initiator, gboolean requested);
92
93 static void _channel_closed_cb(IdleMUCChannel *chan, gpointer user_data);
94 static void _channel_join_ready_cb(IdleMUCChannel *chan, guint err, gpointer user_data);
95
96
97 static const gchar * const muc_channel_fixed_properties[] = {
98 TP_IFACE_CHANNEL ".ChannelType",
99 TP_IFACE_CHANNEL ".TargetHandleType",
100 NULL
101 };
102
103 static const gchar * const muc_channel_allowed_properties[] = {
104 TP_IFACE_CHANNEL ".TargetHandle",
105 TP_IFACE_CHANNEL ".TargetID",
106 NULL
107 };
108
109
110 static GObject*
111 _muc_manager_constructor(GType type, guint n_props, GObjectConstructParam *props)
112 {
113 GObject *obj;
114 IdleMUCManagerPrivate *priv;
115
116 obj = G_OBJECT_CLASS (idle_muc_manager_parent_class)-> constructor (type,
117 n_props,
118 props);
119
120 priv = IDLE_MUC_MANAGER_GET_PRIVATE (obj);
121
122 priv->status_changed_id =
123 g_signal_connect (priv->conn, "status-changed",
124 (GCallback) connection_status_changed_cb, obj);
125
126 return obj;
127 }
128
129 static void idle_muc_manager_init(IdleMUCManager *obj) {
130 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(obj);
131
132 priv->channels = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, g_object_unref);
133 priv->queued_requests = g_hash_table_new(NULL, NULL);
134 }
135
136 static void idle_muc_manager_get_property(GObject *object, guint property_id, GValue *value, GParamSpec *pspec) {
137 IdleMUCManager *fac = IDLE_MUC_MANAGER(object);
138 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(fac);
139
140 switch (property_id) {
141 case PROP_CONNECTION:
142 g_value_set_object(value, priv->conn);
143 break;
144
145 default:
146 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
147 break;
148 }
149 }
150
151 static void idle_muc_manager_set_property(GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) {
152 IdleMUCManager *fac = IDLE_MUC_MANAGER(object);
153 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(fac);
154
155 switch (property_id) {
156 case PROP_CONNECTION:
157 priv->conn = g_value_get_object(value);
158 break;
159
160 default:
161 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
162 break;
163 }
164 }
165
166 static void idle_muc_manager_class_init(IdleMUCManagerClass *klass) {
167 GObjectClass *object_class = G_OBJECT_CLASS(klass);
168 GParamSpec *param_spec;
169
170 g_type_class_add_private(klass, sizeof(IdleMUCManagerPrivate));
171
172 object_class->constructor = _muc_manager_constructor;
173 object_class->get_property = idle_muc_manager_get_property;
174 object_class->set_property = idle_muc_manager_set_property;
175
176 param_spec = g_param_spec_object("connection", "IdleConnection object", "The IdleConnection object that owns this IM channel manager object.", IDLE_TYPE_CONNECTION, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
177 g_object_class_install_property(object_class, PROP_CONNECTION, param_spec);
178 }
179
180 static IdleParserHandlerResult _numeric_error_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
181 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(user_data);
182 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
183
184 if (!priv->channels) {
185 IDLE_DEBUG("Channels hash table missing, ignoring...");
186 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
187 }
188
189 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
190
191 if (!chan)
192 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
193
194 switch (code) {
195 case IDLE_PARSER_NUMERIC_BADCHANNELKEY:
196 idle_muc_channel_badchannelkey(chan);
197 break;
198
199 case IDLE_PARSER_NUMERIC_BANNEDFROMCHAN:
200 idle_muc_channel_join_error(chan, MUC_CHANNEL_JOIN_ERROR_BANNED);
201 break;
202
203 case IDLE_PARSER_NUMERIC_CHANNELISFULL:
204 idle_muc_channel_join_error(chan, MUC_CHANNEL_JOIN_ERROR_FULL);
205 break;
206
207 case IDLE_PARSER_NUMERIC_INVITEONLYCHAN:
208 idle_muc_channel_join_error(chan, MUC_CHANNEL_JOIN_ERROR_INVITE_ONLY);
209 break;
210
211 default:
212 g_assert_not_reached();
213 break;
214 }
215
216 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
217 }
218
219 static IdleParserHandlerResult _numeric_topic_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
220 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(user_data);
221 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
222 const gchar *topic = g_value_get_string(g_value_array_get_nth(args, 1));
223
224 if (!priv->channels) {
225 IDLE_DEBUG("Channels hash table missing, ignoring...");
226 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
227 }
228
229 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
230
231 if (chan)
232 idle_muc_channel_topic(chan, topic);
233
234 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
235 }
236
237 static IdleParserHandlerResult _numeric_topic_stamp_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
238 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(user_data);
239 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
240 TpHandle toucher_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
241 time_t touched = g_value_get_uint(g_value_array_get_nth(args, 2));
242
243 if (!priv->channels) {
244 IDLE_DEBUG("Channels hash table missing, ignoring...");
245 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
246 }
247
248 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
249
250 idle_connection_emit_queued_aliases_changed(priv->conn);
251
252 if (chan)
253 idle_muc_channel_topic_touch(chan, toucher_handle, touched);
254
255 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
256 }
257
258 static IdleParserHandlerResult _invite_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
259 IdleMUCManager *manager = IDLE_MUC_MANAGER(user_data);
260 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(manager);
261 TpHandle inviter_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
262 TpHandle invited_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
263 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 2));
264
265 if (invited_handle != priv->conn->parent.self_handle)
266 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
267
268 if (!priv->channels) {
269 IDLE_DEBUG("Channels hash table missing, ignoring...");
270 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
271 }
272
273 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
274
275 idle_connection_emit_queued_aliases_changed(priv->conn);
276
277 if (!chan) {
278 chan = _muc_manager_new_channel(manager, room_handle, inviter_handle, FALSE);
279 tp_channel_manager_emit_new_channel(TP_CHANNEL_MANAGER(user_data), (TpExportableChannel *) chan, NULL);
280 idle_muc_channel_invited(chan, inviter_handle);
281 }
282
283 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
284 }
285
286 static IdleParserHandlerResult _join_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
287 IdleMUCManager *manager = IDLE_MUC_MANAGER(user_data);
288 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(manager);
289 TpHandle joiner_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
290 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
291
292 idle_connection_emit_queued_aliases_changed(priv->conn);
293
294 if (!priv->channels) {
295 IDLE_DEBUG("Channels hash table missing, ignoring...");
296 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
297 }
298
299 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
300
301 if (!chan) {
302 /* TODO: If we're in "bouncer mode", maybe these should be Requested:
303 * True? At least for the initial batch? */
304 chan = _muc_manager_new_channel(manager, room_handle, 0, FALSE);
305 tp_channel_manager_emit_new_channel(TP_CHANNEL_MANAGER(user_data), (TpExportableChannel *) chan, NULL);
306 }
307
308 idle_muc_channel_join(chan, joiner_handle);
309
310 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
311 }
312
313 static IdleParserHandlerResult _kick_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
314 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(user_data);
315 TpHandle kicker_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
316 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
317 TpHandle kicked_handle = g_value_get_uint(g_value_array_get_nth(args, 2));
318 const gchar *message = (args->n_values == 4) ? g_value_get_string(g_value_array_get_nth(args, 3)) : NULL;
319
320 if (!priv->channels) {
321 IDLE_DEBUG("Channels hash table missing, ignoring...");
322 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
323 }
324
325 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
326
327 if (chan)
328 idle_muc_channel_kick(chan, kicked_handle, kicker_handle, message);
329
330 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
331 }
332
333 static IdleParserHandlerResult _numeric_namereply_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
334 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(user_data);
335 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
336
337 if (!priv->channels) {
338 IDLE_DEBUG("Channels hash table missing, ignoring...");
339 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
340 }
341
342 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
343
344 if (chan)
345 idle_muc_channel_namereply(chan, args);
346
347 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
348 }
349
350 static IdleParserHandlerResult _numeric_namereply_end_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
351 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(user_data);
352 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
353
354 if (!priv->channels) {
355 IDLE_DEBUG("Channels hash table missing, ignoring...");
356 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
357 }
358
359 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
360
361 if (chan)
362 idle_muc_channel_namereply_end(chan);
363
364 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
365 }
366
367 static IdleParserHandlerResult _mode_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
368 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(user_data);
369 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
370
371 if (!priv->channels) {
372 IDLE_DEBUG("Channels hash table missing, ignoring...");
373 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
374 }
375
376 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
377
378 if (chan)
379 idle_muc_channel_mode(chan, args);
380
381 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
382 }
383
384 typedef struct _ChannelRenameForeachData ChannelRenameForeachData;
385 struct _ChannelRenameForeachData {
386 TpHandle old_handle, new_handle;
387 };
388
389 static void _channel_rename_foreach(TpExportableChannel *channel, gpointer user_data) {
390 IdleMUCChannel *muc_chan = IDLE_MUC_CHANNEL(channel);
391 ChannelRenameForeachData *data = user_data;
392
393 idle_muc_channel_rename(muc_chan, data->old_handle, data->new_handle);
394 }
395
396 static IdleParserHandlerResult _nick_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
397 TpChannelManager *mgr = TP_CHANNEL_MANAGER(user_data);
398 TpHandle old_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
399 TpHandle new_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
400 ChannelRenameForeachData data = {old_handle, new_handle};
401
402 if (old_handle == new_handle)
403 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
404
405 tp_channel_manager_foreach_channel(mgr, _channel_rename_foreach, &data);
406
407 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
408 }
409
410 static IdleParserHandlerResult _notice_privmsg_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
411 IdleMUCManager *manager = IDLE_MUC_MANAGER(user_data);
412 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(manager);
413 TpHandle sender_handle = (TpHandle) g_value_get_uint(g_value_array_get_nth(args, 0));
414 TpHandle room_handle = (TpHandle) g_value_get_uint(g_value_array_get_nth(args, 1));
415
416 if (!priv->channels) {
417 IDLE_DEBUG("Channels hash table missing, ignoring...");
418 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
419 }
420
421 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
422 /* XXX: just check for chan == NULL here and bail with NOT_HANDLED if room
423 * was not found ? Currently we go through all of the decoding of the
424 * message, but don't actually deliver the message to a channel if chan is
425 * NULL, and then we return 'HANDLED', which seems wrong
426 */
427
428 TpChannelTextMessageType type;
429 gchar *body;
430
431 if (code == IDLE_PARSER_PREFIXCMD_NOTICE_CHANNEL) {
432 type = TP_CHANNEL_TEXT_MESSAGE_TYPE_NOTICE;
433 body = idle_ctcp_kill_blingbling(g_value_get_string(g_value_array_get_nth(args, 2)));
434 } else {
435 gboolean decoded = idle_text_decode(g_value_get_string(g_value_array_get_nth(args, 2)), &type, &body);
436 if (!decoded)
437 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
438 }
439
440 if (chan)
441 idle_muc_channel_receive(chan, type, sender_handle, body);
442
443 g_free(body);
444
445 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
446 }
447
448
449 static IdleParserHandlerResult _part_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
450 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(user_data);
451 TpHandle leaver_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
452 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
453 const gchar *message = (args->n_values == 3) ? g_value_get_string(g_value_array_get_nth(args, 2)) : NULL;
454
455 if (!priv->channels) {
456 IDLE_DEBUG("Channels hash table missing, ignoring...");
457 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
458 }
459
460 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
461
462 if (chan)
463 idle_muc_channel_part(chan, leaver_handle, message);
464
465 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
466 }
467
468 typedef struct _ChannelQuitForeachData ChannelQuitForeachData;
469 struct _ChannelQuitForeachData {
470 TpHandle handle;
471 const gchar *message;
472 };
473
474 static void _channel_quit_foreach(TpExportableChannel *channel, gpointer user_data) {
475 IdleMUCChannel *muc_chan = IDLE_MUC_CHANNEL(channel);
476 ChannelQuitForeachData *data = user_data;
477
478 idle_muc_channel_quit(muc_chan, data->handle, data->message);
479 }
480
481 static IdleParserHandlerResult _quit_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
482 TpChannelManager *manager = TP_CHANNEL_MANAGER(user_data);
483 TpHandle leaver_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
484 const gchar *message = (args->n_values == 2) ? g_value_get_string(g_value_array_get_nth(args, 1)) : NULL;
485 ChannelQuitForeachData data = {leaver_handle, message};
486
487 tp_channel_manager_foreach_channel(manager, _channel_quit_foreach, &data);
488
489 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
490 }
491
492 static IdleParserHandlerResult _topic_handler(IdleParser *parser, IdleParserMessageCode code, GValueArray *args, gpointer user_data) {
493 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(user_data);
494 TpHandle setter_handle = g_value_get_uint(g_value_array_get_nth(args, 0));
495 TpHandle room_handle = g_value_get_uint(g_value_array_get_nth(args, 1));
496 const gchar *topic = (args->n_values == 3) ? g_value_get_string(g_value_array_get_nth(args, 2)) : NULL;
497 time_t stamp = time(NULL);
498
499 if (!priv->channels) {
500 IDLE_DEBUG("Channels hash table missing, ignoring...");
501 return IDLE_PARSER_HANDLER_RESULT_NOT_HANDLED;
502 }
503
504 IdleMUCChannel *chan = g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(room_handle));
505
506 if (chan) {
507 if (topic)
508 idle_muc_channel_topic_full(chan, setter_handle, stamp, topic);
509 else
510 idle_muc_channel_topic_unset(chan);
511 }
512
513 return IDLE_PARSER_HANDLER_RESULT_HANDLED;
514 }
515
516 static void _muc_manager_close_all(IdleMUCManager *manager)
517 {
518 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(manager);
519
520 if (priv->status_changed_id != 0) {
521 g_signal_handler_disconnect (priv->conn, priv->status_changed_id);
522 priv->status_changed_id = 0;
523 }
524
525 if (!priv->channels) {
526 IDLE_DEBUG("Channels already closed, ignoring...");
527 return;
528 }
529
530 GHashTable *tmp = priv->channels;
531 priv->channels = NULL;
532 g_hash_table_destroy(tmp);
533 }
534
535 static void
536 connection_status_changed_cb (IdleConnection *conn,
537 guint status,
538 guint reason,
539 IdleMUCManager *self)
540 {
541 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(self);
542 switch (status)
543 {
544 case TP_CONNECTION_STATUS_CONNECTED:
545 _muc_manager_add_handlers(self);
546 break;
547 case TP_CONNECTION_STATUS_DISCONNECTED:
548 idle_parser_remove_handlers_by_data(priv->conn->parser, self);
549 _muc_manager_close_all(self);
550 break;
551 }
552 }
553
554
555 static void _muc_manager_add_handlers(IdleMUCManager *manager)
556 {
557 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(manager);
558
559 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_BADCHANNELKEY, _numeric_error_handler, manager);
560 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_BANNEDFROMCHAN, _numeric_error_handler, manager);
561 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_CHANNELISFULL, _numeric_error_handler, manager);
562 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_INVITEONLYCHAN, _numeric_error_handler, manager);
563 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_MODEREPLY, _mode_handler, manager);
564 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_NAMEREPLY, _numeric_namereply_handler, manager);
565 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_NAMEREPLY_END, _numeric_namereply_end_handler, manager);
566 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_TOPIC, _numeric_topic_handler, manager);
567 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_NUMERIC_TOPIC_STAMP, _numeric_topic_stamp_handler, manager);
568
569 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_INVITE, _invite_handler, manager);
570 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_JOIN, _join_handler, manager);
571 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_KICK, _kick_handler, manager);
572 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_MODE_CHANNEL, _mode_handler, manager);
573 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_NICK, _nick_handler, manager);
574 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_NOTICE_CHANNEL, _notice_privmsg_handler, manager);
575 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_PRIVMSG_CHANNEL, _notice_privmsg_handler, manager);
576 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_PART, _part_handler, manager);
577 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_QUIT, _quit_handler, manager);
578 idle_parser_add_handler(priv->conn->parser, IDLE_PARSER_PREFIXCMD_TOPIC, _topic_handler, manager);
579 }
580
581 struct _ForeachHelperData {
582 TpExportableChannelFunc func;
583 gpointer user_data;
584 };
585
586 static void _foreach_helper(gpointer key, gpointer value, gpointer user_data) {
587 struct _ForeachHelperData *data = user_data;
588 data->func(value, data->user_data);
589 }
590
591 static void _muc_manager_foreach_channel(TpChannelManager *iface, TpExportableChannelFunc func, gpointer user_data) {
592 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(iface);
593 struct _ForeachHelperData data = {func, user_data};
594
595 if (!priv->channels) {
596 IDLE_DEBUG("Channels hash table missing, ignoring...");
597 return;
598 }
599
600 g_hash_table_foreach(priv->channels, _foreach_helper, &data);
601 }
602
603 static void
604 _muc_manager_foreach_channel_class (TpChannelManager *manager,
605 TpChannelManagerChannelClassFunc func,
606 gpointer user_data)
607 {
608 GHashTable *table = g_hash_table_new_full (g_str_hash, g_str_equal,
609 NULL, (GDestroyNotify) tp_g_value_slice_free);
610 GValue *channel_type_value, *handle_type_value;
611
612 channel_type_value = tp_g_value_slice_new (G_TYPE_STRING);
613 g_value_set_static_string (channel_type_value, TP_IFACE_CHANNEL_TYPE_TEXT);
614 g_hash_table_insert (table, TP_IFACE_CHANNEL ".ChannelType",
615 channel_type_value);
616
617 handle_type_value = tp_g_value_slice_new (G_TYPE_UINT);
618 g_value_set_uint (handle_type_value, TP_HANDLE_TYPE_ROOM);
619 g_hash_table_insert (table, TP_IFACE_CHANNEL ".TargetHandleType",
620 handle_type_value);
621
622 func (manager, table, muc_channel_allowed_properties,
623 user_data);
624
625 g_hash_table_destroy (table);
626 }
627
628
629 static IdleMUCChannel *_muc_manager_new_channel(IdleMUCManager *manager, TpHandle handle, TpHandle initiator, gboolean requested)
630 {
631 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(manager);
632 IdleMUCChannel *chan;
633 gchar *object_path;
634
635 g_assert(g_hash_table_lookup(priv->channels, GUINT_TO_POINTER(handle)) == NULL);
636
637 object_path = g_strdup_printf("%s/MucChannel%u", priv->conn->parent.object_path, handle);
638 chan = idle_muc_channel_new(priv->conn, object_path, handle, initiator, requested);
639
640 g_signal_connect(chan, "closed", (GCallback) _channel_closed_cb, manager);
641 g_signal_connect(chan, "join-ready", (GCallback) _channel_join_ready_cb, manager);
642
643 g_hash_table_insert(priv->channels, GUINT_TO_POINTER(handle), chan);
644
645 g_free(object_path);
646
647 return chan;
648 }
649
650 static void associate_request(IdleMUCManager *manager, IdleMUCChannel *chan, gpointer request) {
651 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(manager);
652 GSList *reqs = g_hash_table_lookup(priv->queued_requests, chan);
653
654 g_hash_table_steal(priv->queued_requests, chan);
655 g_hash_table_insert(priv->queued_requests, chan, g_slist_prepend(reqs, request));
656 }
657
658 static GSList *take_request_tokens(IdleMUCManager *manager, IdleMUCChannel *chan) {
659 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(manager);
660 GSList *reqs = g_hash_table_lookup(priv->queued_requests, chan);
661
662 g_hash_table_steal(priv->queued_requests, chan);
663
664 return g_slist_reverse(reqs);
665 }
666
667 static void _channel_closed_cb(IdleMUCChannel *chan, gpointer user_data) {
668 IdleMUCManager *manager = IDLE_MUC_MANAGER(user_data);
669 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(manager);
670 GSList *reqs = take_request_tokens(user_data, chan);
671
672 /* If there are any tokens for this channel when it closes, the request
673 * didn't finish before we killed the channel.
674 */
675 for (GSList *l = reqs; l != NULL; l = l->next) {
676 tp_channel_manager_emit_request_failed(manager, l->data, TP_ERRORS,
677 TP_ERROR_DISCONNECTED,
678 "Unable to complete this channel request, we're disconnecting!");
679 }
680
681 g_slist_free(reqs);
682
683 if (priv->channels) {
684 TpHandle handle;
685 g_object_get(chan, "handle", &handle, NULL);
686 g_hash_table_remove(priv->channels, GUINT_TO_POINTER(handle));
687 }
688 }
689
690 static void _channel_join_ready_cb(IdleMUCChannel *chan, guint err, gpointer user_data) {
691 TpChannelManager *manager = TP_CHANNEL_MANAGER(user_data);
692 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE(user_data);
693 GSList *reqs = take_request_tokens(user_data, chan);
694
695 if (err == MUC_CHANNEL_JOIN_ERROR_NONE) {
696 tp_channel_manager_emit_new_channel(manager, (TpExportableChannel *) chan, reqs);
697 goto out;
698 }
699
700 gint err_code = 0;
701 const gchar* err_msg = NULL;
702 TpHandle handle;
703
704 g_object_get(chan, "handle", &handle, NULL);
705
706 switch (err) {
707 case MUC_CHANNEL_JOIN_ERROR_BANNED:
708 err_code = TP_ERROR_CHANNEL_BANNED;
709 err_msg = "You are banned from the channel.";
710 break;
711
712 case MUC_CHANNEL_JOIN_ERROR_FULL:
713 err_code = TP_ERROR_CHANNEL_FULL;
714 err_msg = "The channel is full.";
715 break;
716
717 case MUC_CHANNEL_JOIN_ERROR_INVITE_ONLY:
718 err_code = TP_ERROR_CHANNEL_INVITE_ONLY;
719 err_msg = "The channel is invite only.";
720 break;
721
722 default:
723 g_assert_not_reached();
724 break;
725 }
726
727 for (GSList *l = reqs; reqs != NULL; reqs = reqs->next) {
728 tp_channel_manager_emit_request_failed(manager, l->data, TP_ERRORS, err_code, err_msg);
729 }
730
731 if (priv->channels)
732 g_hash_table_remove(priv->channels, GUINT_TO_POINTER(handle));
733
734 out:
735 g_slist_free (reqs);
736 }
737
738
739 static gboolean
740 _muc_manager_create_channel (TpChannelManager *manager,
741 gpointer request_token,
742 GHashTable *request_properties)
743 {
744 IdleMUCManager *self = IDLE_MUC_MANAGER (manager);
745
746 return _muc_manager_request (self, request_token, request_properties,
747 TRUE);
748 }
749
750
751 static gboolean
752 _muc_manager_request_channel (TpChannelManager *manager,
753 gpointer request_token,
754 GHashTable *request_properties)
755 {
756 IdleMUCManager *self = IDLE_MUC_MANAGER (manager);
757
758 return _muc_manager_request (self, request_token, request_properties,
759 FALSE);
760 }
761
762
763 static gboolean
764 _muc_manager_ensure_channel (TpChannelManager *manager,
765 gpointer request_token,
766 GHashTable *request_properties)
767 {
768 IdleMUCManager *self = IDLE_MUC_MANAGER (manager);
769
770 return _muc_manager_request (self, request_token, request_properties,
771 FALSE);
772 }
773
774 static gboolean
775 _muc_manager_request (IdleMUCManager *self,
776 gpointer request_token,
777 GHashTable *request_properties,
778 gboolean require_new)
779 {
780 IdleMUCManagerPrivate *priv = IDLE_MUC_MANAGER_GET_PRIVATE (self);
781 TpBaseConnection *base_conn = (TpBaseConnection *) priv->conn;
782 TpHandleRepoIface *room_repo = tp_base_connection_get_handles (base_conn,
783 TP_HANDLE_TYPE_ROOM);
784 GError *error = NULL;
785 TpHandle handle;
786 const gchar *channel_type;
787 IdleMUCChannel *channel;
788
789 if (tp_asv_get_uint32 (request_properties,
790 TP_IFACE_CHANNEL ".TargetHandleType", NULL) != TP_HANDLE_TYPE_ROOM)
791 return FALSE;
792
793 handle = tp_asv_get_uint32 (request_properties,
794 TP_IFACE_CHANNEL ".TargetHandle", NULL);
795
796 if (!tp_handle_is_valid (room_repo, handle, &error))
797 goto error;
798
799 channel_type = tp_asv_get_string (request_properties,
800 TP_IFACE_CHANNEL ".ChannelType");
801
802 if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TEXT))
803 {
804 if (tp_channel_manager_asv_has_unknown_properties (request_properties,
805 muc_channel_fixed_properties, muc_channel_allowed_properties,
806 &error))
807 goto error;
808
809 channel = g_hash_table_lookup (priv->channels,
810 GINT_TO_POINTER (handle));
811
812 if (channel != NULL)
813 {
814 if (require_new)
815 {
816 g_set_error (&error, TP_ERRORS, TP_ERROR_NOT_AVAILABLE,
817 "That channel has already been created (or requested)");
818 goto error;
819 }
820 else if (idle_muc_channel_is_ready (channel))
821 {
822 tp_channel_manager_emit_request_already_satisfied (self,
823 request_token,
824 TP_EXPORTABLE_CHANNEL (channel));
825 return TRUE;
826 }
827 }
828 else
829 {
830 channel = _muc_manager_new_channel (self, handle, base_conn->self_handle, TRUE);
831 idle_muc_channel_join_attempt(channel);
832 }
833
834 associate_request(self, channel, request_token);
835
836 return TRUE;
837 }
838 else
839 {
840 return FALSE;
841 }
842
843 error:
844 tp_channel_manager_emit_request_failed (self, request_token,
845 error->domain, error->code, error->message);
846 g_error_free (error);
847 return TRUE;
848 }
849
850
851 static void _muc_manager_iface_init(gpointer g_iface, gpointer iface_data) {
852 TpChannelManagerIface *iface = g_iface;
853
854 iface->foreach_channel = _muc_manager_foreach_channel;
855 iface->foreach_channel_class = _muc_manager_foreach_channel_class;
856 iface->request_channel = _muc_manager_request_channel;
857 iface->create_channel = _muc_manager_create_channel;
858 iface->ensure_channel = _muc_manager_ensure_channel;
859 }
860
0 /*
1 * This file is part of telepathy-idle
2 *
3 * Copyright (C) 2006-2007 Collabora Limited
4 * Copyright (C) 2006-2007 Nokia Corporation
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * version 2.1 as published by the Free Software Foundation.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #ifndef __IDLE_MUC_MANAGER_H__
21 #define __IDLE_MUC_MANAGER_H__
22
23 #include <glib-object.h>
24
25 G_BEGIN_DECLS
26
27 typedef struct _IdleMUCManager IdleMUCManager;
28 typedef struct _IdleMUCManagerClass IdleMUCManagerClass;
29
30 struct _IdleMUCManagerClass {
31 GObjectClass parent_class;
32 };
33
34 struct _IdleMUCManager {
35 GObject parent;
36 };
37
38 GType idle_muc_manager_get_type();
39
40 #define IDLE_TYPE_MUC_MANAGER (idle_muc_manager_get_type())
41 #define IDLE_MUC_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), IDLE_TYPE_MUC_MANAGER, IdleMUCManager))
42 #define IDLE_MUC_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), IDLE_TYPE_MUC_MANAGER, IdleMUCManagerClass))
43 #define IDLE_IS_MUC_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), IDLE_TYPE_MUC_MANAGER))
44 #define IDLE_IS_MUC_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), IDLE_TYPE_MUC_MANAGER))
45 #define IDLE_MUC_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), IDLE_TYPE_MUC_MANAGER, IdleMUCManagerClass))
46
47 G_END_DECLS
48
49 #endif /* #ifndef __IDLE_MUC_MANAGER_H__ */
50
1717 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1818 */
1919
20 /* For strnlen(), which is a GNU extension. */
21 #define _GNU_SOURCE
22
2023 #include "idle-parser.h"
2124
2225 #include "idle-connection.h"
2528 #include <glib.h>
2629 #include <glib-object.h>
2730
28 #define __USE_GNU
2931 #include <string.h>
30 #undef __USE_GNU
3132 #include <stdio.h>
3233
3334 #define IDLE_DEBUG_FLAG IDLE_DEBUG_PARSER
240241 }
241242
242243 void idle_parser_add_handler(IdleParser *parser, IdleParserMessageCode code, IdleParserMessageHandler handler, gpointer user_data) {
243 return idle_parser_add_handler_with_priority(parser, code, handler, user_data, IDLE_PARSER_HANDLER_PRIORITY_DEFAULT);
244 idle_parser_add_handler_with_priority(parser, code, handler, user_data, IDLE_PARSER_HANDLER_PRIORITY_DEFAULT);
245 return;
244246 }
245247
246248 static gint _message_handler_closure_priority_compare(gconstpointer a, gconstpointer b) {
628628 return FALSE;
629629
630630 case G_IO_STATUS_NORMAL:
631 IDLE_DEBUG("sent \"%s\"", cmd);
631 IDLE_DEBUG("sent \"%s\" to IOChannel %p", cmd, priv->io_chan);
632632
633633 return TRUE;
634634
349349 int status;
350350 int opt;
351351
352 if (!success)
353 return ssl_conn_change_state(conn, SERVER_CONNECTION_STATE_NOT_CONNECTED, SERVER_CONNECTION_STATE_REASON_ERROR);
352 if (!success) {
353 ssl_conn_change_state(conn, SERVER_CONNECTION_STATE_NOT_CONNECTED, SERVER_CONNECTION_STATE_REASON_ERROR);
354 return;
355 }
354356
355357 priv->io_chan = priv->connect_data->io_chan;
356358 priv->connect_data->io_chan = NULL;
376378
377379 if (!ctx) {
378380 IDLE_DEBUG("failed to get SSL context object");
379 return ssl_async_connecting_finished_cb(conn, FALSE);
381 ssl_async_connecting_finished_cb(conn, FALSE);
382 return;
380383 }
381384
382385 priv->ssl = SSL_new(ctx);
383386
384387 if (!priv->ssl) {
385388 IDLE_DEBUG("failed to create SSL object");
386 return ssl_async_connecting_finished_cb(conn, FALSE);
389 ssl_async_connecting_finished_cb(conn, FALSE);
390 return;
387391 }
388392
389393 status = SSL_set_fd(priv->ssl, fd);
390394
391395 if (!status) {
392396 IDLE_DEBUG("failed to set SSL socket");
393 return ssl_async_connecting_finished_cb(conn, FALSE);
397 ssl_async_connecting_finished_cb(conn, FALSE);
398 return;
394399 }
395400
396401 status = SSL_connect(priv->ssl);
397402
398403 if (status <= 0) {
399404 IDLE_DEBUG("SSL_connect failed with status %i (error %i)", status, SSL_get_error(priv->ssl, status));
400 return ssl_async_connecting_finished_cb(conn, FALSE);
405 ssl_async_connecting_finished_cb(conn, FALSE);
406 return;
401407 }
402408
403409 cert = SSL_get_peer_certificate(priv->ssl);
404410
405411 if (!cert) {
406412 IDLE_DEBUG("failed to get SSL peer certificate");
407 return ssl_async_connecting_finished_cb(conn, FALSE);
413 ssl_async_connecting_finished_cb(conn, FALSE);
414 return;
408415 }
409416
410417 /* TODO sometime in the future implement certificate verification */
458465
459466 if (fd == -1) {
460467 IDLE_DEBUG("failed: %s", g_strerror(errno));
461 return data->finished_cb(data->conn, FALSE);
468 data->finished_cb(data->conn, FALSE);
469 return;
462470 }
463471
464472 rc = fcntl(fd, F_SETFL, O_NONBLOCK);
466474 if (rc != 0) {
467475 IDLE_DEBUG("failed to set socket to non-blocking mode: %s", g_strerror(errno));
468476 close(fd);
469 return data->finished_cb(data->conn, FALSE);
477 data->finished_cb(data->conn, FALSE);
478 return;
470479 }
471480
472481 rc = connect(fd, data->cur->ai_addr, data->cur->ai_addrlen);
474483 if ((errno != EINPROGRESS) && (rc == -1)) {
475484 IDLE_DEBUG("connect() failed: %s", g_strerror(errno));
476485 close(fd);
477 return data->finished_cb(data->conn, FALSE);
486 data->finished_cb(data->conn, FALSE);
487 return;
478488 }
479489
480490 io_chan = g_io_channel_unix_new(fd);
501511 data->cur = results;
502512 data->finished_cb = ssl_async_connecting_finished_cb;
503513
504 return ssl_do_connect(data);
514 ssl_do_connect(data);
505515 }
506516
507517 static gboolean iface_ssl_connect_impl(IdleServerConnectionIface *iface, GError **error) {
5050 return TRUE;
5151 }
5252
53 GStrv idle_text_encode_and_split(TpChannelTextMessageType type, const gchar *recipient, const gchar *text, gsize max_msg_len, GError **error) {
53 /**
54 * idle_text_encode_and_split:
55 * @type: The type of message as per Telepathy
56 * @recipient: The target user or channel
57 * @text: The message body
58 * @max_msg_len: The maximum length of the message on this server (see also
59 * idle_connection_get_max_message_length())
60 * @bodies_out: Location at which to return the human-readable bodies of each
61 * part
62 * @error: Location at which to store an error
63 *
64 * Splits @text as necessary to be able to send it over IRC. IRC messages
65 * cannot contain newlines, and have a (server-determined) maximum length.
66 *
67 * Returns: A list of IRC protocol commands representing @text as best possible.
68 */
69 GStrv
70 idle_text_encode_and_split(TpChannelTextMessageType type,
71 const gchar *recipient,
72 const gchar *text,
73 gsize max_msg_len,
74 GStrv *bodies_out,
75 GError **error) {
5476 GPtrArray *messages;
77 GPtrArray *bodies;
5578 const gchar *remaining_text = text;
5679 const gchar * const text_end = text + strlen(text);
5780 gchar *header;
7093 header = g_strdup_printf("NOTICE %s :", recipient);
7194 break;
7295 default:
73 IDLE_DEBUG("invalid message type %u", type);
74 g_set_error(error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT, "invalid message type %u", type);
96 IDLE_DEBUG("unsupported message type %u", type);
97 g_set_error(error, TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED, "unsupported message type %u", type);
7598 return NULL;
7699 }
77100
78101 messages = g_ptr_array_new();
102 bodies = g_ptr_array_new();
79103 max_bytes = max_msg_len - (strlen(header) + strlen(footer));
80104
81105 while (remaining_text < text_end) {
82106 char *newline = strchr(remaining_text, '\n');
83107 const char *end_iter;
84108 char *message;
109 int len;
85110
86111 if (newline != NULL && ((unsigned) (newline - remaining_text)) < max_bytes) {
87112 /* String up to the next newline is short enough. */
97122 end_iter = text_end;
98123 }
99124
100 message = g_strdup_printf("%s%.*s%s", header, (int)(end_iter - remaining_text), remaining_text, footer);
125 len = (int)(end_iter - remaining_text);
126 message = g_strdup_printf("%s%.*s%s", header, len, remaining_text, footer);
101127 g_ptr_array_add(messages, message);
128 g_ptr_array_add(bodies, g_strndup(remaining_text, len));
102129
103130 remaining_text = end_iter;
104131 if (*end_iter == '\n') {
110137 g_assert (remaining_text == text_end);
111138
112139 g_ptr_array_add(messages, NULL);
140 g_ptr_array_add(bodies, NULL);
141
142 if (bodies_out != NULL) {
143 *bodies_out = (GStrv) g_ptr_array_free(bodies, FALSE);
144 } else {
145 g_ptr_array_free(bodies, TRUE);
146 }
113147
114148 g_free(header);
115149 return (GStrv) g_ptr_array_free(messages, FALSE);
116150 }
117151
118152 void idle_text_send(GObject *obj, guint type, const gchar *recipient, const gchar *text, IdleConnection *conn, DBusGMethodInvocation *context) {
119 time_t timestamp;
153 time_t timestamp = time(NULL);
120154 GError *error = NULL;
121155 GStrv messages;
156 GStrv bodies;
122157
123158 if ((recipient == NULL) || (strlen(recipient) == 0)) {
124159 IDLE_DEBUG("invalid recipient");
131166 }
132167
133168 gsize msg_len = idle_connection_get_max_message_length(conn);
134 messages = idle_text_encode_and_split(type, recipient, text, msg_len, &error);
169 messages = idle_text_encode_and_split(type, recipient, text, msg_len, &bodies, &error);
135170 if (messages == NULL) {
136171 dbus_g_method_return_error(context, error);
137172 g_error_free(error);
138173 return;
139174 }
140175
141 for(GStrv m = messages; *m != NULL; m++) {
142 idle_connection_send(conn, *m);
176 for(guint i = 0; messages[i] != NULL; i++) {
177 g_assert(bodies[i] != NULL);
178 idle_connection_send(conn, messages[i]);
179
180 tp_svc_channel_type_text_emit_sent(obj, timestamp, type, bodies[i]);
143181 }
144182
145183 g_strfreev(messages);
146184
147 timestamp = time(NULL);
148 tp_svc_channel_type_text_emit_sent(obj, timestamp, type, text);
149
150185 tp_svc_channel_type_text_return_from_send(context);
151186 }
152187
3030 G_BEGIN_DECLS
3131
3232 gboolean idle_text_decode(const gchar *text, TpChannelTextMessageType *type, gchar **body);
33 GStrv idle_text_encode_and_split(TpChannelTextMessageType type, const gchar *recipient, const gchar *text, gsize max_msg_len, GError **error);
33 GStrv idle_text_encode_and_split(TpChannelTextMessageType type, const gchar *recipient, const gchar *text, gsize max_msg_len, GStrv *bodies_out, GError **error);
3434 void idle_text_send(GObject *obj, guint type, const gchar *recipient, const gchar *text, IdleConnection *conn, DBusGMethodInvocation *ctx);
3535
3636 G_END_DECLS
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1415 @SET_MAKE@
1516 VPATH = @srcdir@
1617 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
1719 pkglibdir = $(libdir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
1921 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2022 install_sh_DATA = $(install_sh) -c -m 644
2123 install_sh_PROGRAM = $(install_sh) -c
3840 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3941 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
4042 $(top_srcdir)/m4/as-compiler-flag.m4 \
41 $(top_srcdir)/configure.ac
43 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
44 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
45 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
4246 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4347 $(ACLOCAL_M4)
4448 mkinstalldirs = $(install_sh) -d
4549 CONFIG_HEADER = $(top_builddir)/config.h
4650 CONFIG_CLEAN_FILES =
51 CONFIG_CLEAN_VPATH_FILES =
4752 test_ctcp_kill_blingbling_SOURCES = test-ctcp-kill-blingbling.c
4853 test_ctcp_kill_blingbling_OBJECTS = \
4954 test-ctcp-kill-blingbling.$(OBJEXT)
5156 test_ctcp_kill_blingbling_DEPENDENCIES = \
5257 $(top_builddir)/src/libidle-convenience.la \
5358 $(am__DEPENDENCIES_1)
59 AM_V_lt = $(am__v_lt_$(V))
60 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
61 am__v_lt_0 = --silent
5462 test_ctcp_tokenize_SOURCES = test-ctcp-tokenize.c
5563 test_ctcp_tokenize_OBJECTS = test-ctcp-tokenize.$(OBJEXT)
5664 test_ctcp_tokenize_DEPENDENCIES = \
6573 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
6674 depcomp = $(SHELL) $(top_srcdir)/depcomp
6775 am__depfiles_maybe = depfiles
76 am__mv = mv -f
6877 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
6978 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
72 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
79 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
80 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
81 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
82 $(AM_CFLAGS) $(CFLAGS)
83 AM_V_CC = $(am__v_CC_$(V))
84 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
85 am__v_CC_0 = @echo " CC " $@;
86 AM_V_at = $(am__v_at_$(V))
87 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
88 am__v_at_0 = @
7389 CCLD = $(CC)
74 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
75 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
76 $(LDFLAGS) -o $@
90 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
91 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
92 $(AM_LDFLAGS) $(LDFLAGS) -o $@
93 AM_V_CCLD = $(am__v_CCLD_$(V))
94 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
95 am__v_CCLD_0 = @echo " CCLD " $@;
96 AM_V_GEN = $(am__v_GEN_$(V))
97 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
98 am__v_GEN_0 = @echo " GEN " $@;
7799 SOURCES = test-ctcp-kill-blingbling.c test-ctcp-tokenize.c \
78100 test-text-encode-and-split.c
79101 DIST_SOURCES = test-ctcp-kill-blingbling.c test-ctcp-tokenize.c \
87109 ps-recursive uninstall-recursive
88110 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
89111 distclean-recursive maintainer-clean-recursive
112 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
113 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
114 distdir
90115 ETAGS = etags
91116 CTAGS = ctags
117 am__tty_colors = \
118 red=; grn=; lgn=; blu=; std=
92119 DIST_SUBDIRS = $(SUBDIRS)
93120 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
121 am__relativize = \
122 dir0=`pwd`; \
123 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
124 sed_rest='s,^[^/]*/*,,'; \
125 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
126 sed_butlast='s,/*[^/]*$$,,'; \
127 while test -n "$$dir1"; do \
128 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
129 if test "$$first" != "."; then \
130 if test "$$first" = ".."; then \
131 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
132 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
133 else \
134 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
135 if test "$$first2" = "$$first"; then \
136 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
137 else \
138 dir2="../$$dir2"; \
139 fi; \
140 dir0="$$dir0"/"$$first"; \
141 fi; \
142 fi; \
143 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
144 done; \
145 reldir="$$dir2"
94146 ACLOCAL = @ACLOCAL@
95147 AMTAR = @AMTAR@
148 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
96149 AR = @AR@
97150 AUTOCONF = @AUTOCONF@
98151 AUTOHEADER = @AUTOHEADER@
106159 CFLAGS = @CFLAGS@
107160 CPP = @CPP@
108161 CPPFLAGS = @CPPFLAGS@
109 CXX = @CXX@
110 CXXCPP = @CXXCPP@
111 CXXDEPMODE = @CXXDEPMODE@
112 CXXFLAGS = @CXXFLAGS@
113162 CYGPATH_W = @CYGPATH_W@
114163 DATADIR = @DATADIR@
115164 DBUS_CFLAGS = @DBUS_CFLAGS@
118167 DEFS = @DEFS@
119168 DEPDIR = @DEPDIR@
120169 DSYMUTIL = @DSYMUTIL@
121 ECHO = @ECHO@
170 DUMPBIN = @DUMPBIN@
122171 ECHO_C = @ECHO_C@
123172 ECHO_N = @ECHO_N@
124173 ECHO_T = @ECHO_T@
125174 EGREP = @EGREP@
126175 ERROR_CFLAGS = @ERROR_CFLAGS@
127176 EXEEXT = @EXEEXT@
128 F77 = @F77@
129 FFLAGS = @FFLAGS@
177 FGREP = @FGREP@
130178 GLIB_CFLAGS = @GLIB_CFLAGS@
131179 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
132180 GLIB_LIBS = @GLIB_LIBS@
136184 INSTALL_PROGRAM = @INSTALL_PROGRAM@
137185 INSTALL_SCRIPT = @INSTALL_SCRIPT@
138186 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
187 LD = @LD@
139188 LDFLAGS = @LDFLAGS@
140189 LIBOBJS = @LIBOBJS@
141190 LIBS = @LIBS@
142191 LIBTOOL = @LIBTOOL@
192 LIPO = @LIPO@
143193 LN_S = @LN_S@
144194 LTLIBOBJS = @LTLIBOBJS@
145195 MAKEINFO = @MAKEINFO@
146196 MKDIR_P = @MKDIR_P@
197 NM = @NM@
147198 NMEDIT = @NMEDIT@
199 OBJDUMP = @OBJDUMP@
148200 OBJEXT = @OBJEXT@
149201 OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
150202 OPENSSL_LIBS = @OPENSSL_LIBS@
203 OTOOL = @OTOOL@
204 OTOOL64 = @OTOOL64@
151205 PACKAGE = @PACKAGE@
152206 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
153207 PACKAGE_NAME = @PACKAGE_NAME@
154208 PACKAGE_STRING = @PACKAGE_STRING@
155209 PACKAGE_TARNAME = @PACKAGE_TARNAME@
210 PACKAGE_URL = @PACKAGE_URL@
156211 PACKAGE_VERSION = @PACKAGE_VERSION@
157212 PATH_SEPARATOR = @PATH_SEPARATOR@
158213 PKG_CONFIG = @PKG_CONFIG@
172227 abs_top_builddir = @abs_top_builddir@
173228 abs_top_srcdir = @abs_top_srcdir@
174229 ac_ct_CC = @ac_ct_CC@
175 ac_ct_CXX = @ac_ct_CXX@
176 ac_ct_F77 = @ac_ct_F77@
230 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
177231 am__include = @am__include@
178232 am__leading_dot = @am__leading_dot@
179233 am__quote = @am__quote@
204258 libexecdir = @libexecdir@
205259 localedir = @localedir@
206260 localstatedir = @localstatedir@
261 lt_ECHO = @lt_ECHO@
207262 mandir = @mandir@
208263 mkdir_p = @mkdir_p@
209264 oldincludedir = @oldincludedir@
216271 srcdir = @srcdir@
217272 sysconfdir = @sysconfdir@
218273 target_alias = @target_alias@
274 top_build_prefix = @top_build_prefix@
219275 top_builddir = @top_builddir@
220276 top_srcdir = @top_srcdir@
221277 test_ctcp_tokenize_LDADD = \
255311 @for dep in $?; do \
256312 case '$(am__configure_deps)' in \
257313 *$$dep*) \
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
259 && exit 0; \
314 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
315 && { if test -f $@; then exit 0; else break; fi; }; \
260316 exit 1;; \
261317 esac; \
262318 done; \
263 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
264 cd $(top_srcdir) && \
265 $(AUTOMAKE) --gnu tests/Makefile
319 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
320 $(am__cd) $(top_srcdir) && \
321 $(AUTOMAKE) --gnu tests/Makefile
266322 .PRECIOUS: Makefile
267323 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
268324 @case '$?' in \
280336 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
281337 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
282338 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
339 $(am__aclocal_m4_deps):
283340
284341 clean-checkPROGRAMS:
285 @list='$(check_PROGRAMS)'; for p in $$list; do \
286 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
287 echo " rm -f $$p $$f"; \
288 rm -f $$p $$f ; \
289 done
342 @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
343 echo " rm -f" $$list; \
344 rm -f $$list || exit $$?; \
345 test -n "$(EXEEXT)" || exit 0; \
346 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
347 echo " rm -f" $$list; \
348 rm -f $$list
290349 test-ctcp-kill-blingbling$(EXEEXT): $(test_ctcp_kill_blingbling_OBJECTS) $(test_ctcp_kill_blingbling_DEPENDENCIES)
291350 @rm -f test-ctcp-kill-blingbling$(EXEEXT)
292 $(LINK) $(test_ctcp_kill_blingbling_OBJECTS) $(test_ctcp_kill_blingbling_LDADD) $(LIBS)
351 $(AM_V_CCLD)$(LINK) $(test_ctcp_kill_blingbling_OBJECTS) $(test_ctcp_kill_blingbling_LDADD) $(LIBS)
293352 test-ctcp-tokenize$(EXEEXT): $(test_ctcp_tokenize_OBJECTS) $(test_ctcp_tokenize_DEPENDENCIES)
294353 @rm -f test-ctcp-tokenize$(EXEEXT)
295 $(LINK) $(test_ctcp_tokenize_OBJECTS) $(test_ctcp_tokenize_LDADD) $(LIBS)
354 $(AM_V_CCLD)$(LINK) $(test_ctcp_tokenize_OBJECTS) $(test_ctcp_tokenize_LDADD) $(LIBS)
296355 test-text-encode-and-split$(EXEEXT): $(test_text_encode_and_split_OBJECTS) $(test_text_encode_and_split_DEPENDENCIES)
297356 @rm -f test-text-encode-and-split$(EXEEXT)
298 $(LINK) $(test_text_encode_and_split_OBJECTS) $(test_text_encode_and_split_LDADD) $(LIBS)
357 $(AM_V_CCLD)$(LINK) $(test_text_encode_and_split_OBJECTS) $(test_text_encode_and_split_LDADD) $(LIBS)
299358
300359 mostlyclean-compile:
301360 -rm -f *.$(OBJEXT)
308367 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-text-encode-and-split.Po@am__quote@
309368
310369 .c.o:
311 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
312 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
370 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
371 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
372 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
313373 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
314374 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
315375 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
316376
317377 .c.obj:
318 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
319 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
378 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
379 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
380 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
320381 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
321382 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322383 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
323384
324385 .c.lo:
325 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
386 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
387 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
388 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
327389 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
328390 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329391 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
358420 else \
359421 local_target="$$target"; \
360422 fi; \
361 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
423 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
362424 || eval $$failcom; \
363425 done; \
364426 if test "$$dot_seen" = "no"; then \
392454 else \
393455 local_target="$$target"; \
394456 fi; \
395 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
457 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
396458 || eval $$failcom; \
397459 done && test -z "$$fail"
398460 tags-recursive:
399461 list='$(SUBDIRS)'; for subdir in $$list; do \
400 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
462 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
401463 done
402464 ctags-recursive:
403465 list='$(SUBDIRS)'; for subdir in $$list; do \
404 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
466 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
405467 done
406468
407469 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
409471 unique=`for i in $$list; do \
410472 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
411473 done | \
412 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
474 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
413475 END { if (nonempty) { for (i in files) print i; }; }'`; \
414476 mkid -fID $$unique
415477 tags: TAGS
416478
417479 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
418480 $(TAGS_FILES) $(LISP)
419 tags=; \
481 set x; \
420482 here=`pwd`; \
421483 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
422484 include_option=--etags-include; \
428490 list='$(SUBDIRS)'; for subdir in $$list; do \
429491 if test "$$subdir" = .; then :; else \
430492 test ! -f $$subdir/TAGS || \
431 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
493 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
432494 fi; \
433495 done; \
434496 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
437499 done | \
438500 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
439501 END { if (nonempty) { for (i in files) print i; }; }'`; \
440 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
502 shift; \
503 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
441504 test -n "$$unique" || unique=$$empty_fix; \
442 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
443 $$tags $$unique; \
505 if test $$# -gt 0; then \
506 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
507 "$$@" $$unique; \
508 else \
509 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
510 $$unique; \
511 fi; \
444512 fi
445513 ctags: CTAGS
446514 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
447515 $(TAGS_FILES) $(LISP)
448 tags=; \
449516 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
450517 unique=`for i in $$list; do \
451518 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
452519 done | \
453520 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
454521 END { if (nonempty) { for (i in files) print i; }; }'`; \
455 test -z "$(CTAGS_ARGS)$$tags$$unique" \
522 test -z "$(CTAGS_ARGS)$$unique" \
456523 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
457 $$tags $$unique
524 $$unique
458525
459526 GTAGS:
460527 here=`$(am__cd) $(top_builddir) && pwd` \
461 && cd $(top_srcdir) \
462 && gtags -i $(GTAGS_ARGS) $$here
528 && $(am__cd) $(top_srcdir) \
529 && gtags -i $(GTAGS_ARGS) "$$here"
463530
464531 distclean-tags:
465532 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
466533
467534 check-TESTS: $(TESTS)
468 @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
535 @failed=0; all=0; xfail=0; xpass=0; skip=0; \
469536 srcdir=$(srcdir); export srcdir; \
470537 list=' $(TESTS) '; \
538 $(am__tty_colors); \
471539 if test -n "$$list"; then \
472540 for tst in $$list; do \
473541 if test -f ./$$tst; then dir=./; \
476544 if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
477545 all=`expr $$all + 1`; \
478546 case " $(XFAIL_TESTS) " in \
479 *$$ws$$tst$$ws*) \
547 *[\ \ ]$$tst[\ \ ]*) \
480548 xpass=`expr $$xpass + 1`; \
481549 failed=`expr $$failed + 1`; \
482 echo "XPASS: $$tst"; \
550 col=$$red; res=XPASS; \
483551 ;; \
484552 *) \
485 echo "PASS: $$tst"; \
553 col=$$grn; res=PASS; \
486554 ;; \
487555 esac; \
488556 elif test $$? -ne 77; then \
489557 all=`expr $$all + 1`; \
490558 case " $(XFAIL_TESTS) " in \
491 *$$ws$$tst$$ws*) \
559 *[\ \ ]$$tst[\ \ ]*) \
492560 xfail=`expr $$xfail + 1`; \
493 echo "XFAIL: $$tst"; \
561 col=$$lgn; res=XFAIL; \
494562 ;; \
495563 *) \
496564 failed=`expr $$failed + 1`; \
497 echo "FAIL: $$tst"; \
565 col=$$red; res=FAIL; \
498566 ;; \
499567 esac; \
500568 else \
501569 skip=`expr $$skip + 1`; \
502 echo "SKIP: $$tst"; \
570 col=$$blu; res=SKIP; \
503571 fi; \
572 echo "$${col}$$res$${std}: $$tst"; \
504573 done; \
574 if test "$$all" -eq 1; then \
575 tests="test"; \
576 All=""; \
577 else \
578 tests="tests"; \
579 All="All "; \
580 fi; \
505581 if test "$$failed" -eq 0; then \
506582 if test "$$xfail" -eq 0; then \
507 banner="All $$all tests passed"; \
583 banner="$$All$$all $$tests passed"; \
508584 else \
509 banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
585 if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
586 banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
510587 fi; \
511588 else \
512589 if test "$$xpass" -eq 0; then \
513 banner="$$failed of $$all tests failed"; \
590 banner="$$failed of $$all $$tests failed"; \
514591 else \
515 banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
592 if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
593 banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
516594 fi; \
517595 fi; \
518596 dashes="$$banner"; \
519597 skipped=""; \
520598 if test "$$skip" -ne 0; then \
521 skipped="($$skip tests were not run)"; \
599 if test "$$skip" -eq 1; then \
600 skipped="($$skip test was not run)"; \
601 else \
602 skipped="($$skip tests were not run)"; \
603 fi; \
522604 test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
523605 dashes="$$skipped"; \
524606 fi; \
529611 dashes="$$report"; \
530612 fi; \
531613 dashes=`echo "$$dashes" | sed s/./=/g`; \
532 echo "$$dashes"; \
614 if test "$$failed" -eq 0; then \
615 echo "$$grn$$dashes"; \
616 else \
617 echo "$$red$$dashes"; \
618 fi; \
533619 echo "$$banner"; \
534620 test -z "$$skipped" || echo "$$skipped"; \
535621 test -z "$$report" || echo "$$report"; \
536 echo "$$dashes"; \
622 echo "$$dashes$$std"; \
537623 test "$$failed" -eq 0; \
538624 else :; fi
539625
553639 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
554640 if test -d $$d/$$file; then \
555641 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
642 if test -d "$(distdir)/$$file"; then \
643 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
644 fi; \
556645 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
557 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
646 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
647 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
558648 fi; \
559 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
649 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
560650 else \
561 test -f $(distdir)/$$file \
562 || cp -p $$d/$$file $(distdir)/$$file \
651 test -f "$(distdir)/$$file" \
652 || cp -p $$d/$$file "$(distdir)/$$file" \
563653 || exit 1; \
564654 fi; \
565655 done
566 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
656 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
567657 if test "$$subdir" = .; then :; else \
568658 test -d "$(distdir)/$$subdir" \
569659 || $(MKDIR_P) "$(distdir)/$$subdir" \
570660 || exit 1; \
571 distdir=`$(am__cd) $(distdir) && pwd`; \
572 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
573 (cd $$subdir && \
661 fi; \
662 done
663 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
664 if test "$$subdir" = .; then :; else \
665 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
666 $(am__relativize); \
667 new_distdir=$$reldir; \
668 dir1=$$subdir; dir2="$(top_distdir)"; \
669 $(am__relativize); \
670 new_top_distdir=$$reldir; \
671 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
672 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
673 ($(am__cd) $$subdir && \
574674 $(MAKE) $(AM_MAKEFLAGS) \
575 top_distdir="$$top_distdir" \
576 distdir="$$distdir/$$subdir" \
675 top_distdir="$$new_top_distdir" \
676 distdir="$$new_distdir" \
577677 am__remove_distdir=: \
578678 am__skip_length_check=: \
679 am__skip_mode_fix=: \
579680 distdir) \
580681 || exit 1; \
581682 fi; \
607708
608709 distclean-generic:
609710 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
711 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
610712
611713 maintainer-clean-generic:
612714 @echo "This command is intended for maintainers to use"
628730
629731 html: html-recursive
630732
733 html-am:
734
631735 info: info-recursive
632736
633737 info-am:
636740
637741 install-dvi: install-dvi-recursive
638742
743 install-dvi-am:
744
639745 install-exec-am:
640746
641747 install-html: install-html-recursive
642748
749 install-html-am:
750
643751 install-info: install-info-recursive
644752
753 install-info-am:
754
645755 install-man:
646756
647757 install-pdf: install-pdf-recursive
648758
759 install-pdf-am:
760
649761 install-ps: install-ps-recursive
762
763 install-ps-am:
650764
651765 installcheck-am:
652766
670784
671785 uninstall-am:
672786
673 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
674 install-strip
787 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) check-am \
788 ctags-recursive install-am install-strip tags-recursive
675789
676790 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
677791 all all-am check check-TESTS check-am clean \
688802 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
689803 tags tags-recursive uninstall uninstall-am
690804
805
691806 # Tell versions [3.59,3.63) of GNU make to not export all variables.
692807 # Otherwise a system limit (for SysV at least) may be exceeded.
693808 .NOEXPORT:
2323 gchar *msg)
2424 {
2525 gchar *recipient = "ircuser";
26 gchar **output = idle_text_encode_and_split (type, recipient, msg, 510, NULL);
26 gchar **bodies;
27 gchar **output = idle_text_encode_and_split (type, recipient, msg, 510, &bodies, NULL);
2728 GString *reconstituted_msg = g_string_sized_new (strlen (msg));
2829 int i = -1;
2930 char *line = NULL, *c = NULL;
8788 g_strescape (expected_suffixes[type], ""));
8889 }
8990
91 if (strncmp (c, bodies[i], strlen (c) - strlen (expected_suffixes[type])))
92 {
93 fail ("body of '%s' doesn't match alleged body '%s'", c, bodies[i]);
94 }
95
9096 g_string_append_len (reconstituted_msg, c,
9197 strlen (c) - strlen (expected_suffixes[type]));
9298 }
66 connect/server-quit-noclose.py \
77 connect/invalid-nick.py \
88 channels/join-muc-channel.py \
9 channels/requests-create.py \
10 channels/requests-muc.py \
11 messages/accept-invalid-nicks.py \
912 messages/message-order.py \
1013 messages/leading-space.py \
1114 messages/long-message-split.py \
1215 messages/room-contact-mixup.py \
16 messages/split-msg-sent-signal.py \
1317 $(NULL)
1418
1519 TESTS =
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1415 @SET_MAKE@
1516 VPATH = @srcdir@
1617 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
1719 pkglibdir = $(libdir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
1921 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2022 install_sh_DATA = $(install_sh) -c -m 644
2123 install_sh_PROGRAM = $(install_sh) -c
3638 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3739 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
3840 $(top_srcdir)/m4/as-compiler-flag.m4 \
39 $(top_srcdir)/configure.ac
41 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
42 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
43 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
4044 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4145 $(ACLOCAL_M4)
4246 mkinstalldirs = $(install_sh) -d
4347 CONFIG_HEADER = $(top_builddir)/config.h
4448 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 AM_V_GEN = $(am__v_GEN_$(V))
51 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
52 am__v_GEN_0 = @echo " GEN " $@;
53 AM_V_at = $(am__v_at_$(V))
54 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
55 am__v_at_0 = @
4556 SOURCES =
4657 DIST_SOURCES =
4758 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
5364 ps-recursive uninstall-recursive
5465 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
5566 distclean-recursive maintainer-clean-recursive
67 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
68 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
69 distdir
5670 ETAGS = etags
5771 CTAGS = ctags
72 am__tty_colors = \
73 red=; grn=; lgn=; blu=; std=
5874 DIST_SUBDIRS = $(SUBDIRS)
5975 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
76 am__relativize = \
77 dir0=`pwd`; \
78 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
79 sed_rest='s,^[^/]*/*,,'; \
80 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
81 sed_butlast='s,/*[^/]*$$,,'; \
82 while test -n "$$dir1"; do \
83 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
84 if test "$$first" != "."; then \
85 if test "$$first" = ".."; then \
86 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
87 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
88 else \
89 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
90 if test "$$first2" = "$$first"; then \
91 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
92 else \
93 dir2="../$$dir2"; \
94 fi; \
95 dir0="$$dir0"/"$$first"; \
96 fi; \
97 fi; \
98 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
99 done; \
100 reldir="$$dir2"
60101 ACLOCAL = @ACLOCAL@
61102 AMTAR = @AMTAR@
103 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
62104 AR = @AR@
63105 AUTOCONF = @AUTOCONF@
64106 AUTOHEADER = @AUTOHEADER@
72114 CFLAGS = @CFLAGS@
73115 CPP = @CPP@
74116 CPPFLAGS = @CPPFLAGS@
75 CXX = @CXX@
76 CXXCPP = @CXXCPP@
77 CXXDEPMODE = @CXXDEPMODE@
78 CXXFLAGS = @CXXFLAGS@
79117 CYGPATH_W = @CYGPATH_W@
80118 DATADIR = @DATADIR@
81119 DBUS_CFLAGS = @DBUS_CFLAGS@
84122 DEFS = @DEFS@
85123 DEPDIR = @DEPDIR@
86124 DSYMUTIL = @DSYMUTIL@
87 ECHO = @ECHO@
125 DUMPBIN = @DUMPBIN@
88126 ECHO_C = @ECHO_C@
89127 ECHO_N = @ECHO_N@
90128 ECHO_T = @ECHO_T@
91129 EGREP = @EGREP@
92130 ERROR_CFLAGS = @ERROR_CFLAGS@
93131 EXEEXT = @EXEEXT@
94 F77 = @F77@
95 FFLAGS = @FFLAGS@
132 FGREP = @FGREP@
96133 GLIB_CFLAGS = @GLIB_CFLAGS@
97134 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
98135 GLIB_LIBS = @GLIB_LIBS@
102139 INSTALL_PROGRAM = @INSTALL_PROGRAM@
103140 INSTALL_SCRIPT = @INSTALL_SCRIPT@
104141 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
142 LD = @LD@
105143 LDFLAGS = @LDFLAGS@
106144 LIBOBJS = @LIBOBJS@
107145 LIBS = @LIBS@
108146 LIBTOOL = @LIBTOOL@
147 LIPO = @LIPO@
109148 LN_S = @LN_S@
110149 LTLIBOBJS = @LTLIBOBJS@
111150 MAKEINFO = @MAKEINFO@
112151 MKDIR_P = @MKDIR_P@
152 NM = @NM@
113153 NMEDIT = @NMEDIT@
154 OBJDUMP = @OBJDUMP@
114155 OBJEXT = @OBJEXT@
115156 OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
116157 OPENSSL_LIBS = @OPENSSL_LIBS@
158 OTOOL = @OTOOL@
159 OTOOL64 = @OTOOL64@
117160 PACKAGE = @PACKAGE@
118161 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
119162 PACKAGE_NAME = @PACKAGE_NAME@
120163 PACKAGE_STRING = @PACKAGE_STRING@
121164 PACKAGE_TARNAME = @PACKAGE_TARNAME@
165 PACKAGE_URL = @PACKAGE_URL@
122166 PACKAGE_VERSION = @PACKAGE_VERSION@
123167 PATH_SEPARATOR = @PATH_SEPARATOR@
124168 PKG_CONFIG = @PKG_CONFIG@
138182 abs_top_builddir = @abs_top_builddir@
139183 abs_top_srcdir = @abs_top_srcdir@
140184 ac_ct_CC = @ac_ct_CC@
141 ac_ct_CXX = @ac_ct_CXX@
142 ac_ct_F77 = @ac_ct_F77@
185 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
143186 am__include = @am__include@
144187 am__leading_dot = @am__leading_dot@
145188 am__quote = @am__quote@
170213 libexecdir = @libexecdir@
171214 localedir = @localedir@
172215 localstatedir = @localstatedir@
216 lt_ECHO = @lt_ECHO@
173217 mandir = @mandir@
174218 mkdir_p = @mkdir_p@
175219 oldincludedir = @oldincludedir@
182226 srcdir = @srcdir@
183227 sysconfdir = @sysconfdir@
184228 target_alias = @target_alias@
229 top_build_prefix = @top_build_prefix@
185230 top_builddir = @top_builddir@
186231 top_srcdir = @top_srcdir@
187232 TWISTED_TESTS = \
193238 connect/server-quit-noclose.py \
194239 connect/invalid-nick.py \
195240 channels/join-muc-channel.py \
241 channels/requests-create.py \
242 channels/requests-muc.py \
243 messages/accept-invalid-nicks.py \
196244 messages/message-order.py \
197245 messages/leading-space.py \
198246 messages/long-message-split.py \
199247 messages/room-contact-mixup.py \
248 messages/split-msg-sent-signal.py \
200249 $(NULL)
201250
202251 TESTS_ENVIRONMENT = \
220269 @for dep in $?; do \
221270 case '$(am__configure_deps)' in \
222271 *$$dep*) \
223 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
224 && exit 0; \
272 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
273 && { if test -f $@; then exit 0; else break; fi; }; \
225274 exit 1;; \
226275 esac; \
227276 done; \
228 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/twisted/Makefile'; \
229 cd $(top_srcdir) && \
230 $(AUTOMAKE) --gnu tests/twisted/Makefile
277 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/twisted/Makefile'; \
278 $(am__cd) $(top_srcdir) && \
279 $(AUTOMAKE) --gnu tests/twisted/Makefile
231280 .PRECIOUS: Makefile
232281 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
233282 @case '$?' in \
245294 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
246295 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
247296 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
297 $(am__aclocal_m4_deps):
248298
249299 mostlyclean-libtool:
250300 -rm -f *.lo
276326 else \
277327 local_target="$$target"; \
278328 fi; \
279 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
329 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
280330 || eval $$failcom; \
281331 done; \
282332 if test "$$dot_seen" = "no"; then \
310360 else \
311361 local_target="$$target"; \
312362 fi; \
313 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
363 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
314364 || eval $$failcom; \
315365 done && test -z "$$fail"
316366 tags-recursive:
317367 list='$(SUBDIRS)'; for subdir in $$list; do \
318 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
368 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
319369 done
320370 ctags-recursive:
321371 list='$(SUBDIRS)'; for subdir in $$list; do \
322 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
372 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
323373 done
324374
325375 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
327377 unique=`for i in $$list; do \
328378 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
329379 done | \
330 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
380 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
331381 END { if (nonempty) { for (i in files) print i; }; }'`; \
332382 mkid -fID $$unique
333383 tags: TAGS
334384
335385 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
336386 $(TAGS_FILES) $(LISP)
337 tags=; \
387 set x; \
338388 here=`pwd`; \
339389 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
340390 include_option=--etags-include; \
346396 list='$(SUBDIRS)'; for subdir in $$list; do \
347397 if test "$$subdir" = .; then :; else \
348398 test ! -f $$subdir/TAGS || \
349 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
399 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
350400 fi; \
351401 done; \
352402 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
355405 done | \
356406 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357407 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
408 shift; \
409 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
359410 test -n "$$unique" || unique=$$empty_fix; \
360 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361 $$tags $$unique; \
411 if test $$# -gt 0; then \
412 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
413 "$$@" $$unique; \
414 else \
415 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
416 $$unique; \
417 fi; \
362418 fi
363419 ctags: CTAGS
364420 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
365421 $(TAGS_FILES) $(LISP)
366 tags=; \
367422 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
368423 unique=`for i in $$list; do \
369424 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
370425 done | \
371426 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
372427 END { if (nonempty) { for (i in files) print i; }; }'`; \
373 test -z "$(CTAGS_ARGS)$$tags$$unique" \
428 test -z "$(CTAGS_ARGS)$$unique" \
374429 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
375 $$tags $$unique
430 $$unique
376431
377432 GTAGS:
378433 here=`$(am__cd) $(top_builddir) && pwd` \
379 && cd $(top_srcdir) \
380 && gtags -i $(GTAGS_ARGS) $$here
434 && $(am__cd) $(top_srcdir) \
435 && gtags -i $(GTAGS_ARGS) "$$here"
381436
382437 distclean-tags:
383438 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
384439
385440 check-TESTS: $(TESTS)
386 @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
441 @failed=0; all=0; xfail=0; xpass=0; skip=0; \
387442 srcdir=$(srcdir); export srcdir; \
388443 list=' $(TESTS) '; \
444 $(am__tty_colors); \
389445 if test -n "$$list"; then \
390446 for tst in $$list; do \
391447 if test -f ./$$tst; then dir=./; \
394450 if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
395451 all=`expr $$all + 1`; \
396452 case " $(XFAIL_TESTS) " in \
397 *$$ws$$tst$$ws*) \
453 *[\ \ ]$$tst[\ \ ]*) \
398454 xpass=`expr $$xpass + 1`; \
399455 failed=`expr $$failed + 1`; \
400 echo "XPASS: $$tst"; \
456 col=$$red; res=XPASS; \
401457 ;; \
402458 *) \
403 echo "PASS: $$tst"; \
459 col=$$grn; res=PASS; \
404460 ;; \
405461 esac; \
406462 elif test $$? -ne 77; then \
407463 all=`expr $$all + 1`; \
408464 case " $(XFAIL_TESTS) " in \
409 *$$ws$$tst$$ws*) \
465 *[\ \ ]$$tst[\ \ ]*) \
410466 xfail=`expr $$xfail + 1`; \
411 echo "XFAIL: $$tst"; \
467 col=$$lgn; res=XFAIL; \
412468 ;; \
413469 *) \
414470 failed=`expr $$failed + 1`; \
415 echo "FAIL: $$tst"; \
471 col=$$red; res=FAIL; \
416472 ;; \
417473 esac; \
418474 else \
419475 skip=`expr $$skip + 1`; \
420 echo "SKIP: $$tst"; \
476 col=$$blu; res=SKIP; \
421477 fi; \
478 echo "$${col}$$res$${std}: $$tst"; \
422479 done; \
480 if test "$$all" -eq 1; then \
481 tests="test"; \
482 All=""; \
483 else \
484 tests="tests"; \
485 All="All "; \
486 fi; \
423487 if test "$$failed" -eq 0; then \
424488 if test "$$xfail" -eq 0; then \
425 banner="All $$all tests passed"; \
489 banner="$$All$$all $$tests passed"; \
426490 else \
427 banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
491 if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
492 banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
428493 fi; \
429494 else \
430495 if test "$$xpass" -eq 0; then \
431 banner="$$failed of $$all tests failed"; \
496 banner="$$failed of $$all $$tests failed"; \
432497 else \
433 banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
498 if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
499 banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
434500 fi; \
435501 fi; \
436502 dashes="$$banner"; \
437503 skipped=""; \
438504 if test "$$skip" -ne 0; then \
439 skipped="($$skip tests were not run)"; \
505 if test "$$skip" -eq 1; then \
506 skipped="($$skip test was not run)"; \
507 else \
508 skipped="($$skip tests were not run)"; \
509 fi; \
440510 test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
441511 dashes="$$skipped"; \
442512 fi; \
447517 dashes="$$report"; \
448518 fi; \
449519 dashes=`echo "$$dashes" | sed s/./=/g`; \
450 echo "$$dashes"; \
520 if test "$$failed" -eq 0; then \
521 echo "$$grn$$dashes"; \
522 else \
523 echo "$$red$$dashes"; \
524 fi; \
451525 echo "$$banner"; \
452526 test -z "$$skipped" || echo "$$skipped"; \
453527 test -z "$$report" || echo "$$report"; \
454 echo "$$dashes"; \
528 echo "$$dashes$$std"; \
455529 test "$$failed" -eq 0; \
456530 else :; fi
457531
471545 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
472546 if test -d $$d/$$file; then \
473547 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
548 if test -d "$(distdir)/$$file"; then \
549 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
550 fi; \
474551 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
475 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
552 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
553 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
476554 fi; \
477 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
555 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
478556 else \
479 test -f $(distdir)/$$file \
480 || cp -p $$d/$$file $(distdir)/$$file \
557 test -f "$(distdir)/$$file" \
558 || cp -p $$d/$$file "$(distdir)/$$file" \
481559 || exit 1; \
482560 fi; \
483561 done
484 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
562 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
485563 if test "$$subdir" = .; then :; else \
486564 test -d "$(distdir)/$$subdir" \
487565 || $(MKDIR_P) "$(distdir)/$$subdir" \
488566 || exit 1; \
489 distdir=`$(am__cd) $(distdir) && pwd`; \
490 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
491 (cd $$subdir && \
567 fi; \
568 done
569 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
570 if test "$$subdir" = .; then :; else \
571 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
572 $(am__relativize); \
573 new_distdir=$$reldir; \
574 dir1=$$subdir; dir2="$(top_distdir)"; \
575 $(am__relativize); \
576 new_top_distdir=$$reldir; \
577 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
578 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
579 ($(am__cd) $$subdir && \
492580 $(MAKE) $(AM_MAKEFLAGS) \
493 top_distdir="$$top_distdir" \
494 distdir="$$distdir/$$subdir" \
581 top_distdir="$$new_top_distdir" \
582 distdir="$$new_distdir" \
495583 am__remove_distdir=: \
496584 am__skip_length_check=: \
585 am__skip_mode_fix=: \
497586 distdir) \
498587 || exit 1; \
499588 fi; \
526615
527616 distclean-generic:
528617 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
618 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
529619
530620 maintainer-clean-generic:
531621 @echo "This command is intended for maintainers to use"
544634
545635 html: html-recursive
546636
637 html-am:
638
547639 info: info-recursive
548640
549641 info-am:
552644
553645 install-dvi: install-dvi-recursive
554646
647 install-dvi-am:
648
555649 install-exec-am:
556650
557651 install-html: install-html-recursive
558652
653 install-html-am:
654
559655 install-info: install-info-recursive
560656
657 install-info-am:
658
561659 install-man:
562660
563661 install-pdf: install-pdf-recursive
564662
663 install-pdf-am:
664
565665 install-ps: install-ps-recursive
666
667 install-ps-am:
566668
567669 installcheck-am:
568670
584686
585687 uninstall-am:
586688
587 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
588 install-strip
689 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) check-am \
690 ctags-recursive install-am install-strip tags-recursive
589691
590692 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
591693 all all-am check check-TESTS check-am check-local clean \
615717 @WANT_TWISTED_TESTS_TRUE@ echo "Core dump exists: tools/core";\
616718 @WANT_TWISTED_TESTS_TRUE@ exit 1;\
617719 @WANT_TWISTED_TESTS_TRUE@ fi
720
618721 # Tell versions [3.59,3.63) of GNU make to not export all variables.
619722 # Otherwise a system limit (for SysV at least) may be exceeded.
620723 .NOEXPORT:
1717 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
1818 room_handles = conn.RequestHandles(HT_ROOM, ['#idletest'])
1919 call_async(q, conn, 'RequestChannel', CHANNEL_TYPE_TEXT, HT_ROOM, room_handles[0], True)
20 q.expect('stream-JOIN')
2021 event = q.expect('dbus-return', method='RequestChannel')
2122 obj_path = event.value[0]
2223
0
1 """
2 Test creating a channel with the Requests interface
3 Most of this test was borrowed from a gabble test and modified to fit idle
4 """
5
6 from idletest import exec_test
7 from servicetest import EventPattern, call_async, make_channel_proxy
8 import dbus
9 import constants as cs
10
11 def test(q, bus, conn, stream):
12 conn.Connect()
13 q.expect('dbus-signal', signal='StatusChanged', args=[0,1])
14
15 ifs = conn.GetInterfaces()
16
17 assert cs.CONN_IFACE_REQUESTS in ifs
18
19 nick = 'foo'
20 call_async(q, conn, 'RequestHandles', cs.HT_CONTACT, [nick])
21 event = q.expect('dbus-return', method='RequestHandles')
22 foo_handle = event.value[0][0]
23
24 properties = conn.GetAll(cs.CONN_IFACE_REQUESTS,
25 dbus_interface=cs.PROPERTIES_IFACE)
26 assert properties.get('Channels') == [], properties['Channels']
27 assert ({cs.CHANNEL_TYPE: cs.CHANNEL_TYPE_TEXT,
28 cs.TARGET_HANDLE_TYPE: cs.HT_CONTACT,
29 },
30 [cs.TARGET_HANDLE, cs.TARGET_ID],
31 ) in properties.get('RequestableChannelClasses'),\
32 properties['RequestableChannelClasses']
33
34 requestotron = dbus.Interface(conn, cs.CONN_IFACE_REQUESTS)
35 request = { cs.CHANNEL_TYPE: cs.CHANNEL_TYPE_TEXT,
36 cs.TARGET_HANDLE_TYPE: cs.HT_CONTACT,
37 cs.TARGET_ID: nick,
38 }
39 call_async(q, requestotron, 'CreateChannel', request)
40
41 ret, old_sig, new_sig = q.expect_many(
42 EventPattern('dbus-return', method='CreateChannel'),
43 EventPattern('dbus-signal', signal='NewChannel'),
44 EventPattern('dbus-signal', signal='NewChannels'),
45 )
46
47 assert len(ret.value) == 2
48 path, emitted_props = ret.value
49 assert emitted_props[cs.CHANNEL_TYPE] == cs.CHANNEL_TYPE_TEXT
50 assert emitted_props[cs.TARGET_HANDLE_TYPE] == cs.HT_CONTACT
51 assert emitted_props[cs.TARGET_HANDLE] == foo_handle
52 assert emitted_props[cs.TARGET_ID] == nick
53 assert emitted_props[cs.REQUESTED]
54 assert emitted_props[cs.INITIATOR_HANDLE] == conn.GetSelfHandle()
55 assert emitted_props[cs.INITIATOR_ID] == stream.nick
56
57 assert old_sig.args[0] == ret.value[0]
58 assert old_sig.args[1] == cs.CHANNEL_TYPE_TEXT
59 assert old_sig.args[2] == cs.HT_CONTACT
60 assert old_sig.args[3] == foo_handle
61 assert old_sig.args[4] == True # suppress handler
62
63 assert len(new_sig.args) == 1
64 assert len(new_sig.args[0]) == 1 # one channel
65 assert len(new_sig.args[0][0]) == 2 # two struct members
66 assert new_sig.args[0][0][0] == ret.value[0]
67 assert new_sig.args[0][0][1] == ret.value[1]
68
69 properties = conn.GetAll(cs.CONN_IFACE_REQUESTS,
70 dbus_interface=cs.PROPERTIES_IFACE)
71
72 assert new_sig.args[0][0] in properties['Channels'], \
73 (new_sig.args[0][0], properties['Channels'])
74
75 chan = make_channel_proxy(conn, path, 'Channel')
76
77 stream.sendMessage('PRIVMSG', stream.nick, ":oh hai", prefix=nick)
78 q.expect('dbus-signal', signal='Received')
79
80 # Without acknowledging the message, we close the channel:
81 chan.Close()
82
83 # It should close and respawn!
84 q.expect('dbus-signal', signal='ChannelClosed')
85 chans, = q.expect('dbus-signal', signal='NewChannels').args
86 assert len(chans) == 1
87 new_props = chans[0][1]
88
89 # It should look pretty similar...
90 assert new_props[cs.CHANNEL_TYPE] == cs.CHANNEL_TYPE_TEXT
91 assert new_props[cs.TARGET_HANDLE_TYPE] == cs.HT_CONTACT
92 assert new_props[cs.TARGET_HANDLE] == foo_handle
93 assert new_props[cs.TARGET_ID] == nick
94
95 # ...but this time they started it...
96 assert not new_props[cs.REQUESTED]
97 assert new_props[cs.INITIATOR_HANDLE] == foo_handle
98 assert new_props[cs.INITIATOR_ID] == nick
99
100 # ...and it's got some messages in it!
101 ms = chan.ListPendingMessages(False, dbus_interface=cs.CHANNEL_TYPE_TEXT)
102 assert len(ms) == 1
103 assert ms[0][5] == 'oh hai'
104
105 # Without acknowledging the message, we destroy the channel:
106 chan.Destroy(dbus_interface=cs.CHANNEL_IFACE_DESTROYABLE)
107
108 q.expect('dbus-signal', signal='ChannelClosed')
109
110 # It should be gone for good this time.
111 channels = conn.Get(cs.CONN_IFACE_REQUESTS, 'Channels',
112 dbus_interface=cs.PROPERTIES_IFACE)
113 assert channels == [], channels
114
115 call_async(q, conn, 'Disconnect')
116 q.expect('dbus-signal', signal='StatusChanged', args=[2, 1])
117
118
119 if __name__ == "__main__":
120 exec_test(test)
0 """
1 Test connecting to a IRC channel via the Requests interface
2 """
3
4 from idletest import exec_test, BaseIRCServer
5 from servicetest import EventPattern, call_async, sync_dbus, make_channel_proxy
6 import constants as cs
7 import dbus
8
9 class DelayJoinServer(BaseIRCServer):
10 def handleJOIN(self, args):
11 # do nothing; wait for the test to call sendJoin().
12 return
13
14 def test(q, bus, conn, stream):
15 conn.Connect()
16 q.expect_many(
17 EventPattern('dbus-signal', signal='StatusChanged', args=[1, 1]),
18 EventPattern('irc-connected'))
19 q.expect('dbus-signal', signal='SelfHandleChanged')
20 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
21
22 self_handle = conn.GetSelfHandle()
23
24 request = dbus.Dictionary({
25 cs.CHANNEL_TYPE: cs.CHANNEL_TYPE_TEXT,
26 cs.TARGET_HANDLE_TYPE: cs.HT_ROOM,
27 cs.TARGET_ID: '#idletest',
28 }, signature='sv')
29
30 call_async(q, conn, 'CreateChannel', request,
31 dbus_interface=cs.CONN_IFACE_REQUESTS)
32
33 # Idle should try to join the channel.
34 q.expect('stream-JOIN')
35
36 # Meanwhile, in another application...
37
38 call_async(q, conn, 'EnsureChannel', request,
39 dbus_interface=cs.CONN_IFACE_REQUESTS)
40
41 sync_dbus(bus, q, conn)
42
43 # Now the ircd responds:
44 stream.sendJoin('#idletest')
45
46 cc, ec = q.expect_many(
47 EventPattern('dbus-return', method='CreateChannel'),
48 EventPattern('dbus-return', method='EnsureChannel'),
49 )
50 nc = q.expect('dbus-signal', signal='NewChannels')
51
52 path, props = cc.value
53
54 assert props[cs.CHANNEL_TYPE] == cs.CHANNEL_TYPE_TEXT
55 assert sorted(props[cs.INTERFACES]) == \
56 sorted([cs.CHANNEL_IFACE_GROUP,
57 cs.CHANNEL_IFACE_PASSWORD,
58 cs.TP_AWKWARD_PROPERTIES,
59 ])
60 assert props[cs.TARGET_HANDLE_TYPE] == cs.HT_ROOM
61 assert props[cs.TARGET_ID] == '#idletest'
62 assert props[cs.TARGET_HANDLE] == \
63 conn.RequestHandles(cs.HT_ROOM, ['#idletest'])[0]
64 assert props[cs.REQUESTED]
65 assert props[cs.INITIATOR_HANDLE] == self_handle
66 assert props[cs.INITIATOR_ID] == \
67 conn.InspectHandles(cs.HT_CONTACT, [self_handle])[0]
68
69 ec_yours, ec_path, ec_props = ec.value
70 assert not ec_yours
71 assert ec_path == path
72 assert ec_props == props
73
74 channels = nc.args[0]
75 assert len(channels) == 1
76 nc_path, nc_props = channels[0]
77 assert nc_path == path
78 assert nc_props == props
79
80 # And again?
81 ec_ = conn.EnsureChannel(request,
82 dbus_interface=cs.CONN_IFACE_REQUESTS)
83 assert ec.value == ec_
84
85 chans = conn.Get(cs.CONN_IFACE_REQUESTS, 'Channels',
86 dbus_interface=cs.PROPERTIES_IFACE)
87 assert len(chans) == 1
88 assert chans[0] == (path, props)
89
90 chan = make_channel_proxy(conn, path, 'Channel')
91 chan.RemoveMembers([self_handle], "", dbus_interface=cs.CHANNEL_IFACE_GROUP)
92
93 q.expect('stream-PART')
94 stream.sendPart('#idletest', stream.nick)
95
96 q.expect('dbus-signal', signal='Closed')
97
98 chans = conn.Get(cs.CONN_IFACE_REQUESTS, 'Channels',
99 dbus_interface=cs.PROPERTIES_IFACE)
100 assert len(chans) == 0
101
102 if __name__ == '__main__':
103 exec_test(test, protocol=DelayJoinServer)
104
44
55 import dbus
66 from idletest import make_connection
7 from constants import *
78
89 def connect(nick):
910 bus = dbus.SessionBus()
2728 connect('nick with spaces')
2829 raise RuntimeError('Invalid nick not rejected')
2930 except dbus.DBusException, e:
30 assert e.get_dbus_name() == 'org.freedesktop.Telepathy.Errors.InvalidHandle'
31 assert e.get_dbus_name() == INVALID_HANDLE
3132
3233 try:
3334 connect('') # empty nick
3435 raise RuntimeError('Invalid nick not rejected')
3536 except dbus.DBusException, e:
36 assert e.get_dbus_name() == 'org.freedesktop.Telepathy.Errors.InvalidHandle'
37 assert e.get_dbus_name() == INVALID_HANDLE
3738
3839 try:
3940 connect('#foo') # invalid chars
4041 raise RuntimeError('Invalid nick not rejected')
4142 except dbus.DBusException, e:
42 assert e.get_dbus_name() == 'org.freedesktop.Telepathy.Errors.InvalidHandle'
43 assert e.get_dbus_name() == INVALID_HANDLE
4344
4445 try:
4546 connect(u'김정은') # unicode
4647 raise RuntimeError('Invalid nick not rejected')
4748 except dbus.DBusException, e:
48 assert e.get_dbus_name() == 'org.freedesktop.Telepathy.Errors.InvalidHandle'
49 assert e.get_dbus_name() == INVALID_HANDLE
50
51 try:
52 connect('12foo') # numbers not allowed as first char
53 raise RuntimeError('Invalid nick not rejected')
54 except dbus.DBusException, e:
55 assert e.get_dbus_name() == INVALID_HANDLE
4956
5057 try:
5158 connect('-foo') # '-' not allowed as first char
5259 raise RuntimeError('Invalid nick not rejected')
5360 except dbus.DBusException, e:
54 assert e.get_dbus_name() == 'org.freedesktop.Telepathy.Errors.InvalidHandle'
61 assert e.get_dbus_name() == INVALID_HANDLE
5562
5663 # should pass succeed without an exception
5764 connect('good_nick')
11 Some handy constants for other tests to share and enjoy.
22 """
33
4 from dbus import PROPERTIES_IFACE
5
6 HT_NONE = 0
47 HT_CONTACT = 1
58 HT_ROOM = 2
9 HT_LIST = 3
10 HT_GROUP = 4
611
712 CHANNEL = "org.freedesktop.Telepathy.Channel"
13
14 CHANNEL_IFACE_CALL_STATE = CHANNEL + ".Interface.CallState"
15 CHANNEL_IFACE_CHAT_STATE = CHANNEL + '.Interface.ChatState'
16 CHANNEL_IFACE_DESTROYABLE = CHANNEL + ".Interface.Destroyable"
17 CHANNEL_IFACE_GROUP = CHANNEL + ".Interface.Group"
18 CHANNEL_IFACE_HOLD = CHANNEL + ".Interface.Hold"
19 CHANNEL_IFACE_MEDIA_SIGNALLING = CHANNEL + ".Interface.MediaSignalling"
20 CHANNEL_IFACE_MESSAGES = CHANNEL + ".Interface.Messages"
21 CHANNEL_IFACE_PASSWORD = CHANNEL + ".Interface.Password"
22 CHANNEL_IFACE_TUBE = CHANNEL + ".Interface.Tube"
23
24 CHANNEL_TYPE_CONTACT_LIST = CHANNEL + ".Type.ContactList"
825 CHANNEL_TYPE_TEXT = CHANNEL + ".Type.Text"
9 CHANNEL_IFACE_GROUP = CHANNEL + ".Interface.Group"
1026 CHANNEL_TYPE_TUBES = CHANNEL + ".Type.Tubes"
11 CHANNEL_IFACE_TUBE = CHANNEL + ".Interface.Tube.DRAFT"
12 CHANNEL_TYPE_STREAM_TUBE = CHANNEL + ".Type.StreamTube.DRAFT"
13 CHANNEL_TYPE_DBUS_TUBE = CHANNEL + ".Type.DBusTube.DRAFT"
27 CHANNEL_TYPE_STREAM_TUBE = CHANNEL + ".Type.StreamTube"
28 CHANNEL_TYPE_DBUS_TUBE = CHANNEL + ".Type.DBusTube"
29 CHANNEL_TYPE_STREAMED_MEDIA = CHANNEL + ".Type.StreamedMedia"
30 CHANNEL_TYPE_TEXT = CHANNEL + ".Type.Text"
31 CHANNEL_TYPE_FILE_TRANSFER = CHANNEL + ".Type.FileTransfer"
32
33 TP_AWKWARD_PROPERTIES = "org.freedesktop.Telepathy.Properties"
34 PROPERTY_FLAG_READ = 1
35 PROPERTY_FLAG_WRITE = 2
1436
1537 CHANNEL_TYPE = CHANNEL + '.ChannelType'
1638 TARGET_HANDLE_TYPE = CHANNEL + '.TargetHandleType'
1941 REQUESTED = CHANNEL + '.Requested'
2042 INITIATOR_HANDLE = CHANNEL + '.InitiatorHandle'
2143 INITIATOR_ID = CHANNEL + '.InitiatorID'
44 INTERFACES = CHANNEL + '.Interfaces'
45
46 INITIAL_AUDIO = CHANNEL_TYPE_STREAMED_MEDIA + '.FUTURE.InitialAudio'
47 INITIAL_VIDEO = CHANNEL_TYPE_STREAMED_MEDIA + '.FUTURE.InitialVideo'
2248
2349 CONN = "org.freedesktop.Telepathy.Connection"
50 CONN_IFACE_AVATARS = CONN + '.Interface.Avatars'
51 CONN_IFACE_CAPS = CONN + '.Interface.Capabilities'
52 CONN_IFACE_CONTACTS = CONN + '.Interface.Contacts'
53 CONN_IFACE_CONTACT_CAPS = CONN + '.Interface.ContactCapabilities.DRAFT'
54 CONN_IFACE_SIMPLE_PRESENCE = CONN + '.Interface.SimplePresence'
2455 CONN_IFACE_REQUESTS = CONN + '.Interface.Requests'
25
26 ERRORS = 'org.freedesktop.Telepathy.Errors'
27 INVALID_ARGUMENT = ERRORS + '.InvalidArgument'
28 NOT_IMPLEMENTED = ERRORS + '.NotImplemented'
29 NOT_AVAILABLE = ERRORS + '.NotAvailable'
56 CONN_IFACE_LOCATION = CONN + '.Interface.Location'
57
58 STREAM_HANDLER = 'org.freedesktop.Telepathy.Media.StreamHandler'
59
60 ERROR = 'org.freedesktop.Telepathy.Error'
61 INVALID_ARGUMENT = ERROR + '.InvalidArgument'
62 INVALID_HANDLE = ERROR + '.InvalidHandle'
63 NOT_IMPLEMENTED = ERROR + '.NotImplemented'
64 NOT_AVAILABLE = ERROR + '.NotAvailable'
65 PERMISSION_DENIED = ERROR + '.PermissionDenied'
66 OFFLINE = ERROR + '.Offline'
67 NOT_CAPABLE = ERROR + '.NotCapable'
68 CONNECTION_REFUSED = ERROR + '.ConnectionRefused'
69 CONNECTION_FAILED = ERROR + '.ConnectionFailed'
70 CONNECTION_LOST = ERROR + '.ConnectionLost'
71 CANCELLED = ERROR + '.Cancelled'
72
73 UNKNOWN_METHOD = 'org.freedesktop.DBus.Error.UnknownMethod'
3074
3175 TUBE_PARAMETERS = CHANNEL_IFACE_TUBE + '.Parameters'
3276 TUBE_STATE = CHANNEL_IFACE_TUBE + '.State'
3377 STREAM_TUBE_SERVICE = CHANNEL_TYPE_STREAM_TUBE + '.Service'
3478 DBUS_TUBE_SERVICE_NAME = CHANNEL_TYPE_DBUS_TUBE + '.ServiceName'
79 DBUS_TUBE_DBUS_NAMES = CHANNEL_TYPE_DBUS_TUBE + '.DBusNames'
80 DBUS_TUBE_SUPPORTED_ACCESS_CONTROLS = CHANNEL_TYPE_DBUS_TUBE + '.SupportedAccessControls'
3581
3682 TUBE_CHANNEL_STATE_LOCAL_PENDING = 0
3783 TUBE_CHANNEL_STATE_REMOTE_PENDING = 1
4086
4187 MEDIA_STREAM_TYPE_AUDIO = 0
4288 MEDIA_STREAM_TYPE_VIDEO = 1
89
90 SOCKET_ADDRESS_TYPE_UNIX = 0
91 SOCKET_ADDRESS_TYPE_ABSTRACT_UNIX = 1
92 SOCKET_ADDRESS_TYPE_IPV4 = 2
93 SOCKET_ADDRESS_TYPE_IPV6 = 3
94
95 SOCKET_ACCESS_CONTROL_LOCALHOST = 0
96 SOCKET_ACCESS_CONTROL_PORT = 1
97 SOCKET_ACCESS_CONTROL_NETMASK = 2
98 SOCKET_ACCESS_CONTROL_CREDENTIALS = 3
99
100 TUBE_STATE_LOCAL_PENDING = 0
101 TUBE_STATE_REMOTE_PENDING = 1
102 TUBE_STATE_OPEN = 2
103 TUBE_STATE_NOT_OFFERED = 3
104
105 TUBE_TYPE_DBUS = 0
106 TUBE_TYPE_STREAM = 1
107
108 MEDIA_STREAM_DIRECTION_NONE = 0
109 MEDIA_STREAM_DIRECTION_SEND = 1
110 MEDIA_STREAM_DIRECTION_RECEIVE = 2
111 MEDIA_STREAM_DIRECTION_BIDIRECTIONAL = 3
112
113 MEDIA_STREAM_PENDING_LOCAL_SEND = 1
114 MEDIA_STREAM_PENDING_REMOTE_SEND = 2
115
116 MEDIA_STREAM_TYPE_AUDIO = 0
117 MEDIA_STREAM_TYPE_VIDEO = 1
118
43119 MEDIA_STREAM_STATE_DISCONNECTED = 0
44120 MEDIA_STREAM_STATE_CONNECTING = 1
45121 MEDIA_STREAM_STATE_CONNECTED = 2
46122
123 MEDIA_STREAM_DIRECTION_NONE = 0
124 MEDIA_STREAM_DIRECTION_SEND = 1
125 MEDIA_STREAM_DIRECTION_RECEIVE = 2
126 MEDIA_STREAM_DIRECTION_BIDIRECTIONAL = 3
127
128 FT_STATE_NONE = 0
129 FT_STATE_PENDING = 1
130 FT_STATE_ACCEPTED = 2
131 FT_STATE_OPEN = 3
132 FT_STATE_COMPLETED = 4
133 FT_STATE_CANCELLED = 5
134
135 FT_STATE_CHANGE_REASON_NONE = 0
136 FT_STATE_CHANGE_REASON_REQUESTED = 1
137 FT_STATE_CHANGE_REASON_LOCAL_STOPPED = 2
138 FT_STATE_CHANGE_REASON_REMOTE_STOPPED = 3
139 FT_STATE_CHANGE_REASON_LOCAL_ERROR = 4
140 FT_STATE_CHANGE_REASON_REMOTE_ERROR = 5
141
142 FILE_HASH_TYPE_NONE = 0
143 FILE_HASH_TYPE_MD5 = 1
144 FILE_HASH_TYPE_SHA1 = 2
145 FILE_HASH_TYPE_SHA256 = 3
146
147 FT_STATE = CHANNEL_TYPE_FILE_TRANSFER + '.State'
148 FT_CONTENT_TYPE = CHANNEL_TYPE_FILE_TRANSFER + '.ContentType'
149 FT_FILENAME = CHANNEL_TYPE_FILE_TRANSFER + '.Filename'
150 FT_SIZE = CHANNEL_TYPE_FILE_TRANSFER + '.Size'
151 FT_CONTENT_HASH_TYPE = CHANNEL_TYPE_FILE_TRANSFER + '.ContentHashType'
152 FT_CONTENT_HASH = CHANNEL_TYPE_FILE_TRANSFER + '.ContentHash'
153 FT_DESCRIPTION = CHANNEL_TYPE_FILE_TRANSFER + '.Description'
154 FT_DATE = CHANNEL_TYPE_FILE_TRANSFER + '.Date'
155 FT_AVAILABLE_SOCKET_TYPES = CHANNEL_TYPE_FILE_TRANSFER + '.AvailableSocketTypes'
156 FT_TRANSFERRED_BYTES = CHANNEL_TYPE_FILE_TRANSFER + '.TransferredBytes'
157 FT_INITIAL_OFFSET = CHANNEL_TYPE_FILE_TRANSFER + '.InitialOffset'
158
159 GF_CAN_ADD = 1
160 GF_CAN_REMOVE = 2
161 GF_CAN_RESCIND = 4
162 GF_MESSAGE_ADD = 8
163 GF_MESSAGE_REMOVE = 16
164 GF_MESSAGE_ACCEPT = 32
165 GF_MESSAGE_REJECT = 64
166 GF_MESSAGE_RESCIND = 128
167 GF_CHANNEL_SPECIFIC_HANDLES = 256
168 GF_ONLY_ONE_GROUP = 512
169 GF_HANDLE_OWNERS_NOT_AVAILABLE = 1024
170 GF_PROPERTIES = 2048
171 GF_MEMBERS_CHANGED_DETAILED = 4096
172
173 GC_REASON_NONE = 0
174 GC_REASON_OFFLINE = 1
175 GC_REASON_KICKED = 2
176 GC_REASON_BUSY = 3
177 GC_REASON_INVITED = 4
178 GC_REASON_BANNED = 5
179 GC_REASON_ERROR = 6
180 GC_REASON_INVALID_CONTACT = 7
181 GC_REASON_NO_ANSWER = 8
182 GC_REASON_RENAMED = 9
183 GC_REASON_PERMISSION_DENIED = 10
184 GC_REASON_SEPARATED = 11
185
186 HS_UNHELD = 0
187 HS_HELD = 1
188 HS_PENDING_HOLD = 2
189 HS_PENDING_UNHOLD = 3
190
191 HSR_NONE = 0
192 HSR_REQUESTED = 1
193 HSR_RESOURCE_NOT_AVAILABLE = 2
194
195 CALL_STATE_RINGING = 1
196 CALL_STATE_QUEUED = 2
197 CALL_STATE_HELD = 4
198 CALL_STATE_FORWARDED = 8
199
200 CONN_STATUS_CONNECTED = 0
201 CONN_STATUS_CONNECTING = 1
202 CONN_STATUS_DISCONNECTED = 2
203
204 CSR_NONE_SPECIFIED = 0
205 CSR_REQUESTED = 1
206 CSR_NETWORK_ERROR = 2
207 CSR_AUTHENTICATION_FAILED = 3
208 CSR_ENCRYPTION_ERROR = 4
209 CSR_NAME_IN_USE = 5
210 CSR_CERT_NOT_PROVIDED = 6
211 CSR_CERT_UNTRUSTED = 7
212 CSR_CERT_EXPIRED = 8
213 CSR_CERT_NOT_ACTIVATED = 9
214 CSR_CERT_HOSTNAME_MISMATCH = 10
215 CSR_CERT_FINGERPRINT_MISMATCH = 11
216 CSR_CERT_SELF_SIGNED = 12
217 CSR_CERT_OTHER_ERROR = 13
218
219 BUDDY_INFO = 'org.laptop.Telepathy.BuddyInfo'
220 ACTIVITY_PROPERTIES = 'org.laptop.Telepathy.ActivityProperties'
221
222 CHAT_STATE_GONE = 0
223 CHAT_STATE_INACTIVE = 1
224 CHAT_STATE_ACTIVE = 2
225 CHAT_STATE_PAUSED = 3
226 CHAT_STATE_COMPOSING = 4
227
228 # Channel_Media_Capabilities
229 MEDIA_CAP_AUDIO = 1
230 MEDIA_CAP_VIDEO = 2
231 MEDIA_CAP_STUN = 4
232 MEDIA_CAP_GTALKP2P = 8
233 MEDIA_CAP_ICEUDP = 16
2222 event = make_irc_event('irc-disconnected', None)
2323 return event
2424
25 def make_privmsg_event(recipient, msg):
26 event = make_irc_event('irc-privmsg', {'recipient':recipient, 'message':msg})
27 return event
28
2925 class BaseIRCServer(irc.IRC):
3026 verbose = (os.environ.get('CHECK_TWISTED_VERBOSE', '') != '' or '-v' in sys.argv)
3127
5248 def connectionLost(self, reason):
5349 self.log ("connection Lost %s" % reason)
5450 self.event_func(make_disconnected_event())
55
56 def handlePRIVMSG(self, args, prefix):
57 self.event_func(make_privmsg_event(args[0], ' '.join(args[1:]).rstrip('\r\n')))
5851
5952 #handle 'login' handshake
6053 def handlePASS(self, args, prefix):
6962
7063 def handleJOIN(self, args, prefix):
7164 room = args[0]
65 self.sendJoin(room, [self.nick])
66
67 def sendJoin(self, room, members=[]):
68 members.append(self.nick)
69
7270 self.sendMessage('JOIN', room, prefix=self.nick)
73 self._sendNameReply(room, [self.nick])
71 self._sendNameReply(room, members)
72
73 def sendPart(self, room, nick, message=None):
74 if message is not None:
75 self.sendMessage('PART', room, message, prefix=nick)
76 else:
77 self.sendMessage('PART', room, prefix=nick)
7478
7579 def _sendNameReply(self, room, members):
7680 #namereply
7781 self.sendMessage('353', '%s = %s' % (self.nick, room), ":%s" % ' '.join(members),
7882 prefix='idle.test.server')
7983 #namereply end
80 self.sendMessage('366', self.nick, room, ':End if /NAMES list', prefix='idle.test.server')
84 self.sendMessage('366', self.nick, room, ':End of /NAMES list', prefix='idle.test.server')
8185
8286 def handleQUIT(self, args, prefix):
8387 quit_msg = ' '.join(args).rstrip('\r\n')
8892 self.sendMessage('001', self.nick, ':Welcome to the test IRC Network', prefix='idle.test.server')
8993
9094 def dataReceived(self, data):
91 self.log ("data received: %s" % (data,))
9295 (_prefix, _command, _args) = irc.parsemsg(data)
9396 self.event_func(make_irc_event('stream-%s' % _command, _args))
9497 try:
150153 'server': 'localhost',
151154 'password': '',
152155 'fullname': 'Test User',
156 'username': 'testuser',
153157 'charset': 'UTF-8',
154158 'quit-message': 'happy testing...',
155159 'use-ssl': dbus.Boolean(False),
0 # coding: utf-8
1 """
2 Regression test to check that we accept incoming nicks beginning with '-' (in
3 particular, "-bip"), which are illegal per the RFC but occur in the wild.
4 """
5
6 from idletest import exec_test
7 from servicetest import EventPattern, call_async
8 import dbus
9
10 def test(q, bus, conn, stream):
11 conn.Connect()
12 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
13
14 stream.sendMessage('PRIVMSG', stream.nick, ':testing testing', prefix='-bip')
15 q.expect('dbus-signal', signal='Received')
16 # FIXME: we should be lenient and accept unicode nicks that we recieve
17 # from remote servers, but twisted can't seem to send unicode text so I
18 # don't seem to be able to test this :(
19 #stream.sendMessage('PRIVMSG', stream.nick, ':testing testing', prefix=u'김정은')
20 #q.expect('dbus-signal', signal='Received')
21 stream.sendMessage('PRIVMSG', stream.nick, ':testing testing', prefix='12foo')
22 q.expect('dbus-signal', signal='Received')
23
24 call_async(q, conn, 'Disconnect')
25 return True
26
27 if __name__ == '__main__':
28 exec_test(test)
29
66
77 from idletest import exec_test, BaseIRCServer
88 from servicetest import EventPattern, call_async
9 from constants import *
910 import dbus
1011
1112 class LongMessageMangler(BaseIRCServer):
1415 return '%s!%s@%s' % (self.nick, self.user, self.host)
1516
1617 def handlePRIVMSG(self, args, prefix):
17 #chain up to the base class implementation which simply signals a privmsg event
18 #BaseIRCServer.handlePRIVMSG(self, args, prefix)
1918 sender = prefix
2019 recipient = args[0]
2120 sent_message = args[1]
3534 conn.Connect()
3635 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
3736 CHANNEL_NAME = '#idletest'
38 room_handles = conn.RequestHandles(2, [CHANNEL_NAME])
39 call_async(q, conn, 'RequestChannel', 'org.freedesktop.Telepathy.Channel.Type.Text', 2, room_handles[0], True)
37 room_handles = conn.RequestHandles(HT_ROOM, [CHANNEL_NAME])
38 call_async(q, conn, 'RequestChannel', CHANNEL_TYPE_TEXT, HT_ROOM,
39 room_handles[0], True)
4040
4141 ret = q.expect('dbus-return', method='RequestChannel')
4242 q.expect('dbus-signal', signal='MembersChanged')
4343 chan = bus.get_object(conn.bus_name, ret.value[0])
4444
45 text_chan = dbus.Interface(chan,
46 u'org.freedesktop.Telepathy.Channel.Type.Text')
45 text_chan = dbus.Interface(chan, CHANNEL_TYPE_TEXT)
4746 # send a whole bunch of messages in a row
4847 call_async(q, text_chan, 'Send', 0, LONG_MESSAGE)
4948
66
77 from idletest import exec_test
88 from servicetest import EventPattern, call_async
9 from constants import *
910 import dbus
1011
1112 def test(q, bus, conn, stream):
1213 conn.Connect()
1314 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
1415 CHANNEL_NAME = '#idletest'
15 room_handles = conn.RequestHandles(2, [CHANNEL_NAME])
16 call_async(q, conn, 'RequestChannel', 'org.freedesktop.Telepathy.Channel.Type.Text', 2, room_handles[0], True)
16 room_handles = conn.RequestHandles(HT_ROOM, [CHANNEL_NAME])
17 call_async(q, conn, 'RequestChannel', CHANNEL_TYPE_TEXT, HT_ROOM,
18 room_handles[0], True)
1719
1820 ret = q.expect('dbus-return', method='RequestChannel')
1921 q.expect('dbus-signal', signal='MembersChanged')
2022 chan = bus.get_object(conn.bus_name, ret.value[0])
2123
22 text_chan = dbus.Interface(chan,
23 u'org.freedesktop.Telepathy.Channel.Type.Text')
24 text_chan = dbus.Interface(chan, CHANNEL_TYPE_TEXT)
2425
2526 # send a whole bunch of messages in a row and make sure they get delivered
2627 # in the proper order
27 for i in range(4):
28 NUM_MESSAGES = 4
29 for i in range(NUM_MESSAGES):
2830 call_async(q, text_chan, 'Send', 0, str(i))
2931
30 for i in range(4):
31 q.expect('irc-privmsg', data={'message':str(i),'recipient':CHANNEL_NAME})
32 for i in range(NUM_MESSAGES):
33 message = q.expect('stream-PRIVMSG')
34 assert message.data[0] == CHANNEL_NAME
35 assert message.data[1].rstrip('\r\n') == str(i)
3236
3337 call_async(q, conn, 'Disconnect')
3438 return True
66
77 from idletest import exec_test, BaseIRCServer
88 from servicetest import EventPattern, call_async, TimeoutError, sync_dbus
9 from constants import *
910 import dbus
10
11
12 HANDLE_TYPE_CONTACT=1
13 HANDLE_TYPE_ROOM=2
1411
1512 # same nick and channel
1613 CHANNEL = '#foo'
1714 NICK = 'foo'
1815 REMOTEUSER = 'remoteuser'
19
20 class CustomIRCServer(BaseIRCServer):
21
22 def handlePRIVMSG(self, args, prefix):
23 #chain up to the base class implementation which simply signals a privmsg event
24 BaseIRCServer.handlePRIVMSG(self, args, prefix)
25 sender = prefix
26 recipient = args[0]
27 if (recipient == REMOTEUSER):
28 # auto-reply with a private message
29 self.sendMessage('PRIVMSG', self.nick, ':PRIVATE', prefix=REMOTEUSER)
30 elif (recipient == self.room):
31 # auto-reply to the group
32 self.sendMessage('PRIVMSG', self.room, ':GROUP', prefix=REMOTEUSER)
33
34 def handleJOIN(self, args, prefix):
35 self.room = args[0]
36 self.sendMessage('JOIN', self.room, prefix=self.nick)
37 self._sendNameReply(self.room, [self.nick, REMOTEUSER])
3816
3917 group_received_flag = False;
4018 def group_received_cb(id, timestamp, sender, type, flags, text):
4624 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
4725
4826 # join a chat room with the same name as our nick
49 room_handles = conn.RequestHandles(HANDLE_TYPE_ROOM, [CHANNEL])
50 call_async(q, conn, 'RequestChannel',
51 'org.freedesktop.Telepathy.Channel.Type.Text', HANDLE_TYPE_ROOM,
27 room_handles = conn.RequestHandles(HT_ROOM, [CHANNEL])
28 call_async(q, conn, 'RequestChannel', CHANNEL_TYPE_TEXT, HT_ROOM,
5229 room_handles[0], True)
5330 # wait for the join to finish
5431 ret = q.expect('dbus-return', method='RequestChannel')
32 muc_path = ret.value
5533 chan = bus.get_object(conn.bus_name, ret.value[0])
56 group_text_chan = dbus.Interface(chan,
57 u'org.freedesktop.Telepathy.Channel.Type.Text')
34 group_text_chan = dbus.Interface(chan, CHANNEL_TYPE_TEXT)
5835 group_text_chan.connect_to_signal('Received', group_received_cb)
5936 q.expect('dbus-signal', signal='MembersChanged')
6037
61 # now request a private chat channel with the remote contact
62 contact_handles = conn.RequestHandles(HANDLE_TYPE_CONTACT, [REMOTEUSER])
63 chan_path = conn.RequestChannel('org.freedesktop.Telepathy.Channel.Type.Text',
64 HANDLE_TYPE_CONTACT, contact_handles[0], True)
65 chan = bus.get_object(conn.bus_name, chan_path)
66 priv_text_chan = dbus.Interface(chan,
67 u'org.freedesktop.Telepathy.Channel.Type.Text')
38 stream.sendMessage('PRIVMSG', NICK, ':PRIVATE', prefix=REMOTEUSER)
6839
69 # send a private chat message -- the test server is rigged to send a private
70 # chat response
71 call_async(q, priv_text_chan, 'Send', 0, 'foo')
72 q.expect('irc-privmsg', data={'message': 'foo', 'recipient': REMOTEUSER})
73 event = q.expect('dbus-signal', signal='Received',
74 predicate=lambda x: x.args[5]=='PRIVATE' and 'ImChannel' in x.path)
40 event = q.expect('dbus-signal', signal='Received')
41 # this seems a bit fragile, but I'm not entirely sure how else to ensure
42 # that the message is not delivered to the MUC channel
43 assert event.path not in muc_path
7544
7645 # verify that we didn't receive a 'Received' D-Bus signal on the group text
7746 # channel
8352 return True
8453
8554 if __name__ == '__main__':
86 exec_test(test, {'account':NICK}, protocol=CustomIRCServer)
55 exec_test(test, {'account':NICK})
8756
0 """
1 Test that the 'Sent' signal is emitted properly when long messages are split
2 into multiple messages
3 """
4
5 from idletest import exec_test
6 from servicetest import EventPattern, call_async
7 import dbus
8
9 LONG_MESSAGE='one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen twenty twenty-one twenty-two twenty-three twenty-four twenty-five twenty-six twenty-seven twenty-eight twenty-nine thirty thirty-one thirty-two thirty-three thirty-four thirty-five thirty-six thirty-seven thirty-eight thirty-nine forty forty-one forty-two forty-three forty-four forty-five forty-six forty-seven forty-eight forty-nine fifty fifty-one fifty-two fifty-three fifty-four fifty-five fifty-six fifty-seven fifty-eight fifty-nine sixty sixty-one sixty-two sixty-three sixty-four sixty-five sixty-six sixty-seven sixty-eight sixty-nine'
10 MESSAGE_PART_ONE='one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen twenty twenty-one twenty-two twenty-three twenty-four twenty-five twenty-six twenty-seven twenty-eight twenty-nine thirty thirty-one thirty-two thirty-three thirty-four thirty-five thirty-six thirty-seven thirty-eight thirty-nine forty forty-one forty-two forty-thr'
11 MESSAGE_PART_TWO='ee forty-four forty-five forty-six forty-seven forty-eight forty-nine fifty fifty-one fifty-two fifty-three fifty-four fifty-five fifty-six fifty-seven fifty-eight fifty-nine sixty sixty-one sixty-two sixty-three sixty-four sixty-five sixty-six sixty-seven sixty-eight sixty-nine'
12
13 def test(q, bus, conn, stream):
14 conn.Connect()
15 q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
16 CHANNEL_NAME = '#idletest'
17 room_handles = conn.RequestHandles(2, [CHANNEL_NAME])
18 call_async(q, conn, 'RequestChannel', 'org.freedesktop.Telepathy.Channel.Type.Text', 2, room_handles[0], True)
19
20 ret = q.expect('dbus-return', method='RequestChannel')
21 q.expect('dbus-signal', signal='MembersChanged')
22 chan = bus.get_object(conn.bus_name, ret.value[0])
23
24 text_chan = dbus.Interface(chan,
25 u'org.freedesktop.Telepathy.Channel.Type.Text')
26 # send a whole bunch of messages in a row
27 call_async(q, text_chan, 'Send', 0, LONG_MESSAGE)
28
29 # should emit two Sent signals since the message is long enough to be
30 # split into two messages
31 e = q.expect('dbus-signal', signal='Sent')
32 assert e.args[2] == MESSAGE_PART_ONE, e.args[2]
33
34 e = q.expect('dbus-signal', signal='Sent')
35 assert e.args[2] == MESSAGE_PART_TWO, e.args[2]
36
37 call_async(q, conn, 'Disconnect')
38 return True
39
40 if __name__ == '__main__':
41 exec_test(test)
42
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1415 @SET_MAKE@
1516 VPATH = @srcdir@
1617 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
1719 pkglibdir = $(libdir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
1921 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2022 install_sh_DATA = $(install_sh) -c -m 644
2123 install_sh_PROGRAM = $(install_sh) -c
3537 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3638 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
3739 $(top_srcdir)/m4/as-compiler-flag.m4 \
38 $(top_srcdir)/configure.ac
40 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
41 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
42 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
3943 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4044 $(ACLOCAL_M4)
4145 mkinstalldirs = $(install_sh) -d
4246 CONFIG_HEADER = $(top_builddir)/config.h
4347 CONFIG_CLEAN_FILES =
48 CONFIG_CLEAN_VPATH_FILES =
49 AM_V_GEN = $(am__v_GEN_$(V))
50 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
51 am__v_GEN_0 = @echo " GEN " $@;
52 AM_V_at = $(am__v_at_$(V))
53 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
54 am__v_at_0 = @
4455 SOURCES =
4556 DIST_SOURCES =
4657 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
4758 ACLOCAL = @ACLOCAL@
4859 AMTAR = @AMTAR@
60 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
4961 AR = @AR@
5062 AUTOCONF = @AUTOCONF@
5163 AUTOHEADER = @AUTOHEADER@
5971 CFLAGS = @CFLAGS@
6072 CPP = @CPP@
6173 CPPFLAGS = @CPPFLAGS@
62 CXX = @CXX@
63 CXXCPP = @CXXCPP@
64 CXXDEPMODE = @CXXDEPMODE@
65 CXXFLAGS = @CXXFLAGS@
6674 CYGPATH_W = @CYGPATH_W@
6775 DATADIR = @DATADIR@
6876 DBUS_CFLAGS = @DBUS_CFLAGS@
7179 DEFS = @DEFS@
7280 DEPDIR = @DEPDIR@
7381 DSYMUTIL = @DSYMUTIL@
74 ECHO = @ECHO@
82 DUMPBIN = @DUMPBIN@
7583 ECHO_C = @ECHO_C@
7684 ECHO_N = @ECHO_N@
7785 ECHO_T = @ECHO_T@
7886 EGREP = @EGREP@
7987 ERROR_CFLAGS = @ERROR_CFLAGS@
8088 EXEEXT = @EXEEXT@
81 F77 = @F77@
82 FFLAGS = @FFLAGS@
89 FGREP = @FGREP@
8390 GLIB_CFLAGS = @GLIB_CFLAGS@
8491 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
8592 GLIB_LIBS = @GLIB_LIBS@
8996 INSTALL_PROGRAM = @INSTALL_PROGRAM@
9097 INSTALL_SCRIPT = @INSTALL_SCRIPT@
9198 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
99 LD = @LD@
92100 LDFLAGS = @LDFLAGS@
93101 LIBOBJS = @LIBOBJS@
94102 LIBS = @LIBS@
95103 LIBTOOL = @LIBTOOL@
104 LIPO = @LIPO@
96105 LN_S = @LN_S@
97106 LTLIBOBJS = @LTLIBOBJS@
98107 MAKEINFO = @MAKEINFO@
99108 MKDIR_P = @MKDIR_P@
109 NM = @NM@
100110 NMEDIT = @NMEDIT@
111 OBJDUMP = @OBJDUMP@
101112 OBJEXT = @OBJEXT@
102113 OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
103114 OPENSSL_LIBS = @OPENSSL_LIBS@
115 OTOOL = @OTOOL@
116 OTOOL64 = @OTOOL64@
104117 PACKAGE = @PACKAGE@
105118 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
106119 PACKAGE_NAME = @PACKAGE_NAME@
107120 PACKAGE_STRING = @PACKAGE_STRING@
108121 PACKAGE_TARNAME = @PACKAGE_TARNAME@
122 PACKAGE_URL = @PACKAGE_URL@
109123 PACKAGE_VERSION = @PACKAGE_VERSION@
110124 PATH_SEPARATOR = @PATH_SEPARATOR@
111125 PKG_CONFIG = @PKG_CONFIG@
125139 abs_top_builddir = @abs_top_builddir@
126140 abs_top_srcdir = @abs_top_srcdir@
127141 ac_ct_CC = @ac_ct_CC@
128 ac_ct_CXX = @ac_ct_CXX@
129 ac_ct_F77 = @ac_ct_F77@
142 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
130143 am__include = @am__include@
131144 am__leading_dot = @am__leading_dot@
132145 am__quote = @am__quote@
157170 libexecdir = @libexecdir@
158171 localedir = @localedir@
159172 localstatedir = @localstatedir@
173 lt_ECHO = @lt_ECHO@
160174 mandir = @mandir@
161175 mkdir_p = @mkdir_p@
162176 oldincludedir = @oldincludedir@
169183 srcdir = @srcdir@
170184 sysconfdir = @sysconfdir@
171185 target_alias = @target_alias@
186 top_build_prefix = @top_build_prefix@
172187 top_builddir = @top_builddir@
173188 top_srcdir = @top_srcdir@
174189
200215 @for dep in $?; do \
201216 case '$(am__configure_deps)' in \
202217 *$$dep*) \
203 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
204 && exit 0; \
218 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
219 && { if test -f $@; then exit 0; else break; fi; }; \
205220 exit 1;; \
206221 esac; \
207222 done; \
208 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/twisted/tools/Makefile'; \
209 cd $(top_srcdir) && \
210 $(AUTOMAKE) --gnu tests/twisted/tools/Makefile
223 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/twisted/tools/Makefile'; \
224 $(am__cd) $(top_srcdir) && \
225 $(AUTOMAKE) --gnu tests/twisted/tools/Makefile
211226 .PRECIOUS: Makefile
212227 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
213228 @case '$?' in \
225240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
226241 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
227242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
243 $(am__aclocal_m4_deps):
228244
229245 mostlyclean-libtool:
230246 -rm -f *.lo
254270 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
255271 if test -d $$d/$$file; then \
256272 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
273 if test -d "$(distdir)/$$file"; then \
274 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
275 fi; \
257276 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
258 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
277 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
278 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
259279 fi; \
260 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
280 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
261281 else \
262 test -f $(distdir)/$$file \
263 || cp -p $$d/$$file $(distdir)/$$file \
282 test -f "$(distdir)/$$file" \
283 || cp -p $$d/$$file "$(distdir)/$$file" \
264284 || exit 1; \
265285 fi; \
266286 done
291311
292312 distclean-generic:
293313 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
314 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
294315
295316 maintainer-clean-generic:
296317 @echo "This command is intended for maintainers to use"
310331
311332 html: html-am
312333
334 html-am:
335
313336 info: info-am
314337
315338 info-am:
318341
319342 install-dvi: install-dvi-am
320343
344 install-dvi-am:
345
321346 install-exec-am:
322347
323348 install-html: install-html-am
324349
350 install-html-am:
351
325352 install-info: install-info-am
326353
354 install-info-am:
355
327356 install-man:
328357
329358 install-pdf: install-pdf-am
330359
360 install-pdf-am:
361
331362 install-ps: install-ps-am
363
364 install-ps-am:
332365
333366 installcheck-am:
334367
350383
351384 uninstall-am:
352385
353 .MAKE: install-am install-strip
386 .MAKE: all check install install-am install-strip
354387
355388 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
356389 distclean distclean-generic distclean-libtool distdir dvi \
376409 # non-archaic tarballs)
377410 org.freedesktop.Telepathy.ConnectionManager.%.service: %.service.in
378411 sed -e "s|[@]abs_top_builddir[@]|@abs_top_builddir@|g" $< > $@
412
379413 # Tell versions [3.59,3.63) of GNU make to not export all variables.
380414 # Otherwise a system limit (for SysV at least) may be exceeded.
381415 .NOEXPORT:
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1415 @SET_MAKE@
1516 VPATH = @srcdir@
1617 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
1719 pkglibdir = $(libdir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
1921 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2022 install_sh_DATA = $(install_sh) -c -m 644
2123 install_sh_PROGRAM = $(install_sh) -c
3537 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3638 am__aclocal_m4_deps = $(top_srcdir)/m4/as-ac-expand.m4 \
3739 $(top_srcdir)/m4/as-compiler-flag.m4 \
38 $(top_srcdir)/configure.ac
40 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
41 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
42 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
3943 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4044 $(ACLOCAL_M4)
4145 mkinstalldirs = $(install_sh) -d
4246 CONFIG_HEADER = $(top_builddir)/config.h
4347 CONFIG_CLEAN_FILES =
48 CONFIG_CLEAN_VPATH_FILES =
49 AM_V_GEN = $(am__v_GEN_$(V))
50 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
51 am__v_GEN_0 = @echo " GEN " $@;
52 AM_V_at = $(am__v_at_$(V))
53 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
54 am__v_at_0 = @
4455 SOURCES =
4556 DIST_SOURCES =
4657 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
4758 ACLOCAL = @ACLOCAL@
4859 AMTAR = @AMTAR@
60 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
4961 AR = @AR@
5062 AUTOCONF = @AUTOCONF@
5163 AUTOHEADER = @AUTOHEADER@
5971 CFLAGS = @CFLAGS@
6072 CPP = @CPP@
6173 CPPFLAGS = @CPPFLAGS@
62 CXX = @CXX@
63 CXXCPP = @CXXCPP@
64 CXXDEPMODE = @CXXDEPMODE@
65 CXXFLAGS = @CXXFLAGS@
6674 CYGPATH_W = @CYGPATH_W@
6775 DATADIR = @DATADIR@
6876 DBUS_CFLAGS = @DBUS_CFLAGS@
7179 DEFS = @DEFS@
7280 DEPDIR = @DEPDIR@
7381 DSYMUTIL = @DSYMUTIL@
74 ECHO = @ECHO@
82 DUMPBIN = @DUMPBIN@
7583 ECHO_C = @ECHO_C@
7684 ECHO_N = @ECHO_N@
7785 ECHO_T = @ECHO_T@
7886 EGREP = @EGREP@
7987 ERROR_CFLAGS = @ERROR_CFLAGS@
8088 EXEEXT = @EXEEXT@
81 F77 = @F77@
82 FFLAGS = @FFLAGS@
89 FGREP = @FGREP@
8390 GLIB_CFLAGS = @GLIB_CFLAGS@
8491 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
8592 GLIB_LIBS = @GLIB_LIBS@
8996 INSTALL_PROGRAM = @INSTALL_PROGRAM@
9097 INSTALL_SCRIPT = @INSTALL_SCRIPT@
9198 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
99 LD = @LD@
92100 LDFLAGS = @LDFLAGS@
93101 LIBOBJS = @LIBOBJS@
94102 LIBS = @LIBS@
95103 LIBTOOL = @LIBTOOL@
104 LIPO = @LIPO@
96105 LN_S = @LN_S@
97106 LTLIBOBJS = @LTLIBOBJS@
98107 MAKEINFO = @MAKEINFO@
99108 MKDIR_P = @MKDIR_P@
109 NM = @NM@
100110 NMEDIT = @NMEDIT@
111 OBJDUMP = @OBJDUMP@
101112 OBJEXT = @OBJEXT@
102113 OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
103114 OPENSSL_LIBS = @OPENSSL_LIBS@
115 OTOOL = @OTOOL@
116 OTOOL64 = @OTOOL64@
104117 PACKAGE = @PACKAGE@
105118 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
106119 PACKAGE_NAME = @PACKAGE_NAME@
107120 PACKAGE_STRING = @PACKAGE_STRING@
108121 PACKAGE_TARNAME = @PACKAGE_TARNAME@
122 PACKAGE_URL = @PACKAGE_URL@
109123 PACKAGE_VERSION = @PACKAGE_VERSION@
110124 PATH_SEPARATOR = @PATH_SEPARATOR@
111125 PKG_CONFIG = @PKG_CONFIG@
125139 abs_top_builddir = @abs_top_builddir@
126140 abs_top_srcdir = @abs_top_srcdir@
127141 ac_ct_CC = @ac_ct_CC@
128 ac_ct_CXX = @ac_ct_CXX@
129 ac_ct_F77 = @ac_ct_F77@
142 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
130143 am__include = @am__include@
131144 am__leading_dot = @am__leading_dot@
132145 am__quote = @am__quote@
157170 libexecdir = @libexecdir@
158171 localedir = @localedir@
159172 localstatedir = @localstatedir@
173 lt_ECHO = @lt_ECHO@
160174 mandir = @mandir@
161175 mkdir_p = @mkdir_p@
162176 oldincludedir = @oldincludedir@
169183 srcdir = @srcdir@
170184 sysconfdir = @sysconfdir@
171185 target_alias = @target_alias@
186 top_build_prefix = @top_build_prefix@
172187 top_builddir = @top_builddir@
173188 top_srcdir = @top_srcdir@
174189 EXTRA_DIST = \
188203 @for dep in $?; do \
189204 case '$(am__configure_deps)' in \
190205 *$$dep*) \
191 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
192 && exit 0; \
206 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
207 && { if test -f $@; then exit 0; else break; fi; }; \
193208 exit 1;; \
194209 esac; \
195210 done; \
196 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tools/Makefile'; \
197 cd $(top_srcdir) && \
198 $(AUTOMAKE) --gnu tools/Makefile
211 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tools/Makefile'; \
212 $(am__cd) $(top_srcdir) && \
213 $(AUTOMAKE) --gnu tools/Makefile
199214 .PRECIOUS: Makefile
200215 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
201216 @case '$?' in \
213228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
214229 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
215230 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
231 $(am__aclocal_m4_deps):
216232
217233 mostlyclean-libtool:
218234 -rm -f *.lo
242258 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
243259 if test -d $$d/$$file; then \
244260 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
261 if test -d "$(distdir)/$$file"; then \
262 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
263 fi; \
245264 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
246 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
265 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
266 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
247267 fi; \
248 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
268 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
249269 else \
250 test -f $(distdir)/$$file \
251 || cp -p $$d/$$file $(distdir)/$$file \
270 test -f "$(distdir)/$$file" \
271 || cp -p $$d/$$file "$(distdir)/$$file" \
252272 || exit 1; \
253273 fi; \
254274 done
277297
278298 distclean-generic:
279299 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
300 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
280301
281302 maintainer-clean-generic:
282303 @echo "This command is intended for maintainers to use"
295316
296317 html: html-am
297318
319 html-am:
320
298321 info: info-am
299322
300323 info-am:
303326
304327 install-dvi: install-dvi-am
305328
329 install-dvi-am:
330
306331 install-exec-am:
307332
308333 install-html: install-html-am
309334
335 install-html-am:
336
310337 install-info: install-info-am
311338
339 install-info-am:
340
312341 install-man:
313342
314343 install-pdf: install-pdf-am
315344
345 install-pdf-am:
346
316347 install-ps: install-ps-am
348
349 install-ps-am:
317350
318351 installcheck-am:
319352
354387
355388 glib-signals-marshal-gen.py: libglibcodegen.py
356389 touch $@
390
357391 # Tell versions [3.59,3.63) of GNU make to not export all variables.
358392 # Otherwise a system limit (for SysV at least) may be exceeded.
359393 .NOEXPORT:
0 ## Useful top-level Makefile.am snippets for Telepathy projects.
1
2 dist-hook:
3 chmod u+w ${distdir}/ChangeLog
4 if test -d ${top_srcdir}/.git; then \
5 git log --stat > ${distdir}/ChangeLog || \
6 git log > ${distdir}/ChangeLog; \
7 fi
8
9 maintainer-upload-release: _maintainer-upload-release
10
11 _maintainer-upload-release-check:
12 @case @VERSION@ in \
13 (*.*.*.*) \
14 echo "@VERSION@ is not a release" >&2; \
15 exit 2; \
16 ;; \
17 esac
18 test -f @PACKAGE@-@VERSION@.tar.gz
19 test -f @PACKAGE@-@VERSION@.tar.gz.asc
20 gpg --verify @PACKAGE@-@VERSION@.tar.gz.asc
21
22 _maintainer-upload-release: _maintainer-upload-release-check
23 rsync -vzP @PACKAGE@-@VERSION@.tar.gz telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE@-@VERSION@.tar.gz
24 rsync -vzP @PACKAGE@-@VERSION@.tar.gz.asc telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE@-@VERSION@.tar.gz.asc
25
26 ## vim:set ft=automake: