Codebase list krb5-auth-dialog / 80cd3a9
Merge commit 'upstream/0.8+svn128' Guido Günther 15 years ago
51 changed file(s) with 7476 addition(s) and 56087 deletion(s). Raw diff Collapse all Expand all
0 aclocal.m4
1 autom4te.cache
2 COPYING
3 INSTALL
4 configure
5 config.log
6 config.status
7 config.h
8 config.h.in
9 compile
10 config.guess
11 config.sub
12 depcomp
13 Makefile
14 Makefile.in
15 intltool-extract
16 intltool-merge
17 intltool-update
18 intltool-extract.in
19 intltool-merge.in
20 intltool-update.in
21 libtool*
22 ltmain.sh
23 install-sh
24 missing
25 mkinstalldirs
26 stamp-h1
27 krb5-auth-dialog.spec
28 krb5-auth-dialog*.tar.bz2
29 krb5-auth-dialog*.tar.gz
30
00 Christopher Aillon <caillon@redhat.com>
11 Jonathan Blandford <jrb@redhat.com>
2 Guido Günther <agx@sigxcpu.org>
+0
-674
COPYING less more
0 GNU GENERAL PUBLIC LICENSE
1 Version 3, 29 June 2007
2
3 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4 Everyone is permitted to copy and distribute verbatim copies
5 of this license document, but changing it is not allowed.
6
7 Preamble
8
9 The GNU General Public License is a free, copyleft license for
10 software and other kinds of works.
11
12 The licenses for most software and other practical works are designed
13 to take away your freedom to share and change the works. By contrast,
14 the GNU General Public License is intended to guarantee your freedom to
15 share and change all versions of a program--to make sure it remains free
16 software for all its users. We, the Free Software Foundation, use the
17 GNU General Public License for most of our software; it applies also to
18 any other work released this way by its authors. You can apply it to
19 your programs, too.
20
21 When we speak of free software, we are referring to freedom, not
22 price. Our General Public Licenses are designed to make sure that you
23 have the freedom to distribute copies of free software (and charge for
24 them if you wish), that you receive source code or can get it if you
25 want it, that you can change the software or use pieces of it in new
26 free programs, and that you know you can do these things.
27
28 To protect your rights, we need to prevent others from denying you
29 these rights or asking you to surrender the rights. Therefore, you have
30 certain responsibilities if you distribute copies of the software, or if
31 you modify it: responsibilities to respect the freedom of others.
32
33 For example, if you distribute copies of such a program, whether
34 gratis or for a fee, you must pass on to the recipients the same
35 freedoms that you received. You must make sure that they, too, receive
36 or can get the source code. And you must show them these terms so they
37 know their rights.
38
39 Developers that use the GNU GPL protect your rights with two steps:
40 (1) assert copyright on the software, and (2) offer you this License
41 giving you legal permission to copy, distribute and/or modify it.
42
43 For the developers' and authors' protection, the GPL clearly explains
44 that there is no warranty for this free software. For both users' and
45 authors' sake, the GPL requires that modified versions be marked as
46 changed, so that their problems will not be attributed erroneously to
47 authors of previous versions.
48
49 Some devices are designed to deny users access to install or run
50 modified versions of the software inside them, although the manufacturer
51 can do so. This is fundamentally incompatible with the aim of
52 protecting users' freedom to change the software. The systematic
53 pattern of such abuse occurs in the area of products for individuals to
54 use, which is precisely where it is most unacceptable. Therefore, we
55 have designed this version of the GPL to prohibit the practice for those
56 products. If such problems arise substantially in other domains, we
57 stand ready to extend this provision to those domains in future versions
58 of the GPL, as needed to protect the freedom of users.
59
60 Finally, every program is threatened constantly by software patents.
61 States should not allow patents to restrict development and use of
62 software on general-purpose computers, but in those that do, we wish to
63 avoid the special danger that patents applied to a free program could
64 make it effectively proprietary. To prevent this, the GPL assures that
65 patents cannot be used to render the program non-free.
66
67 The precise terms and conditions for copying, distribution and
68 modification follow.
69
70 TERMS AND CONDITIONS
71
72 0. Definitions.
73
74 "This License" refers to version 3 of the GNU General Public License.
75
76 "Copyright" also means copyright-like laws that apply to other kinds of
77 works, such as semiconductor masks.
78
79 "The Program" refers to any copyrightable work licensed under this
80 License. Each licensee is addressed as "you". "Licensees" and
81 "recipients" may be individuals or organizations.
82
83 To "modify" a work means to copy from or adapt all or part of the work
84 in a fashion requiring copyright permission, other than the making of an
85 exact copy. The resulting work is called a "modified version" of the
86 earlier work or a work "based on" the earlier work.
87
88 A "covered work" means either the unmodified Program or a work based
89 on the Program.
90
91 To "propagate" a work means to do anything with it that, without
92 permission, would make you directly or secondarily liable for
93 infringement under applicable copyright law, except executing it on a
94 computer or modifying a private copy. Propagation includes copying,
95 distribution (with or without modification), making available to the
96 public, and in some countries other activities as well.
97
98 To "convey" a work means any kind of propagation that enables other
99 parties to make or receive copies. Mere interaction with a user through
100 a computer network, with no transfer of a copy, is not conveying.
101
102 An interactive user interface displays "Appropriate Legal Notices"
103 to the extent that it includes a convenient and prominently visible
104 feature that (1) displays an appropriate copyright notice, and (2)
105 tells the user that there is no warranty for the work (except to the
106 extent that warranties are provided), that licensees may convey the
107 work under this License, and how to view a copy of this License. If
108 the interface presents a list of user commands or options, such as a
109 menu, a prominent item in the list meets this criterion.
110
111 1. Source Code.
112
113 The "source code" for a work means the preferred form of the work
114 for making modifications to it. "Object code" means any non-source
115 form of a work.
116
117 A "Standard Interface" means an interface that either is an official
118 standard defined by a recognized standards body, or, in the case of
119 interfaces specified for a particular programming language, one that
120 is widely used among developers working in that language.
121
122 The "System Libraries" of an executable work include anything, other
123 than the work as a whole, that (a) is included in the normal form of
124 packaging a Major Component, but which is not part of that Major
125 Component, and (b) serves only to enable use of the work with that
126 Major Component, or to implement a Standard Interface for which an
127 implementation is available to the public in source code form. A
128 "Major Component", in this context, means a major essential component
129 (kernel, window system, and so on) of the specific operating system
130 (if any) on which the executable work runs, or a compiler used to
131 produce the work, or an object code interpreter used to run it.
132
133 The "Corresponding Source" for a work in object code form means all
134 the source code needed to generate, install, and (for an executable
135 work) run the object code and to modify the work, including scripts to
136 control those activities. However, it does not include the work's
137 System Libraries, or general-purpose tools or generally available free
138 programs which are used unmodified in performing those activities but
139 which are not part of the work. For example, Corresponding Source
140 includes interface definition files associated with source files for
141 the work, and the source code for shared libraries and dynamically
142 linked subprograms that the work is specifically designed to require,
143 such as by intimate data communication or control flow between those
144 subprograms and other parts of the work.
145
146 The Corresponding Source need not include anything that users
147 can regenerate automatically from other parts of the Corresponding
148 Source.
149
150 The Corresponding Source for a work in source code form is that
151 same work.
152
153 2. Basic Permissions.
154
155 All rights granted under this License are granted for the term of
156 copyright on the Program, and are irrevocable provided the stated
157 conditions are met. This License explicitly affirms your unlimited
158 permission to run the unmodified Program. The output from running a
159 covered work is covered by this License only if the output, given its
160 content, constitutes a covered work. This License acknowledges your
161 rights of fair use or other equivalent, as provided by copyright law.
162
163 You may make, run and propagate covered works that you do not
164 convey, without conditions so long as your license otherwise remains
165 in force. You may convey covered works to others for the sole purpose
166 of having them make modifications exclusively for you, or provide you
167 with facilities for running those works, provided that you comply with
168 the terms of this License in conveying all material for which you do
169 not control copyright. Those thus making or running the covered works
170 for you must do so exclusively on your behalf, under your direction
171 and control, on terms that prohibit them from making any copies of
172 your copyrighted material outside their relationship with you.
173
174 Conveying under any other circumstances is permitted solely under
175 the conditions stated below. Sublicensing is not allowed; section 10
176 makes it unnecessary.
177
178 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
179
180 No covered work shall be deemed part of an effective technological
181 measure under any applicable law fulfilling obligations under article
182 11 of the WIPO copyright treaty adopted on 20 December 1996, or
183 similar laws prohibiting or restricting circumvention of such
184 measures.
185
186 When you convey a covered work, you waive any legal power to forbid
187 circumvention of technological measures to the extent such circumvention
188 is effected by exercising rights under this License with respect to
189 the covered work, and you disclaim any intention to limit operation or
190 modification of the work as a means of enforcing, against the work's
191 users, your or third parties' legal rights to forbid circumvention of
192 technological measures.
193
194 4. Conveying Verbatim Copies.
195
196 You may convey verbatim copies of the Program's source code as you
197 receive it, in any medium, provided that you conspicuously and
198 appropriately publish on each copy an appropriate copyright notice;
199 keep intact all notices stating that this License and any
200 non-permissive terms added in accord with section 7 apply to the code;
201 keep intact all notices of the absence of any warranty; and give all
202 recipients a copy of this License along with the Program.
203
204 You may charge any price or no price for each copy that you convey,
205 and you may offer support or warranty protection for a fee.
206
207 5. Conveying Modified Source Versions.
208
209 You may convey a work based on the Program, or the modifications to
210 produce it from the Program, in the form of source code under the
211 terms of section 4, provided that you also meet all of these conditions:
212
213 a) The work must carry prominent notices stating that you modified
214 it, and giving a relevant date.
215
216 b) The work must carry prominent notices stating that it is
217 released under this License and any conditions added under section
218 7. This requirement modifies the requirement in section 4 to
219 "keep intact all notices".
220
221 c) You must license the entire work, as a whole, under this
222 License to anyone who comes into possession of a copy. This
223 License will therefore apply, along with any applicable section 7
224 additional terms, to the whole of the work, and all its parts,
225 regardless of how they are packaged. This License gives no
226 permission to license the work in any other way, but it does not
227 invalidate such permission if you have separately received it.
228
229 d) If the work has interactive user interfaces, each must display
230 Appropriate Legal Notices; however, if the Program has interactive
231 interfaces that do not display Appropriate Legal Notices, your
232 work need not make them do so.
233
234 A compilation of a covered work with other separate and independent
235 works, which are not by their nature extensions of the covered work,
236 and which are not combined with it such as to form a larger program,
237 in or on a volume of a storage or distribution medium, is called an
238 "aggregate" if the compilation and its resulting copyright are not
239 used to limit the access or legal rights of the compilation's users
240 beyond what the individual works permit. Inclusion of a covered work
241 in an aggregate does not cause this License to apply to the other
242 parts of the aggregate.
243
244 6. Conveying Non-Source Forms.
245
246 You may convey a covered work in object code form under the terms
247 of sections 4 and 5, provided that you also convey the
248 machine-readable Corresponding Source under the terms of this License,
249 in one of these ways:
250
251 a) Convey the object code in, or embodied in, a physical product
252 (including a physical distribution medium), accompanied by the
253 Corresponding Source fixed on a durable physical medium
254 customarily used for software interchange.
255
256 b) Convey the object code in, or embodied in, a physical product
257 (including a physical distribution medium), accompanied by a
258 written offer, valid for at least three years and valid for as
259 long as you offer spare parts or customer support for that product
260 model, to give anyone who possesses the object code either (1) a
261 copy of the Corresponding Source for all the software in the
262 product that is covered by this License, on a durable physical
263 medium customarily used for software interchange, for a price no
264 more than your reasonable cost of physically performing this
265 conveying of source, or (2) access to copy the
266 Corresponding Source from a network server at no charge.
267
268 c) Convey individual copies of the object code with a copy of the
269 written offer to provide the Corresponding Source. This
270 alternative is allowed only occasionally and noncommercially, and
271 only if you received the object code with such an offer, in accord
272 with subsection 6b.
273
274 d) Convey the object code by offering access from a designated
275 place (gratis or for a charge), and offer equivalent access to the
276 Corresponding Source in the same way through the same place at no
277 further charge. You need not require recipients to copy the
278 Corresponding Source along with the object code. If the place to
279 copy the object code is a network server, the Corresponding Source
280 may be on a different server (operated by you or a third party)
281 that supports equivalent copying facilities, provided you maintain
282 clear directions next to the object code saying where to find the
283 Corresponding Source. Regardless of what server hosts the
284 Corresponding Source, you remain obligated to ensure that it is
285 available for as long as needed to satisfy these requirements.
286
287 e) Convey the object code using peer-to-peer transmission, provided
288 you inform other peers where the object code and Corresponding
289 Source of the work are being offered to the general public at no
290 charge under subsection 6d.
291
292 A separable portion of the object code, whose source code is excluded
293 from the Corresponding Source as a System Library, need not be
294 included in conveying the object code work.
295
296 A "User Product" is either (1) a "consumer product", which means any
297 tangible personal property which is normally used for personal, family,
298 or household purposes, or (2) anything designed or sold for incorporation
299 into a dwelling. In determining whether a product is a consumer product,
300 doubtful cases shall be resolved in favor of coverage. For a particular
301 product received by a particular user, "normally used" refers to a
302 typical or common use of that class of product, regardless of the status
303 of the particular user or of the way in which the particular user
304 actually uses, or expects or is expected to use, the product. A product
305 is a consumer product regardless of whether the product has substantial
306 commercial, industrial or non-consumer uses, unless such uses represent
307 the only significant mode of use of the product.
308
309 "Installation Information" for a User Product means any methods,
310 procedures, authorization keys, or other information required to install
311 and execute modified versions of a covered work in that User Product from
312 a modified version of its Corresponding Source. The information must
313 suffice to ensure that the continued functioning of the modified object
314 code is in no case prevented or interfered with solely because
315 modification has been made.
316
317 If you convey an object code work under this section in, or with, or
318 specifically for use in, a User Product, and the conveying occurs as
319 part of a transaction in which the right of possession and use of the
320 User Product is transferred to the recipient in perpetuity or for a
321 fixed term (regardless of how the transaction is characterized), the
322 Corresponding Source conveyed under this section must be accompanied
323 by the Installation Information. But this requirement does not apply
324 if neither you nor any third party retains the ability to install
325 modified object code on the User Product (for example, the work has
326 been installed in ROM).
327
328 The requirement to provide Installation Information does not include a
329 requirement to continue to provide support service, warranty, or updates
330 for a work that has been modified or installed by the recipient, or for
331 the User Product in which it has been modified or installed. Access to a
332 network may be denied when the modification itself materially and
333 adversely affects the operation of the network or violates the rules and
334 protocols for communication across the network.
335
336 Corresponding Source conveyed, and Installation Information provided,
337 in accord with this section must be in a format that is publicly
338 documented (and with an implementation available to the public in
339 source code form), and must require no special password or key for
340 unpacking, reading or copying.
341
342 7. Additional Terms.
343
344 "Additional permissions" are terms that supplement the terms of this
345 License by making exceptions from one or more of its conditions.
346 Additional permissions that are applicable to the entire Program shall
347 be treated as though they were included in this License, to the extent
348 that they are valid under applicable law. If additional permissions
349 apply only to part of the Program, that part may be used separately
350 under those permissions, but the entire Program remains governed by
351 this License without regard to the additional permissions.
352
353 When you convey a copy of a covered work, you may at your option
354 remove any additional permissions from that copy, or from any part of
355 it. (Additional permissions may be written to require their own
356 removal in certain cases when you modify the work.) You may place
357 additional permissions on material, added by you to a covered work,
358 for which you have or can give appropriate copyright permission.
359
360 Notwithstanding any other provision of this License, for material you
361 add to a covered work, you may (if authorized by the copyright holders of
362 that material) supplement the terms of this License with terms:
363
364 a) Disclaiming warranty or limiting liability differently from the
365 terms of sections 15 and 16 of this License; or
366
367 b) Requiring preservation of specified reasonable legal notices or
368 author attributions in that material or in the Appropriate Legal
369 Notices displayed by works containing it; or
370
371 c) Prohibiting misrepresentation of the origin of that material, or
372 requiring that modified versions of such material be marked in
373 reasonable ways as different from the original version; or
374
375 d) Limiting the use for publicity purposes of names of licensors or
376 authors of the material; or
377
378 e) Declining to grant rights under trademark law for use of some
379 trade names, trademarks, or service marks; or
380
381 f) Requiring indemnification of licensors and authors of that
382 material by anyone who conveys the material (or modified versions of
383 it) with contractual assumptions of liability to the recipient, for
384 any liability that these contractual assumptions directly impose on
385 those licensors and authors.
386
387 All other non-permissive additional terms are considered "further
388 restrictions" within the meaning of section 10. If the Program as you
389 received it, or any part of it, contains a notice stating that it is
390 governed by this License along with a term that is a further
391 restriction, you may remove that term. If a license document contains
392 a further restriction but permits relicensing or conveying under this
393 License, you may add to a covered work material governed by the terms
394 of that license document, provided that the further restriction does
395 not survive such relicensing or conveying.
396
397 If you add terms to a covered work in accord with this section, you
398 must place, in the relevant source files, a statement of the
399 additional terms that apply to those files, or a notice indicating
400 where to find the applicable terms.
401
402 Additional terms, permissive or non-permissive, may be stated in the
403 form of a separately written license, or stated as exceptions;
404 the above requirements apply either way.
405
406 8. Termination.
407
408 You may not propagate or modify a covered work except as expressly
409 provided under this License. Any attempt otherwise to propagate or
410 modify it is void, and will automatically terminate your rights under
411 this License (including any patent licenses granted under the third
412 paragraph of section 11).
413
414 However, if you cease all violation of this License, then your
415 license from a particular copyright holder is reinstated (a)
416 provisionally, unless and until the copyright holder explicitly and
417 finally terminates your license, and (b) permanently, if the copyright
418 holder fails to notify you of the violation by some reasonable means
419 prior to 60 days after the cessation.
420
421 Moreover, your license from a particular copyright holder is
422 reinstated permanently if the copyright holder notifies you of the
423 violation by some reasonable means, this is the first time you have
424 received notice of violation of this License (for any work) from that
425 copyright holder, and you cure the violation prior to 30 days after
426 your receipt of the notice.
427
428 Termination of your rights under this section does not terminate the
429 licenses of parties who have received copies or rights from you under
430 this License. If your rights have been terminated and not permanently
431 reinstated, you do not qualify to receive new licenses for the same
432 material under section 10.
433
434 9. Acceptance Not Required for Having Copies.
435
436 You are not required to accept this License in order to receive or
437 run a copy of the Program. Ancillary propagation of a covered work
438 occurring solely as a consequence of using peer-to-peer transmission
439 to receive a copy likewise does not require acceptance. However,
440 nothing other than this License grants you permission to propagate or
441 modify any covered work. These actions infringe copyright if you do
442 not accept this License. Therefore, by modifying or propagating a
443 covered work, you indicate your acceptance of this License to do so.
444
445 10. Automatic Licensing of Downstream Recipients.
446
447 Each time you convey a covered work, the recipient automatically
448 receives a license from the original licensors, to run, modify and
449 propagate that work, subject to this License. You are not responsible
450 for enforcing compliance by third parties with this License.
451
452 An "entity transaction" is a transaction transferring control of an
453 organization, or substantially all assets of one, or subdividing an
454 organization, or merging organizations. If propagation of a covered
455 work results from an entity transaction, each party to that
456 transaction who receives a copy of the work also receives whatever
457 licenses to the work the party's predecessor in interest had or could
458 give under the previous paragraph, plus a right to possession of the
459 Corresponding Source of the work from the predecessor in interest, if
460 the predecessor has it or can get it with reasonable efforts.
461
462 You may not impose any further restrictions on the exercise of the
463 rights granted or affirmed under this License. For example, you may
464 not impose a license fee, royalty, or other charge for exercise of
465 rights granted under this License, and you may not initiate litigation
466 (including a cross-claim or counterclaim in a lawsuit) alleging that
467 any patent claim is infringed by making, using, selling, offering for
468 sale, or importing the Program or any portion of it.
469
470 11. Patents.
471
472 A "contributor" is a copyright holder who authorizes use under this
473 License of the Program or a work on which the Program is based. The
474 work thus licensed is called the contributor's "contributor version".
475
476 A contributor's "essential patent claims" are all patent claims
477 owned or controlled by the contributor, whether already acquired or
478 hereafter acquired, that would be infringed by some manner, permitted
479 by this License, of making, using, or selling its contributor version,
480 but do not include claims that would be infringed only as a
481 consequence of further modification of the contributor version. For
482 purposes of this definition, "control" includes the right to grant
483 patent sublicenses in a manner consistent with the requirements of
484 this License.
485
486 Each contributor grants you a non-exclusive, worldwide, royalty-free
487 patent license under the contributor's essential patent claims, to
488 make, use, sell, offer for sale, import and otherwise run, modify and
489 propagate the contents of its contributor version.
490
491 In the following three paragraphs, a "patent license" is any express
492 agreement or commitment, however denominated, not to enforce a patent
493 (such as an express permission to practice a patent or covenant not to
494 sue for patent infringement). To "grant" such a patent license to a
495 party means to make such an agreement or commitment not to enforce a
496 patent against the party.
497
498 If you convey a covered work, knowingly relying on a patent license,
499 and the Corresponding Source of the work is not available for anyone
500 to copy, free of charge and under the terms of this License, through a
501 publicly available network server or other readily accessible means,
502 then you must either (1) cause the Corresponding Source to be so
503 available, or (2) arrange to deprive yourself of the benefit of the
504 patent license for this particular work, or (3) arrange, in a manner
505 consistent with the requirements of this License, to extend the patent
506 license to downstream recipients. "Knowingly relying" means you have
507 actual knowledge that, but for the patent license, your conveying the
508 covered work in a country, or your recipient's use of the covered work
509 in a country, would infringe one or more identifiable patents in that
510 country that you have reason to believe are valid.
511
512 If, pursuant to or in connection with a single transaction or
513 arrangement, you convey, or propagate by procuring conveyance of, a
514 covered work, and grant a patent license to some of the parties
515 receiving the covered work authorizing them to use, propagate, modify
516 or convey a specific copy of the covered work, then the patent license
517 you grant is automatically extended to all recipients of the covered
518 work and works based on it.
519
520 A patent license is "discriminatory" if it does not include within
521 the scope of its coverage, prohibits the exercise of, or is
522 conditioned on the non-exercise of one or more of the rights that are
523 specifically granted under this License. You may not convey a covered
524 work if you are a party to an arrangement with a third party that is
525 in the business of distributing software, under which you make payment
526 to the third party based on the extent of your activity of conveying
527 the work, and under which the third party grants, to any of the
528 parties who would receive the covered work from you, a discriminatory
529 patent license (a) in connection with copies of the covered work
530 conveyed by you (or copies made from those copies), or (b) primarily
531 for and in connection with specific products or compilations that
532 contain the covered work, unless you entered into that arrangement,
533 or that patent license was granted, prior to 28 March 2007.
534
535 Nothing in this License shall be construed as excluding or limiting
536 any implied license or other defenses to infringement that may
537 otherwise be available to you under applicable patent law.
538
539 12. No Surrender of Others' Freedom.
540
541 If conditions are imposed on you (whether by court order, agreement or
542 otherwise) that contradict the conditions of this License, they do not
543 excuse you from the conditions of this License. If you cannot convey a
544 covered work so as to satisfy simultaneously your obligations under this
545 License and any other pertinent obligations, then as a consequence you may
546 not convey it at all. For example, if you agree to terms that obligate you
547 to collect a royalty for further conveying from those to whom you convey
548 the Program, the only way you could satisfy both those terms and this
549 License would be to refrain entirely from conveying the Program.
550
551 13. Use with the GNU Affero General Public License.
552
553 Notwithstanding any other provision of this License, you have
554 permission to link or combine any covered work with a work licensed
555 under version 3 of the GNU Affero General Public License into a single
556 combined work, and to convey the resulting work. The terms of this
557 License will continue to apply to the part which is the covered work,
558 but the special requirements of the GNU Affero General Public License,
559 section 13, concerning interaction through a network will apply to the
560 combination as such.
561
562 14. Revised Versions of this License.
563
564 The Free Software Foundation may publish revised and/or new versions of
565 the GNU General Public License from time to time. Such new versions will
566 be similar in spirit to the present version, but may differ in detail to
567 address new problems or concerns.
568
569 Each version is given a distinguishing version number. If the
570 Program specifies that a certain numbered version of the GNU General
571 Public License "or any later version" applies to it, you have the
572 option of following the terms and conditions either of that numbered
573 version or of any later version published by the Free Software
574 Foundation. If the Program does not specify a version number of the
575 GNU General Public License, you may choose any version ever published
576 by the Free Software Foundation.
577
578 If the Program specifies that a proxy can decide which future
579 versions of the GNU General Public License can be used, that proxy's
580 public statement of acceptance of a version permanently authorizes you
581 to choose that version for the Program.
582
583 Later license versions may give you additional or different
584 permissions. However, no additional obligations are imposed on any
585 author or copyright holder as a result of your choosing to follow a
586 later version.
587
588 15. Disclaimer of Warranty.
589
590 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
591 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
592 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
593 OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
594 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
595 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
596 IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
597 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
598
599 16. Limitation of Liability.
600
601 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
602 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
603 THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
604 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
605 USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
606 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
607 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
608 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
609 SUCH DAMAGES.
610
611 17. Interpretation of Sections 15 and 16.
612
613 If the disclaimer of warranty and limitation of liability provided
614 above cannot be given local legal effect according to their terms,
615 reviewing courts shall apply local law that most closely approximates
616 an absolute waiver of all civil liability in connection with the
617 Program, unless a warranty or assumption of liability accompanies a
618 copy of the Program in return for a fee.
619
620 END OF TERMS AND CONDITIONS
621
622 How to Apply These Terms to Your New Programs
623
624 If you develop a new program, and you want it to be of the greatest
625 possible use to the public, the best way to achieve this is to make it
626 free software which everyone can redistribute and change under these terms.
627
628 To do so, attach the following notices to the program. It is safest
629 to attach them to the start of each source file to most effectively
630 state the exclusion of warranty; and each file should have at least
631 the "copyright" line and a pointer to where the full notice is found.
632
633 <one line to give the program's name and a brief idea of what it does.>
634 Copyright (C) <year> <name of author>
635
636 This program is free software: you can redistribute it and/or modify
637 it under the terms of the GNU General Public License as published by
638 the Free Software Foundation, either version 3 of the License, or
639 (at your option) any later version.
640
641 This program is distributed in the hope that it will be useful,
642 but WITHOUT ANY WARRANTY; without even the implied warranty of
643 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
644 GNU General Public License for more details.
645
646 You should have received a copy of the GNU General Public License
647 along with this program. If not, see <http://www.gnu.org/licenses/>.
648
649 Also add information on how to contact you by electronic and paper mail.
650
651 If the program does terminal interaction, make it output a short
652 notice like this when it starts in an interactive mode:
653
654 <program> Copyright (C) <year> <name of author>
655 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
656 This is free software, and you are welcome to redistribute it
657 under certain conditions; type `show c' for details.
658
659 The hypothetical commands `show w' and `show c' should show the appropriate
660 parts of the General Public License. Of course, your program's commands
661 might be different; for a GUI interface, you would use an "about box".
662
663 You should also get your employer (if you work as a programmer) or school,
664 if any, to sign a "copyright disclaimer" for the program, if necessary.
665 For more information on this, and how to apply and follow the GNU GPL, see
666 <http://www.gnu.org/licenses/>.
667
668 The GNU General Public License does not permit incorporating your program
669 into proprietary programs. If your program is a subroutine library, you
670 may consider it more useful to permit linking proprietary applications with
671 the library. If this is what you want to do, use the GNU Lesser General
672 Public License instead of this License. But first, please read
673 <http://www.gnu.org/philosophy/why-not-lgpl.html>.
0 Sat Feb 28 16:41:54 CET 2009 Guido Günther <agx@sigxcpu.org>
1
2 add DBus interface to acquire TGT
3 * src/krb5-auth-dbus.[ch] (ka_dbus_acquire_tgt, ka_dbus_service): new
4 functions
5 * src/Makefile.am: generate krb5-auth-applet-dbus-glue.h via
6 dbus-binding-tool
7 * src/krb5-auth-applet-dbus.xml: new file
8 * README: example dbus call
9
10 Sat Feb 28 16:35:45 CET 2009 Guido Günther <agx@sigxcpu.org>
11
12 * src/krb5-auth-applet.[ch] (ka_check_credentials): new function to
13 check if a principal matches our default
14 (ka_grab_credentials): return TRUE on success
15
16 Sat Feb 28 14:27:57 CET 2009 Guido Günther <agx@sigxcpu.org>
17
18 Turn Krb5AuthApplet into a GObject named KaApplet
19 * src/krb5-auth-applet.[ch]: declare and define KaApplet,
20 KaAppletPrivate
21 (ka_applet_{set,get}_property): new functions to access properties
22 (ka_applet_{dispose,finalize,{class,}_init}: new functions
23 (ka_applet_get_show_trayicon, ka_applet_set_tgt_renewable,
24 ka_applet_get_tgt_renewable, ka_applet_get_pw_prompt_secs,
25 ka_applet_run_pw_dialog, ka_applet_get_pwdialog_xml,
26 ka_applet_hide_pw_dialog, ka_applet_get_pw_label,
27 ka_applet_set_pw_dialog_persist): new functions
28 * src/krb5-auth-dialog.c: use the above instead of accessing KaApplet
29 private data
30 * src/krb5-auth-gconf.c: likewise
31 * src/krb5-auth-dbus.c: update copyright
32 * src/krb5-auth-notify.[ch] (ka_send_event_notification): moved from
33 to src/krb5-auth-applet.c
34
35 Sat Feb 28 14:18:35 CET 2009 Guido Günther <agx@sigxcpu.org>
36
37 add .gitignore files
38 * .gitignore: new file
39 * etpo/.gitignore: likewise
40 * po/.gitignore: likewise
41 * src/.gitignore: likewise
42
43 Mon Jan 19 22:12:37 CET 2009 Guido Günther <agx@sigxcpu.org>
44
45 * src/krb5-auth-dialog.c: don't try pkinit if pk_userid is non-null
46 but empty
47 * src/krb5-auth-gconf.c: improve debug output for empty strings
48
49 Mon Jan 12 00:46:14 CET 2009 Guido Günther <agx@sigxcpu.org>
50
51 * update NEWS
52
53 Mon Jan 12 00:36:45 CET 2009 Guido Günther <agx@sigxcpu.org>
54
55 move icons to $(datadir)/krb5-auth-dialog to fix missing tray icon
56 when prefix != /usr
57 * icons/Makefile.am (smallicondir): move to $(pkgdatadir)
58 * src/Makefile.am: rename glade_DATA to pkgdata_DATA, GLADEDIR to
59 KA_DATA_DIR
60 * src/krb5-auth-applet.c (ka_create_tray_icon): extend icon search
61 path by $(KA_DATA_DIR)/icons
62 * src/krb5-auth-dialog.c (main): use $(KA_DATA_DIR)
63
64 Sun Jan 11 22:59:34 CET 2009 Guido Günther <agx@sigxcpu.org>
65
66 * AUTHORS, MAINTAINERS: add myself
67
068 Sat Jan 10 15:37:58 CET 2009 Guido Günther <agx@sigxcpu.org>
169
270 * configure.ac: release 0.8
+0
-237
INSTALL less more
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
4 2006, 2007 Free Software Foundation, Inc.
5
6 This file is free documentation; the Free Software Foundation gives
7 unlimited permission to copy, distribute and modify it.
8
9 Basic Installation
10 ==================
11
12 Briefly, the shell commands `./configure; make; make install' should
13 configure, build, and install this package. The following
14 more-detailed instructions are generic; see the `README' file for
15 instructions specific to this package.
16
17 The `configure' shell script attempts to guess correct values for
18 various system-dependent variables used during compilation. It uses
19 those values to create a `Makefile' in each directory of the package.
20 It may also create one or more `.h' files containing system-dependent
21 definitions. Finally, it creates a shell script `config.status' that
22 you can run in the future to recreate the current configuration, and a
23 file `config.log' containing compiler output (useful mainly for
24 debugging `configure').
25
26 It can also use an optional file (typically called `config.cache'
27 and enabled with `--cache-file=config.cache' or simply `-C') that saves
28 the results of its tests to speed up reconfiguring. Caching is
29 disabled by default to prevent problems with accidental use of stale
30 cache files.
31
32 If you need to do unusual things to compile the package, please try
33 to figure out how `configure' could check whether to do them, and mail
34 diffs or instructions to the address given in the `README' so they can
35 be considered for the next release. If you are using the cache, and at
36 some point `config.cache' contains results you don't want to keep, you
37 may remove or edit it.
38
39 The file `configure.ac' (or `configure.in') is used to create
40 `configure' by a program called `autoconf'. You need `configure.ac' if
41 you want to change it or regenerate `configure' using a newer version
42 of `autoconf'.
43
44 The simplest way to compile this package is:
45
46 1. `cd' to the directory containing the package's source code and type
47 `./configure' to configure the package for your system.
48
49 Running `configure' might take a while. While running, it prints
50 some messages telling which features it is checking for.
51
52 2. Type `make' to compile the package.
53
54 3. Optionally, type `make check' to run any self-tests that come with
55 the package.
56
57 4. Type `make install' to install the programs and any data files and
58 documentation.
59
60 5. You can remove the program binaries and object files from the
61 source code directory by typing `make clean'. To also remove the
62 files that `configure' created (so you can compile the package for
63 a different kind of computer), type `make distclean'. There is
64 also a `make maintainer-clean' target, but that is intended mainly
65 for the package's developers. If you use it, you may have to get
66 all sorts of other programs in order to regenerate files that came
67 with the distribution.
68
69 6. Often, you can also type `make uninstall' to remove the installed
70 files again.
71
72 Compilers and Options
73 =====================
74
75 Some systems require unusual options for compilation or linking that the
76 `configure' script does not know about. Run `./configure --help' for
77 details on some of the pertinent environment variables.
78
79 You can give `configure' initial values for configuration parameters
80 by setting variables in the command line or in the environment. Here
81 is an example:
82
83 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
84
85 *Note Defining Variables::, for more details.
86
87 Compiling For Multiple Architectures
88 ====================================
89
90 You can compile the package for more than one kind of computer at the
91 same time, by placing the object files for each architecture in their
92 own directory. To do this, you can use GNU `make'. `cd' to the
93 directory where you want the object files and executables to go and run
94 the `configure' script. `configure' automatically checks for the
95 source code in the directory that `configure' is in and in `..'.
96
97 With a non-GNU `make', it is safer to compile the package for one
98 architecture at a time in the source code directory. After you have
99 installed the package for one architecture, use `make distclean' before
100 reconfiguring for another architecture.
101
102 Installation Names
103 ==================
104
105 By default, `make install' installs the package's commands under
106 `/usr/local/bin', include files under `/usr/local/include', etc. You
107 can specify an installation prefix other than `/usr/local' by giving
108 `configure' the option `--prefix=PREFIX'.
109
110 You can specify separate installation prefixes for
111 architecture-specific files and architecture-independent files. If you
112 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
113 PREFIX as the prefix for installing programs and libraries.
114 Documentation and other data files still use the regular prefix.
115
116 In addition, if you use an unusual directory layout you can give
117 options like `--bindir=DIR' to specify different values for particular
118 kinds of files. Run `configure --help' for a list of the directories
119 you can set and what kinds of files go in them.
120
121 If the package supports it, you can cause programs to be installed
122 with an extra prefix or suffix on their names by giving `configure' the
123 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
124
125 Optional Features
126 =================
127
128 Some packages pay attention to `--enable-FEATURE' options to
129 `configure', where FEATURE indicates an optional part of the package.
130 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
131 is something like `gnu-as' or `x' (for the X Window System). The
132 `README' should mention any `--enable-' and `--with-' options that the
133 package recognizes.
134
135 For packages that use the X Window System, `configure' can usually
136 find the X include and library files automatically, but if it doesn't,
137 you can use the `configure' options `--x-includes=DIR' and
138 `--x-libraries=DIR' to specify their locations.
139
140 Specifying the System Type
141 ==========================
142
143 There may be some features `configure' cannot figure out automatically,
144 but needs to determine by the type of machine the package will run on.
145 Usually, assuming the package is built to be run on the _same_
146 architectures, `configure' can figure that out, but if it prints a
147 message saying it cannot guess the machine type, give it the
148 `--build=TYPE' option. TYPE can either be a short name for the system
149 type, such as `sun4', or a canonical name which has the form:
150
151 CPU-COMPANY-SYSTEM
152
153 where SYSTEM can have one of these forms:
154
155 OS KERNEL-OS
156
157 See the file `config.sub' for the possible values of each field. If
158 `config.sub' isn't included in this package, then this package doesn't
159 need to know the machine type.
160
161 If you are _building_ compiler tools for cross-compiling, you should
162 use the option `--target=TYPE' to select the type of system they will
163 produce code for.
164
165 If you want to _use_ a cross compiler, that generates code for a
166 platform different from the build platform, you should specify the
167 "host" platform (i.e., that on which the generated programs will
168 eventually be run) with `--host=TYPE'.
169
170 Sharing Defaults
171 ================
172
173 If you want to set default values for `configure' scripts to share, you
174 can create a site shell script called `config.site' that gives default
175 values for variables like `CC', `cache_file', and `prefix'.
176 `configure' looks for `PREFIX/share/config.site' if it exists, then
177 `PREFIX/etc/config.site' if it exists. Or, you can set the
178 `CONFIG_SITE' environment variable to the location of the site script.
179 A warning: not all `configure' scripts look for a site script.
180
181 Defining Variables
182 ==================
183
184 Variables not defined in a site shell script can be set in the
185 environment passed to `configure'. However, some packages may run
186 configure again during the build, and the customized values of these
187 variables may be lost. In order to avoid this problem, you should set
188 them in the `configure' command line, using `VAR=value'. For example:
189
190 ./configure CC=/usr/local2/bin/gcc
191
192 causes the specified `gcc' to be used as the C compiler (unless it is
193 overridden in the site shell script).
194
195 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
196 an Autoconf bug. Until the bug is fixed you can use this workaround:
197
198 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
199
200 `configure' Invocation
201 ======================
202
203 `configure' recognizes the following options to control how it operates.
204
205 `--help'
206 `-h'
207 Print a summary of the options to `configure', and exit.
208
209 `--version'
210 `-V'
211 Print the version of Autoconf used to generate the `configure'
212 script, and exit.
213
214 `--cache-file=FILE'
215 Enable the cache: use and save the results of the tests in FILE,
216 traditionally `config.cache'. FILE defaults to `/dev/null' to
217 disable caching.
218
219 `--config-cache'
220 `-C'
221 Alias for `--cache-file=config.cache'.
222
223 `--quiet'
224 `--silent'
225 `-q'
226 Do not print messages saying which checks are being made. To
227 suppress all normal output, redirect it to `/dev/null' (any error
228 messages will still be shown).
229
230 `--srcdir=DIR'
231 Look for the package's source code in directory DIR. Usually
232 `configure' can determine that directory automatically.
233
234 `configure' also accepts some other, not widely useful, options. Run
235 `configure --help' for more details.
236
0 Chris Aillon
1 E-mail: caillon@redhat.com
2 Userid: caillon
3
4 Colin Walters
5 E-mail: walters@verbum.org
6 Userid: walters
7
8 Guido Günther
9 E-Mail: agx@sigxcpu.org
10 Userid: guidog
+0
-709
Makefile.in less more
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 VPATH = @srcdir@
16 pkgdatadir = $(datadir)/@PACKAGE@
17 pkglibdir = $(libdir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
20 install_sh_DATA = $(install_sh) -c -m 644
21 install_sh_PROGRAM = $(install_sh) -c
22 install_sh_SCRIPT = $(install_sh) -c
23 INSTALL_HEADER = $(INSTALL_DATA)
24 transform = $(program_transform_name)
25 NORMAL_INSTALL = :
26 PRE_INSTALL = :
27 POST_INSTALL = :
28 NORMAL_UNINSTALL = :
29 PRE_UNINSTALL = :
30 POST_UNINSTALL = :
31 build_triplet = @build@
32 host_triplet = @host@
33 subdir = .
34 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
35 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
36 $(srcdir)/krb5-auth-dialog.spec.in $(top_srcdir)/configure \
37 AUTHORS COPYING ChangeLog INSTALL NEWS config.guess config.sub \
38 depcomp install-sh ltmain.sh missing mkinstalldirs ylwrap
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
41 $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
45 configure.lineno config.status.lineno
46 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
47 CONFIG_HEADER = config.h
48 CONFIG_CLEAN_FILES = krb5-auth-dialog.spec
49 SOURCES =
50 DIST_SOURCES =
51 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
52 html-recursive info-recursive install-data-recursive \
53 install-dvi-recursive install-exec-recursive \
54 install-html-recursive install-info-recursive \
55 install-pdf-recursive install-ps-recursive install-recursive \
56 installcheck-recursive installdirs-recursive pdf-recursive \
57 ps-recursive uninstall-recursive
58 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
59 distclean-recursive maintainer-clean-recursive
60 ETAGS = etags
61 CTAGS = ctags
62 DIST_SUBDIRS = $(SUBDIRS)
63 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
64 distdir = $(PACKAGE)-$(VERSION)
65 top_distdir = $(distdir)
66 am__remove_distdir = \
67 { test ! -d $(distdir) \
68 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
69 && rm -fr $(distdir); }; }
70 DIST_ARCHIVES = $(distdir).tar.gz
71 GZIP_ENV = --best
72 distuninstallcheck_listfiles = find . -type f -print
73 distcleancheck_listfiles = find . -type f -print
74 ACLOCAL = @ACLOCAL@
75 ALL_LINGUAS = @ALL_LINGUAS@
76 AMTAR = @AMTAR@
77 AR = @AR@
78 AUTOCONF = @AUTOCONF@
79 AUTOHEADER = @AUTOHEADER@
80 AUTOMAKE = @AUTOMAKE@
81 AWK = @AWK@
82 CATALOGS = @CATALOGS@
83 CATOBJEXT = @CATOBJEXT@
84 CC = @CC@
85 CCDEPMODE = @CCDEPMODE@
86 CFLAGS = @CFLAGS@
87 CPP = @CPP@
88 CPPFLAGS = @CPPFLAGS@
89 CXX = @CXX@
90 CXXCPP = @CXXCPP@
91 CXXDEPMODE = @CXXDEPMODE@
92 CXXFLAGS = @CXXFLAGS@
93 CYGPATH_W = @CYGPATH_W@
94 DATADIRNAME = @DATADIRNAME@
95 DBUS_CFLAGS = @DBUS_CFLAGS@
96 DBUS_LIBS = @DBUS_LIBS@
97 DEFS = @DEFS@
98 DEPDIR = @DEPDIR@
99 DSYMUTIL = @DSYMUTIL@
100 ECHO = @ECHO@
101 ECHO_C = @ECHO_C@
102 ECHO_N = @ECHO_N@
103 ECHO_T = @ECHO_T@
104 EGREP = @EGREP@
105 EXEEXT = @EXEEXT@
106 F77 = @F77@
107 FFLAGS = @FFLAGS@
108 GCONF_CFLAGS = @GCONF_CFLAGS@
109 GCONF_LIBS = @GCONF_LIBS@
110 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
111 GLADE_CFLAGS = @GLADE_CFLAGS@
112 GLADE_LIBS = @GLADE_LIBS@
113 GMOFILES = @GMOFILES@
114 GMSGFMT = @GMSGFMT@
115 GREP = @GREP@
116 GTK_CFLAGS = @GTK_CFLAGS@
117 GTK_LIBS = @GTK_LIBS@
118 INSTALL = @INSTALL@
119 INSTALL_DATA = @INSTALL_DATA@
120 INSTALL_PROGRAM = @INSTALL_PROGRAM@
121 INSTALL_SCRIPT = @INSTALL_SCRIPT@
122 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
123 INSTOBJEXT = @INSTOBJEXT@
124 INTLLIBS = @INTLLIBS@
125 INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
126 INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
127 INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
128 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
129 INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
130 INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
131 INTLTOOL_MERGE = @INTLTOOL_MERGE@
132 INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
133 INTLTOOL_PERL = @INTLTOOL_PERL@
134 INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
135 INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
136 INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
137 INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
138 INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
139 INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
140 INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
141 INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
142 INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
143 INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
144 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
145 INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
146 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
147 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
148 KRB5_CFLAGS = @KRB5_CFLAGS@
149 KRB5_CONFIG = @KRB5_CONFIG@
150 KRB5_LIBS = @KRB5_LIBS@
151 LDFLAGS = @LDFLAGS@
152 LEX = @LEX@
153 LEXLIB = @LEXLIB@
154 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
155 LIBCAP = @LIBCAP@
156 LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@
157 LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@
158 LIBOBJS = @LIBOBJS@
159 LIBS = @LIBS@
160 LIBTOOL = @LIBTOOL@
161 LN_S = @LN_S@
162 LTLIBOBJS = @LTLIBOBJS@
163 MAINT = @MAINT@
164 MAKEINFO = @MAKEINFO@
165 MKDIR_P = @MKDIR_P@
166 MKINSTALLDIRS = @MKINSTALLDIRS@
167 MSGFMT = @MSGFMT@
168 MSGFMT_OPTS = @MSGFMT_OPTS@
169 MSGMERGE = @MSGMERGE@
170 NETWORK_MANAGER_CFLAGS = @NETWORK_MANAGER_CFLAGS@
171 NETWORK_MANAGER_LIBS = @NETWORK_MANAGER_LIBS@
172 NMEDIT = @NMEDIT@
173 OBJEXT = @OBJEXT@
174 PACKAGE = @PACKAGE@
175 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
176 PACKAGE_NAME = @PACKAGE_NAME@
177 PACKAGE_STRING = @PACKAGE_STRING@
178 PACKAGE_TARNAME = @PACKAGE_TARNAME@
179 PACKAGE_VERSION = @PACKAGE_VERSION@
180 PATH_SEPARATOR = @PATH_SEPARATOR@
181 PKG_CONFIG = @PKG_CONFIG@
182 POFILES = @POFILES@
183 POSUB = @POSUB@
184 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
185 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
186 RANLIB = @RANLIB@
187 SED = @SED@
188 SETCAP = @SETCAP@
189 SET_MAKE = @SET_MAKE@
190 SHELL = @SHELL@
191 STRIP = @STRIP@
192 USE_NLS = @USE_NLS@
193 VERSION = @VERSION@
194 XGETTEXT = @XGETTEXT@
195 YACC = @YACC@
196 YFLAGS = @YFLAGS@
197 abs_builddir = @abs_builddir@
198 abs_srcdir = @abs_srcdir@
199 abs_top_builddir = @abs_top_builddir@
200 abs_top_srcdir = @abs_top_srcdir@
201 ac_ct_CC = @ac_ct_CC@
202 ac_ct_CXX = @ac_ct_CXX@
203 ac_ct_F77 = @ac_ct_F77@
204 am__include = @am__include@
205 am__leading_dot = @am__leading_dot@
206 am__quote = @am__quote@
207 am__tar = @am__tar@
208 am__untar = @am__untar@
209 bindir = @bindir@
210 build = @build@
211 build_alias = @build_alias@
212 build_cpu = @build_cpu@
213 build_os = @build_os@
214 build_vendor = @build_vendor@
215 builddir = @builddir@
216 check_interval = @check_interval@
217 datadir = @datadir@
218 datarootdir = @datarootdir@
219 docdir = @docdir@
220 dvidir = @dvidir@
221 exec_prefix = @exec_prefix@
222 host = @host@
223 host_alias = @host_alias@
224 host_cpu = @host_cpu@
225 host_os = @host_os@
226 host_vendor = @host_vendor@
227 htmldir = @htmldir@
228 includedir = @includedir@
229 infodir = @infodir@
230 install_sh = @install_sh@
231 libdir = @libdir@
232 libexecdir = @libexecdir@
233 localedir = @localedir@
234 localstatedir = @localstatedir@
235 mandir = @mandir@
236 minimum_lifetime = @minimum_lifetime@
237 mkdir_p = @mkdir_p@
238 oldincludedir = @oldincludedir@
239 pdfdir = @pdfdir@
240 prefix = @prefix@
241 program_transform_name = @program_transform_name@
242 psdir = @psdir@
243 sbindir = @sbindir@
244 sharedstatedir = @sharedstatedir@
245 srcdir = @srcdir@
246 sysconfdir = @sysconfdir@
247 target_alias = @target_alias@
248 top_builddir = @top_builddir@
249 top_srcdir = @top_srcdir@
250 SUBDIRS = secmem gtksecentry src po etpo icons
251 EXTRA_DIST = \
252 krb5-auth-dialog.spec
253
254 DISTCLEANFILES = intltool-extract intltool-merge intltool-update
255 all: config.h
256 $(MAKE) $(AM_MAKEFLAGS) all-recursive
257
258 .SUFFIXES:
259 am--refresh:
260 @:
261 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
262 @for dep in $?; do \
263 case '$(am__configure_deps)' in \
264 *$$dep*) \
265 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
266 cd $(srcdir) && $(AUTOMAKE) --gnu \
267 && exit 0; \
268 exit 1;; \
269 esac; \
270 done; \
271 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
272 cd $(top_srcdir) && \
273 $(AUTOMAKE) --gnu Makefile
274 .PRECIOUS: Makefile
275 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
276 @case '$?' in \
277 *config.status*) \
278 echo ' $(SHELL) ./config.status'; \
279 $(SHELL) ./config.status;; \
280 *) \
281 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
282 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
283 esac;
284
285 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
286 $(SHELL) ./config.status --recheck
287
288 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
289 cd $(srcdir) && $(AUTOCONF)
290 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
291 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
292
293 config.h: stamp-h1
294 @if test ! -f $@; then \
295 rm -f stamp-h1; \
296 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
297 else :; fi
298
299 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
300 @rm -f stamp-h1
301 cd $(top_builddir) && $(SHELL) ./config.status config.h
302 $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
303 cd $(top_srcdir) && $(AUTOHEADER)
304 rm -f stamp-h1
305 touch $@
306
307 distclean-hdr:
308 -rm -f config.h stamp-h1
309 krb5-auth-dialog.spec: $(top_builddir)/config.status $(srcdir)/krb5-auth-dialog.spec.in
310 cd $(top_builddir) && $(SHELL) ./config.status $@
311
312 mostlyclean-libtool:
313 -rm -f *.lo
314
315 clean-libtool:
316 -rm -rf .libs _libs
317
318 distclean-libtool:
319 -rm -f libtool
320
321 # This directory's subdirectories are mostly independent; you can cd
322 # into them and run `make' without going through this Makefile.
323 # To change the values of `make' variables: instead of editing Makefiles,
324 # (1) if the variable is set in `config.status', edit `config.status'
325 # (which will cause the Makefiles to be regenerated when you run `make');
326 # (2) otherwise, pass the desired values on the `make' command line.
327 $(RECURSIVE_TARGETS):
328 @failcom='exit 1'; \
329 for f in x $$MAKEFLAGS; do \
330 case $$f in \
331 *=* | --[!k]*);; \
332 *k*) failcom='fail=yes';; \
333 esac; \
334 done; \
335 dot_seen=no; \
336 target=`echo $@ | sed s/-recursive//`; \
337 list='$(SUBDIRS)'; for subdir in $$list; do \
338 echo "Making $$target in $$subdir"; \
339 if test "$$subdir" = "."; then \
340 dot_seen=yes; \
341 local_target="$$target-am"; \
342 else \
343 local_target="$$target"; \
344 fi; \
345 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
346 || eval $$failcom; \
347 done; \
348 if test "$$dot_seen" = "no"; then \
349 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
350 fi; test -z "$$fail"
351
352 $(RECURSIVE_CLEAN_TARGETS):
353 @failcom='exit 1'; \
354 for f in x $$MAKEFLAGS; do \
355 case $$f in \
356 *=* | --[!k]*);; \
357 *k*) failcom='fail=yes';; \
358 esac; \
359 done; \
360 dot_seen=no; \
361 case "$@" in \
362 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
363 *) list='$(SUBDIRS)' ;; \
364 esac; \
365 rev=''; for subdir in $$list; do \
366 if test "$$subdir" = "."; then :; else \
367 rev="$$subdir $$rev"; \
368 fi; \
369 done; \
370 rev="$$rev ."; \
371 target=`echo $@ | sed s/-recursive//`; \
372 for subdir in $$rev; do \
373 echo "Making $$target in $$subdir"; \
374 if test "$$subdir" = "."; then \
375 local_target="$$target-am"; \
376 else \
377 local_target="$$target"; \
378 fi; \
379 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
380 || eval $$failcom; \
381 done && test -z "$$fail"
382 tags-recursive:
383 list='$(SUBDIRS)'; for subdir in $$list; do \
384 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
385 done
386 ctags-recursive:
387 list='$(SUBDIRS)'; for subdir in $$list; do \
388 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
389 done
390
391 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
392 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
393 unique=`for i in $$list; do \
394 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
395 done | \
396 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
397 END { if (nonempty) { for (i in files) print i; }; }'`; \
398 mkid -fID $$unique
399 tags: TAGS
400
401 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
402 $(TAGS_FILES) $(LISP)
403 tags=; \
404 here=`pwd`; \
405 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
406 include_option=--etags-include; \
407 empty_fix=.; \
408 else \
409 include_option=--include; \
410 empty_fix=; \
411 fi; \
412 list='$(SUBDIRS)'; for subdir in $$list; do \
413 if test "$$subdir" = .; then :; else \
414 test ! -f $$subdir/TAGS || \
415 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
416 fi; \
417 done; \
418 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
419 unique=`for i in $$list; do \
420 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
421 done | \
422 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
423 END { if (nonempty) { for (i in files) print i; }; }'`; \
424 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
425 test -n "$$unique" || unique=$$empty_fix; \
426 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
427 $$tags $$unique; \
428 fi
429 ctags: CTAGS
430 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
431 $(TAGS_FILES) $(LISP)
432 tags=; \
433 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
434 unique=`for i in $$list; do \
435 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
436 done | \
437 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
438 END { if (nonempty) { for (i in files) print i; }; }'`; \
439 test -z "$(CTAGS_ARGS)$$tags$$unique" \
440 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
441 $$tags $$unique
442
443 GTAGS:
444 here=`$(am__cd) $(top_builddir) && pwd` \
445 && cd $(top_srcdir) \
446 && gtags -i $(GTAGS_ARGS) $$here
447
448 distclean-tags:
449 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
450
451 distdir: $(DISTFILES)
452 $(am__remove_distdir)
453 test -d $(distdir) || mkdir $(distdir)
454 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
455 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
456 list='$(DISTFILES)'; \
457 dist_files=`for file in $$list; do echo $$file; done | \
458 sed -e "s|^$$srcdirstrip/||;t" \
459 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
460 case $$dist_files in \
461 */*) $(MKDIR_P) `echo "$$dist_files" | \
462 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
463 sort -u` ;; \
464 esac; \
465 for file in $$dist_files; do \
466 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
467 if test -d $$d/$$file; then \
468 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
469 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
470 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
471 fi; \
472 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
473 else \
474 test -f $(distdir)/$$file \
475 || cp -p $$d/$$file $(distdir)/$$file \
476 || exit 1; \
477 fi; \
478 done
479 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
480 if test "$$subdir" = .; then :; else \
481 test -d "$(distdir)/$$subdir" \
482 || $(MKDIR_P) "$(distdir)/$$subdir" \
483 || exit 1; \
484 distdir=`$(am__cd) $(distdir) && pwd`; \
485 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
486 (cd $$subdir && \
487 $(MAKE) $(AM_MAKEFLAGS) \
488 top_distdir="$$top_distdir" \
489 distdir="$$distdir/$$subdir" \
490 am__remove_distdir=: \
491 am__skip_length_check=: \
492 distdir) \
493 || exit 1; \
494 fi; \
495 done
496 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
497 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
498 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
499 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
500 || chmod -R a+r $(distdir)
501 dist-gzip: distdir
502 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
503 $(am__remove_distdir)
504
505 dist-bzip2: distdir
506 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
507 $(am__remove_distdir)
508
509 dist-lzma: distdir
510 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
511 $(am__remove_distdir)
512
513 dist-tarZ: distdir
514 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
515 $(am__remove_distdir)
516
517 dist-shar: distdir
518 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
519 $(am__remove_distdir)
520
521 dist-zip: distdir
522 -rm -f $(distdir).zip
523 zip -rq $(distdir).zip $(distdir)
524 $(am__remove_distdir)
525
526 dist dist-all: distdir
527 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
528 $(am__remove_distdir)
529
530 # This target untars the dist file and tries a VPATH configuration. Then
531 # it guarantees that the distribution is self-contained by making another
532 # tarfile.
533 distcheck: dist
534 case '$(DIST_ARCHIVES)' in \
535 *.tar.gz*) \
536 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
537 *.tar.bz2*) \
538 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
539 *.tar.lzma*) \
540 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
541 *.tar.Z*) \
542 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
543 *.shar.gz*) \
544 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
545 *.zip*) \
546 unzip $(distdir).zip ;;\
547 esac
548 chmod -R a-w $(distdir); chmod a+w $(distdir)
549 mkdir $(distdir)/_build
550 mkdir $(distdir)/_inst
551 chmod a-w $(distdir)
552 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
553 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
554 && cd $(distdir)/_build \
555 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
556 $(DISTCHECK_CONFIGURE_FLAGS) \
557 && $(MAKE) $(AM_MAKEFLAGS) \
558 && $(MAKE) $(AM_MAKEFLAGS) dvi \
559 && $(MAKE) $(AM_MAKEFLAGS) check \
560 && $(MAKE) $(AM_MAKEFLAGS) install \
561 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
562 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
563 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
564 distuninstallcheck \
565 && chmod -R a-w "$$dc_install_base" \
566 && ({ \
567 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
568 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
569 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
570 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
571 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
572 } || { rm -rf "$$dc_destdir"; exit 1; }) \
573 && rm -rf "$$dc_destdir" \
574 && $(MAKE) $(AM_MAKEFLAGS) dist \
575 && rm -rf $(DIST_ARCHIVES) \
576 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
577 $(am__remove_distdir)
578 @(echo "$(distdir) archives ready for distribution: "; \
579 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
580 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
581 distuninstallcheck:
582 @cd $(distuninstallcheck_dir) \
583 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
584 || { echo "ERROR: files left after uninstall:" ; \
585 if test -n "$(DESTDIR)"; then \
586 echo " (check DESTDIR support)"; \
587 fi ; \
588 $(distuninstallcheck_listfiles) ; \
589 exit 1; } >&2
590 distcleancheck: distclean
591 @if test '$(srcdir)' = . ; then \
592 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
593 exit 1 ; \
594 fi
595 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
596 || { echo "ERROR: files left in build directory after distclean:" ; \
597 $(distcleancheck_listfiles) ; \
598 exit 1; } >&2
599 check-am: all-am
600 check: check-recursive
601 all-am: Makefile config.h
602 installdirs: installdirs-recursive
603 installdirs-am:
604 install: install-recursive
605 install-exec: install-exec-recursive
606 install-data: install-data-recursive
607 uninstall: uninstall-recursive
608
609 install-am: all-am
610 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
611
612 installcheck: installcheck-recursive
613 install-strip:
614 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
615 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
616 `test -z '$(STRIP)' || \
617 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
618 mostlyclean-generic:
619
620 clean-generic:
621
622 distclean-generic:
623 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
624 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
625
626 maintainer-clean-generic:
627 @echo "This command is intended for maintainers to use"
628 @echo "it deletes files that may require special tools to rebuild."
629 clean: clean-recursive
630
631 clean-am: clean-generic clean-libtool mostlyclean-am
632
633 distclean: distclean-recursive
634 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
635 -rm -f Makefile
636 distclean-am: clean-am distclean-generic distclean-hdr \
637 distclean-libtool distclean-tags
638
639 dvi: dvi-recursive
640
641 dvi-am:
642
643 html: html-recursive
644
645 info: info-recursive
646
647 info-am:
648
649 install-data-am:
650
651 install-dvi: install-dvi-recursive
652
653 install-exec-am:
654
655 install-html: install-html-recursive
656
657 install-info: install-info-recursive
658
659 install-man:
660
661 install-pdf: install-pdf-recursive
662
663 install-ps: install-ps-recursive
664
665 installcheck-am:
666
667 maintainer-clean: maintainer-clean-recursive
668 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
669 -rm -rf $(top_srcdir)/autom4te.cache
670 -rm -f Makefile
671 maintainer-clean-am: distclean-am maintainer-clean-generic
672
673 mostlyclean: mostlyclean-recursive
674
675 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
676
677 pdf: pdf-recursive
678
679 pdf-am:
680
681 ps: ps-recursive
682
683 ps-am:
684
685 uninstall-am:
686
687 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
688 install-strip
689
690 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
691 all all-am am--refresh check check-am clean clean-generic \
692 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
693 dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
694 distclean distclean-generic distclean-hdr distclean-libtool \
695 distclean-tags distcleancheck distdir distuninstallcheck dvi \
696 dvi-am html html-am info info-am install install-am \
697 install-data install-data-am install-dvi install-dvi-am \
698 install-exec install-exec-am install-html install-html-am \
699 install-info install-info-am install-man install-pdf \
700 install-pdf-am install-ps install-ps-am install-strip \
701 installcheck installcheck-am installdirs installdirs-am \
702 maintainer-clean maintainer-clean-generic mostlyclean \
703 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
704 tags tags-recursive uninstall uninstall-am
705
706 # Tell versions [3.59,3.63) of GNU make to not export all variables.
707 # Otherwise a system limit (for SysV at least) may be exceeded.
708 .NOEXPORT:
0 ===========
1 Version 0.8
2 ===========
3 * add a tray icon that displays the current status and remaining ticket
4 lifetime
5 * support pkinit (public key client authentication) when building with heimdal
6 * add notifications via libnotify about ticket acquisition and expiry
7 * make most settings configurable via gconf
8 * use GtkSecureEntry instead of GtkEntry to protect the password better
9 * fix i18n
10 * lots of other cleanups and fixes
2525 strings that kerberos uses. We are checking that in for now, until
2626 kerberos gets translated.
2727
28 Requesting a TGT via DBus:
29 You can request a ticket granting ticket via DBus:
2830
31 dbus-send --print-reply --type=method_call \
32 --dest=org.gnome.KrbAuthDialog \
33 /org/gnome/KrbAuthDialog \
34 org.gnome.KrbAuthDialog.acquireTgt \
35 string:'principal'
2936
37 If the sent principal doesn't match the one currently in the ticket cache the
38 request fails. To request a TGT for the "default" principal use string:''.
+0
-8352
aclocal.m4 less more
0 # generated automatically by aclocal 1.10.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 m4_ifndef([AC_AUTOCONF_VERSION],
14 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(AC_AUTOCONF_VERSION, [2.61],,
16 [m4_warning([this file was generated for autoconf 2.61.
17 You have another version of autoconf. It may work, but is not guaranteed to.
18 If you have problems, you may need to regenerate the build system entirely.
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20
21 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
22 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
23 #
24 # This file is free software, distributed under the terms of the GNU
25 # General Public License. As a special exception to the GNU General
26 # Public License, this file may be distributed as part of a program
27 # that contains a configuration script generated by Autoconf, under
28 # the same distribution terms as the rest of that program.
29 #
30 # This file can be copied and used freely without restrictions. It can
31 # be used in projects which are not available under the GNU Public License
32 # but which still want to provide support for the GNU gettext functionality.
33 #
34 # Macro to add for using GNU gettext.
35 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
36 #
37 # Modified to never use included libintl.
38 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
39 #
40 # Major rework to remove unused code
41 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
42 #
43 # Added better handling of ALL_LINGUAS from GNU gettext version
44 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
45 #
46 # Modified to require ngettext
47 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
48 #
49 # We need this here as well, since someone might use autoconf-2.5x
50 # to configure GLib then an older version to configure a package
51 # using AM_GLIB_GNU_GETTEXT
52 AC_PREREQ(2.53)
53
54 dnl
55 dnl We go to great lengths to make sure that aclocal won't
56 dnl try to pull in the installed version of these macros
57 dnl when running aclocal in the glib directory.
58 dnl
59 m4_copy([AC_DEFUN],[glib_DEFUN])
60 m4_copy([AC_REQUIRE],[glib_REQUIRE])
61 dnl
62 dnl At the end, if we're not within glib, we'll define the public
63 dnl definitions in terms of our private definitions.
64 dnl
65
66 # GLIB_LC_MESSAGES
67 #--------------------
68 glib_DEFUN([GLIB_LC_MESSAGES],
69 [AC_CHECK_HEADERS([locale.h])
70 if test $ac_cv_header_locale_h = yes; then
71 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
72 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
73 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
74 if test $am_cv_val_LC_MESSAGES = yes; then
75 AC_DEFINE(HAVE_LC_MESSAGES, 1,
76 [Define if your <locale.h> file defines LC_MESSAGES.])
77 fi
78 fi])
79
80 # GLIB_PATH_PROG_WITH_TEST
81 #----------------------------
82 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
83 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
84 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
85 [# Extract the first word of "$2", so it can be a program name with args.
86 set dummy $2; ac_word=[$]2
87 AC_MSG_CHECKING([for $ac_word])
88 AC_CACHE_VAL(ac_cv_path_$1,
89 [case "[$]$1" in
90 /*)
91 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
92 ;;
93 *)
94 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
95 for ac_dir in ifelse([$5], , $PATH, [$5]); do
96 test -z "$ac_dir" && ac_dir=.
97 if test -f $ac_dir/$ac_word; then
98 if [$3]; then
99 ac_cv_path_$1="$ac_dir/$ac_word"
100 break
101 fi
102 fi
103 done
104 IFS="$ac_save_ifs"
105 dnl If no 4th arg is given, leave the cache variable unset,
106 dnl so AC_PATH_PROGS will keep looking.
107 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
108 ])dnl
109 ;;
110 esac])dnl
111 $1="$ac_cv_path_$1"
112 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
113 AC_MSG_RESULT([$]$1)
114 else
115 AC_MSG_RESULT(no)
116 fi
117 AC_SUBST($1)dnl
118 ])
119
120 # GLIB_WITH_NLS
121 #-----------------
122 glib_DEFUN([GLIB_WITH_NLS],
123 dnl NLS is obligatory
124 [USE_NLS=yes
125 AC_SUBST(USE_NLS)
126
127 gt_cv_have_gettext=no
128
129 CATOBJEXT=NONE
130 XGETTEXT=:
131 INTLLIBS=
132
133 AC_CHECK_HEADER(libintl.h,
134 [gt_cv_func_dgettext_libintl="no"
135 libintl_extra_libs=""
136
137 #
138 # First check in libc
139 #
140 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
141 [AC_TRY_LINK([
142 #include <libintl.h>
143 ],
144 [return !ngettext ("","", 1)],
145 gt_cv_func_ngettext_libc=yes,
146 gt_cv_func_ngettext_libc=no)
147 ])
148
149 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
150 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
151 [AC_TRY_LINK([
152 #include <libintl.h>
153 ],
154 [return !dgettext ("","")],
155 gt_cv_func_dgettext_libc=yes,
156 gt_cv_func_dgettext_libc=no)
157 ])
158 fi
159
160 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
161 AC_CHECK_FUNCS(bind_textdomain_codeset)
162 fi
163
164 #
165 # If we don't have everything we want, check in libintl
166 #
167 if test "$gt_cv_func_dgettext_libc" != "yes" \
168 || test "$gt_cv_func_ngettext_libc" != "yes" \
169 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
170
171 AC_CHECK_LIB(intl, bindtextdomain,
172 [AC_CHECK_LIB(intl, ngettext,
173 [AC_CHECK_LIB(intl, dgettext,
174 gt_cv_func_dgettext_libintl=yes)])])
175
176 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
177 AC_MSG_CHECKING([if -liconv is needed to use gettext])
178 AC_MSG_RESULT([])
179 AC_CHECK_LIB(intl, ngettext,
180 [AC_CHECK_LIB(intl, dcgettext,
181 [gt_cv_func_dgettext_libintl=yes
182 libintl_extra_libs=-liconv],
183 :,-liconv)],
184 :,-liconv)
185 fi
186
187 #
188 # If we found libintl, then check in it for bind_textdomain_codeset();
189 # we'll prefer libc if neither have bind_textdomain_codeset(),
190 # and both have dgettext and ngettext
191 #
192 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
193 glib_save_LIBS="$LIBS"
194 LIBS="$LIBS -lintl $libintl_extra_libs"
195 unset ac_cv_func_bind_textdomain_codeset
196 AC_CHECK_FUNCS(bind_textdomain_codeset)
197 LIBS="$glib_save_LIBS"
198
199 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
200 gt_cv_func_dgettext_libc=no
201 else
202 if test "$gt_cv_func_dgettext_libc" = "yes" \
203 && test "$gt_cv_func_ngettext_libc" = "yes"; then
204 gt_cv_func_dgettext_libintl=no
205 fi
206 fi
207 fi
208 fi
209
210 if test "$gt_cv_func_dgettext_libc" = "yes" \
211 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
212 gt_cv_have_gettext=yes
213 fi
214
215 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
216 INTLLIBS="-lintl $libintl_extra_libs"
217 fi
218
219 if test "$gt_cv_have_gettext" = "yes"; then
220 AC_DEFINE(HAVE_GETTEXT,1,
221 [Define if the GNU gettext() function is already present or preinstalled.])
222 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
223 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
224 if test "$MSGFMT" != "no"; then
225 glib_save_LIBS="$LIBS"
226 LIBS="$LIBS $INTLLIBS"
227 AC_CHECK_FUNCS(dcgettext)
228 MSGFMT_OPTS=
229 AC_MSG_CHECKING([if msgfmt accepts -c])
230 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
231 msgid ""
232 msgstr ""
233 "Content-Type: text/plain; charset=UTF-8\n"
234 "Project-Id-Version: test 1.0\n"
235 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
236 "Last-Translator: test <foo@bar.xx>\n"
237 "Language-Team: C <LL@li.org>\n"
238 "MIME-Version: 1.0\n"
239 "Content-Transfer-Encoding: 8bit\n"
240 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
241 AC_SUBST(MSGFMT_OPTS)
242 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
243 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
244 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
245 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
246 return _nl_msg_cat_cntr],
247 [CATOBJEXT=.gmo
248 DATADIRNAME=share],
249 [case $host in
250 *-*-solaris*)
251 dnl On Solaris, if bind_textdomain_codeset is in libc,
252 dnl GNU format message catalog is always supported,
253 dnl since both are added to the libc all together.
254 dnl Hence, we'd like to go with DATADIRNAME=share and
255 dnl and CATOBJEXT=.gmo in this case.
256 AC_CHECK_FUNC(bind_textdomain_codeset,
257 [CATOBJEXT=.gmo
258 DATADIRNAME=share],
259 [CATOBJEXT=.mo
260 DATADIRNAME=lib])
261 ;;
262 *)
263 CATOBJEXT=.mo
264 DATADIRNAME=lib
265 ;;
266 esac])
267 LIBS="$glib_save_LIBS"
268 INSTOBJEXT=.mo
269 else
270 gt_cv_have_gettext=no
271 fi
272 fi
273 ])
274
275 if test "$gt_cv_have_gettext" = "yes" ; then
276 AC_DEFINE(ENABLE_NLS, 1,
277 [always defined to indicate that i18n is enabled])
278 fi
279
280 dnl Test whether we really found GNU xgettext.
281 if test "$XGETTEXT" != ":"; then
282 dnl If it is not GNU xgettext we define it as : so that the
283 dnl Makefiles still can work.
284 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
285 : ;
286 else
287 AC_MSG_RESULT(
288 [found xgettext program is not GNU xgettext; ignore it])
289 XGETTEXT=":"
290 fi
291 fi
292
293 # We need to process the po/ directory.
294 POSUB=po
295
296 AC_OUTPUT_COMMANDS(
297 [case "$CONFIG_FILES" in *po/Makefile.in*)
298 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
299 esac])
300
301 dnl These rules are solely for the distribution goal. While doing this
302 dnl we only have to keep exactly one list of the available catalogs
303 dnl in configure.in.
304 for lang in $ALL_LINGUAS; do
305 GMOFILES="$GMOFILES $lang.gmo"
306 POFILES="$POFILES $lang.po"
307 done
308
309 dnl Make all variables we use known to autoconf.
310 AC_SUBST(CATALOGS)
311 AC_SUBST(CATOBJEXT)
312 AC_SUBST(DATADIRNAME)
313 AC_SUBST(GMOFILES)
314 AC_SUBST(INSTOBJEXT)
315 AC_SUBST(INTLLIBS)
316 AC_SUBST(PO_IN_DATADIR_TRUE)
317 AC_SUBST(PO_IN_DATADIR_FALSE)
318 AC_SUBST(POFILES)
319 AC_SUBST(POSUB)
320 ])
321
322 # AM_GLIB_GNU_GETTEXT
323 # -------------------
324 # Do checks necessary for use of gettext. If a suitable implementation
325 # of gettext is found in either in libintl or in the C library,
326 # it will set INTLLIBS to the libraries needed for use of gettext
327 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
328 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
329 # on various variables needed by the Makefile.in.in installed by
330 # glib-gettextize.
331 dnl
332 glib_DEFUN([GLIB_GNU_GETTEXT],
333 [AC_REQUIRE([AC_PROG_CC])dnl
334 AC_REQUIRE([AC_HEADER_STDC])dnl
335
336 GLIB_LC_MESSAGES
337 GLIB_WITH_NLS
338
339 if test "$gt_cv_have_gettext" = "yes"; then
340 if test "x$ALL_LINGUAS" = "x"; then
341 LINGUAS=
342 else
343 AC_MSG_CHECKING(for catalogs to be installed)
344 NEW_LINGUAS=
345 for presentlang in $ALL_LINGUAS; do
346 useit=no
347 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
348 desiredlanguages="$LINGUAS"
349 else
350 desiredlanguages="$ALL_LINGUAS"
351 fi
352 for desiredlang in $desiredlanguages; do
353 # Use the presentlang catalog if desiredlang is
354 # a. equal to presentlang, or
355 # b. a variant of presentlang (because in this case,
356 # presentlang can be used as a fallback for messages
357 # which are not translated in the desiredlang catalog).
358 case "$desiredlang" in
359 "$presentlang"*) useit=yes;;
360 esac
361 done
362 if test $useit = yes; then
363 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
364 fi
365 done
366 LINGUAS=$NEW_LINGUAS
367 AC_MSG_RESULT($LINGUAS)
368 fi
369
370 dnl Construct list of names of catalog files to be constructed.
371 if test -n "$LINGUAS"; then
372 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
373 fi
374 fi
375
376 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
377 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
378 dnl Try to locate is.
379 MKINSTALLDIRS=
380 if test -n "$ac_aux_dir"; then
381 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
382 fi
383 if test -z "$MKINSTALLDIRS"; then
384 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
385 fi
386 AC_SUBST(MKINSTALLDIRS)
387
388 dnl Generate list of files to be processed by xgettext which will
389 dnl be included in po/Makefile.
390 test -d po || mkdir po
391 if test "x$srcdir" != "x."; then
392 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
393 posrcprefix="$srcdir/"
394 else
395 posrcprefix="../$srcdir/"
396 fi
397 else
398 posrcprefix="../"
399 fi
400 rm -f po/POTFILES
401 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
402 < $srcdir/po/POTFILES.in > po/POTFILES
403 ])
404
405 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
406 # -------------------------------
407 # Define VARIABLE to the location where catalog files will
408 # be installed by po/Makefile.
409 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
410 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
411 glib_save_prefix="$prefix"
412 glib_save_exec_prefix="$exec_prefix"
413 glib_save_datarootdir="$datarootdir"
414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
415 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
416 datarootdir=`eval echo "${datarootdir}"`
417 if test "x$CATOBJEXT" = "x.mo" ; then
418 localedir=`eval echo "${libdir}/locale"`
419 else
420 localedir=`eval echo "${datadir}/locale"`
421 fi
422 prefix="$glib_save_prefix"
423 exec_prefix="$glib_save_exec_prefix"
424 datarootdir="$glib_save_datarootdir"
425 AC_DEFINE_UNQUOTED($1, "$localedir",
426 [Define the location where the catalogs will be installed])
427 ])
428
429 dnl
430 dnl Now the definitions that aclocal will find
431 dnl
432 ifdef(glib_configure_in,[],[
433 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
434 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
435 ])dnl
436
437 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
438 #
439 # Create a temporary file with TEST-FILE as its contents and pass the
440 # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
441 # 0 and perform ACTION-IF-FAIL for any other exit status.
442 AC_DEFUN([GLIB_RUN_PROG],
443 [cat >conftest.foo <<_ACEOF
444 $2
445 _ACEOF
446 if AC_RUN_LOG([$1 conftest.foo]); then
447 m4_ifval([$3], [$3], [:])
448 m4_ifvaln([$4], [else $4])dnl
449 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
450 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
451 fi])
452
453
454
455 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
456 # serial 40 IT_PROG_INTLTOOL
457 AC_DEFUN([IT_PROG_INTLTOOL],
458 [AC_PREREQ([2.50])dnl
459
460 case "$am__api_version" in
461 1.[01234])
462 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
463 ;;
464 *)
465 ;;
466 esac
467
468 if test -n "$1"; then
469 AC_MSG_CHECKING([for intltool >= $1])
470
471 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
472 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
473 [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
474 ]
475 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
476 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
477 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
478 fi
479
480 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
481 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
482 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
483 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
484 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
485 fi
486
487 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
488 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
489 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
490 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
491 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
492 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
493 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
494 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
495 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
496 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
497 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
498 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
499 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
500 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
501 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
502 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
503 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
504 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
505 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
506
507 AC_SUBST(INTLTOOL_DESKTOP_RULE)
508 AC_SUBST(INTLTOOL_DIRECTORY_RULE)
509 AC_SUBST(INTLTOOL_KEYS_RULE)
510 AC_SUBST(INTLTOOL_PROP_RULE)
511 AC_SUBST(INTLTOOL_OAF_RULE)
512 AC_SUBST(INTLTOOL_PONG_RULE)
513 AC_SUBST(INTLTOOL_SERVER_RULE)
514 AC_SUBST(INTLTOOL_SHEET_RULE)
515 AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
516 AC_SUBST(INTLTOOL_UI_RULE)
517 AC_SUBST(INTLTOOL_XAM_RULE)
518 AC_SUBST(INTLTOOL_KBD_RULE)
519 AC_SUBST(INTLTOOL_XML_RULE)
520 AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
521 AC_SUBST(INTLTOOL_CAVES_RULE)
522 AC_SUBST(INTLTOOL_SCHEMAS_RULE)
523 AC_SUBST(INTLTOOL_THEME_RULE)
524 AC_SUBST(INTLTOOL_SERVICE_RULE)
525 AC_SUBST(INTLTOOL_POLICY_RULE)
526
527 # Check the gettext tools to make sure they are GNU
528 AC_PATH_PROG(XGETTEXT, xgettext)
529 AC_PATH_PROG(MSGMERGE, msgmerge)
530 AC_PATH_PROG(MSGFMT, msgfmt)
531 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
532 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
533 fi
534 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
535 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
536 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
537 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
538 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
539 fi
540
541 AC_PATH_PROG(INTLTOOL_PERL, [perl])
542 if test -z "$INTLTOOL_PERL"; then
543 AC_MSG_ERROR([perl not found; required for intltool])
544 fi
545 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
546 AC_MSG_ERROR([perl 5.x required for intltool])
547 fi
548 if test "x$2" != "xno-xml"; then
549 AC_MSG_CHECKING([for XML::Parser])
550 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
551 AC_MSG_RESULT([ok])
552 else
553 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
554 fi
555 fi
556
557 # Substitute ALL_LINGUAS so we can use it in po/Makefile
558 AC_SUBST(ALL_LINGUAS)
559
560 # Set DATADIRNAME correctly if it is not set yet
561 # (copied from glib-gettext.m4)
562 if test -z "$DATADIRNAME"; then
563 AC_LINK_IFELSE(
564 [AC_LANG_PROGRAM([[]],
565 [[extern int _nl_msg_cat_cntr;
566 return _nl_msg_cat_cntr]])],
567 [DATADIRNAME=share],
568 [case $host in
569 *-*-solaris*)
570 dnl On Solaris, if bind_textdomain_codeset is in libc,
571 dnl GNU format message catalog is always supported,
572 dnl since both are added to the libc all together.
573 dnl Hence, we'd like to go with DATADIRNAME=share
574 dnl in this case.
575 AC_CHECK_FUNC(bind_textdomain_codeset,
576 [DATADIRNAME=share], [DATADIRNAME=lib])
577 ;;
578 *)
579 [DATADIRNAME=lib]
580 ;;
581 esac])
582 fi
583 AC_SUBST(DATADIRNAME)
584
585 IT_PO_SUBDIR([po])
586
587 ])
588
589
590 # IT_PO_SUBDIR(DIRNAME)
591 # ---------------------
592 # All po subdirs have to be declared with this macro; the subdir "po" is
593 # declared by IT_PROG_INTLTOOL.
594 #
595 AC_DEFUN([IT_PO_SUBDIR],
596 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
597 dnl
598 dnl The following CONFIG_COMMANDS should be exetuted at the very end
599 dnl of config.status.
600 AC_CONFIG_COMMANDS_PRE([
601 AC_CONFIG_COMMANDS([$1/stamp-it], [
602 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
603 >"$1/stamp-it.tmp"
604 [sed '/^#/d
605 s/^[[].*] *//
606 /^[ ]*$/d
607 '"s|^| $ac_top_srcdir/|" \
608 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
609 ]
610 if test ! -f "$1/Makefile"; then
611 AC_MSG_ERROR([$1/Makefile is not ready.])
612 fi
613 mv "$1/Makefile" "$1/Makefile.tmp"
614 [sed '/^POTFILES =/,/[^\\]$/ {
615 /^POTFILES =/!d
616 r $1/POTFILES
617 }
618 ' "$1/Makefile.tmp" >"$1/Makefile"]
619 rm -f "$1/Makefile.tmp"
620 mv "$1/stamp-it.tmp" "$1/stamp-it"
621 ])
622 ])dnl
623 ])
624
625
626 # deprecated macros
627 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
628 # A hint is needed for aclocal from Automake <= 1.9.4:
629 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
630
631
632 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
633
634 # serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
635
636
637 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
638 # -----------------------------------------------------------
639 # If this macro is not defined by Autoconf, define it here.
640 m4_ifdef([AC_PROVIDE_IFELSE],
641 [],
642 [m4_define([AC_PROVIDE_IFELSE],
643 [m4_ifdef([AC_PROVIDE_$1],
644 [$2], [$3])])])
645
646
647 # AC_PROG_LIBTOOL
648 # ---------------
649 AC_DEFUN([AC_PROG_LIBTOOL],
650 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
651 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
652 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
653 AC_PROVIDE_IFELSE([AC_PROG_CXX],
654 [AC_LIBTOOL_CXX],
655 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
656 ])])
657 dnl And a similar setup for Fortran 77 support
658 AC_PROVIDE_IFELSE([AC_PROG_F77],
659 [AC_LIBTOOL_F77],
660 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
661 ])])
662
663 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
664 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
665 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
666 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
667 [AC_LIBTOOL_GCJ],
668 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
669 [AC_LIBTOOL_GCJ],
670 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
671 [AC_LIBTOOL_GCJ],
672 [ifdef([AC_PROG_GCJ],
673 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
674 ifdef([A][M_PROG_GCJ],
675 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
676 ifdef([LT_AC_PROG_GCJ],
677 [define([LT_AC_PROG_GCJ],
678 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
679 ])])# AC_PROG_LIBTOOL
680
681
682 # _AC_PROG_LIBTOOL
683 # ----------------
684 AC_DEFUN([_AC_PROG_LIBTOOL],
685 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
686 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
687 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
688 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
689
690 # This can be used to rebuild libtool when needed
691 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
692
693 # Always use our own libtool.
694 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
695 AC_SUBST(LIBTOOL)dnl
696
697 # Prevent multiple expansion
698 define([AC_PROG_LIBTOOL], [])
699 ])# _AC_PROG_LIBTOOL
700
701
702 # AC_LIBTOOL_SETUP
703 # ----------------
704 AC_DEFUN([AC_LIBTOOL_SETUP],
705 [AC_PREREQ(2.50)dnl
706 AC_REQUIRE([AC_ENABLE_SHARED])dnl
707 AC_REQUIRE([AC_ENABLE_STATIC])dnl
708 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
709 AC_REQUIRE([AC_CANONICAL_HOST])dnl
710 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
711 AC_REQUIRE([AC_PROG_CC])dnl
712 AC_REQUIRE([AC_PROG_LD])dnl
713 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
714 AC_REQUIRE([AC_PROG_NM])dnl
715
716 AC_REQUIRE([AC_PROG_LN_S])dnl
717 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
718 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
719 AC_REQUIRE([AC_OBJEXT])dnl
720 AC_REQUIRE([AC_EXEEXT])dnl
721 dnl
722 AC_LIBTOOL_SYS_MAX_CMD_LEN
723 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
724 AC_LIBTOOL_OBJDIR
725
726 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
727 _LT_AC_PROG_ECHO_BACKSLASH
728
729 case $host_os in
730 aix3*)
731 # AIX sometimes has problems with the GCC collect2 program. For some
732 # reason, if we set the COLLECT_NAMES environment variable, the problems
733 # vanish in a puff of smoke.
734 if test "X${COLLECT_NAMES+set}" != Xset; then
735 COLLECT_NAMES=
736 export COLLECT_NAMES
737 fi
738 ;;
739 esac
740
741 # Sed substitution that helps us do robust quoting. It backslashifies
742 # metacharacters that are still active within double-quoted strings.
743 Xsed='sed -e 1s/^X//'
744 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
745
746 # Same as above, but do not quote variable references.
747 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
748
749 # Sed substitution to delay expansion of an escaped shell variable in a
750 # double_quote_subst'ed string.
751 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
752
753 # Sed substitution to avoid accidental globbing in evaled expressions
754 no_glob_subst='s/\*/\\\*/g'
755
756 # Constants:
757 rm="rm -f"
758
759 # Global variables:
760 default_ofile=libtool
761 can_build_shared=yes
762
763 # All known linkers require a `.a' archive for static linking (except MSVC,
764 # which needs '.lib').
765 libext=a
766 ltmain="$ac_aux_dir/ltmain.sh"
767 ofile="$default_ofile"
768 with_gnu_ld="$lt_cv_prog_gnu_ld"
769
770 AC_CHECK_TOOL(AR, ar, false)
771 AC_CHECK_TOOL(RANLIB, ranlib, :)
772 AC_CHECK_TOOL(STRIP, strip, :)
773
774 old_CC="$CC"
775 old_CFLAGS="$CFLAGS"
776
777 # Set sane defaults for various variables
778 test -z "$AR" && AR=ar
779 test -z "$AR_FLAGS" && AR_FLAGS=cru
780 test -z "$AS" && AS=as
781 test -z "$CC" && CC=cc
782 test -z "$LTCC" && LTCC=$CC
783 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
784 test -z "$DLLTOOL" && DLLTOOL=dlltool
785 test -z "$LD" && LD=ld
786 test -z "$LN_S" && LN_S="ln -s"
787 test -z "$MAGIC_CMD" && MAGIC_CMD=file
788 test -z "$NM" && NM=nm
789 test -z "$SED" && SED=sed
790 test -z "$OBJDUMP" && OBJDUMP=objdump
791 test -z "$RANLIB" && RANLIB=:
792 test -z "$STRIP" && STRIP=:
793 test -z "$ac_objext" && ac_objext=o
794
795 # Determine commands to create old-style static archives.
796 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
797 old_postinstall_cmds='chmod 644 $oldlib'
798 old_postuninstall_cmds=
799
800 if test -n "$RANLIB"; then
801 case $host_os in
802 openbsd*)
803 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
804 ;;
805 *)
806 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
807 ;;
808 esac
809 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
810 fi
811
812 _LT_CC_BASENAME([$compiler])
813
814 # Only perform the check for file, if the check method requires it
815 case $deplibs_check_method in
816 file_magic*)
817 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
818 AC_PATH_MAGIC
819 fi
820 ;;
821 esac
822
823 _LT_REQUIRED_DARWIN_CHECKS
824
825 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
826 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
827 enable_win32_dll=yes, enable_win32_dll=no)
828
829 AC_ARG_ENABLE([libtool-lock],
830 [AC_HELP_STRING([--disable-libtool-lock],
831 [avoid locking (might break parallel builds)])])
832 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
833
834 AC_ARG_WITH([pic],
835 [AC_HELP_STRING([--with-pic],
836 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
837 [pic_mode="$withval"],
838 [pic_mode=default])
839 test -z "$pic_mode" && pic_mode=default
840
841 # Use C for the default configuration in the libtool script
842 tagname=
843 AC_LIBTOOL_LANG_C_CONFIG
844 _LT_AC_TAGCONFIG
845 ])# AC_LIBTOOL_SETUP
846
847
848 # _LT_AC_SYS_COMPILER
849 # -------------------
850 AC_DEFUN([_LT_AC_SYS_COMPILER],
851 [AC_REQUIRE([AC_PROG_CC])dnl
852
853 # If no C compiler was specified, use CC.
854 LTCC=${LTCC-"$CC"}
855
856 # If no C compiler flags were specified, use CFLAGS.
857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
858
859 # Allow CC to be a program name with arguments.
860 compiler=$CC
861 ])# _LT_AC_SYS_COMPILER
862
863
864 # _LT_CC_BASENAME(CC)
865 # -------------------
866 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
867 AC_DEFUN([_LT_CC_BASENAME],
868 [for cc_temp in $1""; do
869 case $cc_temp in
870 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
871 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
872 \-*) ;;
873 *) break;;
874 esac
875 done
876 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
877 ])
878
879
880 # _LT_COMPILER_BOILERPLATE
881 # ------------------------
882 # Check for compiler boilerplate output or warnings with
883 # the simple compiler test code.
884 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
885 [AC_REQUIRE([LT_AC_PROG_SED])dnl
886 ac_outfile=conftest.$ac_objext
887 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
888 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
889 _lt_compiler_boilerplate=`cat conftest.err`
890 $rm conftest*
891 ])# _LT_COMPILER_BOILERPLATE
892
893
894 # _LT_LINKER_BOILERPLATE
895 # ----------------------
896 # Check for linker boilerplate output or warnings with
897 # the simple link test code.
898 AC_DEFUN([_LT_LINKER_BOILERPLATE],
899 [AC_REQUIRE([LT_AC_PROG_SED])dnl
900 ac_outfile=conftest.$ac_objext
901 echo "$lt_simple_link_test_code" >conftest.$ac_ext
902 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
903 _lt_linker_boilerplate=`cat conftest.err`
904 $rm -r conftest*
905 ])# _LT_LINKER_BOILERPLATE
906
907 # _LT_REQUIRED_DARWIN_CHECKS
908 # --------------------------
909 # Check for some things on darwin
910 AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
911 case $host_os in
912 rhapsody* | darwin*)
913 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
914 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
915
916 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
917 [lt_cv_apple_cc_single_mod=no
918 if test -z "${LT_MULTI_MODULE}"; then
919 # By default we will add the -single_module flag. You can override
920 # by either setting the environment variable LT_MULTI_MODULE
921 # non-empty at configure time, or by adding -multi_module to the
922 # link flags.
923 echo "int foo(void){return 1;}" > conftest.c
924 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
925 -dynamiclib ${wl}-single_module conftest.c
926 if test -f libconftest.dylib; then
927 lt_cv_apple_cc_single_mod=yes
928 rm -rf libconftest.dylib*
929 fi
930 rm conftest.c
931 fi])
932 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
933 [lt_cv_ld_exported_symbols_list],
934 [lt_cv_ld_exported_symbols_list=no
935 save_LDFLAGS=$LDFLAGS
936 echo "_main" > conftest.sym
937 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
938 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
939 [lt_cv_ld_exported_symbols_list=yes],
940 [lt_cv_ld_exported_symbols_list=no])
941 LDFLAGS="$save_LDFLAGS"
942 ])
943 case $host_os in
944 rhapsody* | darwin1.[[0123]])
945 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
946 darwin1.*)
947 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
948 darwin*)
949 # if running on 10.5 or later, the deployment target defaults
950 # to the OS version, if on x86, and 10.4, the deployment
951 # target defaults to 10.4. Don't you love it?
952 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
953 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
954 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
955 10.[[012]]*)
956 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
957 10.*)
958 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
959 esac
960 ;;
961 esac
962 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
963 _lt_dar_single_mod='$single_module'
964 fi
965 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
966 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
967 else
968 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
969 fi
970 if test "$DSYMUTIL" != ":"; then
971 _lt_dsymutil="~$DSYMUTIL \$lib || :"
972 else
973 _lt_dsymutil=
974 fi
975 ;;
976 esac
977 ])
978
979 # _LT_AC_SYS_LIBPATH_AIX
980 # ----------------------
981 # Links a minimal program and checks the executable
982 # for the system default hardcoded library path. In most cases,
983 # this is /usr/lib:/lib, but when the MPI compilers are used
984 # the location of the communication and MPI libs are included too.
985 # If we don't find anything, use the default library path according
986 # to the aix ld manual.
987 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
988 [AC_REQUIRE([LT_AC_PROG_SED])dnl
989 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
990 lt_aix_libpath_sed='
991 /Import File Strings/,/^$/ {
992 /^0/ {
993 s/^0 *\(.*\)$/\1/
994 p
995 }
996 }'
997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
998 # Check for a 64-bit object if we didn't find anything.
999 if test -z "$aix_libpath"; then
1000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1001 fi],[])
1002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1003 ])# _LT_AC_SYS_LIBPATH_AIX
1004
1005
1006 # _LT_AC_SHELL_INIT(ARG)
1007 # ----------------------
1008 AC_DEFUN([_LT_AC_SHELL_INIT],
1009 [ifdef([AC_DIVERSION_NOTICE],
1010 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1011 [AC_DIVERT_PUSH(NOTICE)])
1012 $1
1013 AC_DIVERT_POP
1014 ])# _LT_AC_SHELL_INIT
1015
1016
1017 # _LT_AC_PROG_ECHO_BACKSLASH
1018 # --------------------------
1019 # Add some code to the start of the generated configure script which
1020 # will find an echo command which doesn't interpret backslashes.
1021 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1022 [_LT_AC_SHELL_INIT([
1023 # Check that we are running under the correct shell.
1024 SHELL=${CONFIG_SHELL-/bin/sh}
1025
1026 case X$ECHO in
1027 X*--fallback-echo)
1028 # Remove one level of quotation (which was required for Make).
1029 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1030 ;;
1031 esac
1032
1033 echo=${ECHO-echo}
1034 if test "X[$]1" = X--no-reexec; then
1035 # Discard the --no-reexec flag, and continue.
1036 shift
1037 elif test "X[$]1" = X--fallback-echo; then
1038 # Avoid inline document here, it may be left over
1039 :
1040 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1041 # Yippee, $echo works!
1042 :
1043 else
1044 # Restart under the correct shell.
1045 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1046 fi
1047
1048 if test "X[$]1" = X--fallback-echo; then
1049 # used as fallback echo
1050 shift
1051 cat <<EOF
1052 [$]*
1053 EOF
1054 exit 0
1055 fi
1056
1057 # The HP-UX ksh and POSIX shell print the target directory to stdout
1058 # if CDPATH is set.
1059 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1060
1061 if test -z "$ECHO"; then
1062 if test "X${echo_test_string+set}" != Xset; then
1063 # find a string as large as possible, as long as the shell can cope with it
1064 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1065 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1066 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1067 echo_test_string=`eval $cmd` &&
1068 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1069 then
1070 break
1071 fi
1072 done
1073 fi
1074
1075 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1076 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1077 test "X$echo_testing_string" = "X$echo_test_string"; then
1078 :
1079 else
1080 # The Solaris, AIX, and Digital Unix default echo programs unquote
1081 # backslashes. This makes it impossible to quote backslashes using
1082 # echo "$something" | sed 's/\\/\\\\/g'
1083 #
1084 # So, first we look for a working echo in the user's PATH.
1085
1086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1087 for dir in $PATH /usr/ucb; do
1088 IFS="$lt_save_ifs"
1089 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1090 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1091 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1092 test "X$echo_testing_string" = "X$echo_test_string"; then
1093 echo="$dir/echo"
1094 break
1095 fi
1096 done
1097 IFS="$lt_save_ifs"
1098
1099 if test "X$echo" = Xecho; then
1100 # We didn't find a better echo, so look for alternatives.
1101 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1102 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1103 test "X$echo_testing_string" = "X$echo_test_string"; then
1104 # This shell has a builtin print -r that does the trick.
1105 echo='print -r'
1106 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1107 test "X$CONFIG_SHELL" != X/bin/ksh; then
1108 # If we have ksh, try running configure again with it.
1109 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1110 export ORIGINAL_CONFIG_SHELL
1111 CONFIG_SHELL=/bin/ksh
1112 export CONFIG_SHELL
1113 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1114 else
1115 # Try using printf.
1116 echo='printf %s\n'
1117 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1118 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1119 test "X$echo_testing_string" = "X$echo_test_string"; then
1120 # Cool, printf works
1121 :
1122 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1123 test "X$echo_testing_string" = 'X\t' &&
1124 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1127 export CONFIG_SHELL
1128 SHELL="$CONFIG_SHELL"
1129 export SHELL
1130 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1131 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1132 test "X$echo_testing_string" = 'X\t' &&
1133 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1134 test "X$echo_testing_string" = "X$echo_test_string"; then
1135 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1136 else
1137 # maybe with a smaller string...
1138 prev=:
1139
1140 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1141 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1142 then
1143 break
1144 fi
1145 prev="$cmd"
1146 done
1147
1148 if test "$prev" != 'sed 50q "[$]0"'; then
1149 echo_test_string=`eval $prev`
1150 export echo_test_string
1151 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1152 else
1153 # Oops. We lost completely, so just stick with echo.
1154 echo=echo
1155 fi
1156 fi
1157 fi
1158 fi
1159 fi
1160 fi
1161
1162 # Copy echo and quote the copy suitably for passing to libtool from
1163 # the Makefile, instead of quoting the original, which is used later.
1164 ECHO=$echo
1165 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1166 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1167 fi
1168
1169 AC_SUBST(ECHO)
1170 ])])# _LT_AC_PROG_ECHO_BACKSLASH
1171
1172
1173 # _LT_AC_LOCK
1174 # -----------
1175 AC_DEFUN([_LT_AC_LOCK],
1176 [AC_ARG_ENABLE([libtool-lock],
1177 [AC_HELP_STRING([--disable-libtool-lock],
1178 [avoid locking (might break parallel builds)])])
1179 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1180
1181 # Some flags need to be propagated to the compiler or linker for good
1182 # libtool support.
1183 case $host in
1184 ia64-*-hpux*)
1185 # Find out which ABI we are using.
1186 echo 'int i;' > conftest.$ac_ext
1187 if AC_TRY_EVAL(ac_compile); then
1188 case `/usr/bin/file conftest.$ac_objext` in
1189 *ELF-32*)
1190 HPUX_IA64_MODE="32"
1191 ;;
1192 *ELF-64*)
1193 HPUX_IA64_MODE="64"
1194 ;;
1195 esac
1196 fi
1197 rm -rf conftest*
1198 ;;
1199 *-*-irix6*)
1200 # Find out which ABI we are using.
1201 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1202 if AC_TRY_EVAL(ac_compile); then
1203 if test "$lt_cv_prog_gnu_ld" = yes; then
1204 case `/usr/bin/file conftest.$ac_objext` in
1205 *32-bit*)
1206 LD="${LD-ld} -melf32bsmip"
1207 ;;
1208 *N32*)
1209 LD="${LD-ld} -melf32bmipn32"
1210 ;;
1211 *64-bit*)
1212 LD="${LD-ld} -melf64bmip"
1213 ;;
1214 esac
1215 else
1216 case `/usr/bin/file conftest.$ac_objext` in
1217 *32-bit*)
1218 LD="${LD-ld} -32"
1219 ;;
1220 *N32*)
1221 LD="${LD-ld} -n32"
1222 ;;
1223 *64-bit*)
1224 LD="${LD-ld} -64"
1225 ;;
1226 esac
1227 fi
1228 fi
1229 rm -rf conftest*
1230 ;;
1231
1232 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1233 s390*-*linux*|sparc*-*linux*)
1234 # Find out which ABI we are using.
1235 echo 'int i;' > conftest.$ac_ext
1236 if AC_TRY_EVAL(ac_compile); then
1237 case `/usr/bin/file conftest.o` in
1238 *32-bit*)
1239 case $host in
1240 x86_64-*kfreebsd*-gnu)
1241 LD="${LD-ld} -m elf_i386_fbsd"
1242 ;;
1243 x86_64-*linux*)
1244 LD="${LD-ld} -m elf_i386"
1245 ;;
1246 ppc64-*linux*|powerpc64-*linux*)
1247 LD="${LD-ld} -m elf32ppclinux"
1248 ;;
1249 s390x-*linux*)
1250 LD="${LD-ld} -m elf_s390"
1251 ;;
1252 sparc64-*linux*)
1253 LD="${LD-ld} -m elf32_sparc"
1254 ;;
1255 esac
1256 ;;
1257 *64-bit*)
1258 case $host in
1259 x86_64-*kfreebsd*-gnu)
1260 LD="${LD-ld} -m elf_x86_64_fbsd"
1261 ;;
1262 x86_64-*linux*)
1263 LD="${LD-ld} -m elf_x86_64"
1264 ;;
1265 ppc*-*linux*|powerpc*-*linux*)
1266 LD="${LD-ld} -m elf64ppc"
1267 ;;
1268 s390*-*linux*)
1269 LD="${LD-ld} -m elf64_s390"
1270 ;;
1271 sparc*-*linux*)
1272 LD="${LD-ld} -m elf64_sparc"
1273 ;;
1274 esac
1275 ;;
1276 esac
1277 fi
1278 rm -rf conftest*
1279 ;;
1280
1281 *-*-sco3.2v5*)
1282 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1283 SAVE_CFLAGS="$CFLAGS"
1284 CFLAGS="$CFLAGS -belf"
1285 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1286 [AC_LANG_PUSH(C)
1287 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1288 AC_LANG_POP])
1289 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1290 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1291 CFLAGS="$SAVE_CFLAGS"
1292 fi
1293 ;;
1294 sparc*-*solaris*)
1295 # Find out which ABI we are using.
1296 echo 'int i;' > conftest.$ac_ext
1297 if AC_TRY_EVAL(ac_compile); then
1298 case `/usr/bin/file conftest.o` in
1299 *64-bit*)
1300 case $lt_cv_prog_gnu_ld in
1301 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1302 *)
1303 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1304 LD="${LD-ld} -64"
1305 fi
1306 ;;
1307 esac
1308 ;;
1309 esac
1310 fi
1311 rm -rf conftest*
1312 ;;
1313
1314 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1315 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1316 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1317 AC_CHECK_TOOL(AS, as, false)
1318 AC_CHECK_TOOL(OBJDUMP, objdump, false)
1319 ;;
1320 ])
1321 esac
1322
1323 need_locks="$enable_libtool_lock"
1324
1325 ])# _LT_AC_LOCK
1326
1327
1328 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1329 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1330 # ----------------------------------------------------------------
1331 # Check whether the given compiler option works
1332 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1333 [AC_REQUIRE([LT_AC_PROG_SED])
1334 AC_CACHE_CHECK([$1], [$2],
1335 [$2=no
1336 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1338 lt_compiler_flag="$3"
1339 # Insert the option either (1) after the last *FLAGS variable, or
1340 # (2) before a word containing "conftest.", or (3) at the end.
1341 # Note that $ac_compile itself does not contain backslashes and begins
1342 # with a dollar sign (not a hyphen), so the echo should work correctly.
1343 # The option is referenced via a variable to avoid confusing sed.
1344 lt_compile=`echo "$ac_compile" | $SED \
1345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1346 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1347 -e 's:$: $lt_compiler_flag:'`
1348 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1349 (eval "$lt_compile" 2>conftest.err)
1350 ac_status=$?
1351 cat conftest.err >&AS_MESSAGE_LOG_FD
1352 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1353 if (exit $ac_status) && test -s "$ac_outfile"; then
1354 # The compiler can only warn and ignore the option if not recognized
1355 # So say no if there are warnings other than the usual output.
1356 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1358 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1359 $2=yes
1360 fi
1361 fi
1362 $rm conftest*
1363 ])
1364
1365 if test x"[$]$2" = xyes; then
1366 ifelse([$5], , :, [$5])
1367 else
1368 ifelse([$6], , :, [$6])
1369 fi
1370 ])# AC_LIBTOOL_COMPILER_OPTION
1371
1372
1373 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1374 # [ACTION-SUCCESS], [ACTION-FAILURE])
1375 # ------------------------------------------------------------
1376 # Check whether the given compiler option works
1377 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1378 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1379 AC_CACHE_CHECK([$1], [$2],
1380 [$2=no
1381 save_LDFLAGS="$LDFLAGS"
1382 LDFLAGS="$LDFLAGS $3"
1383 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1385 # The linker can only warn and ignore the option if not recognized
1386 # So say no if there are warnings
1387 if test -s conftest.err; then
1388 # Append any errors to the config.log.
1389 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1390 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1392 if diff conftest.exp conftest.er2 >/dev/null; then
1393 $2=yes
1394 fi
1395 else
1396 $2=yes
1397 fi
1398 fi
1399 $rm -r conftest*
1400 LDFLAGS="$save_LDFLAGS"
1401 ])
1402
1403 if test x"[$]$2" = xyes; then
1404 ifelse([$4], , :, [$4])
1405 else
1406 ifelse([$5], , :, [$5])
1407 fi
1408 ])# AC_LIBTOOL_LINKER_OPTION
1409
1410
1411 # AC_LIBTOOL_SYS_MAX_CMD_LEN
1412 # --------------------------
1413 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1414 [# find the maximum length of command line arguments
1415 AC_MSG_CHECKING([the maximum length of command line arguments])
1416 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1417 i=0
1418 teststring="ABCD"
1419
1420 case $build_os in
1421 msdosdjgpp*)
1422 # On DJGPP, this test can blow up pretty badly due to problems in libc
1423 # (any single argument exceeding 2000 bytes causes a buffer overrun
1424 # during glob expansion). Even if it were fixed, the result of this
1425 # check would be larger than it should be.
1426 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1427 ;;
1428
1429 gnu*)
1430 # Under GNU Hurd, this test is not required because there is
1431 # no limit to the length of command line arguments.
1432 # Libtool will interpret -1 as no limit whatsoever
1433 lt_cv_sys_max_cmd_len=-1;
1434 ;;
1435
1436 cygwin* | mingw*)
1437 # On Win9x/ME, this test blows up -- it succeeds, but takes
1438 # about 5 minutes as the teststring grows exponentially.
1439 # Worse, since 9x/ME are not pre-emptively multitasking,
1440 # you end up with a "frozen" computer, even though with patience
1441 # the test eventually succeeds (with a max line length of 256k).
1442 # Instead, let's just punt: use the minimum linelength reported by
1443 # all of the supported platforms: 8192 (on NT/2K/XP).
1444 lt_cv_sys_max_cmd_len=8192;
1445 ;;
1446
1447 amigaos*)
1448 # On AmigaOS with pdksh, this test takes hours, literally.
1449 # So we just punt and use a minimum line length of 8192.
1450 lt_cv_sys_max_cmd_len=8192;
1451 ;;
1452
1453 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1454 # This has been around since 386BSD, at least. Likely further.
1455 if test -x /sbin/sysctl; then
1456 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1457 elif test -x /usr/sbin/sysctl; then
1458 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1459 else
1460 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1461 fi
1462 # And add a safety zone
1463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1465 ;;
1466
1467 interix*)
1468 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1469 lt_cv_sys_max_cmd_len=196608
1470 ;;
1471
1472 osf*)
1473 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1474 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1475 # nice to cause kernel panics so lets avoid the loop below.
1476 # First set a reasonable default.
1477 lt_cv_sys_max_cmd_len=16384
1478 #
1479 if test -x /sbin/sysconfig; then
1480 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1481 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1482 esac
1483 fi
1484 ;;
1485 sco3.2v5*)
1486 lt_cv_sys_max_cmd_len=102400
1487 ;;
1488 sysv5* | sco5v6* | sysv4.2uw2*)
1489 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1490 if test -n "$kargmax"; then
1491 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1492 else
1493 lt_cv_sys_max_cmd_len=32768
1494 fi
1495 ;;
1496 *)
1497 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1498 if test -n "$lt_cv_sys_max_cmd_len"; then
1499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1501 else
1502 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1503 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1504 = "XX$teststring") >/dev/null 2>&1 &&
1505 new_result=`expr "X$teststring" : ".*" 2>&1` &&
1506 lt_cv_sys_max_cmd_len=$new_result &&
1507 test $i != 17 # 1/2 MB should be enough
1508 do
1509 i=`expr $i + 1`
1510 teststring=$teststring$teststring
1511 done
1512 teststring=
1513 # Add a significant safety factor because C++ compilers can tack on massive
1514 # amounts of additional arguments before passing them to the linker.
1515 # It appears as though 1/2 is a usable value.
1516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1517 fi
1518 ;;
1519 esac
1520 ])
1521 if test -n $lt_cv_sys_max_cmd_len ; then
1522 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1523 else
1524 AC_MSG_RESULT(none)
1525 fi
1526 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1527
1528
1529 # _LT_AC_CHECK_DLFCN
1530 # ------------------
1531 AC_DEFUN([_LT_AC_CHECK_DLFCN],
1532 [AC_CHECK_HEADERS(dlfcn.h)dnl
1533 ])# _LT_AC_CHECK_DLFCN
1534
1535
1536 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1537 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1538 # ---------------------------------------------------------------------
1539 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1540 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1541 if test "$cross_compiling" = yes; then :
1542 [$4]
1543 else
1544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1545 lt_status=$lt_dlunknown
1546 cat > conftest.$ac_ext <<EOF
1547 [#line __oline__ "configure"
1548 #include "confdefs.h"
1549
1550 #if HAVE_DLFCN_H
1551 #include <dlfcn.h>
1552 #endif
1553
1554 #include <stdio.h>
1555
1556 #ifdef RTLD_GLOBAL
1557 # define LT_DLGLOBAL RTLD_GLOBAL
1558 #else
1559 # ifdef DL_GLOBAL
1560 # define LT_DLGLOBAL DL_GLOBAL
1561 # else
1562 # define LT_DLGLOBAL 0
1563 # endif
1564 #endif
1565
1566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1567 find out it does not work in some platform. */
1568 #ifndef LT_DLLAZY_OR_NOW
1569 # ifdef RTLD_LAZY
1570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1571 # else
1572 # ifdef DL_LAZY
1573 # define LT_DLLAZY_OR_NOW DL_LAZY
1574 # else
1575 # ifdef RTLD_NOW
1576 # define LT_DLLAZY_OR_NOW RTLD_NOW
1577 # else
1578 # ifdef DL_NOW
1579 # define LT_DLLAZY_OR_NOW DL_NOW
1580 # else
1581 # define LT_DLLAZY_OR_NOW 0
1582 # endif
1583 # endif
1584 # endif
1585 # endif
1586 #endif
1587
1588 #ifdef __cplusplus
1589 extern "C" void exit (int);
1590 #endif
1591
1592 void fnord() { int i=42;}
1593 int main ()
1594 {
1595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1596 int status = $lt_dlunknown;
1597
1598 if (self)
1599 {
1600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1602 /* dlclose (self); */
1603 }
1604 else
1605 puts (dlerror ());
1606
1607 exit (status);
1608 }]
1609 EOF
1610 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1611 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1612 lt_status=$?
1613 case x$lt_status in
1614 x$lt_dlno_uscore) $1 ;;
1615 x$lt_dlneed_uscore) $2 ;;
1616 x$lt_dlunknown|x*) $3 ;;
1617 esac
1618 else :
1619 # compilation failed
1620 $3
1621 fi
1622 fi
1623 rm -fr conftest*
1624 ])# _LT_AC_TRY_DLOPEN_SELF
1625
1626
1627 # AC_LIBTOOL_DLOPEN_SELF
1628 # ----------------------
1629 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1630 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1631 if test "x$enable_dlopen" != xyes; then
1632 enable_dlopen=unknown
1633 enable_dlopen_self=unknown
1634 enable_dlopen_self_static=unknown
1635 else
1636 lt_cv_dlopen=no
1637 lt_cv_dlopen_libs=
1638
1639 case $host_os in
1640 beos*)
1641 lt_cv_dlopen="load_add_on"
1642 lt_cv_dlopen_libs=
1643 lt_cv_dlopen_self=yes
1644 ;;
1645
1646 mingw* | pw32*)
1647 lt_cv_dlopen="LoadLibrary"
1648 lt_cv_dlopen_libs=
1649 ;;
1650
1651 cygwin*)
1652 lt_cv_dlopen="dlopen"
1653 lt_cv_dlopen_libs=
1654 ;;
1655
1656 darwin*)
1657 # if libdl is installed we need to link against it
1658 AC_CHECK_LIB([dl], [dlopen],
1659 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1660 lt_cv_dlopen="dyld"
1661 lt_cv_dlopen_libs=
1662 lt_cv_dlopen_self=yes
1663 ])
1664 ;;
1665
1666 *)
1667 AC_CHECK_FUNC([shl_load],
1668 [lt_cv_dlopen="shl_load"],
1669 [AC_CHECK_LIB([dld], [shl_load],
1670 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1671 [AC_CHECK_FUNC([dlopen],
1672 [lt_cv_dlopen="dlopen"],
1673 [AC_CHECK_LIB([dl], [dlopen],
1674 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1675 [AC_CHECK_LIB([svld], [dlopen],
1676 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1677 [AC_CHECK_LIB([dld], [dld_link],
1678 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1679 ])
1680 ])
1681 ])
1682 ])
1683 ])
1684 ;;
1685 esac
1686
1687 if test "x$lt_cv_dlopen" != xno; then
1688 enable_dlopen=yes
1689 else
1690 enable_dlopen=no
1691 fi
1692
1693 case $lt_cv_dlopen in
1694 dlopen)
1695 save_CPPFLAGS="$CPPFLAGS"
1696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1697
1698 save_LDFLAGS="$LDFLAGS"
1699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1700
1701 save_LIBS="$LIBS"
1702 LIBS="$lt_cv_dlopen_libs $LIBS"
1703
1704 AC_CACHE_CHECK([whether a program can dlopen itself],
1705 lt_cv_dlopen_self, [dnl
1706 _LT_AC_TRY_DLOPEN_SELF(
1707 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1708 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1709 ])
1710
1711 if test "x$lt_cv_dlopen_self" = xyes; then
1712 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1713 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1714 lt_cv_dlopen_self_static, [dnl
1715 _LT_AC_TRY_DLOPEN_SELF(
1716 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1717 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1718 ])
1719 fi
1720
1721 CPPFLAGS="$save_CPPFLAGS"
1722 LDFLAGS="$save_LDFLAGS"
1723 LIBS="$save_LIBS"
1724 ;;
1725 esac
1726
1727 case $lt_cv_dlopen_self in
1728 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1729 *) enable_dlopen_self=unknown ;;
1730 esac
1731
1732 case $lt_cv_dlopen_self_static in
1733 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1734 *) enable_dlopen_self_static=unknown ;;
1735 esac
1736 fi
1737 ])# AC_LIBTOOL_DLOPEN_SELF
1738
1739
1740 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1741 # ---------------------------------
1742 # Check to see if options -c and -o are simultaneously supported by compiler
1743 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1744 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1745 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1746 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1747 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1748 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1749 $rm -r conftest 2>/dev/null
1750 mkdir conftest
1751 cd conftest
1752 mkdir out
1753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1754
1755 lt_compiler_flag="-o out/conftest2.$ac_objext"
1756 # Insert the option either (1) after the last *FLAGS variable, or
1757 # (2) before a word containing "conftest.", or (3) at the end.
1758 # Note that $ac_compile itself does not contain backslashes and begins
1759 # with a dollar sign (not a hyphen), so the echo should work correctly.
1760 lt_compile=`echo "$ac_compile" | $SED \
1761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1762 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1763 -e 's:$: $lt_compiler_flag:'`
1764 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1765 (eval "$lt_compile" 2>out/conftest.err)
1766 ac_status=$?
1767 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1768 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1770 then
1771 # The compiler can only warn and ignore the option if not recognized
1772 # So say no if there are warnings
1773 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1776 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1777 fi
1778 fi
1779 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1780 $rm conftest*
1781 # SGI C++ compiler will create directory out/ii_files/ for
1782 # template instantiation
1783 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1784 $rm out/* && rmdir out
1785 cd ..
1786 rmdir conftest
1787 $rm conftest*
1788 ])
1789 ])# AC_LIBTOOL_PROG_CC_C_O
1790
1791
1792 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1793 # -----------------------------------------
1794 # Check to see if we can do hard links to lock some files if needed
1795 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1796 [AC_REQUIRE([_LT_AC_LOCK])dnl
1797
1798 hard_links="nottested"
1799 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1800 # do not overwrite the value of need_locks provided by the user
1801 AC_MSG_CHECKING([if we can lock with hard links])
1802 hard_links=yes
1803 $rm conftest*
1804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1805 touch conftest.a
1806 ln conftest.a conftest.b 2>&5 || hard_links=no
1807 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1808 AC_MSG_RESULT([$hard_links])
1809 if test "$hard_links" = no; then
1810 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1811 need_locks=warn
1812 fi
1813 else
1814 need_locks=no
1815 fi
1816 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1817
1818
1819 # AC_LIBTOOL_OBJDIR
1820 # -----------------
1821 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1822 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1823 [rm -f .libs 2>/dev/null
1824 mkdir .libs 2>/dev/null
1825 if test -d .libs; then
1826 lt_cv_objdir=.libs
1827 else
1828 # MS-DOS does not allow filenames that begin with a dot.
1829 lt_cv_objdir=_libs
1830 fi
1831 rmdir .libs 2>/dev/null])
1832 objdir=$lt_cv_objdir
1833 ])# AC_LIBTOOL_OBJDIR
1834
1835
1836 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1837 # ----------------------------------------------
1838 # Check hardcoding attributes.
1839 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1840 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1841 _LT_AC_TAGVAR(hardcode_action, $1)=
1842 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1843 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1844 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1845
1846 # We can hardcode non-existant directories.
1847 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1848 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1849 # have to relink, otherwise we might link with an installed library
1850 # when we should be linking with a yet-to-be-installed one
1851 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1852 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1853 # Linking always hardcodes the temporary library directory.
1854 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1855 else
1856 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1857 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1858 fi
1859 else
1860 # We cannot hardcode anything, or else we can only hardcode existing
1861 # directories.
1862 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1863 fi
1864 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1865
1866 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1867 # Fast installation is not supported
1868 enable_fast_install=no
1869 elif test "$shlibpath_overrides_runpath" = yes ||
1870 test "$enable_shared" = no; then
1871 # Fast installation is not necessary
1872 enable_fast_install=needless
1873 fi
1874 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1875
1876
1877 # AC_LIBTOOL_SYS_LIB_STRIP
1878 # ------------------------
1879 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1880 [striplib=
1881 old_striplib=
1882 AC_MSG_CHECKING([whether stripping libraries is possible])
1883 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1884 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1885 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1886 AC_MSG_RESULT([yes])
1887 else
1888 # FIXME - insert some real tests, host_os isn't really good enough
1889 case $host_os in
1890 darwin*)
1891 if test -n "$STRIP" ; then
1892 striplib="$STRIP -x"
1893 old_striplib="$STRIP -S"
1894 AC_MSG_RESULT([yes])
1895 else
1896 AC_MSG_RESULT([no])
1897 fi
1898 ;;
1899 *)
1900 AC_MSG_RESULT([no])
1901 ;;
1902 esac
1903 fi
1904 ])# AC_LIBTOOL_SYS_LIB_STRIP
1905
1906
1907 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1908 # -----------------------------
1909 # PORTME Fill in your ld.so characteristics
1910 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1911 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1912 AC_MSG_CHECKING([dynamic linker characteristics])
1913 library_names_spec=
1914 libname_spec='lib$name'
1915 soname_spec=
1916 shrext_cmds=".so"
1917 postinstall_cmds=
1918 postuninstall_cmds=
1919 finish_cmds=
1920 finish_eval=
1921 shlibpath_var=
1922 shlibpath_overrides_runpath=unknown
1923 version_type=none
1924 dynamic_linker="$host_os ld.so"
1925 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1926 m4_if($1,[],[
1927 if test "$GCC" = yes; then
1928 case $host_os in
1929 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1930 *) lt_awk_arg="/^libraries:/" ;;
1931 esac
1932 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1933 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1934 # if the path contains ";" then we assume it to be the separator
1935 # otherwise default to the standard path separator (i.e. ":") - it is
1936 # assumed that no part of a normal pathname contains ";" but that should
1937 # okay in the real world where ";" in dirpaths is itself problematic.
1938 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1939 else
1940 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1941 fi
1942 # Ok, now we have the path, separated by spaces, we can step through it
1943 # and add multilib dir if necessary.
1944 lt_tmp_lt_search_path_spec=
1945 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1946 for lt_sys_path in $lt_search_path_spec; do
1947 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1948 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1949 else
1950 test -d "$lt_sys_path" && \
1951 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1952 fi
1953 done
1954 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1955 BEGIN {RS=" "; FS="/|\n";} {
1956 lt_foo="";
1957 lt_count=0;
1958 for (lt_i = NF; lt_i > 0; lt_i--) {
1959 if ($lt_i != "" && $lt_i != ".") {
1960 if ($lt_i == "..") {
1961 lt_count++;
1962 } else {
1963 if (lt_count == 0) {
1964 lt_foo="/" $lt_i lt_foo;
1965 } else {
1966 lt_count--;
1967 }
1968 }
1969 }
1970 }
1971 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1972 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1973 }'`
1974 sys_lib_search_path_spec=`echo $lt_search_path_spec`
1975 else
1976 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1977 fi])
1978 need_lib_prefix=unknown
1979 hardcode_into_libs=no
1980
1981 # when you set need_version to no, make sure it does not cause -set_version
1982 # flags to be left without arguments
1983 need_version=unknown
1984
1985 case $host_os in
1986 aix3*)
1987 version_type=linux
1988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1989 shlibpath_var=LIBPATH
1990
1991 # AIX 3 has no versioning support, so we append a major version to the name.
1992 soname_spec='${libname}${release}${shared_ext}$major'
1993 ;;
1994
1995 aix[[4-9]]*)
1996 version_type=linux
1997 need_lib_prefix=no
1998 need_version=no
1999 hardcode_into_libs=yes
2000 if test "$host_cpu" = ia64; then
2001 # AIX 5 supports IA64
2002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2003 shlibpath_var=LD_LIBRARY_PATH
2004 else
2005 # With GCC up to 2.95.x, collect2 would create an import file
2006 # for dependence libraries. The import file would start with
2007 # the line `#! .'. This would cause the generated library to
2008 # depend on `.', always an invalid library. This was fixed in
2009 # development snapshots of GCC prior to 3.0.
2010 case $host_os in
2011 aix4 | aix4.[[01]] | aix4.[[01]].*)
2012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2013 echo ' yes '
2014 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2015 :
2016 else
2017 can_build_shared=no
2018 fi
2019 ;;
2020 esac
2021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2022 # soname into executable. Probably we can add versioning support to
2023 # collect2, so additional links can be useful in future.
2024 if test "$aix_use_runtimelinking" = yes; then
2025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2026 # instead of lib<name>.a to let people know that these are not
2027 # typical AIX shared libraries.
2028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2029 else
2030 # We preserve .a as extension for shared libraries through AIX4.2
2031 # and later when we are not doing run time linking.
2032 library_names_spec='${libname}${release}.a $libname.a'
2033 soname_spec='${libname}${release}${shared_ext}$major'
2034 fi
2035 shlibpath_var=LIBPATH
2036 fi
2037 ;;
2038
2039 amigaos*)
2040 library_names_spec='$libname.ixlibrary $libname.a'
2041 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2042 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'
2043 ;;
2044
2045 beos*)
2046 library_names_spec='${libname}${shared_ext}'
2047 dynamic_linker="$host_os ld.so"
2048 shlibpath_var=LIBRARY_PATH
2049 ;;
2050
2051 bsdi[[45]]*)
2052 version_type=linux
2053 need_version=no
2054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2055 soname_spec='${libname}${release}${shared_ext}$major'
2056 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2057 shlibpath_var=LD_LIBRARY_PATH
2058 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2059 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2060 # the default ld.so.conf also contains /usr/contrib/lib and
2061 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2062 # libtool to hard-code these into programs
2063 ;;
2064
2065 cygwin* | mingw* | pw32*)
2066 version_type=windows
2067 shrext_cmds=".dll"
2068 need_version=no
2069 need_lib_prefix=no
2070
2071 case $GCC,$host_os in
2072 yes,cygwin* | yes,mingw* | yes,pw32*)
2073 library_names_spec='$libname.dll.a'
2074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2075 postinstall_cmds='base_file=`basename \${file}`~
2076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2077 dldir=$destdir/`dirname \$dlpath`~
2078 test -d \$dldir || mkdir -p \$dldir~
2079 $install_prog $dir/$dlname \$dldir/$dlname~
2080 chmod a+x \$dldir/$dlname'
2081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2082 dlpath=$dir/\$dldll~
2083 $rm \$dlpath'
2084 shlibpath_overrides_runpath=yes
2085
2086 case $host_os in
2087 cygwin*)
2088 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2089 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2090 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2091 ;;
2092 mingw*)
2093 # MinGW DLLs use traditional 'lib' prefix
2094 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2095 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2096 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2097 # It is most probably a Windows format PATH printed by
2098 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2099 # path with ; separators, and with drive letters. We can handle the
2100 # drive letters (cygwin fileutils understands them), so leave them,
2101 # especially as we might pass files found there to a mingw objdump,
2102 # which wouldn't understand a cygwinified path. Ahh.
2103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2104 else
2105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2106 fi
2107 ;;
2108 pw32*)
2109 # pw32 DLLs use 'pw' prefix rather than 'lib'
2110 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2111 ;;
2112 esac
2113 ;;
2114
2115 *)
2116 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2117 ;;
2118 esac
2119 dynamic_linker='Win32 ld.exe'
2120 # FIXME: first we should search . and the directory the executable is in
2121 shlibpath_var=PATH
2122 ;;
2123
2124 darwin* | rhapsody*)
2125 dynamic_linker="$host_os dyld"
2126 version_type=darwin
2127 need_lib_prefix=no
2128 need_version=no
2129 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2130 soname_spec='${libname}${release}${major}$shared_ext'
2131 shlibpath_overrides_runpath=yes
2132 shlibpath_var=DYLD_LIBRARY_PATH
2133 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2134 m4_if([$1], [],[
2135 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2137 ;;
2138
2139 dgux*)
2140 version_type=linux
2141 need_lib_prefix=no
2142 need_version=no
2143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2144 soname_spec='${libname}${release}${shared_ext}$major'
2145 shlibpath_var=LD_LIBRARY_PATH
2146 ;;
2147
2148 freebsd1*)
2149 dynamic_linker=no
2150 ;;
2151
2152 freebsd* | dragonfly*)
2153 # DragonFly does not have aout. When/if they implement a new
2154 # versioning mechanism, adjust this.
2155 if test -x /usr/bin/objformat; then
2156 objformat=`/usr/bin/objformat`
2157 else
2158 case $host_os in
2159 freebsd[[123]]*) objformat=aout ;;
2160 *) objformat=elf ;;
2161 esac
2162 fi
2163 version_type=freebsd-$objformat
2164 case $version_type in
2165 freebsd-elf*)
2166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2167 need_version=no
2168 need_lib_prefix=no
2169 ;;
2170 freebsd-*)
2171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2172 need_version=yes
2173 ;;
2174 esac
2175 shlibpath_var=LD_LIBRARY_PATH
2176 case $host_os in
2177 freebsd2*)
2178 shlibpath_overrides_runpath=yes
2179 ;;
2180 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2181 shlibpath_overrides_runpath=yes
2182 hardcode_into_libs=yes
2183 ;;
2184 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2185 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2186 shlibpath_overrides_runpath=no
2187 hardcode_into_libs=yes
2188 ;;
2189 *) # from 4.6 on, and DragonFly
2190 shlibpath_overrides_runpath=yes
2191 hardcode_into_libs=yes
2192 ;;
2193 esac
2194 ;;
2195
2196 gnu*)
2197 version_type=linux
2198 need_lib_prefix=no
2199 need_version=no
2200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2201 soname_spec='${libname}${release}${shared_ext}$major'
2202 shlibpath_var=LD_LIBRARY_PATH
2203 hardcode_into_libs=yes
2204 ;;
2205
2206 hpux9* | hpux10* | hpux11*)
2207 # Give a soname corresponding to the major version so that dld.sl refuses to
2208 # link against other versions.
2209 version_type=sunos
2210 need_lib_prefix=no
2211 need_version=no
2212 case $host_cpu in
2213 ia64*)
2214 shrext_cmds='.so'
2215 hardcode_into_libs=yes
2216 dynamic_linker="$host_os dld.so"
2217 shlibpath_var=LD_LIBRARY_PATH
2218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2220 soname_spec='${libname}${release}${shared_ext}$major'
2221 if test "X$HPUX_IA64_MODE" = X32; then
2222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2223 else
2224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2225 fi
2226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2227 ;;
2228 hppa*64*)
2229 shrext_cmds='.sl'
2230 hardcode_into_libs=yes
2231 dynamic_linker="$host_os dld.sl"
2232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2235 soname_spec='${libname}${release}${shared_ext}$major'
2236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2238 ;;
2239 *)
2240 shrext_cmds='.sl'
2241 dynamic_linker="$host_os dld.sl"
2242 shlibpath_var=SHLIB_PATH
2243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2245 soname_spec='${libname}${release}${shared_ext}$major'
2246 ;;
2247 esac
2248 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2249 postinstall_cmds='chmod 555 $lib'
2250 ;;
2251
2252 interix[[3-9]]*)
2253 version_type=linux
2254 need_lib_prefix=no
2255 need_version=no
2256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2257 soname_spec='${libname}${release}${shared_ext}$major'
2258 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2259 shlibpath_var=LD_LIBRARY_PATH
2260 shlibpath_overrides_runpath=no
2261 hardcode_into_libs=yes
2262 ;;
2263
2264 irix5* | irix6* | nonstopux*)
2265 case $host_os in
2266 nonstopux*) version_type=nonstopux ;;
2267 *)
2268 if test "$lt_cv_prog_gnu_ld" = yes; then
2269 version_type=linux
2270 else
2271 version_type=irix
2272 fi ;;
2273 esac
2274 need_lib_prefix=no
2275 need_version=no
2276 soname_spec='${libname}${release}${shared_ext}$major'
2277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2278 case $host_os in
2279 irix5* | nonstopux*)
2280 libsuff= shlibsuff=
2281 ;;
2282 *)
2283 case $LD in # libtool.m4 will add one of these switches to LD
2284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2285 libsuff= shlibsuff= libmagic=32-bit;;
2286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2287 libsuff=32 shlibsuff=N32 libmagic=N32;;
2288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2289 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2290 *) libsuff= shlibsuff= libmagic=never-match;;
2291 esac
2292 ;;
2293 esac
2294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2295 shlibpath_overrides_runpath=no
2296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2298 hardcode_into_libs=yes
2299 ;;
2300
2301 # No shared lib support for Linux oldld, aout, or coff.
2302 linux*oldld* | linux*aout* | linux*coff*)
2303 dynamic_linker=no
2304 ;;
2305
2306 # This must be Linux ELF.
2307 linux* | k*bsd*-gnu)
2308 version_type=linux
2309 need_lib_prefix=no
2310 need_version=no
2311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2312 soname_spec='${libname}${release}${shared_ext}$major'
2313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2314 shlibpath_var=LD_LIBRARY_PATH
2315 shlibpath_overrides_runpath=no
2316 # This implies no fast_install, which is unacceptable.
2317 # Some rework will be needed to allow for fast_install
2318 # before this can be enabled.
2319 hardcode_into_libs=yes
2320
2321 # Append ld.so.conf contents to the search path
2322 if test -f /etc/ld.so.conf; then
2323 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' ' '`
2324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2325 fi
2326
2327 # We used to test for /lib/ld.so.1 and disable shared libraries on
2328 # powerpc, because MkLinux only supported shared libraries with the
2329 # GNU dynamic linker. Since this was broken with cross compilers,
2330 # most powerpc-linux boxes support dynamic linking these days and
2331 # people can always --disable-shared, the test was removed, and we
2332 # assume the GNU/Linux dynamic linker is in use.
2333 dynamic_linker='GNU/Linux ld.so'
2334 ;;
2335
2336 netbsdelf*-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 shlibpath_overrides_runpath=no
2344 hardcode_into_libs=yes
2345 dynamic_linker='NetBSD ld.elf_so'
2346 ;;
2347
2348 netbsd*)
2349 version_type=sunos
2350 need_lib_prefix=no
2351 need_version=no
2352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2355 dynamic_linker='NetBSD (a.out) ld.so'
2356 else
2357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2358 soname_spec='${libname}${release}${shared_ext}$major'
2359 dynamic_linker='NetBSD ld.elf_so'
2360 fi
2361 shlibpath_var=LD_LIBRARY_PATH
2362 shlibpath_overrides_runpath=yes
2363 hardcode_into_libs=yes
2364 ;;
2365
2366 newsos6)
2367 version_type=linux
2368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2369 shlibpath_var=LD_LIBRARY_PATH
2370 shlibpath_overrides_runpath=yes
2371 ;;
2372
2373 nto-qnx*)
2374 version_type=linux
2375 need_lib_prefix=no
2376 need_version=no
2377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2378 soname_spec='${libname}${release}${shared_ext}$major'
2379 shlibpath_var=LD_LIBRARY_PATH
2380 shlibpath_overrides_runpath=yes
2381 ;;
2382
2383 openbsd*)
2384 version_type=sunos
2385 sys_lib_dlsearch_path_spec="/usr/lib"
2386 need_lib_prefix=no
2387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2388 case $host_os in
2389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2390 *) need_version=no ;;
2391 esac
2392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2394 shlibpath_var=LD_LIBRARY_PATH
2395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2396 case $host_os in
2397 openbsd2.[[89]] | openbsd2.[[89]].*)
2398 shlibpath_overrides_runpath=no
2399 ;;
2400 *)
2401 shlibpath_overrides_runpath=yes
2402 ;;
2403 esac
2404 else
2405 shlibpath_overrides_runpath=yes
2406 fi
2407 ;;
2408
2409 os2*)
2410 libname_spec='$name'
2411 shrext_cmds=".dll"
2412 need_lib_prefix=no
2413 library_names_spec='$libname${shared_ext} $libname.a'
2414 dynamic_linker='OS/2 ld.exe'
2415 shlibpath_var=LIBPATH
2416 ;;
2417
2418 osf3* | osf4* | osf5*)
2419 version_type=osf
2420 need_lib_prefix=no
2421 need_version=no
2422 soname_spec='${libname}${release}${shared_ext}$major'
2423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2424 shlibpath_var=LD_LIBRARY_PATH
2425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2427 ;;
2428
2429 rdos*)
2430 dynamic_linker=no
2431 ;;
2432
2433 solaris*)
2434 version_type=linux
2435 need_lib_prefix=no
2436 need_version=no
2437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2438 soname_spec='${libname}${release}${shared_ext}$major'
2439 shlibpath_var=LD_LIBRARY_PATH
2440 shlibpath_overrides_runpath=yes
2441 hardcode_into_libs=yes
2442 # ldd complains unless libraries are executable
2443 postinstall_cmds='chmod +x $lib'
2444 ;;
2445
2446 sunos4*)
2447 version_type=sunos
2448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2450 shlibpath_var=LD_LIBRARY_PATH
2451 shlibpath_overrides_runpath=yes
2452 if test "$with_gnu_ld" = yes; then
2453 need_lib_prefix=no
2454 fi
2455 need_version=yes
2456 ;;
2457
2458 sysv4 | sysv4.3*)
2459 version_type=linux
2460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2461 soname_spec='${libname}${release}${shared_ext}$major'
2462 shlibpath_var=LD_LIBRARY_PATH
2463 case $host_vendor in
2464 sni)
2465 shlibpath_overrides_runpath=no
2466 need_lib_prefix=no
2467 export_dynamic_flag_spec='${wl}-Blargedynsym'
2468 runpath_var=LD_RUN_PATH
2469 ;;
2470 siemens)
2471 need_lib_prefix=no
2472 ;;
2473 motorola)
2474 need_lib_prefix=no
2475 need_version=no
2476 shlibpath_overrides_runpath=no
2477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2478 ;;
2479 esac
2480 ;;
2481
2482 sysv4*MP*)
2483 if test -d /usr/nec ;then
2484 version_type=linux
2485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2486 soname_spec='$libname${shared_ext}.$major'
2487 shlibpath_var=LD_LIBRARY_PATH
2488 fi
2489 ;;
2490
2491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2492 version_type=freebsd-elf
2493 need_lib_prefix=no
2494 need_version=no
2495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2496 soname_spec='${libname}${release}${shared_ext}$major'
2497 shlibpath_var=LD_LIBRARY_PATH
2498 hardcode_into_libs=yes
2499 if test "$with_gnu_ld" = yes; then
2500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2501 shlibpath_overrides_runpath=no
2502 else
2503 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2504 shlibpath_overrides_runpath=yes
2505 case $host_os in
2506 sco3.2v5*)
2507 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2508 ;;
2509 esac
2510 fi
2511 sys_lib_dlsearch_path_spec='/usr/lib'
2512 ;;
2513
2514 uts4*)
2515 version_type=linux
2516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2517 soname_spec='${libname}${release}${shared_ext}$major'
2518 shlibpath_var=LD_LIBRARY_PATH
2519 ;;
2520
2521 *)
2522 dynamic_linker=no
2523 ;;
2524 esac
2525 AC_MSG_RESULT([$dynamic_linker])
2526 test "$dynamic_linker" = no && can_build_shared=no
2527
2528 AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2529 [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2530 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2531 AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2532 [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2533 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2534
2535 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2536 if test "$GCC" = yes; then
2537 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2538 fi
2539 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2540
2541
2542 # _LT_AC_TAGCONFIG
2543 # ----------------
2544 AC_DEFUN([_LT_AC_TAGCONFIG],
2545 [AC_REQUIRE([LT_AC_PROG_SED])dnl
2546 AC_ARG_WITH([tags],
2547 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2548 [include additional configurations @<:@automatic@:>@])],
2549 [tagnames="$withval"])
2550
2551 if test -f "$ltmain" && test -n "$tagnames"; then
2552 if test ! -f "${ofile}"; then
2553 AC_MSG_WARN([output file `$ofile' does not exist])
2554 fi
2555
2556 if test -z "$LTCC"; then
2557 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2558 if test -z "$LTCC"; then
2559 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2560 else
2561 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2562 fi
2563 fi
2564 if test -z "$LTCFLAGS"; then
2565 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2566 fi
2567
2568 # Extract list of available tagged configurations in $ofile.
2569 # Note that this assumes the entire list is on one line.
2570 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2571
2572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2573 for tagname in $tagnames; do
2574 IFS="$lt_save_ifs"
2575 # Check whether tagname contains only valid characters
2576 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2577 "") ;;
2578 *) AC_MSG_ERROR([invalid tag name: $tagname])
2579 ;;
2580 esac
2581
2582 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2583 then
2584 AC_MSG_ERROR([tag name \"$tagname\" already exists])
2585 fi
2586
2587 # Update the list of available tags.
2588 if test -n "$tagname"; then
2589 echo appending configuration tag \"$tagname\" to $ofile
2590
2591 case $tagname in
2592 CXX)
2593 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2594 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2595 (test "X$CXX" != "Xg++"))) ; then
2596 AC_LIBTOOL_LANG_CXX_CONFIG
2597 else
2598 tagname=""
2599 fi
2600 ;;
2601
2602 F77)
2603 if test -n "$F77" && test "X$F77" != "Xno"; then
2604 AC_LIBTOOL_LANG_F77_CONFIG
2605 else
2606 tagname=""
2607 fi
2608 ;;
2609
2610 GCJ)
2611 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2612 AC_LIBTOOL_LANG_GCJ_CONFIG
2613 else
2614 tagname=""
2615 fi
2616 ;;
2617
2618 RC)
2619 AC_LIBTOOL_LANG_RC_CONFIG
2620 ;;
2621
2622 *)
2623 AC_MSG_ERROR([Unsupported tag name: $tagname])
2624 ;;
2625 esac
2626
2627 # Append the new tag name to the list of available tags.
2628 if test -n "$tagname" ; then
2629 available_tags="$available_tags $tagname"
2630 fi
2631 fi
2632 done
2633 IFS="$lt_save_ifs"
2634
2635 # Now substitute the updated list of available tags.
2636 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2637 mv "${ofile}T" "$ofile"
2638 chmod +x "$ofile"
2639 else
2640 rm -f "${ofile}T"
2641 AC_MSG_ERROR([unable to update list of available tagged configurations.])
2642 fi
2643 fi
2644 ])# _LT_AC_TAGCONFIG
2645
2646
2647 # AC_LIBTOOL_DLOPEN
2648 # -----------------
2649 # enable checks for dlopen support
2650 AC_DEFUN([AC_LIBTOOL_DLOPEN],
2651 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2652 ])# AC_LIBTOOL_DLOPEN
2653
2654
2655 # AC_LIBTOOL_WIN32_DLL
2656 # --------------------
2657 # declare package support for building win32 DLLs
2658 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2659 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2660 ])# AC_LIBTOOL_WIN32_DLL
2661
2662
2663 # AC_ENABLE_SHARED([DEFAULT])
2664 # ---------------------------
2665 # implement the --enable-shared flag
2666 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2667 AC_DEFUN([AC_ENABLE_SHARED],
2668 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2669 AC_ARG_ENABLE([shared],
2670 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2671 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2672 [p=${PACKAGE-default}
2673 case $enableval in
2674 yes) enable_shared=yes ;;
2675 no) enable_shared=no ;;
2676 *)
2677 enable_shared=no
2678 # Look at the argument we got. We use all the common list separators.
2679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2680 for pkg in $enableval; do
2681 IFS="$lt_save_ifs"
2682 if test "X$pkg" = "X$p"; then
2683 enable_shared=yes
2684 fi
2685 done
2686 IFS="$lt_save_ifs"
2687 ;;
2688 esac],
2689 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2690 ])# AC_ENABLE_SHARED
2691
2692
2693 # AC_DISABLE_SHARED
2694 # -----------------
2695 # set the default shared flag to --disable-shared
2696 AC_DEFUN([AC_DISABLE_SHARED],
2697 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2698 AC_ENABLE_SHARED(no)
2699 ])# AC_DISABLE_SHARED
2700
2701
2702 # AC_ENABLE_STATIC([DEFAULT])
2703 # ---------------------------
2704 # implement the --enable-static flag
2705 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2706 AC_DEFUN([AC_ENABLE_STATIC],
2707 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2708 AC_ARG_ENABLE([static],
2709 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2710 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2711 [p=${PACKAGE-default}
2712 case $enableval in
2713 yes) enable_static=yes ;;
2714 no) enable_static=no ;;
2715 *)
2716 enable_static=no
2717 # Look at the argument we got. We use all the common list separators.
2718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2719 for pkg in $enableval; do
2720 IFS="$lt_save_ifs"
2721 if test "X$pkg" = "X$p"; then
2722 enable_static=yes
2723 fi
2724 done
2725 IFS="$lt_save_ifs"
2726 ;;
2727 esac],
2728 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2729 ])# AC_ENABLE_STATIC
2730
2731
2732 # AC_DISABLE_STATIC
2733 # -----------------
2734 # set the default static flag to --disable-static
2735 AC_DEFUN([AC_DISABLE_STATIC],
2736 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2737 AC_ENABLE_STATIC(no)
2738 ])# AC_DISABLE_STATIC
2739
2740
2741 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2742 # ---------------------------------
2743 # implement the --enable-fast-install flag
2744 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2745 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2746 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2747 AC_ARG_ENABLE([fast-install],
2748 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2749 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2750 [p=${PACKAGE-default}
2751 case $enableval in
2752 yes) enable_fast_install=yes ;;
2753 no) enable_fast_install=no ;;
2754 *)
2755 enable_fast_install=no
2756 # Look at the argument we got. We use all the common list separators.
2757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2758 for pkg in $enableval; do
2759 IFS="$lt_save_ifs"
2760 if test "X$pkg" = "X$p"; then
2761 enable_fast_install=yes
2762 fi
2763 done
2764 IFS="$lt_save_ifs"
2765 ;;
2766 esac],
2767 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2768 ])# AC_ENABLE_FAST_INSTALL
2769
2770
2771 # AC_DISABLE_FAST_INSTALL
2772 # -----------------------
2773 # set the default to --disable-fast-install
2774 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2775 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2776 AC_ENABLE_FAST_INSTALL(no)
2777 ])# AC_DISABLE_FAST_INSTALL
2778
2779
2780 # AC_LIBTOOL_PICMODE([MODE])
2781 # --------------------------
2782 # implement the --with-pic flag
2783 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2784 AC_DEFUN([AC_LIBTOOL_PICMODE],
2785 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2786 pic_mode=ifelse($#,1,$1,default)
2787 ])# AC_LIBTOOL_PICMODE
2788
2789
2790 # AC_PROG_EGREP
2791 # -------------
2792 # This is predefined starting with Autoconf 2.54, so this conditional
2793 # definition can be removed once we require Autoconf 2.54 or later.
2794 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2795 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2796 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2797 then ac_cv_prog_egrep='grep -E'
2798 else ac_cv_prog_egrep='egrep'
2799 fi])
2800 EGREP=$ac_cv_prog_egrep
2801 AC_SUBST([EGREP])
2802 ])])
2803
2804
2805 # AC_PATH_TOOL_PREFIX
2806 # -------------------
2807 # find a file program which can recognize shared library
2808 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2809 [AC_REQUIRE([AC_PROG_EGREP])dnl
2810 AC_MSG_CHECKING([for $1])
2811 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2812 [case $MAGIC_CMD in
2813 [[\\/*] | ?:[\\/]*])
2814 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2815 ;;
2816 *)
2817 lt_save_MAGIC_CMD="$MAGIC_CMD"
2818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2819 dnl $ac_dummy forces splitting on constant user-supplied paths.
2820 dnl POSIX.2 word splitting is done only on the output of word expansions,
2821 dnl not every word. This closes a longstanding sh security hole.
2822 ac_dummy="ifelse([$2], , $PATH, [$2])"
2823 for ac_dir in $ac_dummy; do
2824 IFS="$lt_save_ifs"
2825 test -z "$ac_dir" && ac_dir=.
2826 if test -f $ac_dir/$1; then
2827 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2828 if test -n "$file_magic_test_file"; then
2829 case $deplibs_check_method in
2830 "file_magic "*)
2831 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2832 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2833 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2834 $EGREP "$file_magic_regex" > /dev/null; then
2835 :
2836 else
2837 cat <<EOF 1>&2
2838
2839 *** Warning: the command libtool uses to detect shared libraries,
2840 *** $file_magic_cmd, produces output that libtool cannot recognize.
2841 *** The result is that libtool may fail to recognize shared libraries
2842 *** as such. This will affect the creation of libtool libraries that
2843 *** depend on shared libraries, but programs linked with such libtool
2844 *** libraries will work regardless of this problem. Nevertheless, you
2845 *** may want to report the problem to your system manager and/or to
2846 *** bug-libtool@gnu.org
2847
2848 EOF
2849 fi ;;
2850 esac
2851 fi
2852 break
2853 fi
2854 done
2855 IFS="$lt_save_ifs"
2856 MAGIC_CMD="$lt_save_MAGIC_CMD"
2857 ;;
2858 esac])
2859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2860 if test -n "$MAGIC_CMD"; then
2861 AC_MSG_RESULT($MAGIC_CMD)
2862 else
2863 AC_MSG_RESULT(no)
2864 fi
2865 ])# AC_PATH_TOOL_PREFIX
2866
2867
2868 # AC_PATH_MAGIC
2869 # -------------
2870 # find a file program which can recognize a shared library
2871 AC_DEFUN([AC_PATH_MAGIC],
2872 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2873 if test -z "$lt_cv_path_MAGIC_CMD"; then
2874 if test -n "$ac_tool_prefix"; then
2875 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2876 else
2877 MAGIC_CMD=:
2878 fi
2879 fi
2880 ])# AC_PATH_MAGIC
2881
2882
2883 # AC_PROG_LD
2884 # ----------
2885 # find the pathname to the GNU or non-GNU linker
2886 AC_DEFUN([AC_PROG_LD],
2887 [AC_ARG_WITH([gnu-ld],
2888 [AC_HELP_STRING([--with-gnu-ld],
2889 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2890 [test "$withval" = no || with_gnu_ld=yes],
2891 [with_gnu_ld=no])
2892 AC_REQUIRE([LT_AC_PROG_SED])dnl
2893 AC_REQUIRE([AC_PROG_CC])dnl
2894 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2895 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2896 ac_prog=ld
2897 if test "$GCC" = yes; then
2898 # Check if gcc -print-prog-name=ld gives a path.
2899 AC_MSG_CHECKING([for ld used by $CC])
2900 case $host in
2901 *-*-mingw*)
2902 # gcc leaves a trailing carriage return which upsets mingw
2903 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2904 *)
2905 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2906 esac
2907 case $ac_prog in
2908 # Accept absolute paths.
2909 [[\\/]]* | ?:[[\\/]]*)
2910 re_direlt='/[[^/]][[^/]]*/\.\./'
2911 # Canonicalize the pathname of ld
2912 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2913 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2914 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2915 done
2916 test -z "$LD" && LD="$ac_prog"
2917 ;;
2918 "")
2919 # If it fails, then pretend we aren't using GCC.
2920 ac_prog=ld
2921 ;;
2922 *)
2923 # If it is relative, then search for the first ld in PATH.
2924 with_gnu_ld=unknown
2925 ;;
2926 esac
2927 elif test "$with_gnu_ld" = yes; then
2928 AC_MSG_CHECKING([for GNU ld])
2929 else
2930 AC_MSG_CHECKING([for non-GNU ld])
2931 fi
2932 AC_CACHE_VAL(lt_cv_path_LD,
2933 [if test -z "$LD"; then
2934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2935 for ac_dir in $PATH; do
2936 IFS="$lt_save_ifs"
2937 test -z "$ac_dir" && ac_dir=.
2938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2939 lt_cv_path_LD="$ac_dir/$ac_prog"
2940 # Check to see if the program is GNU ld. I'd rather use --version,
2941 # but apparently some variants of GNU ld only accept -v.
2942 # Break only if it was the GNU/non-GNU ld that we prefer.
2943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2944 *GNU* | *'with BFD'*)
2945 test "$with_gnu_ld" != no && break
2946 ;;
2947 *)
2948 test "$with_gnu_ld" != yes && break
2949 ;;
2950 esac
2951 fi
2952 done
2953 IFS="$lt_save_ifs"
2954 else
2955 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2956 fi])
2957 LD="$lt_cv_path_LD"
2958 if test -n "$LD"; then
2959 AC_MSG_RESULT($LD)
2960 else
2961 AC_MSG_RESULT(no)
2962 fi
2963 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2964 AC_PROG_LD_GNU
2965 ])# AC_PROG_LD
2966
2967
2968 # AC_PROG_LD_GNU
2969 # --------------
2970 AC_DEFUN([AC_PROG_LD_GNU],
2971 [AC_REQUIRE([AC_PROG_EGREP])dnl
2972 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2973 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2974 case `$LD -v 2>&1 </dev/null` in
2975 *GNU* | *'with BFD'*)
2976 lt_cv_prog_gnu_ld=yes
2977 ;;
2978 *)
2979 lt_cv_prog_gnu_ld=no
2980 ;;
2981 esac])
2982 with_gnu_ld=$lt_cv_prog_gnu_ld
2983 ])# AC_PROG_LD_GNU
2984
2985
2986 # AC_PROG_LD_RELOAD_FLAG
2987 # ----------------------
2988 # find reload flag for linker
2989 # -- PORTME Some linkers may need a different reload flag.
2990 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2991 [AC_CACHE_CHECK([for $LD option to reload object files],
2992 lt_cv_ld_reload_flag,
2993 [lt_cv_ld_reload_flag='-r'])
2994 reload_flag=$lt_cv_ld_reload_flag
2995 case $reload_flag in
2996 "" | " "*) ;;
2997 *) reload_flag=" $reload_flag" ;;
2998 esac
2999 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3000 case $host_os in
3001 darwin*)
3002 if test "$GCC" = yes; then
3003 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3004 else
3005 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3006 fi
3007 ;;
3008 esac
3009 ])# AC_PROG_LD_RELOAD_FLAG
3010
3011
3012 # AC_DEPLIBS_CHECK_METHOD
3013 # -----------------------
3014 # how to check for library dependencies
3015 # -- PORTME fill in with the dynamic library characteristics
3016 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3017 [AC_CACHE_CHECK([how to recognize dependent libraries],
3018 lt_cv_deplibs_check_method,
3019 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3020 lt_cv_file_magic_test_file=
3021 lt_cv_deplibs_check_method='unknown'
3022 # Need to set the preceding variable on all platforms that support
3023 # interlibrary dependencies.
3024 # 'none' -- dependencies not supported.
3025 # `unknown' -- same as none, but documents that we really don't know.
3026 # 'pass_all' -- all dependencies passed with no checks.
3027 # 'test_compile' -- check by making test program.
3028 # 'file_magic [[regex]]' -- check by looking for files in library path
3029 # which responds to the $file_magic_cmd with a given extended regex.
3030 # If you have `file' or equivalent on your system and you're not sure
3031 # whether `pass_all' will *always* work, you probably want this one.
3032
3033 case $host_os in
3034 aix[[4-9]]*)
3035 lt_cv_deplibs_check_method=pass_all
3036 ;;
3037
3038 beos*)
3039 lt_cv_deplibs_check_method=pass_all
3040 ;;
3041
3042 bsdi[[45]]*)
3043 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3044 lt_cv_file_magic_cmd='/usr/bin/file -L'
3045 lt_cv_file_magic_test_file=/shlib/libc.so
3046 ;;
3047
3048 cygwin*)
3049 # func_win32_libid is a shell function defined in ltmain.sh
3050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3051 lt_cv_file_magic_cmd='func_win32_libid'
3052 ;;
3053
3054 mingw* | pw32*)
3055 # Base MSYS/MinGW do not provide the 'file' command needed by
3056 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3057 # unless we find 'file', for example because we are cross-compiling.
3058 if ( file / ) >/dev/null 2>&1; then
3059 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3060 lt_cv_file_magic_cmd='func_win32_libid'
3061 else
3062 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3063 lt_cv_file_magic_cmd='$OBJDUMP -f'
3064 fi
3065 ;;
3066
3067 darwin* | rhapsody*)
3068 lt_cv_deplibs_check_method=pass_all
3069 ;;
3070
3071 freebsd* | dragonfly*)
3072 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3073 case $host_cpu in
3074 i*86 )
3075 # Not sure whether the presence of OpenBSD here was a mistake.
3076 # Let's accept both of them until this is cleared up.
3077 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3078 lt_cv_file_magic_cmd=/usr/bin/file
3079 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3080 ;;
3081 esac
3082 else
3083 lt_cv_deplibs_check_method=pass_all
3084 fi
3085 ;;
3086
3087 gnu*)
3088 lt_cv_deplibs_check_method=pass_all
3089 ;;
3090
3091 hpux10.20* | hpux11*)
3092 lt_cv_file_magic_cmd=/usr/bin/file
3093 case $host_cpu in
3094 ia64*)
3095 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3096 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3097 ;;
3098 hppa*64*)
3099 [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]']
3100 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3101 ;;
3102 *)
3103 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3104 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3105 ;;
3106 esac
3107 ;;
3108
3109 interix[[3-9]]*)
3110 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3111 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3112 ;;
3113
3114 irix5* | irix6* | nonstopux*)
3115 case $LD in
3116 *-32|*"-32 ") libmagic=32-bit;;
3117 *-n32|*"-n32 ") libmagic=N32;;
3118 *-64|*"-64 ") libmagic=64-bit;;
3119 *) libmagic=never-match;;
3120 esac
3121 lt_cv_deplibs_check_method=pass_all
3122 ;;
3123
3124 # This must be Linux ELF.
3125 linux* | k*bsd*-gnu)
3126 lt_cv_deplibs_check_method=pass_all
3127 ;;
3128
3129 netbsd* | netbsdelf*-gnu)
3130 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3131 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3132 else
3133 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3134 fi
3135 ;;
3136
3137 newos6*)
3138 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3139 lt_cv_file_magic_cmd=/usr/bin/file
3140 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3141 ;;
3142
3143 nto-qnx*)
3144 lt_cv_deplibs_check_method=unknown
3145 ;;
3146
3147 openbsd*)
3148 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3149 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3150 else
3151 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3152 fi
3153 ;;
3154
3155 osf3* | osf4* | osf5*)
3156 lt_cv_deplibs_check_method=pass_all
3157 ;;
3158
3159 rdos*)
3160 lt_cv_deplibs_check_method=pass_all
3161 ;;
3162
3163 solaris*)
3164 lt_cv_deplibs_check_method=pass_all
3165 ;;
3166
3167 sysv4 | sysv4.3*)
3168 case $host_vendor in
3169 motorola)
3170 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]]'
3171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3172 ;;
3173 ncr)
3174 lt_cv_deplibs_check_method=pass_all
3175 ;;
3176 sequent)
3177 lt_cv_file_magic_cmd='/bin/file'
3178 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3179 ;;
3180 sni)
3181 lt_cv_file_magic_cmd='/bin/file'
3182 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3183 lt_cv_file_magic_test_file=/lib/libc.so
3184 ;;
3185 siemens)
3186 lt_cv_deplibs_check_method=pass_all
3187 ;;
3188 pc)
3189 lt_cv_deplibs_check_method=pass_all
3190 ;;
3191 esac
3192 ;;
3193
3194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3195 lt_cv_deplibs_check_method=pass_all
3196 ;;
3197 esac
3198 ])
3199 file_magic_cmd=$lt_cv_file_magic_cmd
3200 deplibs_check_method=$lt_cv_deplibs_check_method
3201 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3202 ])# AC_DEPLIBS_CHECK_METHOD
3203
3204
3205 # AC_PROG_NM
3206 # ----------
3207 # find the pathname to a BSD-compatible name lister
3208 AC_DEFUN([AC_PROG_NM],
3209 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3210 [if test -n "$NM"; then
3211 # Let the user override the test.
3212 lt_cv_path_NM="$NM"
3213 else
3214 lt_nm_to_check="${ac_tool_prefix}nm"
3215 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3216 lt_nm_to_check="$lt_nm_to_check nm"
3217 fi
3218 for lt_tmp_nm in $lt_nm_to_check; do
3219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3220 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3221 IFS="$lt_save_ifs"
3222 test -z "$ac_dir" && ac_dir=.
3223 tmp_nm="$ac_dir/$lt_tmp_nm"
3224 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3225 # Check to see if the nm accepts a BSD-compat flag.
3226 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3227 # nm: unknown option "B" ignored
3228 # Tru64's nm complains that /dev/null is an invalid object file
3229 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3230 */dev/null* | *'Invalid file or object type'*)
3231 lt_cv_path_NM="$tmp_nm -B"
3232 break
3233 ;;
3234 *)
3235 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3236 */dev/null*)
3237 lt_cv_path_NM="$tmp_nm -p"
3238 break
3239 ;;
3240 *)
3241 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3242 continue # so that we can try to find one that supports BSD flags
3243 ;;
3244 esac
3245 ;;
3246 esac
3247 fi
3248 done
3249 IFS="$lt_save_ifs"
3250 done
3251 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3252 fi])
3253 NM="$lt_cv_path_NM"
3254 ])# AC_PROG_NM
3255
3256
3257 # AC_CHECK_LIBM
3258 # -------------
3259 # check for math library
3260 AC_DEFUN([AC_CHECK_LIBM],
3261 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3262 LIBM=
3263 case $host in
3264 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3265 # These system don't have libm, or don't need it
3266 ;;
3267 *-ncr-sysv4.3*)
3268 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3269 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3270 ;;
3271 *)
3272 AC_CHECK_LIB(m, cos, LIBM="-lm")
3273 ;;
3274 esac
3275 ])# AC_CHECK_LIBM
3276
3277
3278 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3279 # -----------------------------------
3280 # sets LIBLTDL to the link flags for the libltdl convenience library and
3281 # LTDLINCL to the include flags for the libltdl header and adds
3282 # --enable-ltdl-convenience to the configure arguments. Note that
3283 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3284 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3285 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3286 # (note the single quotes!). If your package is not flat and you're not
3287 # using automake, define top_builddir and top_srcdir appropriately in
3288 # the Makefiles.
3289 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3290 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3291 case $enable_ltdl_convenience in
3292 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3293 "") enable_ltdl_convenience=yes
3294 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3295 esac
3296 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3297 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3298 # For backwards non-gettext consistent compatibility...
3299 INCLTDL="$LTDLINCL"
3300 ])# AC_LIBLTDL_CONVENIENCE
3301
3302
3303 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3304 # -----------------------------------
3305 # sets LIBLTDL to the link flags for the libltdl installable library and
3306 # LTDLINCL to the include flags for the libltdl header and adds
3307 # --enable-ltdl-install to the configure arguments. Note that
3308 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3309 # and an installed libltdl is not found, it is assumed to be `libltdl'.
3310 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3311 # '${top_srcdir}/' (note the single quotes!). If your package is not
3312 # flat and you're not using automake, define top_builddir and top_srcdir
3313 # appropriately in the Makefiles.
3314 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3315 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3316 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3317 AC_CHECK_LIB(ltdl, lt_dlinit,
3318 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3319 [if test x"$enable_ltdl_install" = xno; then
3320 AC_MSG_WARN([libltdl not installed, but installation disabled])
3321 else
3322 enable_ltdl_install=yes
3323 fi
3324 ])
3325 if test x"$enable_ltdl_install" = x"yes"; then
3326 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3327 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3328 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3329 else
3330 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3331 LIBLTDL="-lltdl"
3332 LTDLINCL=
3333 fi
3334 # For backwards non-gettext consistent compatibility...
3335 INCLTDL="$LTDLINCL"
3336 ])# AC_LIBLTDL_INSTALLABLE
3337
3338
3339 # AC_LIBTOOL_CXX
3340 # --------------
3341 # enable support for C++ libraries
3342 AC_DEFUN([AC_LIBTOOL_CXX],
3343 [AC_REQUIRE([_LT_AC_LANG_CXX])
3344 ])# AC_LIBTOOL_CXX
3345
3346
3347 # _LT_AC_LANG_CXX
3348 # ---------------
3349 AC_DEFUN([_LT_AC_LANG_CXX],
3350 [AC_REQUIRE([AC_PROG_CXX])
3351 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3352 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3353 ])# _LT_AC_LANG_CXX
3354
3355 # _LT_AC_PROG_CXXCPP
3356 # ------------------
3357 AC_DEFUN([_LT_AC_PROG_CXXCPP],
3358 [
3359 AC_REQUIRE([AC_PROG_CXX])
3360 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3361 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3362 (test "X$CXX" != "Xg++"))) ; then
3363 AC_PROG_CXXCPP
3364 fi
3365 ])# _LT_AC_PROG_CXXCPP
3366
3367 # AC_LIBTOOL_F77
3368 # --------------
3369 # enable support for Fortran 77 libraries
3370 AC_DEFUN([AC_LIBTOOL_F77],
3371 [AC_REQUIRE([_LT_AC_LANG_F77])
3372 ])# AC_LIBTOOL_F77
3373
3374
3375 # _LT_AC_LANG_F77
3376 # ---------------
3377 AC_DEFUN([_LT_AC_LANG_F77],
3378 [AC_REQUIRE([AC_PROG_F77])
3379 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3380 ])# _LT_AC_LANG_F77
3381
3382
3383 # AC_LIBTOOL_GCJ
3384 # --------------
3385 # enable support for GCJ libraries
3386 AC_DEFUN([AC_LIBTOOL_GCJ],
3387 [AC_REQUIRE([_LT_AC_LANG_GCJ])
3388 ])# AC_LIBTOOL_GCJ
3389
3390
3391 # _LT_AC_LANG_GCJ
3392 # ---------------
3393 AC_DEFUN([_LT_AC_LANG_GCJ],
3394 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3395 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3396 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3397 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3398 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3399 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3400 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3401 ])# _LT_AC_LANG_GCJ
3402
3403
3404 # AC_LIBTOOL_RC
3405 # -------------
3406 # enable support for Windows resource files
3407 AC_DEFUN([AC_LIBTOOL_RC],
3408 [AC_REQUIRE([LT_AC_PROG_RC])
3409 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3410 ])# AC_LIBTOOL_RC
3411
3412
3413 # AC_LIBTOOL_LANG_C_CONFIG
3414 # ------------------------
3415 # Ensure that the configuration vars for the C compiler are
3416 # suitably defined. Those variables are subsequently used by
3417 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3418 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3419 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3420 [lt_save_CC="$CC"
3421 AC_LANG_PUSH(C)
3422
3423 # Source file extension for C test sources.
3424 ac_ext=c
3425
3426 # Object file extension for compiled C test sources.
3427 objext=o
3428 _LT_AC_TAGVAR(objext, $1)=$objext
3429
3430 # Code to be used in simple compile tests
3431 lt_simple_compile_test_code="int some_variable = 0;"
3432
3433 # Code to be used in simple link tests
3434 lt_simple_link_test_code='int main(){return(0);}'
3435
3436 _LT_AC_SYS_COMPILER
3437
3438 # save warnings/boilerplate of simple test code
3439 _LT_COMPILER_BOILERPLATE
3440 _LT_LINKER_BOILERPLATE
3441
3442 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3443 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3444 AC_LIBTOOL_PROG_CC_C_O($1)
3445 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3446 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3447 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3448 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3449 AC_LIBTOOL_SYS_LIB_STRIP
3450 AC_LIBTOOL_DLOPEN_SELF
3451
3452 # Report which library types will actually be built
3453 AC_MSG_CHECKING([if libtool supports shared libraries])
3454 AC_MSG_RESULT([$can_build_shared])
3455
3456 AC_MSG_CHECKING([whether to build shared libraries])
3457 test "$can_build_shared" = "no" && enable_shared=no
3458
3459 # On AIX, shared libraries and static libraries use the same namespace, and
3460 # are all built from PIC.
3461 case $host_os in
3462 aix3*)
3463 test "$enable_shared" = yes && enable_static=no
3464 if test -n "$RANLIB"; then
3465 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3466 postinstall_cmds='$RANLIB $lib'
3467 fi
3468 ;;
3469
3470 aix[[4-9]]*)
3471 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3472 test "$enable_shared" = yes && enable_static=no
3473 fi
3474 ;;
3475 esac
3476 AC_MSG_RESULT([$enable_shared])
3477
3478 AC_MSG_CHECKING([whether to build static libraries])
3479 # Make sure either enable_shared or enable_static is yes.
3480 test "$enable_shared" = yes || enable_static=yes
3481 AC_MSG_RESULT([$enable_static])
3482
3483 AC_LIBTOOL_CONFIG($1)
3484
3485 AC_LANG_POP
3486 CC="$lt_save_CC"
3487 ])# AC_LIBTOOL_LANG_C_CONFIG
3488
3489
3490 # AC_LIBTOOL_LANG_CXX_CONFIG
3491 # --------------------------
3492 # Ensure that the configuration vars for the C compiler are
3493 # suitably defined. Those variables are subsequently used by
3494 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3495 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3496 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3497 [AC_LANG_PUSH(C++)
3498 AC_REQUIRE([AC_PROG_CXX])
3499 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3500
3501 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3502 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3503 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3504 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3505 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3506 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3507 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3508 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3509 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3510 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3511 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3512 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3513 _LT_AC_TAGVAR(module_cmds, $1)=
3514 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3515 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3516 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3517 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3518 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3519 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3520
3521 # Dependencies to place before and after the object being linked:
3522 _LT_AC_TAGVAR(predep_objects, $1)=
3523 _LT_AC_TAGVAR(postdep_objects, $1)=
3524 _LT_AC_TAGVAR(predeps, $1)=
3525 _LT_AC_TAGVAR(postdeps, $1)=
3526 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3527 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3528
3529 # Source file extension for C++ test sources.
3530 ac_ext=cpp
3531
3532 # Object file extension for compiled C++ test sources.
3533 objext=o
3534 _LT_AC_TAGVAR(objext, $1)=$objext
3535
3536 # Code to be used in simple compile tests
3537 lt_simple_compile_test_code="int some_variable = 0;"
3538
3539 # Code to be used in simple link tests
3540 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3541
3542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3543 _LT_AC_SYS_COMPILER
3544
3545 # save warnings/boilerplate of simple test code
3546 _LT_COMPILER_BOILERPLATE
3547 _LT_LINKER_BOILERPLATE
3548
3549 # Allow CC to be a program name with arguments.
3550 lt_save_CC=$CC
3551 lt_save_LD=$LD
3552 lt_save_GCC=$GCC
3553 GCC=$GXX
3554 lt_save_with_gnu_ld=$with_gnu_ld
3555 lt_save_path_LD=$lt_cv_path_LD
3556 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3557 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3558 else
3559 $as_unset lt_cv_prog_gnu_ld
3560 fi
3561 if test -n "${lt_cv_path_LDCXX+set}"; then
3562 lt_cv_path_LD=$lt_cv_path_LDCXX
3563 else
3564 $as_unset lt_cv_path_LD
3565 fi
3566 test -z "${LDCXX+set}" || LD=$LDCXX
3567 CC=${CXX-"c++"}
3568 compiler=$CC
3569 _LT_AC_TAGVAR(compiler, $1)=$CC
3570 _LT_CC_BASENAME([$compiler])
3571
3572 # We don't want -fno-exception wen compiling C++ code, so set the
3573 # no_builtin_flag separately
3574 if test "$GXX" = yes; then
3575 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3576 else
3577 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3578 fi
3579
3580 if test "$GXX" = yes; then
3581 # Set up default GNU C++ configuration
3582
3583 AC_PROG_LD
3584
3585 # Check if GNU C++ uses GNU ld as the underlying linker, since the
3586 # archiving commands below assume that GNU ld is being used.
3587 if test "$with_gnu_ld" = yes; then
3588 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3589 _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'
3590
3591 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3592 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3593
3594 # If archive_cmds runs LD, not CC, wlarc should be empty
3595 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3596 # investigate it a little bit more. (MM)
3597 wlarc='${wl}'
3598
3599 # ancient GNU ld didn't support --whole-archive et. al.
3600 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3601 grep 'no-whole-archive' > /dev/null; then
3602 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3603 else
3604 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3605 fi
3606 else
3607 with_gnu_ld=no
3608 wlarc=
3609
3610 # A generic and very simple default shared library creation
3611 # command for GNU C++ for the case where it uses the native
3612 # linker, instead of GNU ld. If possible, this setting should
3613 # overridden to take advantage of the native linker features on
3614 # the platform it is being used on.
3615 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3616 fi
3617
3618 # Commands to make compiler produce verbose output that lists
3619 # what "hidden" libraries, object files and flags are used when
3620 # linking a shared library.
3621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3622
3623 else
3624 GXX=no
3625 with_gnu_ld=no
3626 wlarc=
3627 fi
3628
3629 # PORTME: fill in a description of your system's C++ link characteristics
3630 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3631 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3632 case $host_os in
3633 aix3*)
3634 # FIXME: insert proper C++ library support
3635 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3636 ;;
3637 aix[[4-9]]*)
3638 if test "$host_cpu" = ia64; then
3639 # On IA64, the linker does run time linking by default, so we don't
3640 # have to do anything special.
3641 aix_use_runtimelinking=no
3642 exp_sym_flag='-Bexport'
3643 no_entry_flag=""
3644 else
3645 aix_use_runtimelinking=no
3646
3647 # Test if we are trying to use run time linking or normal
3648 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3649 # need to do runtime linking.
3650 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3651 for ld_flag in $LDFLAGS; do
3652 case $ld_flag in
3653 *-brtl*)
3654 aix_use_runtimelinking=yes
3655 break
3656 ;;
3657 esac
3658 done
3659 ;;
3660 esac
3661
3662 exp_sym_flag='-bexport'
3663 no_entry_flag='-bnoentry'
3664 fi
3665
3666 # When large executables or shared objects are built, AIX ld can
3667 # have problems creating the table of contents. If linking a library
3668 # or program results in "error TOC overflow" add -mminimal-toc to
3669 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3670 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3671
3672 _LT_AC_TAGVAR(archive_cmds, $1)=''
3673 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3674 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3675 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3676
3677 if test "$GXX" = yes; then
3678 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3679 # We only want to do this on AIX 4.2 and lower, the check
3680 # below for broken collect2 doesn't work under 4.3+
3681 collect2name=`${CC} -print-prog-name=collect2`
3682 if test -f "$collect2name" && \
3683 strings "$collect2name" | grep resolve_lib_name >/dev/null
3684 then
3685 # We have reworked collect2
3686 :
3687 else
3688 # We have old collect2
3689 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3690 # It fails to find uninstalled libraries when the uninstalled
3691 # path is not listed in the libpath. Setting hardcode_minus_L
3692 # to unsupported forces relinking
3693 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3694 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3695 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3696 fi
3697 ;;
3698 esac
3699 shared_flag='-shared'
3700 if test "$aix_use_runtimelinking" = yes; then
3701 shared_flag="$shared_flag "'${wl}-G'
3702 fi
3703 else
3704 # not using gcc
3705 if test "$host_cpu" = ia64; then
3706 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3707 # chokes on -Wl,-G. The following line is correct:
3708 shared_flag='-G'
3709 else
3710 if test "$aix_use_runtimelinking" = yes; then
3711 shared_flag='${wl}-G'
3712 else
3713 shared_flag='${wl}-bM:SRE'
3714 fi
3715 fi
3716 fi
3717
3718 # It seems that -bexpall does not export symbols beginning with
3719 # underscore (_), so it is better to generate a list of symbols to export.
3720 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3721 if test "$aix_use_runtimelinking" = yes; then
3722 # Warning - without using the other runtime loading flags (-brtl),
3723 # -berok will link without error, but may produce a broken library.
3724 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3725 # Determine the default libpath from the value encoded in an empty executable.
3726 _LT_AC_SYS_LIBPATH_AIX
3727 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3728
3729 _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"
3730 else
3731 if test "$host_cpu" = ia64; then
3732 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3733 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3734 _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"
3735 else
3736 # Determine the default libpath from the value encoded in an empty executable.
3737 _LT_AC_SYS_LIBPATH_AIX
3738 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3739 # Warning - without using the other run time loading flags,
3740 # -berok will link without error, but may produce a broken library.
3741 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3742 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3743 # Exported symbols can be pulled into shared objects from archives
3744 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3745 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3746 # This is similar to how AIX traditionally builds its shared libraries.
3747 _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'
3748 fi
3749 fi
3750 ;;
3751
3752 beos*)
3753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3754 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3756 # support --undefined. This deserves some investigation. FIXME
3757 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3758 else
3759 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3760 fi
3761 ;;
3762
3763 chorus*)
3764 case $cc_basename in
3765 *)
3766 # FIXME: insert proper C++ library support
3767 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3768 ;;
3769 esac
3770 ;;
3771
3772 cygwin* | mingw* | pw32*)
3773 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3774 # as there is no search path for DLLs.
3775 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3776 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3777 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3778 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3779
3780 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3781 _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'
3782 # If the export-symbols file already is a .def file (1st line
3783 # is EXPORTS), use it as is; otherwise, prepend...
3784 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3785 cp $export_symbols $output_objdir/$soname.def;
3786 else
3787 echo EXPORTS > $output_objdir/$soname.def;
3788 cat $export_symbols >> $output_objdir/$soname.def;
3789 fi~
3790 $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'
3791 else
3792 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3793 fi
3794 ;;
3795 darwin* | rhapsody*)
3796 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3797 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3798 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3799 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3800 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3801 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3802 _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3803 if test "$GXX" = yes ; then
3804 output_verbose_link_cmd='echo'
3805 _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}"
3806 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3807 _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}"
3808 _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}"
3809 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3810 _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}"
3811 _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}"
3812 fi
3813 else
3814 case $cc_basename in
3815 xlc*)
3816 output_verbose_link_cmd='echo'
3817 _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'
3818 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3820 _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}'
3821 _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}'
3822 ;;
3823 *)
3824 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3825 ;;
3826 esac
3827 fi
3828 ;;
3829
3830 dgux*)
3831 case $cc_basename in
3832 ec++*)
3833 # FIXME: insert proper C++ library support
3834 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3835 ;;
3836 ghcx*)
3837 # Green Hills C++ Compiler
3838 # FIXME: insert proper C++ library support
3839 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3840 ;;
3841 *)
3842 # FIXME: insert proper C++ library support
3843 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3844 ;;
3845 esac
3846 ;;
3847 freebsd[[12]]*)
3848 # C++ shared libraries reported to be fairly broken before switch to ELF
3849 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3850 ;;
3851 freebsd-elf*)
3852 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3853 ;;
3854 freebsd* | dragonfly*)
3855 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3856 # conventions
3857 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3858 ;;
3859 gnu*)
3860 ;;
3861 hpux9*)
3862 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3863 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3864 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3865 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3866 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3867 # but as the default
3868 # location of the library.
3869
3870 case $cc_basename in
3871 CC*)
3872 # FIXME: insert proper C++ library support
3873 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3874 ;;
3875 aCC*)
3876 _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'
3877 # Commands to make compiler produce verbose output that lists
3878 # what "hidden" libraries, object files and flags are used when
3879 # linking a shared library.
3880 #
3881 # There doesn't appear to be a way to prevent this compiler from
3882 # explicitly linking system object files so we need to strip them
3883 # from the output so that they don't get included in the library
3884 # dependencies.
3885 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'
3886 ;;
3887 *)
3888 if test "$GXX" = yes; then
3889 _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'
3890 else
3891 # FIXME: insert proper C++ library support
3892 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3893 fi
3894 ;;
3895 esac
3896 ;;
3897 hpux10*|hpux11*)
3898 if test $with_gnu_ld = no; then
3899 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3900 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3901
3902 case $host_cpu in
3903 hppa*64*|ia64*) ;;
3904 *)
3905 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3906 ;;
3907 esac
3908 fi
3909 case $host_cpu in
3910 hppa*64*|ia64*)
3911 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3912 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3913 ;;
3914 *)
3915 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3916 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3917 # but as the default
3918 # location of the library.
3919 ;;
3920 esac
3921
3922 case $cc_basename in
3923 CC*)
3924 # FIXME: insert proper C++ library support
3925 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3926 ;;
3927 aCC*)
3928 case $host_cpu in
3929 hppa*64*)
3930 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3931 ;;
3932 ia64*)
3933 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3934 ;;
3935 *)
3936 _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'
3937 ;;
3938 esac
3939 # Commands to make compiler produce verbose output that lists
3940 # what "hidden" libraries, object files and flags are used when
3941 # linking a shared library.
3942 #
3943 # There doesn't appear to be a way to prevent this compiler from
3944 # explicitly linking system object files so we need to strip them
3945 # from the output so that they don't get included in the library
3946 # dependencies.
3947 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'
3948 ;;
3949 *)
3950 if test "$GXX" = yes; then
3951 if test $with_gnu_ld = no; then
3952 case $host_cpu in
3953 hppa*64*)
3954 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3955 ;;
3956 ia64*)
3957 _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'
3958 ;;
3959 *)
3960 _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'
3961 ;;
3962 esac
3963 fi
3964 else
3965 # FIXME: insert proper C++ library support
3966 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3967 fi
3968 ;;
3969 esac
3970 ;;
3971 interix[[3-9]]*)
3972 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3973 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3974 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3975 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3976 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3977 # Instead, shared libraries are loaded at an image base (0x10000000 by
3978 # default) and relocated if they conflict, which is a slow very memory
3979 # consuming and fragmenting process. To avoid this, we pick a random,
3980 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3981 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3982 _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'
3983 _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'
3984 ;;
3985 irix5* | irix6*)
3986 case $cc_basename in
3987 CC*)
3988 # SGI C++
3989 _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'
3990
3991 # Archives containing C++ object files must be created using
3992 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3993 # necessary to make sure instantiated templates are included
3994 # in the archive.
3995 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3996 ;;
3997 *)
3998 if test "$GXX" = yes; then
3999 if test "$with_gnu_ld" = no; then
4000 _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'
4001 else
4002 _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'
4003 fi
4004 fi
4005 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4006 ;;
4007 esac
4008 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4009 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4010 ;;
4011 linux* | k*bsd*-gnu)
4012 case $cc_basename in
4013 KCC*)
4014 # Kuck and Associates, Inc. (KAI) C++ Compiler
4015
4016 # KCC will only create a shared library if the output file
4017 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4018 # to its proper name (with version) after linking.
4019 _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'
4020 _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'
4021 # Commands to make compiler produce verbose output that lists
4022 # what "hidden" libraries, object files and flags are used when
4023 # linking a shared library.
4024 #
4025 # There doesn't appear to be a way to prevent this compiler from
4026 # explicitly linking system object files so we need to strip them
4027 # from the output so that they don't get included in the library
4028 # dependencies.
4029 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'
4030
4031 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4032 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4033
4034 # Archives containing C++ object files must be created using
4035 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4036 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4037 ;;
4038 icpc*)
4039 # Intel C++
4040 with_gnu_ld=yes
4041 # version 8.0 and above of icpc choke on multiply defined symbols
4042 # if we add $predep_objects and $postdep_objects, however 7.1 and
4043 # earlier do not add the objects themselves.
4044 case `$CC -V 2>&1` in
4045 *"Version 7."*)
4046 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4047 _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'
4048 ;;
4049 *) # Version 8.0 or newer
4050 tmp_idyn=
4051 case $host_cpu in
4052 ia64*) tmp_idyn=' -i_dynamic';;
4053 esac
4054 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4055 _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'
4056 ;;
4057 esac
4058 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4059 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4060 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4061 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4062 ;;
4063 pgCC* | pgcpp*)
4064 # Portland Group C++ compiler
4065 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4066 _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'
4067
4068 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4069 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4070 _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'
4071 ;;
4072 cxx*)
4073 # Compaq C++
4074 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4075 _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'
4076
4077 runpath_var=LD_RUN_PATH
4078 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4079 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4080
4081 # Commands to make compiler produce verbose output that lists
4082 # what "hidden" libraries, object files and flags are used when
4083 # linking a shared library.
4084 #
4085 # There doesn't appear to be a way to prevent this compiler from
4086 # explicitly linking system object files so we need to strip them
4087 # from the output so that they don't get included in the library
4088 # dependencies.
4089 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'
4090 ;;
4091 *)
4092 case `$CC -V 2>&1 | sed 5q` in
4093 *Sun\ C*)
4094 # Sun C++ 5.9
4095 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4096 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4097 _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'
4098 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4099 _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'
4100
4101 # Not sure whether something based on
4102 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4103 # would be better.
4104 output_verbose_link_cmd='echo'
4105
4106 # Archives containing C++ object files must be created using
4107 # "CC -xar", where "CC" is the Sun C++ compiler. This is
4108 # necessary to make sure instantiated templates are included
4109 # in the archive.
4110 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4111 ;;
4112 esac
4113 ;;
4114 esac
4115 ;;
4116 lynxos*)
4117 # FIXME: insert proper C++ library support
4118 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4119 ;;
4120 m88k*)
4121 # FIXME: insert proper C++ library support
4122 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4123 ;;
4124 mvs*)
4125 case $cc_basename in
4126 cxx*)
4127 # FIXME: insert proper C++ library support
4128 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4129 ;;
4130 *)
4131 # FIXME: insert proper C++ library support
4132 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4133 ;;
4134 esac
4135 ;;
4136 netbsd* | netbsdelf*-gnu)
4137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4138 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4139 wlarc=
4140 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4141 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4142 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4143 fi
4144 # Workaround some broken pre-1.5 toolchains
4145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4146 ;;
4147 openbsd2*)
4148 # C++ shared libraries are fairly broken
4149 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4150 ;;
4151 openbsd*)
4152 if test -f /usr/libexec/ld.so; then
4153 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4154 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4155 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4156 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4158 _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'
4159 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4160 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4161 fi
4162 output_verbose_link_cmd='echo'
4163 else
4164 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4165 fi
4166 ;;
4167 osf3*)
4168 case $cc_basename in
4169 KCC*)
4170 # Kuck and Associates, Inc. (KAI) C++ Compiler
4171
4172 # KCC will only create a shared library if the output file
4173 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4174 # to its proper name (with version) after linking.
4175 _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'
4176
4177 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4178 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4179
4180 # Archives containing C++ object files must be created using
4181 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4182 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4183
4184 ;;
4185 RCC*)
4186 # Rational C++ 2.4.1
4187 # FIXME: insert proper C++ library support
4188 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4189 ;;
4190 cxx*)
4191 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4192 _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'
4193
4194 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4195 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4196
4197 # Commands to make compiler produce verbose output that lists
4198 # what "hidden" libraries, object files and flags are used when
4199 # linking a shared library.
4200 #
4201 # There doesn't appear to be a way to prevent this compiler from
4202 # explicitly linking system object files so we need to strip them
4203 # from the output so that they don't get included in the library
4204 # dependencies.
4205 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'
4206 ;;
4207 *)
4208 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4209 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4210 _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'
4211
4212 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4213 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4214
4215 # Commands to make compiler produce verbose output that lists
4216 # what "hidden" libraries, object files and flags are used when
4217 # linking a shared library.
4218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4219
4220 else
4221 # FIXME: insert proper C++ library support
4222 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4223 fi
4224 ;;
4225 esac
4226 ;;
4227 osf4* | osf5*)
4228 case $cc_basename in
4229 KCC*)
4230 # Kuck and Associates, Inc. (KAI) C++ Compiler
4231
4232 # KCC will only create a shared library if the output file
4233 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4234 # to its proper name (with version) after linking.
4235 _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'
4236
4237 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4238 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4239
4240 # Archives containing C++ object files must be created using
4241 # the KAI C++ compiler.
4242 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4243 ;;
4244 RCC*)
4245 # Rational C++ 2.4.1
4246 # FIXME: insert proper C++ library support
4247 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4248 ;;
4249 cxx*)
4250 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4251 _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'
4252 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4253 echo "-hidden">> $lib.exp~
4254 $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~
4255 $rm $lib.exp'
4256
4257 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4258 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4259
4260 # Commands to make compiler produce verbose output that lists
4261 # what "hidden" libraries, object files and flags are used when
4262 # linking a shared library.
4263 #
4264 # There doesn't appear to be a way to prevent this compiler from
4265 # explicitly linking system object files so we need to strip them
4266 # from the output so that they don't get included in the library
4267 # dependencies.
4268 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'
4269 ;;
4270 *)
4271 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4272 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4273 _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'
4274
4275 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4276 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4277
4278 # Commands to make compiler produce verbose output that lists
4279 # what "hidden" libraries, object files and flags are used when
4280 # linking a shared library.
4281 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4282
4283 else
4284 # FIXME: insert proper C++ library support
4285 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4286 fi
4287 ;;
4288 esac
4289 ;;
4290 psos*)
4291 # FIXME: insert proper C++ library support
4292 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4293 ;;
4294 sunos4*)
4295 case $cc_basename in
4296 CC*)
4297 # Sun C++ 4.x
4298 # FIXME: insert proper C++ library support
4299 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4300 ;;
4301 lcc*)
4302 # Lucid
4303 # FIXME: insert proper C++ library support
4304 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4305 ;;
4306 *)
4307 # FIXME: insert proper C++ library support
4308 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4309 ;;
4310 esac
4311 ;;
4312 solaris*)
4313 case $cc_basename in
4314 CC*)
4315 # Sun C++ 4.2, 5.x and Centerline C++
4316 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4317 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4318 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4319 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4320 $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'
4321
4322 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4323 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4324 case $host_os in
4325 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4326 *)
4327 # The compiler driver will combine and reorder linker options,
4328 # but understands `-z linker_flag'.
4329 # Supported since Solaris 2.6 (maybe 2.5.1?)
4330 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4331 ;;
4332 esac
4333 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4334
4335 output_verbose_link_cmd='echo'
4336
4337 # Archives containing C++ object files must be created using
4338 # "CC -xar", where "CC" is the Sun C++ compiler. This is
4339 # necessary to make sure instantiated templates are included
4340 # in the archive.
4341 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4342 ;;
4343 gcx*)
4344 # Green Hills C++ Compiler
4345 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4346
4347 # The C++ compiler must be used to create the archive.
4348 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4349 ;;
4350 *)
4351 # GNU C++ compiler with Solaris linker
4352 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4353 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4354 if $CC --version | grep -v '^2\.7' > /dev/null; then
4355 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4356 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4357 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4358
4359 # Commands to make compiler produce verbose output that lists
4360 # what "hidden" libraries, object files and flags are used when
4361 # linking a shared library.
4362 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4363 else
4364 # g++ 2.7 appears to require `-G' NOT `-shared' on this
4365 # platform.
4366 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4367 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4368 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4369
4370 # Commands to make compiler produce verbose output that lists
4371 # what "hidden" libraries, object files and flags are used when
4372 # linking a shared library.
4373 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4374 fi
4375
4376 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4377 case $host_os in
4378 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4379 *)
4380 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4381 ;;
4382 esac
4383 fi
4384 ;;
4385 esac
4386 ;;
4387 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4388 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4389 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4390 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4391 runpath_var='LD_RUN_PATH'
4392
4393 case $cc_basename in
4394 CC*)
4395 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4396 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4397 ;;
4398 *)
4399 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4400 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4401 ;;
4402 esac
4403 ;;
4404 sysv5* | sco3.2v5* | sco5v6*)
4405 # Note: We can NOT use -z defs as we might desire, because we do not
4406 # link with -lc, and that would cause any symbols used from libc to
4407 # always be unresolved, which means just about no library would
4408 # ever link correctly. If we're not using GNU ld we use -z text
4409 # though, which does catch some bad symbols but isn't as heavy-handed
4410 # as -z defs.
4411 # For security reasons, it is highly recommended that you always
4412 # use absolute paths for naming shared libraries, and exclude the
4413 # DT_RUNPATH tag from executables and libraries. But doing so
4414 # requires that you compile everything twice, which is a pain.
4415 # So that behaviour is only enabled if SCOABSPATH is set to a
4416 # non-empty value in the environment. Most likely only useful for
4417 # creating official distributions of packages.
4418 # This is a hack until libtool officially supports absolute path
4419 # names for shared libraries.
4420 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4421 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4422 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4423 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4424 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4425 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4426 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4427 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4428 runpath_var='LD_RUN_PATH'
4429
4430 case $cc_basename in
4431 CC*)
4432 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4433 _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'
4434 ;;
4435 *)
4436 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4437 _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'
4438 ;;
4439 esac
4440 ;;
4441 tandem*)
4442 case $cc_basename in
4443 NCC*)
4444 # NonStop-UX NCC 3.20
4445 # FIXME: insert proper C++ library support
4446 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4447 ;;
4448 *)
4449 # FIXME: insert proper C++ library support
4450 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4451 ;;
4452 esac
4453 ;;
4454 vxworks*)
4455 # FIXME: insert proper C++ library support
4456 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4457 ;;
4458 *)
4459 # FIXME: insert proper C++ library support
4460 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4461 ;;
4462 esac
4463 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4464 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4465
4466 _LT_AC_TAGVAR(GCC, $1)="$GXX"
4467 _LT_AC_TAGVAR(LD, $1)="$LD"
4468
4469 AC_LIBTOOL_POSTDEP_PREDEP($1)
4470 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4471 AC_LIBTOOL_PROG_CC_C_O($1)
4472 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4473 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4474 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4475 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4476
4477 AC_LIBTOOL_CONFIG($1)
4478
4479 AC_LANG_POP
4480 CC=$lt_save_CC
4481 LDCXX=$LD
4482 LD=$lt_save_LD
4483 GCC=$lt_save_GCC
4484 with_gnu_ldcxx=$with_gnu_ld
4485 with_gnu_ld=$lt_save_with_gnu_ld
4486 lt_cv_path_LDCXX=$lt_cv_path_LD
4487 lt_cv_path_LD=$lt_save_path_LD
4488 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4489 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4490 ])# AC_LIBTOOL_LANG_CXX_CONFIG
4491
4492 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4493 # ------------------------------------
4494 # Figure out "hidden" library dependencies from verbose
4495 # compiler output when linking a shared library.
4496 # Parse the compiler output and extract the necessary
4497 # objects, libraries and library flags.
4498 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4499 [AC_REQUIRE([LT_AC_PROG_SED])dnl
4500 dnl we can't use the lt_simple_compile_test_code here,
4501 dnl because it contains code intended for an executable,
4502 dnl not a library. It's possible we should let each
4503 dnl tag define a new lt_????_link_test_code variable,
4504 dnl but it's only used here...
4505 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4506 int a;
4507 void foo (void) { a = 0; }
4508 EOF
4509 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4510 class Foo
4511 {
4512 public:
4513 Foo (void) { a = 0; }
4514 private:
4515 int a;
4516 };
4517 EOF
4518 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4519 subroutine foo
4520 implicit none
4521 integer*4 a
4522 a=0
4523 return
4524 end
4525 EOF
4526 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4527 public class foo {
4528 private int a;
4529 public void bar (void) {
4530 a = 0;
4531 }
4532 };
4533 EOF
4534 ])
4535 dnl Parse the compiler output and extract the necessary
4536 dnl objects, libraries and library flags.
4537 if AC_TRY_EVAL(ac_compile); then
4538 # Parse the compiler output and extract the necessary
4539 # objects, libraries and library flags.
4540
4541 # Sentinel used to keep track of whether or not we are before
4542 # the conftest object file.
4543 pre_test_object_deps_done=no
4544
4545 # The `*' in the case matches for architectures that use `case' in
4546 # $output_verbose_cmd can trigger glob expansion during the loop
4547 # eval without this substitution.
4548 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4549
4550 for p in `eval $output_verbose_link_cmd`; do
4551 case $p in
4552
4553 -L* | -R* | -l*)
4554 # Some compilers place space between "-{L,R}" and the path.
4555 # Remove the space.
4556 if test $p = "-L" \
4557 || test $p = "-R"; then
4558 prev=$p
4559 continue
4560 else
4561 prev=
4562 fi
4563
4564 if test "$pre_test_object_deps_done" = no; then
4565 case $p in
4566 -L* | -R*)
4567 # Internal compiler library paths should come after those
4568 # provided the user. The postdeps already come after the
4569 # user supplied libs so there is no need to process them.
4570 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4571 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4572 else
4573 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4574 fi
4575 ;;
4576 # The "-l" case would never come before the object being
4577 # linked, so don't bother handling this case.
4578 esac
4579 else
4580 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4581 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4582 else
4583 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4584 fi
4585 fi
4586 ;;
4587
4588 *.$objext)
4589 # This assumes that the test object file only shows up
4590 # once in the compiler output.
4591 if test "$p" = "conftest.$objext"; then
4592 pre_test_object_deps_done=yes
4593 continue
4594 fi
4595
4596 if test "$pre_test_object_deps_done" = no; then
4597 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4598 _LT_AC_TAGVAR(predep_objects, $1)="$p"
4599 else
4600 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4601 fi
4602 else
4603 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4604 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4605 else
4606 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4607 fi
4608 fi
4609 ;;
4610
4611 *) ;; # Ignore the rest.
4612
4613 esac
4614 done
4615
4616 # Clean up.
4617 rm -f a.out a.exe
4618 else
4619 echo "libtool.m4: error: problem compiling $1 test program"
4620 fi
4621
4622 $rm -f confest.$objext
4623
4624 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4625 if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4626 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4627 fi
4628
4629 # PORTME: override above test on systems where it is broken
4630 ifelse([$1],[CXX],
4631 [case $host_os in
4632 interix[[3-9]]*)
4633 # Interix 3.5 installs completely hosed .la files for C++, so rather than
4634 # hack all around it, let's just trust "g++" to DTRT.
4635 _LT_AC_TAGVAR(predep_objects,$1)=
4636 _LT_AC_TAGVAR(postdep_objects,$1)=
4637 _LT_AC_TAGVAR(postdeps,$1)=
4638 ;;
4639
4640 linux*)
4641 case `$CC -V 2>&1 | sed 5q` in
4642 *Sun\ C*)
4643 # Sun C++ 5.9
4644 #
4645 # The more standards-conforming stlport4 library is
4646 # incompatible with the Cstd library. Avoid specifying
4647 # it if it's in CXXFLAGS. Ignore libCrun as
4648 # -library=stlport4 depends on it.
4649 case " $CXX $CXXFLAGS " in
4650 *" -library=stlport4 "*)
4651 solaris_use_stlport4=yes
4652 ;;
4653 esac
4654 if test "$solaris_use_stlport4" != yes; then
4655 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4656 fi
4657 ;;
4658 esac
4659 ;;
4660
4661 solaris*)
4662 case $cc_basename in
4663 CC*)
4664 # The more standards-conforming stlport4 library is
4665 # incompatible with the Cstd library. Avoid specifying
4666 # it if it's in CXXFLAGS. Ignore libCrun as
4667 # -library=stlport4 depends on it.
4668 case " $CXX $CXXFLAGS " in
4669 *" -library=stlport4 "*)
4670 solaris_use_stlport4=yes
4671 ;;
4672 esac
4673
4674 # Adding this requires a known-good setup of shared libraries for
4675 # Sun compiler versions before 5.6, else PIC objects from an old
4676 # archive will be linked into the output, leading to subtle bugs.
4677 if test "$solaris_use_stlport4" != yes; then
4678 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4679 fi
4680 ;;
4681 esac
4682 ;;
4683 esac
4684 ])
4685 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4686 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4687 esac
4688 ])# AC_LIBTOOL_POSTDEP_PREDEP
4689
4690 # AC_LIBTOOL_LANG_F77_CONFIG
4691 # --------------------------
4692 # Ensure that the configuration vars for the C compiler are
4693 # suitably defined. Those variables are subsequently used by
4694 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4695 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4696 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4697 [AC_REQUIRE([AC_PROG_F77])
4698 AC_LANG_PUSH(Fortran 77)
4699
4700 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4701 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4702 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4703 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4704 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4705 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4706 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4707 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4708 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4709 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4710 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4711 _LT_AC_TAGVAR(module_cmds, $1)=
4712 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4713 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4714 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4715 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4716 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4717 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4718
4719 # Source file extension for f77 test sources.
4720 ac_ext=f
4721
4722 # Object file extension for compiled f77 test sources.
4723 objext=o
4724 _LT_AC_TAGVAR(objext, $1)=$objext
4725
4726 # Code to be used in simple compile tests
4727 lt_simple_compile_test_code="\
4728 subroutine t
4729 return
4730 end
4731 "
4732
4733 # Code to be used in simple link tests
4734 lt_simple_link_test_code="\
4735 program t
4736 end
4737 "
4738
4739 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4740 _LT_AC_SYS_COMPILER
4741
4742 # save warnings/boilerplate of simple test code
4743 _LT_COMPILER_BOILERPLATE
4744 _LT_LINKER_BOILERPLATE
4745
4746 # Allow CC to be a program name with arguments.
4747 lt_save_CC="$CC"
4748 CC=${F77-"f77"}
4749 compiler=$CC
4750 _LT_AC_TAGVAR(compiler, $1)=$CC
4751 _LT_CC_BASENAME([$compiler])
4752
4753 AC_MSG_CHECKING([if libtool supports shared libraries])
4754 AC_MSG_RESULT([$can_build_shared])
4755
4756 AC_MSG_CHECKING([whether to build shared libraries])
4757 test "$can_build_shared" = "no" && enable_shared=no
4758
4759 # On AIX, shared libraries and static libraries use the same namespace, and
4760 # are all built from PIC.
4761 case $host_os in
4762 aix3*)
4763 test "$enable_shared" = yes && enable_static=no
4764 if test -n "$RANLIB"; then
4765 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4766 postinstall_cmds='$RANLIB $lib'
4767 fi
4768 ;;
4769 aix[[4-9]]*)
4770 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4771 test "$enable_shared" = yes && enable_static=no
4772 fi
4773 ;;
4774 esac
4775 AC_MSG_RESULT([$enable_shared])
4776
4777 AC_MSG_CHECKING([whether to build static libraries])
4778 # Make sure either enable_shared or enable_static is yes.
4779 test "$enable_shared" = yes || enable_static=yes
4780 AC_MSG_RESULT([$enable_static])
4781
4782 _LT_AC_TAGVAR(GCC, $1)="$G77"
4783 _LT_AC_TAGVAR(LD, $1)="$LD"
4784
4785 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4786 AC_LIBTOOL_PROG_CC_C_O($1)
4787 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4788 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4789 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4790 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4791
4792 AC_LIBTOOL_CONFIG($1)
4793
4794 AC_LANG_POP
4795 CC="$lt_save_CC"
4796 ])# AC_LIBTOOL_LANG_F77_CONFIG
4797
4798
4799 # AC_LIBTOOL_LANG_GCJ_CONFIG
4800 # --------------------------
4801 # Ensure that the configuration vars for the C compiler are
4802 # suitably defined. Those variables are subsequently used by
4803 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4804 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4805 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4806 [AC_LANG_SAVE
4807
4808 # Source file extension for Java test sources.
4809 ac_ext=java
4810
4811 # Object file extension for compiled Java test sources.
4812 objext=o
4813 _LT_AC_TAGVAR(objext, $1)=$objext
4814
4815 # Code to be used in simple compile tests
4816 lt_simple_compile_test_code="class foo {}"
4817
4818 # Code to be used in simple link tests
4819 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4820
4821 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4822 _LT_AC_SYS_COMPILER
4823
4824 # save warnings/boilerplate of simple test code
4825 _LT_COMPILER_BOILERPLATE
4826 _LT_LINKER_BOILERPLATE
4827
4828 # Allow CC to be a program name with arguments.
4829 lt_save_CC="$CC"
4830 CC=${GCJ-"gcj"}
4831 compiler=$CC
4832 _LT_AC_TAGVAR(compiler, $1)=$CC
4833 _LT_CC_BASENAME([$compiler])
4834
4835 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4836 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4837
4838 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4839
4840 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4841 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4842 AC_LIBTOOL_PROG_CC_C_O($1)
4843 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4844 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4845 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4846 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4847
4848 AC_LIBTOOL_CONFIG($1)
4849
4850 AC_LANG_RESTORE
4851 CC="$lt_save_CC"
4852 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4853
4854
4855 # AC_LIBTOOL_LANG_RC_CONFIG
4856 # -------------------------
4857 # Ensure that the configuration vars for the Windows resource compiler are
4858 # suitably defined. Those variables are subsequently used by
4859 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4860 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4861 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4862 [AC_LANG_SAVE
4863
4864 # Source file extension for RC test sources.
4865 ac_ext=rc
4866
4867 # Object file extension for compiled RC test sources.
4868 objext=o
4869 _LT_AC_TAGVAR(objext, $1)=$objext
4870
4871 # Code to be used in simple compile tests
4872 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4873
4874 # Code to be used in simple link tests
4875 lt_simple_link_test_code="$lt_simple_compile_test_code"
4876
4877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4878 _LT_AC_SYS_COMPILER
4879
4880 # save warnings/boilerplate of simple test code
4881 _LT_COMPILER_BOILERPLATE
4882 _LT_LINKER_BOILERPLATE
4883
4884 # Allow CC to be a program name with arguments.
4885 lt_save_CC="$CC"
4886 CC=${RC-"windres"}
4887 compiler=$CC
4888 _LT_AC_TAGVAR(compiler, $1)=$CC
4889 _LT_CC_BASENAME([$compiler])
4890 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4891
4892 AC_LIBTOOL_CONFIG($1)
4893
4894 AC_LANG_RESTORE
4895 CC="$lt_save_CC"
4896 ])# AC_LIBTOOL_LANG_RC_CONFIG
4897
4898
4899 # AC_LIBTOOL_CONFIG([TAGNAME])
4900 # ----------------------------
4901 # If TAGNAME is not passed, then create an initial libtool script
4902 # with a default configuration from the untagged config vars. Otherwise
4903 # add code to config.status for appending the configuration named by
4904 # TAGNAME from the matching tagged config vars.
4905 AC_DEFUN([AC_LIBTOOL_CONFIG],
4906 [# The else clause should only fire when bootstrapping the
4907 # libtool distribution, otherwise you forgot to ship ltmain.sh
4908 # with your package, and you will get complaints that there are
4909 # no rules to generate ltmain.sh.
4910 if test -f "$ltmain"; then
4911 # See if we are running on zsh, and set the options which allow our commands through
4912 # without removal of \ escapes.
4913 if test -n "${ZSH_VERSION+set}" ; then
4914 setopt NO_GLOB_SUBST
4915 fi
4916 # Now quote all the things that may contain metacharacters while being
4917 # careful not to overquote the AC_SUBSTed values. We take copies of the
4918 # variables and quote the copies for generation of the libtool script.
4919 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4920 SED SHELL STRIP \
4921 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4922 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4923 deplibs_check_method reload_flag reload_cmds need_locks \
4924 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4925 lt_cv_sys_global_symbol_to_c_name_address \
4926 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4927 old_postinstall_cmds old_postuninstall_cmds \
4928 _LT_AC_TAGVAR(compiler, $1) \
4929 _LT_AC_TAGVAR(CC, $1) \
4930 _LT_AC_TAGVAR(LD, $1) \
4931 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4932 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4933 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4934 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4935 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4936 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4937 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4938 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4939 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4940 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4941 _LT_AC_TAGVAR(predep_objects, $1) \
4942 _LT_AC_TAGVAR(postdep_objects, $1) \
4943 _LT_AC_TAGVAR(predeps, $1) \
4944 _LT_AC_TAGVAR(postdeps, $1) \
4945 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4946 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4947 _LT_AC_TAGVAR(archive_cmds, $1) \
4948 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4949 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4950 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4951 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4952 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4953 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4954 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4955 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4956 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4957 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4958 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4959 _LT_AC_TAGVAR(module_cmds, $1) \
4960 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4961 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4962 _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4963 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4964 _LT_AC_TAGVAR(include_expsyms, $1); do
4965
4966 case $var in
4967 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4968 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4969 _LT_AC_TAGVAR(archive_cmds, $1) | \
4970 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4971 _LT_AC_TAGVAR(module_cmds, $1) | \
4972 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4973 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4974 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4975 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4976 postinstall_cmds | postuninstall_cmds | \
4977 old_postinstall_cmds | old_postuninstall_cmds | \
4978 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4979 # Double-quote double-evaled strings.
4980 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4981 ;;
4982 *)
4983 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4984 ;;
4985 esac
4986 done
4987
4988 case $lt_echo in
4989 *'\[$]0 --fallback-echo"')
4990 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4991 ;;
4992 esac
4993
4994 ifelse([$1], [],
4995 [cfgfile="${ofile}T"
4996 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4997 $rm -f "$cfgfile"
4998 AC_MSG_NOTICE([creating $ofile])],
4999 [cfgfile="$ofile"])
5000
5001 cat <<__EOF__ >> "$cfgfile"
5002 ifelse([$1], [],
5003 [#! $SHELL
5004
5005 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5006 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5007 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5008 #
5009 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5010 # Free Software Foundation, Inc.
5011 #
5012 # This file is part of GNU Libtool:
5013 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5014 #
5015 # This program is free software; you can redistribute it and/or modify
5016 # it under the terms of the GNU General Public License as published by
5017 # the Free Software Foundation; either version 2 of the License, or
5018 # (at your option) any later version.
5019 #
5020 # This program is distributed in the hope that it will be useful, but
5021 # WITHOUT ANY WARRANTY; without even the implied warranty of
5022 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5023 # General Public License for more details.
5024 #
5025 # You should have received a copy of the GNU General Public License
5026 # along with this program; if not, write to the Free Software
5027 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5028 #
5029 # As a special exception to the GNU General Public License, if you
5030 # distribute this file as part of a program that contains a
5031 # configuration script generated by Autoconf, you may include it under
5032 # the same distribution terms that you use for the rest of that program.
5033
5034 # A sed program that does not truncate output.
5035 SED=$lt_SED
5036
5037 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5038 Xsed="$SED -e 1s/^X//"
5039
5040 # The HP-UX ksh and POSIX shell print the target directory to stdout
5041 # if CDPATH is set.
5042 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5043
5044 # The names of the tagged configurations supported by this script.
5045 available_tags=
5046
5047 # ### BEGIN LIBTOOL CONFIG],
5048 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5049
5050 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5051
5052 # Shell to use when invoking shell scripts.
5053 SHELL=$lt_SHELL
5054
5055 # Whether or not to build shared libraries.
5056 build_libtool_libs=$enable_shared
5057
5058 # Whether or not to build static libraries.
5059 build_old_libs=$enable_static
5060
5061 # Whether or not to add -lc for building shared libraries.
5062 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5063
5064 # Whether or not to disallow shared libs when runtime libs are static
5065 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5066
5067 # Whether or not to optimize for fast installation.
5068 fast_install=$enable_fast_install
5069
5070 # The host system.
5071 host_alias=$host_alias
5072 host=$host
5073 host_os=$host_os
5074
5075 # The build system.
5076 build_alias=$build_alias
5077 build=$build
5078 build_os=$build_os
5079
5080 # An echo program that does not interpret backslashes.
5081 echo=$lt_echo
5082
5083 # The archiver.
5084 AR=$lt_AR
5085 AR_FLAGS=$lt_AR_FLAGS
5086
5087 # A C compiler.
5088 LTCC=$lt_LTCC
5089
5090 # LTCC compiler flags.
5091 LTCFLAGS=$lt_LTCFLAGS
5092
5093 # A language-specific compiler.
5094 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5095
5096 # Is the compiler the GNU C compiler?
5097 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5098
5099 # An ERE matcher.
5100 EGREP=$lt_EGREP
5101
5102 # The linker used to build libraries.
5103 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5104
5105 # Whether we need hard or soft links.
5106 LN_S=$lt_LN_S
5107
5108 # A BSD-compatible nm program.
5109 NM=$lt_NM
5110
5111 # A symbol stripping program
5112 STRIP=$lt_STRIP
5113
5114 # Used to examine libraries when file_magic_cmd begins "file"
5115 MAGIC_CMD=$MAGIC_CMD
5116
5117 # Used on cygwin: DLL creation program.
5118 DLLTOOL="$DLLTOOL"
5119
5120 # Used on cygwin: object dumper.
5121 OBJDUMP="$OBJDUMP"
5122
5123 # Used on cygwin: assembler.
5124 AS="$AS"
5125
5126 # The name of the directory that contains temporary libtool files.
5127 objdir=$objdir
5128
5129 # How to create reloadable object files.
5130 reload_flag=$lt_reload_flag
5131 reload_cmds=$lt_reload_cmds
5132
5133 # How to pass a linker flag through the compiler.
5134 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5135
5136 # Object file suffix (normally "o").
5137 objext="$ac_objext"
5138
5139 # Old archive suffix (normally "a").
5140 libext="$libext"
5141
5142 # Shared library suffix (normally ".so").
5143 shrext_cmds='$shrext_cmds'
5144
5145 # Executable file suffix (normally "").
5146 exeext="$exeext"
5147
5148 # Additional compiler flags for building library objects.
5149 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5150 pic_mode=$pic_mode
5151
5152 # What is the maximum length of a command?
5153 max_cmd_len=$lt_cv_sys_max_cmd_len
5154
5155 # Does compiler simultaneously support -c and -o options?
5156 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5157
5158 # Must we lock files when doing compilation?
5159 need_locks=$lt_need_locks
5160
5161 # Do we need the lib prefix for modules?
5162 need_lib_prefix=$need_lib_prefix
5163
5164 # Do we need a version for libraries?
5165 need_version=$need_version
5166
5167 # Whether dlopen is supported.
5168 dlopen_support=$enable_dlopen
5169
5170 # Whether dlopen of programs is supported.
5171 dlopen_self=$enable_dlopen_self
5172
5173 # Whether dlopen of statically linked programs is supported.
5174 dlopen_self_static=$enable_dlopen_self_static
5175
5176 # Compiler flag to prevent dynamic linking.
5177 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5178
5179 # Compiler flag to turn off builtin functions.
5180 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5181
5182 # Compiler flag to allow reflexive dlopens.
5183 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5184
5185 # Compiler flag to generate shared objects directly from archives.
5186 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5187
5188 # Compiler flag to generate thread-safe objects.
5189 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5190
5191 # Library versioning type.
5192 version_type=$version_type
5193
5194 # Format of library name prefix.
5195 libname_spec=$lt_libname_spec
5196
5197 # List of archive names. First name is the real one, the rest are links.
5198 # The last name is the one that the linker finds with -lNAME.
5199 library_names_spec=$lt_library_names_spec
5200
5201 # The coded name of the library, if different from the real name.
5202 soname_spec=$lt_soname_spec
5203
5204 # Commands used to build and install an old-style archive.
5205 RANLIB=$lt_RANLIB
5206 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5207 old_postinstall_cmds=$lt_old_postinstall_cmds
5208 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5209
5210 # Create an old-style archive from a shared archive.
5211 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5212
5213 # Create a temporary old-style archive to link instead of a shared archive.
5214 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5215
5216 # Commands used to build and install a shared archive.
5217 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5218 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5219 postinstall_cmds=$lt_postinstall_cmds
5220 postuninstall_cmds=$lt_postuninstall_cmds
5221
5222 # Commands used to build a loadable module (assumed same as above if empty)
5223 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5224 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5225
5226 # Commands to strip libraries.
5227 old_striplib=$lt_old_striplib
5228 striplib=$lt_striplib
5229
5230 # Dependencies to place before the objects being linked to create a
5231 # shared library.
5232 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5233
5234 # Dependencies to place after the objects being linked to create a
5235 # shared library.
5236 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5237
5238 # Dependencies to place before the objects being linked to create a
5239 # shared library.
5240 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5241
5242 # Dependencies to place after the objects being linked to create a
5243 # shared library.
5244 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5245
5246 # The directories searched by this compiler when creating a shared
5247 # library
5248 compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5249
5250 # The library search path used internally by the compiler when linking
5251 # a shared library.
5252 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5253
5254 # Method to check whether dependent libraries are shared objects.
5255 deplibs_check_method=$lt_deplibs_check_method
5256
5257 # Command to use when deplibs_check_method == file_magic.
5258 file_magic_cmd=$lt_file_magic_cmd
5259
5260 # Flag that allows shared libraries with undefined symbols to be built.
5261 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5262
5263 # Flag that forces no undefined symbols.
5264 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5265
5266 # Commands used to finish a libtool library installation in a directory.
5267 finish_cmds=$lt_finish_cmds
5268
5269 # Same as above, but a single script fragment to be evaled but not shown.
5270 finish_eval=$lt_finish_eval
5271
5272 # Take the output of nm and produce a listing of raw symbols and C names.
5273 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5274
5275 # Transform the output of nm in a proper C declaration
5276 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5277
5278 # Transform the output of nm in a C name address pair
5279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5280
5281 # This is the shared library runtime path variable.
5282 runpath_var=$runpath_var
5283
5284 # This is the shared library path variable.
5285 shlibpath_var=$shlibpath_var
5286
5287 # Is shlibpath searched before the hard-coded library search path?
5288 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5289
5290 # How to hardcode a shared library path into an executable.
5291 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5292
5293 # Whether we should hardcode library paths into libraries.
5294 hardcode_into_libs=$hardcode_into_libs
5295
5296 # Flag to hardcode \$libdir into a binary during linking.
5297 # This must work even if \$libdir does not exist.
5298 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5299
5300 # If ld is used when linking, flag to hardcode \$libdir into
5301 # a binary during linking. This must work even if \$libdir does
5302 # not exist.
5303 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5304
5305 # Whether we need a single -rpath flag with a separated argument.
5306 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5307
5308 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5309 # resulting binary.
5310 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5311
5312 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5313 # resulting binary.
5314 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5315
5316 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5317 # the resulting binary.
5318 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5319
5320 # Set to yes if building a shared library automatically hardcodes DIR into the library
5321 # and all subsequent libraries and executables linked against it.
5322 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5323
5324 # Variables whose values should be saved in libtool wrapper scripts and
5325 # restored at relink time.
5326 variables_saved_for_relink="$variables_saved_for_relink"
5327
5328 # Whether libtool must link a program against all its dependency libraries.
5329 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5330
5331 # Compile-time system search path for libraries
5332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5333
5334 # Run-time system search path for libraries
5335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5336
5337 # Fix the shell variable \$srcfile for the compiler.
5338 fix_srcfile_path=$lt_fix_srcfile_path
5339
5340 # Set to yes if exported symbols are required.
5341 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5342
5343 # The commands to list exported symbols.
5344 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5345
5346 # The commands to extract the exported symbol list from a shared archive.
5347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5348
5349 # Symbols that should not be listed in the preloaded symbols.
5350 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5351
5352 # Symbols that must always be exported.
5353 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5354
5355 ifelse([$1],[],
5356 [# ### END LIBTOOL CONFIG],
5357 [# ### END LIBTOOL TAG CONFIG: $tagname])
5358
5359 __EOF__
5360
5361 ifelse([$1],[], [
5362 case $host_os in
5363 aix3*)
5364 cat <<\EOF >> "$cfgfile"
5365
5366 # AIX sometimes has problems with the GCC collect2 program. For some
5367 # reason, if we set the COLLECT_NAMES environment variable, the problems
5368 # vanish in a puff of smoke.
5369 if test "X${COLLECT_NAMES+set}" != Xset; then
5370 COLLECT_NAMES=
5371 export COLLECT_NAMES
5372 fi
5373 EOF
5374 ;;
5375 esac
5376
5377 # We use sed instead of cat because bash on DJGPP gets confused if
5378 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5379 # text mode, it properly converts lines to CR/LF. This bash problem
5380 # is reportedly fixed, but why not run on old versions too?
5381 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5382
5383 mv -f "$cfgfile" "$ofile" || \
5384 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5385 chmod +x "$ofile"
5386 ])
5387 else
5388 # If there is no Makefile yet, we rely on a make rule to execute
5389 # `config.status --recheck' to rerun these tests and create the
5390 # libtool script then.
5391 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5392 if test -f "$ltmain_in"; then
5393 test -f Makefile && make "$ltmain"
5394 fi
5395 fi
5396 ])# AC_LIBTOOL_CONFIG
5397
5398
5399 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5400 # -------------------------------------------
5401 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5402 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5403
5404 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5405
5406 if test "$GCC" = yes; then
5407 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5408
5409 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5410 lt_cv_prog_compiler_rtti_exceptions,
5411 [-fno-rtti -fno-exceptions], [],
5412 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5413 fi
5414 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5415
5416
5417 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5418 # ---------------------------------
5419 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5420 [AC_REQUIRE([AC_CANONICAL_HOST])
5421 AC_REQUIRE([LT_AC_PROG_SED])
5422 AC_REQUIRE([AC_PROG_NM])
5423 AC_REQUIRE([AC_OBJEXT])
5424 # Check for command to grab the raw symbol name followed by C symbol from nm.
5425 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5426 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5427 [
5428 # These are sane defaults that work on at least a few old systems.
5429 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5430
5431 # Character class describing NM global symbol codes.
5432 symcode='[[BCDEGRST]]'
5433
5434 # Regexp to match symbols that can be accessed directly from C.
5435 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5436
5437 # Transform an extracted symbol line into a proper C declaration
5438 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5439
5440 # Transform an extracted symbol line into symbol name and symbol address
5441 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'"
5442
5443 # Define system-specific variables.
5444 case $host_os in
5445 aix*)
5446 symcode='[[BCDT]]'
5447 ;;
5448 cygwin* | mingw* | pw32*)
5449 symcode='[[ABCDGISTW]]'
5450 ;;
5451 hpux*) # Its linker distinguishes data from code symbols
5452 if test "$host_cpu" = ia64; then
5453 symcode='[[ABCDEGRST]]'
5454 fi
5455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5456 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'"
5457 ;;
5458 linux* | k*bsd*-gnu)
5459 if test "$host_cpu" = ia64; then
5460 symcode='[[ABCDGIRSTW]]'
5461 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5462 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'"
5463 fi
5464 ;;
5465 irix* | nonstopux*)
5466 symcode='[[BCDEGRST]]'
5467 ;;
5468 osf*)
5469 symcode='[[BCDEGQRST]]'
5470 ;;
5471 solaris*)
5472 symcode='[[BDRT]]'
5473 ;;
5474 sco3.2v5*)
5475 symcode='[[DT]]'
5476 ;;
5477 sysv4.2uw2*)
5478 symcode='[[DT]]'
5479 ;;
5480 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5481 symcode='[[ABDT]]'
5482 ;;
5483 sysv4)
5484 symcode='[[DFNSTU]]'
5485 ;;
5486 esac
5487
5488 # Handle CRLF in mingw tool chain
5489 opt_cr=
5490 case $build_os in
5491 mingw*)
5492 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5493 ;;
5494 esac
5495
5496 # If we're using GNU nm, then use its standard symbol codes.
5497 case `$NM -V 2>&1` in
5498 *GNU* | *'with BFD'*)
5499 symcode='[[ABCDGIRSTW]]' ;;
5500 esac
5501
5502 # Try without a prefix undercore, then with it.
5503 for ac_symprfx in "" "_"; do
5504
5505 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5506 symxfrm="\\1 $ac_symprfx\\2 \\2"
5507
5508 # Write the raw and C identifiers.
5509 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5510
5511 # Check to see that the pipe works correctly.
5512 pipe_works=no
5513
5514 rm -f conftest*
5515 cat > conftest.$ac_ext <<EOF
5516 #ifdef __cplusplus
5517 extern "C" {
5518 #endif
5519 char nm_test_var;
5520 void nm_test_func(){}
5521 #ifdef __cplusplus
5522 }
5523 #endif
5524 int main(){nm_test_var='a';nm_test_func();return(0);}
5525 EOF
5526
5527 if AC_TRY_EVAL(ac_compile); then
5528 # Now try to grab the symbols.
5529 nlist=conftest.nm
5530 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5531 # Try sorting and uniquifying the output.
5532 if sort "$nlist" | uniq > "$nlist"T; then
5533 mv -f "$nlist"T "$nlist"
5534 else
5535 rm -f "$nlist"T
5536 fi
5537
5538 # Make sure that we snagged all the symbols we need.
5539 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5540 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5541 cat <<EOF > conftest.$ac_ext
5542 #ifdef __cplusplus
5543 extern "C" {
5544 #endif
5545
5546 EOF
5547 # Now generate the symbol file.
5548 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5549
5550 cat <<EOF >> conftest.$ac_ext
5551 #if defined (__STDC__) && __STDC__
5552 # define lt_ptr_t void *
5553 #else
5554 # define lt_ptr_t char *
5555 # define const
5556 #endif
5557
5558 /* The mapping between symbol names and symbols. */
5559 const struct {
5560 const char *name;
5561 lt_ptr_t address;
5562 }
5563 lt_preloaded_symbols[[]] =
5564 {
5565 EOF
5566 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5567 cat <<\EOF >> conftest.$ac_ext
5568 {0, (lt_ptr_t) 0}
5569 };
5570
5571 #ifdef __cplusplus
5572 }
5573 #endif
5574 EOF
5575 # Now try linking the two files.
5576 mv conftest.$ac_objext conftstm.$ac_objext
5577 lt_save_LIBS="$LIBS"
5578 lt_save_CFLAGS="$CFLAGS"
5579 LIBS="conftstm.$ac_objext"
5580 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5581 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5582 pipe_works=yes
5583 fi
5584 LIBS="$lt_save_LIBS"
5585 CFLAGS="$lt_save_CFLAGS"
5586 else
5587 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5588 fi
5589 else
5590 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5591 fi
5592 else
5593 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5594 fi
5595 else
5596 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5597 cat conftest.$ac_ext >&5
5598 fi
5599 rm -rf conftest* conftst*
5600
5601 # Do not use the global_symbol_pipe unless it works.
5602 if test "$pipe_works" = yes; then
5603 break
5604 else
5605 lt_cv_sys_global_symbol_pipe=
5606 fi
5607 done
5608 ])
5609 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5610 lt_cv_sys_global_symbol_to_cdecl=
5611 fi
5612 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5613 AC_MSG_RESULT(failed)
5614 else
5615 AC_MSG_RESULT(ok)
5616 fi
5617 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5618
5619
5620 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5621 # ---------------------------------------
5622 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5623 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5624 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5625 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5626
5627 AC_MSG_CHECKING([for $compiler option to produce PIC])
5628 ifelse([$1],[CXX],[
5629 # C++ specific cases for pic, static, wl, etc.
5630 if test "$GXX" = yes; then
5631 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5632 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5633
5634 case $host_os in
5635 aix*)
5636 # All AIX code is PIC.
5637 if test "$host_cpu" = ia64; then
5638 # AIX 5 now supports IA64 processor
5639 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5640 fi
5641 ;;
5642 amigaos*)
5643 # FIXME: we need at least 68020 code to build shared libraries, but
5644 # adding the `-m68020' flag to GCC prevents building anything better,
5645 # like `-m68040'.
5646 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5647 ;;
5648 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5649 # PIC is the default for these OSes.
5650 ;;
5651 mingw* | cygwin* | os2* | pw32*)
5652 # This hack is so that the source file can tell whether it is being
5653 # built for inclusion in a dll (and should export symbols for example).
5654 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5655 # (--disable-auto-import) libraries
5656 m4_if([$1], [GCJ], [],
5657 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5658 ;;
5659 darwin* | rhapsody*)
5660 # PIC is the default on this platform
5661 # Common symbols not allowed in MH_DYLIB files
5662 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5663 ;;
5664 *djgpp*)
5665 # DJGPP does not support shared libraries at all
5666 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5667 ;;
5668 interix[[3-9]]*)
5669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5670 # Instead, we relocate shared libraries at runtime.
5671 ;;
5672 sysv4*MP*)
5673 if test -d /usr/nec; then
5674 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5675 fi
5676 ;;
5677 hpux*)
5678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5679 # not for PA HP-UX.
5680 case $host_cpu in
5681 hppa*64*|ia64*)
5682 ;;
5683 *)
5684 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5685 ;;
5686 esac
5687 ;;
5688 *)
5689 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5690 ;;
5691 esac
5692 else
5693 case $host_os in
5694 aix[[4-9]]*)
5695 # All AIX code is PIC.
5696 if test "$host_cpu" = ia64; then
5697 # AIX 5 now supports IA64 processor
5698 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5699 else
5700 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5701 fi
5702 ;;
5703 chorus*)
5704 case $cc_basename in
5705 cxch68*)
5706 # Green Hills C++ Compiler
5707 # _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"
5708 ;;
5709 esac
5710 ;;
5711 darwin*)
5712 # PIC is the default on this platform
5713 # Common symbols not allowed in MH_DYLIB files
5714 case $cc_basename in
5715 xlc*)
5716 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5717 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5718 ;;
5719 esac
5720 ;;
5721 dgux*)
5722 case $cc_basename in
5723 ec++*)
5724 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5725 ;;
5726 ghcx*)
5727 # Green Hills C++ Compiler
5728 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5729 ;;
5730 *)
5731 ;;
5732 esac
5733 ;;
5734 freebsd* | dragonfly*)
5735 # FreeBSD uses GNU C++
5736 ;;
5737 hpux9* | hpux10* | hpux11*)
5738 case $cc_basename in
5739 CC*)
5740 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5741 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5742 if test "$host_cpu" != ia64; then
5743 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5744 fi
5745 ;;
5746 aCC*)
5747 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5748 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5749 case $host_cpu in
5750 hppa*64*|ia64*)
5751 # +Z the default
5752 ;;
5753 *)
5754 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5755 ;;
5756 esac
5757 ;;
5758 *)
5759 ;;
5760 esac
5761 ;;
5762 interix*)
5763 # This is c89, which is MS Visual C++ (no shared libs)
5764 # Anyone wants to do a port?
5765 ;;
5766 irix5* | irix6* | nonstopux*)
5767 case $cc_basename in
5768 CC*)
5769 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5770 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5771 # CC pic flag -KPIC is the default.
5772 ;;
5773 *)
5774 ;;
5775 esac
5776 ;;
5777 linux* | k*bsd*-gnu)
5778 case $cc_basename in
5779 KCC*)
5780 # KAI C++ Compiler
5781 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5782 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5783 ;;
5784 icpc* | ecpc*)
5785 # Intel C++
5786 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5787 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5788 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5789 ;;
5790 pgCC* | pgcpp*)
5791 # Portland Group C++ compiler.
5792 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5793 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5794 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5795 ;;
5796 cxx*)
5797 # Compaq C++
5798 # Make sure the PIC flag is empty. It appears that all Alpha
5799 # Linux and Compaq Tru64 Unix objects are PIC.
5800 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5801 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5802 ;;
5803 *)
5804 case `$CC -V 2>&1 | sed 5q` in
5805 *Sun\ C*)
5806 # Sun C++ 5.9
5807 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5808 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5809 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5810 ;;
5811 esac
5812 ;;
5813 esac
5814 ;;
5815 lynxos*)
5816 ;;
5817 m88k*)
5818 ;;
5819 mvs*)
5820 case $cc_basename in
5821 cxx*)
5822 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5823 ;;
5824 *)
5825 ;;
5826 esac
5827 ;;
5828 netbsd* | netbsdelf*-gnu)
5829 ;;
5830 osf3* | osf4* | osf5*)
5831 case $cc_basename in
5832 KCC*)
5833 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5834 ;;
5835 RCC*)
5836 # Rational C++ 2.4.1
5837 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5838 ;;
5839 cxx*)
5840 # Digital/Compaq C++
5841 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5842 # Make sure the PIC flag is empty. It appears that all Alpha
5843 # Linux and Compaq Tru64 Unix objects are PIC.
5844 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5845 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5846 ;;
5847 *)
5848 ;;
5849 esac
5850 ;;
5851 psos*)
5852 ;;
5853 solaris*)
5854 case $cc_basename in
5855 CC*)
5856 # Sun C++ 4.2, 5.x and Centerline C++
5857 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5858 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5859 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5860 ;;
5861 gcx*)
5862 # Green Hills C++ Compiler
5863 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5864 ;;
5865 *)
5866 ;;
5867 esac
5868 ;;
5869 sunos4*)
5870 case $cc_basename in
5871 CC*)
5872 # Sun C++ 4.x
5873 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5874 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5875 ;;
5876 lcc*)
5877 # Lucid
5878 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5879 ;;
5880 *)
5881 ;;
5882 esac
5883 ;;
5884 tandem*)
5885 case $cc_basename in
5886 NCC*)
5887 # NonStop-UX NCC 3.20
5888 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5889 ;;
5890 *)
5891 ;;
5892 esac
5893 ;;
5894 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5895 case $cc_basename in
5896 CC*)
5897 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5898 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5899 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5900 ;;
5901 esac
5902 ;;
5903 vxworks*)
5904 ;;
5905 *)
5906 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5907 ;;
5908 esac
5909 fi
5910 ],
5911 [
5912 if test "$GCC" = yes; then
5913 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5914 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5915
5916 case $host_os in
5917 aix*)
5918 # All AIX code is PIC.
5919 if test "$host_cpu" = ia64; then
5920 # AIX 5 now supports IA64 processor
5921 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5922 fi
5923 ;;
5924
5925 amigaos*)
5926 # FIXME: we need at least 68020 code to build shared libraries, but
5927 # adding the `-m68020' flag to GCC prevents building anything better,
5928 # like `-m68040'.
5929 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5930 ;;
5931
5932 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5933 # PIC is the default for these OSes.
5934 ;;
5935
5936 mingw* | cygwin* | pw32* | os2*)
5937 # This hack is so that the source file can tell whether it is being
5938 # built for inclusion in a dll (and should export symbols for example).
5939 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5940 # (--disable-auto-import) libraries
5941 m4_if([$1], [GCJ], [],
5942 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5943 ;;
5944
5945 darwin* | rhapsody*)
5946 # PIC is the default on this platform
5947 # Common symbols not allowed in MH_DYLIB files
5948 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5949 ;;
5950
5951 interix[[3-9]]*)
5952 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5953 # Instead, we relocate shared libraries at runtime.
5954 ;;
5955
5956 msdosdjgpp*)
5957 # Just because we use GCC doesn't mean we suddenly get shared libraries
5958 # on systems that don't support them.
5959 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5960 enable_shared=no
5961 ;;
5962
5963 sysv4*MP*)
5964 if test -d /usr/nec; then
5965 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5966 fi
5967 ;;
5968
5969 hpux*)
5970 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5971 # not for PA HP-UX.
5972 case $host_cpu in
5973 hppa*64*|ia64*)
5974 # +Z the default
5975 ;;
5976 *)
5977 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5978 ;;
5979 esac
5980 ;;
5981
5982 *)
5983 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5984 ;;
5985 esac
5986 else
5987 # PORTME Check for flag to pass linker flags through the system compiler.
5988 case $host_os in
5989 aix*)
5990 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5991 if test "$host_cpu" = ia64; then
5992 # AIX 5 now supports IA64 processor
5993 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5994 else
5995 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5996 fi
5997 ;;
5998 darwin*)
5999 # PIC is the default on this platform
6000 # Common symbols not allowed in MH_DYLIB files
6001 case $cc_basename in
6002 xlc*)
6003 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6004 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6005 ;;
6006 esac
6007 ;;
6008
6009 mingw* | cygwin* | pw32* | os2*)
6010 # This hack is so that the source file can tell whether it is being
6011 # built for inclusion in a dll (and should export symbols for example).
6012 m4_if([$1], [GCJ], [],
6013 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6014 ;;
6015
6016 hpux9* | hpux10* | hpux11*)
6017 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6019 # not for PA HP-UX.
6020 case $host_cpu in
6021 hppa*64*|ia64*)
6022 # +Z the default
6023 ;;
6024 *)
6025 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6026 ;;
6027 esac
6028 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6029 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6030 ;;
6031
6032 irix5* | irix6* | nonstopux*)
6033 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6034 # PIC (with -KPIC) is the default.
6035 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6036 ;;
6037
6038 newsos6)
6039 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6040 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6041 ;;
6042
6043 linux* | k*bsd*-gnu)
6044 case $cc_basename in
6045 icc* | ecc*)
6046 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6047 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6048 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6049 ;;
6050 pgcc* | pgf77* | pgf90* | pgf95*)
6051 # Portland Group compilers (*not* the Pentium gcc compiler,
6052 # which looks to be a dead project)
6053 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6054 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6055 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6056 ;;
6057 ccc*)
6058 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6059 # All Alpha code is PIC.
6060 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6061 ;;
6062 *)
6063 case `$CC -V 2>&1 | sed 5q` in
6064 *Sun\ C*)
6065 # Sun C 5.9
6066 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6067 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6068 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6069 ;;
6070 *Sun\ F*)
6071 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6072 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6073 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6074 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
6075 ;;
6076 esac
6077 ;;
6078 esac
6079 ;;
6080
6081 osf3* | osf4* | osf5*)
6082 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6083 # All OSF/1 code is PIC.
6084 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6085 ;;
6086
6087 rdos*)
6088 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6089 ;;
6090
6091 solaris*)
6092 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6093 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6094 case $cc_basename in
6095 f77* | f90* | f95*)
6096 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6097 *)
6098 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6099 esac
6100 ;;
6101
6102 sunos4*)
6103 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6104 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6105 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6106 ;;
6107
6108 sysv4 | sysv4.2uw2* | sysv4.3*)
6109 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6110 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6111 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6112 ;;
6113
6114 sysv4*MP*)
6115 if test -d /usr/nec ;then
6116 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6117 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6118 fi
6119 ;;
6120
6121 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6122 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6123 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6124 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6125 ;;
6126
6127 unicos*)
6128 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6129 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6130 ;;
6131
6132 uts4*)
6133 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6134 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6135 ;;
6136
6137 *)
6138 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6139 ;;
6140 esac
6141 fi
6142 ])
6143 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6144
6145 #
6146 # Check to make sure the PIC flag actually works.
6147 #
6148 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6149 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6150 _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6151 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6152 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6153 "" | " "*) ;;
6154 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6155 esac],
6156 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6157 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6158 fi
6159 case $host_os in
6160 # For platforms which do not support PIC, -DPIC is meaningless:
6161 *djgpp*)
6162 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6163 ;;
6164 *)
6165 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6166 ;;
6167 esac
6168
6169 #
6170 # Check to make sure the static flag actually works.
6171 #
6172 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6173 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6174 _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6175 $lt_tmp_static_flag,
6176 [],
6177 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6178 ])
6179
6180
6181 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6182 # ------------------------------------
6183 # See if the linker supports building shared libraries.
6184 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6185 [AC_REQUIRE([LT_AC_PROG_SED])dnl
6186 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6187 ifelse([$1],[CXX],[
6188 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6189 case $host_os in
6190 aix[[4-9]]*)
6191 # If we're using GNU nm, then we don't want the "-C" option.
6192 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6193 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6194 _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'
6195 else
6196 _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'
6197 fi
6198 ;;
6199 pw32*)
6200 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6201 ;;
6202 cygwin* | mingw*)
6203 _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'
6204 ;;
6205 linux* | k*bsd*-gnu)
6206 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6207 ;;
6208 *)
6209 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6210 ;;
6211 esac
6212 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6213 ],[
6214 runpath_var=
6215 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6216 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6217 _LT_AC_TAGVAR(archive_cmds, $1)=
6218 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6219 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6220 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6221 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6222 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6223 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6224 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6225 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6226 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6227 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6228 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6229 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6230 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6231 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6232 _LT_AC_TAGVAR(module_cmds, $1)=
6233 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6234 _LT_AC_TAGVAR(always_export_symbols, $1)=no
6235 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6236 # include_expsyms should be a list of space-separated symbols to be *always*
6237 # included in the symbol list
6238 _LT_AC_TAGVAR(include_expsyms, $1)=
6239 # exclude_expsyms can be an extended regexp of symbols to exclude
6240 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6241 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6242 # as well as any symbol that contains `d'.
6243 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6244 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6245 # platforms (ab)use it in PIC code, but their linkers get confused if
6246 # the symbol is explicitly referenced. Since portable code cannot
6247 # rely on this symbol name, it's probably fine to never include it in
6248 # preloaded symbol tables.
6249 # Exclude shared library initialization/finalization symbols.
6250 dnl Note also adjust exclude_expsyms for C++ above.
6251 extract_expsyms_cmds=
6252 # Just being paranoid about ensuring that cc_basename is set.
6253 _LT_CC_BASENAME([$compiler])
6254 case $host_os in
6255 cygwin* | mingw* | pw32*)
6256 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6257 # When not using gcc, we currently assume that we are using
6258 # Microsoft Visual C++.
6259 if test "$GCC" != yes; then
6260 with_gnu_ld=no
6261 fi
6262 ;;
6263 interix*)
6264 # we just hope/assume this is gcc and not c89 (= MSVC++)
6265 with_gnu_ld=yes
6266 ;;
6267 openbsd*)
6268 with_gnu_ld=no
6269 ;;
6270 esac
6271
6272 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6273 if test "$with_gnu_ld" = yes; then
6274 # If archive_cmds runs LD, not CC, wlarc should be empty
6275 wlarc='${wl}'
6276
6277 # Set some defaults for GNU ld with shared library support. These
6278 # are reset later if shared libraries are not supported. Putting them
6279 # here allows them to be overridden if necessary.
6280 runpath_var=LD_RUN_PATH
6281 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6282 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6283 # ancient GNU ld didn't support --whole-archive et. al.
6284 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6285 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6286 else
6287 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6288 fi
6289 supports_anon_versioning=no
6290 case `$LD -v 2>/dev/null` in
6291 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6292 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6293 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6294 *\ 2.11.*) ;; # other 2.11 versions
6295 *) supports_anon_versioning=yes ;;
6296 esac
6297
6298 # See if GNU ld supports shared libraries.
6299 case $host_os in
6300 aix[[3-9]]*)
6301 # On AIX/PPC, the GNU linker is very broken
6302 if test "$host_cpu" != ia64; then
6303 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6304 cat <<EOF 1>&2
6305
6306 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6307 *** to be unable to reliably create shared libraries on AIX.
6308 *** Therefore, libtool is disabling shared libraries support. If you
6309 *** really care for shared libraries, you may want to modify your PATH
6310 *** so that a non-GNU linker is found, and then restart.
6311
6312 EOF
6313 fi
6314 ;;
6315
6316 amigaos*)
6317 _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)'
6318 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6319 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6320
6321 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6322 # that the semantics of dynamic libraries on AmigaOS, at least up
6323 # to version 4, is to share data among multiple programs linked
6324 # with the same dynamic library. Since this doesn't match the
6325 # behavior of shared libraries on other platforms, we can't use
6326 # them.
6327 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6328 ;;
6329
6330 beos*)
6331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6332 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6333 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6334 # support --undefined. This deserves some investigation. FIXME
6335 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6336 else
6337 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6338 fi
6339 ;;
6340
6341 cygwin* | mingw* | pw32*)
6342 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6343 # as there is no search path for DLLs.
6344 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6345 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6346 _LT_AC_TAGVAR(always_export_symbols, $1)=no
6347 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6348 _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'
6349
6350 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6351 _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'
6352 # If the export-symbols file already is a .def file (1st line
6353 # is EXPORTS), use it as is; otherwise, prepend...
6354 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6355 cp $export_symbols $output_objdir/$soname.def;
6356 else
6357 echo EXPORTS > $output_objdir/$soname.def;
6358 cat $export_symbols >> $output_objdir/$soname.def;
6359 fi~
6360 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6361 else
6362 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6363 fi
6364 ;;
6365
6366 interix[[3-9]]*)
6367 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6368 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6369 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6370 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6371 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6372 # Instead, shared libraries are loaded at an image base (0x10000000 by
6373 # default) and relocated if they conflict, which is a slow very memory
6374 # consuming and fragmenting process. To avoid this, we pick a random,
6375 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6376 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6377 _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'
6378 _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'
6379 ;;
6380
6381 gnu* | linux* | k*bsd*-gnu)
6382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6383 tmp_addflag=
6384 case $cc_basename,$host_cpu in
6385 pgcc*) # Portland Group C compiler
6386 _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'
6387 tmp_addflag=' $pic_flag'
6388 ;;
6389 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6390 _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'
6391 tmp_addflag=' $pic_flag -Mnomain' ;;
6392 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6393 tmp_addflag=' -i_dynamic' ;;
6394 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6395 tmp_addflag=' -i_dynamic -nofor_main' ;;
6396 ifc* | ifort*) # Intel Fortran compiler
6397 tmp_addflag=' -nofor_main' ;;
6398 esac
6399 case `$CC -V 2>&1 | sed 5q` in
6400 *Sun\ C*) # Sun C 5.9
6401 _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'
6402 tmp_sharedflag='-G' ;;
6403 *Sun\ F*) # Sun Fortran 8.3
6404 tmp_sharedflag='-G' ;;
6405 *)
6406 tmp_sharedflag='-shared' ;;
6407 esac
6408 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6409
6410 if test $supports_anon_versioning = yes; then
6411 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6413 $echo "local: *; };" >> $output_objdir/$libname.ver~
6414 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6415 fi
6416 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6417 else
6418 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6419 fi
6420 ;;
6421
6422 netbsd* | netbsdelf*-gnu)
6423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6424 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6425 wlarc=
6426 else
6427 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6428 _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'
6429 fi
6430 ;;
6431
6432 solaris*)
6433 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6434 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6435 cat <<EOF 1>&2
6436
6437 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6438 *** create shared libraries on Solaris systems. Therefore, libtool
6439 *** is disabling shared libraries support. We urge you to upgrade GNU
6440 *** binutils to release 2.9.1 or newer. Another option is to modify
6441 *** your PATH or compiler configuration so that the native linker is
6442 *** used, and then restart.
6443
6444 EOF
6445 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6446 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6447 _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'
6448 else
6449 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6450 fi
6451 ;;
6452
6453 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6454 case `$LD -v 2>&1` in
6455 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6456 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6457 cat <<_LT_EOF 1>&2
6458
6459 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6460 *** reliably create shared libraries on SCO systems. Therefore, libtool
6461 *** is disabling shared libraries support. We urge you to upgrade GNU
6462 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6463 *** your PATH or compiler configuration so that the native linker is
6464 *** used, and then restart.
6465
6466 _LT_EOF
6467 ;;
6468 *)
6469 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6470 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6471 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6472 _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'
6473 else
6474 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6475 fi
6476 ;;
6477 esac
6478 ;;
6479
6480 sunos4*)
6481 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6482 wlarc=
6483 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6484 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6485 ;;
6486
6487 *)
6488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6489 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6490 _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'
6491 else
6492 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6493 fi
6494 ;;
6495 esac
6496
6497 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6498 runpath_var=
6499 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6500 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6501 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6502 fi
6503 else
6504 # PORTME fill in a description of your system's linker (not GNU ld)
6505 case $host_os in
6506 aix3*)
6507 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6508 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6509 _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'
6510 # Note: this linker hardcodes the directories in LIBPATH if there
6511 # are no directories specified by -L.
6512 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6513 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6514 # Neither direct hardcoding nor static linking is supported with a
6515 # broken collect2.
6516 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6517 fi
6518 ;;
6519
6520 aix[[4-9]]*)
6521 if test "$host_cpu" = ia64; then
6522 # On IA64, the linker does run time linking by default, so we don't
6523 # have to do anything special.
6524 aix_use_runtimelinking=no
6525 exp_sym_flag='-Bexport'
6526 no_entry_flag=""
6527 else
6528 # If we're using GNU nm, then we don't want the "-C" option.
6529 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6530 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6531 _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'
6532 else
6533 _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'
6534 fi
6535 aix_use_runtimelinking=no
6536
6537 # Test if we are trying to use run time linking or normal
6538 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6539 # need to do runtime linking.
6540 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6541 for ld_flag in $LDFLAGS; do
6542 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6543 aix_use_runtimelinking=yes
6544 break
6545 fi
6546 done
6547 ;;
6548 esac
6549
6550 exp_sym_flag='-bexport'
6551 no_entry_flag='-bnoentry'
6552 fi
6553
6554 # When large executables or shared objects are built, AIX ld can
6555 # have problems creating the table of contents. If linking a library
6556 # or program results in "error TOC overflow" add -mminimal-toc to
6557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6559
6560 _LT_AC_TAGVAR(archive_cmds, $1)=''
6561 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6562 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6563 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6564
6565 if test "$GCC" = yes; then
6566 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6567 # We only want to do this on AIX 4.2 and lower, the check
6568 # below for broken collect2 doesn't work under 4.3+
6569 collect2name=`${CC} -print-prog-name=collect2`
6570 if test -f "$collect2name" && \
6571 strings "$collect2name" | grep resolve_lib_name >/dev/null
6572 then
6573 # We have reworked collect2
6574 :
6575 else
6576 # We have old collect2
6577 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6578 # It fails to find uninstalled libraries when the uninstalled
6579 # path is not listed in the libpath. Setting hardcode_minus_L
6580 # to unsupported forces relinking
6581 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6582 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6583 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6584 fi
6585 ;;
6586 esac
6587 shared_flag='-shared'
6588 if test "$aix_use_runtimelinking" = yes; then
6589 shared_flag="$shared_flag "'${wl}-G'
6590 fi
6591 else
6592 # not using gcc
6593 if test "$host_cpu" = ia64; then
6594 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6595 # chokes on -Wl,-G. The following line is correct:
6596 shared_flag='-G'
6597 else
6598 if test "$aix_use_runtimelinking" = yes; then
6599 shared_flag='${wl}-G'
6600 else
6601 shared_flag='${wl}-bM:SRE'
6602 fi
6603 fi
6604 fi
6605
6606 # It seems that -bexpall does not export symbols beginning with
6607 # underscore (_), so it is better to generate a list of symbols to export.
6608 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6609 if test "$aix_use_runtimelinking" = yes; then
6610 # Warning - without using the other runtime loading flags (-brtl),
6611 # -berok will link without error, but may produce a broken library.
6612 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6613 # Determine the default libpath from the value encoded in an empty executable.
6614 _LT_AC_SYS_LIBPATH_AIX
6615 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6616 _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"
6617 else
6618 if test "$host_cpu" = ia64; then
6619 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6620 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6621 _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"
6622 else
6623 # Determine the default libpath from the value encoded in an empty executable.
6624 _LT_AC_SYS_LIBPATH_AIX
6625 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6626 # Warning - without using the other run time loading flags,
6627 # -berok will link without error, but may produce a broken library.
6628 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6629 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6630 # Exported symbols can be pulled into shared objects from archives
6631 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6632 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6633 # This is similar to how AIX traditionally builds its shared libraries.
6634 _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'
6635 fi
6636 fi
6637 ;;
6638
6639 amigaos*)
6640 _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)'
6641 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6642 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6643 # see comment about different semantics on the GNU ld section
6644 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6645 ;;
6646
6647 bsdi[[45]]*)
6648 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6649 ;;
6650
6651 cygwin* | mingw* | pw32*)
6652 # When not using gcc, we currently assume that we are using
6653 # Microsoft Visual C++.
6654 # hardcode_libdir_flag_spec is actually meaningless, as there is
6655 # no search path for DLLs.
6656 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6657 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6658 # Tell ltmain to make .lib files, not .a files.
6659 libext=lib
6660 # Tell ltmain to make .dll files, not .so files.
6661 shrext_cmds=".dll"
6662 # FIXME: Setting linknames here is a bad hack.
6663 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6664 # The linker will automatically build a .lib file if we build a DLL.
6665 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6666 # FIXME: Should let the user specify the lib program.
6667 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6668 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6669 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6670 ;;
6671
6672 darwin* | rhapsody*)
6673 case $host_os in
6674 rhapsody* | darwin1.[[012]])
6675 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6676 ;;
6677 *) # Darwin 1.3 on
6678 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6679 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6680 else
6681 case ${MACOSX_DEPLOYMENT_TARGET} in
6682 10.[[012]])
6683 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6684 ;;
6685 10.*)
6686 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6687 ;;
6688 esac
6689 fi
6690 ;;
6691 esac
6692 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6693 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6694 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6695 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6696 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6697 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6698 if test "$GCC" = yes ; then
6699 output_verbose_link_cmd='echo'
6700 _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}"
6701 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6702 _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}"
6703 _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}"
6704 else
6705 case $cc_basename in
6706 xlc*)
6707 output_verbose_link_cmd='echo'
6708 _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'
6709 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6710 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6711 _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}'
6712 _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}'
6713 ;;
6714 *)
6715 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6716 ;;
6717 esac
6718 fi
6719 ;;
6720
6721 dgux*)
6722 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6723 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6724 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6725 ;;
6726
6727 freebsd1*)
6728 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6729 ;;
6730
6731 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6732 # support. Future versions do this automatically, but an explicit c++rt0.o
6733 # does not break anything, and helps significantly (at the cost of a little
6734 # extra space).
6735 freebsd2.2*)
6736 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6737 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6738 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6739 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6740 ;;
6741
6742 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6743 freebsd2*)
6744 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6745 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6746 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6747 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6748 ;;
6749
6750 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6751 freebsd* | dragonfly*)
6752 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6753 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6754 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6755 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6756 ;;
6757
6758 hpux9*)
6759 if test "$GCC" = yes; then
6760 _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'
6761 else
6762 _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'
6763 fi
6764 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6765 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6766 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6767
6768 # hardcode_minus_L: Not really in the search PATH,
6769 # but as the default location of the library.
6770 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6771 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6772 ;;
6773
6774 hpux10*)
6775 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6776 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6777 else
6778 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6779 fi
6780 if test "$with_gnu_ld" = no; then
6781 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6782 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6783
6784 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6785 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6786
6787 # hardcode_minus_L: Not really in the search PATH,
6788 # but as the default location of the library.
6789 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6790 fi
6791 ;;
6792
6793 hpux11*)
6794 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6795 case $host_cpu in
6796 hppa*64*)
6797 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6798 ;;
6799 ia64*)
6800 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6801 ;;
6802 *)
6803 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6804 ;;
6805 esac
6806 else
6807 case $host_cpu in
6808 hppa*64*)
6809 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6810 ;;
6811 ia64*)
6812 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6813 ;;
6814 *)
6815 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6816 ;;
6817 esac
6818 fi
6819 if test "$with_gnu_ld" = no; then
6820 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6821 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6822
6823 case $host_cpu in
6824 hppa*64*|ia64*)
6825 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6826 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6827 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6828 ;;
6829 *)
6830 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6831 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6832
6833 # hardcode_minus_L: Not really in the search PATH,
6834 # but as the default location of the library.
6835 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6836 ;;
6837 esac
6838 fi
6839 ;;
6840
6841 irix5* | irix6* | nonstopux*)
6842 if test "$GCC" = yes; then
6843 _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'
6844 else
6845 _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'
6846 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6847 fi
6848 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6849 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6850 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6851 ;;
6852
6853 netbsd* | netbsdelf*-gnu)
6854 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6855 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6856 else
6857 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6858 fi
6859 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6860 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6861 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6862 ;;
6863
6864 newsos6)
6865 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6866 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6867 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6868 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6869 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6870 ;;
6871
6872 openbsd*)
6873 if test -f /usr/libexec/ld.so; then
6874 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6875 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6876 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6877 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6878 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6879 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6880 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6881 else
6882 case $host_os in
6883 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6884 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6885 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6886 ;;
6887 *)
6888 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6889 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6890 ;;
6891 esac
6892 fi
6893 else
6894 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6895 fi
6896 ;;
6897
6898 os2*)
6899 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6900 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6901 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6902 _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'
6903 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6904 ;;
6905
6906 osf3*)
6907 if test "$GCC" = yes; then
6908 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6909 _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'
6910 else
6911 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6912 _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'
6913 fi
6914 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6915 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6916 ;;
6917
6918 osf4* | osf5*) # as osf3* with the addition of -msym flag
6919 if test "$GCC" = yes; then
6920 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6921 _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'
6922 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6923 else
6924 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6925 _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'
6926 _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~
6927 $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'
6928
6929 # Both c and cxx compiler support -rpath directly
6930 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6931 fi
6932 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6933 ;;
6934
6935 solaris*)
6936 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6937 if test "$GCC" = yes; then
6938 wlarc='${wl}'
6939 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6940 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6941 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6942 else
6943 wlarc=''
6944 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6945 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6947 fi
6948 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6949 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6950 case $host_os in
6951 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6952 *)
6953 # The compiler driver will combine and reorder linker options,
6954 # but understands `-z linker_flag'. GCC discards it without `$wl',
6955 # but is careful enough not to reorder.
6956 # Supported since Solaris 2.6 (maybe 2.5.1?)
6957 if test "$GCC" = yes; then
6958 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6959 else
6960 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6961 fi
6962 ;;
6963 esac
6964 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6965 ;;
6966
6967 sunos4*)
6968 if test "x$host_vendor" = xsequent; then
6969 # Use $CC to link under sequent, because it throws in some extra .o
6970 # files that make .init and .fini sections work.
6971 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6972 else
6973 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6974 fi
6975 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6976 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6977 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6978 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6979 ;;
6980
6981 sysv4)
6982 case $host_vendor in
6983 sni)
6984 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6985 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6986 ;;
6987 siemens)
6988 ## LD is ld it makes a PLAMLIB
6989 ## CC just makes a GrossModule.
6990 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6991 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6992 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6993 ;;
6994 motorola)
6995 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6996 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6997 ;;
6998 esac
6999 runpath_var='LD_RUN_PATH'
7000 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7001 ;;
7002
7003 sysv4.3*)
7004 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7005 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7006 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7007 ;;
7008
7009 sysv4*MP*)
7010 if test -d /usr/nec; then
7011 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7012 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7013 runpath_var=LD_RUN_PATH
7014 hardcode_runpath_var=yes
7015 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7016 fi
7017 ;;
7018
7019 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7020 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7021 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7022 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7023 runpath_var='LD_RUN_PATH'
7024
7025 if test "$GCC" = yes; then
7026 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7027 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7028 else
7029 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7030 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7031 fi
7032 ;;
7033
7034 sysv5* | sco3.2v5* | sco5v6*)
7035 # Note: We can NOT use -z defs as we might desire, because we do not
7036 # link with -lc, and that would cause any symbols used from libc to
7037 # always be unresolved, which means just about no library would
7038 # ever link correctly. If we're not using GNU ld we use -z text
7039 # though, which does catch some bad symbols but isn't as heavy-handed
7040 # as -z defs.
7041 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7042 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7043 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7044 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7045 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7046 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7047 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7048 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7049 runpath_var='LD_RUN_PATH'
7050
7051 if test "$GCC" = yes; then
7052 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7053 _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'
7054 else
7055 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7056 _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'
7057 fi
7058 ;;
7059
7060 uts4*)
7061 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7062 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7063 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7064 ;;
7065
7066 *)
7067 _LT_AC_TAGVAR(ld_shlibs, $1)=no
7068 ;;
7069 esac
7070 fi
7071 ])
7072 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7073 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7074
7075 #
7076 # Do we need to explicitly link libc?
7077 #
7078 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7079 x|xyes)
7080 # Assume -lc should be added
7081 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7082
7083 if test "$enable_shared" = yes && test "$GCC" = yes; then
7084 case $_LT_AC_TAGVAR(archive_cmds, $1) in
7085 *'~'*)
7086 # FIXME: we may have to deal with multi-command sequences.
7087 ;;
7088 '$CC '*)
7089 # Test whether the compiler implicitly links with -lc since on some
7090 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7091 # to ld, don't add -lc before -lgcc.
7092 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7093 $rm conftest*
7094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7095
7096 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7097 soname=conftest
7098 lib=conftest
7099 libobjs=conftest.$ac_objext
7100 deplibs=
7101 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7102 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7103 compiler_flags=-v
7104 linker_flags=-v
7105 verstring=
7106 output_objdir=.
7107 libname=conftest
7108 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7109 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7110 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7111 then
7112 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7113 else
7114 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7115 fi
7116 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7117 else
7118 cat conftest.err 1>&5
7119 fi
7120 $rm conftest*
7121 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7122 ;;
7123 esac
7124 fi
7125 ;;
7126 esac
7127 ])# AC_LIBTOOL_PROG_LD_SHLIBS
7128
7129
7130 # _LT_AC_FILE_LTDLL_C
7131 # -------------------
7132 # Be careful that the start marker always follows a newline.
7133 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7134 # /* ltdll.c starts here */
7135 # #define WIN32_LEAN_AND_MEAN
7136 # #include <windows.h>
7137 # #undef WIN32_LEAN_AND_MEAN
7138 # #include <stdio.h>
7139 #
7140 # #ifndef __CYGWIN__
7141 # # ifdef __CYGWIN32__
7142 # # define __CYGWIN__ __CYGWIN32__
7143 # # endif
7144 # #endif
7145 #
7146 # #ifdef __cplusplus
7147 # extern "C" {
7148 # #endif
7149 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7150 # #ifdef __cplusplus
7151 # }
7152 # #endif
7153 #
7154 # #ifdef __CYGWIN__
7155 # #include <cygwin/cygwin_dll.h>
7156 # DECLARE_CYGWIN_DLL( DllMain );
7157 # #endif
7158 # HINSTANCE __hDllInstance_base;
7159 #
7160 # BOOL APIENTRY
7161 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7162 # {
7163 # __hDllInstance_base = hInst;
7164 # return TRUE;
7165 # }
7166 # /* ltdll.c ends here */
7167 ])# _LT_AC_FILE_LTDLL_C
7168
7169
7170 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7171 # ---------------------------------
7172 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7173
7174
7175 # old names
7176 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7177 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7178 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7179 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7180 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7181 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7182 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7183
7184 # This is just to silence aclocal about the macro not being used
7185 ifelse([AC_DISABLE_FAST_INSTALL])
7186
7187 AC_DEFUN([LT_AC_PROG_GCJ],
7188 [AC_CHECK_TOOL(GCJ, gcj, no)
7189 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7190 AC_SUBST(GCJFLAGS)
7191 ])
7192
7193 AC_DEFUN([LT_AC_PROG_RC],
7194 [AC_CHECK_TOOL(RC, windres, no)
7195 ])
7196
7197
7198 # Cheap backport of AS_EXECUTABLE_P and required macros
7199 # from Autoconf 2.59; we should not use $as_executable_p directly.
7200
7201 # _AS_TEST_PREPARE
7202 # ----------------
7203 m4_ifndef([_AS_TEST_PREPARE],
7204 [m4_defun([_AS_TEST_PREPARE],
7205 [if test -x / >/dev/null 2>&1; then
7206 as_executable_p='test -x'
7207 else
7208 as_executable_p='test -f'
7209 fi
7210 ])])# _AS_TEST_PREPARE
7211
7212 # AS_EXECUTABLE_P
7213 # ---------------
7214 # Check whether a file is executable.
7215 m4_ifndef([AS_EXECUTABLE_P],
7216 [m4_defun([AS_EXECUTABLE_P],
7217 [AS_REQUIRE([_AS_TEST_PREPARE])dnl
7218 $as_executable_p $1[]dnl
7219 ])])# AS_EXECUTABLE_P
7220
7221 # NOTE: This macro has been submitted for inclusion into #
7222 # GNU Autoconf as AC_PROG_SED. When it is available in #
7223 # a released version of Autoconf we should remove this #
7224 # macro and use it instead. #
7225 # LT_AC_PROG_SED
7226 # --------------
7227 # Check for a fully-functional sed program, that truncates
7228 # as few characters as possible. Prefer GNU sed if found.
7229 AC_DEFUN([LT_AC_PROG_SED],
7230 [AC_MSG_CHECKING([for a sed that does not truncate output])
7231 AC_CACHE_VAL(lt_cv_path_SED,
7232 [# Loop through the user's path and test for sed and gsed.
7233 # Then use that list of sed's as ones to test for truncation.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for lt_ac_prog in sed gsed; do
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7242 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7243 fi
7244 done
7245 done
7246 done
7247 IFS=$as_save_IFS
7248 lt_ac_max=0
7249 lt_ac_count=0
7250 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7251 # along with /bin/sed that truncates output.
7252 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7253 test ! -f $lt_ac_sed && continue
7254 cat /dev/null > conftest.in
7255 lt_ac_count=0
7256 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7257 # Check for GNU sed and select it if it is found.
7258 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7259 lt_cv_path_SED=$lt_ac_sed
7260 break
7261 fi
7262 while true; do
7263 cat conftest.in conftest.in >conftest.tmp
7264 mv conftest.tmp conftest.in
7265 cp conftest.in conftest.nl
7266 echo >>conftest.nl
7267 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7268 cmp -s conftest.out conftest.nl || break
7269 # 10000 chars as input seems more than enough
7270 test $lt_ac_count -gt 10 && break
7271 lt_ac_count=`expr $lt_ac_count + 1`
7272 if test $lt_ac_count -gt $lt_ac_max; then
7273 lt_ac_max=$lt_ac_count
7274 lt_cv_path_SED=$lt_ac_sed
7275 fi
7276 done
7277 done
7278 ])
7279 SED=$lt_cv_path_SED
7280 AC_SUBST([SED])
7281 AC_MSG_RESULT([$SED])
7282 ])
7283
7284 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7285 #
7286 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
7287 #
7288 # This program is free software; you can redistribute it and/or modify
7289 # it under the terms of the GNU General Public License as published by
7290 # the Free Software Foundation; either version 2 of the License, or
7291 # (at your option) any later version.
7292 #
7293 # This program is distributed in the hope that it will be useful, but
7294 # WITHOUT ANY WARRANTY; without even the implied warranty of
7295 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7296 # General Public License for more details.
7297 #
7298 # You should have received a copy of the GNU General Public License
7299 # along with this program; if not, write to the Free Software
7300 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7301 #
7302 # As a special exception to the GNU General Public License, if you
7303 # distribute this file as part of a program that contains a
7304 # configuration script generated by Autoconf, you may include it under
7305 # the same distribution terms that you use for the rest of that program.
7306
7307 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
7308 # ----------------------------------
7309 AC_DEFUN([PKG_PROG_PKG_CONFIG],
7310 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
7311 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
7312 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
7313 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7314 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7315 fi
7316 if test -n "$PKG_CONFIG"; then
7317 _pkg_min_version=m4_default([$1], [0.9.0])
7318 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7319 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7320 AC_MSG_RESULT([yes])
7321 else
7322 AC_MSG_RESULT([no])
7323 PKG_CONFIG=""
7324 fi
7325
7326 fi[]dnl
7327 ])# PKG_PROG_PKG_CONFIG
7328
7329 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7330 #
7331 # Check to see whether a particular set of modules exists. Similar
7332 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
7333 #
7334 #
7335 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
7336 # this or PKG_CHECK_MODULES is called, or make sure to call
7337 # PKG_CHECK_EXISTS manually
7338 # --------------------------------------------------------------
7339 AC_DEFUN([PKG_CHECK_EXISTS],
7340 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7341 if test -n "$PKG_CONFIG" && \
7342 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
7343 m4_ifval([$2], [$2], [:])
7344 m4_ifvaln([$3], [else
7345 $3])dnl
7346 fi])
7347
7348
7349 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7350 # ---------------------------------------------
7351 m4_define([_PKG_CONFIG],
7352 [if test -n "$PKG_CONFIG"; then
7353 if test -n "$$1"; then
7354 pkg_cv_[]$1="$$1"
7355 else
7356 PKG_CHECK_EXISTS([$3],
7357 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7358 [pkg_failed=yes])
7359 fi
7360 else
7361 pkg_failed=untried
7362 fi[]dnl
7363 ])# _PKG_CONFIG
7364
7365 # _PKG_SHORT_ERRORS_SUPPORTED
7366 # -----------------------------
7367 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
7368 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
7369 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7370 _pkg_short_errors_supported=yes
7371 else
7372 _pkg_short_errors_supported=no
7373 fi[]dnl
7374 ])# _PKG_SHORT_ERRORS_SUPPORTED
7375
7376
7377 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
7378 # [ACTION-IF-NOT-FOUND])
7379 #
7380 #
7381 # Note that if there is a possibility the first call to
7382 # PKG_CHECK_MODULES might not happen, you should be sure to include an
7383 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
7384 #
7385 #
7386 # --------------------------------------------------------------
7387 AC_DEFUN([PKG_CHECK_MODULES],
7388 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7389 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
7390 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
7391
7392 pkg_failed=no
7393 AC_MSG_CHECKING([for $1])
7394
7395 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
7396 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
7397
7398 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
7399 and $1[]_LIBS to avoid the need to call pkg-config.
7400 See the pkg-config man page for more details.])
7401
7402 if test $pkg_failed = yes; then
7403 _PKG_SHORT_ERRORS_SUPPORTED
7404 if test $_pkg_short_errors_supported = yes; then
7405 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
7406 else
7407 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7408 fi
7409 # Put the nasty error message in config.log where it belongs
7410 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7411
7412 ifelse([$4], , [AC_MSG_ERROR(dnl
7413 [Package requirements ($2) were not met:
7414
7415 $$1_PKG_ERRORS
7416
7417 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7418 installed software in a non-standard prefix.
7419
7420 _PKG_TEXT
7421 ])],
7422 [AC_MSG_RESULT([no])
7423 $4])
7424 elif test $pkg_failed = untried; then
7425 ifelse([$4], , [AC_MSG_FAILURE(dnl
7426 [The pkg-config script could not be found or is too old. Make sure it
7427 is in your PATH or set the PKG_CONFIG environment variable to the full
7428 path to pkg-config.
7429
7430 _PKG_TEXT
7431
7432 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
7433 [$4])
7434 else
7435 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7436 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
7437 AC_MSG_RESULT([yes])
7438 ifelse([$3], , :, [$3])
7439 fi[]dnl
7440 ])# PKG_CHECK_MODULES
7441
7442 # Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
7443 #
7444 # This file is free software; the Free Software Foundation
7445 # gives unlimited permission to copy and/or distribute it,
7446 # with or without modifications, as long as this notice is preserved.
7447
7448 # AM_AUTOMAKE_VERSION(VERSION)
7449 # ----------------------------
7450 # Automake X.Y traces this macro to ensure aclocal.m4 has been
7451 # generated from the m4 files accompanying Automake X.Y.
7452 # (This private macro should not be called outside this file.)
7453 AC_DEFUN([AM_AUTOMAKE_VERSION],
7454 [am__api_version='1.10'
7455 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7456 dnl require some minimum version. Point them to the right macro.
7457 m4_if([$1], [1.10.1], [],
7458 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7459 ])
7460
7461 # _AM_AUTOCONF_VERSION(VERSION)
7462 # -----------------------------
7463 # aclocal traces this macro to find the Autoconf version.
7464 # This is a private macro too. Using m4_define simplifies
7465 # the logic in aclocal, which can simply ignore this definition.
7466 m4_define([_AM_AUTOCONF_VERSION], [])
7467
7468 # AM_SET_CURRENT_AUTOMAKE_VERSION
7469 # -------------------------------
7470 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
7471 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
7472 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7473 [AM_AUTOMAKE_VERSION([1.10.1])dnl
7474 m4_ifndef([AC_AUTOCONF_VERSION],
7475 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
7476 _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
7477
7478 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
7479
7480 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7481 #
7482 # This file is free software; the Free Software Foundation
7483 # gives unlimited permission to copy and/or distribute it,
7484 # with or without modifications, as long as this notice is preserved.
7485
7486 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
7487 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
7488 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
7489 #
7490 # Of course, Automake must honor this variable whenever it calls a
7491 # tool from the auxiliary directory. The problem is that $srcdir (and
7492 # therefore $ac_aux_dir as well) can be either absolute or relative,
7493 # depending on how configure is run. This is pretty annoying, since
7494 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
7495 # source directory, any form will work fine, but in subdirectories a
7496 # relative path needs to be adjusted first.
7497 #
7498 # $ac_aux_dir/missing
7499 # fails when called from a subdirectory if $ac_aux_dir is relative
7500 # $top_srcdir/$ac_aux_dir/missing
7501 # fails if $ac_aux_dir is absolute,
7502 # fails when called from a subdirectory in a VPATH build with
7503 # a relative $ac_aux_dir
7504 #
7505 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
7506 # are both prefixed by $srcdir. In an in-source build this is usually
7507 # harmless because $srcdir is `.', but things will broke when you
7508 # start a VPATH build or use an absolute $srcdir.
7509 #
7510 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
7511 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
7512 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
7513 # and then we would define $MISSING as
7514 # MISSING="\${SHELL} $am_aux_dir/missing"
7515 # This will work as long as MISSING is not called from configure, because
7516 # unfortunately $(top_srcdir) has no meaning in configure.
7517 # However there are other variables, like CC, which are often used in
7518 # configure, and could therefore not use this "fixed" $ac_aux_dir.
7519 #
7520 # Another solution, used here, is to always expand $ac_aux_dir to an
7521 # absolute PATH. The drawback is that using absolute paths prevent a
7522 # configured tree to be moved without reconfiguration.
7523
7524 AC_DEFUN([AM_AUX_DIR_EXPAND],
7525 [dnl Rely on autoconf to set up CDPATH properly.
7526 AC_PREREQ([2.50])dnl
7527 # expand $ac_aux_dir to an absolute path
7528 am_aux_dir=`cd $ac_aux_dir && pwd`
7529 ])
7530
7531 # AM_CONDITIONAL -*- Autoconf -*-
7532
7533 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7534 # Free Software Foundation, Inc.
7535 #
7536 # This file is free software; the Free Software Foundation
7537 # gives unlimited permission to copy and/or distribute it,
7538 # with or without modifications, as long as this notice is preserved.
7539
7540 # serial 8
7541
7542 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
7543 # -------------------------------------
7544 # Define a conditional.
7545 AC_DEFUN([AM_CONDITIONAL],
7546 [AC_PREREQ(2.52)dnl
7547 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
7548 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7549 AC_SUBST([$1_TRUE])dnl
7550 AC_SUBST([$1_FALSE])dnl
7551 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
7552 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
7553 if $2; then
7554 $1_TRUE=
7555 $1_FALSE='#'
7556 else
7557 $1_TRUE='#'
7558 $1_FALSE=
7559 fi
7560 AC_CONFIG_COMMANDS_PRE(
7561 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
7562 AC_MSG_ERROR([[conditional "$1" was never defined.
7563 Usually this means the macro was only invoked conditionally.]])
7564 fi])])
7565
7566 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7567 # Free Software Foundation, Inc.
7568 #
7569 # This file is free software; the Free Software Foundation
7570 # gives unlimited permission to copy and/or distribute it,
7571 # with or without modifications, as long as this notice is preserved.
7572
7573 # serial 9
7574
7575 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7576 # written in clear, in which case automake, when reading aclocal.m4,
7577 # will think it sees a *use*, and therefore will trigger all it's
7578 # C support machinery. Also note that it means that autoscan, seeing
7579 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
7580
7581
7582 # _AM_DEPENDENCIES(NAME)
7583 # ----------------------
7584 # See how the compiler implements dependency checking.
7585 # NAME is "CC", "CXX", "GCJ", or "OBJC".
7586 # We try a few techniques and use that to set a single cache variable.
7587 #
7588 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
7589 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
7590 # dependency, and given that the user is not expected to run this macro,
7591 # just rely on AC_PROG_CC.
7592 AC_DEFUN([_AM_DEPENDENCIES],
7593 [AC_REQUIRE([AM_SET_DEPDIR])dnl
7594 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
7595 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
7596 AC_REQUIRE([AM_DEP_TRACK])dnl
7597
7598 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
7599 [$1], CXX, [depcc="$CXX" am_compiler_list=],
7600 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
7601 [$1], UPC, [depcc="$UPC" am_compiler_list=],
7602 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
7603 [depcc="$$1" am_compiler_list=])
7604
7605 AC_CACHE_CHECK([dependency style of $depcc],
7606 [am_cv_$1_dependencies_compiler_type],
7607 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7608 # We make a subdir and do the tests there. Otherwise we can end up
7609 # making bogus files that we don't know about and never remove. For
7610 # instance it was reported that on HP-UX the gcc test will end up
7611 # making a dummy file named `D' -- because `-MD' means `put the output
7612 # in D'.
7613 mkdir conftest.dir
7614 # Copy depcomp to subdir because otherwise we won't find it if we're
7615 # using a relative directory.
7616 cp "$am_depcomp" conftest.dir
7617 cd conftest.dir
7618 # We will build objects and dependencies in a subdirectory because
7619 # it helps to detect inapplicable dependency modes. For instance
7620 # both Tru64's cc and ICC support -MD to output dependencies as a
7621 # side effect of compilation, but ICC will put the dependencies in
7622 # the current directory while Tru64 will put them in the object
7623 # directory.
7624 mkdir sub
7625
7626 am_cv_$1_dependencies_compiler_type=none
7627 if test "$am_compiler_list" = ""; then
7628 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
7629 fi
7630 for depmode in $am_compiler_list; do
7631 # Setup a source with many dependencies, because some compilers
7632 # like to wrap large dependency lists on column 80 (with \), and
7633 # we should not choose a depcomp mode which is confused by this.
7634 #
7635 # We need to recreate these files for each test, as the compiler may
7636 # overwrite some of them when testing with obscure command lines.
7637 # This happens at least with the AIX C compiler.
7638 : > sub/conftest.c
7639 for i in 1 2 3 4 5 6; do
7640 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7641 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7642 # Solaris 8's {/usr,}/bin/sh.
7643 touch sub/conftst$i.h
7644 done
7645 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7646
7647 case $depmode in
7648 nosideeffect)
7649 # after this tag, mechanisms are not by side-effect, so they'll
7650 # only be used when explicitly requested
7651 if test "x$enable_dependency_tracking" = xyes; then
7652 continue
7653 else
7654 break
7655 fi
7656 ;;
7657 none) break ;;
7658 esac
7659 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7660 # mode. It turns out that the SunPro C++ compiler does not properly
7661 # handle `-M -o', and we need to detect this.
7662 if depmode=$depmode \
7663 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7665 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7666 >/dev/null 2>conftest.err &&
7667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7669 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7671 # icc doesn't choke on unknown options, it will just issue warnings
7672 # or remarks (even with -Werror). So we grep stderr for any message
7673 # that says an option was ignored or not supported.
7674 # When given -MP, icc 7.0 and 7.1 complain thusly:
7675 # icc: Command line warning: ignoring option '-M'; no argument required
7676 # The diagnosis changed in icc 8.0:
7677 # icc: Command line remark: option '-MP' not supported
7678 if (grep 'ignoring option' conftest.err ||
7679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7680 am_cv_$1_dependencies_compiler_type=$depmode
7681 break
7682 fi
7683 fi
7684 done
7685
7686 cd ..
7687 rm -rf conftest.dir
7688 else
7689 am_cv_$1_dependencies_compiler_type=none
7690 fi
7691 ])
7692 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
7693 AM_CONDITIONAL([am__fastdep$1], [
7694 test "x$enable_dependency_tracking" != xno \
7695 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
7696 ])
7697
7698
7699 # AM_SET_DEPDIR
7700 # -------------
7701 # Choose a directory name for dependency files.
7702 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
7703 AC_DEFUN([AM_SET_DEPDIR],
7704 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7705 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
7706 ])
7707
7708
7709 # AM_DEP_TRACK
7710 # ------------
7711 AC_DEFUN([AM_DEP_TRACK],
7712 [AC_ARG_ENABLE(dependency-tracking,
7713 [ --disable-dependency-tracking speeds up one-time build
7714 --enable-dependency-tracking do not reject slow dependency extractors])
7715 if test "x$enable_dependency_tracking" != xno; then
7716 am_depcomp="$ac_aux_dir/depcomp"
7717 AMDEPBACKSLASH='\'
7718 fi
7719 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7720 AC_SUBST([AMDEPBACKSLASH])dnl
7721 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
7722 ])
7723
7724 # Generate code to set up dependency tracking. -*- Autoconf -*-
7725
7726 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7727 # Free Software Foundation, Inc.
7728 #
7729 # This file is free software; the Free Software Foundation
7730 # gives unlimited permission to copy and/or distribute it,
7731 # with or without modifications, as long as this notice is preserved.
7732
7733 #serial 3
7734
7735 # _AM_OUTPUT_DEPENDENCY_COMMANDS
7736 # ------------------------------
7737 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7738 [for mf in $CONFIG_FILES; do
7739 # Strip MF so we end up with the name of the file.
7740 mf=`echo "$mf" | sed -e 's/:.*$//'`
7741 # Check whether this is an Automake generated Makefile or not.
7742 # We used to match only the files named `Makefile.in', but
7743 # some people rename them; so instead we look at the file content.
7744 # Grep'ing the first line is not enough: some people post-process
7745 # each Makefile.in and add a new line on top of each file to say so.
7746 # Grep'ing the whole file is not good either: AIX grep has a line
7747 # limit of 2048, but all sed's we know have understand at least 4000.
7748 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7749 dirpart=`AS_DIRNAME("$mf")`
7750 else
7751 continue
7752 fi
7753 # Extract the definition of DEPDIR, am__include, and am__quote
7754 # from the Makefile without running `make'.
7755 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7756 test -z "$DEPDIR" && continue
7757 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7758 test -z "am__include" && continue
7759 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7760 # When using ansi2knr, U may be empty or an underscore; expand it
7761 U=`sed -n 's/^U = //p' < "$mf"`
7762 # Find all dependency output files, they are included files with
7763 # $(DEPDIR) in their names. We invoke sed twice because it is the
7764 # simplest approach to changing $(DEPDIR) to its actual value in the
7765 # expansion.
7766 for file in `sed -n "
7767 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7768 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7769 # Make sure the directory exists.
7770 test -f "$dirpart/$file" && continue
7771 fdir=`AS_DIRNAME(["$file"])`
7772 AS_MKDIR_P([$dirpart/$fdir])
7773 # echo "creating $dirpart/$file"
7774 echo '# dummy' > "$dirpart/$file"
7775 done
7776 done
7777 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7778
7779
7780 # AM_OUTPUT_DEPENDENCY_COMMANDS
7781 # -----------------------------
7782 # This macro should only be invoked once -- use via AC_REQUIRE.
7783 #
7784 # This code is only required when automatic dependency tracking
7785 # is enabled. FIXME. This creates each `.P' file that we will
7786 # need in order to bootstrap the dependency handling code.
7787 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7788 [AC_CONFIG_COMMANDS([depfiles],
7789 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7790 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7791 ])
7792
7793 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7794 # Free Software Foundation, Inc.
7795 #
7796 # This file is free software; the Free Software Foundation
7797 # gives unlimited permission to copy and/or distribute it,
7798 # with or without modifications, as long as this notice is preserved.
7799
7800 # serial 8
7801
7802 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
7803 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7804
7805 # Do all the work for Automake. -*- Autoconf -*-
7806
7807 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7808 # 2005, 2006, 2008 Free Software Foundation, Inc.
7809 #
7810 # This file is free software; the Free Software Foundation
7811 # gives unlimited permission to copy and/or distribute it,
7812 # with or without modifications, as long as this notice is preserved.
7813
7814 # serial 13
7815
7816 # This macro actually does too much. Some checks are only needed if
7817 # your package does certain things. But this isn't really a big deal.
7818
7819 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7820 # AM_INIT_AUTOMAKE([OPTIONS])
7821 # -----------------------------------------------
7822 # The call with PACKAGE and VERSION arguments is the old style
7823 # call (pre autoconf-2.50), which is being phased out. PACKAGE
7824 # and VERSION should now be passed to AC_INIT and removed from
7825 # the call to AM_INIT_AUTOMAKE.
7826 # We support both call styles for the transition. After
7827 # the next Automake release, Autoconf can make the AC_INIT
7828 # arguments mandatory, and then we can depend on a new Autoconf
7829 # release and drop the old call support.
7830 AC_DEFUN([AM_INIT_AUTOMAKE],
7831 [AC_PREREQ([2.60])dnl
7832 dnl Autoconf wants to disallow AM_ names. We explicitly allow
7833 dnl the ones we care about.
7834 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7835 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7836 AC_REQUIRE([AC_PROG_INSTALL])dnl
7837 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7838 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7839 # is not polluted with repeated "-I."
7840 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7841 # test to see if srcdir already configured
7842 if test -f $srcdir/config.status; then
7843 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7844 fi
7845 fi
7846
7847 # test whether we have cygpath
7848 if test -z "$CYGPATH_W"; then
7849 if (cygpath --version) >/dev/null 2>/dev/null; then
7850 CYGPATH_W='cygpath -w'
7851 else
7852 CYGPATH_W=echo
7853 fi
7854 fi
7855 AC_SUBST([CYGPATH_W])
7856
7857 # Define the identity of the package.
7858 dnl Distinguish between old-style and new-style calls.
7859 m4_ifval([$2],
7860 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7861 AC_SUBST([PACKAGE], [$1])dnl
7862 AC_SUBST([VERSION], [$2])],
7863 [_AM_SET_OPTIONS([$1])dnl
7864 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7865 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7866 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7867 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7868 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7869
7870 _AM_IF_OPTION([no-define],,
7871 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7872 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7873
7874 # Some tools Automake needs.
7875 AC_REQUIRE([AM_SANITY_CHECK])dnl
7876 AC_REQUIRE([AC_ARG_PROGRAM])dnl
7877 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7878 AM_MISSING_PROG(AUTOCONF, autoconf)
7879 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7880 AM_MISSING_PROG(AUTOHEADER, autoheader)
7881 AM_MISSING_PROG(MAKEINFO, makeinfo)
7882 AM_PROG_INSTALL_SH
7883 AM_PROG_INSTALL_STRIP
7884 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7885 # We need awk for the "check" target. The system "awk" is bad on
7886 # some platforms.
7887 AC_REQUIRE([AC_PROG_AWK])dnl
7888 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7889 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7890 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7891 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7892 [_AM_PROG_TAR([v7])])])
7893 _AM_IF_OPTION([no-dependencies],,
7894 [AC_PROVIDE_IFELSE([AC_PROG_CC],
7895 [_AM_DEPENDENCIES(CC)],
7896 [define([AC_PROG_CC],
7897 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7898 AC_PROVIDE_IFELSE([AC_PROG_CXX],
7899 [_AM_DEPENDENCIES(CXX)],
7900 [define([AC_PROG_CXX],
7901 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7902 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7903 [_AM_DEPENDENCIES(OBJC)],
7904 [define([AC_PROG_OBJC],
7905 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7906 ])
7907 ])
7908
7909
7910 # When config.status generates a header, we must update the stamp-h file.
7911 # This file resides in the same directory as the config header
7912 # that is generated. The stamp files are numbered to have different names.
7913
7914 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7915 # loop where config.status creates the headers, so we can generate
7916 # our stamp files there.
7917 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7918 [# Compute $1's index in $config_headers.
7919 _am_arg=$1
7920 _am_stamp_count=1
7921 for _am_header in $config_headers :; do
7922 case $_am_header in
7923 $_am_arg | $_am_arg:* )
7924 break ;;
7925 * )
7926 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7927 esac
7928 done
7929 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7930
7931 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7932 #
7933 # This file is free software; the Free Software Foundation
7934 # gives unlimited permission to copy and/or distribute it,
7935 # with or without modifications, as long as this notice is preserved.
7936
7937 # AM_PROG_INSTALL_SH
7938 # ------------------
7939 # Define $install_sh.
7940 AC_DEFUN([AM_PROG_INSTALL_SH],
7941 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7942 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7943 AC_SUBST(install_sh)])
7944
7945 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7946 #
7947 # This file is free software; the Free Software Foundation
7948 # gives unlimited permission to copy and/or distribute it,
7949 # with or without modifications, as long as this notice is preserved.
7950
7951 # serial 2
7952
7953 # Check whether the underlying file-system supports filenames
7954 # with a leading dot. For instance MS-DOS doesn't.
7955 AC_DEFUN([AM_SET_LEADING_DOT],
7956 [rm -rf .tst 2>/dev/null
7957 mkdir .tst 2>/dev/null
7958 if test -d .tst; then
7959 am__leading_dot=.
7960 else
7961 am__leading_dot=_
7962 fi
7963 rmdir .tst 2>/dev/null
7964 AC_SUBST([am__leading_dot])])
7965
7966 # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005
7967 # Free Software Foundation, Inc.
7968 #
7969 # This file is free software; the Free Software Foundation
7970 # gives unlimited permission to copy and/or distribute it,
7971 # with or without modifications, as long as this notice is preserved.
7972
7973 # serial 5
7974
7975 # AM_PROG_LEX
7976 # -----------
7977 # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
7978 # "missing" invocation, for better error output.
7979 AC_DEFUN([AM_PROG_LEX],
7980 [AC_PREREQ(2.50)dnl
7981 AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
7982 AC_REQUIRE([AC_PROG_LEX])dnl
7983 if test "$LEX" = :; then
7984 LEX=${am_missing_run}flex
7985 fi])
7986
7987 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
7988 # From Jim Meyering
7989
7990 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
7991 # Free Software Foundation, Inc.
7992 #
7993 # This file is free software; the Free Software Foundation
7994 # gives unlimited permission to copy and/or distribute it,
7995 # with or without modifications, as long as this notice is preserved.
7996
7997 # serial 4
7998
7999 AC_DEFUN([AM_MAINTAINER_MODE],
8000 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8001 dnl maintainer-mode is disabled by default
8002 AC_ARG_ENABLE(maintainer-mode,
8003 [ --enable-maintainer-mode enable make rules and dependencies not useful
8004 (and sometimes confusing) to the casual installer],
8005 USE_MAINTAINER_MODE=$enableval,
8006 USE_MAINTAINER_MODE=no)
8007 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
8008 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
8009 MAINT=$MAINTAINER_MODE_TRUE
8010 AC_SUBST(MAINT)dnl
8011 ]
8012 )
8013
8014 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8015
8016 # Check to see how 'make' treats includes. -*- Autoconf -*-
8017
8018 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8019 #
8020 # This file is free software; the Free Software Foundation
8021 # gives unlimited permission to copy and/or distribute it,
8022 # with or without modifications, as long as this notice is preserved.
8023
8024 # serial 3
8025
8026 # AM_MAKE_INCLUDE()
8027 # -----------------
8028 # Check to see how make treats includes.
8029 AC_DEFUN([AM_MAKE_INCLUDE],
8030 [am_make=${MAKE-make}
8031 cat > confinc << 'END'
8032 am__doit:
8033 @echo done
8034 .PHONY: am__doit
8035 END
8036 # If we don't find an include directive, just comment out the code.
8037 AC_MSG_CHECKING([for style of include used by $am_make])
8038 am__include="#"
8039 am__quote=
8040 _am_result=none
8041 # First try GNU make style include.
8042 echo "include confinc" > confmf
8043 # We grep out `Entering directory' and `Leaving directory'
8044 # messages which can occur if `w' ends up in MAKEFLAGS.
8045 # In particular we don't look at `^make:' because GNU make might
8046 # be invoked under some other name (usually "gmake"), in which
8047 # case it prints its new name instead of `make'.
8048 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8049 am__include=include
8050 am__quote=
8051 _am_result=GNU
8052 fi
8053 # Now try BSD make style include.
8054 if test "$am__include" = "#"; then
8055 echo '.include "confinc"' > confmf
8056 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8057 am__include=.include
8058 am__quote="\""
8059 _am_result=BSD
8060 fi
8061 fi
8062 AC_SUBST([am__include])
8063 AC_SUBST([am__quote])
8064 AC_MSG_RESULT([$_am_result])
8065 rm -f confinc confmf
8066 ])
8067
8068 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
8069
8070 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
8071 # Free Software Foundation, Inc.
8072 #
8073 # This file is free software; the Free Software Foundation
8074 # gives unlimited permission to copy and/or distribute it,
8075 # with or without modifications, as long as this notice is preserved.
8076
8077 # serial 5
8078
8079 # AM_MISSING_PROG(NAME, PROGRAM)
8080 # ------------------------------
8081 AC_DEFUN([AM_MISSING_PROG],
8082 [AC_REQUIRE([AM_MISSING_HAS_RUN])
8083 $1=${$1-"${am_missing_run}$2"}
8084 AC_SUBST($1)])
8085
8086
8087 # AM_MISSING_HAS_RUN
8088 # ------------------
8089 # Define MISSING if not defined so far and test if it supports --run.
8090 # If it does, set am_missing_run to use it, otherwise, to nothing.
8091 AC_DEFUN([AM_MISSING_HAS_RUN],
8092 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8093 AC_REQUIRE_AUX_FILE([missing])dnl
8094 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8095 # Use eval to expand $SHELL
8096 if eval "$MISSING --run true"; then
8097 am_missing_run="$MISSING --run "
8098 else
8099 am_missing_run=
8100 AC_MSG_WARN([`missing' script is too old or missing])
8101 fi
8102 ])
8103
8104 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8105 #
8106 # This file is free software; the Free Software Foundation
8107 # gives unlimited permission to copy and/or distribute it,
8108 # with or without modifications, as long as this notice is preserved.
8109
8110 # AM_PROG_MKDIR_P
8111 # ---------------
8112 # Check for `mkdir -p'.
8113 AC_DEFUN([AM_PROG_MKDIR_P],
8114 [AC_PREREQ([2.60])dnl
8115 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8116 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
8117 dnl while keeping a definition of mkdir_p for backward compatibility.
8118 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
8119 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
8120 dnl Makefile.ins that do not define MKDIR_P, so we do our own
8121 dnl adjustment using top_builddir (which is defined more often than
8122 dnl MKDIR_P).
8123 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
8124 case $mkdir_p in
8125 [[\\/$]]* | ?:[[\\/]]*) ;;
8126 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8127 esac
8128 ])
8129
8130 # Helper functions for option handling. -*- Autoconf -*-
8131
8132 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8133 #
8134 # This file is free software; the Free Software Foundation
8135 # gives unlimited permission to copy and/or distribute it,
8136 # with or without modifications, as long as this notice is preserved.
8137
8138 # serial 3
8139
8140 # _AM_MANGLE_OPTION(NAME)
8141 # -----------------------
8142 AC_DEFUN([_AM_MANGLE_OPTION],
8143 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8144
8145 # _AM_SET_OPTION(NAME)
8146 # ------------------------------
8147 # Set option NAME. Presently that only means defining a flag for this option.
8148 AC_DEFUN([_AM_SET_OPTION],
8149 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8150
8151 # _AM_SET_OPTIONS(OPTIONS)
8152 # ----------------------------------
8153 # OPTIONS is a space-separated list of Automake options.
8154 AC_DEFUN([_AM_SET_OPTIONS],
8155 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8156
8157 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8158 # -------------------------------------------
8159 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8160 AC_DEFUN([_AM_IF_OPTION],
8161 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8162
8163 # Check to make sure that the build environment is sane. -*- Autoconf -*-
8164
8165 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
8166 # Free Software Foundation, Inc.
8167 #
8168 # This file is free software; the Free Software Foundation
8169 # gives unlimited permission to copy and/or distribute it,
8170 # with or without modifications, as long as this notice is preserved.
8171
8172 # serial 4
8173
8174 # AM_SANITY_CHECK
8175 # ---------------
8176 AC_DEFUN([AM_SANITY_CHECK],
8177 [AC_MSG_CHECKING([whether build environment is sane])
8178 # Just in case
8179 sleep 1
8180 echo timestamp > conftest.file
8181 # Do `set' in a subshell so we don't clobber the current shell's
8182 # arguments. Must try -L first in case configure is actually a
8183 # symlink; some systems play weird games with the mod time of symlinks
8184 # (eg FreeBSD returns the mod time of the symlink's containing
8185 # directory).
8186 if (
8187 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8188 if test "$[*]" = "X"; then
8189 # -L didn't work.
8190 set X `ls -t $srcdir/configure conftest.file`
8191 fi
8192 rm -f conftest.file
8193 if test "$[*]" != "X $srcdir/configure conftest.file" \
8194 && test "$[*]" != "X conftest.file $srcdir/configure"; then
8195
8196 # If neither matched, then we have a broken ls. This can happen
8197 # if, for instance, CONFIG_SHELL is bash and it inherits a
8198 # broken ls alias from the environment. This has actually
8199 # happened. Such a system could not be considered "sane".
8200 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8201 alias in your environment])
8202 fi
8203
8204 test "$[2]" = conftest.file
8205 )
8206 then
8207 # Ok.
8208 :
8209 else
8210 AC_MSG_ERROR([newly created file is older than distributed files!
8211 Check your system clock])
8212 fi
8213 AC_MSG_RESULT(yes)])
8214
8215 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8216 #
8217 # This file is free software; the Free Software Foundation
8218 # gives unlimited permission to copy and/or distribute it,
8219 # with or without modifications, as long as this notice is preserved.
8220
8221 # AM_PROG_INSTALL_STRIP
8222 # ---------------------
8223 # One issue with vendor `install' (even GNU) is that you can't
8224 # specify the program used to strip binaries. This is especially
8225 # annoying in cross-compiling environments, where the build's strip
8226 # is unlikely to handle the host's binaries.
8227 # Fortunately install-sh will honor a STRIPPROG variable, so we
8228 # always use install-sh in `make install-strip', and initialize
8229 # STRIPPROG with the value of the STRIP variable (set by the user).
8230 AC_DEFUN([AM_PROG_INSTALL_STRIP],
8231 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8232 # Installed binaries are usually stripped using `strip' when the user
8233 # run `make install-strip'. However `strip' might not be the right
8234 # tool to use in cross-compilation environments, therefore Automake
8235 # will honor the `STRIP' environment variable to overrule this program.
8236 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
8237 if test "$cross_compiling" != no; then
8238 AC_CHECK_TOOL([STRIP], [strip], :)
8239 fi
8240 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8241 AC_SUBST([INSTALL_STRIP_PROGRAM])])
8242
8243 # Copyright (C) 2006 Free Software Foundation, Inc.
8244 #
8245 # This file is free software; the Free Software Foundation
8246 # gives unlimited permission to copy and/or distribute it,
8247 # with or without modifications, as long as this notice is preserved.
8248
8249 # _AM_SUBST_NOTMAKE(VARIABLE)
8250 # ---------------------------
8251 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
8252 # This macro is traced by Automake.
8253 AC_DEFUN([_AM_SUBST_NOTMAKE])
8254
8255 # Check how to create a tarball. -*- Autoconf -*-
8256
8257 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
8258 #
8259 # This file is free software; the Free Software Foundation
8260 # gives unlimited permission to copy and/or distribute it,
8261 # with or without modifications, as long as this notice is preserved.
8262
8263 # serial 2
8264
8265 # _AM_PROG_TAR(FORMAT)
8266 # --------------------
8267 # Check how to create a tarball in format FORMAT.
8268 # FORMAT should be one of `v7', `ustar', or `pax'.
8269 #
8270 # Substitute a variable $(am__tar) that is a command
8271 # writing to stdout a FORMAT-tarball containing the directory
8272 # $tardir.
8273 # tardir=directory && $(am__tar) > result.tar
8274 #
8275 # Substitute a variable $(am__untar) that extract such
8276 # a tarball read from stdin.
8277 # $(am__untar) < result.tar
8278 AC_DEFUN([_AM_PROG_TAR],
8279 [# Always define AMTAR for backward compatibility.
8280 AM_MISSING_PROG([AMTAR], [tar])
8281 m4_if([$1], [v7],
8282 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8283 [m4_case([$1], [ustar],, [pax],,
8284 [m4_fatal([Unknown tar format])])
8285 AC_MSG_CHECKING([how to create a $1 tar archive])
8286 # Loop over all known methods to create a tar archive until one works.
8287 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8288 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
8289 # Do not fold the above two line into one, because Tru64 sh and
8290 # Solaris sh will not grok spaces in the rhs of `-'.
8291 for _am_tool in $_am_tools
8292 do
8293 case $_am_tool in
8294 gnutar)
8295 for _am_tar in tar gnutar gtar;
8296 do
8297 AM_RUN_LOG([$_am_tar --version]) && break
8298 done
8299 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8300 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8301 am__untar="$_am_tar -xf -"
8302 ;;
8303 plaintar)
8304 # Must skip GNU tar: if it does not support --format= it doesn't create
8305 # ustar tarball either.
8306 (tar --version) >/dev/null 2>&1 && continue
8307 am__tar='tar chf - "$$tardir"'
8308 am__tar_='tar chf - "$tardir"'
8309 am__untar='tar xf -'
8310 ;;
8311 pax)
8312 am__tar='pax -L -x $1 -w "$$tardir"'
8313 am__tar_='pax -L -x $1 -w "$tardir"'
8314 am__untar='pax -r'
8315 ;;
8316 cpio)
8317 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8318 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8319 am__untar='cpio -i -H $1 -d'
8320 ;;
8321 none)
8322 am__tar=false
8323 am__tar_=false
8324 am__untar=false
8325 ;;
8326 esac
8327
8328 # If the value was cached, stop now. We just wanted to have am__tar
8329 # and am__untar set.
8330 test -n "${am_cv_prog_tar_$1}" && break
8331
8332 # tar/untar a dummy directory, and stop if the command works
8333 rm -rf conftest.dir
8334 mkdir conftest.dir
8335 echo GrepMe > conftest.dir/file
8336 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8337 rm -rf conftest.dir
8338 if test -s conftest.tar; then
8339 AM_RUN_LOG([$am__untar <conftest.tar])
8340 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8341 fi
8342 done
8343 rm -rf conftest.dir
8344
8345 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8346 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8347 AC_SUBST([am__tar])
8348 AC_SUBST([am__untar])
8349 ]) # _AM_PROG_TAR
8350
8351 m4_include([acinclude.m4])
0 #!/bin/sh
1 # Run this to generate all the initial makefiles, etc.
2
3 srcdir=`dirname $0`
4 test -z "$srcdir" && srcdir=.
5 REQUIRED_AUTOMAKE_VERSION=1.7
6 PKG_NAME=krb5-auth-dialog
7
8 (test -f $srcdir/configure.ac \
9 && test -f $srcdir/src/krb5-auth-dialog.c) || {
10 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
11 echo " top-level $PKG_NAME directory"
12 exit 1
13 }
14
15
16 which gnome-autogen.sh || {
17 echo "You need to install gnome-common from the GNOME CVS"
18 exit 1
19 }
20 USE_GNOME2_MACROS=1 . gnome-autogen.sh
+0
-1526
config.guess less more
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2008-01-23'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22 #
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
32 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
36 #
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
39
40 me=`echo "$0" | sed -e 's,.*/,,'`
41
42 usage="\
43 Usage: $0 [OPTION]
44
45 Output the configuration name of the system \`$me' is run on.
46
47 Operation modes:
48 -h, --help print this help, then exit
49 -t, --time-stamp print date of last modification, then exit
50 -v, --version print version number, then exit
51
52 Report bugs and patches to <config-patches@gnu.org>."
53
54 version="\
55 GNU config.guess ($timestamp)
56
57 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
60
61 This is free software; see the source for copying conditions. There is NO
62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63
64 help="
65 Try \`$me --help' for more information."
66
67 # Parse command line
68 while test $# -gt 0 ; do
69 case $1 in
70 --time-stamp | --time* | -t )
71 echo "$timestamp" ; exit ;;
72 --version | -v )
73 echo "$version" ; exit ;;
74 --help | --h* | -h )
75 echo "$usage"; exit ;;
76 -- ) # Stop option processing
77 shift; break ;;
78 - ) # Use stdin as input.
79 break ;;
80 -* )
81 echo "$me: invalid option $1$help" >&2
82 exit 1 ;;
83 * )
84 break ;;
85 esac
86 done
87
88 if test $# != 0; then
89 echo "$me: too many arguments$help" >&2
90 exit 1
91 fi
92
93 trap 'exit 1' 1 2 15
94
95 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
96 # compiler to aid in system detection is discouraged as it requires
97 # temporary files to be created and, as you can see below, it is a
98 # headache to deal with in a portable fashion.
99
100 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
101 # use `HOST_CC' if defined, but it is deprecated.
102
103 # Portable tmp directory creation inspired by the Autoconf team.
104
105 set_cc_for_build='
106 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108 : ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
113 dummy=$tmp/dummy ;
114 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
115 case $CC_FOR_BUILD,$HOST_CC,$CC in
116 ,,) echo "int x;" > $dummy.c ;
117 for c in cc gcc c89 c99 ; do
118 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
119 CC_FOR_BUILD="$c"; break ;
120 fi ;
121 done ;
122 if test x"$CC_FOR_BUILD" = x ; then
123 CC_FOR_BUILD=no_compiler_found ;
124 fi
125 ;;
126 ,,*) CC_FOR_BUILD=$CC ;;
127 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
128 esac ; set_cc_for_build= ;'
129
130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
131 # (ghazi@noc.rutgers.edu 1994-08-24)
132 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
133 PATH=$PATH:/.attbin ; export PATH
134 fi
135
136 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
141 # Note: order is significant - the case branches are not exclusive.
142
143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144 *:NetBSD:*:*)
145 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148 # switched to ELF, *-*-netbsd* would select the old
149 # object file format. This provides both forward
150 # compatibility and a consistent mechanism for selecting the
151 # object file format.
152 #
153 # Note: NetBSD doesn't particularly care about the vendor
154 # portion of the name. We always set it to "unknown".
155 sysctl="sysctl -n hw.machine_arch"
156 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
157 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
158 case "${UNAME_MACHINE_ARCH}" in
159 armeb) machine=armeb-unknown ;;
160 arm*) machine=arm-unknown ;;
161 sh3el) machine=shl-unknown ;;
162 sh3eb) machine=sh-unknown ;;
163 sh5el) machine=sh5le-unknown ;;
164 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
165 esac
166 # The Operating System including object format, if it has switched
167 # to ELF recently, or will in the future.
168 case "${UNAME_MACHINE_ARCH}" in
169 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
170 eval $set_cc_for_build
171 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
172 | grep __ELF__ >/dev/null
173 then
174 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
175 # Return netbsd for either. FIX?
176 os=netbsd
177 else
178 os=netbsdelf
179 fi
180 ;;
181 *)
182 os=netbsd
183 ;;
184 esac
185 # The OS release
186 # Debian GNU/NetBSD machines have a different userland, and
187 # thus, need a distinct triplet. However, they do not need
188 # kernel version information, so it can be replaced with a
189 # suitable tag, in the style of linux-gnu.
190 case "${UNAME_VERSION}" in
191 Debian*)
192 release='-gnu'
193 ;;
194 *)
195 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
196 ;;
197 esac
198 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
199 # contains redundant information, the shorter form:
200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
201 echo "${machine}-${os}${release}"
202 exit ;;
203 *:OpenBSD:*:*)
204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
206 exit ;;
207 *:ekkoBSD:*:*)
208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
209 exit ;;
210 *:SolidBSD:*:*)
211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
212 exit ;;
213 macppc:MirBSD:*:*)
214 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
215 exit ;;
216 *:MirBSD:*:*)
217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
218 exit ;;
219 alpha:OSF1:*:*)
220 case $UNAME_RELEASE in
221 *4.0)
222 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223 ;;
224 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226 ;;
227 esac
228 # According to Compaq, /usr/sbin/psrinfo has been available on
229 # OSF/1 and Tru64 systems produced since 1995. I hope that
230 # covers most systems running today. This code pipes the CPU
231 # types through head -n 1, so we only detect the type of CPU 0.
232 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
233 case "$ALPHA_CPU_TYPE" in
234 "EV4 (21064)")
235 UNAME_MACHINE="alpha" ;;
236 "EV4.5 (21064)")
237 UNAME_MACHINE="alpha" ;;
238 "LCA4 (21066/21068)")
239 UNAME_MACHINE="alpha" ;;
240 "EV5 (21164)")
241 UNAME_MACHINE="alphaev5" ;;
242 "EV5.6 (21164A)")
243 UNAME_MACHINE="alphaev56" ;;
244 "EV5.6 (21164PC)")
245 UNAME_MACHINE="alphapca56" ;;
246 "EV5.7 (21164PC)")
247 UNAME_MACHINE="alphapca57" ;;
248 "EV6 (21264)")
249 UNAME_MACHINE="alphaev6" ;;
250 "EV6.7 (21264A)")
251 UNAME_MACHINE="alphaev67" ;;
252 "EV6.8CB (21264C)")
253 UNAME_MACHINE="alphaev68" ;;
254 "EV6.8AL (21264B)")
255 UNAME_MACHINE="alphaev68" ;;
256 "EV6.8CX (21264D)")
257 UNAME_MACHINE="alphaev68" ;;
258 "EV6.9A (21264/EV69A)")
259 UNAME_MACHINE="alphaev69" ;;
260 "EV7 (21364)")
261 UNAME_MACHINE="alphaev7" ;;
262 "EV7.9 (21364A)")
263 UNAME_MACHINE="alphaev79" ;;
264 esac
265 # A Pn.n version is a patched version.
266 # A Vn.n version is a released version.
267 # A Tn.n version is a released field test version.
268 # A Xn.n version is an unreleased experimental baselevel.
269 # 1.2 uses "1.2" for uname -r.
270 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271 exit ;;
272 Alpha\ *:Windows_NT*:*)
273 # How do we know it's Interix rather than the generic POSIX subsystem?
274 # Should we change UNAME_MACHINE based on the output of uname instead
275 # of the specific Alpha model?
276 echo alpha-pc-interix
277 exit ;;
278 21064:Windows_NT:50:3)
279 echo alpha-dec-winnt3.5
280 exit ;;
281 Amiga*:UNIX_System_V:4.0:*)
282 echo m68k-unknown-sysv4
283 exit ;;
284 *:[Aa]miga[Oo][Ss]:*:*)
285 echo ${UNAME_MACHINE}-unknown-amigaos
286 exit ;;
287 *:[Mm]orph[Oo][Ss]:*:*)
288 echo ${UNAME_MACHINE}-unknown-morphos
289 exit ;;
290 *:OS/390:*:*)
291 echo i370-ibm-openedition
292 exit ;;
293 *:z/VM:*:*)
294 echo s390-ibm-zvmoe
295 exit ;;
296 *:OS400:*:*)
297 echo powerpc-ibm-os400
298 exit ;;
299 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
300 echo arm-acorn-riscix${UNAME_RELEASE}
301 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
303 echo arm-unknown-riscos
304 exit ;;
305 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
306 echo hppa1.1-hitachi-hiuxmpp
307 exit ;;
308 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
309 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
310 if test "`(/bin/universe) 2>/dev/null`" = att ; then
311 echo pyramid-pyramid-sysv3
312 else
313 echo pyramid-pyramid-bsd
314 fi
315 exit ;;
316 NILE*:*:*:dcosx)
317 echo pyramid-pyramid-svr4
318 exit ;;
319 DRS?6000:unix:4.0:6*)
320 echo sparc-icl-nx6
321 exit ;;
322 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
323 case `/usr/bin/uname -p` in
324 sparc) echo sparc-icl-nx7; exit ;;
325 esac ;;
326 sun4H:SunOS:5.*:*)
327 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328 exit ;;
329 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
330 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331 exit ;;
332 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
333 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334 exit ;;
335 sun4*:SunOS:6*:*)
336 # According to config.sub, this is the proper way to canonicalize
337 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
338 # it's likely to be more like Solaris than SunOS4.
339 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
340 exit ;;
341 sun4*:SunOS:*:*)
342 case "`/usr/bin/arch -k`" in
343 Series*|S4*)
344 UNAME_RELEASE=`uname -v`
345 ;;
346 esac
347 # Japanese Language versions have a version number like `4.1.3-JL'.
348 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
349 exit ;;
350 sun3*:SunOS:*:*)
351 echo m68k-sun-sunos${UNAME_RELEASE}
352 exit ;;
353 sun*:*:4.2BSD:*)
354 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
355 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
356 case "`/bin/arch`" in
357 sun3)
358 echo m68k-sun-sunos${UNAME_RELEASE}
359 ;;
360 sun4)
361 echo sparc-sun-sunos${UNAME_RELEASE}
362 ;;
363 esac
364 exit ;;
365 aushp:SunOS:*:*)
366 echo sparc-auspex-sunos${UNAME_RELEASE}
367 exit ;;
368 # The situation for MiNT is a little confusing. The machine name
369 # can be virtually everything (everything which is not
370 # "atarist" or "atariste" at least should have a processor
371 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
372 # to the lowercase version "mint" (or "freemint"). Finally
373 # the system name "TOS" denotes a system which is actually not
374 # MiNT. But MiNT is downward compatible to TOS, so this should
375 # be no problem.
376 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
377 echo m68k-atari-mint${UNAME_RELEASE}
378 exit ;;
379 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
380 echo m68k-atari-mint${UNAME_RELEASE}
381 exit ;;
382 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
383 echo m68k-atari-mint${UNAME_RELEASE}
384 exit ;;
385 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
386 echo m68k-milan-mint${UNAME_RELEASE}
387 exit ;;
388 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
389 echo m68k-hades-mint${UNAME_RELEASE}
390 exit ;;
391 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
392 echo m68k-unknown-mint${UNAME_RELEASE}
393 exit ;;
394 m68k:machten:*:*)
395 echo m68k-apple-machten${UNAME_RELEASE}
396 exit ;;
397 powerpc:machten:*:*)
398 echo powerpc-apple-machten${UNAME_RELEASE}
399 exit ;;
400 RISC*:Mach:*:*)
401 echo mips-dec-mach_bsd4.3
402 exit ;;
403 RISC*:ULTRIX:*:*)
404 echo mips-dec-ultrix${UNAME_RELEASE}
405 exit ;;
406 VAX*:ULTRIX*:*:*)
407 echo vax-dec-ultrix${UNAME_RELEASE}
408 exit ;;
409 2020:CLIX:*:* | 2430:CLIX:*:*)
410 echo clipper-intergraph-clix${UNAME_RELEASE}
411 exit ;;
412 mips:*:*:UMIPS | mips:*:*:RISCos)
413 eval $set_cc_for_build
414 sed 's/^ //' << EOF >$dummy.c
415 #ifdef __cplusplus
416 #include <stdio.h> /* for printf() prototype */
417 int main (int argc, char *argv[]) {
418 #else
419 int main (argc, argv) int argc; char *argv[]; {
420 #endif
421 #if defined (host_mips) && defined (MIPSEB)
422 #if defined (SYSTYPE_SYSV)
423 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
424 #endif
425 #if defined (SYSTYPE_SVR4)
426 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
427 #endif
428 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
429 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
430 #endif
431 #endif
432 exit (-1);
433 }
434 EOF
435 $CC_FOR_BUILD -o $dummy $dummy.c &&
436 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
437 SYSTEM_NAME=`$dummy $dummyarg` &&
438 { echo "$SYSTEM_NAME"; exit; }
439 echo mips-mips-riscos${UNAME_RELEASE}
440 exit ;;
441 Motorola:PowerMAX_OS:*:*)
442 echo powerpc-motorola-powermax
443 exit ;;
444 Motorola:*:4.3:PL8-*)
445 echo powerpc-harris-powermax
446 exit ;;
447 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
448 echo powerpc-harris-powermax
449 exit ;;
450 Night_Hawk:Power_UNIX:*:*)
451 echo powerpc-harris-powerunix
452 exit ;;
453 m88k:CX/UX:7*:*)
454 echo m88k-harris-cxux7
455 exit ;;
456 m88k:*:4*:R4*)
457 echo m88k-motorola-sysv4
458 exit ;;
459 m88k:*:3*:R3*)
460 echo m88k-motorola-sysv3
461 exit ;;
462 AViiON:dgux:*:*)
463 # DG/UX returns AViiON for all architectures
464 UNAME_PROCESSOR=`/usr/bin/uname -p`
465 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
466 then
467 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
468 [ ${TARGET_BINARY_INTERFACE}x = x ]
469 then
470 echo m88k-dg-dgux${UNAME_RELEASE}
471 else
472 echo m88k-dg-dguxbcs${UNAME_RELEASE}
473 fi
474 else
475 echo i586-dg-dgux${UNAME_RELEASE}
476 fi
477 exit ;;
478 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
479 echo m88k-dolphin-sysv3
480 exit ;;
481 M88*:*:R3*:*)
482 # Delta 88k system running SVR3
483 echo m88k-motorola-sysv3
484 exit ;;
485 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
486 echo m88k-tektronix-sysv3
487 exit ;;
488 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
489 echo m68k-tektronix-bsd
490 exit ;;
491 *:IRIX*:*:*)
492 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
493 exit ;;
494 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
495 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
496 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
497 i*86:AIX:*:*)
498 echo i386-ibm-aix
499 exit ;;
500 ia64:AIX:*:*)
501 if [ -x /usr/bin/oslevel ] ; then
502 IBM_REV=`/usr/bin/oslevel`
503 else
504 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
505 fi
506 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
507 exit ;;
508 *:AIX:2:3)
509 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
510 eval $set_cc_for_build
511 sed 's/^ //' << EOF >$dummy.c
512 #include <sys/systemcfg.h>
513
514 main()
515 {
516 if (!__power_pc())
517 exit(1);
518 puts("powerpc-ibm-aix3.2.5");
519 exit(0);
520 }
521 EOF
522 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
523 then
524 echo "$SYSTEM_NAME"
525 else
526 echo rs6000-ibm-aix3.2.5
527 fi
528 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
529 echo rs6000-ibm-aix3.2.4
530 else
531 echo rs6000-ibm-aix3.2
532 fi
533 exit ;;
534 *:AIX:*:[456])
535 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
536 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
537 IBM_ARCH=rs6000
538 else
539 IBM_ARCH=powerpc
540 fi
541 if [ -x /usr/bin/oslevel ] ; then
542 IBM_REV=`/usr/bin/oslevel`
543 else
544 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
545 fi
546 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
547 exit ;;
548 *:AIX:*:*)
549 echo rs6000-ibm-aix
550 exit ;;
551 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
552 echo romp-ibm-bsd4.4
553 exit ;;
554 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
555 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
556 exit ;; # report: romp-ibm BSD 4.3
557 *:BOSX:*:*)
558 echo rs6000-bull-bosx
559 exit ;;
560 DPX/2?00:B.O.S.:*:*)
561 echo m68k-bull-sysv3
562 exit ;;
563 9000/[34]??:4.3bsd:1.*:*)
564 echo m68k-hp-bsd
565 exit ;;
566 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
567 echo m68k-hp-bsd4.4
568 exit ;;
569 9000/[34678]??:HP-UX:*:*)
570 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
571 case "${UNAME_MACHINE}" in
572 9000/31? ) HP_ARCH=m68000 ;;
573 9000/[34]?? ) HP_ARCH=m68k ;;
574 9000/[678][0-9][0-9])
575 if [ -x /usr/bin/getconf ]; then
576 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
577 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
578 case "${sc_cpu_version}" in
579 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
580 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
581 532) # CPU_PA_RISC2_0
582 case "${sc_kernel_bits}" in
583 32) HP_ARCH="hppa2.0n" ;;
584 64) HP_ARCH="hppa2.0w" ;;
585 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
586 esac ;;
587 esac
588 fi
589 if [ "${HP_ARCH}" = "" ]; then
590 eval $set_cc_for_build
591 sed 's/^ //' << EOF >$dummy.c
592
593 #define _HPUX_SOURCE
594 #include <stdlib.h>
595 #include <unistd.h>
596
597 int main ()
598 {
599 #if defined(_SC_KERNEL_BITS)
600 long bits = sysconf(_SC_KERNEL_BITS);
601 #endif
602 long cpu = sysconf (_SC_CPU_VERSION);
603
604 switch (cpu)
605 {
606 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
607 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
608 case CPU_PA_RISC2_0:
609 #if defined(_SC_KERNEL_BITS)
610 switch (bits)
611 {
612 case 64: puts ("hppa2.0w"); break;
613 case 32: puts ("hppa2.0n"); break;
614 default: puts ("hppa2.0"); break;
615 } break;
616 #else /* !defined(_SC_KERNEL_BITS) */
617 puts ("hppa2.0"); break;
618 #endif
619 default: puts ("hppa1.0"); break;
620 }
621 exit (0);
622 }
623 EOF
624 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
625 test -z "$HP_ARCH" && HP_ARCH=hppa
626 fi ;;
627 esac
628 if [ ${HP_ARCH} = "hppa2.0w" ]
629 then
630 eval $set_cc_for_build
631
632 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
633 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
634 # generating 64-bit code. GNU and HP use different nomenclature:
635 #
636 # $ CC_FOR_BUILD=cc ./config.guess
637 # => hppa2.0w-hp-hpux11.23
638 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
639 # => hppa64-hp-hpux11.23
640
641 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
642 grep __LP64__ >/dev/null
643 then
644 HP_ARCH="hppa2.0w"
645 else
646 HP_ARCH="hppa64"
647 fi
648 fi
649 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
650 exit ;;
651 ia64:HP-UX:*:*)
652 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
653 echo ia64-hp-hpux${HPUX_REV}
654 exit ;;
655 3050*:HI-UX:*:*)
656 eval $set_cc_for_build
657 sed 's/^ //' << EOF >$dummy.c
658 #include <unistd.h>
659 int
660 main ()
661 {
662 long cpu = sysconf (_SC_CPU_VERSION);
663 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
664 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
665 results, however. */
666 if (CPU_IS_PA_RISC (cpu))
667 {
668 switch (cpu)
669 {
670 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
671 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
672 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
673 default: puts ("hppa-hitachi-hiuxwe2"); break;
674 }
675 }
676 else if (CPU_IS_HP_MC68K (cpu))
677 puts ("m68k-hitachi-hiuxwe2");
678 else puts ("unknown-hitachi-hiuxwe2");
679 exit (0);
680 }
681 EOF
682 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
683 { echo "$SYSTEM_NAME"; exit; }
684 echo unknown-hitachi-hiuxwe2
685 exit ;;
686 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
687 echo hppa1.1-hp-bsd
688 exit ;;
689 9000/8??:4.3bsd:*:*)
690 echo hppa1.0-hp-bsd
691 exit ;;
692 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
693 echo hppa1.0-hp-mpeix
694 exit ;;
695 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
696 echo hppa1.1-hp-osf
697 exit ;;
698 hp8??:OSF1:*:*)
699 echo hppa1.0-hp-osf
700 exit ;;
701 i*86:OSF1:*:*)
702 if [ -x /usr/sbin/sysversion ] ; then
703 echo ${UNAME_MACHINE}-unknown-osf1mk
704 else
705 echo ${UNAME_MACHINE}-unknown-osf1
706 fi
707 exit ;;
708 parisc*:Lites*:*:*)
709 echo hppa1.1-hp-lites
710 exit ;;
711 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
712 echo c1-convex-bsd
713 exit ;;
714 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
715 if getsysinfo -f scalar_acc
716 then echo c32-convex-bsd
717 else echo c2-convex-bsd
718 fi
719 exit ;;
720 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
721 echo c34-convex-bsd
722 exit ;;
723 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
724 echo c38-convex-bsd
725 exit ;;
726 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
727 echo c4-convex-bsd
728 exit ;;
729 CRAY*Y-MP:*:*:*)
730 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
731 exit ;;
732 CRAY*[A-Z]90:*:*:*)
733 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
734 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
735 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
736 -e 's/\.[^.]*$/.X/'
737 exit ;;
738 CRAY*TS:*:*:*)
739 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
740 exit ;;
741 CRAY*T3E:*:*:*)
742 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
743 exit ;;
744 CRAY*SV1:*:*:*)
745 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
746 exit ;;
747 *:UNICOS/mp:*:*)
748 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
749 exit ;;
750 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
751 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
752 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
753 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
754 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
755 exit ;;
756 5000:UNIX_System_V:4.*:*)
757 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
758 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
759 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
760 exit ;;
761 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
762 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
763 exit ;;
764 sparc*:BSD/OS:*:*)
765 echo sparc-unknown-bsdi${UNAME_RELEASE}
766 exit ;;
767 *:BSD/OS:*:*)
768 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
769 exit ;;
770 *:FreeBSD:*:*)
771 case ${UNAME_MACHINE} in
772 pc98)
773 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
774 amd64)
775 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
776 *)
777 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
778 esac
779 exit ;;
780 i*:CYGWIN*:*)
781 echo ${UNAME_MACHINE}-pc-cygwin
782 exit ;;
783 *:MINGW*:*)
784 echo ${UNAME_MACHINE}-pc-mingw32
785 exit ;;
786 i*:windows32*:*)
787 # uname -m includes "-pc" on this system.
788 echo ${UNAME_MACHINE}-mingw32
789 exit ;;
790 i*:PW*:*)
791 echo ${UNAME_MACHINE}-pc-pw32
792 exit ;;
793 *:Interix*:[3456]*)
794 case ${UNAME_MACHINE} in
795 x86)
796 echo i586-pc-interix${UNAME_RELEASE}
797 exit ;;
798 EM64T | authenticamd)
799 echo x86_64-unknown-interix${UNAME_RELEASE}
800 exit ;;
801 IA64)
802 echo ia64-unknown-interix${UNAME_RELEASE}
803 exit ;;
804 esac ;;
805 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
806 echo i${UNAME_MACHINE}-pc-mks
807 exit ;;
808 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
809 # How do we know it's Interix rather than the generic POSIX subsystem?
810 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
811 # UNAME_MACHINE based on the output of uname instead of i386?
812 echo i586-pc-interix
813 exit ;;
814 i*:UWIN*:*)
815 echo ${UNAME_MACHINE}-pc-uwin
816 exit ;;
817 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
818 echo x86_64-unknown-cygwin
819 exit ;;
820 p*:CYGWIN*:*)
821 echo powerpcle-unknown-cygwin
822 exit ;;
823 prep*:SunOS:5.*:*)
824 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
825 exit ;;
826 *:GNU:*:*)
827 # the GNU system
828 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
829 exit ;;
830 *:GNU/*:*:*)
831 # other systems with GNU libc and userland
832 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
833 exit ;;
834 i*86:Minix:*:*)
835 echo ${UNAME_MACHINE}-pc-minix
836 exit ;;
837 arm*:Linux:*:*)
838 eval $set_cc_for_build
839 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
840 | grep -q __ARM_EABI__
841 then
842 echo ${UNAME_MACHINE}-unknown-linux-gnu
843 else
844 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
845 fi
846 exit ;;
847 avr32*:Linux:*:*)
848 echo ${UNAME_MACHINE}-unknown-linux-gnu
849 exit ;;
850 cris:Linux:*:*)
851 echo cris-axis-linux-gnu
852 exit ;;
853 crisv32:Linux:*:*)
854 echo crisv32-axis-linux-gnu
855 exit ;;
856 frv:Linux:*:*)
857 echo frv-unknown-linux-gnu
858 exit ;;
859 ia64:Linux:*:*)
860 echo ${UNAME_MACHINE}-unknown-linux-gnu
861 exit ;;
862 m32r*:Linux:*:*)
863 echo ${UNAME_MACHINE}-unknown-linux-gnu
864 exit ;;
865 m68*:Linux:*:*)
866 echo ${UNAME_MACHINE}-unknown-linux-gnu
867 exit ;;
868 mips:Linux:*:*)
869 eval $set_cc_for_build
870 sed 's/^ //' << EOF >$dummy.c
871 #undef CPU
872 #undef mips
873 #undef mipsel
874 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
875 CPU=mipsel
876 #else
877 #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
902 #else
903 CPU=
904 #endif
905 #endif
906 EOF
907 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
908 /^CPU/{
909 s: ::g
910 p
911 }'`"
912 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
913 ;;
914 or32:Linux:*:*)
915 echo or32-unknown-linux-gnu
916 exit ;;
917 ppc:Linux:*:*)
918 echo powerpc-unknown-linux-gnu
919 exit ;;
920 ppc64:Linux:*:*)
921 echo powerpc64-unknown-linux-gnu
922 exit ;;
923 alpha:Linux:*:*)
924 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
925 EV5) UNAME_MACHINE=alphaev5 ;;
926 EV56) UNAME_MACHINE=alphaev56 ;;
927 PCA56) UNAME_MACHINE=alphapca56 ;;
928 PCA57) UNAME_MACHINE=alphapca56 ;;
929 EV6) UNAME_MACHINE=alphaev6 ;;
930 EV67) UNAME_MACHINE=alphaev67 ;;
931 EV68*) UNAME_MACHINE=alphaev68 ;;
932 esac
933 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
934 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
935 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
936 exit ;;
937 parisc:Linux:*:* | hppa:Linux:*:*)
938 # Look for CPU level
939 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
940 PA7*) echo hppa1.1-unknown-linux-gnu ;;
941 PA8*) echo hppa2.0-unknown-linux-gnu ;;
942 *) echo hppa-unknown-linux-gnu ;;
943 esac
944 exit ;;
945 parisc64:Linux:*:* | hppa64:Linux:*:*)
946 echo hppa64-unknown-linux-gnu
947 exit ;;
948 s390:Linux:*:* | s390x:Linux:*:*)
949 echo ${UNAME_MACHINE}-ibm-linux
950 exit ;;
951 sh64*:Linux:*:*)
952 echo ${UNAME_MACHINE}-unknown-linux-gnu
953 exit ;;
954 sh*:Linux:*:*)
955 echo ${UNAME_MACHINE}-unknown-linux-gnu
956 exit ;;
957 sparc:Linux:*:* | sparc64:Linux:*:*)
958 echo ${UNAME_MACHINE}-unknown-linux-gnu
959 exit ;;
960 vax:Linux:*:*)
961 echo ${UNAME_MACHINE}-dec-linux-gnu
962 exit ;;
963 x86_64:Linux:*:*)
964 echo x86_64-unknown-linux-gnu
965 exit ;;
966 xtensa*:Linux:*:*)
967 echo ${UNAME_MACHINE}-unknown-linux-gnu
968 exit ;;
969 i*86:Linux:*:*)
970 # The BFD linker knows what the default object file format is, so
971 # first see if it will tell us. cd to the root directory to prevent
972 # problems with other programs or directories called `ld' in the path.
973 # Set LC_ALL=C to ensure ld outputs messages in English.
974 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
975 | sed -ne '/supported targets:/!d
976 s/[ ][ ]*/ /g
977 s/.*supported targets: *//
978 s/ .*//
979 p'`
980 case "$ld_supported_targets" in
981 elf32-i386)
982 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
983 ;;
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 ;;
995 esac
996 # Determine whether the default compiler is a.out or elf
997 eval $set_cc_for_build
998 sed 's/^ //' << EOF >$dummy.c
999 #include <features.h>
1000 #ifdef __ELF__
1001 # ifdef __GLIBC__
1002 # if __GLIBC__ >= 2
1003 LIBC=gnu
1004 # else
1005 LIBC=gnulibc1
1006 # endif
1007 # else
1008 LIBC=gnulibc1
1009 # endif
1010 #else
1011 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1012 LIBC=gnu
1013 #else
1014 LIBC=gnuaout
1015 #endif
1016 #endif
1017 #ifdef __dietlibc__
1018 LIBC=dietlibc
1019 #endif
1020 EOF
1021 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1022 /^LIBC/{
1023 s: ::g
1024 p
1025 }'`"
1026 test x"${LIBC}" != x && {
1027 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1028 exit
1029 }
1030 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1031 ;;
1032 i*86:DYNIX/ptx:4*:*)
1033 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1034 # earlier versions are messed up and put the nodename in both
1035 # sysname and nodename.
1036 echo i386-sequent-sysv4
1037 exit ;;
1038 i*86:UNIX_SV:4.2MP:2.*)
1039 # Unixware is an offshoot of SVR4, but it has its own version
1040 # number series starting with 2...
1041 # I am not positive that other SVR4 systems won't match this,
1042 # I just have to hope. -- rms.
1043 # Use sysv4.2uw... so that sysv4* matches it.
1044 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1045 exit ;;
1046 i*86:OS/2:*:*)
1047 # If we were able to find `uname', then EMX Unix compatibility
1048 # is probably installed.
1049 echo ${UNAME_MACHINE}-pc-os2-emx
1050 exit ;;
1051 i*86:XTS-300:*:STOP)
1052 echo ${UNAME_MACHINE}-unknown-stop
1053 exit ;;
1054 i*86:atheos:*:*)
1055 echo ${UNAME_MACHINE}-unknown-atheos
1056 exit ;;
1057 i*86:syllable:*:*)
1058 echo ${UNAME_MACHINE}-pc-syllable
1059 exit ;;
1060 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1061 echo i386-unknown-lynxos${UNAME_RELEASE}
1062 exit ;;
1063 i*86:*DOS:*:*)
1064 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1065 exit ;;
1066 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1067 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1068 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1069 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1070 else
1071 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1072 fi
1073 exit ;;
1074 i*86:*:5:[678]*)
1075 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1076 case `/bin/uname -X | grep "^Machine"` in
1077 *486*) UNAME_MACHINE=i486 ;;
1078 *Pentium) UNAME_MACHINE=i586 ;;
1079 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1080 esac
1081 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1082 exit ;;
1083 i*86:*:3.2:*)
1084 if test -f /usr/options/cb.name; then
1085 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1086 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1087 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1088 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1089 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1090 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1091 && UNAME_MACHINE=i586
1092 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1093 && UNAME_MACHINE=i686
1094 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1095 && UNAME_MACHINE=i686
1096 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1097 else
1098 echo ${UNAME_MACHINE}-pc-sysv32
1099 fi
1100 exit ;;
1101 pc:*:*:*)
1102 # Left here for compatibility:
1103 # 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
1106 exit ;;
1107 Intel:Mach:3*:*)
1108 echo i386-pc-mach3
1109 exit ;;
1110 paragon:*:*:*)
1111 echo i860-intel-osf1
1112 exit ;;
1113 i860:*:4.*:*) # i860-SVR4
1114 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1115 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1116 else # Add other i860-SVR4 vendors below as they are discovered.
1117 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1118 fi
1119 exit ;;
1120 mini*:CTIX:SYS*5:*)
1121 # "miniframe"
1122 echo m68010-convergent-sysv
1123 exit ;;
1124 mc68k:UNIX:SYSTEM5:3.51m)
1125 echo m68k-convergent-sysv
1126 exit ;;
1127 M680?0:D-NIX:5.3:*)
1128 echo m68k-diab-dnix
1129 exit ;;
1130 M68*:*:R3V[5678]*:*)
1131 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1132 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1133 OS_REL=''
1134 test -r /etc/.relid \
1135 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1136 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1137 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1138 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1139 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1140 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1141 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1142 && { echo i486-ncr-sysv4; exit; } ;;
1143 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1144 echo m68k-unknown-lynxos${UNAME_RELEASE}
1145 exit ;;
1146 mc68030:UNIX_System_V:4.*:*)
1147 echo m68k-atari-sysv4
1148 exit ;;
1149 TSUNAMI:LynxOS:2.*:*)
1150 echo sparc-unknown-lynxos${UNAME_RELEASE}
1151 exit ;;
1152 rs6000:LynxOS:2.*:*)
1153 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1154 exit ;;
1155 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1156 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1157 exit ;;
1158 SM[BE]S:UNIX_SV:*:*)
1159 echo mips-dde-sysv${UNAME_RELEASE}
1160 exit ;;
1161 RM*:ReliantUNIX-*:*:*)
1162 echo mips-sni-sysv4
1163 exit ;;
1164 RM*:SINIX-*:*:*)
1165 echo mips-sni-sysv4
1166 exit ;;
1167 *:SINIX-*:*:*)
1168 if uname -p 2>/dev/null >/dev/null ; then
1169 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1170 echo ${UNAME_MACHINE}-sni-sysv4
1171 else
1172 echo ns32k-sni-sysv
1173 fi
1174 exit ;;
1175 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1176 # says <Richard.M.Bartel@ccMail.Census.GOV>
1177 echo i586-unisys-sysv4
1178 exit ;;
1179 *:UNIX_System_V:4*:FTX*)
1180 # From Gerald Hewes <hewes@openmarket.com>.
1181 # How about differentiating between stratus architectures? -djm
1182 echo hppa1.1-stratus-sysv4
1183 exit ;;
1184 *:*:*:FTX*)
1185 # From seanf@swdc.stratus.com.
1186 echo i860-stratus-sysv4
1187 exit ;;
1188 i*86:VOS:*:*)
1189 # From Paul.Green@stratus.com.
1190 echo ${UNAME_MACHINE}-stratus-vos
1191 exit ;;
1192 *:VOS:*:*)
1193 # From Paul.Green@stratus.com.
1194 echo hppa1.1-stratus-vos
1195 exit ;;
1196 mc68*:A/UX:*:*)
1197 echo m68k-apple-aux${UNAME_RELEASE}
1198 exit ;;
1199 news*:NEWS-OS:6*:*)
1200 echo mips-sony-newsos6
1201 exit ;;
1202 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1203 if [ -d /usr/nec ]; then
1204 echo mips-nec-sysv${UNAME_RELEASE}
1205 else
1206 echo mips-unknown-sysv${UNAME_RELEASE}
1207 fi
1208 exit ;;
1209 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1210 echo powerpc-be-beos
1211 exit ;;
1212 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1213 echo powerpc-apple-beos
1214 exit ;;
1215 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1216 echo i586-pc-beos
1217 exit ;;
1218 SX-4:SUPER-UX:*:*)
1219 echo sx4-nec-superux${UNAME_RELEASE}
1220 exit ;;
1221 SX-5:SUPER-UX:*:*)
1222 echo sx5-nec-superux${UNAME_RELEASE}
1223 exit ;;
1224 SX-6:SUPER-UX:*:*)
1225 echo sx6-nec-superux${UNAME_RELEASE}
1226 exit ;;
1227 SX-7:SUPER-UX:*:*)
1228 echo sx7-nec-superux${UNAME_RELEASE}
1229 exit ;;
1230 SX-8:SUPER-UX:*:*)
1231 echo sx8-nec-superux${UNAME_RELEASE}
1232 exit ;;
1233 SX-8R:SUPER-UX:*:*)
1234 echo sx8r-nec-superux${UNAME_RELEASE}
1235 exit ;;
1236 Power*:Rhapsody:*:*)
1237 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1238 exit ;;
1239 *:Rhapsody:*:*)
1240 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1241 exit ;;
1242 *:Darwin:*:*)
1243 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1244 case $UNAME_PROCESSOR in
1245 unknown) UNAME_PROCESSOR=powerpc ;;
1246 esac
1247 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1248 exit ;;
1249 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1250 UNAME_PROCESSOR=`uname -p`
1251 if test "$UNAME_PROCESSOR" = "x86"; then
1252 UNAME_PROCESSOR=i386
1253 UNAME_MACHINE=pc
1254 fi
1255 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1256 exit ;;
1257 *:QNX:*:4*)
1258 echo i386-pc-qnx
1259 exit ;;
1260 NSE-?:NONSTOP_KERNEL:*:*)
1261 echo nse-tandem-nsk${UNAME_RELEASE}
1262 exit ;;
1263 NSR-?:NONSTOP_KERNEL:*:*)
1264 echo nsr-tandem-nsk${UNAME_RELEASE}
1265 exit ;;
1266 *:NonStop-UX:*:*)
1267 echo mips-compaq-nonstopux
1268 exit ;;
1269 BS2000:POSIX*:*:*)
1270 echo bs2000-siemens-sysv
1271 exit ;;
1272 DS/*:UNIX_System_V:*:*)
1273 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1274 exit ;;
1275 *:Plan9:*:*)
1276 # "uname -m" is not consistent, so use $cputype instead. 386
1277 # is converted to i386 for consistency with other x86
1278 # operating systems.
1279 if test "$cputype" = "386"; then
1280 UNAME_MACHINE=i386
1281 else
1282 UNAME_MACHINE="$cputype"
1283 fi
1284 echo ${UNAME_MACHINE}-unknown-plan9
1285 exit ;;
1286 *:TOPS-10:*:*)
1287 echo pdp10-unknown-tops10
1288 exit ;;
1289 *:TENEX:*:*)
1290 echo pdp10-unknown-tenex
1291 exit ;;
1292 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1293 echo pdp10-dec-tops20
1294 exit ;;
1295 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1296 echo pdp10-xkl-tops20
1297 exit ;;
1298 *:TOPS-20:*:*)
1299 echo pdp10-unknown-tops20
1300 exit ;;
1301 *:ITS:*:*)
1302 echo pdp10-unknown-its
1303 exit ;;
1304 SEI:*:*:SEIUX)
1305 echo mips-sei-seiux${UNAME_RELEASE}
1306 exit ;;
1307 *:DragonFly:*:*)
1308 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1309 exit ;;
1310 *:*VMS:*:*)
1311 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1312 case "${UNAME_MACHINE}" in
1313 A*) echo alpha-dec-vms ; exit ;;
1314 I*) echo ia64-dec-vms ; exit ;;
1315 V*) echo vax-dec-vms ; exit ;;
1316 esac ;;
1317 *:XENIX:*:SysV)
1318 echo i386-pc-xenix
1319 exit ;;
1320 i*86:skyos:*:*)
1321 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1322 exit ;;
1323 i*86:rdos:*:*)
1324 echo ${UNAME_MACHINE}-pc-rdos
1325 exit ;;
1326 esac
1327
1328 #echo '(No uname command or uname output not recognized.)' 1>&2
1329 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1330
1331 eval $set_cc_for_build
1332 cat >$dummy.c <<EOF
1333 #ifdef _SEQUENT_
1334 # include <sys/types.h>
1335 # include <sys/utsname.h>
1336 #endif
1337 main ()
1338 {
1339 #if defined (sony)
1340 #if defined (MIPSEB)
1341 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1342 I don't know.... */
1343 printf ("mips-sony-bsd\n"); exit (0);
1344 #else
1345 #include <sys/param.h>
1346 printf ("m68k-sony-newsos%s\n",
1347 #ifdef NEWSOS4
1348 "4"
1349 #else
1350 ""
1351 #endif
1352 ); exit (0);
1353 #endif
1354 #endif
1355
1356 #if defined (__arm) && defined (__acorn) && defined (__unix)
1357 printf ("arm-acorn-riscix\n"); exit (0);
1358 #endif
1359
1360 #if defined (hp300) && !defined (hpux)
1361 printf ("m68k-hp-bsd\n"); exit (0);
1362 #endif
1363
1364 #if defined (NeXT)
1365 #if !defined (__ARCHITECTURE__)
1366 #define __ARCHITECTURE__ "m68k"
1367 #endif
1368 int version;
1369 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1370 if (version < 4)
1371 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1372 else
1373 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1374 exit (0);
1375 #endif
1376
1377 #if defined (MULTIMAX) || defined (n16)
1378 #if defined (UMAXV)
1379 printf ("ns32k-encore-sysv\n"); exit (0);
1380 #else
1381 #if defined (CMU)
1382 printf ("ns32k-encore-mach\n"); exit (0);
1383 #else
1384 printf ("ns32k-encore-bsd\n"); exit (0);
1385 #endif
1386 #endif
1387 #endif
1388
1389 #if defined (__386BSD__)
1390 printf ("i386-pc-bsd\n"); exit (0);
1391 #endif
1392
1393 #if defined (sequent)
1394 #if defined (i386)
1395 printf ("i386-sequent-dynix\n"); exit (0);
1396 #endif
1397 #if defined (ns32000)
1398 printf ("ns32k-sequent-dynix\n"); exit (0);
1399 #endif
1400 #endif
1401
1402 #if defined (_SEQUENT_)
1403 struct utsname un;
1404
1405 uname(&un);
1406
1407 if (strncmp(un.version, "V2", 2) == 0) {
1408 printf ("i386-sequent-ptx2\n"); exit (0);
1409 }
1410 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1411 printf ("i386-sequent-ptx1\n"); exit (0);
1412 }
1413 printf ("i386-sequent-ptx\n"); exit (0);
1414
1415 #endif
1416
1417 #if defined (vax)
1418 # if !defined (ultrix)
1419 # include <sys/param.h>
1420 # if defined (BSD)
1421 # if BSD == 43
1422 printf ("vax-dec-bsd4.3\n"); exit (0);
1423 # else
1424 # if BSD == 199006
1425 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1426 # else
1427 printf ("vax-dec-bsd\n"); exit (0);
1428 # endif
1429 # endif
1430 # else
1431 printf ("vax-dec-bsd\n"); exit (0);
1432 # endif
1433 # else
1434 printf ("vax-dec-ultrix\n"); exit (0);
1435 # endif
1436 #endif
1437
1438 #if defined (alliant) && defined (i860)
1439 printf ("i860-alliant-bsd\n"); exit (0);
1440 #endif
1441
1442 exit (1);
1443 }
1444 EOF
1445
1446 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1447 { echo "$SYSTEM_NAME"; exit; }
1448
1449 # Apollos put the system type in the environment.
1450
1451 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1452
1453 # Convex versions that predate uname can use getsysinfo(1)
1454
1455 if [ -x /usr/convex/getsysinfo ]
1456 then
1457 case `getsysinfo -f cpu_type` in
1458 c1*)
1459 echo c1-convex-bsd
1460 exit ;;
1461 c2*)
1462 if getsysinfo -f scalar_acc
1463 then echo c32-convex-bsd
1464 else echo c2-convex-bsd
1465 fi
1466 exit ;;
1467 c34*)
1468 echo c34-convex-bsd
1469 exit ;;
1470 c38*)
1471 echo c38-convex-bsd
1472 exit ;;
1473 c4*)
1474 echo c4-convex-bsd
1475 exit ;;
1476 esac
1477 fi
1478
1479 cat >&2 <<EOF
1480 $0: unable to guess system type
1481
1482 This script, last modified $timestamp, has failed to recognize
1483 the operating system you are using. It is advised that you
1484 download the most up to date version of the config scripts from
1485
1486 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1487 and
1488 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1489
1490 If the version you run ($0) is already up to date, please
1491 send the following data and any information you think might be
1492 pertinent to <config-patches@gnu.org> in order to provide the needed
1493 information to handle your system.
1494
1495 config.guess timestamp = $timestamp
1496
1497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501
1502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1503 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1504
1505 hostinfo = `(hostinfo) 2>/dev/null`
1506 /bin/universe = `(/bin/universe) 2>/dev/null`
1507 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1508 /bin/arch = `(/bin/arch) 2>/dev/null`
1509 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1510 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1511
1512 UNAME_MACHINE = ${UNAME_MACHINE}
1513 UNAME_RELEASE = ${UNAME_RELEASE}
1514 UNAME_SYSTEM = ${UNAME_SYSTEM}
1515 UNAME_VERSION = ${UNAME_VERSION}
1516 EOF
1517
1518 exit 1
1519
1520 # Local variables:
1521 # eval: (add-hook 'write-file-hooks 'time-stamp)
1522 # time-stamp-start: "timestamp='"
1523 # time-stamp-format: "%:y-%02m-%02d"
1524 # time-stamp-end: "'"
1525 # End:
+0
-174
config.h.in less more
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* Define the to number of seconds to wait between checks of the Kerberos
3 credential cache. */
4 #undef CREDENTIAL_CHECK_INTERVAL
5
6 /* whether debugging is enabled */
7 #undef ENABLE_DEBUG
8
9 /* Define for NetworkManager support */
10 #undef ENABLE_NETWORK_MANAGER
11
12 /* always defined to indicate that i18n is enabled */
13 #undef ENABLE_NLS
14
15 /* Define for pkinit support */
16 #undef ENABLE_PKINIT
17
18 /* Gettext package */
19 #undef GETTEXT_PACKAGE
20
21 /* Define to 1 if you have the `bind_textdomain_codeset' function. */
22 #undef HAVE_BIND_TEXTDOMAIN_CODESET
23
24 /* Defined if the mlock() call does not work */
25 #undef HAVE_BROKEN_MLOCK
26
27 /* Defined if a `byte' is typedef'd */
28 #undef HAVE_BYTE_TYPEDEF
29
30 /* Define to 1 if you have the `dcgettext' function. */
31 #undef HAVE_DCGETTEXT
32
33 /* Define to 1 if you have the <dlfcn.h> header file. */
34 #undef HAVE_DLFCN_H
35
36 /* Define if the GNU gettext() function is already present or preinstalled. */
37 #undef HAVE_GETTEXT
38
39 /* Define to 1 if you have the <hx509_err.h> header file. */
40 #undef HAVE_HX509_ERR_H
41
42 /* Define to 1 if you have the <inttypes.h> header file. */
43 #undef HAVE_INTTYPES_H
44
45 /* Define to 1 if you have the `krb5_cc_clear_mcred' function. */
46 #undef HAVE_KRB5_CC_CLEAR_MCRED
47
48 /* Define to 1 if `flags' is member of `krb5_creds'. */
49 #undef HAVE_KRB5_CREDS_FLAGS
50
51 /* Define to 1 if `flags.b.forwardable' is member of `krb5_creds'. */
52 #undef HAVE_KRB5_CREDS_FLAGS_B_FORWARDABLE
53
54 /* Define to 1 if `flags.b.proxiable' is member of `krb5_creds'. */
55 #undef HAVE_KRB5_CREDS_FLAGS_B_PROXIABLE
56
57 /* Define to 1 if `flags.b.renewable' is member of `krb5_creds'. */
58 #undef HAVE_KRB5_CREDS_FLAGS_B_RENEWABLE
59
60 /* Define to 1 if `ticket_flags' is member of `krb5_creds'. */
61 #undef HAVE_KRB5_CREDS_TICKET_FLAGS
62
63 /* Define to 1 if you have the `krb5_get_error_message' function. */
64 #undef HAVE_KRB5_GET_ERROR_MESSAGE
65
66 /* Define to 1 if you have the `krb5_get_init_creds_opt_set_default_flags'
67 function. */
68 #undef HAVE_KRB5_GET_INIT_CREDS_OPT_SET_DEFAULT_FLAGS
69
70 /* Define to 1 if you have the `krb5_get_init_creds_opt_set_pkinit' function.
71 */
72 #undef HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PKINIT
73
74 /* Define to 1 if you have the `krb5_get_renewed_creds' function. */
75 #undef HAVE_KRB5_GET_RENEWED_CREDS
76
77 /* Define if the realm of a krb5_principal is a krb5_data */
78 #undef HAVE_KRB5_PRINCIPAL_REALM_AS_DATA
79
80 /* Define if the realm of a krb5_principal is a char* */
81 #undef HAVE_KRB5_PRINCIPAL_REALM_AS_STRING
82
83 /* Define if your <locale.h> file defines LC_MESSAGES. */
84 #undef HAVE_LC_MESSAGES
85
86 /* use libnotify for status messages */
87 #undef HAVE_LIBNOTIFY
88
89 /* Define to 1 if you have the `rt' library (-lrt). */
90 #undef HAVE_LIBRT
91
92 /* Define to 1 if you have the <locale.h> header file. */
93 #undef HAVE_LOCALE_H
94
95 /* Define to 1 if you have the <memory.h> header file. */
96 #undef HAVE_MEMORY_H
97
98 /* Defined if the system supports an mlock() call */
99 #undef HAVE_MLOCK
100
101 /* Define to 1 if you have the `mmap' function. */
102 #undef HAVE_MMAP
103
104 /* Define to 1 if you have the `plock' function. */
105 #undef HAVE_PLOCK
106
107 /* Define to 1 if you have the `seteuid' function. */
108 #undef HAVE_SETEUID
109
110 /* Define to 1 if you have the <stdint.h> header file. */
111 #undef HAVE_STDINT_H
112
113 /* Define to 1 if you have the <stdlib.h> header file. */
114 #undef HAVE_STDLIB_H
115
116 /* Define to 1 if you have the `stpcpy' function. */
117 #undef HAVE_STPCPY
118
119 /* Define to 1 if you have the <strings.h> header file. */
120 #undef HAVE_STRINGS_H
121
122 /* Define to 1 if you have the <string.h> header file. */
123 #undef HAVE_STRING_H
124
125 /* Define to 1 if you have the <sys/mman.h> header file. */
126 #undef HAVE_SYS_MMAN_H
127
128 /* Define to 1 if you have the <sys/stat.h> header file. */
129 #undef HAVE_SYS_STAT_H
130
131 /* Define to 1 if you have the <sys/types.h> header file. */
132 #undef HAVE_SYS_TYPES_H
133
134 /* Defined if a `ulong' is typedef'd */
135 #undef HAVE_ULONG_TYPEDEF
136
137 /* Define to 1 if you have the <unistd.h> header file. */
138 #undef HAVE_UNISTD_H
139
140 /* Define the to the minimum amount of time (m) a credential will have to be
141 valid before we'll ask the user to get fresh credentials. */
142 #undef MINUTES_BEFORE_PROMPTING
143
144 /* Name of package */
145 #undef PACKAGE
146
147 /* Define to the address where bug reports for this package should be sent. */
148 #undef PACKAGE_BUGREPORT
149
150 /* Define to the full name of this package. */
151 #undef PACKAGE_NAME
152
153 /* Define to the full name and version of this package. */
154 #undef PACKAGE_STRING
155
156 /* Define to the one symbol short name of this package. */
157 #undef PACKAGE_TARNAME
158
159 /* Define to the version of this package. */
160 #undef PACKAGE_VERSION
161
162 /* Define to 1 if you have the ANSI C header files. */
163 #undef STDC_HEADERS
164
165 /* The capabilities support library is installed */
166 #undef USE_CAPABILITIES
167
168 /* Version number of package */
169 #undef VERSION
170
171 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
172 `char[]'. */
173 #undef YYTEXT_POINTER
+0
-1658
config.sub less more
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2008-01-16'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted ChangeLog entry.
35 #
36 # Configuration subroutine to validate and canonicalize a configuration type.
37 # Supply the specified configuration type as an argument.
38 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # This file is supposed to be the same for all GNU packages
42 # and recognize all the CPU types, system types and aliases
43 # that are meaningful with *any* GNU software.
44 # Each package is responsible for reporting which valid configurations
45 # it does not support. The user should be able to distinguish
46 # a failure to support a valid configuration from a meaningless
47 # configuration.
48
49 # The goal of this file is to map all the various variations of a given
50 # machine specification into a single specification in the form:
51 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
52 # or in some cases, the newer four-part form:
53 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
54 # It is wrong to echo any other type of specification.
55
56 me=`echo "$0" | sed -e 's,.*/,,'`
57
58 usage="\
59 Usage: $0 [OPTION] CPU-MFR-OPSYS
60 $0 [OPTION] ALIAS
61
62 Canonicalize a configuration name.
63
64 Operation modes:
65 -h, --help print this help, then exit
66 -t, --time-stamp print date of last modification, then exit
67 -v, --version print version number, then exit
68
69 Report bugs and patches to <config-patches@gnu.org>."
70
71 version="\
72 GNU config.sub ($timestamp)
73
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
75 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
76
77 This is free software; see the source for copying conditions. There is NO
78 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
79
80 help="
81 Try \`$me --help' for more information."
82
83 # Parse command line
84 while test $# -gt 0 ; do
85 case $1 in
86 --time-stamp | --time* | -t )
87 echo "$timestamp" ; exit ;;
88 --version | -v )
89 echo "$version" ; exit ;;
90 --help | --h* | -h )
91 echo "$usage"; exit ;;
92 -- ) # Stop option processing
93 shift; break ;;
94 - ) # Use stdin as input.
95 break ;;
96 -* )
97 echo "$me: invalid option $1$help"
98 exit 1 ;;
99
100 *local*)
101 # First pass through any local machine types.
102 echo $1
103 exit ;;
104
105 * )
106 break ;;
107 esac
108 done
109
110 case $# in
111 0) echo "$me: missing argument$help" >&2
112 exit 1;;
113 1) ;;
114 *) echo "$me: too many arguments$help" >&2
115 exit 1;;
116 esac
117
118 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
119 # Here we must recognize all the valid KERNEL-OS combinations.
120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121 case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 storm-chaos* | os2-emx* | rtmk-nova*)
125 os=-$maybe_os
126 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
127 ;;
128 *)
129 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
130 if [ $basic_machine != $1 ]
131 then os=`echo $1 | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
134 esac
135
136 ### Let's recognize common machines as not being operating systems so
137 ### that things like config.sub decstation-3100 work. We also
138 ### recognize some manufacturers as not being operating systems, so we
139 ### can provide default operating systems below.
140 case $os in
141 -sun*os*)
142 # Prevent following clause from handling this invalid input.
143 ;;
144 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis | -knuth | -cray)
151 os=
152 basic_machine=$1
153 ;;
154 -sim | -cisco | -oki | -wec | -winbond)
155 os=
156 basic_machine=$1
157 ;;
158 -scout)
159 ;;
160 -wrs)
161 os=-vxworks
162 basic_machine=$1
163 ;;
164 -chorusos*)
165 os=-chorusos
166 basic_machine=$1
167 ;;
168 -chorusrdb)
169 os=-chorusrdb
170 basic_machine=$1
171 ;;
172 -hiux*)
173 os=-hiuxwe2
174 ;;
175 -sco6)
176 os=-sco5v6
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
178 ;;
179 -sco5)
180 os=-sco3.2v5
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182 ;;
183 -sco4)
184 os=-sco3.2v4
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco3.2.[4-9]*)
188 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco3.2v[4-9]*)
192 # Don't forget version if it is 3.2v4 or newer.
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco5v6*)
196 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco*)
200 os=-sco3.2v2
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -udk*)
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -isc)
207 os=-isc2.2
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -clix*)
211 basic_machine=clipper-intergraph
212 ;;
213 -isc*)
214 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
215 ;;
216 -lynx*)
217 os=-lynxos
218 ;;
219 -ptx*)
220 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
221 ;;
222 -windowsnt*)
223 os=`echo $os | sed -e 's/windowsnt/winnt/'`
224 ;;
225 -psos*)
226 os=-psos
227 ;;
228 -mint | -mint[0-9]*)
229 basic_machine=m68k-atari
230 os=-mint
231 ;;
232 esac
233
234 # Decode aliases for certain CPU-COMPANY combinations.
235 case $basic_machine in
236 # Recognize the basic CPU types without company name.
237 # Some are omitted here because they have special meanings below.
238 1750a | 580 \
239 | a29k \
240 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
241 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
242 | am33_2.0 \
243 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
244 | bfin \
245 | c4x | clipper \
246 | d10v | d30v | dlx | dsp16xx \
247 | fido | fr30 | frv \
248 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
249 | i370 | i860 | i960 | ia64 \
250 | ip2k | iq2000 \
251 | m32c | m32r | m32rle | m68000 | m68k | m88k \
252 | maxq | mb | microblaze | mcore | mep \
253 | mips | mipsbe | mipseb | mipsel | mipsle \
254 | mips16 \
255 | mips64 | mips64el \
256 | mips64vr | mips64vrel \
257 | mips64orion | mips64orionel \
258 | mips64vr4100 | mips64vr4100el \
259 | mips64vr4300 | mips64vr4300el \
260 | mips64vr5000 | mips64vr5000el \
261 | mips64vr5900 | mips64vr5900el \
262 | mipsisa32 | mipsisa32el \
263 | mipsisa32r2 | mipsisa32r2el \
264 | mipsisa64 | mipsisa64el \
265 | mipsisa64r2 | mipsisa64r2el \
266 | mipsisa64sb1 | mipsisa64sb1el \
267 | mipsisa64sr71k | mipsisa64sr71kel \
268 | mipstx39 | mipstx39el \
269 | mn10200 | mn10300 \
270 | mt \
271 | msp430 \
272 | nios | nios2 \
273 | ns16k | ns32k \
274 | or32 \
275 | pdp10 | pdp11 | pj | pjl \
276 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
277 | pyramid \
278 | score \
279 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
280 | sh64 | sh64le \
281 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
282 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
283 | spu | strongarm \
284 | tahoe | thumb | tic4x | tic80 | tron \
285 | v850 | v850e \
286 | we32k \
287 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
288 | z8k)
289 basic_machine=$basic_machine-unknown
290 ;;
291 m6811 | m68hc11 | m6812 | m68hc12)
292 # Motorola 68HC11/12.
293 basic_machine=$basic_machine-unknown
294 os=-none
295 ;;
296 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
297 ;;
298 ms1)
299 basic_machine=mt-unknown
300 ;;
301
302 # We use `pc' rather than `unknown'
303 # because (1) that's what they normally are, and
304 # (2) the word "unknown" tends to confuse beginning users.
305 i*86 | x86_64)
306 basic_machine=$basic_machine-pc
307 ;;
308 # Object if more than one company name word.
309 *-*-*)
310 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
311 exit 1
312 ;;
313 # Recognize the basic CPU types with company name.
314 580-* \
315 | a29k-* \
316 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
317 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
318 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
319 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
320 | avr-* | avr32-* \
321 | bfin-* | bs2000-* \
322 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
323 | clipper-* | craynv-* | cydra-* \
324 | d10v-* | d30v-* | dlx-* \
325 | elxsi-* \
326 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
327 | h8300-* | h8500-* \
328 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
329 | i*86-* | i860-* | i960-* | ia64-* \
330 | ip2k-* | iq2000-* \
331 | m32c-* | m32r-* | m32rle-* \
332 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
333 | m88110-* | m88k-* | maxq-* | mcore-* \
334 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
335 | mips16-* \
336 | mips64-* | mips64el-* \
337 | mips64vr-* | mips64vrel-* \
338 | mips64orion-* | mips64orionel-* \
339 | mips64vr4100-* | mips64vr4100el-* \
340 | mips64vr4300-* | mips64vr4300el-* \
341 | mips64vr5000-* | mips64vr5000el-* \
342 | mips64vr5900-* | mips64vr5900el-* \
343 | mipsisa32-* | mipsisa32el-* \
344 | mipsisa32r2-* | mipsisa32r2el-* \
345 | mipsisa64-* | mipsisa64el-* \
346 | mipsisa64r2-* | mipsisa64r2el-* \
347 | mipsisa64sb1-* | mipsisa64sb1el-* \
348 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
349 | mipstx39-* | mipstx39el-* \
350 | mmix-* \
351 | mt-* \
352 | msp430-* \
353 | nios-* | nios2-* \
354 | none-* | np1-* | ns16k-* | ns32k-* \
355 | orion-* \
356 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
357 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
358 | pyramid-* \
359 | romp-* | rs6000-* \
360 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
361 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
362 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
363 | sparclite-* \
364 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
365 | tahoe-* | thumb-* \
366 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
367 | tron-* \
368 | v850-* | v850e-* | vax-* \
369 | we32k-* \
370 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
371 | xstormy16-* | xtensa*-* \
372 | ymp-* \
373 | z8k-*)
374 ;;
375 # Recognize the basic CPU types without company name, with glob match.
376 xtensa*)
377 basic_machine=$basic_machine-unknown
378 ;;
379 # Recognize the various machine names and aliases which stand
380 # for a CPU type and a company and sometimes even an OS.
381 386bsd)
382 basic_machine=i386-unknown
383 os=-bsd
384 ;;
385 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
386 basic_machine=m68000-att
387 ;;
388 3b*)
389 basic_machine=we32k-att
390 ;;
391 a29khif)
392 basic_machine=a29k-amd
393 os=-udi
394 ;;
395 abacus)
396 basic_machine=abacus-unknown
397 ;;
398 adobe68k)
399 basic_machine=m68010-adobe
400 os=-scout
401 ;;
402 alliant | fx80)
403 basic_machine=fx80-alliant
404 ;;
405 altos | altos3068)
406 basic_machine=m68k-altos
407 ;;
408 am29k)
409 basic_machine=a29k-none
410 os=-bsd
411 ;;
412 amd64)
413 basic_machine=x86_64-pc
414 ;;
415 amd64-*)
416 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
417 ;;
418 amdahl)
419 basic_machine=580-amdahl
420 os=-sysv
421 ;;
422 amiga | amiga-*)
423 basic_machine=m68k-unknown
424 ;;
425 amigaos | amigados)
426 basic_machine=m68k-unknown
427 os=-amigaos
428 ;;
429 amigaunix | amix)
430 basic_machine=m68k-unknown
431 os=-sysv4
432 ;;
433 apollo68)
434 basic_machine=m68k-apollo
435 os=-sysv
436 ;;
437 apollo68bsd)
438 basic_machine=m68k-apollo
439 os=-bsd
440 ;;
441 aux)
442 basic_machine=m68k-apple
443 os=-aux
444 ;;
445 balance)
446 basic_machine=ns32k-sequent
447 os=-dynix
448 ;;
449 blackfin)
450 basic_machine=bfin-unknown
451 os=-linux
452 ;;
453 blackfin-*)
454 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
455 os=-linux
456 ;;
457 c90)
458 basic_machine=c90-cray
459 os=-unicos
460 ;;
461 convex-c1)
462 basic_machine=c1-convex
463 os=-bsd
464 ;;
465 convex-c2)
466 basic_machine=c2-convex
467 os=-bsd
468 ;;
469 convex-c32)
470 basic_machine=c32-convex
471 os=-bsd
472 ;;
473 convex-c34)
474 basic_machine=c34-convex
475 os=-bsd
476 ;;
477 convex-c38)
478 basic_machine=c38-convex
479 os=-bsd
480 ;;
481 cray | j90)
482 basic_machine=j90-cray
483 os=-unicos
484 ;;
485 craynv)
486 basic_machine=craynv-cray
487 os=-unicosmp
488 ;;
489 cr16)
490 basic_machine=cr16-unknown
491 os=-elf
492 ;;
493 crds | unos)
494 basic_machine=m68k-crds
495 ;;
496 crisv32 | crisv32-* | etraxfs*)
497 basic_machine=crisv32-axis
498 ;;
499 cris | cris-* | etrax*)
500 basic_machine=cris-axis
501 ;;
502 crx)
503 basic_machine=crx-unknown
504 os=-elf
505 ;;
506 da30 | da30-*)
507 basic_machine=m68k-da30
508 ;;
509 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
510 basic_machine=mips-dec
511 ;;
512 decsystem10* | dec10*)
513 basic_machine=pdp10-dec
514 os=-tops10
515 ;;
516 decsystem20* | dec20*)
517 basic_machine=pdp10-dec
518 os=-tops20
519 ;;
520 delta | 3300 | motorola-3300 | motorola-delta \
521 | 3300-motorola | delta-motorola)
522 basic_machine=m68k-motorola
523 ;;
524 delta88)
525 basic_machine=m88k-motorola
526 os=-sysv3
527 ;;
528 djgpp)
529 basic_machine=i586-pc
530 os=-msdosdjgpp
531 ;;
532 dpx20 | dpx20-*)
533 basic_machine=rs6000-bull
534 os=-bosx
535 ;;
536 dpx2* | dpx2*-bull)
537 basic_machine=m68k-bull
538 os=-sysv3
539 ;;
540 ebmon29k)
541 basic_machine=a29k-amd
542 os=-ebmon
543 ;;
544 elxsi)
545 basic_machine=elxsi-elxsi
546 os=-bsd
547 ;;
548 encore | umax | mmax)
549 basic_machine=ns32k-encore
550 ;;
551 es1800 | OSE68k | ose68k | ose | OSE)
552 basic_machine=m68k-ericsson
553 os=-ose
554 ;;
555 fx2800)
556 basic_machine=i860-alliant
557 ;;
558 genix)
559 basic_machine=ns32k-ns
560 ;;
561 gmicro)
562 basic_machine=tron-gmicro
563 os=-sysv
564 ;;
565 go32)
566 basic_machine=i386-pc
567 os=-go32
568 ;;
569 h3050r* | hiux*)
570 basic_machine=hppa1.1-hitachi
571 os=-hiuxwe2
572 ;;
573 h8300hms)
574 basic_machine=h8300-hitachi
575 os=-hms
576 ;;
577 h8300xray)
578 basic_machine=h8300-hitachi
579 os=-xray
580 ;;
581 h8500hms)
582 basic_machine=h8500-hitachi
583 os=-hms
584 ;;
585 harris)
586 basic_machine=m88k-harris
587 os=-sysv3
588 ;;
589 hp300-*)
590 basic_machine=m68k-hp
591 ;;
592 hp300bsd)
593 basic_machine=m68k-hp
594 os=-bsd
595 ;;
596 hp300hpux)
597 basic_machine=m68k-hp
598 os=-hpux
599 ;;
600 hp3k9[0-9][0-9] | hp9[0-9][0-9])
601 basic_machine=hppa1.0-hp
602 ;;
603 hp9k2[0-9][0-9] | hp9k31[0-9])
604 basic_machine=m68000-hp
605 ;;
606 hp9k3[2-9][0-9])
607 basic_machine=m68k-hp
608 ;;
609 hp9k6[0-9][0-9] | hp6[0-9][0-9])
610 basic_machine=hppa1.0-hp
611 ;;
612 hp9k7[0-79][0-9] | hp7[0-79][0-9])
613 basic_machine=hppa1.1-hp
614 ;;
615 hp9k78[0-9] | hp78[0-9])
616 # FIXME: really hppa2.0-hp
617 basic_machine=hppa1.1-hp
618 ;;
619 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
620 # FIXME: really hppa2.0-hp
621 basic_machine=hppa1.1-hp
622 ;;
623 hp9k8[0-9][13679] | hp8[0-9][13679])
624 basic_machine=hppa1.1-hp
625 ;;
626 hp9k8[0-9][0-9] | hp8[0-9][0-9])
627 basic_machine=hppa1.0-hp
628 ;;
629 hppa-next)
630 os=-nextstep3
631 ;;
632 hppaosf)
633 basic_machine=hppa1.1-hp
634 os=-osf
635 ;;
636 hppro)
637 basic_machine=hppa1.1-hp
638 os=-proelf
639 ;;
640 i370-ibm* | ibm*)
641 basic_machine=i370-ibm
642 ;;
643 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
644 i*86v32)
645 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
646 os=-sysv32
647 ;;
648 i*86v4*)
649 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
650 os=-sysv4
651 ;;
652 i*86v)
653 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
654 os=-sysv
655 ;;
656 i*86sol2)
657 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
658 os=-solaris2
659 ;;
660 i386mach)
661 basic_machine=i386-mach
662 os=-mach
663 ;;
664 i386-vsta | vsta)
665 basic_machine=i386-unknown
666 os=-vsta
667 ;;
668 iris | iris4d)
669 basic_machine=mips-sgi
670 case $os in
671 -irix*)
672 ;;
673 *)
674 os=-irix4
675 ;;
676 esac
677 ;;
678 isi68 | isi)
679 basic_machine=m68k-isi
680 os=-sysv
681 ;;
682 m68knommu)
683 basic_machine=m68k-unknown
684 os=-linux
685 ;;
686 m68knommu-*)
687 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
688 os=-linux
689 ;;
690 m88k-omron*)
691 basic_machine=m88k-omron
692 ;;
693 magnum | m3230)
694 basic_machine=mips-mips
695 os=-sysv
696 ;;
697 merlin)
698 basic_machine=ns32k-utek
699 os=-sysv
700 ;;
701 mingw32)
702 basic_machine=i386-pc
703 os=-mingw32
704 ;;
705 mingw32ce)
706 basic_machine=arm-unknown
707 os=-mingw32ce
708 ;;
709 miniframe)
710 basic_machine=m68000-convergent
711 ;;
712 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
713 basic_machine=m68k-atari
714 os=-mint
715 ;;
716 mips3*-*)
717 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
718 ;;
719 mips3*)
720 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
721 ;;
722 monitor)
723 basic_machine=m68k-rom68k
724 os=-coff
725 ;;
726 morphos)
727 basic_machine=powerpc-unknown
728 os=-morphos
729 ;;
730 msdos)
731 basic_machine=i386-pc
732 os=-msdos
733 ;;
734 ms1-*)
735 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
736 ;;
737 mvs)
738 basic_machine=i370-ibm
739 os=-mvs
740 ;;
741 ncr3000)
742 basic_machine=i486-ncr
743 os=-sysv4
744 ;;
745 netbsd386)
746 basic_machine=i386-unknown
747 os=-netbsd
748 ;;
749 netwinder)
750 basic_machine=armv4l-rebel
751 os=-linux
752 ;;
753 news | news700 | news800 | news900)
754 basic_machine=m68k-sony
755 os=-newsos
756 ;;
757 news1000)
758 basic_machine=m68030-sony
759 os=-newsos
760 ;;
761 news-3600 | risc-news)
762 basic_machine=mips-sony
763 os=-newsos
764 ;;
765 necv70)
766 basic_machine=v70-nec
767 os=-sysv
768 ;;
769 next | m*-next )
770 basic_machine=m68k-next
771 case $os in
772 -nextstep* )
773 ;;
774 -ns2*)
775 os=-nextstep2
776 ;;
777 *)
778 os=-nextstep3
779 ;;
780 esac
781 ;;
782 nh3000)
783 basic_machine=m68k-harris
784 os=-cxux
785 ;;
786 nh[45]000)
787 basic_machine=m88k-harris
788 os=-cxux
789 ;;
790 nindy960)
791 basic_machine=i960-intel
792 os=-nindy
793 ;;
794 mon960)
795 basic_machine=i960-intel
796 os=-mon960
797 ;;
798 nonstopux)
799 basic_machine=mips-compaq
800 os=-nonstopux
801 ;;
802 np1)
803 basic_machine=np1-gould
804 ;;
805 nsr-tandem)
806 basic_machine=nsr-tandem
807 ;;
808 op50n-* | op60c-*)
809 basic_machine=hppa1.1-oki
810 os=-proelf
811 ;;
812 openrisc | openrisc-*)
813 basic_machine=or32-unknown
814 ;;
815 os400)
816 basic_machine=powerpc-ibm
817 os=-os400
818 ;;
819 OSE68000 | ose68000)
820 basic_machine=m68000-ericsson
821 os=-ose
822 ;;
823 os68k)
824 basic_machine=m68k-none
825 os=-os68k
826 ;;
827 pa-hitachi)
828 basic_machine=hppa1.1-hitachi
829 os=-hiuxwe2
830 ;;
831 paragon)
832 basic_machine=i860-intel
833 os=-osf
834 ;;
835 parisc)
836 basic_machine=hppa-unknown
837 os=-linux
838 ;;
839 parisc-*)
840 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
841 os=-linux
842 ;;
843 pbd)
844 basic_machine=sparc-tti
845 ;;
846 pbb)
847 basic_machine=m68k-tti
848 ;;
849 pc532 | pc532-*)
850 basic_machine=ns32k-pc532
851 ;;
852 pc98)
853 basic_machine=i386-pc
854 ;;
855 pc98-*)
856 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
857 ;;
858 pentium | p5 | k5 | k6 | nexgen | viac3)
859 basic_machine=i586-pc
860 ;;
861 pentiumpro | p6 | 6x86 | athlon | athlon_*)
862 basic_machine=i686-pc
863 ;;
864 pentiumii | pentium2 | pentiumiii | pentium3)
865 basic_machine=i686-pc
866 ;;
867 pentium4)
868 basic_machine=i786-pc
869 ;;
870 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
871 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
872 ;;
873 pentiumpro-* | p6-* | 6x86-* | athlon-*)
874 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
875 ;;
876 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
877 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
878 ;;
879 pentium4-*)
880 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
881 ;;
882 pn)
883 basic_machine=pn-gould
884 ;;
885 power) basic_machine=power-ibm
886 ;;
887 ppc) basic_machine=powerpc-unknown
888 ;;
889 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
890 ;;
891 ppcle | powerpclittle | ppc-le | powerpc-little)
892 basic_machine=powerpcle-unknown
893 ;;
894 ppcle-* | powerpclittle-*)
895 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
896 ;;
897 ppc64) basic_machine=powerpc64-unknown
898 ;;
899 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
900 ;;
901 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
902 basic_machine=powerpc64le-unknown
903 ;;
904 ppc64le-* | powerpc64little-*)
905 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
906 ;;
907 ps2)
908 basic_machine=i386-ibm
909 ;;
910 pw32)
911 basic_machine=i586-unknown
912 os=-pw32
913 ;;
914 rdos)
915 basic_machine=i386-pc
916 os=-rdos
917 ;;
918 rom68k)
919 basic_machine=m68k-rom68k
920 os=-coff
921 ;;
922 rm[46]00)
923 basic_machine=mips-siemens
924 ;;
925 rtpc | rtpc-*)
926 basic_machine=romp-ibm
927 ;;
928 s390 | s390-*)
929 basic_machine=s390-ibm
930 ;;
931 s390x | s390x-*)
932 basic_machine=s390x-ibm
933 ;;
934 sa29200)
935 basic_machine=a29k-amd
936 os=-udi
937 ;;
938 sb1)
939 basic_machine=mipsisa64sb1-unknown
940 ;;
941 sb1el)
942 basic_machine=mipsisa64sb1el-unknown
943 ;;
944 sde)
945 basic_machine=mipsisa32-sde
946 os=-elf
947 ;;
948 sei)
949 basic_machine=mips-sei
950 os=-seiux
951 ;;
952 sequent)
953 basic_machine=i386-sequent
954 ;;
955 sh)
956 basic_machine=sh-hitachi
957 os=-hms
958 ;;
959 sh5el)
960 basic_machine=sh5le-unknown
961 ;;
962 sh64)
963 basic_machine=sh64-unknown
964 ;;
965 sparclite-wrs | simso-wrs)
966 basic_machine=sparclite-wrs
967 os=-vxworks
968 ;;
969 sps7)
970 basic_machine=m68k-bull
971 os=-sysv2
972 ;;
973 spur)
974 basic_machine=spur-unknown
975 ;;
976 st2000)
977 basic_machine=m68k-tandem
978 ;;
979 stratus)
980 basic_machine=i860-stratus
981 os=-sysv4
982 ;;
983 sun2)
984 basic_machine=m68000-sun
985 ;;
986 sun2os3)
987 basic_machine=m68000-sun
988 os=-sunos3
989 ;;
990 sun2os4)
991 basic_machine=m68000-sun
992 os=-sunos4
993 ;;
994 sun3os3)
995 basic_machine=m68k-sun
996 os=-sunos3
997 ;;
998 sun3os4)
999 basic_machine=m68k-sun
1000 os=-sunos4
1001 ;;
1002 sun4os3)
1003 basic_machine=sparc-sun
1004 os=-sunos3
1005 ;;
1006 sun4os4)
1007 basic_machine=sparc-sun
1008 os=-sunos4
1009 ;;
1010 sun4sol2)
1011 basic_machine=sparc-sun
1012 os=-solaris2
1013 ;;
1014 sun3 | sun3-*)
1015 basic_machine=m68k-sun
1016 ;;
1017 sun4)
1018 basic_machine=sparc-sun
1019 ;;
1020 sun386 | sun386i | roadrunner)
1021 basic_machine=i386-sun
1022 ;;
1023 sv1)
1024 basic_machine=sv1-cray
1025 os=-unicos
1026 ;;
1027 symmetry)
1028 basic_machine=i386-sequent
1029 os=-dynix
1030 ;;
1031 t3e)
1032 basic_machine=alphaev5-cray
1033 os=-unicos
1034 ;;
1035 t90)
1036 basic_machine=t90-cray
1037 os=-unicos
1038 ;;
1039 tic54x | c54x*)
1040 basic_machine=tic54x-unknown
1041 os=-coff
1042 ;;
1043 tic55x | c55x*)
1044 basic_machine=tic55x-unknown
1045 os=-coff
1046 ;;
1047 tic6x | c6x*)
1048 basic_machine=tic6x-unknown
1049 os=-coff
1050 ;;
1051 tile*)
1052 basic_machine=tile-unknown
1053 os=-linux-gnu
1054 ;;
1055 tx39)
1056 basic_machine=mipstx39-unknown
1057 ;;
1058 tx39el)
1059 basic_machine=mipstx39el-unknown
1060 ;;
1061 toad1)
1062 basic_machine=pdp10-xkl
1063 os=-tops20
1064 ;;
1065 tower | tower-32)
1066 basic_machine=m68k-ncr
1067 ;;
1068 tpf)
1069 basic_machine=s390x-ibm
1070 os=-tpf
1071 ;;
1072 udi29k)
1073 basic_machine=a29k-amd
1074 os=-udi
1075 ;;
1076 ultra3)
1077 basic_machine=a29k-nyu
1078 os=-sym1
1079 ;;
1080 v810 | necv810)
1081 basic_machine=v810-nec
1082 os=-none
1083 ;;
1084 vaxv)
1085 basic_machine=vax-dec
1086 os=-sysv
1087 ;;
1088 vms)
1089 basic_machine=vax-dec
1090 os=-vms
1091 ;;
1092 vpp*|vx|vx-*)
1093 basic_machine=f301-fujitsu
1094 ;;
1095 vxworks960)
1096 basic_machine=i960-wrs
1097 os=-vxworks
1098 ;;
1099 vxworks68)
1100 basic_machine=m68k-wrs
1101 os=-vxworks
1102 ;;
1103 vxworks29k)
1104 basic_machine=a29k-wrs
1105 os=-vxworks
1106 ;;
1107 w65*)
1108 basic_machine=w65-wdc
1109 os=-none
1110 ;;
1111 w89k-*)
1112 basic_machine=hppa1.1-winbond
1113 os=-proelf
1114 ;;
1115 xbox)
1116 basic_machine=i686-pc
1117 os=-mingw32
1118 ;;
1119 xps | xps100)
1120 basic_machine=xps100-honeywell
1121 ;;
1122 ymp)
1123 basic_machine=ymp-cray
1124 os=-unicos
1125 ;;
1126 z8k-*-coff)
1127 basic_machine=z8k-unknown
1128 os=-sim
1129 ;;
1130 none)
1131 basic_machine=none-none
1132 os=-none
1133 ;;
1134
1135 # Here we handle the default manufacturer of certain CPU types. It is in
1136 # some cases the only manufacturer, in others, it is the most popular.
1137 w89k)
1138 basic_machine=hppa1.1-winbond
1139 ;;
1140 op50n)
1141 basic_machine=hppa1.1-oki
1142 ;;
1143 op60c)
1144 basic_machine=hppa1.1-oki
1145 ;;
1146 romp)
1147 basic_machine=romp-ibm
1148 ;;
1149 mmix)
1150 basic_machine=mmix-knuth
1151 ;;
1152 rs6000)
1153 basic_machine=rs6000-ibm
1154 ;;
1155 vax)
1156 basic_machine=vax-dec
1157 ;;
1158 pdp10)
1159 # there are many clones, so DEC is not a safe bet
1160 basic_machine=pdp10-unknown
1161 ;;
1162 pdp11)
1163 basic_machine=pdp11-dec
1164 ;;
1165 we32k)
1166 basic_machine=we32k-att
1167 ;;
1168 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1169 basic_machine=sh-unknown
1170 ;;
1171 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1172 basic_machine=sparc-sun
1173 ;;
1174 cydra)
1175 basic_machine=cydra-cydrome
1176 ;;
1177 orion)
1178 basic_machine=orion-highlevel
1179 ;;
1180 orion105)
1181 basic_machine=clipper-highlevel
1182 ;;
1183 mac | mpw | mac-mpw)
1184 basic_machine=m68k-apple
1185 ;;
1186 pmac | pmac-mpw)
1187 basic_machine=powerpc-apple
1188 ;;
1189 *-unknown)
1190 # Make sure to match an already-canonicalized machine name.
1191 ;;
1192 *)
1193 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1194 exit 1
1195 ;;
1196 esac
1197
1198 # Here we canonicalize certain aliases for manufacturers.
1199 case $basic_machine in
1200 *-digital*)
1201 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1202 ;;
1203 *-commodore*)
1204 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1205 ;;
1206 *)
1207 ;;
1208 esac
1209
1210 # Decode manufacturer-specific aliases for certain operating systems.
1211
1212 if [ x"$os" != x"" ]
1213 then
1214 case $os in
1215 # First match some system type aliases
1216 # that might get confused with valid system types.
1217 # -solaris* is a basic system type, with this one exception.
1218 -solaris1 | -solaris1.*)
1219 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1220 ;;
1221 -solaris)
1222 os=-solaris2
1223 ;;
1224 -svr4*)
1225 os=-sysv4
1226 ;;
1227 -unixware*)
1228 os=-sysv4.2uw
1229 ;;
1230 -gnu/linux*)
1231 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1232 ;;
1233 # First accept the basic system types.
1234 # The portable systems comes first.
1235 # Each alternative MUST END IN A *, to match a version number.
1236 # -sysv* is not here because it comes later, after sysvr4.
1237 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1238 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1239 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1240 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1241 | -aos* \
1242 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1243 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1244 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1245 | -openbsd* | -solidbsd* \
1246 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1247 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1248 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1249 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1250 | -chorusos* | -chorusrdb* \
1251 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1252 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1253 | -uxpv* | -beos* | -mpeix* | -udk* \
1254 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1255 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1256 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1257 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1258 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1259 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1260 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1261 # Remember, each alternative MUST END IN *, to match a version number.
1262 ;;
1263 -qnx*)
1264 case $basic_machine in
1265 x86-* | i*86-*)
1266 ;;
1267 *)
1268 os=-nto$os
1269 ;;
1270 esac
1271 ;;
1272 -nto-qnx*)
1273 ;;
1274 -nto*)
1275 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1276 ;;
1277 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1278 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1279 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1280 ;;
1281 -mac*)
1282 os=`echo $os | sed -e 's|mac|macos|'`
1283 ;;
1284 -linux-dietlibc)
1285 os=-linux-dietlibc
1286 ;;
1287 -linux*)
1288 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1289 ;;
1290 -sunos5*)
1291 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1292 ;;
1293 -sunos6*)
1294 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1295 ;;
1296 -opened*)
1297 os=-openedition
1298 ;;
1299 -os400*)
1300 os=-os400
1301 ;;
1302 -wince*)
1303 os=-wince
1304 ;;
1305 -osfrose*)
1306 os=-osfrose
1307 ;;
1308 -osf*)
1309 os=-osf
1310 ;;
1311 -utek*)
1312 os=-bsd
1313 ;;
1314 -dynix*)
1315 os=-bsd
1316 ;;
1317 -acis*)
1318 os=-aos
1319 ;;
1320 -atheos*)
1321 os=-atheos
1322 ;;
1323 -syllable*)
1324 os=-syllable
1325 ;;
1326 -386bsd)
1327 os=-bsd
1328 ;;
1329 -ctix* | -uts*)
1330 os=-sysv
1331 ;;
1332 -nova*)
1333 os=-rtmk-nova
1334 ;;
1335 -ns2 )
1336 os=-nextstep2
1337 ;;
1338 -nsk*)
1339 os=-nsk
1340 ;;
1341 # Preserve the version number of sinix5.
1342 -sinix5.*)
1343 os=`echo $os | sed -e 's|sinix|sysv|'`
1344 ;;
1345 -sinix*)
1346 os=-sysv4
1347 ;;
1348 -tpf*)
1349 os=-tpf
1350 ;;
1351 -triton*)
1352 os=-sysv3
1353 ;;
1354 -oss*)
1355 os=-sysv3
1356 ;;
1357 -svr4)
1358 os=-sysv4
1359 ;;
1360 -svr3)
1361 os=-sysv3
1362 ;;
1363 -sysvr4)
1364 os=-sysv4
1365 ;;
1366 # This must come after -sysvr4.
1367 -sysv*)
1368 ;;
1369 -ose*)
1370 os=-ose
1371 ;;
1372 -es1800*)
1373 os=-ose
1374 ;;
1375 -xenix)
1376 os=-xenix
1377 ;;
1378 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1379 os=-mint
1380 ;;
1381 -aros*)
1382 os=-aros
1383 ;;
1384 -kaos*)
1385 os=-kaos
1386 ;;
1387 -zvmoe)
1388 os=-zvmoe
1389 ;;
1390 -none)
1391 ;;
1392 *)
1393 # Get rid of the `-' at the beginning of $os.
1394 os=`echo $os | sed 's/[^-]*-//'`
1395 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1396 exit 1
1397 ;;
1398 esac
1399 else
1400
1401 # Here we handle the default operating systems that come with various machines.
1402 # The value should be what the vendor currently ships out the door with their
1403 # machine or put another way, the most popular os provided with the machine.
1404
1405 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1406 # "-sun"), then you have to tell the case statement up towards the top
1407 # that MANUFACTURER isn't an operating system. Otherwise, code above
1408 # will signal an error saying that MANUFACTURER isn't an operating
1409 # system, and we'll never get to this point.
1410
1411 case $basic_machine in
1412 score-*)
1413 os=-elf
1414 ;;
1415 spu-*)
1416 os=-elf
1417 ;;
1418 *-acorn)
1419 os=-riscix1.2
1420 ;;
1421 arm*-rebel)
1422 os=-linux
1423 ;;
1424 arm*-semi)
1425 os=-aout
1426 ;;
1427 c4x-* | tic4x-*)
1428 os=-coff
1429 ;;
1430 # This must come before the *-dec entry.
1431 pdp10-*)
1432 os=-tops20
1433 ;;
1434 pdp11-*)
1435 os=-none
1436 ;;
1437 *-dec | vax-*)
1438 os=-ultrix4.2
1439 ;;
1440 m68*-apollo)
1441 os=-domain
1442 ;;
1443 i386-sun)
1444 os=-sunos4.0.2
1445 ;;
1446 m68000-sun)
1447 os=-sunos3
1448 # This also exists in the configure program, but was not the
1449 # default.
1450 # os=-sunos4
1451 ;;
1452 m68*-cisco)
1453 os=-aout
1454 ;;
1455 mep-*)
1456 os=-elf
1457 ;;
1458 mips*-cisco)
1459 os=-elf
1460 ;;
1461 mips*-*)
1462 os=-elf
1463 ;;
1464 or32-*)
1465 os=-coff
1466 ;;
1467 *-tti) # must be before sparc entry or we get the wrong os.
1468 os=-sysv3
1469 ;;
1470 sparc-* | *-sun)
1471 os=-sunos4.1.1
1472 ;;
1473 *-be)
1474 os=-beos
1475 ;;
1476 *-haiku)
1477 os=-haiku
1478 ;;
1479 *-ibm)
1480 os=-aix
1481 ;;
1482 *-knuth)
1483 os=-mmixware
1484 ;;
1485 *-wec)
1486 os=-proelf
1487 ;;
1488 *-winbond)
1489 os=-proelf
1490 ;;
1491 *-oki)
1492 os=-proelf
1493 ;;
1494 *-hp)
1495 os=-hpux
1496 ;;
1497 *-hitachi)
1498 os=-hiux
1499 ;;
1500 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1501 os=-sysv
1502 ;;
1503 *-cbm)
1504 os=-amigaos
1505 ;;
1506 *-dg)
1507 os=-dgux
1508 ;;
1509 *-dolphin)
1510 os=-sysv3
1511 ;;
1512 m68k-ccur)
1513 os=-rtu
1514 ;;
1515 m88k-omron*)
1516 os=-luna
1517 ;;
1518 *-next )
1519 os=-nextstep
1520 ;;
1521 *-sequent)
1522 os=-ptx
1523 ;;
1524 *-crds)
1525 os=-unos
1526 ;;
1527 *-ns)
1528 os=-genix
1529 ;;
1530 i370-*)
1531 os=-mvs
1532 ;;
1533 *-next)
1534 os=-nextstep3
1535 ;;
1536 *-gould)
1537 os=-sysv
1538 ;;
1539 *-highlevel)
1540 os=-bsd
1541 ;;
1542 *-encore)
1543 os=-bsd
1544 ;;
1545 *-sgi)
1546 os=-irix
1547 ;;
1548 *-siemens)
1549 os=-sysv4
1550 ;;
1551 *-masscomp)
1552 os=-rtu
1553 ;;
1554 f30[01]-fujitsu | f700-fujitsu)
1555 os=-uxpv
1556 ;;
1557 *-rom68k)
1558 os=-coff
1559 ;;
1560 *-*bug)
1561 os=-coff
1562 ;;
1563 *-apple)
1564 os=-macos
1565 ;;
1566 *-atari*)
1567 os=-mint
1568 ;;
1569 *)
1570 os=-none
1571 ;;
1572 esac
1573 fi
1574
1575 # Here we handle the case where we know the os, and the CPU type, but not the
1576 # manufacturer. We pick the logical manufacturer.
1577 vendor=unknown
1578 case $basic_machine in
1579 *-unknown)
1580 case $os in
1581 -riscix*)
1582 vendor=acorn
1583 ;;
1584 -sunos*)
1585 vendor=sun
1586 ;;
1587 -aix*)
1588 vendor=ibm
1589 ;;
1590 -beos*)
1591 vendor=be
1592 ;;
1593 -hpux*)
1594 vendor=hp
1595 ;;
1596 -mpeix*)
1597 vendor=hp
1598 ;;
1599 -hiux*)
1600 vendor=hitachi
1601 ;;
1602 -unos*)
1603 vendor=crds
1604 ;;
1605 -dgux*)
1606 vendor=dg
1607 ;;
1608 -luna*)
1609 vendor=omron
1610 ;;
1611 -genix*)
1612 vendor=ns
1613 ;;
1614 -mvs* | -opened*)
1615 vendor=ibm
1616 ;;
1617 -os400*)
1618 vendor=ibm
1619 ;;
1620 -ptx*)
1621 vendor=sequent
1622 ;;
1623 -tpf*)
1624 vendor=ibm
1625 ;;
1626 -vxsim* | -vxworks* | -windiss*)
1627 vendor=wrs
1628 ;;
1629 -aux*)
1630 vendor=apple
1631 ;;
1632 -hms*)
1633 vendor=hitachi
1634 ;;
1635 -mpw* | -macos*)
1636 vendor=apple
1637 ;;
1638 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1639 vendor=atari
1640 ;;
1641 -vos*)
1642 vendor=stratus
1643 ;;
1644 esac
1645 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1646 ;;
1647 esac
1648
1649 echo $basic_machine$os
1650 exit
1651
1652 # Local variables:
1653 # eval: (add-hook 'write-file-hooks 'time-stamp)
1654 # time-stamp-start: "timestamp='"
1655 # time-stamp-format: "%:y-%02m-%02d"
1656 # time-stamp-end: "'"
1657 # End:
+0
-26959
configure less more
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.61.
3 #
4 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in
23 *posix*) set -o posix ;;
24 esac
25
26 fi
27
28
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
48 fi
49 rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55 else
56 as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" "" $as_nl"
68
69 # Find who we are. Look in the path if we contain no directory separator.
70 case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81 ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86 as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
106 do
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118 else
119 as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124 else
125 as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
137 q
138 }
139 /^X\/\(\/\/\)$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\).*/{
144 s//\1/
145 q
146 }
147 s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156 else
157 as_have_required=no
158 fi
159
160 if test $as_have_required = yes && (eval ":
161 (as_func_return () {
162 (exit \$1)
163 }
164 as_func_success () {
165 as_func_return 0
166 }
167 as_func_failure () {
168 as_func_return 1
169 }
170 as_func_ret_success () {
171 return 0
172 }
173 as_func_ret_failure () {
174 return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179 :
180 else
181 exitcode=1
182 echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191 :
192 else
193 exitcode=1
194 echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 :
204 else
205 exitcode=1
206 echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217 :
218 else
219 as_candidate_shells=
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 case $as_dir in
226 /*)
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231 done
232 IFS=$as_save_IFS
233
234
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in
248 *posix*) set -o posix ;;
249 esac
250
251 fi
252
253
254 :
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in
269 *posix*) set -o posix ;;
270 esac
271
272 fi
273
274
275 :
276 (as_func_return () {
277 (exit $1)
278 }
279 as_func_success () {
280 as_func_return 0
281 }
282 as_func_failure () {
283 as_func_return 1
284 }
285 as_func_ret_success () {
286 return 0
287 }
288 as_func_ret_failure () {
289 return 1
290 }
291
292 exitcode=0
293 if as_func_success; then
294 :
295 else
296 exitcode=1
297 echo as_func_success failed.
298 fi
299
300 if as_func_failure; then
301 exitcode=1
302 echo as_func_failure succeeded.
303 fi
304
305 if as_func_ret_success; then
306 :
307 else
308 exitcode=1
309 echo as_func_ret_success failed.
310 fi
311
312 if as_func_ret_failure; then
313 exitcode=1
314 echo as_func_ret_failure succeeded.
315 fi
316
317 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 :
319 else
320 exitcode=1
321 echo positional parameters were not saved.
322 fi
323
324 test $exitcode = 0) || { (exit 1); exit 1; }
325
326 (
327 as_lineno_1=$LINENO
328 as_lineno_2=$LINENO
329 test "x$as_lineno_1" != "x$as_lineno_2" &&
330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331
332 _ASEOF
333 }; then
334 break
335 fi
336
337 fi
338
339 done
340
341 if test "x$CONFIG_SHELL" != x; then
342 for as_var in BASH_ENV ENV
343 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 done
345 export CONFIG_SHELL
346 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 fi
348
349
350 if test $as_have_required = no; then
351 echo This script requires a shell more modern than all the
352 echo shells that I found on your system. Please install a
353 echo modern shell, or manually run the script under such a
354 echo shell if you do have one.
355 { (exit 1); exit 1; }
356 fi
357
358
359 fi
360
361 fi
362
363
364
365 (eval "as_func_return () {
366 (exit \$1)
367 }
368 as_func_success () {
369 as_func_return 0
370 }
371 as_func_failure () {
372 as_func_return 1
373 }
374 as_func_ret_success () {
375 return 0
376 }
377 as_func_ret_failure () {
378 return 1
379 }
380
381 exitcode=0
382 if as_func_success; then
383 :
384 else
385 exitcode=1
386 echo as_func_success failed.
387 fi
388
389 if as_func_failure; then
390 exitcode=1
391 echo as_func_failure succeeded.
392 fi
393
394 if as_func_ret_success; then
395 :
396 else
397 exitcode=1
398 echo as_func_ret_success failed.
399 fi
400
401 if as_func_ret_failure; then
402 exitcode=1
403 echo as_func_ret_failure succeeded.
404 fi
405
406 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 :
408 else
409 exitcode=1
410 echo positional parameters were not saved.
411 fi
412
413 test \$exitcode = 0") || {
414 echo No shell found that supports shell functions.
415 echo Please tell autoconf@gnu.org about your system,
416 echo including any error possibly output before this
417 echo message
418 }
419
420
421
422 as_lineno_1=$LINENO
423 as_lineno_2=$LINENO
424 test "x$as_lineno_1" != "x$as_lineno_2" &&
425 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426
427 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
428 # uniformly replaced by the line number. The first 'sed' inserts a
429 # line-number line after each line using $LINENO; the second 'sed'
430 # does the real work. The second script uses 'N' to pair each
431 # line-number line with the line containing $LINENO, and appends
432 # trailing '-' during substitution so that $LINENO is not a special
433 # case at line end.
434 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
435 # scripts with optimization help from Paolo Bonzini. Blame Lee
436 # E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
454 { (exit 1); exit 1; }; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464
465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_dirname=dirname
467 else
468 as_dirname=false
469 fi
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in
473 -n*)
474 case `echo 'x\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 *) ECHO_C='\c';;
477 esac;;
478 *)
479 ECHO_N='-n';;
480 esac
481
482 if expr a : '\(a\)' >/dev/null 2>&1 &&
483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 as_expr=expr
485 else
486 as_expr=false
487 fi
488
489 rm -f conf$$ conf$$.exe conf$$.file
490 if test -d conf$$.dir; then
491 rm -f conf$$.dir/conf$$.file
492 else
493 rm -f conf$$.dir
494 mkdir conf$$.dir
495 fi
496 echo >conf$$.file
497 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s='ln -s'
499 # ... but there are two gotchas:
500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
502 # In both cases, we have to default to `cp -p'.
503 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 as_ln_s='cp -p'
505 elif ln conf$$.file conf$$ 2>/dev/null; then
506 as_ln_s=ln
507 else
508 as_ln_s='cp -p'
509 fi
510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511 rmdir conf$$.dir 2>/dev/null
512
513 if mkdir -p . 2>/dev/null; then
514 as_mkdir_p=:
515 else
516 test -d ./-p && rmdir ./-p
517 as_mkdir_p=false
518 fi
519
520 if test -x / >/dev/null 2>&1; then
521 as_test_x='test -x'
522 else
523 if ls -dL / >/dev/null 2>&1; then
524 as_ls_L_option=L
525 else
526 as_ls_L_option=
527 fi
528 as_test_x='
529 eval sh -c '\''
530 if test -d "$1"; then
531 test -d "$1/.";
532 else
533 case $1 in
534 -*)set "./$1";;
535 esac;
536 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
537 ???[sx]*):;;*)false;;esac;fi
538 '\'' sh
539 '
540 fi
541 as_executable_p=$as_test_x
542
543 # Sed expression to map a string onto a valid CPP name.
544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545
546 # Sed expression to map a string onto a valid variable name.
547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548
549
550
551
552 # Check that we are running under the correct shell.
553 SHELL=${CONFIG_SHELL-/bin/sh}
554
555 case X$ECHO in
556 X*--fallback-echo)
557 # Remove one level of quotation (which was required for Make).
558 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
559 ;;
560 esac
561
562 echo=${ECHO-echo}
563 if test "X$1" = X--no-reexec; then
564 # Discard the --no-reexec flag, and continue.
565 shift
566 elif test "X$1" = X--fallback-echo; then
567 # Avoid inline document here, it may be left over
568 :
569 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
570 # Yippee, $echo works!
571 :
572 else
573 # Restart under the correct shell.
574 exec $SHELL "$0" --no-reexec ${1+"$@"}
575 fi
576
577 if test "X$1" = X--fallback-echo; then
578 # used as fallback echo
579 shift
580 cat <<EOF
581 $*
582 EOF
583 exit 0
584 fi
585
586 # The HP-UX ksh and POSIX shell print the target directory to stdout
587 # if CDPATH is set.
588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
589
590 if test -z "$ECHO"; then
591 if test "X${echo_test_string+set}" != Xset; then
592 # find a string as large as possible, as long as the shell can cope with it
593 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
594 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
595 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
596 echo_test_string=`eval $cmd` &&
597 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
598 then
599 break
600 fi
601 done
602 fi
603
604 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 :
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
612 #
613 # So, first we look for a working echo in the user's PATH.
614
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 echo="$dir/echo"
623 break
624 fi
625 done
626 IFS="$lt_save_ifs"
627
628 if test "X$echo" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 echo='print -r'
635 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 echo='printf %s\n'
646 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
650 :
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 echo="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
668
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
671 then
672 break
673 fi
674 prev="$cmd"
675 done
676
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 echo=echo
684 fi
685 fi
686 fi
687 fi
688 fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 ECHO=$echo
694 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 tagnames=${tagnames+${tagnames},}CXX
702
703 tagnames=${tagnames+${tagnames},}F77
704
705 exec 7<&0 </dev/null 6>&1
706
707 # Name of the host.
708 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
709 # so uname gets run too.
710 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711
712 #
713 # Initializations.
714 #
715 ac_default_prefix=/usr/local
716 ac_clean_files=
717 ac_config_libobj_dir=.
718 LIBOBJS=
719 cross_compiling=no
720 subdirs=
721 MFLAGS=
722 MAKEFLAGS=
723 SHELL=${CONFIG_SHELL-/bin/sh}
724
725 # Identity of this package.
726 PACKAGE_NAME=
727 PACKAGE_TARNAME=
728 PACKAGE_VERSION=
729 PACKAGE_STRING=
730 PACKAGE_BUGREPORT=
731
732 ac_unique_file="src/krb5-auth-dialog.c"
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 # include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 # include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
768
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 am__isrc
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 MAINTAINER_MODE_TRUE
829 MAINTAINER_MODE_FALSE
830 MAINT
831 GETTEXT_PACKAGE
832 CC
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
839 DEPDIR
840 am__include
841 am__quote
842 AMDEP_TRUE
843 AMDEP_FALSE
844 AMDEPBACKSLASH
845 CCDEPMODE
846 am__fastdepCC_TRUE
847 am__fastdepCC_FALSE
848 CPP
849 GREP
850 EGREP
851 build
852 build_cpu
853 build_vendor
854 build_os
855 host
856 host_cpu
857 host_vendor
858 host_os
859 SED
860 LN_S
861 ECHO
862 AR
863 RANLIB
864 DSYMUTIL
865 NMEDIT
866 CXX
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 INTLTOOL_UPDATE
878 INTLTOOL_MERGE
879 INTLTOOL_EXTRACT
880 INTLTOOL_DESKTOP_RULE
881 INTLTOOL_DIRECTORY_RULE
882 INTLTOOL_KEYS_RULE
883 INTLTOOL_PROP_RULE
884 INTLTOOL_OAF_RULE
885 INTLTOOL_PONG_RULE
886 INTLTOOL_SERVER_RULE
887 INTLTOOL_SHEET_RULE
888 INTLTOOL_SOUNDLIST_RULE
889 INTLTOOL_UI_RULE
890 INTLTOOL_XAM_RULE
891 INTLTOOL_KBD_RULE
892 INTLTOOL_XML_RULE
893 INTLTOOL_XML_NOMERGE_RULE
894 INTLTOOL_CAVES_RULE
895 INTLTOOL_SCHEMAS_RULE
896 INTLTOOL_THEME_RULE
897 INTLTOOL_SERVICE_RULE
898 INTLTOOL_POLICY_RULE
899 XGETTEXT
900 MSGMERGE
901 MSGFMT
902 INTLTOOL_PERL
903 ALL_LINGUAS
904 DATADIRNAME
905 LEX
906 LEX_OUTPUT_ROOT
907 LEXLIB
908 YACC
909 YFLAGS
910 USE_NLS
911 MSGFMT_OPTS
912 GMSGFMT
913 CATALOGS
914 CATOBJEXT
915 GMOFILES
916 INSTOBJEXT
917 INTLLIBS
918 PO_IN_DATADIR_TRUE
919 PO_IN_DATADIR_FALSE
920 POFILES
921 POSUB
922 MKINSTALLDIRS
923 PKG_CONFIG
924 GTK_CFLAGS
925 GTK_LIBS
926 GLADE_CFLAGS
927 GLADE_LIBS
928 DBUS_CFLAGS
929 DBUS_LIBS
930 GCONF_CFLAGS
931 GCONF_LIBS
932 KRB5_CONFIG
933 KRB5_CFLAGS
934 KRB5_LIBS
935 ENABLE_PKINIT_TRUE
936 ENABLE_PKINIT_FALSE
937 NETWORK_MANAGER_CFLAGS
938 NETWORK_MANAGER_LIBS
939 ENABLE_NETWORK_MANAGER_TRUE
940 ENABLE_NETWORK_MANAGER_FALSE
941 LIBNOTIFY_CFLAGS
942 LIBNOTIFY_LIBS
943 HAVE_LIBNOTIFY_TRUE
944 HAVE_LIBNOTIFY_FALSE
945 SETCAP
946 LIBCAP
947 check_interval
948 minimum_lifetime
949 LIBOBJS
950 LTLIBOBJS'
951 ac_subst_files=''
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
955 CC
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
960 CPP
961 CXX
962 CXXFLAGS
963 CCC
964 CXXCPP
965 F77
966 FFLAGS
967 YACC
968 YFLAGS
969 PKG_CONFIG
970 GTK_CFLAGS
971 GTK_LIBS
972 GLADE_CFLAGS
973 GLADE_LIBS
974 DBUS_CFLAGS
975 DBUS_LIBS
976 GCONF_CFLAGS
977 GCONF_LIBS
978 NETWORK_MANAGER_CFLAGS
979 NETWORK_MANAGER_LIBS
980 LIBNOTIFY_CFLAGS
981 LIBNOTIFY_LIBS'
982
983
984 # Initialize some variables set by options.
985 ac_init_help=
986 ac_init_version=false
987 # The variables have the same names as the options, with
988 # dashes changed to underlines.
989 cache_file=/dev/null
990 exec_prefix=NONE
991 no_create=
992 no_recursion=
993 prefix=NONE
994 program_prefix=NONE
995 program_suffix=NONE
996 program_transform_name=s,x,x,
997 silent=
998 site=
999 srcdir=
1000 verbose=
1001 x_includes=NONE
1002 x_libraries=NONE
1003
1004 # Installation directory options.
1005 # These are left unexpanded so users can "make install exec_prefix=/foo"
1006 # and all the variables that are supposed to be based on exec_prefix
1007 # by default will actually change.
1008 # Use braces instead of parens because sh, perl, etc. also accept them.
1009 # (The list follows the same order as the GNU Coding Standards.)
1010 bindir='${exec_prefix}/bin'
1011 sbindir='${exec_prefix}/sbin'
1012 libexecdir='${exec_prefix}/libexec'
1013 datarootdir='${prefix}/share'
1014 datadir='${datarootdir}'
1015 sysconfdir='${prefix}/etc'
1016 sharedstatedir='${prefix}/com'
1017 localstatedir='${prefix}/var'
1018 includedir='${prefix}/include'
1019 oldincludedir='/usr/include'
1020 docdir='${datarootdir}/doc/${PACKAGE}'
1021 infodir='${datarootdir}/info'
1022 htmldir='${docdir}'
1023 dvidir='${docdir}'
1024 pdfdir='${docdir}'
1025 psdir='${docdir}'
1026 libdir='${exec_prefix}/lib'
1027 localedir='${datarootdir}/locale'
1028 mandir='${datarootdir}/man'
1029
1030 ac_prev=
1031 ac_dashdash=
1032 for ac_option
1033 do
1034 # If the previous option needs an argument, assign it.
1035 if test -n "$ac_prev"; then
1036 eval $ac_prev=\$ac_option
1037 ac_prev=
1038 continue
1039 fi
1040
1041 case $ac_option in
1042 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043 *) ac_optarg=yes ;;
1044 esac
1045
1046 # Accept the important Cygnus configure options, so we can diagnose typos.
1047
1048 case $ac_dashdash$ac_option in
1049 --)
1050 ac_dashdash=yes ;;
1051
1052 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053 ac_prev=bindir ;;
1054 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055 bindir=$ac_optarg ;;
1056
1057 -build | --build | --buil | --bui | --bu)
1058 ac_prev=build_alias ;;
1059 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060 build_alias=$ac_optarg ;;
1061
1062 -cache-file | --cache-file | --cache-fil | --cache-fi \
1063 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064 ac_prev=cache_file ;;
1065 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067 cache_file=$ac_optarg ;;
1068
1069 --config-cache | -C)
1070 cache_file=config.cache ;;
1071
1072 -datadir | --datadir | --datadi | --datad)
1073 ac_prev=datadir ;;
1074 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075 datadir=$ac_optarg ;;
1076
1077 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078 | --dataroo | --dataro | --datar)
1079 ac_prev=datarootdir ;;
1080 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082 datarootdir=$ac_optarg ;;
1083
1084 -disable-* | --disable-*)
1085 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1091 eval enable_$ac_feature=no ;;
1092
1093 -docdir | --docdir | --docdi | --doc | --do)
1094 ac_prev=docdir ;;
1095 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1096 docdir=$ac_optarg ;;
1097
1098 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1099 ac_prev=dvidir ;;
1100 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1101 dvidir=$ac_optarg ;;
1102
1103 -enable-* | --enable-*)
1104 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1108 { (exit 1); exit 1; }; }
1109 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1110 eval enable_$ac_feature=\$ac_optarg ;;
1111
1112 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1113 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1114 | --exec | --exe | --ex)
1115 ac_prev=exec_prefix ;;
1116 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1117 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1118 | --exec=* | --exe=* | --ex=*)
1119 exec_prefix=$ac_optarg ;;
1120
1121 -gas | --gas | --ga | --g)
1122 # Obsolete; use --with-gas.
1123 with_gas=yes ;;
1124
1125 -help | --help | --hel | --he | -h)
1126 ac_init_help=long ;;
1127 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1128 ac_init_help=recursive ;;
1129 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130 ac_init_help=short ;;
1131
1132 -host | --host | --hos | --ho)
1133 ac_prev=host_alias ;;
1134 -host=* | --host=* | --hos=* | --ho=*)
1135 host_alias=$ac_optarg ;;
1136
1137 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138 ac_prev=htmldir ;;
1139 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140 | --ht=*)
1141 htmldir=$ac_optarg ;;
1142
1143 -includedir | --includedir | --includedi | --included | --include \
1144 | --includ | --inclu | --incl | --inc)
1145 ac_prev=includedir ;;
1146 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1147 | --includ=* | --inclu=* | --incl=* | --inc=*)
1148 includedir=$ac_optarg ;;
1149
1150 -infodir | --infodir | --infodi | --infod | --info | --inf)
1151 ac_prev=infodir ;;
1152 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153 infodir=$ac_optarg ;;
1154
1155 -libdir | --libdir | --libdi | --libd)
1156 ac_prev=libdir ;;
1157 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158 libdir=$ac_optarg ;;
1159
1160 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1161 | --libexe | --libex | --libe)
1162 ac_prev=libexecdir ;;
1163 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1164 | --libexe=* | --libex=* | --libe=*)
1165 libexecdir=$ac_optarg ;;
1166
1167 -localedir | --localedir | --localedi | --localed | --locale)
1168 ac_prev=localedir ;;
1169 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170 localedir=$ac_optarg ;;
1171
1172 -localstatedir | --localstatedir | --localstatedi | --localstated \
1173 | --localstate | --localstat | --localsta | --localst | --locals)
1174 ac_prev=localstatedir ;;
1175 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1176 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177 localstatedir=$ac_optarg ;;
1178
1179 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180 ac_prev=mandir ;;
1181 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182 mandir=$ac_optarg ;;
1183
1184 -nfp | --nfp | --nf)
1185 # Obsolete; use --without-fp.
1186 with_fp=no ;;
1187
1188 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1189 | --no-cr | --no-c | -n)
1190 no_create=yes ;;
1191
1192 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1193 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194 no_recursion=yes ;;
1195
1196 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1197 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1198 | --oldin | --oldi | --old | --ol | --o)
1199 ac_prev=oldincludedir ;;
1200 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1201 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1202 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203 oldincludedir=$ac_optarg ;;
1204
1205 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206 ac_prev=prefix ;;
1207 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208 prefix=$ac_optarg ;;
1209
1210 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1211 | --program-pre | --program-pr | --program-p)
1212 ac_prev=program_prefix ;;
1213 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1214 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215 program_prefix=$ac_optarg ;;
1216
1217 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1218 | --program-suf | --program-su | --program-s)
1219 ac_prev=program_suffix ;;
1220 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1221 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222 program_suffix=$ac_optarg ;;
1223
1224 -program-transform-name | --program-transform-name \
1225 | --program-transform-nam | --program-transform-na \
1226 | --program-transform-n | --program-transform- \
1227 | --program-transform | --program-transfor \
1228 | --program-transfo | --program-transf \
1229 | --program-trans | --program-tran \
1230 | --progr-tra | --program-tr | --program-t)
1231 ac_prev=program_transform_name ;;
1232 -program-transform-name=* | --program-transform-name=* \
1233 | --program-transform-nam=* | --program-transform-na=* \
1234 | --program-transform-n=* | --program-transform-=* \
1235 | --program-transform=* | --program-transfor=* \
1236 | --program-transfo=* | --program-transf=* \
1237 | --program-trans=* | --program-tran=* \
1238 | --progr-tra=* | --program-tr=* | --program-t=*)
1239 program_transform_name=$ac_optarg ;;
1240
1241 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242 ac_prev=pdfdir ;;
1243 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244 pdfdir=$ac_optarg ;;
1245
1246 -psdir | --psdir | --psdi | --psd | --ps)
1247 ac_prev=psdir ;;
1248 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249 psdir=$ac_optarg ;;
1250
1251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252 | -silent | --silent | --silen | --sile | --sil)
1253 silent=yes ;;
1254
1255 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1256 ac_prev=sbindir ;;
1257 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1258 | --sbi=* | --sb=*)
1259 sbindir=$ac_optarg ;;
1260
1261 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1262 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1263 | --sharedst | --shareds | --shared | --share | --shar \
1264 | --sha | --sh)
1265 ac_prev=sharedstatedir ;;
1266 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1267 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1268 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1269 | --sha=* | --sh=*)
1270 sharedstatedir=$ac_optarg ;;
1271
1272 -site | --site | --sit)
1273 ac_prev=site ;;
1274 -site=* | --site=* | --sit=*)
1275 site=$ac_optarg ;;
1276
1277 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1278 ac_prev=srcdir ;;
1279 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1280 srcdir=$ac_optarg ;;
1281
1282 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1283 | --syscon | --sysco | --sysc | --sys | --sy)
1284 ac_prev=sysconfdir ;;
1285 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1286 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1287 sysconfdir=$ac_optarg ;;
1288
1289 -target | --target | --targe | --targ | --tar | --ta | --t)
1290 ac_prev=target_alias ;;
1291 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1292 target_alias=$ac_optarg ;;
1293
1294 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295 verbose=yes ;;
1296
1297 -version | --version | --versio | --versi | --vers | -V)
1298 ac_init_version=: ;;
1299
1300 -with-* | --with-*)
1301 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 { echo "$as_me: error: invalid package name: $ac_package" >&2
1305 { (exit 1); exit 1; }; }
1306 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1307 eval with_$ac_package=\$ac_optarg ;;
1308
1309 -without-* | --without-*)
1310 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313 { echo "$as_me: error: invalid package name: $ac_package" >&2
1314 { (exit 1); exit 1; }; }
1315 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1316 eval with_$ac_package=no ;;
1317
1318 --x)
1319 # Obsolete; use --with-x.
1320 with_x=yes ;;
1321
1322 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1323 | --x-incl | --x-inc | --x-in | --x-i)
1324 ac_prev=x_includes ;;
1325 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1326 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1327 x_includes=$ac_optarg ;;
1328
1329 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1330 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1331 ac_prev=x_libraries ;;
1332 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1333 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1334 x_libraries=$ac_optarg ;;
1335
1336 -*) { echo "$as_me: error: unrecognized option: $ac_option
1337 Try \`$0 --help' for more information." >&2
1338 { (exit 1); exit 1; }; }
1339 ;;
1340
1341 *=*)
1342 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1345 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1346 { (exit 1); exit 1; }; }
1347 eval $ac_envvar=\$ac_optarg
1348 export $ac_envvar ;;
1349
1350 *)
1351 # FIXME: should be removed in autoconf 3.0.
1352 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1353 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1354 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1355 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 ;;
1357
1358 esac
1359 done
1360
1361 if test -n "$ac_prev"; then
1362 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1363 { echo "$as_me: error: missing argument to $ac_option" >&2
1364 { (exit 1); exit 1; }; }
1365 fi
1366
1367 # Be sure to have absolute directory names.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1372 do
1373 eval ac_val=\$$ac_var
1374 case $ac_val in
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377 esac
1378 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1379 { (exit 1); exit 1; }; }
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391 if test "x$build_alias" = x; then
1392 cross_compiling=maybe
1393 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1397 fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 { echo "$as_me: error: Working directory cannot be determined" >&2
1410 { (exit 1); exit 1; }; }
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 { echo "$as_me: error: pwd does not report name of working directory" >&2
1413 { (exit 1); exit 1; }; }
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$0" ||
1421 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$0" : 'X\(//\)[^/]' \| \
1423 X"$0" : 'X\(//\)$' \| \
1424 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1425 echo X"$0" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)[^/].*/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\).*/{
1439 s//\1/
1440 q
1441 }
1442 s/.*/./; q'`
1443 srcdir=$ac_confdir
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 srcdir=..
1446 fi
1447 else
1448 ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1453 { (exit 1); exit 1; }; }
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1458 { (exit 1); exit 1; }; }
1459 pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 srcdir=.
1463 fi
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1476
1477 #
1478 # Report the --help message.
1479 #
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1483 cat <<_ACEOF
1484 \`configure' configures this package to adapt to many kinds of systems.
1485
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1487
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1490
1491 Defaults for the options are specified in brackets.
1492
1493 Configuration:
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 [PREFIX]
1509
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1514
1515 For better control, use the options below.
1516
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1537 _ACEOF
1538
1539 cat <<\_ACEOF
1540
1541 Program names:
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545
1546 System types:
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 _ACEOF
1550 fi
1551
1552 if test -n "$ac_init_help"; then
1553
1554 cat <<\_ACEOF
1555
1556 Optional Features:
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-maintainer-mode enable make rules and dependencies not useful
1560 (and sometimes confusing) to the casual installer
1561 --disable-dependency-tracking speeds up one-time build
1562 --enable-dependency-tracking do not reject slow dependency extractors
1563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
1565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1568 --enable-debug=no/yes enable debugging output
1569 --enable-pkinit whether to enable preauth via pkinit support
1570 --enable-network-manager
1571 Whether to enable automatic network status with
1572 NetworkManager
1573
1574 Optional Packages:
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1578 --with-pic try to use only PIC/non-PIC objects [default=use
1579 both]
1580 --with-tags[=TAGS] include additional configurations [automatic]
1581 --with-libnotify use libnotify for status messages
1582 --without-libcap Disable support for capabilities library
1583
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 LIBS libraries to pass to the linker, e.g. -l<library>
1590 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1591 you have headers in a nonstandard directory <include dir>
1592 CPP C preprocessor
1593 CXX C++ compiler command
1594 CXXFLAGS C++ compiler flags
1595 CXXCPP C++ preprocessor
1596 F77 Fortran 77 compiler command
1597 FFLAGS Fortran 77 compiler flags
1598 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1599 the first program found out of: `bison -y', `byacc', `yacc'.
1600 YFLAGS The list of arguments that will be passed by default to $YACC.
1601 This script will default YFLAGS to the empty string to avoid a
1602 default value of `-d' given by some make applications.
1603 PKG_CONFIG path to pkg-config utility
1604 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1605 GTK_LIBS linker flags for GTK, overriding pkg-config
1606 GLADE_CFLAGS
1607 C compiler flags for GLADE, overriding pkg-config
1608 GLADE_LIBS linker flags for GLADE, overriding pkg-config
1609 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1610 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1611 GCONF_CFLAGS
1612 C compiler flags for GCONF, overriding pkg-config
1613 GCONF_LIBS linker flags for GCONF, overriding pkg-config
1614 NETWORK_MANAGER_CFLAGS
1615 C compiler flags for NETWORK_MANAGER, overriding pkg-config
1616 NETWORK_MANAGER_LIBS
1617 linker flags for NETWORK_MANAGER, overriding pkg-config
1618 LIBNOTIFY_CFLAGS
1619 C compiler flags for LIBNOTIFY, overriding pkg-config
1620 LIBNOTIFY_LIBS
1621 linker flags for LIBNOTIFY, overriding pkg-config
1622
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1625
1626 _ACEOF
1627 ac_status=$?
1628 fi
1629
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" || continue
1634 ac_builddir=.
1635
1636 case "$ac_dir" in
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *)
1639 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1640 # A ".." for each directory in $ac_dir_suffix.
1641 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1642 case $ac_top_builddir_sub in
1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645 esac ;;
1646 esac
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1651
1652 case $srcdir in
1653 .) # We are building in place.
1654 ac_srcdir=.
1655 ac_top_srcdir=$ac_top_builddir_sub
1656 ac_abs_top_srcdir=$ac_pwd ;;
1657 [\\/]* | ?:[\\/]* ) # Absolute name.
1658 ac_srcdir=$srcdir$ac_dir_suffix;
1659 ac_top_srcdir=$srcdir
1660 ac_abs_top_srcdir=$srcdir ;;
1661 *) # Relative name.
1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663 ac_top_srcdir=$ac_top_build_prefix$srcdir
1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 esac
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668 cd "$ac_dir" || { ac_status=$?; continue; }
1669 # Check for guested configure.
1670 if test -f "$ac_srcdir/configure.gnu"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673 elif test -f "$ac_srcdir/configure"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure" --help=recursive
1676 else
1677 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 fi || ac_status=$?
1679 cd "$ac_pwd" || { ac_status=$?; break; }
1680 done
1681 fi
1682
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1685 cat <<\_ACEOF
1686 configure
1687 generated by GNU Autoconf 2.61
1688
1689 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1690 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1691 This configure script is free software; the Free Software Foundation
1692 gives unlimited permission to copy, distribute and modify it.
1693 _ACEOF
1694 exit
1695 fi
1696 cat >config.log <<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1699
1700 It was created by $as_me, which was
1701 generated by GNU Autoconf 2.61. Invocation command line was
1702
1703 $ $0 $@
1704
1705 _ACEOF
1706 exec 5>>config.log
1707 {
1708 cat <<_ASUNAME
1709 ## --------- ##
1710 ## Platform. ##
1711 ## --------- ##
1712
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1721
1722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1729
1730 _ASUNAME
1731
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 echo "PATH: $as_dir"
1738 done
1739 IFS=$as_save_IFS
1740
1741 } >&5
1742
1743 cat >&5 <<_ACEOF
1744
1745
1746 ## ----------- ##
1747 ## Core tests. ##
1748 ## ----------- ##
1749
1750 _ACEOF
1751
1752
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1758 ac_configure_args=
1759 ac_configure_args0=
1760 ac_configure_args1=
1761 ac_must_keep_next=false
1762 for ac_pass in 1 2
1763 do
1764 for ac_arg
1765 do
1766 case $ac_arg in
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1770 continue ;;
1771 *\'*)
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 esac
1774 case $ac_pass in
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776 2)
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
1779 ac_must_keep_next=false # Got value, back to normal.
1780 else
1781 case $ac_arg in
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788 esac
1789 ;;
1790 -* ) ac_must_keep_next=true ;;
1791 esac
1792 fi
1793 ac_configure_args="$ac_configure_args '$ac_arg'"
1794 ;;
1795 esac
1796 done
1797 done
1798 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log. We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1808 {
1809 echo
1810
1811 cat <<\_ASBOX
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1815 _ASBOX
1816 echo
1817 # The following way of writing the cache mishandles newlines in values,
1818 (
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1821 case $ac_val in #(
1822 *${as_nl}*)
1823 case $ac_var in #(
1824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826 esac
1827 case $ac_var in #(
1828 _ | IFS | as_nl) ;; #(
1829 *) $as_unset $ac_var ;;
1830 esac ;;
1831 esac
1832 done
1833 (set) 2>&1 |
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1836 sed -n \
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839 ;; #(
1840 *)
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1842 ;;
1843 esac |
1844 sort
1845 )
1846 echo
1847
1848 cat <<\_ASBOX
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1852 _ASBOX
1853 echo
1854 for ac_var in $ac_subst_vars
1855 do
1856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 echo "$ac_var='\''$ac_val'\''"
1861 done | sort
1862 echo
1863
1864 if test -n "$ac_subst_files"; then
1865 cat <<\_ASBOX
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1869 _ASBOX
1870 echo
1871 for ac_var in $ac_subst_files
1872 do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1880 fi
1881
1882 if test -s confdefs.h; then
1883 cat <<\_ASBOX
1884 ## ----------- ##
1885 ## confdefs.h. ##
1886 ## ----------- ##
1887 _ASBOX
1888 echo
1889 cat confdefs.h
1890 echo
1891 fi
1892 test "$ac_signal" != 0 &&
1893 echo "$as_me: caught signal $ac_signal"
1894 echo "$as_me: exit $exit_status"
1895 } >&5
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898 exit $exit_status
1899 ' 0
1900 for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 done
1903 ac_signal=0
1904
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1907
1908 # Predefined preprocessor variables.
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 _ACEOF
1933
1934
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer explicitly selected file to automatically selected ones.
1937 if test -n "$CONFIG_SITE"; then
1938 set x "$CONFIG_SITE"
1939 elif test "x$prefix" != xNONE; then
1940 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941 else
1942 set x "$ac_default_prefix/share/config.site" \
1943 "$ac_default_prefix/etc/config.site"
1944 fi
1945 shift
1946 for ac_site_file
1947 do
1948 if test -r "$ac_site_file"; then
1949 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1952 . "$ac_site_file"
1953 fi
1954 done
1955
1956 if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 echo "$as_me: loading cache $cache_file" >&6;}
1962 case $cache_file in
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
1965 esac
1966 fi
1967 else
1968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 echo "$as_me: creating cache $cache_file" >&6;}
1970 >$cache_file
1971 fi
1972
1973 # Check that the precious variables saved in the cache have kept the same
1974 # value.
1975 ac_cache_corrupted=false
1976 for ac_var in $ac_precious_vars; do
1977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
1979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
1981 case $ac_old_set,$ac_new_set in
1982 set,)
1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1986 ,set)
1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1990 ,);;
1991 *)
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
1993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1996 echo "$as_me: former value: $ac_old_val" >&2;}
1997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1998 echo "$as_me: current value: $ac_new_val" >&2;}
1999 ac_cache_corrupted=:
2000 fi;;
2001 esac
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2004 case $ac_new_val in
2005 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *) ac_arg=$ac_var=$ac_new_val ;;
2007 esac
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011 esac
2012 fi
2013 done
2014 if $ac_cache_corrupted; then
2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2020 fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038 ac_ext=c
2039 ac_cpp='$CPP $CPPFLAGS'
2040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043
2044
2045
2046 am__api_version='1.10'
2047
2048 ac_aux_dir=
2049 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2050 if test -f "$ac_dir/install-sh"; then
2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install-sh -c"
2053 break
2054 elif test -f "$ac_dir/install.sh"; then
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/install.sh -c"
2057 break
2058 elif test -f "$ac_dir/shtool"; then
2059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/shtool install -c"
2061 break
2062 fi
2063 done
2064 if test -z "$ac_aux_dir"; then
2065 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2066 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2067 { (exit 1); exit 1; }; }
2068 fi
2069
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077
2078
2079 # Find a good install program. We prefer a C program (faster),
2080 # so one script is as good as another. But avoid the broken or
2081 # incompatible versions:
2082 # SysV /etc/install, /usr/sbin/install
2083 # SunOS /usr/etc/install
2084 # IRIX /sbin/install
2085 # AIX /bin/install
2086 # AmigaOS /C/install, which installs bootblocks on floppy discs
2087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2090 # OS/2's system install, which has a completely different semantic
2091 # ./install, which can be erroneously created by make from ./install.sh.
2092 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2093 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2094 if test -z "$INSTALL"; then
2095 if test "${ac_cv_path_install+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 # Account for people who put trailing slashes in PATH elements.
2104 case $as_dir/ in
2105 ./ | .// | /cC/* | \
2106 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2107 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2108 /usr/ucb/* ) ;;
2109 *)
2110 # OSF1 and SCO ODT 3.0 have their own names for install.
2111 # Don't use installbsd from OSF since it installs stuff as root
2112 # by default.
2113 for ac_prog in ginstall scoinst install; do
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2116 if test $ac_prog = install &&
2117 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2118 # AIX install. It has an incompatible calling convention.
2119 :
2120 elif test $ac_prog = install &&
2121 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2122 # program-specific install script used by HP pwplus--don't use.
2123 :
2124 else
2125 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2126 break 3
2127 fi
2128 fi
2129 done
2130 done
2131 ;;
2132 esac
2133 done
2134 IFS=$as_save_IFS
2135
2136
2137 fi
2138 if test "${ac_cv_path_install+set}" = set; then
2139 INSTALL=$ac_cv_path_install
2140 else
2141 # As a last resort, use the slow shell script. Don't cache a
2142 # value for INSTALL within a source directory, because that will
2143 # break other packages using the cache if that directory is
2144 # removed, or if the value is a relative name.
2145 INSTALL=$ac_install_sh
2146 fi
2147 fi
2148 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2149 echo "${ECHO_T}$INSTALL" >&6; }
2150
2151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2152 # It thinks the first close brace ends the variable substitution.
2153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2154
2155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2156
2157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2158
2159 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2160 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2161 # Just in case
2162 sleep 1
2163 echo timestamp > conftest.file
2164 # Do `set' in a subshell so we don't clobber the current shell's
2165 # arguments. Must try -L first in case configure is actually a
2166 # symlink; some systems play weird games with the mod time of symlinks
2167 # (eg FreeBSD returns the mod time of the symlink's containing
2168 # directory).
2169 if (
2170 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2171 if test "$*" = "X"; then
2172 # -L didn't work.
2173 set X `ls -t $srcdir/configure conftest.file`
2174 fi
2175 rm -f conftest.file
2176 if test "$*" != "X $srcdir/configure conftest.file" \
2177 && test "$*" != "X conftest.file $srcdir/configure"; then
2178
2179 # If neither matched, then we have a broken ls. This can happen
2180 # if, for instance, CONFIG_SHELL is bash and it inherits a
2181 # broken ls alias from the environment. This has actually
2182 # happened. Such a system could not be considered "sane".
2183 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2184 alias in your environment" >&5
2185 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2186 alias in your environment" >&2;}
2187 { (exit 1); exit 1; }; }
2188 fi
2189
2190 test "$2" = conftest.file
2191 )
2192 then
2193 # Ok.
2194 :
2195 else
2196 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2197 Check your system clock" >&5
2198 echo "$as_me: error: newly created file is older than distributed files!
2199 Check your system clock" >&2;}
2200 { (exit 1); exit 1; }; }
2201 fi
2202 { echo "$as_me:$LINENO: result: yes" >&5
2203 echo "${ECHO_T}yes" >&6; }
2204 test "$program_prefix" != NONE &&
2205 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2206 # Use a double $ so make ignores it.
2207 test "$program_suffix" != NONE &&
2208 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2209 # Double any \ or $. echo might interpret backslashes.
2210 # By default was `s,x,x', remove it if useless.
2211 cat <<\_ACEOF >conftest.sed
2212 s/[\\$]/&&/g;s/;s,x,x,$//
2213 _ACEOF
2214 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2215 rm -f conftest.sed
2216
2217 # expand $ac_aux_dir to an absolute path
2218 am_aux_dir=`cd $ac_aux_dir && pwd`
2219
2220 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2221 # Use eval to expand $SHELL
2222 if eval "$MISSING --run true"; then
2223 am_missing_run="$MISSING --run "
2224 else
2225 am_missing_run=
2226 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2227 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2228 fi
2229
2230 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2231 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2232 if test -z "$MKDIR_P"; then
2233 if test "${ac_cv_path_mkdir+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2238 do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_prog in mkdir gmkdir; do
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2244 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2245 'mkdir (GNU coreutils) '* | \
2246 'mkdir (coreutils) '* | \
2247 'mkdir (fileutils) '4.1*)
2248 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2249 break 3;;
2250 esac
2251 done
2252 done
2253 done
2254 IFS=$as_save_IFS
2255
2256 fi
2257
2258 if test "${ac_cv_path_mkdir+set}" = set; then
2259 MKDIR_P="$ac_cv_path_mkdir -p"
2260 else
2261 # As a last resort, use the slow shell script. Don't cache a
2262 # value for MKDIR_P within a source directory, because that will
2263 # break other packages using the cache if that directory is
2264 # removed, or if the value is a relative name.
2265 test -d ./--version && rmdir ./--version
2266 MKDIR_P="$ac_install_sh -d"
2267 fi
2268 fi
2269 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2270 echo "${ECHO_T}$MKDIR_P" >&6; }
2271
2272 mkdir_p="$MKDIR_P"
2273 case $mkdir_p in
2274 [\\/$]* | ?:[\\/]*) ;;
2275 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2276 esac
2277
2278 for ac_prog in gawk mawk nawk awk
2279 do
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy $ac_prog; ac_word=$2
2282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2284 if test "${ac_cv_prog_AWK+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 if test -n "$AWK"; then
2288 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2289 else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297 ac_cv_prog_AWK="$ac_prog"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2300 fi
2301 done
2302 done
2303 IFS=$as_save_IFS
2304
2305 fi
2306 fi
2307 AWK=$ac_cv_prog_AWK
2308 if test -n "$AWK"; then
2309 { echo "$as_me:$LINENO: result: $AWK" >&5
2310 echo "${ECHO_T}$AWK" >&6; }
2311 else
2312 { echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6; }
2314 fi
2315
2316
2317 test -n "$AWK" && break
2318 done
2319
2320 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2321 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2322 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2323 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 cat >conftest.make <<\_ACEOF
2327 SHELL = /bin/sh
2328 all:
2329 @echo '@@@%%%=$(MAKE)=@@@%%%'
2330 _ACEOF
2331 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2332 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2333 *@@@%%%=?*=@@@%%%*)
2334 eval ac_cv_prog_make_${ac_make}_set=yes;;
2335 *)
2336 eval ac_cv_prog_make_${ac_make}_set=no;;
2337 esac
2338 rm -f conftest.make
2339 fi
2340 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2341 { echo "$as_me:$LINENO: result: yes" >&5
2342 echo "${ECHO_T}yes" >&6; }
2343 SET_MAKE=
2344 else
2345 { echo "$as_me:$LINENO: result: no" >&5
2346 echo "${ECHO_T}no" >&6; }
2347 SET_MAKE="MAKE=${MAKE-make}"
2348 fi
2349
2350 rm -rf .tst 2>/dev/null
2351 mkdir .tst 2>/dev/null
2352 if test -d .tst; then
2353 am__leading_dot=.
2354 else
2355 am__leading_dot=_
2356 fi
2357 rmdir .tst 2>/dev/null
2358
2359 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2360 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2361 # is not polluted with repeated "-I."
2362 am__isrc=' -I$(srcdir)'
2363 # test to see if srcdir already configured
2364 if test -f $srcdir/config.status; then
2365 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2366 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2367 { (exit 1); exit 1; }; }
2368 fi
2369 fi
2370
2371 # test whether we have cygpath
2372 if test -z "$CYGPATH_W"; then
2373 if (cygpath --version) >/dev/null 2>/dev/null; then
2374 CYGPATH_W='cygpath -w'
2375 else
2376 CYGPATH_W=echo
2377 fi
2378 fi
2379
2380
2381 # Define the identity of the package.
2382 PACKAGE=krb5-auth-dialog
2383 VERSION=0.8
2384
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE "$PACKAGE"
2388 _ACEOF
2389
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define VERSION "$VERSION"
2393 _ACEOF
2394
2395 # Some tools Automake needs.
2396
2397 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2398
2399
2400 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2401
2402
2403 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2404
2405
2406 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2407
2408
2409 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2410
2411 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2412
2413 # Installed binaries are usually stripped using `strip' when the user
2414 # run `make install-strip'. However `strip' might not be the right
2415 # tool to use in cross-compilation environments, therefore Automake
2416 # will honor the `STRIP' environment variable to overrule this program.
2417 if test "$cross_compiling" != no; then
2418 if test -n "$ac_tool_prefix"; then
2419 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2420 set dummy ${ac_tool_prefix}strip; ac_word=$2
2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_STRIP+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426 if test -n "$STRIP"; then
2427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 break 2
2439 fi
2440 done
2441 done
2442 IFS=$as_save_IFS
2443
2444 fi
2445 fi
2446 STRIP=$ac_cv_prog_STRIP
2447 if test -n "$STRIP"; then
2448 { echo "$as_me:$LINENO: result: $STRIP" >&5
2449 echo "${ECHO_T}$STRIP" >&6; }
2450 else
2451 { echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6; }
2453 fi
2454
2455
2456 fi
2457 if test -z "$ac_cv_prog_STRIP"; then
2458 ac_ct_STRIP=$STRIP
2459 # Extract the first word of "strip", so it can be a program name with args.
2460 set dummy strip; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466 if test -n "$ac_ct_STRIP"; then
2467 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_ac_ct_STRIP="strip"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2479 fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2487 if test -n "$ac_ct_STRIP"; then
2488 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2489 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2490 else
2491 { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2493 fi
2494
2495 if test "x$ac_ct_STRIP" = x; then
2496 STRIP=":"
2497 else
2498 case $cross_compiling:$ac_tool_warned in
2499 yes:)
2500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2501 whose name does not start with the host triplet. If you think this
2502 configuration is useful to you, please write to autoconf@gnu.org." >&5
2503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2504 whose name does not start with the host triplet. If you think this
2505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2506 ac_tool_warned=yes ;;
2507 esac
2508 STRIP=$ac_ct_STRIP
2509 fi
2510 else
2511 STRIP="$ac_cv_prog_STRIP"
2512 fi
2513
2514 fi
2515 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2516
2517 # We need awk for the "check" target. The system "awk" is bad on
2518 # some platforms.
2519 # Always define AMTAR for backward compatibility.
2520
2521 AMTAR=${AMTAR-"${am_missing_run}tar"}
2522
2523 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2524
2525
2526
2527
2528
2529 ac_config_headers="$ac_config_headers config.h"
2530
2531
2532 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2533 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2534 # Check whether --enable-maintainer-mode was given.
2535 if test "${enable_maintainer_mode+set}" = set; then
2536 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2537 else
2538 USE_MAINTAINER_MODE=no
2539 fi
2540
2541 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2542 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2543 if test $USE_MAINTAINER_MODE = yes; then
2544 MAINTAINER_MODE_TRUE=
2545 MAINTAINER_MODE_FALSE='#'
2546 else
2547 MAINTAINER_MODE_TRUE='#'
2548 MAINTAINER_MODE_FALSE=
2549 fi
2550
2551 MAINT=$MAINTAINER_MODE_TRUE
2552
2553
2554
2555 GETTEXT_PACKAGE=krb5-auth-dialog
2556
2557
2558 cat >>confdefs.h <<_ACEOF
2559 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
2560 _ACEOF
2561
2562
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599 { echo "$as_me:$LINENO: result: $CC" >&5
2600 echo "${ECHO_T}$CC" >&6; }
2601 else
2602 { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2604 fi
2605
2606
2607 fi
2608 if test -z "$ac_cv_prog_CC"; then
2609 ac_ct_CC=$CC
2610 # Extract the first word of "gcc", so it can be a program name with args.
2611 set dummy gcc; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_ac_ct_CC="gcc"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638 if test -n "$ac_ct_CC"; then
2639 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2640 echo "${ECHO_T}$ac_ct_CC" >&6; }
2641 else
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2644 fi
2645
2646 if test "x$ac_ct_CC" = x; then
2647 CC=""
2648 else
2649 case $cross_compiling:$ac_tool_warned in
2650 yes:)
2651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet. If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&5
2654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2655 whose name does not start with the host triplet. If you think this
2656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2657 ac_tool_warned=yes ;;
2658 esac
2659 CC=$ac_ct_CC
2660 fi
2661 else
2662 CC="$ac_cv_prog_CC"
2663 fi
2664
2665 if test -z "$CC"; then
2666 if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}cc; ac_word=$2
2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_CC="${ac_tool_prefix}cc"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 CC=$ac_cv_prog_CC
2695 if test -n "$CC"; then
2696 { echo "$as_me:$LINENO: result: $CC" >&5
2697 echo "${ECHO_T}$CC" >&6; }
2698 else
2699 { echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6; }
2701 fi
2702
2703
2704 fi
2705 fi
2706 if test -z "$CC"; then
2707 # Extract the first word of "cc", so it can be a program name with args.
2708 set dummy cc; ac_word=$2
2709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2716 else
2717 ac_prog_rejected=no
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2726 ac_prog_rejected=yes
2727 continue
2728 fi
2729 ac_cv_prog_CC="cc"
2730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 if test $ac_prog_rejected = yes; then
2738 # We found a bogon in the path, so make sure we never use it.
2739 set dummy $ac_cv_prog_CC
2740 shift
2741 if test $# != 0; then
2742 # We chose a different compiler from the bogus one.
2743 # However, it has the same basename, so the bogon will be chosen
2744 # first if we set CC to just the basename; use the full file name.
2745 shift
2746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2747 fi
2748 fi
2749 fi
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753 { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2755 else
2756 { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2758 fi
2759
2760
2761 fi
2762 if test -z "$CC"; then
2763 if test -n "$ac_tool_prefix"; then
2764 for ac_prog in cl.exe
2765 do
2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 CC=$ac_cv_prog_CC
2794 if test -n "$CC"; then
2795 { echo "$as_me:$LINENO: result: $CC" >&5
2796 echo "${ECHO_T}$CC" >&6; }
2797 else
2798 { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2800 fi
2801
2802
2803 test -n "$CC" && break
2804 done
2805 fi
2806 if test -z "$CC"; then
2807 ac_ct_CC=$CC
2808 for ac_prog in cl.exe
2809 do
2810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2811 set dummy $ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817 if test -n "$ac_ct_CC"; then
2818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_ac_ct_CC="$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838 if test -n "$ac_ct_CC"; then
2839 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2840 echo "${ECHO_T}$ac_ct_CC" >&6; }
2841 else
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 fi
2845
2846
2847 test -n "$ac_ct_CC" && break
2848 done
2849
2850 if test "x$ac_ct_CC" = x; then
2851 CC=""
2852 else
2853 case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet. If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&5
2858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2859 whose name does not start with the host triplet. If you think this
2860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863 CC=$ac_ct_CC
2864 fi
2865 fi
2866
2867 fi
2868
2869
2870 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: no acceptable C compiler found in \$PATH
2873 See \`config.log' for more details." >&2;}
2874 { (exit 1); exit 1; }; }
2875
2876 # Provide some information about the compiler.
2877 echo "$as_me:$LINENO: checking for C compiler version" >&5
2878 ac_compiler=`set X $ac_compile; echo $2`
2879 { (ac_try="$ac_compiler --version >&5"
2880 case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_compiler --version >&5") 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }
2889 { (ac_try="$ac_compiler -v >&5"
2890 case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compiler -v >&5") 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899 { (ac_try="$ac_compiler -V >&5"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compiler -V >&5") 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2909
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916
2917 int
2918 main ()
2919 {
2920
2921 ;
2922 return 0;
2923 }
2924 _ACEOF
2925 ac_clean_files_save=$ac_clean_files
2926 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2927 # Try to create an executable without -o first, disregard a.out.
2928 # It will help us diagnose broken compilers, and finding out an intuition
2929 # of exeext.
2930 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2931 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2932 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2933 #
2934 # List of possible output files, starting from the most likely.
2935 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2936 # only as a last resort. b.out is created by i960 compilers.
2937 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2938 #
2939 # The IRIX 6 linker writes into existing files which may not be
2940 # executable, retaining their permissions. Remove them first so a
2941 # subsequent execution test works.
2942 ac_rmfiles=
2943 for ac_file in $ac_files
2944 do
2945 case $ac_file in
2946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2947 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2948 esac
2949 done
2950 rm -f $ac_rmfiles
2951
2952 if { (ac_try="$ac_link_default"
2953 case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_link_default") 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; then
2962 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2963 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2964 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2965 # so that the user can short-circuit this test for compilers unknown to
2966 # Autoconf.
2967 for ac_file in $ac_files ''
2968 do
2969 test -f "$ac_file" || continue
2970 case $ac_file in
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2972 ;;
2973 [ab].out )
2974 # We found the default executable, but exeext='' is most
2975 # certainly right.
2976 break;;
2977 *.* )
2978 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2979 then :; else
2980 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981 fi
2982 # We set ac_cv_exeext here because the later test for it is not
2983 # safe: cross compilers may not add the suffix if given an `-o'
2984 # argument, so we may need to know it at that point already.
2985 # Even if this section looks crufty: it has the advantage of
2986 # actually working.
2987 break;;
2988 * )
2989 break;;
2990 esac
2991 done
2992 test "$ac_cv_exeext" = no && ac_cv_exeext=
2993
2994 else
2995 ac_file=''
2996 fi
2997
2998 { echo "$as_me:$LINENO: result: $ac_file" >&5
2999 echo "${ECHO_T}$ac_file" >&6; }
3000 if test -z "$ac_file"; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3005 See \`config.log' for more details." >&5
3006 echo "$as_me: error: C compiler cannot create executables
3007 See \`config.log' for more details." >&2;}
3008 { (exit 77); exit 77; }; }
3009 fi
3010
3011 ac_exeext=$ac_cv_exeext
3012
3013 # Check that the compiler produces executables we can run. If not, either
3014 # the compiler is broken, or we cross compile.
3015 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3016 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3017 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3018 # If not cross compiling, check that we can run a simple program.
3019 if test "$cross_compiling" != yes; then
3020 if { ac_try='./$ac_file'
3021 { (case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_try") 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 cross_compiling=no
3031 else
3032 if test "$cross_compiling" = maybe; then
3033 cross_compiling=yes
3034 else
3035 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: cannot run C compiled programs.
3039 If you meant to cross compile, use \`--host'.
3040 See \`config.log' for more details." >&2;}
3041 { (exit 1); exit 1; }; }
3042 fi
3043 fi
3044 fi
3045 { echo "$as_me:$LINENO: result: yes" >&5
3046 echo "${ECHO_T}yes" >&6; }
3047
3048 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3049 ac_clean_files=$ac_clean_files_save
3050 # Check that the compiler produces executables we can run. If not, either
3051 # the compiler is broken, or we cross compile.
3052 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3054 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055 echo "${ECHO_T}$cross_compiling" >&6; }
3056
3057 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3059 if { (ac_try="$ac_link"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_link") 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; then
3069 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3070 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3071 # work properly (i.e., refer to `conftest.exe'), while it won't with
3072 # `rm'.
3073 for ac_file in conftest.exe conftest conftest.*; do
3074 test -f "$ac_file" || continue
3075 case $ac_file in
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3077 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078 break;;
3079 * ) break;;
3080 esac
3081 done
3082 else
3083 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3086 See \`config.log' for more details." >&2;}
3087 { (exit 1); exit 1; }; }
3088 fi
3089
3090 rm -f conftest$ac_cv_exeext
3091 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3092 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3093
3094 rm -f conftest.$ac_ext
3095 EXEEXT=$ac_cv_exeext
3096 ac_exeext=$EXEEXT
3097 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3098 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3099 if test "${ac_cv_objext+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3108
3109 int
3110 main ()
3111 {
3112
3113 ;
3114 return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.o conftest.obj
3118 if { (ac_try="$ac_compile"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; then
3128 for ac_file in conftest.o conftest.obj conftest.*; do
3129 test -f "$ac_file" || continue;
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3133 break;;
3134 esac
3135 done
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3143 See \`config.log' for more details." >&2;}
3144 { (exit 1); exit 1; }; }
3145 fi
3146
3147 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3148 fi
3149 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3150 echo "${ECHO_T}$ac_cv_objext" >&6; }
3151 OBJEXT=$ac_cv_objext
3152 ac_objext=$OBJEXT
3153 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3154 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3155 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158 cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h. */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164
3165 int
3166 main ()
3167 {
3168 #ifndef __GNUC__
3169 choke me
3170 #endif
3171
3172 ;
3173 return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3184 ac_status=$?
3185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3193 ac_compiler_gnu=yes
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 ac_compiler_gnu=no
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3203
3204 fi
3205 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3207 GCC=`test $ac_compiler_gnu = yes && echo yes`
3208 ac_test_CFLAGS=${CFLAGS+set}
3209 ac_save_CFLAGS=$CFLAGS
3210 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_cc_g+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 ac_save_c_werror_flag=$ac_c_werror_flag
3216 ac_c_werror_flag=yes
3217 ac_cv_prog_cc_g=no
3218 CFLAGS="-g"
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h. */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225
3226 int
3227 main ()
3228 {
3229
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3251 ac_cv_prog_cc_g=yes
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 CFLAGS=""
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3263
3264 int
3265 main ()
3266 {
3267
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_compile") 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } && {
3286 test -z "$ac_c_werror_flag" ||
3287 test ! -s conftest.err
3288 } && test -s conftest.$ac_objext; then
3289 :
3290 else
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3295 CFLAGS="-g"
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302
3303 int
3304 main ()
3305 {
3306
3307 ;
3308 return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } && {
3325 test -z "$ac_c_werror_flag" ||
3326 test ! -s conftest.err
3327 } && test -s conftest.$ac_objext; then
3328 ac_cv_prog_cc_g=yes
3329 else
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333
3334 fi
3335
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 fi
3338
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 fi
3341
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3344 fi
3345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3347 if test "$ac_test_CFLAGS" = set; then
3348 CFLAGS=$ac_save_CFLAGS
3349 elif test $ac_cv_prog_cc_g = yes; then
3350 if test "$GCC" = yes; then
3351 CFLAGS="-g -O2"
3352 else
3353 CFLAGS="-g"
3354 fi
3355 else
3356 if test "$GCC" = yes; then
3357 CFLAGS="-O2"
3358 else
3359 CFLAGS=
3360 fi
3361 fi
3362 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3363 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3364 if test "${ac_cv_prog_cc_c89+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367 ac_cv_prog_cc_c89=no
3368 ac_save_CC=$CC
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <stdarg.h>
3376 #include <stdio.h>
3377 #include <sys/types.h>
3378 #include <sys/stat.h>
3379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3380 struct buf { int x; };
3381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382 static char *e (p, i)
3383 char **p;
3384 int i;
3385 {
3386 return p[i];
3387 }
3388 static char *f (char * (*g) (char **, int), char **p, ...)
3389 {
3390 char *s;
3391 va_list v;
3392 va_start (v,p);
3393 s = g (p, va_arg (v,int));
3394 va_end (v);
3395 return s;
3396 }
3397
3398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3399 function prototypes and stuff, but not '\xHH' hex character constants.
3400 These don't provoke an error unfortunately, instead are silently treated
3401 as 'x'. The following induces an error, until -std is added to get
3402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3403 array size at least. It's necessary to write '\x00'==0 to get something
3404 that's true only with -std. */
3405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3406
3407 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408 inside strings and character constants. */
3409 #define FOO(x) 'x'
3410 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3411
3412 int test (int i, double x);
3413 struct s1 {int (*f) (int a);};
3414 struct s2 {int (*f) (double a);};
3415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416 int argc;
3417 char **argv;
3418 int
3419 main ()
3420 {
3421 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 do
3429 CC="$ac_save_CC $ac_arg"
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 ac_cv_prog_cc_c89=$ac_arg
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452
3453 fi
3454
3455 rm -f core conftest.err conftest.$ac_objext
3456 test "x$ac_cv_prog_cc_c89" != "xno" && break
3457 done
3458 rm -f conftest.$ac_ext
3459 CC=$ac_save_CC
3460
3461 fi
3462 # AC_CACHE_VAL
3463 case "x$ac_cv_prog_cc_c89" in
3464 x)
3465 { echo "$as_me:$LINENO: result: none needed" >&5
3466 echo "${ECHO_T}none needed" >&6; } ;;
3467 xno)
3468 { echo "$as_me:$LINENO: result: unsupported" >&5
3469 echo "${ECHO_T}unsupported" >&6; } ;;
3470 *)
3471 CC="$CC $ac_cv_prog_cc_c89"
3472 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3473 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3474 esac
3475
3476
3477 ac_ext=c
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 DEPDIR="${am__leading_dot}deps"
3483
3484 ac_config_commands="$ac_config_commands depfiles"
3485
3486
3487 am_make=${MAKE-make}
3488 cat > confinc << 'END'
3489 am__doit:
3490 @echo done
3491 .PHONY: am__doit
3492 END
3493 # If we don't find an include directive, just comment out the code.
3494 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3495 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3496 am__include="#"
3497 am__quote=
3498 _am_result=none
3499 # First try GNU make style include.
3500 echo "include confinc" > confmf
3501 # We grep out `Entering directory' and `Leaving directory'
3502 # messages which can occur if `w' ends up in MAKEFLAGS.
3503 # In particular we don't look at `^make:' because GNU make might
3504 # be invoked under some other name (usually "gmake"), in which
3505 # case it prints its new name instead of `make'.
3506 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3507 am__include=include
3508 am__quote=
3509 _am_result=GNU
3510 fi
3511 # Now try BSD make style include.
3512 if test "$am__include" = "#"; then
3513 echo '.include "confinc"' > confmf
3514 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3515 am__include=.include
3516 am__quote="\""
3517 _am_result=BSD
3518 fi
3519 fi
3520
3521
3522 { echo "$as_me:$LINENO: result: $_am_result" >&5
3523 echo "${ECHO_T}$_am_result" >&6; }
3524 rm -f confinc confmf
3525
3526 # Check whether --enable-dependency-tracking was given.
3527 if test "${enable_dependency_tracking+set}" = set; then
3528 enableval=$enable_dependency_tracking;
3529 fi
3530
3531 if test "x$enable_dependency_tracking" != xno; then
3532 am_depcomp="$ac_aux_dir/depcomp"
3533 AMDEPBACKSLASH='\'
3534 fi
3535 if test "x$enable_dependency_tracking" != xno; then
3536 AMDEP_TRUE=
3537 AMDEP_FALSE='#'
3538 else
3539 AMDEP_TRUE='#'
3540 AMDEP_FALSE=
3541 fi
3542
3543
3544
3545 depcc="$CC" am_compiler_list=
3546
3547 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3548 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3549 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3553 # We make a subdir and do the tests there. Otherwise we can end up
3554 # making bogus files that we don't know about and never remove. For
3555 # instance it was reported that on HP-UX the gcc test will end up
3556 # making a dummy file named `D' -- because `-MD' means `put the output
3557 # in D'.
3558 mkdir conftest.dir
3559 # Copy depcomp to subdir because otherwise we won't find it if we're
3560 # using a relative directory.
3561 cp "$am_depcomp" conftest.dir
3562 cd conftest.dir
3563 # We will build objects and dependencies in a subdirectory because
3564 # it helps to detect inapplicable dependency modes. For instance
3565 # both Tru64's cc and ICC support -MD to output dependencies as a
3566 # side effect of compilation, but ICC will put the dependencies in
3567 # the current directory while Tru64 will put them in the object
3568 # directory.
3569 mkdir sub
3570
3571 am_cv_CC_dependencies_compiler_type=none
3572 if test "$am_compiler_list" = ""; then
3573 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3574 fi
3575 for depmode in $am_compiler_list; do
3576 # Setup a source with many dependencies, because some compilers
3577 # like to wrap large dependency lists on column 80 (with \), and
3578 # we should not choose a depcomp mode which is confused by this.
3579 #
3580 # We need to recreate these files for each test, as the compiler may
3581 # overwrite some of them when testing with obscure command lines.
3582 # This happens at least with the AIX C compiler.
3583 : > sub/conftest.c
3584 for i in 1 2 3 4 5 6; do
3585 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3586 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3587 # Solaris 8's {/usr,}/bin/sh.
3588 touch sub/conftst$i.h
3589 done
3590 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3591
3592 case $depmode in
3593 nosideeffect)
3594 # after this tag, mechanisms are not by side-effect, so they'll
3595 # only be used when explicitly requested
3596 if test "x$enable_dependency_tracking" = xyes; then
3597 continue
3598 else
3599 break
3600 fi
3601 ;;
3602 none) break ;;
3603 esac
3604 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3605 # mode. It turns out that the SunPro C++ compiler does not properly
3606 # handle `-M -o', and we need to detect this.
3607 if depmode=$depmode \
3608 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3610 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3611 >/dev/null 2>conftest.err &&
3612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3614 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3616 # icc doesn't choke on unknown options, it will just issue warnings
3617 # or remarks (even with -Werror). So we grep stderr for any message
3618 # that says an option was ignored or not supported.
3619 # When given -MP, icc 7.0 and 7.1 complain thusly:
3620 # icc: Command line warning: ignoring option '-M'; no argument required
3621 # The diagnosis changed in icc 8.0:
3622 # icc: Command line remark: option '-MP' not supported
3623 if (grep 'ignoring option' conftest.err ||
3624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3625 am_cv_CC_dependencies_compiler_type=$depmode
3626 break
3627 fi
3628 fi
3629 done
3630
3631 cd ..
3632 rm -rf conftest.dir
3633 else
3634 am_cv_CC_dependencies_compiler_type=none
3635 fi
3636
3637 fi
3638 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3639 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3640 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3641
3642 if
3643 test "x$enable_dependency_tracking" != xno \
3644 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3645 am__fastdepCC_TRUE=
3646 am__fastdepCC_FALSE='#'
3647 else
3648 am__fastdepCC_TRUE='#'
3649 am__fastdepCC_FALSE=
3650 fi
3651
3652
3653
3654 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3655 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3656 if test "${ac_cv_search_strerror+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 ac_func_search_save_LIBS=$LIBS
3660 cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h. */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666
3667 /* Override any GCC internal prototype to avoid an error.
3668 Use char because int might match the return type of a GCC
3669 builtin and then its argument prototype would still apply. */
3670 #ifdef __cplusplus
3671 extern "C"
3672 #endif
3673 char strerror ();
3674 int
3675 main ()
3676 {
3677 return strerror ();
3678 ;
3679 return 0;
3680 }
3681 _ACEOF
3682 for ac_lib in '' cposix; do
3683 if test -z "$ac_lib"; then
3684 ac_res="none required"
3685 else
3686 ac_res=-l$ac_lib
3687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3688 fi
3689 rm -f conftest.$ac_objext conftest$ac_exeext
3690 if { (ac_try="$ac_link"
3691 case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694 esac
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_link") 2>conftest.er1
3697 ac_status=$?
3698 grep -v '^ *+' conftest.er1 >conftest.err
3699 rm -f conftest.er1
3700 cat conftest.err >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } && {
3703 test -z "$ac_c_werror_flag" ||
3704 test ! -s conftest.err
3705 } && test -s conftest$ac_exeext &&
3706 $as_test_x conftest$ac_exeext; then
3707 ac_cv_search_strerror=$ac_res
3708 else
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712
3713 fi
3714
3715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3716 conftest$ac_exeext
3717 if test "${ac_cv_search_strerror+set}" = set; then
3718 break
3719 fi
3720 done
3721 if test "${ac_cv_search_strerror+set}" = set; then
3722 :
3723 else
3724 ac_cv_search_strerror=no
3725 fi
3726 rm conftest.$ac_ext
3727 LIBS=$ac_func_search_save_LIBS
3728 fi
3729 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3730 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3731 ac_res=$ac_cv_search_strerror
3732 if test "$ac_res" != no; then
3733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3734
3735 fi
3736
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3743 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3744 # On Suns, sometimes $CPP names a directory.
3745 if test -n "$CPP" && test -d "$CPP"; then
3746 CPP=
3747 fi
3748 if test -z "$CPP"; then
3749 if test "${ac_cv_prog_CPP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 # Double quotes because CPP needs to be expanded
3753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3754 do
3755 ac_preproc_ok=false
3756 for ac_c_preproc_warn_flag in '' yes
3757 do
3758 # Use a header file that comes with gcc, so configuring glibc
3759 # with a fresh cross-compiler works.
3760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3761 # <limits.h> exists even on freestanding compilers.
3762 # On the NeXT, cc -E runs the code through the compiler's parser,
3763 # not just through cpp. "Syntax error" is here to catch this case.
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 #ifdef __STDC__
3771 # include <limits.h>
3772 #else
3773 # include <assert.h>
3774 #endif
3775 Syntax error
3776 _ACEOF
3777 if { (ac_try="$ac_cpp conftest.$ac_ext"
3778 case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781 esac
3782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } >/dev/null && {
3790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3791 test ! -s conftest.err
3792 }; then
3793 :
3794 else
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 # Broken: fails on valid input.
3799 continue
3800 fi
3801
3802 rm -f conftest.err conftest.$ac_ext
3803
3804 # OK, works on sane cases. Now check whether nonexistent headers
3805 # can be detected and how.
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <ac_nonexistent.h>
3813 _ACEOF
3814 if { (ac_try="$ac_cpp conftest.$ac_ext"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev/null && {
3827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 }; then
3830 # Broken: success on invalid input.
3831 continue
3832 else
3833 echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3835
3836 # Passes both tests.
3837 ac_preproc_ok=:
3838 break
3839 fi
3840
3841 rm -f conftest.err conftest.$ac_ext
3842
3843 done
3844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3845 rm -f conftest.err conftest.$ac_ext
3846 if $ac_preproc_ok; then
3847 break
3848 fi
3849
3850 done
3851 ac_cv_prog_CPP=$CPP
3852
3853 fi
3854 CPP=$ac_cv_prog_CPP
3855 else
3856 ac_cv_prog_CPP=$CPP
3857 fi
3858 { echo "$as_me:$LINENO: result: $CPP" >&5
3859 echo "${ECHO_T}$CPP" >&6; }
3860 ac_preproc_ok=false
3861 for ac_c_preproc_warn_flag in '' yes
3862 do
3863 # Use a header file that comes with gcc, so configuring glibc
3864 # with a fresh cross-compiler works.
3865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3866 # <limits.h> exists even on freestanding compilers.
3867 # On the NeXT, cc -E runs the code through the compiler's parser,
3868 # not just through cpp. "Syntax error" is here to catch this case.
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h. */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 #ifdef __STDC__
3876 # include <limits.h>
3877 #else
3878 # include <assert.h>
3879 #endif
3880 Syntax error
3881 _ACEOF
3882 if { (ac_try="$ac_cpp conftest.$ac_ext"
3883 case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886 esac
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } >/dev/null && {
3895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3896 test ! -s conftest.err
3897 }; then
3898 :
3899 else
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3902
3903 # Broken: fails on valid input.
3904 continue
3905 fi
3906
3907 rm -f conftest.err conftest.$ac_ext
3908
3909 # OK, works on sane cases. Now check whether nonexistent headers
3910 # can be detected and how.
3911 cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h. */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3917 #include <ac_nonexistent.h>
3918 _ACEOF
3919 if { (ac_try="$ac_cpp conftest.$ac_ext"
3920 case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } >/dev/null && {
3932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3934 }; then
3935 # Broken: success on invalid input.
3936 continue
3937 else
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 # Passes both tests.
3942 ac_preproc_ok=:
3943 break
3944 fi
3945
3946 rm -f conftest.err conftest.$ac_ext
3947
3948 done
3949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3950 rm -f conftest.err conftest.$ac_ext
3951 if $ac_preproc_ok; then
3952 :
3953 else
3954 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3955 See \`config.log' for more details." >&5
3956 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3957 See \`config.log' for more details." >&2;}
3958 { (exit 1); exit 1; }; }
3959 fi
3960
3961 ac_ext=c
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966
3967
3968 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3969 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3970 if test "${ac_cv_path_GREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973 # Extract the first word of "grep ggrep" to use in msg output
3974 if test -z "$GREP"; then
3975 set dummy grep ggrep; ac_prog_name=$2
3976 if test "${ac_cv_path_GREP+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979 ac_path_GREP_found=false
3980 # Loop through the user's path and test for each of PROGNAME-LIST
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3983 do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_prog in grep ggrep; do
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3989 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3990 # Check for GNU ac_path_GREP and select it if it is found.
3991 # Check for GNU $ac_path_GREP
3992 case `"$ac_path_GREP" --version 2>&1` in
3993 *GNU*)
3994 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3995 *)
3996 ac_count=0
3997 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3998 while :
3999 do
4000 cat "conftest.in" "conftest.in" >"conftest.tmp"
4001 mv "conftest.tmp" "conftest.in"
4002 cp "conftest.in" "conftest.nl"
4003 echo 'GREP' >> "conftest.nl"
4004 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4006 ac_count=`expr $ac_count + 1`
4007 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4008 # Best one so far, save it but keep looking for a better one
4009 ac_cv_path_GREP="$ac_path_GREP"
4010 ac_path_GREP_max=$ac_count
4011 fi
4012 # 10*(2^10) chars as input seems more than enough
4013 test $ac_count -gt 10 && break
4014 done
4015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016 esac
4017
4018
4019 $ac_path_GREP_found && break 3
4020 done
4021 done
4022
4023 done
4024 IFS=$as_save_IFS
4025
4026
4027 fi
4028
4029 GREP="$ac_cv_path_GREP"
4030 if test -z "$GREP"; then
4031 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4032 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4033 { (exit 1); exit 1; }; }
4034 fi
4035
4036 else
4037 ac_cv_path_GREP=$GREP
4038 fi
4039
4040
4041 fi
4042 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4043 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4044 GREP="$ac_cv_path_GREP"
4045
4046
4047 { echo "$as_me:$LINENO: checking for egrep" >&5
4048 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4049 if test "${ac_cv_path_EGREP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4053 then ac_cv_path_EGREP="$GREP -E"
4054 else
4055 # Extract the first word of "egrep" to use in msg output
4056 if test -z "$EGREP"; then
4057 set dummy egrep; ac_prog_name=$2
4058 if test "${ac_cv_path_EGREP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 ac_path_EGREP_found=false
4062 # Loop through the user's path and test for each of PROGNAME-LIST
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_prog in egrep; do
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4071 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4072 # Check for GNU ac_path_EGREP and select it if it is found.
4073 # Check for GNU $ac_path_EGREP
4074 case `"$ac_path_EGREP" --version 2>&1` in
4075 *GNU*)
4076 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4077 *)
4078 ac_count=0
4079 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4080 while :
4081 do
4082 cat "conftest.in" "conftest.in" >"conftest.tmp"
4083 mv "conftest.tmp" "conftest.in"
4084 cp "conftest.in" "conftest.nl"
4085 echo 'EGREP' >> "conftest.nl"
4086 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088 ac_count=`expr $ac_count + 1`
4089 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4090 # Best one so far, save it but keep looking for a better one
4091 ac_cv_path_EGREP="$ac_path_EGREP"
4092 ac_path_EGREP_max=$ac_count
4093 fi
4094 # 10*(2^10) chars as input seems more than enough
4095 test $ac_count -gt 10 && break
4096 done
4097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098 esac
4099
4100
4101 $ac_path_EGREP_found && break 3
4102 done
4103 done
4104
4105 done
4106 IFS=$as_save_IFS
4107
4108
4109 fi
4110
4111 EGREP="$ac_cv_path_EGREP"
4112 if test -z "$EGREP"; then
4113 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4114 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4115 { (exit 1); exit 1; }; }
4116 fi
4117
4118 else
4119 ac_cv_path_EGREP=$EGREP
4120 fi
4121
4122
4123 fi
4124 fi
4125 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4126 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4127 EGREP="$ac_cv_path_EGREP"
4128
4129
4130 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4131 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4132 if test "${ac_cv_header_stdc+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <stdlib.h>
4142 #include <stdarg.h>
4143 #include <string.h>
4144 #include <float.h>
4145
4146 int
4147 main ()
4148 {
4149
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4156 case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && {
4168 test -z "$ac_c_werror_flag" ||
4169 test ! -s conftest.err
4170 } && test -s conftest.$ac_objext; then
4171 ac_cv_header_stdc=yes
4172 else
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4175
4176 ac_cv_header_stdc=no
4177 fi
4178
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180
4181 if test $ac_cv_header_stdc = yes; then
4182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 #include <string.h>
4190
4191 _ACEOF
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 $EGREP "memchr" >/dev/null 2>&1; then
4194 :
4195 else
4196 ac_cv_header_stdc=no
4197 fi
4198 rm -f conftest*
4199
4200 fi
4201
4202 if test $ac_cv_header_stdc = yes; then
4203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <stdlib.h>
4211
4212 _ACEOF
4213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 $EGREP "free" >/dev/null 2>&1; then
4215 :
4216 else
4217 ac_cv_header_stdc=no
4218 fi
4219 rm -f conftest*
4220
4221 fi
4222
4223 if test $ac_cv_header_stdc = yes; then
4224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4225 if test "$cross_compiling" = yes; then
4226 :
4227 else
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <ctype.h>
4235 #include <stdlib.h>
4236 #if ((' ' & 0x0FF) == 0x020)
4237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4239 #else
4240 # define ISLOWER(c) \
4241 (('a' <= (c) && (c) <= 'i') \
4242 || ('j' <= (c) && (c) <= 'r') \
4243 || ('s' <= (c) && (c) <= 'z'))
4244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4245 #endif
4246
4247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4248 int
4249 main ()
4250 {
4251 int i;
4252 for (i = 0; i < 256; i++)
4253 if (XOR (islower (i), ISLOWER (i))
4254 || toupper (i) != TOUPPER (i))
4255 return 2;
4256 return 0;
4257 }
4258 _ACEOF
4259 rm -f conftest$ac_exeext
4260 if { (ac_try="$ac_link"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_link") 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 :
4280 else
4281 echo "$as_me: program exited with status $ac_status" >&5
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 ( exit $ac_status )
4286 ac_cv_header_stdc=no
4287 fi
4288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4289 fi
4290
4291
4292 fi
4293 fi
4294 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4295 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4296 if test $ac_cv_header_stdc = yes; then
4297
4298 cat >>confdefs.h <<\_ACEOF
4299 #define STDC_HEADERS 1
4300 _ACEOF
4301
4302 fi
4303
4304 # Check whether --enable-shared was given.
4305 if test "${enable_shared+set}" = set; then
4306 enableval=$enable_shared; p=${PACKAGE-default}
4307 case $enableval in
4308 yes) enable_shared=yes ;;
4309 no) enable_shared=no ;;
4310 *)
4311 enable_shared=no
4312 # Look at the argument we got. We use all the common list separators.
4313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4314 for pkg in $enableval; do
4315 IFS="$lt_save_ifs"
4316 if test "X$pkg" = "X$p"; then
4317 enable_shared=yes
4318 fi
4319 done
4320 IFS="$lt_save_ifs"
4321 ;;
4322 esac
4323 else
4324 enable_shared=yes
4325 fi
4326
4327
4328 # Check whether --enable-static was given.
4329 if test "${enable_static+set}" = set; then
4330 enableval=$enable_static; p=${PACKAGE-default}
4331 case $enableval in
4332 yes) enable_static=yes ;;
4333 no) enable_static=no ;;
4334 *)
4335 enable_static=no
4336 # Look at the argument we got. We use all the common list separators.
4337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4338 for pkg in $enableval; do
4339 IFS="$lt_save_ifs"
4340 if test "X$pkg" = "X$p"; then
4341 enable_static=yes
4342 fi
4343 done
4344 IFS="$lt_save_ifs"
4345 ;;
4346 esac
4347 else
4348 enable_static=yes
4349 fi
4350
4351
4352 # Check whether --enable-fast-install was given.
4353 if test "${enable_fast_install+set}" = set; then
4354 enableval=$enable_fast_install; p=${PACKAGE-default}
4355 case $enableval in
4356 yes) enable_fast_install=yes ;;
4357 no) enable_fast_install=no ;;
4358 *)
4359 enable_fast_install=no
4360 # Look at the argument we got. We use all the common list separators.
4361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4362 for pkg in $enableval; do
4363 IFS="$lt_save_ifs"
4364 if test "X$pkg" = "X$p"; then
4365 enable_fast_install=yes
4366 fi
4367 done
4368 IFS="$lt_save_ifs"
4369 ;;
4370 esac
4371 else
4372 enable_fast_install=yes
4373 fi
4374
4375
4376 # Make sure we can run config.sub.
4377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4378 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4379 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4380 { (exit 1); exit 1; }; }
4381
4382 { echo "$as_me:$LINENO: checking build system type" >&5
4383 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4384 if test "${ac_cv_build+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 ac_build_alias=$build_alias
4388 test "x$ac_build_alias" = x &&
4389 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4390 test "x$ac_build_alias" = x &&
4391 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4393 { (exit 1); exit 1; }; }
4394 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4395 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4396 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4397 { (exit 1); exit 1; }; }
4398
4399 fi
4400 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4401 echo "${ECHO_T}$ac_cv_build" >&6; }
4402 case $ac_cv_build in
4403 *-*-*) ;;
4404 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4405 echo "$as_me: error: invalid value of canonical build" >&2;}
4406 { (exit 1); exit 1; }; };;
4407 esac
4408 build=$ac_cv_build
4409 ac_save_IFS=$IFS; IFS='-'
4410 set x $ac_cv_build
4411 shift
4412 build_cpu=$1
4413 build_vendor=$2
4414 shift; shift
4415 # Remember, the first character of IFS is used to create $*,
4416 # except with old shells:
4417 build_os=$*
4418 IFS=$ac_save_IFS
4419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4420
4421
4422 { echo "$as_me:$LINENO: checking host system type" >&5
4423 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4424 if test "${ac_cv_host+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427 if test "x$host_alias" = x; then
4428 ac_cv_host=$ac_cv_build
4429 else
4430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4431 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4432 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4433 { (exit 1); exit 1; }; }
4434 fi
4435
4436 fi
4437 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4438 echo "${ECHO_T}$ac_cv_host" >&6; }
4439 case $ac_cv_host in
4440 *-*-*) ;;
4441 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4442 echo "$as_me: error: invalid value of canonical host" >&2;}
4443 { (exit 1); exit 1; }; };;
4444 esac
4445 host=$ac_cv_host
4446 ac_save_IFS=$IFS; IFS='-'
4447 set x $ac_cv_host
4448 shift
4449 host_cpu=$1
4450 host_vendor=$2
4451 shift; shift
4452 # Remember, the first character of IFS is used to create $*,
4453 # except with old shells:
4454 host_os=$*
4455 IFS=$ac_save_IFS
4456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4457
4458
4459 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4460 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4461 if test "${lt_cv_path_SED+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 # Loop through the user's path and test for sed and gsed.
4465 # Then use that list of sed's as ones to test for truncation.
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for lt_ac_prog in sed gsed; do
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4474 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4475 fi
4476 done
4477 done
4478 done
4479 IFS=$as_save_IFS
4480 lt_ac_max=0
4481 lt_ac_count=0
4482 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4483 # along with /bin/sed that truncates output.
4484 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4485 test ! -f $lt_ac_sed && continue
4486 cat /dev/null > conftest.in
4487 lt_ac_count=0
4488 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4489 # Check for GNU sed and select it if it is found.
4490 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4491 lt_cv_path_SED=$lt_ac_sed
4492 break
4493 fi
4494 while true; do
4495 cat conftest.in conftest.in >conftest.tmp
4496 mv conftest.tmp conftest.in
4497 cp conftest.in conftest.nl
4498 echo >>conftest.nl
4499 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4500 cmp -s conftest.out conftest.nl || break
4501 # 10000 chars as input seems more than enough
4502 test $lt_ac_count -gt 10 && break
4503 lt_ac_count=`expr $lt_ac_count + 1`
4504 if test $lt_ac_count -gt $lt_ac_max; then
4505 lt_ac_max=$lt_ac_count
4506 lt_cv_path_SED=$lt_ac_sed
4507 fi
4508 done
4509 done
4510
4511 fi
4512
4513 SED=$lt_cv_path_SED
4514
4515 { echo "$as_me:$LINENO: result: $SED" >&5
4516 echo "${ECHO_T}$SED" >&6; }
4517
4518
4519 # Check whether --with-gnu-ld was given.
4520 if test "${with_gnu_ld+set}" = set; then
4521 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4522 else
4523 with_gnu_ld=no
4524 fi
4525
4526 ac_prog=ld
4527 if test "$GCC" = yes; then
4528 # Check if gcc -print-prog-name=ld gives a path.
4529 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4530 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4531 case $host in
4532 *-*-mingw*)
4533 # gcc leaves a trailing carriage return which upsets mingw
4534 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4535 *)
4536 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4537 esac
4538 case $ac_prog in
4539 # Accept absolute paths.
4540 [\\/]* | ?:[\\/]*)
4541 re_direlt='/[^/][^/]*/\.\./'
4542 # Canonicalize the pathname of ld
4543 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4544 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4545 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4546 done
4547 test -z "$LD" && LD="$ac_prog"
4548 ;;
4549 "")
4550 # If it fails, then pretend we aren't using GCC.
4551 ac_prog=ld
4552 ;;
4553 *)
4554 # If it is relative, then search for the first ld in PATH.
4555 with_gnu_ld=unknown
4556 ;;
4557 esac
4558 elif test "$with_gnu_ld" = yes; then
4559 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4560 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4561 else
4562 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4563 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4564 fi
4565 if test "${lt_cv_path_LD+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 if test -z "$LD"; then
4569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4570 for ac_dir in $PATH; do
4571 IFS="$lt_save_ifs"
4572 test -z "$ac_dir" && ac_dir=.
4573 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4574 lt_cv_path_LD="$ac_dir/$ac_prog"
4575 # Check to see if the program is GNU ld. I'd rather use --version,
4576 # but apparently some variants of GNU ld only accept -v.
4577 # Break only if it was the GNU/non-GNU ld that we prefer.
4578 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4579 *GNU* | *'with BFD'*)
4580 test "$with_gnu_ld" != no && break
4581 ;;
4582 *)
4583 test "$with_gnu_ld" != yes && break
4584 ;;
4585 esac
4586 fi
4587 done
4588 IFS="$lt_save_ifs"
4589 else
4590 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4591 fi
4592 fi
4593
4594 LD="$lt_cv_path_LD"
4595 if test -n "$LD"; then
4596 { echo "$as_me:$LINENO: result: $LD" >&5
4597 echo "${ECHO_T}$LD" >&6; }
4598 else
4599 { echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6; }
4601 fi
4602 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4603 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4604 { (exit 1); exit 1; }; }
4605 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4606 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4607 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4611 case `$LD -v 2>&1 </dev/null` in
4612 *GNU* | *'with BFD'*)
4613 lt_cv_prog_gnu_ld=yes
4614 ;;
4615 *)
4616 lt_cv_prog_gnu_ld=no
4617 ;;
4618 esac
4619 fi
4620 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4621 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4622 with_gnu_ld=$lt_cv_prog_gnu_ld
4623
4624
4625 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4626 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4627 if test "${lt_cv_ld_reload_flag+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 lt_cv_ld_reload_flag='-r'
4631 fi
4632 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4633 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4634 reload_flag=$lt_cv_ld_reload_flag
4635 case $reload_flag in
4636 "" | " "*) ;;
4637 *) reload_flag=" $reload_flag" ;;
4638 esac
4639 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4640 case $host_os in
4641 darwin*)
4642 if test "$GCC" = yes; then
4643 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4644 else
4645 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4646 fi
4647 ;;
4648 esac
4649
4650 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4651 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4652 if test "${lt_cv_path_NM+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655 if test -n "$NM"; then
4656 # Let the user override the test.
4657 lt_cv_path_NM="$NM"
4658 else
4659 lt_nm_to_check="${ac_tool_prefix}nm"
4660 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4661 lt_nm_to_check="$lt_nm_to_check nm"
4662 fi
4663 for lt_tmp_nm in $lt_nm_to_check; do
4664 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4665 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4666 IFS="$lt_save_ifs"
4667 test -z "$ac_dir" && ac_dir=.
4668 tmp_nm="$ac_dir/$lt_tmp_nm"
4669 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4670 # Check to see if the nm accepts a BSD-compat flag.
4671 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4672 # nm: unknown option "B" ignored
4673 # Tru64's nm complains that /dev/null is an invalid object file
4674 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4675 */dev/null* | *'Invalid file or object type'*)
4676 lt_cv_path_NM="$tmp_nm -B"
4677 break
4678 ;;
4679 *)
4680 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4681 */dev/null*)
4682 lt_cv_path_NM="$tmp_nm -p"
4683 break
4684 ;;
4685 *)
4686 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4687 continue # so that we can try to find one that supports BSD flags
4688 ;;
4689 esac
4690 ;;
4691 esac
4692 fi
4693 done
4694 IFS="$lt_save_ifs"
4695 done
4696 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4697 fi
4698 fi
4699 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4700 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4701 NM="$lt_cv_path_NM"
4702
4703 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4704 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4705 LN_S=$as_ln_s
4706 if test "$LN_S" = "ln -s"; then
4707 { echo "$as_me:$LINENO: result: yes" >&5
4708 echo "${ECHO_T}yes" >&6; }
4709 else
4710 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4711 echo "${ECHO_T}no, using $LN_S" >&6; }
4712 fi
4713
4714 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4715 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4716 if test "${lt_cv_deplibs_check_method+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719 lt_cv_file_magic_cmd='$MAGIC_CMD'
4720 lt_cv_file_magic_test_file=
4721 lt_cv_deplibs_check_method='unknown'
4722 # Need to set the preceding variable on all platforms that support
4723 # interlibrary dependencies.
4724 # 'none' -- dependencies not supported.
4725 # `unknown' -- same as none, but documents that we really don't know.
4726 # 'pass_all' -- all dependencies passed with no checks.
4727 # 'test_compile' -- check by making test program.
4728 # 'file_magic [[regex]]' -- check by looking for files in library path
4729 # which responds to the $file_magic_cmd with a given extended regex.
4730 # If you have `file' or equivalent on your system and you're not sure
4731 # whether `pass_all' will *always* work, you probably want this one.
4732
4733 case $host_os in
4734 aix[4-9]*)
4735 lt_cv_deplibs_check_method=pass_all
4736 ;;
4737
4738 beos*)
4739 lt_cv_deplibs_check_method=pass_all
4740 ;;
4741
4742 bsdi[45]*)
4743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4744 lt_cv_file_magic_cmd='/usr/bin/file -L'
4745 lt_cv_file_magic_test_file=/shlib/libc.so
4746 ;;
4747
4748 cygwin*)
4749 # func_win32_libid is a shell function defined in ltmain.sh
4750 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4751 lt_cv_file_magic_cmd='func_win32_libid'
4752 ;;
4753
4754 mingw* | pw32*)
4755 # Base MSYS/MinGW do not provide the 'file' command needed by
4756 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4757 # unless we find 'file', for example because we are cross-compiling.
4758 if ( file / ) >/dev/null 2>&1; then
4759 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4760 lt_cv_file_magic_cmd='func_win32_libid'
4761 else
4762 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4763 lt_cv_file_magic_cmd='$OBJDUMP -f'
4764 fi
4765 ;;
4766
4767 darwin* | rhapsody*)
4768 lt_cv_deplibs_check_method=pass_all
4769 ;;
4770
4771 freebsd* | dragonfly*)
4772 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4773 case $host_cpu in
4774 i*86 )
4775 # Not sure whether the presence of OpenBSD here was a mistake.
4776 # Let's accept both of them until this is cleared up.
4777 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4778 lt_cv_file_magic_cmd=/usr/bin/file
4779 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4780 ;;
4781 esac
4782 else
4783 lt_cv_deplibs_check_method=pass_all
4784 fi
4785 ;;
4786
4787 gnu*)
4788 lt_cv_deplibs_check_method=pass_all
4789 ;;
4790
4791 hpux10.20* | hpux11*)
4792 lt_cv_file_magic_cmd=/usr/bin/file
4793 case $host_cpu in
4794 ia64*)
4795 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4796 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4797 ;;
4798 hppa*64*)
4799 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]'
4800 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4801 ;;
4802 *)
4803 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4804 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4805 ;;
4806 esac
4807 ;;
4808
4809 interix[3-9]*)
4810 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4812 ;;
4813
4814 irix5* | irix6* | nonstopux*)
4815 case $LD in
4816 *-32|*"-32 ") libmagic=32-bit;;
4817 *-n32|*"-n32 ") libmagic=N32;;
4818 *-64|*"-64 ") libmagic=64-bit;;
4819 *) libmagic=never-match;;
4820 esac
4821 lt_cv_deplibs_check_method=pass_all
4822 ;;
4823
4824 # This must be Linux ELF.
4825 linux* | k*bsd*-gnu)
4826 lt_cv_deplibs_check_method=pass_all
4827 ;;
4828
4829 netbsd* | netbsdelf*-gnu)
4830 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4832 else
4833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4834 fi
4835 ;;
4836
4837 newos6*)
4838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4839 lt_cv_file_magic_cmd=/usr/bin/file
4840 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4841 ;;
4842
4843 nto-qnx*)
4844 lt_cv_deplibs_check_method=unknown
4845 ;;
4846
4847 openbsd*)
4848 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4850 else
4851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4852 fi
4853 ;;
4854
4855 osf3* | osf4* | osf5*)
4856 lt_cv_deplibs_check_method=pass_all
4857 ;;
4858
4859 rdos*)
4860 lt_cv_deplibs_check_method=pass_all
4861 ;;
4862
4863 solaris*)
4864 lt_cv_deplibs_check_method=pass_all
4865 ;;
4866
4867 sysv4 | sysv4.3*)
4868 case $host_vendor in
4869 motorola)
4870 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]'
4871 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4872 ;;
4873 ncr)
4874 lt_cv_deplibs_check_method=pass_all
4875 ;;
4876 sequent)
4877 lt_cv_file_magic_cmd='/bin/file'
4878 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4879 ;;
4880 sni)
4881 lt_cv_file_magic_cmd='/bin/file'
4882 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4883 lt_cv_file_magic_test_file=/lib/libc.so
4884 ;;
4885 siemens)
4886 lt_cv_deplibs_check_method=pass_all
4887 ;;
4888 pc)
4889 lt_cv_deplibs_check_method=pass_all
4890 ;;
4891 esac
4892 ;;
4893
4894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4895 lt_cv_deplibs_check_method=pass_all
4896 ;;
4897 esac
4898
4899 fi
4900 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4901 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4902 file_magic_cmd=$lt_cv_file_magic_cmd
4903 deplibs_check_method=$lt_cv_deplibs_check_method
4904 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4905
4906
4907
4908
4909 # If no C compiler was specified, use CC.
4910 LTCC=${LTCC-"$CC"}
4911
4912 # If no C compiler flags were specified, use CFLAGS.
4913 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4914
4915 # Allow CC to be a program name with arguments.
4916 compiler=$CC
4917
4918 # Check whether --enable-libtool-lock was given.
4919 if test "${enable_libtool_lock+set}" = set; then
4920 enableval=$enable_libtool_lock;
4921 fi
4922
4923 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4924
4925 # Some flags need to be propagated to the compiler or linker for good
4926 # libtool support.
4927 case $host in
4928 ia64-*-hpux*)
4929 # Find out which ABI we are using.
4930 echo 'int i;' > conftest.$ac_ext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4932 (eval $ac_compile) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; then
4936 case `/usr/bin/file conftest.$ac_objext` in
4937 *ELF-32*)
4938 HPUX_IA64_MODE="32"
4939 ;;
4940 *ELF-64*)
4941 HPUX_IA64_MODE="64"
4942 ;;
4943 esac
4944 fi
4945 rm -rf conftest*
4946 ;;
4947 *-*-irix6*)
4948 # Find out which ABI we are using.
4949 echo '#line 4950 "configure"' > conftest.$ac_ext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; then
4955 if test "$lt_cv_prog_gnu_ld" = yes; then
4956 case `/usr/bin/file conftest.$ac_objext` in
4957 *32-bit*)
4958 LD="${LD-ld} -melf32bsmip"
4959 ;;
4960 *N32*)
4961 LD="${LD-ld} -melf32bmipn32"
4962 ;;
4963 *64-bit*)
4964 LD="${LD-ld} -melf64bmip"
4965 ;;
4966 esac
4967 else
4968 case `/usr/bin/file conftest.$ac_objext` in
4969 *32-bit*)
4970 LD="${LD-ld} -32"
4971 ;;
4972 *N32*)
4973 LD="${LD-ld} -n32"
4974 ;;
4975 *64-bit*)
4976 LD="${LD-ld} -64"
4977 ;;
4978 esac
4979 fi
4980 fi
4981 rm -rf conftest*
4982 ;;
4983
4984 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4985 s390*-*linux*|sparc*-*linux*)
4986 # Find out which ABI we are using.
4987 echo 'int i;' > conftest.$ac_ext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; then
4993 case `/usr/bin/file conftest.o` in
4994 *32-bit*)
4995 case $host in
4996 x86_64-*kfreebsd*-gnu)
4997 LD="${LD-ld} -m elf_i386_fbsd"
4998 ;;
4999 x86_64-*linux*)
5000 LD="${LD-ld} -m elf_i386"
5001 ;;
5002 ppc64-*linux*|powerpc64-*linux*)
5003 LD="${LD-ld} -m elf32ppclinux"
5004 ;;
5005 s390x-*linux*)
5006 LD="${LD-ld} -m elf_s390"
5007 ;;
5008 sparc64-*linux*)
5009 LD="${LD-ld} -m elf32_sparc"
5010 ;;
5011 esac
5012 ;;
5013 *64-bit*)
5014 case $host in
5015 x86_64-*kfreebsd*-gnu)
5016 LD="${LD-ld} -m elf_x86_64_fbsd"
5017 ;;
5018 x86_64-*linux*)
5019 LD="${LD-ld} -m elf_x86_64"
5020 ;;
5021 ppc*-*linux*|powerpc*-*linux*)
5022 LD="${LD-ld} -m elf64ppc"
5023 ;;
5024 s390*-*linux*)
5025 LD="${LD-ld} -m elf64_s390"
5026 ;;
5027 sparc*-*linux*)
5028 LD="${LD-ld} -m elf64_sparc"
5029 ;;
5030 esac
5031 ;;
5032 esac
5033 fi
5034 rm -rf conftest*
5035 ;;
5036
5037 *-*-sco3.2v5*)
5038 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5039 SAVE_CFLAGS="$CFLAGS"
5040 CFLAGS="$CFLAGS -belf"
5041 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5042 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5043 if test "${lt_cv_cc_needs_belf+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 ac_ext=c
5047 ac_cpp='$CPP $CPPFLAGS'
5048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058
5059 int
5060 main ()
5061 {
5062
5063 ;
5064 return 0;
5065 }
5066 _ACEOF
5067 rm -f conftest.$ac_objext conftest$ac_exeext
5068 if { (ac_try="$ac_link"
5069 case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5072 esac
5073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074 (eval "$ac_link") 2>conftest.er1
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } && {
5081 test -z "$ac_c_werror_flag" ||
5082 test ! -s conftest.err
5083 } && test -s conftest$ac_exeext &&
5084 $as_test_x conftest$ac_exeext; then
5085 lt_cv_cc_needs_belf=yes
5086 else
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5089
5090 lt_cv_cc_needs_belf=no
5091 fi
5092
5093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5094 conftest$ac_exeext conftest.$ac_ext
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100
5101 fi
5102 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5103 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5104 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5105 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5106 CFLAGS="$SAVE_CFLAGS"
5107 fi
5108 ;;
5109 sparc*-*solaris*)
5110 # Find out which ABI we are using.
5111 echo 'int i;' > conftest.$ac_ext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113 (eval $ac_compile) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; then
5117 case `/usr/bin/file conftest.o` in
5118 *64-bit*)
5119 case $lt_cv_prog_gnu_ld in
5120 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5121 *)
5122 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5123 LD="${LD-ld} -64"
5124 fi
5125 ;;
5126 esac
5127 ;;
5128 esac
5129 fi
5130 rm -rf conftest*
5131 ;;
5132
5133
5134 esac
5135
5136 need_locks="$enable_libtool_lock"
5137
5138
5139 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5150 inttypes.h stdint.h unistd.h
5151 do
5152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h. */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 $ac_includes_default
5165
5166 #include <$ac_header>
5167 _ACEOF
5168 rm -f conftest.$ac_objext
5169 if { (ac_try="$ac_compile"
5170 case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173 esac
5174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175 (eval "$ac_compile") 2>conftest.er1
5176 ac_status=$?
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } && {
5182 test -z "$ac_c_werror_flag" ||
5183 test ! -s conftest.err
5184 } && test -s conftest.$ac_objext; then
5185 eval "$as_ac_Header=yes"
5186 else
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5189
5190 eval "$as_ac_Header=no"
5191 fi
5192
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194 fi
5195 ac_res=`eval echo '${'$as_ac_Header'}'`
5196 { echo "$as_me:$LINENO: result: $ac_res" >&5
5197 echo "${ECHO_T}$ac_res" >&6; }
5198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5199 cat >>confdefs.h <<_ACEOF
5200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5201 _ACEOF
5202
5203 fi
5204
5205 done
5206
5207
5208
5209 for ac_header in dlfcn.h
5210 do
5211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 fi
5218 ac_res=`eval echo '${'$as_ac_Header'}'`
5219 { echo "$as_me:$LINENO: result: $ac_res" >&5
5220 echo "${ECHO_T}$ac_res" >&6; }
5221 else
5222 # Is the header compilable?
5223 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h. */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 $ac_includes_default
5232 #include <$ac_header>
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (ac_try="$ac_compile"
5236 case "(($ac_try" in
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5239 esac
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_compile") 2>conftest.er1
5242 ac_status=$?
5243 grep -v '^ *+' conftest.er1 >conftest.err
5244 rm -f conftest.er1
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && {
5248 test -z "$ac_c_werror_flag" ||
5249 test ! -s conftest.err
5250 } && test -s conftest.$ac_objext; then
5251 ac_header_compiler=yes
5252 else
5253 echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5255
5256 ac_header_compiler=no
5257 fi
5258
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5261 echo "${ECHO_T}$ac_header_compiler" >&6; }
5262
5263 # Is the header present?
5264 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5266 cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h. */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 #include <$ac_header>
5273 _ACEOF
5274 if { (ac_try="$ac_cpp conftest.$ac_ext"
5275 case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } >/dev/null && {
5287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5288 test ! -s conftest.err
5289 }; then
5290 ac_header_preproc=yes
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 ac_header_preproc=no
5296 fi
5297
5298 rm -f conftest.err conftest.$ac_ext
5299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5300 echo "${ECHO_T}$ac_header_preproc" >&6; }
5301
5302 # So? What about this header?
5303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5304 yes:no: )
5305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5309 ac_header_preproc=yes
5310 ;;
5311 no:yes:* )
5312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5324
5325 ;;
5326 esac
5327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 eval "$as_ac_Header=\$ac_header_preproc"
5333 fi
5334 ac_res=`eval echo '${'$as_ac_Header'}'`
5335 { echo "$as_me:$LINENO: result: $ac_res" >&5
5336 echo "${ECHO_T}$ac_res" >&6; }
5337
5338 fi
5339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5340 cat >>confdefs.h <<_ACEOF
5341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5342 _ACEOF
5343
5344 fi
5345
5346 done
5347
5348 ac_ext=cpp
5349 ac_cpp='$CXXCPP $CPPFLAGS'
5350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5353 if test -z "$CXX"; then
5354 if test -n "$CCC"; then
5355 CXX=$CCC
5356 else
5357 if test -n "$ac_tool_prefix"; then
5358 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5359 do
5360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5364 if test "${ac_cv_prog_CXX+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 if test -n "$CXX"; then
5368 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381 done
5382 done
5383 IFS=$as_save_IFS
5384
5385 fi
5386 fi
5387 CXX=$ac_cv_prog_CXX
5388 if test -n "$CXX"; then
5389 { echo "$as_me:$LINENO: result: $CXX" >&5
5390 echo "${ECHO_T}$CXX" >&6; }
5391 else
5392 { echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6; }
5394 fi
5395
5396
5397 test -n "$CXX" && break
5398 done
5399 fi
5400 if test -z "$CXX"; then
5401 ac_ct_CXX=$CXX
5402 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5403 do
5404 # Extract the first word of "$ac_prog", so it can be a program name with args.
5405 set dummy $ac_prog; ac_word=$2
5406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5408 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 if test -n "$ac_ct_CXX"; then
5412 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5421 ac_cv_prog_ac_ct_CXX="$ac_prog"
5422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425 done
5426 done
5427 IFS=$as_save_IFS
5428
5429 fi
5430 fi
5431 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5432 if test -n "$ac_ct_CXX"; then
5433 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5434 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5435 else
5436 { echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6; }
5438 fi
5439
5440
5441 test -n "$ac_ct_CXX" && break
5442 done
5443
5444 if test "x$ac_ct_CXX" = x; then
5445 CXX="g++"
5446 else
5447 case $cross_compiling:$ac_tool_warned in
5448 yes:)
5449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5450 whose name does not start with the host triplet. If you think this
5451 configuration is useful to you, please write to autoconf@gnu.org." >&5
5452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5453 whose name does not start with the host triplet. If you think this
5454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5455 ac_tool_warned=yes ;;
5456 esac
5457 CXX=$ac_ct_CXX
5458 fi
5459 fi
5460
5461 fi
5462 fi
5463 # Provide some information about the compiler.
5464 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5465 ac_compiler=`set X $ac_compile; echo $2`
5466 { (ac_try="$ac_compiler --version >&5"
5467 case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_compiler --version >&5") 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }
5476 { (ac_try="$ac_compiler -v >&5"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compiler -v >&5") 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }
5486 { (ac_try="$ac_compiler -V >&5"
5487 case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490 esac
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_compiler -V >&5") 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }
5496
5497 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5498 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5499 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508
5509 int
5510 main ()
5511 {
5512 #ifndef __GNUC__
5513 choke me
5514 #endif
5515
5516 ;
5517 return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5522 case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_compile") 2>conftest.er1
5528 ac_status=$?
5529 grep -v '^ *+' conftest.er1 >conftest.err
5530 rm -f conftest.er1
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } && {
5534 test -z "$ac_cxx_werror_flag" ||
5535 test ! -s conftest.err
5536 } && test -s conftest.$ac_objext; then
5537 ac_compiler_gnu=yes
5538 else
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542 ac_compiler_gnu=no
5543 fi
5544
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5547
5548 fi
5549 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5550 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5551 GXX=`test $ac_compiler_gnu = yes && echo yes`
5552 ac_test_CXXFLAGS=${CXXFLAGS+set}
5553 ac_save_CXXFLAGS=$CXXFLAGS
5554 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5555 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5556 if test "${ac_cv_prog_cxx_g+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5560 ac_cxx_werror_flag=yes
5561 ac_cv_prog_cxx_g=no
5562 CXXFLAGS="-g"
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569
5570 int
5571 main ()
5572 {
5573
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 rm -f conftest.$ac_objext
5579 if { (ac_try="$ac_compile"
5580 case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583 esac
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_compile") 2>conftest.er1
5586 ac_status=$?
5587 grep -v '^ *+' conftest.er1 >conftest.err
5588 rm -f conftest.er1
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && {
5592 test -z "$ac_cxx_werror_flag" ||
5593 test ! -s conftest.err
5594 } && test -s conftest.$ac_objext; then
5595 ac_cv_prog_cxx_g=yes
5596 else
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600 CXXFLAGS=""
5601 cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h. */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607
5608 int
5609 main ()
5610 {
5611
5612 ;
5613 return 0;
5614 }
5615 _ACEOF
5616 rm -f conftest.$ac_objext
5617 if { (ac_try="$ac_compile"
5618 case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621 esac
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_compile") 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } && {
5630 test -z "$ac_cxx_werror_flag" ||
5631 test ! -s conftest.err
5632 } && test -s conftest.$ac_objext; then
5633 :
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5639 CXXFLAGS="-g"
5640 cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h. */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646
5647 int
5648 main ()
5649 {
5650
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_cxx_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5672 ac_cv_prog_cxx_g=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677
5678 fi
5679
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 fi
5682
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 fi
5685
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5688 fi
5689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5690 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5691 if test "$ac_test_CXXFLAGS" = set; then
5692 CXXFLAGS=$ac_save_CXXFLAGS
5693 elif test $ac_cv_prog_cxx_g = yes; then
5694 if test "$GXX" = yes; then
5695 CXXFLAGS="-g -O2"
5696 else
5697 CXXFLAGS="-g"
5698 fi
5699 else
5700 if test "$GXX" = yes; then
5701 CXXFLAGS="-O2"
5702 else
5703 CXXFLAGS=
5704 fi
5705 fi
5706 ac_ext=cpp
5707 ac_cpp='$CXXCPP $CPPFLAGS'
5708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5711
5712 depcc="$CXX" am_compiler_list=
5713
5714 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5715 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5716 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5720 # We make a subdir and do the tests there. Otherwise we can end up
5721 # making bogus files that we don't know about and never remove. For
5722 # instance it was reported that on HP-UX the gcc test will end up
5723 # making a dummy file named `D' -- because `-MD' means `put the output
5724 # in D'.
5725 mkdir conftest.dir
5726 # Copy depcomp to subdir because otherwise we won't find it if we're
5727 # using a relative directory.
5728 cp "$am_depcomp" conftest.dir
5729 cd conftest.dir
5730 # We will build objects and dependencies in a subdirectory because
5731 # it helps to detect inapplicable dependency modes. For instance
5732 # both Tru64's cc and ICC support -MD to output dependencies as a
5733 # side effect of compilation, but ICC will put the dependencies in
5734 # the current directory while Tru64 will put them in the object
5735 # directory.
5736 mkdir sub
5737
5738 am_cv_CXX_dependencies_compiler_type=none
5739 if test "$am_compiler_list" = ""; then
5740 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5741 fi
5742 for depmode in $am_compiler_list; do
5743 # Setup a source with many dependencies, because some compilers
5744 # like to wrap large dependency lists on column 80 (with \), and
5745 # we should not choose a depcomp mode which is confused by this.
5746 #
5747 # We need to recreate these files for each test, as the compiler may
5748 # overwrite some of them when testing with obscure command lines.
5749 # This happens at least with the AIX C compiler.
5750 : > sub/conftest.c
5751 for i in 1 2 3 4 5 6; do
5752 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5753 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5754 # Solaris 8's {/usr,}/bin/sh.
5755 touch sub/conftst$i.h
5756 done
5757 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5758
5759 case $depmode in
5760 nosideeffect)
5761 # after this tag, mechanisms are not by side-effect, so they'll
5762 # only be used when explicitly requested
5763 if test "x$enable_dependency_tracking" = xyes; then
5764 continue
5765 else
5766 break
5767 fi
5768 ;;
5769 none) break ;;
5770 esac
5771 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5772 # mode. It turns out that the SunPro C++ compiler does not properly
5773 # handle `-M -o', and we need to detect this.
5774 if depmode=$depmode \
5775 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5776 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5777 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5778 >/dev/null 2>conftest.err &&
5779 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5780 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5781 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5782 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5783 # icc doesn't choke on unknown options, it will just issue warnings
5784 # or remarks (even with -Werror). So we grep stderr for any message
5785 # that says an option was ignored or not supported.
5786 # When given -MP, icc 7.0 and 7.1 complain thusly:
5787 # icc: Command line warning: ignoring option '-M'; no argument required
5788 # The diagnosis changed in icc 8.0:
5789 # icc: Command line remark: option '-MP' not supported
5790 if (grep 'ignoring option' conftest.err ||
5791 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5792 am_cv_CXX_dependencies_compiler_type=$depmode
5793 break
5794 fi
5795 fi
5796 done
5797
5798 cd ..
5799 rm -rf conftest.dir
5800 else
5801 am_cv_CXX_dependencies_compiler_type=none
5802 fi
5803
5804 fi
5805 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5806 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5807 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5808
5809 if
5810 test "x$enable_dependency_tracking" != xno \
5811 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5812 am__fastdepCXX_TRUE=
5813 am__fastdepCXX_FALSE='#'
5814 else
5815 am__fastdepCXX_TRUE='#'
5816 am__fastdepCXX_FALSE=
5817 fi
5818
5819
5820
5821
5822 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5823 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5824 (test "X$CXX" != "Xg++"))) ; then
5825 ac_ext=cpp
5826 ac_cpp='$CXXCPP $CPPFLAGS'
5827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5830 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5831 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5832 if test -z "$CXXCPP"; then
5833 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836 # Double quotes because CXXCPP needs to be expanded
5837 for CXXCPP in "$CXX -E" "/lib/cpp"
5838 do
5839 ac_preproc_ok=false
5840 for ac_cxx_preproc_warn_flag in '' yes
5841 do
5842 # Use a header file that comes with gcc, so configuring glibc
5843 # with a fresh cross-compiler works.
5844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5845 # <limits.h> exists even on freestanding compilers.
5846 # On the NeXT, cc -E runs the code through the compiler's parser,
5847 # not just through cpp. "Syntax error" is here to catch this case.
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #ifdef __STDC__
5855 # include <limits.h>
5856 #else
5857 # include <assert.h>
5858 #endif
5859 Syntax error
5860 _ACEOF
5861 if { (ac_try="$ac_cpp conftest.$ac_ext"
5862 case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } >/dev/null && {
5874 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5875 test ! -s conftest.err
5876 }; then
5877 :
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 # Broken: fails on valid input.
5883 continue
5884 fi
5885
5886 rm -f conftest.err conftest.$ac_ext
5887
5888 # OK, works on sane cases. Now check whether nonexistent headers
5889 # can be detected and how.
5890 cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #include <ac_nonexistent.h>
5897 _ACEOF
5898 if { (ac_try="$ac_cpp conftest.$ac_ext"
5899 case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } >/dev/null && {
5911 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5912 test ! -s conftest.err
5913 }; then
5914 # Broken: success on invalid input.
5915 continue
5916 else
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5919
5920 # Passes both tests.
5921 ac_preproc_ok=:
5922 break
5923 fi
5924
5925 rm -f conftest.err conftest.$ac_ext
5926
5927 done
5928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5929 rm -f conftest.err conftest.$ac_ext
5930 if $ac_preproc_ok; then
5931 break
5932 fi
5933
5934 done
5935 ac_cv_prog_CXXCPP=$CXXCPP
5936
5937 fi
5938 CXXCPP=$ac_cv_prog_CXXCPP
5939 else
5940 ac_cv_prog_CXXCPP=$CXXCPP
5941 fi
5942 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5943 echo "${ECHO_T}$CXXCPP" >&6; }
5944 ac_preproc_ok=false
5945 for ac_cxx_preproc_warn_flag in '' yes
5946 do
5947 # Use a header file that comes with gcc, so configuring glibc
5948 # with a fresh cross-compiler works.
5949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5950 # <limits.h> exists even on freestanding compilers.
5951 # On the NeXT, cc -E runs the code through the compiler's parser,
5952 # not just through cpp. "Syntax error" is here to catch this case.
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #ifdef __STDC__
5960 # include <limits.h>
5961 #else
5962 # include <assert.h>
5963 #endif
5964 Syntax error
5965 _ACEOF
5966 if { (ac_try="$ac_cpp conftest.$ac_ext"
5967 case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5973 ac_status=$?
5974 grep -v '^ *+' conftest.er1 >conftest.err
5975 rm -f conftest.er1
5976 cat conftest.err >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } >/dev/null && {
5979 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5980 test ! -s conftest.err
5981 }; then
5982 :
5983 else
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5986
5987 # Broken: fails on valid input.
5988 continue
5989 fi
5990
5991 rm -f conftest.err conftest.$ac_ext
5992
5993 # OK, works on sane cases. Now check whether nonexistent headers
5994 # can be detected and how.
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <ac_nonexistent.h>
6002 _ACEOF
6003 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } >/dev/null && {
6016 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6017 test ! -s conftest.err
6018 }; then
6019 # Broken: success on invalid input.
6020 continue
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 # Passes both tests.
6026 ac_preproc_ok=:
6027 break
6028 fi
6029
6030 rm -f conftest.err conftest.$ac_ext
6031
6032 done
6033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6034 rm -f conftest.err conftest.$ac_ext
6035 if $ac_preproc_ok; then
6036 :
6037 else
6038 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6039 See \`config.log' for more details." >&5
6040 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6041 See \`config.log' for more details." >&2;}
6042 { (exit 1); exit 1; }; }
6043 fi
6044
6045 ac_ext=cpp
6046 ac_cpp='$CXXCPP $CPPFLAGS'
6047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6050
6051 fi
6052
6053
6054 ac_ext=f
6055 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6056 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6058 if test -n "$ac_tool_prefix"; then
6059 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
6060 do
6061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6065 if test "${ac_cv_prog_F77+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068 if test -n "$F77"; then
6069 ac_cv_prog_F77="$F77" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082 done
6083 done
6084 IFS=$as_save_IFS
6085
6086 fi
6087 fi
6088 F77=$ac_cv_prog_F77
6089 if test -n "$F77"; then
6090 { echo "$as_me:$LINENO: result: $F77" >&5
6091 echo "${ECHO_T}$F77" >&6; }
6092 else
6093 { echo "$as_me:$LINENO: result: no" >&5
6094 echo "${ECHO_T}no" >&6; }
6095 fi
6096
6097
6098 test -n "$F77" && break
6099 done
6100 fi
6101 if test -z "$F77"; then
6102 ac_ct_F77=$F77
6103 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
6104 do
6105 # Extract the first word of "$ac_prog", so it can be a program name with args.
6106 set dummy $ac_prog; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 if test -n "$ac_ct_F77"; then
6113 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_prog_ac_ct_F77="$ac_prog"
6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 break 2
6125 fi
6126 done
6127 done
6128 IFS=$as_save_IFS
6129
6130 fi
6131 fi
6132 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6133 if test -n "$ac_ct_F77"; then
6134 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6135 echo "${ECHO_T}$ac_ct_F77" >&6; }
6136 else
6137 { echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6; }
6139 fi
6140
6141
6142 test -n "$ac_ct_F77" && break
6143 done
6144
6145 if test "x$ac_ct_F77" = x; then
6146 F77=""
6147 else
6148 case $cross_compiling:$ac_tool_warned in
6149 yes:)
6150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet. If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&5
6153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6154 whose name does not start with the host triplet. If you think this
6155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6156 ac_tool_warned=yes ;;
6157 esac
6158 F77=$ac_ct_F77
6159 fi
6160 fi
6161
6162
6163 # Provide some information about the compiler.
6164 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6165 ac_compiler=`set X $ac_compile; echo $2`
6166 { (ac_try="$ac_compiler --version >&5"
6167 case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6170 esac
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_compiler --version >&5") 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }
6176 { (ac_try="$ac_compiler -v >&5"
6177 case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_compiler -v >&5") 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }
6186 { (ac_try="$ac_compiler -V >&5"
6187 case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_compiler -V >&5") 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }
6196 rm -f a.out
6197
6198 # If we don't use `.F' as extension, the preprocessor is not run on the
6199 # input file. (Note that this only needs to work for GNU compilers.)
6200 ac_save_ext=$ac_ext
6201 ac_ext=F
6202 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6203 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6204 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207 cat >conftest.$ac_ext <<_ACEOF
6208 program main
6209 #ifndef __GNUC__
6210 choke me
6211 #endif
6212
6213 end
6214 _ACEOF
6215 rm -f conftest.$ac_objext
6216 if { (ac_try="$ac_compile"
6217 case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compile") 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_f77_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest.$ac_objext; then
6232 ac_compiler_gnu=yes
6233 else
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237 ac_compiler_gnu=no
6238 fi
6239
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6242
6243 fi
6244 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6245 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6246 ac_ext=$ac_save_ext
6247 ac_test_FFLAGS=${FFLAGS+set}
6248 ac_save_FFLAGS=$FFLAGS
6249 FFLAGS=
6250 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6251 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6252 if test "${ac_cv_prog_f77_g+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 FFLAGS=-g
6256 cat >conftest.$ac_ext <<_ACEOF
6257 program main
6258
6259 end
6260 _ACEOF
6261 rm -f conftest.$ac_objext
6262 if { (ac_try="$ac_compile"
6263 case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266 esac
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_compile") 2>conftest.er1
6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } && {
6275 test -z "$ac_f77_werror_flag" ||
6276 test ! -s conftest.err
6277 } && test -s conftest.$ac_objext; then
6278 ac_cv_prog_f77_g=yes
6279 else
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 ac_cv_prog_f77_g=no
6284 fi
6285
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287
6288 fi
6289 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6290 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6291 if test "$ac_test_FFLAGS" = set; then
6292 FFLAGS=$ac_save_FFLAGS
6293 elif test $ac_cv_prog_f77_g = yes; then
6294 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6295 FFLAGS="-g -O2"
6296 else
6297 FFLAGS="-g"
6298 fi
6299 else
6300 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6301 FFLAGS="-O2"
6302 else
6303 FFLAGS=
6304 fi
6305 fi
6306
6307 G77=`test $ac_compiler_gnu = yes && echo yes`
6308 ac_ext=c
6309 ac_cpp='$CPP $CPPFLAGS'
6310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6313
6314
6315
6316 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6317 # find the maximum length of command line arguments
6318 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6319 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6320 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 i=0
6324 teststring="ABCD"
6325
6326 case $build_os in
6327 msdosdjgpp*)
6328 # On DJGPP, this test can blow up pretty badly due to problems in libc
6329 # (any single argument exceeding 2000 bytes causes a buffer overrun
6330 # during glob expansion). Even if it were fixed, the result of this
6331 # check would be larger than it should be.
6332 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6333 ;;
6334
6335 gnu*)
6336 # Under GNU Hurd, this test is not required because there is
6337 # no limit to the length of command line arguments.
6338 # Libtool will interpret -1 as no limit whatsoever
6339 lt_cv_sys_max_cmd_len=-1;
6340 ;;
6341
6342 cygwin* | mingw*)
6343 # On Win9x/ME, this test blows up -- it succeeds, but takes
6344 # about 5 minutes as the teststring grows exponentially.
6345 # Worse, since 9x/ME are not pre-emptively multitasking,
6346 # you end up with a "frozen" computer, even though with patience
6347 # the test eventually succeeds (with a max line length of 256k).
6348 # Instead, let's just punt: use the minimum linelength reported by
6349 # all of the supported platforms: 8192 (on NT/2K/XP).
6350 lt_cv_sys_max_cmd_len=8192;
6351 ;;
6352
6353 amigaos*)
6354 # On AmigaOS with pdksh, this test takes hours, literally.
6355 # So we just punt and use a minimum line length of 8192.
6356 lt_cv_sys_max_cmd_len=8192;
6357 ;;
6358
6359 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6360 # This has been around since 386BSD, at least. Likely further.
6361 if test -x /sbin/sysctl; then
6362 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6363 elif test -x /usr/sbin/sysctl; then
6364 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6365 else
6366 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6367 fi
6368 # And add a safety zone
6369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6371 ;;
6372
6373 interix*)
6374 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6375 lt_cv_sys_max_cmd_len=196608
6376 ;;
6377
6378 osf*)
6379 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6380 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6381 # nice to cause kernel panics so lets avoid the loop below.
6382 # First set a reasonable default.
6383 lt_cv_sys_max_cmd_len=16384
6384 #
6385 if test -x /sbin/sysconfig; then
6386 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6387 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6388 esac
6389 fi
6390 ;;
6391 sco3.2v5*)
6392 lt_cv_sys_max_cmd_len=102400
6393 ;;
6394 sysv5* | sco5v6* | sysv4.2uw2*)
6395 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6396 if test -n "$kargmax"; then
6397 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6398 else
6399 lt_cv_sys_max_cmd_len=32768
6400 fi
6401 ;;
6402 *)
6403 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6404 if test -n "$lt_cv_sys_max_cmd_len"; then
6405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6407 else
6408 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6409 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6410 = "XX$teststring") >/dev/null 2>&1 &&
6411 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6412 lt_cv_sys_max_cmd_len=$new_result &&
6413 test $i != 17 # 1/2 MB should be enough
6414 do
6415 i=`expr $i + 1`
6416 teststring=$teststring$teststring
6417 done
6418 teststring=
6419 # Add a significant safety factor because C++ compilers can tack on massive
6420 # amounts of additional arguments before passing them to the linker.
6421 # It appears as though 1/2 is a usable value.
6422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6423 fi
6424 ;;
6425 esac
6426
6427 fi
6428
6429 if test -n $lt_cv_sys_max_cmd_len ; then
6430 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6431 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6432 else
6433 { echo "$as_me:$LINENO: result: none" >&5
6434 echo "${ECHO_T}none" >&6; }
6435 fi
6436
6437
6438
6439
6440
6441 # Check for command to grab the raw symbol name followed by C symbol from nm.
6442 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6443 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6444 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447
6448 # These are sane defaults that work on at least a few old systems.
6449 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6450
6451 # Character class describing NM global symbol codes.
6452 symcode='[BCDEGRST]'
6453
6454 # Regexp to match symbols that can be accessed directly from C.
6455 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6456
6457 # Transform an extracted symbol line into a proper C declaration
6458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6459
6460 # Transform an extracted symbol line into symbol name and symbol address
6461 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'"
6462
6463 # Define system-specific variables.
6464 case $host_os in
6465 aix*)
6466 symcode='[BCDT]'
6467 ;;
6468 cygwin* | mingw* | pw32*)
6469 symcode='[ABCDGISTW]'
6470 ;;
6471 hpux*) # Its linker distinguishes data from code symbols
6472 if test "$host_cpu" = ia64; then
6473 symcode='[ABCDEGRST]'
6474 fi
6475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6476 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'"
6477 ;;
6478 linux* | k*bsd*-gnu)
6479 if test "$host_cpu" = ia64; then
6480 symcode='[ABCDGIRSTW]'
6481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6482 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'"
6483 fi
6484 ;;
6485 irix* | nonstopux*)
6486 symcode='[BCDEGRST]'
6487 ;;
6488 osf*)
6489 symcode='[BCDEGQRST]'
6490 ;;
6491 solaris*)
6492 symcode='[BDRT]'
6493 ;;
6494 sco3.2v5*)
6495 symcode='[DT]'
6496 ;;
6497 sysv4.2uw2*)
6498 symcode='[DT]'
6499 ;;
6500 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6501 symcode='[ABDT]'
6502 ;;
6503 sysv4)
6504 symcode='[DFNSTU]'
6505 ;;
6506 esac
6507
6508 # Handle CRLF in mingw tool chain
6509 opt_cr=
6510 case $build_os in
6511 mingw*)
6512 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6513 ;;
6514 esac
6515
6516 # If we're using GNU nm, then use its standard symbol codes.
6517 case `$NM -V 2>&1` in
6518 *GNU* | *'with BFD'*)
6519 symcode='[ABCDGIRSTW]' ;;
6520 esac
6521
6522 # Try without a prefix undercore, then with it.
6523 for ac_symprfx in "" "_"; do
6524
6525 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6526 symxfrm="\\1 $ac_symprfx\\2 \\2"
6527
6528 # Write the raw and C identifiers.
6529 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6530
6531 # Check to see that the pipe works correctly.
6532 pipe_works=no
6533
6534 rm -f conftest*
6535 cat > conftest.$ac_ext <<EOF
6536 #ifdef __cplusplus
6537 extern "C" {
6538 #endif
6539 char nm_test_var;
6540 void nm_test_func(){}
6541 #ifdef __cplusplus
6542 }
6543 #endif
6544 int main(){nm_test_var='a';nm_test_func();return(0);}
6545 EOF
6546
6547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6548 (eval $ac_compile) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; then
6552 # Now try to grab the symbols.
6553 nlist=conftest.nm
6554 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6555 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && test -s "$nlist"; then
6559 # Try sorting and uniquifying the output.
6560 if sort "$nlist" | uniq > "$nlist"T; then
6561 mv -f "$nlist"T "$nlist"
6562 else
6563 rm -f "$nlist"T
6564 fi
6565
6566 # Make sure that we snagged all the symbols we need.
6567 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6568 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6569 cat <<EOF > conftest.$ac_ext
6570 #ifdef __cplusplus
6571 extern "C" {
6572 #endif
6573
6574 EOF
6575 # Now generate the symbol file.
6576 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6577
6578 cat <<EOF >> conftest.$ac_ext
6579 #if defined (__STDC__) && __STDC__
6580 # define lt_ptr_t void *
6581 #else
6582 # define lt_ptr_t char *
6583 # define const
6584 #endif
6585
6586 /* The mapping between symbol names and symbols. */
6587 const struct {
6588 const char *name;
6589 lt_ptr_t address;
6590 }
6591 lt_preloaded_symbols[] =
6592 {
6593 EOF
6594 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6595 cat <<\EOF >> conftest.$ac_ext
6596 {0, (lt_ptr_t) 0}
6597 };
6598
6599 #ifdef __cplusplus
6600 }
6601 #endif
6602 EOF
6603 # Now try linking the two files.
6604 mv conftest.$ac_objext conftstm.$ac_objext
6605 lt_save_LIBS="$LIBS"
6606 lt_save_CFLAGS="$CFLAGS"
6607 LIBS="conftstm.$ac_objext"
6608 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6614 pipe_works=yes
6615 fi
6616 LIBS="$lt_save_LIBS"
6617 CFLAGS="$lt_save_CFLAGS"
6618 else
6619 echo "cannot find nm_test_func in $nlist" >&5
6620 fi
6621 else
6622 echo "cannot find nm_test_var in $nlist" >&5
6623 fi
6624 else
6625 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6626 fi
6627 else
6628 echo "$progname: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6630 fi
6631 rm -rf conftest* conftst*
6632
6633 # Do not use the global_symbol_pipe unless it works.
6634 if test "$pipe_works" = yes; then
6635 break
6636 else
6637 lt_cv_sys_global_symbol_pipe=
6638 fi
6639 done
6640
6641 fi
6642
6643 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6644 lt_cv_sys_global_symbol_to_cdecl=
6645 fi
6646 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6647 { echo "$as_me:$LINENO: result: failed" >&5
6648 echo "${ECHO_T}failed" >&6; }
6649 else
6650 { echo "$as_me:$LINENO: result: ok" >&5
6651 echo "${ECHO_T}ok" >&6; }
6652 fi
6653
6654 { echo "$as_me:$LINENO: checking for objdir" >&5
6655 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6656 if test "${lt_cv_objdir+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 rm -f .libs 2>/dev/null
6660 mkdir .libs 2>/dev/null
6661 if test -d .libs; then
6662 lt_cv_objdir=.libs
6663 else
6664 # MS-DOS does not allow filenames that begin with a dot.
6665 lt_cv_objdir=_libs
6666 fi
6667 rmdir .libs 2>/dev/null
6668 fi
6669 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6670 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6671 objdir=$lt_cv_objdir
6672
6673
6674
6675
6676
6677 case $host_os in
6678 aix3*)
6679 # AIX sometimes has problems with the GCC collect2 program. For some
6680 # reason, if we set the COLLECT_NAMES environment variable, the problems
6681 # vanish in a puff of smoke.
6682 if test "X${COLLECT_NAMES+set}" != Xset; then
6683 COLLECT_NAMES=
6684 export COLLECT_NAMES
6685 fi
6686 ;;
6687 esac
6688
6689 # Sed substitution that helps us do robust quoting. It backslashifies
6690 # metacharacters that are still active within double-quoted strings.
6691 Xsed='sed -e 1s/^X//'
6692 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6693
6694 # Same as above, but do not quote variable references.
6695 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6696
6697 # Sed substitution to delay expansion of an escaped shell variable in a
6698 # double_quote_subst'ed string.
6699 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6700
6701 # Sed substitution to avoid accidental globbing in evaled expressions
6702 no_glob_subst='s/\*/\\\*/g'
6703
6704 # Constants:
6705 rm="rm -f"
6706
6707 # Global variables:
6708 default_ofile=libtool
6709 can_build_shared=yes
6710
6711 # All known linkers require a `.a' archive for static linking (except MSVC,
6712 # which needs '.lib').
6713 libext=a
6714 ltmain="$ac_aux_dir/ltmain.sh"
6715 ofile="$default_ofile"
6716 with_gnu_ld="$lt_cv_prog_gnu_ld"
6717
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ar; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_AR+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 if test -n "$AR"; then
6727 ac_cv_prog_AR="$AR" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_AR="${ac_tool_prefix}ar"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 AR=$ac_cv_prog_AR
6747 if test -n "$AR"; then
6748 { echo "$as_me:$LINENO: result: $AR" >&5
6749 echo "${ECHO_T}$AR" >&6; }
6750 else
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755
6756 fi
6757 if test -z "$ac_cv_prog_AR"; then
6758 ac_ct_AR=$AR
6759 # Extract the first word of "ar", so it can be a program name with args.
6760 set dummy ar; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 if test -n "$ac_ct_AR"; then
6767 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_AR="ar"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6787 if test -n "$ac_ct_AR"; then
6788 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6789 echo "${ECHO_T}$ac_ct_AR" >&6; }
6790 else
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6793 fi
6794
6795 if test "x$ac_ct_AR" = x; then
6796 AR="false"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet. If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808 AR=$ac_ct_AR
6809 fi
6810 else
6811 AR="$ac_cv_prog_AR"
6812 fi
6813
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_prog_RANLIB+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 if test -n "$RANLIB"; then
6823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6835 fi
6836 done
6837 done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 RANLIB=$ac_cv_prog_RANLIB
6843 if test -n "$RANLIB"; then
6844 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6845 echo "${ECHO_T}$RANLIB" >&6; }
6846 else
6847 { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6849 fi
6850
6851
6852 fi
6853 if test -z "$ac_cv_prog_RANLIB"; then
6854 ac_ct_RANLIB=$RANLIB
6855 # Extract the first word of "ranlib", so it can be a program name with args.
6856 set dummy ranlib; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 if test -n "$ac_ct_RANLIB"; then
6863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_RANLIB="ranlib"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876 done
6877 done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6883 if test -n "$ac_ct_RANLIB"; then
6884 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6885 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6886 else
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6889 fi
6890
6891 if test "x$ac_ct_RANLIB" = x; then
6892 RANLIB=":"
6893 else
6894 case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet. If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&5
6899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6900 whose name does not start with the host triplet. If you think this
6901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6902 ac_tool_warned=yes ;;
6903 esac
6904 RANLIB=$ac_ct_RANLIB
6905 fi
6906 else
6907 RANLIB="$ac_cv_prog_RANLIB"
6908 fi
6909
6910 if test -n "$ac_tool_prefix"; then
6911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6912 set dummy ${ac_tool_prefix}strip; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_prog_STRIP+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918 if test -n "$STRIP"; then
6919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 STRIP=$ac_cv_prog_STRIP
6939 if test -n "$STRIP"; then
6940 { echo "$as_me:$LINENO: result: $STRIP" >&5
6941 echo "${ECHO_T}$STRIP" >&6; }
6942 else
6943 { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6945 fi
6946
6947
6948 fi
6949 if test -z "$ac_cv_prog_STRIP"; then
6950 ac_ct_STRIP=$STRIP
6951 # Extract the first word of "strip", so it can be a program name with args.
6952 set dummy strip; ac_word=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958 if test -n "$ac_ct_STRIP"; then
6959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_prog_ac_ct_STRIP="strip"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6979 if test -n "$ac_ct_STRIP"; then
6980 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6981 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6982 else
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6985 fi
6986
6987 if test "x$ac_ct_STRIP" = x; then
6988 STRIP=":"
6989 else
6990 case $cross_compiling:$ac_tool_warned in
6991 yes:)
6992 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6993 whose name does not start with the host triplet. If you think this
6994 configuration is useful to you, please write to autoconf@gnu.org." >&5
6995 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6996 whose name does not start with the host triplet. If you think this
6997 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6998 ac_tool_warned=yes ;;
6999 esac
7000 STRIP=$ac_ct_STRIP
7001 fi
7002 else
7003 STRIP="$ac_cv_prog_STRIP"
7004 fi
7005
7006
7007 old_CC="$CC"
7008 old_CFLAGS="$CFLAGS"
7009
7010 # Set sane defaults for various variables
7011 test -z "$AR" && AR=ar
7012 test -z "$AR_FLAGS" && AR_FLAGS=cru
7013 test -z "$AS" && AS=as
7014 test -z "$CC" && CC=cc
7015 test -z "$LTCC" && LTCC=$CC
7016 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7017 test -z "$DLLTOOL" && DLLTOOL=dlltool
7018 test -z "$LD" && LD=ld
7019 test -z "$LN_S" && LN_S="ln -s"
7020 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7021 test -z "$NM" && NM=nm
7022 test -z "$SED" && SED=sed
7023 test -z "$OBJDUMP" && OBJDUMP=objdump
7024 test -z "$RANLIB" && RANLIB=:
7025 test -z "$STRIP" && STRIP=:
7026 test -z "$ac_objext" && ac_objext=o
7027
7028 # Determine commands to create old-style static archives.
7029 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7030 old_postinstall_cmds='chmod 644 $oldlib'
7031 old_postuninstall_cmds=
7032
7033 if test -n "$RANLIB"; then
7034 case $host_os in
7035 openbsd*)
7036 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7037 ;;
7038 *)
7039 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7040 ;;
7041 esac
7042 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7043 fi
7044
7045 for cc_temp in $compiler""; do
7046 case $cc_temp in
7047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7049 \-*) ;;
7050 *) break;;
7051 esac
7052 done
7053 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7054
7055
7056 # Only perform the check for file, if the check method requires it
7057 case $deplibs_check_method in
7058 file_magic*)
7059 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7060 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7061 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7062 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 case $MAGIC_CMD in
7066 [\\/*] | ?:[\\/]*)
7067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7068 ;;
7069 *)
7070 lt_save_MAGIC_CMD="$MAGIC_CMD"
7071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7073 for ac_dir in $ac_dummy; do
7074 IFS="$lt_save_ifs"
7075 test -z "$ac_dir" && ac_dir=.
7076 if test -f $ac_dir/${ac_tool_prefix}file; then
7077 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7078 if test -n "$file_magic_test_file"; then
7079 case $deplibs_check_method in
7080 "file_magic "*)
7081 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7084 $EGREP "$file_magic_regex" > /dev/null; then
7085 :
7086 else
7087 cat <<EOF 1>&2
7088
7089 *** Warning: the command libtool uses to detect shared libraries,
7090 *** $file_magic_cmd, produces output that libtool cannot recognize.
7091 *** The result is that libtool may fail to recognize shared libraries
7092 *** as such. This will affect the creation of libtool libraries that
7093 *** depend on shared libraries, but programs linked with such libtool
7094 *** libraries will work regardless of this problem. Nevertheless, you
7095 *** may want to report the problem to your system manager and/or to
7096 *** bug-libtool@gnu.org
7097
7098 EOF
7099 fi ;;
7100 esac
7101 fi
7102 break
7103 fi
7104 done
7105 IFS="$lt_save_ifs"
7106 MAGIC_CMD="$lt_save_MAGIC_CMD"
7107 ;;
7108 esac
7109 fi
7110
7111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7112 if test -n "$MAGIC_CMD"; then
7113 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7114 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7115 else
7116 { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7118 fi
7119
7120 if test -z "$lt_cv_path_MAGIC_CMD"; then
7121 if test -n "$ac_tool_prefix"; then
7122 { echo "$as_me:$LINENO: checking for file" >&5
7123 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7124 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127 case $MAGIC_CMD in
7128 [\\/*] | ?:[\\/]*)
7129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7130 ;;
7131 *)
7132 lt_save_MAGIC_CMD="$MAGIC_CMD"
7133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7134 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7135 for ac_dir in $ac_dummy; do
7136 IFS="$lt_save_ifs"
7137 test -z "$ac_dir" && ac_dir=.
7138 if test -f $ac_dir/file; then
7139 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7140 if test -n "$file_magic_test_file"; then
7141 case $deplibs_check_method in
7142 "file_magic "*)
7143 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7145 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7146 $EGREP "$file_magic_regex" > /dev/null; then
7147 :
7148 else
7149 cat <<EOF 1>&2
7150
7151 *** Warning: the command libtool uses to detect shared libraries,
7152 *** $file_magic_cmd, produces output that libtool cannot recognize.
7153 *** The result is that libtool may fail to recognize shared libraries
7154 *** as such. This will affect the creation of libtool libraries that
7155 *** depend on shared libraries, but programs linked with such libtool
7156 *** libraries will work regardless of this problem. Nevertheless, you
7157 *** may want to report the problem to your system manager and/or to
7158 *** bug-libtool@gnu.org
7159
7160 EOF
7161 fi ;;
7162 esac
7163 fi
7164 break
7165 fi
7166 done
7167 IFS="$lt_save_ifs"
7168 MAGIC_CMD="$lt_save_MAGIC_CMD"
7169 ;;
7170 esac
7171 fi
7172
7173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7174 if test -n "$MAGIC_CMD"; then
7175 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7176 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7177 else
7178 { echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6; }
7180 fi
7181
7182 else
7183 MAGIC_CMD=:
7184 fi
7185 fi
7186
7187 fi
7188 ;;
7189 esac
7190
7191
7192 case $host_os in
7193 rhapsody* | darwin*)
7194 if test -n "$ac_tool_prefix"; then
7195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7196 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7199 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 if test -n "$DSYMUTIL"; then
7203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7223 if test -n "$DSYMUTIL"; then
7224 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7225 echo "${ECHO_T}$DSYMUTIL" >&6; }
7226 else
7227 { echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6; }
7229 fi
7230
7231
7232 fi
7233 if test -z "$ac_cv_prog_DSYMUTIL"; then
7234 ac_ct_DSYMUTIL=$DSYMUTIL
7235 # Extract the first word of "dsymutil", so it can be a program name with args.
7236 set dummy dsymutil; ac_word=$2
7237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 if test -n "$ac_ct_DSYMUTIL"; then
7243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7263 if test -n "$ac_ct_DSYMUTIL"; then
7264 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7265 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7266 else
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7269 fi
7270
7271 if test "x$ac_ct_DSYMUTIL" = x; then
7272 DSYMUTIL=":"
7273 else
7274 case $cross_compiling:$ac_tool_warned in
7275 yes:)
7276 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7277 whose name does not start with the host triplet. If you think this
7278 configuration is useful to you, please write to autoconf@gnu.org." >&5
7279 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7280 whose name does not start with the host triplet. If you think this
7281 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7282 ac_tool_warned=yes ;;
7283 esac
7284 DSYMUTIL=$ac_ct_DSYMUTIL
7285 fi
7286 else
7287 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7288 fi
7289
7290 if test -n "$ac_tool_prefix"; then
7291 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 if test -n "$NMEDIT"; then
7299 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7311 fi
7312 done
7313 done
7314 IFS=$as_save_IFS
7315
7316 fi
7317 fi
7318 NMEDIT=$ac_cv_prog_NMEDIT
7319 if test -n "$NMEDIT"; then
7320 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7321 echo "${ECHO_T}$NMEDIT" >&6; }
7322 else
7323 { echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6; }
7325 fi
7326
7327
7328 fi
7329 if test -z "$ac_cv_prog_NMEDIT"; then
7330 ac_ct_NMEDIT=$NMEDIT
7331 # Extract the first word of "nmedit", so it can be a program name with args.
7332 set dummy nmedit; ac_word=$2
7333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 if test -n "$ac_ct_NMEDIT"; then
7339 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7351 fi
7352 done
7353 done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7359 if test -n "$ac_ct_NMEDIT"; then
7360 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7361 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7362 else
7363 { echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6; }
7365 fi
7366
7367 if test "x$ac_ct_NMEDIT" = x; then
7368 NMEDIT=":"
7369 else
7370 case $cross_compiling:$ac_tool_warned in
7371 yes:)
7372 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7373 whose name does not start with the host triplet. If you think this
7374 configuration is useful to you, please write to autoconf@gnu.org." >&5
7375 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7376 whose name does not start with the host triplet. If you think this
7377 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7378 ac_tool_warned=yes ;;
7379 esac
7380 NMEDIT=$ac_ct_NMEDIT
7381 fi
7382 else
7383 NMEDIT="$ac_cv_prog_NMEDIT"
7384 fi
7385
7386
7387 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7388 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7389 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 lt_cv_apple_cc_single_mod=no
7393 if test -z "${LT_MULTI_MODULE}"; then
7394 # By default we will add the -single_module flag. You can override
7395 # by either setting the environment variable LT_MULTI_MODULE
7396 # non-empty at configure time, or by adding -multi_module to the
7397 # link flags.
7398 echo "int foo(void){return 1;}" > conftest.c
7399 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7400 -dynamiclib ${wl}-single_module conftest.c
7401 if test -f libconftest.dylib; then
7402 lt_cv_apple_cc_single_mod=yes
7403 rm -rf libconftest.dylib*
7404 fi
7405 rm conftest.c
7406 fi
7407 fi
7408 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7409 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7410 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7411 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7412 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415 lt_cv_ld_exported_symbols_list=no
7416 save_LDFLAGS=$LDFLAGS
7417 echo "_main" > conftest.sym
7418 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h. */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425
7426 int
7427 main ()
7428 {
7429
7430 ;
7431 return 0;
7432 }
7433 _ACEOF
7434 rm -f conftest.$ac_objext conftest$ac_exeext
7435 if { (ac_try="$ac_link"
7436 case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439 esac
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_link") 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } && {
7448 test -z "$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 } && test -s conftest$ac_exeext &&
7451 $as_test_x conftest$ac_exeext; then
7452 lt_cv_ld_exported_symbols_list=yes
7453 else
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7456
7457 lt_cv_ld_exported_symbols_list=no
7458 fi
7459
7460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7461 conftest$ac_exeext conftest.$ac_ext
7462 LDFLAGS="$save_LDFLAGS"
7463
7464 fi
7465 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7466 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7467 case $host_os in
7468 rhapsody* | darwin1.[0123])
7469 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7470 darwin1.*)
7471 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7472 darwin*)
7473 # if running on 10.5 or later, the deployment target defaults
7474 # to the OS version, if on x86, and 10.4, the deployment
7475 # target defaults to 10.4. Don't you love it?
7476 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7477 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7478 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7479 10.[012]*)
7480 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7481 10.*)
7482 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7483 esac
7484 ;;
7485 esac
7486 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7487 _lt_dar_single_mod='$single_module'
7488 fi
7489 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7490 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7491 else
7492 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7493 fi
7494 if test "$DSYMUTIL" != ":"; then
7495 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7496 else
7497 _lt_dsymutil=
7498 fi
7499 ;;
7500 esac
7501
7502
7503 enable_dlopen=no
7504 enable_win32_dll=no
7505
7506 # Check whether --enable-libtool-lock was given.
7507 if test "${enable_libtool_lock+set}" = set; then
7508 enableval=$enable_libtool_lock;
7509 fi
7510
7511 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7512
7513
7514 # Check whether --with-pic was given.
7515 if test "${with_pic+set}" = set; then
7516 withval=$with_pic; pic_mode="$withval"
7517 else
7518 pic_mode=default
7519 fi
7520
7521 test -z "$pic_mode" && pic_mode=default
7522
7523 # Use C for the default configuration in the libtool script
7524 tagname=
7525 lt_save_CC="$CC"
7526 ac_ext=c
7527 ac_cpp='$CPP $CPPFLAGS'
7528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7531
7532
7533 # Source file extension for C test sources.
7534 ac_ext=c
7535
7536 # Object file extension for compiled C test sources.
7537 objext=o
7538 objext=$objext
7539
7540 # Code to be used in simple compile tests
7541 lt_simple_compile_test_code="int some_variable = 0;"
7542
7543 # Code to be used in simple link tests
7544 lt_simple_link_test_code='int main(){return(0);}'
7545
7546
7547 # If no C compiler was specified, use CC.
7548 LTCC=${LTCC-"$CC"}
7549
7550 # If no C compiler flags were specified, use CFLAGS.
7551 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7552
7553 # Allow CC to be a program name with arguments.
7554 compiler=$CC
7555
7556
7557 # save warnings/boilerplate of simple test code
7558 ac_outfile=conftest.$ac_objext
7559 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7560 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7561 _lt_compiler_boilerplate=`cat conftest.err`
7562 $rm conftest*
7563
7564 ac_outfile=conftest.$ac_objext
7565 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7566 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7567 _lt_linker_boilerplate=`cat conftest.err`
7568 $rm -r conftest*
7569
7570
7571
7572 lt_prog_compiler_no_builtin_flag=
7573
7574 if test "$GCC" = yes; then
7575 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7576
7577
7578 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7579 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7580 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583 lt_cv_prog_compiler_rtti_exceptions=no
7584 ac_outfile=conftest.$ac_objext
7585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7586 lt_compiler_flag="-fno-rtti -fno-exceptions"
7587 # Insert the option either (1) after the last *FLAGS variable, or
7588 # (2) before a word containing "conftest.", or (3) at the end.
7589 # Note that $ac_compile itself does not contain backslashes and begins
7590 # with a dollar sign (not a hyphen), so the echo should work correctly.
7591 # The option is referenced via a variable to avoid confusing sed.
7592 lt_compile=`echo "$ac_compile" | $SED \
7593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7595 -e 's:$: $lt_compiler_flag:'`
7596 (eval echo "\"\$as_me:7597: $lt_compile\"" >&5)
7597 (eval "$lt_compile" 2>conftest.err)
7598 ac_status=$?
7599 cat conftest.err >&5
7600 echo "$as_me:7601: \$? = $ac_status" >&5
7601 if (exit $ac_status) && test -s "$ac_outfile"; then
7602 # The compiler can only warn and ignore the option if not recognized
7603 # So say no if there are warnings other than the usual output.
7604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7607 lt_cv_prog_compiler_rtti_exceptions=yes
7608 fi
7609 fi
7610 $rm conftest*
7611
7612 fi
7613 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7614 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7615
7616 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7617 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7618 else
7619 :
7620 fi
7621
7622 fi
7623
7624 lt_prog_compiler_wl=
7625 lt_prog_compiler_pic=
7626 lt_prog_compiler_static=
7627
7628 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7629 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7630
7631 if test "$GCC" = yes; then
7632 lt_prog_compiler_wl='-Wl,'
7633 lt_prog_compiler_static='-static'
7634
7635 case $host_os in
7636 aix*)
7637 # All AIX code is PIC.
7638 if test "$host_cpu" = ia64; then
7639 # AIX 5 now supports IA64 processor
7640 lt_prog_compiler_static='-Bstatic'
7641 fi
7642 ;;
7643
7644 amigaos*)
7645 # FIXME: we need at least 68020 code to build shared libraries, but
7646 # adding the `-m68020' flag to GCC prevents building anything better,
7647 # like `-m68040'.
7648 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7649 ;;
7650
7651 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7652 # PIC is the default for these OSes.
7653 ;;
7654
7655 mingw* | cygwin* | pw32* | os2*)
7656 # This hack is so that the source file can tell whether it is being
7657 # built for inclusion in a dll (and should export symbols for example).
7658 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7659 # (--disable-auto-import) libraries
7660 lt_prog_compiler_pic='-DDLL_EXPORT'
7661 ;;
7662
7663 darwin* | rhapsody*)
7664 # PIC is the default on this platform
7665 # Common symbols not allowed in MH_DYLIB files
7666 lt_prog_compiler_pic='-fno-common'
7667 ;;
7668
7669 interix[3-9]*)
7670 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7671 # Instead, we relocate shared libraries at runtime.
7672 ;;
7673
7674 msdosdjgpp*)
7675 # Just because we use GCC doesn't mean we suddenly get shared libraries
7676 # on systems that don't support them.
7677 lt_prog_compiler_can_build_shared=no
7678 enable_shared=no
7679 ;;
7680
7681 sysv4*MP*)
7682 if test -d /usr/nec; then
7683 lt_prog_compiler_pic=-Kconform_pic
7684 fi
7685 ;;
7686
7687 hpux*)
7688 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7689 # not for PA HP-UX.
7690 case $host_cpu in
7691 hppa*64*|ia64*)
7692 # +Z the default
7693 ;;
7694 *)
7695 lt_prog_compiler_pic='-fPIC'
7696 ;;
7697 esac
7698 ;;
7699
7700 *)
7701 lt_prog_compiler_pic='-fPIC'
7702 ;;
7703 esac
7704 else
7705 # PORTME Check for flag to pass linker flags through the system compiler.
7706 case $host_os in
7707 aix*)
7708 lt_prog_compiler_wl='-Wl,'
7709 if test "$host_cpu" = ia64; then
7710 # AIX 5 now supports IA64 processor
7711 lt_prog_compiler_static='-Bstatic'
7712 else
7713 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7714 fi
7715 ;;
7716 darwin*)
7717 # PIC is the default on this platform
7718 # Common symbols not allowed in MH_DYLIB files
7719 case $cc_basename in
7720 xlc*)
7721 lt_prog_compiler_pic='-qnocommon'
7722 lt_prog_compiler_wl='-Wl,'
7723 ;;
7724 esac
7725 ;;
7726
7727 mingw* | cygwin* | pw32* | os2*)
7728 # This hack is so that the source file can tell whether it is being
7729 # built for inclusion in a dll (and should export symbols for example).
7730 lt_prog_compiler_pic='-DDLL_EXPORT'
7731 ;;
7732
7733 hpux9* | hpux10* | hpux11*)
7734 lt_prog_compiler_wl='-Wl,'
7735 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7736 # not for PA HP-UX.
7737 case $host_cpu in
7738 hppa*64*|ia64*)
7739 # +Z the default
7740 ;;
7741 *)
7742 lt_prog_compiler_pic='+Z'
7743 ;;
7744 esac
7745 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7746 lt_prog_compiler_static='${wl}-a ${wl}archive'
7747 ;;
7748
7749 irix5* | irix6* | nonstopux*)
7750 lt_prog_compiler_wl='-Wl,'
7751 # PIC (with -KPIC) is the default.
7752 lt_prog_compiler_static='-non_shared'
7753 ;;
7754
7755 newsos6)
7756 lt_prog_compiler_pic='-KPIC'
7757 lt_prog_compiler_static='-Bstatic'
7758 ;;
7759
7760 linux* | k*bsd*-gnu)
7761 case $cc_basename in
7762 icc* | ecc*)
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_pic='-KPIC'
7765 lt_prog_compiler_static='-static'
7766 ;;
7767 pgcc* | pgf77* | pgf90* | pgf95*)
7768 # Portland Group compilers (*not* the Pentium gcc compiler,
7769 # which looks to be a dead project)
7770 lt_prog_compiler_wl='-Wl,'
7771 lt_prog_compiler_pic='-fpic'
7772 lt_prog_compiler_static='-Bstatic'
7773 ;;
7774 ccc*)
7775 lt_prog_compiler_wl='-Wl,'
7776 # All Alpha code is PIC.
7777 lt_prog_compiler_static='-non_shared'
7778 ;;
7779 *)
7780 case `$CC -V 2>&1 | sed 5q` in
7781 *Sun\ C*)
7782 # Sun C 5.9
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7785 lt_prog_compiler_wl='-Wl,'
7786 ;;
7787 *Sun\ F*)
7788 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7789 lt_prog_compiler_pic='-KPIC'
7790 lt_prog_compiler_static='-Bstatic'
7791 lt_prog_compiler_wl=''
7792 ;;
7793 esac
7794 ;;
7795 esac
7796 ;;
7797
7798 osf3* | osf4* | osf5*)
7799 lt_prog_compiler_wl='-Wl,'
7800 # All OSF/1 code is PIC.
7801 lt_prog_compiler_static='-non_shared'
7802 ;;
7803
7804 rdos*)
7805 lt_prog_compiler_static='-non_shared'
7806 ;;
7807
7808 solaris*)
7809 lt_prog_compiler_pic='-KPIC'
7810 lt_prog_compiler_static='-Bstatic'
7811 case $cc_basename in
7812 f77* | f90* | f95*)
7813 lt_prog_compiler_wl='-Qoption ld ';;
7814 *)
7815 lt_prog_compiler_wl='-Wl,';;
7816 esac
7817 ;;
7818
7819 sunos4*)
7820 lt_prog_compiler_wl='-Qoption ld '
7821 lt_prog_compiler_pic='-PIC'
7822 lt_prog_compiler_static='-Bstatic'
7823 ;;
7824
7825 sysv4 | sysv4.2uw2* | sysv4.3*)
7826 lt_prog_compiler_wl='-Wl,'
7827 lt_prog_compiler_pic='-KPIC'
7828 lt_prog_compiler_static='-Bstatic'
7829 ;;
7830
7831 sysv4*MP*)
7832 if test -d /usr/nec ;then
7833 lt_prog_compiler_pic='-Kconform_pic'
7834 lt_prog_compiler_static='-Bstatic'
7835 fi
7836 ;;
7837
7838 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_pic='-KPIC'
7841 lt_prog_compiler_static='-Bstatic'
7842 ;;
7843
7844 unicos*)
7845 lt_prog_compiler_wl='-Wl,'
7846 lt_prog_compiler_can_build_shared=no
7847 ;;
7848
7849 uts4*)
7850 lt_prog_compiler_pic='-pic'
7851 lt_prog_compiler_static='-Bstatic'
7852 ;;
7853
7854 *)
7855 lt_prog_compiler_can_build_shared=no
7856 ;;
7857 esac
7858 fi
7859
7860 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7861 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7862
7863 #
7864 # Check to make sure the PIC flag actually works.
7865 #
7866 if test -n "$lt_prog_compiler_pic"; then
7867
7868 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7869 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7870 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 lt_cv_prog_compiler_pic_works=no
7874 ac_outfile=conftest.$ac_objext
7875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7876 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7877 # Insert the option either (1) after the last *FLAGS variable, or
7878 # (2) before a word containing "conftest.", or (3) at the end.
7879 # Note that $ac_compile itself does not contain backslashes and begins
7880 # with a dollar sign (not a hyphen), so the echo should work correctly.
7881 # The option is referenced via a variable to avoid confusing sed.
7882 lt_compile=`echo "$ac_compile" | $SED \
7883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7885 -e 's:$: $lt_compiler_flag:'`
7886 (eval echo "\"\$as_me:7887: $lt_compile\"" >&5)
7887 (eval "$lt_compile" 2>conftest.err)
7888 ac_status=$?
7889 cat conftest.err >&5
7890 echo "$as_me:7891: \$? = $ac_status" >&5
7891 if (exit $ac_status) && test -s "$ac_outfile"; then
7892 # The compiler can only warn and ignore the option if not recognized
7893 # So say no if there are warnings other than the usual output.
7894 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7896 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7897 lt_cv_prog_compiler_pic_works=yes
7898 fi
7899 fi
7900 $rm conftest*
7901
7902 fi
7903 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7904 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7905
7906 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7907 case $lt_prog_compiler_pic in
7908 "" | " "*) ;;
7909 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7910 esac
7911 else
7912 lt_prog_compiler_pic=
7913 lt_prog_compiler_can_build_shared=no
7914 fi
7915
7916 fi
7917 case $host_os in
7918 # For platforms which do not support PIC, -DPIC is meaningless:
7919 *djgpp*)
7920 lt_prog_compiler_pic=
7921 ;;
7922 *)
7923 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7924 ;;
7925 esac
7926
7927 #
7928 # Check to make sure the static flag actually works.
7929 #
7930 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7931 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7932 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7933 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 else
7936 lt_cv_prog_compiler_static_works=no
7937 save_LDFLAGS="$LDFLAGS"
7938 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7939 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7940 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7941 # The linker can only warn and ignore the option if not recognized
7942 # So say no if there are warnings
7943 if test -s conftest.err; then
7944 # Append any errors to the config.log.
7945 cat conftest.err 1>&5
7946 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7948 if diff conftest.exp conftest.er2 >/dev/null; then
7949 lt_cv_prog_compiler_static_works=yes
7950 fi
7951 else
7952 lt_cv_prog_compiler_static_works=yes
7953 fi
7954 fi
7955 $rm -r conftest*
7956 LDFLAGS="$save_LDFLAGS"
7957
7958 fi
7959 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7960 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7961
7962 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7963 :
7964 else
7965 lt_prog_compiler_static=
7966 fi
7967
7968
7969 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7970 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7971 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974 lt_cv_prog_compiler_c_o=no
7975 $rm -r conftest 2>/dev/null
7976 mkdir conftest
7977 cd conftest
7978 mkdir out
7979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7980
7981 lt_compiler_flag="-o out/conftest2.$ac_objext"
7982 # Insert the option either (1) after the last *FLAGS variable, or
7983 # (2) before a word containing "conftest.", or (3) at the end.
7984 # Note that $ac_compile itself does not contain backslashes and begins
7985 # with a dollar sign (not a hyphen), so the echo should work correctly.
7986 lt_compile=`echo "$ac_compile" | $SED \
7987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7989 -e 's:$: $lt_compiler_flag:'`
7990 (eval echo "\"\$as_me:7991: $lt_compile\"" >&5)
7991 (eval "$lt_compile" 2>out/conftest.err)
7992 ac_status=$?
7993 cat out/conftest.err >&5
7994 echo "$as_me:7995: \$? = $ac_status" >&5
7995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7996 then
7997 # The compiler can only warn and ignore the option if not recognized
7998 # So say no if there are warnings
7999 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8002 lt_cv_prog_compiler_c_o=yes
8003 fi
8004 fi
8005 chmod u+w . 2>&5
8006 $rm conftest*
8007 # SGI C++ compiler will create directory out/ii_files/ for
8008 # template instantiation
8009 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8010 $rm out/* && rmdir out
8011 cd ..
8012 rmdir conftest
8013 $rm conftest*
8014
8015 fi
8016 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8017 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8018
8019
8020 hard_links="nottested"
8021 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8022 # do not overwrite the value of need_locks provided by the user
8023 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8024 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8025 hard_links=yes
8026 $rm conftest*
8027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8028 touch conftest.a
8029 ln conftest.a conftest.b 2>&5 || hard_links=no
8030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8031 { echo "$as_me:$LINENO: result: $hard_links" >&5
8032 echo "${ECHO_T}$hard_links" >&6; }
8033 if test "$hard_links" = no; then
8034 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8035 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8036 need_locks=warn
8037 fi
8038 else
8039 need_locks=no
8040 fi
8041
8042 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8043 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8044
8045 runpath_var=
8046 allow_undefined_flag=
8047 enable_shared_with_static_runtimes=no
8048 archive_cmds=
8049 archive_expsym_cmds=
8050 old_archive_From_new_cmds=
8051 old_archive_from_expsyms_cmds=
8052 export_dynamic_flag_spec=
8053 whole_archive_flag_spec=
8054 thread_safe_flag_spec=
8055 hardcode_libdir_flag_spec=
8056 hardcode_libdir_flag_spec_ld=
8057 hardcode_libdir_separator=
8058 hardcode_direct=no
8059 hardcode_minus_L=no
8060 hardcode_shlibpath_var=unsupported
8061 link_all_deplibs=unknown
8062 hardcode_automatic=no
8063 module_cmds=
8064 module_expsym_cmds=
8065 always_export_symbols=no
8066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8067 # include_expsyms should be a list of space-separated symbols to be *always*
8068 # included in the symbol list
8069 include_expsyms=
8070 # exclude_expsyms can be an extended regexp of symbols to exclude
8071 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8072 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8073 # as well as any symbol that contains `d'.
8074 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8075 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8076 # platforms (ab)use it in PIC code, but their linkers get confused if
8077 # the symbol is explicitly referenced. Since portable code cannot
8078 # rely on this symbol name, it's probably fine to never include it in
8079 # preloaded symbol tables.
8080 # Exclude shared library initialization/finalization symbols.
8081 extract_expsyms_cmds=
8082 # Just being paranoid about ensuring that cc_basename is set.
8083 for cc_temp in $compiler""; do
8084 case $cc_temp in
8085 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8086 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8087 \-*) ;;
8088 *) break;;
8089 esac
8090 done
8091 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8092
8093 case $host_os in
8094 cygwin* | mingw* | pw32*)
8095 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8096 # When not using gcc, we currently assume that we are using
8097 # Microsoft Visual C++.
8098 if test "$GCC" != yes; then
8099 with_gnu_ld=no
8100 fi
8101 ;;
8102 interix*)
8103 # we just hope/assume this is gcc and not c89 (= MSVC++)
8104 with_gnu_ld=yes
8105 ;;
8106 openbsd*)
8107 with_gnu_ld=no
8108 ;;
8109 esac
8110
8111 ld_shlibs=yes
8112 if test "$with_gnu_ld" = yes; then
8113 # If archive_cmds runs LD, not CC, wlarc should be empty
8114 wlarc='${wl}'
8115
8116 # Set some defaults for GNU ld with shared library support. These
8117 # are reset later if shared libraries are not supported. Putting them
8118 # here allows them to be overridden if necessary.
8119 runpath_var=LD_RUN_PATH
8120 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8121 export_dynamic_flag_spec='${wl}--export-dynamic'
8122 # ancient GNU ld didn't support --whole-archive et. al.
8123 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8124 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8125 else
8126 whole_archive_flag_spec=
8127 fi
8128 supports_anon_versioning=no
8129 case `$LD -v 2>/dev/null` in
8130 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8131 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8132 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8133 *\ 2.11.*) ;; # other 2.11 versions
8134 *) supports_anon_versioning=yes ;;
8135 esac
8136
8137 # See if GNU ld supports shared libraries.
8138 case $host_os in
8139 aix[3-9]*)
8140 # On AIX/PPC, the GNU linker is very broken
8141 if test "$host_cpu" != ia64; then
8142 ld_shlibs=no
8143 cat <<EOF 1>&2
8144
8145 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8146 *** to be unable to reliably create shared libraries on AIX.
8147 *** Therefore, libtool is disabling shared libraries support. If you
8148 *** really care for shared libraries, you may want to modify your PATH
8149 *** so that a non-GNU linker is found, and then restart.
8150
8151 EOF
8152 fi
8153 ;;
8154
8155 amigaos*)
8156 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)'
8157 hardcode_libdir_flag_spec='-L$libdir'
8158 hardcode_minus_L=yes
8159
8160 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8161 # that the semantics of dynamic libraries on AmigaOS, at least up
8162 # to version 4, is to share data among multiple programs linked
8163 # with the same dynamic library. Since this doesn't match the
8164 # behavior of shared libraries on other platforms, we can't use
8165 # them.
8166 ld_shlibs=no
8167 ;;
8168
8169 beos*)
8170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8171 allow_undefined_flag=unsupported
8172 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8173 # support --undefined. This deserves some investigation. FIXME
8174 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8175 else
8176 ld_shlibs=no
8177 fi
8178 ;;
8179
8180 cygwin* | mingw* | pw32*)
8181 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8182 # as there is no search path for DLLs.
8183 hardcode_libdir_flag_spec='-L$libdir'
8184 allow_undefined_flag=unsupported
8185 always_export_symbols=no
8186 enable_shared_with_static_runtimes=yes
8187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8188
8189 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8191 # If the export-symbols file already is a .def file (1st line
8192 # is EXPORTS), use it as is; otherwise, prepend...
8193 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8194 cp $export_symbols $output_objdir/$soname.def;
8195 else
8196 echo EXPORTS > $output_objdir/$soname.def;
8197 cat $export_symbols >> $output_objdir/$soname.def;
8198 fi~
8199 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8200 else
8201 ld_shlibs=no
8202 fi
8203 ;;
8204
8205 interix[3-9]*)
8206 hardcode_direct=no
8207 hardcode_shlibpath_var=no
8208 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8209 export_dynamic_flag_spec='${wl}-E'
8210 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8211 # Instead, shared libraries are loaded at an image base (0x10000000 by
8212 # default) and relocated if they conflict, which is a slow very memory
8213 # consuming and fragmenting process. To avoid this, we pick a random,
8214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8215 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8216 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8217 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'
8218 ;;
8219
8220 gnu* | linux* | k*bsd*-gnu)
8221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222 tmp_addflag=
8223 case $cc_basename,$host_cpu in
8224 pgcc*) # Portland Group C compiler
8225 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'
8226 tmp_addflag=' $pic_flag'
8227 ;;
8228 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8229 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'
8230 tmp_addflag=' $pic_flag -Mnomain' ;;
8231 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8232 tmp_addflag=' -i_dynamic' ;;
8233 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8234 tmp_addflag=' -i_dynamic -nofor_main' ;;
8235 ifc* | ifort*) # Intel Fortran compiler
8236 tmp_addflag=' -nofor_main' ;;
8237 esac
8238 case `$CC -V 2>&1 | sed 5q` in
8239 *Sun\ C*) # Sun C 5.9
8240 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'
8241 tmp_sharedflag='-G' ;;
8242 *Sun\ F*) # Sun Fortran 8.3
8243 tmp_sharedflag='-G' ;;
8244 *)
8245 tmp_sharedflag='-shared' ;;
8246 esac
8247 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8248
8249 if test $supports_anon_versioning = yes; then
8250 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8252 $echo "local: *; };" >> $output_objdir/$libname.ver~
8253 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8254 fi
8255 link_all_deplibs=no
8256 else
8257 ld_shlibs=no
8258 fi
8259 ;;
8260
8261 netbsd* | netbsdelf*-gnu)
8262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8263 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8264 wlarc=
8265 else
8266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8268 fi
8269 ;;
8270
8271 solaris*)
8272 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8273 ld_shlibs=no
8274 cat <<EOF 1>&2
8275
8276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8277 *** create shared libraries on Solaris systems. Therefore, libtool
8278 *** is disabling shared libraries support. We urge you to upgrade GNU
8279 *** binutils to release 2.9.1 or newer. Another option is to modify
8280 *** your PATH or compiler configuration so that the native linker is
8281 *** used, and then restart.
8282
8283 EOF
8284 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8287 else
8288 ld_shlibs=no
8289 fi
8290 ;;
8291
8292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8293 case `$LD -v 2>&1` in
8294 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8295 ld_shlibs=no
8296 cat <<_LT_EOF 1>&2
8297
8298 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8299 *** reliably create shared libraries on SCO systems. Therefore, libtool
8300 *** is disabling shared libraries support. We urge you to upgrade GNU
8301 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8302 *** your PATH or compiler configuration so that the native linker is
8303 *** used, and then restart.
8304
8305 _LT_EOF
8306 ;;
8307 *)
8308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8309 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8312 else
8313 ld_shlibs=no
8314 fi
8315 ;;
8316 esac
8317 ;;
8318
8319 sunos4*)
8320 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8321 wlarc=
8322 hardcode_direct=yes
8323 hardcode_shlibpath_var=no
8324 ;;
8325
8326 *)
8327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8330 else
8331 ld_shlibs=no
8332 fi
8333 ;;
8334 esac
8335
8336 if test "$ld_shlibs" = no; then
8337 runpath_var=
8338 hardcode_libdir_flag_spec=
8339 export_dynamic_flag_spec=
8340 whole_archive_flag_spec=
8341 fi
8342 else
8343 # PORTME fill in a description of your system's linker (not GNU ld)
8344 case $host_os in
8345 aix3*)
8346 allow_undefined_flag=unsupported
8347 always_export_symbols=yes
8348 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8349 # Note: this linker hardcodes the directories in LIBPATH if there
8350 # are no directories specified by -L.
8351 hardcode_minus_L=yes
8352 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8353 # Neither direct hardcoding nor static linking is supported with a
8354 # broken collect2.
8355 hardcode_direct=unsupported
8356 fi
8357 ;;
8358
8359 aix[4-9]*)
8360 if test "$host_cpu" = ia64; then
8361 # On IA64, the linker does run time linking by default, so we don't
8362 # have to do anything special.
8363 aix_use_runtimelinking=no
8364 exp_sym_flag='-Bexport'
8365 no_entry_flag=""
8366 else
8367 # If we're using GNU nm, then we don't want the "-C" option.
8368 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8369 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8370 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'
8371 else
8372 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'
8373 fi
8374 aix_use_runtimelinking=no
8375
8376 # Test if we are trying to use run time linking or normal
8377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8378 # need to do runtime linking.
8379 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8380 for ld_flag in $LDFLAGS; do
8381 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8382 aix_use_runtimelinking=yes
8383 break
8384 fi
8385 done
8386 ;;
8387 esac
8388
8389 exp_sym_flag='-bexport'
8390 no_entry_flag='-bnoentry'
8391 fi
8392
8393 # When large executables or shared objects are built, AIX ld can
8394 # have problems creating the table of contents. If linking a library
8395 # or program results in "error TOC overflow" add -mminimal-toc to
8396 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8397 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8398
8399 archive_cmds=''
8400 hardcode_direct=yes
8401 hardcode_libdir_separator=':'
8402 link_all_deplibs=yes
8403
8404 if test "$GCC" = yes; then
8405 case $host_os in aix4.[012]|aix4.[012].*)
8406 # We only want to do this on AIX 4.2 and lower, the check
8407 # below for broken collect2 doesn't work under 4.3+
8408 collect2name=`${CC} -print-prog-name=collect2`
8409 if test -f "$collect2name" && \
8410 strings "$collect2name" | grep resolve_lib_name >/dev/null
8411 then
8412 # We have reworked collect2
8413 :
8414 else
8415 # We have old collect2
8416 hardcode_direct=unsupported
8417 # It fails to find uninstalled libraries when the uninstalled
8418 # path is not listed in the libpath. Setting hardcode_minus_L
8419 # to unsupported forces relinking
8420 hardcode_minus_L=yes
8421 hardcode_libdir_flag_spec='-L$libdir'
8422 hardcode_libdir_separator=
8423 fi
8424 ;;
8425 esac
8426 shared_flag='-shared'
8427 if test "$aix_use_runtimelinking" = yes; then
8428 shared_flag="$shared_flag "'${wl}-G'
8429 fi
8430 else
8431 # not using gcc
8432 if test "$host_cpu" = ia64; then
8433 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8434 # chokes on -Wl,-G. The following line is correct:
8435 shared_flag='-G'
8436 else
8437 if test "$aix_use_runtimelinking" = yes; then
8438 shared_flag='${wl}-G'
8439 else
8440 shared_flag='${wl}-bM:SRE'
8441 fi
8442 fi
8443 fi
8444
8445 # It seems that -bexpall does not export symbols beginning with
8446 # underscore (_), so it is better to generate a list of symbols to export.
8447 always_export_symbols=yes
8448 if test "$aix_use_runtimelinking" = yes; then
8449 # Warning - without using the other runtime loading flags (-brtl),
8450 # -berok will link without error, but may produce a broken library.
8451 allow_undefined_flag='-berok'
8452 # Determine the default libpath from the value encoded in an empty executable.
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459
8460 int
8461 main ()
8462 {
8463
8464 ;
8465 return 0;
8466 }
8467 _ACEOF
8468 rm -f conftest.$ac_objext conftest$ac_exeext
8469 if { (ac_try="$ac_link"
8470 case "(($ac_try" in
8471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8473 esac
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_link") 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } && {
8482 test -z "$ac_c_werror_flag" ||
8483 test ! -s conftest.err
8484 } && test -s conftest$ac_exeext &&
8485 $as_test_x conftest$ac_exeext; then
8486
8487 lt_aix_libpath_sed='
8488 /Import File Strings/,/^$/ {
8489 /^0/ {
8490 s/^0 *\(.*\)$/\1/
8491 p
8492 }
8493 }'
8494 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8495 # Check for a 64-bit object if we didn't find anything.
8496 if test -z "$aix_libpath"; then
8497 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8498 fi
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503
8504 fi
8505
8506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8507 conftest$ac_exeext conftest.$ac_ext
8508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8509
8510 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8511 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"
8512 else
8513 if test "$host_cpu" = ia64; then
8514 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8515 allow_undefined_flag="-z nodefs"
8516 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"
8517 else
8518 # Determine the default libpath from the value encoded in an empty executable.
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525
8526 int
8527 main ()
8528 {
8529
8530 ;
8531 return 0;
8532 }
8533 _ACEOF
8534 rm -f conftest.$ac_objext conftest$ac_exeext
8535 if { (ac_try="$ac_link"
8536 case "(($ac_try" in
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8539 esac
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_link") 2>conftest.er1
8542 ac_status=$?
8543 grep -v '^ *+' conftest.er1 >conftest.err
8544 rm -f conftest.er1
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } && {
8548 test -z "$ac_c_werror_flag" ||
8549 test ! -s conftest.err
8550 } && test -s conftest$ac_exeext &&
8551 $as_test_x conftest$ac_exeext; then
8552
8553 lt_aix_libpath_sed='
8554 /Import File Strings/,/^$/ {
8555 /^0/ {
8556 s/^0 *\(.*\)$/\1/
8557 p
8558 }
8559 }'
8560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8561 # Check for a 64-bit object if we didn't find anything.
8562 if test -z "$aix_libpath"; then
8563 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8564 fi
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569
8570 fi
8571
8572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8573 conftest$ac_exeext conftest.$ac_ext
8574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8575
8576 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8577 # Warning - without using the other run time loading flags,
8578 # -berok will link without error, but may produce a broken library.
8579 no_undefined_flag=' ${wl}-bernotok'
8580 allow_undefined_flag=' ${wl}-berok'
8581 # Exported symbols can be pulled into shared objects from archives
8582 whole_archive_flag_spec='$convenience'
8583 archive_cmds_need_lc=yes
8584 # This is similar to how AIX traditionally builds its shared libraries.
8585 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8586 fi
8587 fi
8588 ;;
8589
8590 amigaos*)
8591 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)'
8592 hardcode_libdir_flag_spec='-L$libdir'
8593 hardcode_minus_L=yes
8594 # see comment about different semantics on the GNU ld section
8595 ld_shlibs=no
8596 ;;
8597
8598 bsdi[45]*)
8599 export_dynamic_flag_spec=-rdynamic
8600 ;;
8601
8602 cygwin* | mingw* | pw32*)
8603 # When not using gcc, we currently assume that we are using
8604 # Microsoft Visual C++.
8605 # hardcode_libdir_flag_spec is actually meaningless, as there is
8606 # no search path for DLLs.
8607 hardcode_libdir_flag_spec=' '
8608 allow_undefined_flag=unsupported
8609 # Tell ltmain to make .lib files, not .a files.
8610 libext=lib
8611 # Tell ltmain to make .dll files, not .so files.
8612 shrext_cmds=".dll"
8613 # FIXME: Setting linknames here is a bad hack.
8614 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8615 # The linker will automatically build a .lib file if we build a DLL.
8616 old_archive_From_new_cmds='true'
8617 # FIXME: Should let the user specify the lib program.
8618 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8619 fix_srcfile_path='`cygpath -w "$srcfile"`'
8620 enable_shared_with_static_runtimes=yes
8621 ;;
8622
8623 darwin* | rhapsody*)
8624 case $host_os in
8625 rhapsody* | darwin1.[012])
8626 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8627 ;;
8628 *) # Darwin 1.3 on
8629 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8630 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8631 else
8632 case ${MACOSX_DEPLOYMENT_TARGET} in
8633 10.[012])
8634 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8635 ;;
8636 10.*)
8637 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8638 ;;
8639 esac
8640 fi
8641 ;;
8642 esac
8643 archive_cmds_need_lc=no
8644 hardcode_direct=no
8645 hardcode_automatic=yes
8646 hardcode_shlibpath_var=unsupported
8647 whole_archive_flag_spec=''
8648 link_all_deplibs=yes
8649 if test "$GCC" = yes ; then
8650 output_verbose_link_cmd='echo'
8651 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8652 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8653 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}"
8654 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}"
8655 else
8656 case $cc_basename in
8657 xlc*)
8658 output_verbose_link_cmd='echo'
8659 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8660 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8661 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8662 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}'
8663 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}'
8664 ;;
8665 *)
8666 ld_shlibs=no
8667 ;;
8668 esac
8669 fi
8670 ;;
8671
8672 dgux*)
8673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8674 hardcode_libdir_flag_spec='-L$libdir'
8675 hardcode_shlibpath_var=no
8676 ;;
8677
8678 freebsd1*)
8679 ld_shlibs=no
8680 ;;
8681
8682 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8683 # support. Future versions do this automatically, but an explicit c++rt0.o
8684 # does not break anything, and helps significantly (at the cost of a little
8685 # extra space).
8686 freebsd2.2*)
8687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8688 hardcode_libdir_flag_spec='-R$libdir'
8689 hardcode_direct=yes
8690 hardcode_shlibpath_var=no
8691 ;;
8692
8693 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8694 freebsd2*)
8695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8696 hardcode_direct=yes
8697 hardcode_minus_L=yes
8698 hardcode_shlibpath_var=no
8699 ;;
8700
8701 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8702 freebsd* | dragonfly*)
8703 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8704 hardcode_libdir_flag_spec='-R$libdir'
8705 hardcode_direct=yes
8706 hardcode_shlibpath_var=no
8707 ;;
8708
8709 hpux9*)
8710 if test "$GCC" = yes; then
8711 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'
8712 else
8713 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'
8714 fi
8715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8716 hardcode_libdir_separator=:
8717 hardcode_direct=yes
8718
8719 # hardcode_minus_L: Not really in the search PATH,
8720 # but as the default location of the library.
8721 hardcode_minus_L=yes
8722 export_dynamic_flag_spec='${wl}-E'
8723 ;;
8724
8725 hpux10*)
8726 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8728 else
8729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8730 fi
8731 if test "$with_gnu_ld" = no; then
8732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8733 hardcode_libdir_separator=:
8734
8735 hardcode_direct=yes
8736 export_dynamic_flag_spec='${wl}-E'
8737
8738 # hardcode_minus_L: Not really in the search PATH,
8739 # but as the default location of the library.
8740 hardcode_minus_L=yes
8741 fi
8742 ;;
8743
8744 hpux11*)
8745 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8746 case $host_cpu in
8747 hppa*64*)
8748 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8749 ;;
8750 ia64*)
8751 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8752 ;;
8753 *)
8754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8755 ;;
8756 esac
8757 else
8758 case $host_cpu in
8759 hppa*64*)
8760 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8761 ;;
8762 ia64*)
8763 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8764 ;;
8765 *)
8766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8767 ;;
8768 esac
8769 fi
8770 if test "$with_gnu_ld" = no; then
8771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8772 hardcode_libdir_separator=:
8773
8774 case $host_cpu in
8775 hppa*64*|ia64*)
8776 hardcode_libdir_flag_spec_ld='+b $libdir'
8777 hardcode_direct=no
8778 hardcode_shlibpath_var=no
8779 ;;
8780 *)
8781 hardcode_direct=yes
8782 export_dynamic_flag_spec='${wl}-E'
8783
8784 # hardcode_minus_L: Not really in the search PATH,
8785 # but as the default location of the library.
8786 hardcode_minus_L=yes
8787 ;;
8788 esac
8789 fi
8790 ;;
8791
8792 irix5* | irix6* | nonstopux*)
8793 if test "$GCC" = yes; then
8794 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'
8795 else
8796 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'
8797 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8798 fi
8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800 hardcode_libdir_separator=:
8801 link_all_deplibs=yes
8802 ;;
8803
8804 netbsd* | netbsdelf*-gnu)
8805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8807 else
8808 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8809 fi
8810 hardcode_libdir_flag_spec='-R$libdir'
8811 hardcode_direct=yes
8812 hardcode_shlibpath_var=no
8813 ;;
8814
8815 newsos6)
8816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8817 hardcode_direct=yes
8818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8819 hardcode_libdir_separator=:
8820 hardcode_shlibpath_var=no
8821 ;;
8822
8823 openbsd*)
8824 if test -f /usr/libexec/ld.so; then
8825 hardcode_direct=yes
8826 hardcode_shlibpath_var=no
8827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8831 export_dynamic_flag_spec='${wl}-E'
8832 else
8833 case $host_os in
8834 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8836 hardcode_libdir_flag_spec='-R$libdir'
8837 ;;
8838 *)
8839 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8840 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8841 ;;
8842 esac
8843 fi
8844 else
8845 ld_shlibs=no
8846 fi
8847 ;;
8848
8849 os2*)
8850 hardcode_libdir_flag_spec='-L$libdir'
8851 hardcode_minus_L=yes
8852 allow_undefined_flag=unsupported
8853 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'
8854 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8855 ;;
8856
8857 osf3*)
8858 if test "$GCC" = yes; then
8859 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8860 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'
8861 else
8862 allow_undefined_flag=' -expect_unresolved \*'
8863 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'
8864 fi
8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866 hardcode_libdir_separator=:
8867 ;;
8868
8869 osf4* | osf5*) # as osf3* with the addition of -msym flag
8870 if test "$GCC" = yes; then
8871 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8872 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'
8873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8874 else
8875 allow_undefined_flag=' -expect_unresolved \*'
8876 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'
8877 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8878 $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'
8879
8880 # Both c and cxx compiler support -rpath directly
8881 hardcode_libdir_flag_spec='-rpath $libdir'
8882 fi
8883 hardcode_libdir_separator=:
8884 ;;
8885
8886 solaris*)
8887 no_undefined_flag=' -z text'
8888 if test "$GCC" = yes; then
8889 wlarc='${wl}'
8890 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8891 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8892 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8893 else
8894 wlarc=''
8895 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8897 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8898 fi
8899 hardcode_libdir_flag_spec='-R$libdir'
8900 hardcode_shlibpath_var=no
8901 case $host_os in
8902 solaris2.[0-5] | solaris2.[0-5].*) ;;
8903 *)
8904 # The compiler driver will combine and reorder linker options,
8905 # but understands `-z linker_flag'. GCC discards it without `$wl',
8906 # but is careful enough not to reorder.
8907 # Supported since Solaris 2.6 (maybe 2.5.1?)
8908 if test "$GCC" = yes; then
8909 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8910 else
8911 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8912 fi
8913 ;;
8914 esac
8915 link_all_deplibs=yes
8916 ;;
8917
8918 sunos4*)
8919 if test "x$host_vendor" = xsequent; then
8920 # Use $CC to link under sequent, because it throws in some extra .o
8921 # files that make .init and .fini sections work.
8922 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8923 else
8924 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8925 fi
8926 hardcode_libdir_flag_spec='-L$libdir'
8927 hardcode_direct=yes
8928 hardcode_minus_L=yes
8929 hardcode_shlibpath_var=no
8930 ;;
8931
8932 sysv4)
8933 case $host_vendor in
8934 sni)
8935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936 hardcode_direct=yes # is this really true???
8937 ;;
8938 siemens)
8939 ## LD is ld it makes a PLAMLIB
8940 ## CC just makes a GrossModule.
8941 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8942 reload_cmds='$CC -r -o $output$reload_objs'
8943 hardcode_direct=no
8944 ;;
8945 motorola)
8946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8948 ;;
8949 esac
8950 runpath_var='LD_RUN_PATH'
8951 hardcode_shlibpath_var=no
8952 ;;
8953
8954 sysv4.3*)
8955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8956 hardcode_shlibpath_var=no
8957 export_dynamic_flag_spec='-Bexport'
8958 ;;
8959
8960 sysv4*MP*)
8961 if test -d /usr/nec; then
8962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8963 hardcode_shlibpath_var=no
8964 runpath_var=LD_RUN_PATH
8965 hardcode_runpath_var=yes
8966 ld_shlibs=yes
8967 fi
8968 ;;
8969
8970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8971 no_undefined_flag='${wl}-z,text'
8972 archive_cmds_need_lc=no
8973 hardcode_shlibpath_var=no
8974 runpath_var='LD_RUN_PATH'
8975
8976 if test "$GCC" = yes; then
8977 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8979 else
8980 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8981 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8982 fi
8983 ;;
8984
8985 sysv5* | sco3.2v5* | sco5v6*)
8986 # Note: We can NOT use -z defs as we might desire, because we do not
8987 # link with -lc, and that would cause any symbols used from libc to
8988 # always be unresolved, which means just about no library would
8989 # ever link correctly. If we're not using GNU ld we use -z text
8990 # though, which does catch some bad symbols but isn't as heavy-handed
8991 # as -z defs.
8992 no_undefined_flag='${wl}-z,text'
8993 allow_undefined_flag='${wl}-z,nodefs'
8994 archive_cmds_need_lc=no
8995 hardcode_shlibpath_var=no
8996 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8997 hardcode_libdir_separator=':'
8998 link_all_deplibs=yes
8999 export_dynamic_flag_spec='${wl}-Bexport'
9000 runpath_var='LD_RUN_PATH'
9001
9002 if test "$GCC" = yes; then
9003 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9004 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9005 else
9006 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9007 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9008 fi
9009 ;;
9010
9011 uts4*)
9012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 hardcode_shlibpath_var=no
9015 ;;
9016
9017 *)
9018 ld_shlibs=no
9019 ;;
9020 esac
9021 fi
9022
9023 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9024 echo "${ECHO_T}$ld_shlibs" >&6; }
9025 test "$ld_shlibs" = no && can_build_shared=no
9026
9027 #
9028 # Do we need to explicitly link libc?
9029 #
9030 case "x$archive_cmds_need_lc" in
9031 x|xyes)
9032 # Assume -lc should be added
9033 archive_cmds_need_lc=yes
9034
9035 if test "$enable_shared" = yes && test "$GCC" = yes; then
9036 case $archive_cmds in
9037 *'~'*)
9038 # FIXME: we may have to deal with multi-command sequences.
9039 ;;
9040 '$CC '*)
9041 # Test whether the compiler implicitly links with -lc since on some
9042 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9043 # to ld, don't add -lc before -lgcc.
9044 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9045 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9046 $rm conftest*
9047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9048
9049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9050 (eval $ac_compile) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } 2>conftest.err; then
9054 soname=conftest
9055 lib=conftest
9056 libobjs=conftest.$ac_objext
9057 deplibs=
9058 wl=$lt_prog_compiler_wl
9059 pic_flag=$lt_prog_compiler_pic
9060 compiler_flags=-v
9061 linker_flags=-v
9062 verstring=
9063 output_objdir=.
9064 libname=conftest
9065 lt_save_allow_undefined_flag=$allow_undefined_flag
9066 allow_undefined_flag=
9067 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9068 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }
9072 then
9073 archive_cmds_need_lc=no
9074 else
9075 archive_cmds_need_lc=yes
9076 fi
9077 allow_undefined_flag=$lt_save_allow_undefined_flag
9078 else
9079 cat conftest.err 1>&5
9080 fi
9081 $rm conftest*
9082 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9083 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9084 ;;
9085 esac
9086 fi
9087 ;;
9088 esac
9089
9090 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9091 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9092 library_names_spec=
9093 libname_spec='lib$name'
9094 soname_spec=
9095 shrext_cmds=".so"
9096 postinstall_cmds=
9097 postuninstall_cmds=
9098 finish_cmds=
9099 finish_eval=
9100 shlibpath_var=
9101 shlibpath_overrides_runpath=unknown
9102 version_type=none
9103 dynamic_linker="$host_os ld.so"
9104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9105
9106 if test "$GCC" = yes; then
9107 case $host_os in
9108 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9109 *) lt_awk_arg="/^libraries:/" ;;
9110 esac
9111 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9112 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9113 # if the path contains ";" then we assume it to be the separator
9114 # otherwise default to the standard path separator (i.e. ":") - it is
9115 # assumed that no part of a normal pathname contains ";" but that should
9116 # okay in the real world where ";" in dirpaths is itself problematic.
9117 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9118 else
9119 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9120 fi
9121 # Ok, now we have the path, separated by spaces, we can step through it
9122 # and add multilib dir if necessary.
9123 lt_tmp_lt_search_path_spec=
9124 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9125 for lt_sys_path in $lt_search_path_spec; do
9126 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9127 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9128 else
9129 test -d "$lt_sys_path" && \
9130 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9131 fi
9132 done
9133 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9134 BEGIN {RS=" "; FS="/|\n";} {
9135 lt_foo="";
9136 lt_count=0;
9137 for (lt_i = NF; lt_i > 0; lt_i--) {
9138 if ($lt_i != "" && $lt_i != ".") {
9139 if ($lt_i == "..") {
9140 lt_count++;
9141 } else {
9142 if (lt_count == 0) {
9143 lt_foo="/" $lt_i lt_foo;
9144 } else {
9145 lt_count--;
9146 }
9147 }
9148 }
9149 }
9150 if (lt_foo != "") { lt_freq[lt_foo]++; }
9151 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9152 }'`
9153 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9154 else
9155 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9156 fi
9157 need_lib_prefix=unknown
9158 hardcode_into_libs=no
9159
9160 # when you set need_version to no, make sure it does not cause -set_version
9161 # flags to be left without arguments
9162 need_version=unknown
9163
9164 case $host_os in
9165 aix3*)
9166 version_type=linux
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9168 shlibpath_var=LIBPATH
9169
9170 # AIX 3 has no versioning support, so we append a major version to the name.
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 ;;
9173
9174 aix[4-9]*)
9175 version_type=linux
9176 need_lib_prefix=no
9177 need_version=no
9178 hardcode_into_libs=yes
9179 if test "$host_cpu" = ia64; then
9180 # AIX 5 supports IA64
9181 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9182 shlibpath_var=LD_LIBRARY_PATH
9183 else
9184 # With GCC up to 2.95.x, collect2 would create an import file
9185 # for dependence libraries. The import file would start with
9186 # the line `#! .'. This would cause the generated library to
9187 # depend on `.', always an invalid library. This was fixed in
9188 # development snapshots of GCC prior to 3.0.
9189 case $host_os in
9190 aix4 | aix4.[01] | aix4.[01].*)
9191 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9192 echo ' yes '
9193 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9194 :
9195 else
9196 can_build_shared=no
9197 fi
9198 ;;
9199 esac
9200 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9201 # soname into executable. Probably we can add versioning support to
9202 # collect2, so additional links can be useful in future.
9203 if test "$aix_use_runtimelinking" = yes; then
9204 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9205 # instead of lib<name>.a to let people know that these are not
9206 # typical AIX shared libraries.
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208 else
9209 # We preserve .a as extension for shared libraries through AIX4.2
9210 # and later when we are not doing run time linking.
9211 library_names_spec='${libname}${release}.a $libname.a'
9212 soname_spec='${libname}${release}${shared_ext}$major'
9213 fi
9214 shlibpath_var=LIBPATH
9215 fi
9216 ;;
9217
9218 amigaos*)
9219 library_names_spec='$libname.ixlibrary $libname.a'
9220 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9221 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'
9222 ;;
9223
9224 beos*)
9225 library_names_spec='${libname}${shared_ext}'
9226 dynamic_linker="$host_os ld.so"
9227 shlibpath_var=LIBRARY_PATH
9228 ;;
9229
9230 bsdi[45]*)
9231 version_type=linux
9232 need_version=no
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9238 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9239 # the default ld.so.conf also contains /usr/contrib/lib and
9240 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9241 # libtool to hard-code these into programs
9242 ;;
9243
9244 cygwin* | mingw* | pw32*)
9245 version_type=windows
9246 shrext_cmds=".dll"
9247 need_version=no
9248 need_lib_prefix=no
9249
9250 case $GCC,$host_os in
9251 yes,cygwin* | yes,mingw* | yes,pw32*)
9252 library_names_spec='$libname.dll.a'
9253 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9254 postinstall_cmds='base_file=`basename \${file}`~
9255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9256 dldir=$destdir/`dirname \$dlpath`~
9257 test -d \$dldir || mkdir -p \$dldir~
9258 $install_prog $dir/$dlname \$dldir/$dlname~
9259 chmod a+x \$dldir/$dlname'
9260 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9261 dlpath=$dir/\$dldll~
9262 $rm \$dlpath'
9263 shlibpath_overrides_runpath=yes
9264
9265 case $host_os in
9266 cygwin*)
9267 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9268 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9269 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9270 ;;
9271 mingw*)
9272 # MinGW DLLs use traditional 'lib' prefix
9273 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9274 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9275 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9276 # It is most probably a Windows format PATH printed by
9277 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9278 # path with ; separators, and with drive letters. We can handle the
9279 # drive letters (cygwin fileutils understands them), so leave them,
9280 # especially as we might pass files found there to a mingw objdump,
9281 # which wouldn't understand a cygwinified path. Ahh.
9282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9283 else
9284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9285 fi
9286 ;;
9287 pw32*)
9288 # pw32 DLLs use 'pw' prefix rather than 'lib'
9289 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9290 ;;
9291 esac
9292 ;;
9293
9294 *)
9295 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9296 ;;
9297 esac
9298 dynamic_linker='Win32 ld.exe'
9299 # FIXME: first we should search . and the directory the executable is in
9300 shlibpath_var=PATH
9301 ;;
9302
9303 darwin* | rhapsody*)
9304 dynamic_linker="$host_os dyld"
9305 version_type=darwin
9306 need_lib_prefix=no
9307 need_version=no
9308 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9309 soname_spec='${libname}${release}${major}$shared_ext'
9310 shlibpath_overrides_runpath=yes
9311 shlibpath_var=DYLD_LIBRARY_PATH
9312 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9313
9314 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9315 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9316 ;;
9317
9318 dgux*)
9319 version_type=linux
9320 need_lib_prefix=no
9321 need_version=no
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 ;;
9326
9327 freebsd1*)
9328 dynamic_linker=no
9329 ;;
9330
9331 freebsd* | dragonfly*)
9332 # DragonFly does not have aout. When/if they implement a new
9333 # versioning mechanism, adjust this.
9334 if test -x /usr/bin/objformat; then
9335 objformat=`/usr/bin/objformat`
9336 else
9337 case $host_os in
9338 freebsd[123]*) objformat=aout ;;
9339 *) objformat=elf ;;
9340 esac
9341 fi
9342 version_type=freebsd-$objformat
9343 case $version_type in
9344 freebsd-elf*)
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9346 need_version=no
9347 need_lib_prefix=no
9348 ;;
9349 freebsd-*)
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9351 need_version=yes
9352 ;;
9353 esac
9354 shlibpath_var=LD_LIBRARY_PATH
9355 case $host_os in
9356 freebsd2*)
9357 shlibpath_overrides_runpath=yes
9358 ;;
9359 freebsd3.[01]* | freebsdelf3.[01]*)
9360 shlibpath_overrides_runpath=yes
9361 hardcode_into_libs=yes
9362 ;;
9363 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9364 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9365 shlibpath_overrides_runpath=no
9366 hardcode_into_libs=yes
9367 ;;
9368 *) # from 4.6 on, and DragonFly
9369 shlibpath_overrides_runpath=yes
9370 hardcode_into_libs=yes
9371 ;;
9372 esac
9373 ;;
9374
9375 gnu*)
9376 version_type=linux
9377 need_lib_prefix=no
9378 need_version=no
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9380 soname_spec='${libname}${release}${shared_ext}$major'
9381 shlibpath_var=LD_LIBRARY_PATH
9382 hardcode_into_libs=yes
9383 ;;
9384
9385 hpux9* | hpux10* | hpux11*)
9386 # Give a soname corresponding to the major version so that dld.sl refuses to
9387 # link against other versions.
9388 version_type=sunos
9389 need_lib_prefix=no
9390 need_version=no
9391 case $host_cpu in
9392 ia64*)
9393 shrext_cmds='.so'
9394 hardcode_into_libs=yes
9395 dynamic_linker="$host_os dld.so"
9396 shlibpath_var=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 if test "X$HPUX_IA64_MODE" = X32; then
9401 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9402 else
9403 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9404 fi
9405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9406 ;;
9407 hppa*64*)
9408 shrext_cmds='.sl'
9409 hardcode_into_libs=yes
9410 dynamic_linker="$host_os dld.sl"
9411 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414 soname_spec='${libname}${release}${shared_ext}$major'
9415 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9417 ;;
9418 *)
9419 shrext_cmds='.sl'
9420 dynamic_linker="$host_os dld.sl"
9421 shlibpath_var=SHLIB_PATH
9422 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424 soname_spec='${libname}${release}${shared_ext}$major'
9425 ;;
9426 esac
9427 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9428 postinstall_cmds='chmod 555 $lib'
9429 ;;
9430
9431 interix[3-9]*)
9432 version_type=linux
9433 need_lib_prefix=no
9434 need_version=no
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9436 soname_spec='${libname}${release}${shared_ext}$major'
9437 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9438 shlibpath_var=LD_LIBRARY_PATH
9439 shlibpath_overrides_runpath=no
9440 hardcode_into_libs=yes
9441 ;;
9442
9443 irix5* | irix6* | nonstopux*)
9444 case $host_os in
9445 nonstopux*) version_type=nonstopux ;;
9446 *)
9447 if test "$lt_cv_prog_gnu_ld" = yes; then
9448 version_type=linux
9449 else
9450 version_type=irix
9451 fi ;;
9452 esac
9453 need_lib_prefix=no
9454 need_version=no
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9457 case $host_os in
9458 irix5* | nonstopux*)
9459 libsuff= shlibsuff=
9460 ;;
9461 *)
9462 case $LD in # libtool.m4 will add one of these switches to LD
9463 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9464 libsuff= shlibsuff= libmagic=32-bit;;
9465 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9466 libsuff=32 shlibsuff=N32 libmagic=N32;;
9467 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9468 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9469 *) libsuff= shlibsuff= libmagic=never-match;;
9470 esac
9471 ;;
9472 esac
9473 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9474 shlibpath_overrides_runpath=no
9475 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9476 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9477 hardcode_into_libs=yes
9478 ;;
9479
9480 # No shared lib support for Linux oldld, aout, or coff.
9481 linux*oldld* | linux*aout* | linux*coff*)
9482 dynamic_linker=no
9483 ;;
9484
9485 # This must be Linux ELF.
9486 linux* | k*bsd*-gnu)
9487 version_type=linux
9488 need_lib_prefix=no
9489 need_version=no
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9493 shlibpath_var=LD_LIBRARY_PATH
9494 shlibpath_overrides_runpath=no
9495 # This implies no fast_install, which is unacceptable.
9496 # Some rework will be needed to allow for fast_install
9497 # before this can be enabled.
9498 hardcode_into_libs=yes
9499
9500 # Append ld.so.conf contents to the search path
9501 if test -f /etc/ld.so.conf; then
9502 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' ' '`
9503 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9504 fi
9505
9506 # We used to test for /lib/ld.so.1 and disable shared libraries on
9507 # powerpc, because MkLinux only supported shared libraries with the
9508 # GNU dynamic linker. Since this was broken with cross compilers,
9509 # most powerpc-linux boxes support dynamic linking these days and
9510 # people can always --disable-shared, the test was removed, and we
9511 # assume the GNU/Linux dynamic linker is in use.
9512 dynamic_linker='GNU/Linux ld.so'
9513 ;;
9514
9515 netbsdelf*-gnu)
9516 version_type=linux
9517 need_lib_prefix=no
9518 need_version=no
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 shlibpath_var=LD_LIBRARY_PATH
9522 shlibpath_overrides_runpath=no
9523 hardcode_into_libs=yes
9524 dynamic_linker='NetBSD ld.elf_so'
9525 ;;
9526
9527 netbsd*)
9528 version_type=sunos
9529 need_lib_prefix=no
9530 need_version=no
9531 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9534 dynamic_linker='NetBSD (a.out) ld.so'
9535 else
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 dynamic_linker='NetBSD ld.elf_so'
9539 fi
9540 shlibpath_var=LD_LIBRARY_PATH
9541 shlibpath_overrides_runpath=yes
9542 hardcode_into_libs=yes
9543 ;;
9544
9545 newsos6)
9546 version_type=linux
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 shlibpath_overrides_runpath=yes
9550 ;;
9551
9552 nto-qnx*)
9553 version_type=linux
9554 need_lib_prefix=no
9555 need_version=no
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 shlibpath_var=LD_LIBRARY_PATH
9559 shlibpath_overrides_runpath=yes
9560 ;;
9561
9562 openbsd*)
9563 version_type=sunos
9564 sys_lib_dlsearch_path_spec="/usr/lib"
9565 need_lib_prefix=no
9566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9567 case $host_os in
9568 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9569 *) need_version=no ;;
9570 esac
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9575 case $host_os in
9576 openbsd2.[89] | openbsd2.[89].*)
9577 shlibpath_overrides_runpath=no
9578 ;;
9579 *)
9580 shlibpath_overrides_runpath=yes
9581 ;;
9582 esac
9583 else
9584 shlibpath_overrides_runpath=yes
9585 fi
9586 ;;
9587
9588 os2*)
9589 libname_spec='$name'
9590 shrext_cmds=".dll"
9591 need_lib_prefix=no
9592 library_names_spec='$libname${shared_ext} $libname.a'
9593 dynamic_linker='OS/2 ld.exe'
9594 shlibpath_var=LIBPATH
9595 ;;
9596
9597 osf3* | osf4* | osf5*)
9598 version_type=osf
9599 need_lib_prefix=no
9600 need_version=no
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9606 ;;
9607
9608 rdos*)
9609 dynamic_linker=no
9610 ;;
9611
9612 solaris*)
9613 version_type=linux
9614 need_lib_prefix=no
9615 need_version=no
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617 soname_spec='${libname}${release}${shared_ext}$major'
9618 shlibpath_var=LD_LIBRARY_PATH
9619 shlibpath_overrides_runpath=yes
9620 hardcode_into_libs=yes
9621 # ldd complains unless libraries are executable
9622 postinstall_cmds='chmod +x $lib'
9623 ;;
9624
9625 sunos4*)
9626 version_type=sunos
9627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9628 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9629 shlibpath_var=LD_LIBRARY_PATH
9630 shlibpath_overrides_runpath=yes
9631 if test "$with_gnu_ld" = yes; then
9632 need_lib_prefix=no
9633 fi
9634 need_version=yes
9635 ;;
9636
9637 sysv4 | sysv4.3*)
9638 version_type=linux
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640 soname_spec='${libname}${release}${shared_ext}$major'
9641 shlibpath_var=LD_LIBRARY_PATH
9642 case $host_vendor in
9643 sni)
9644 shlibpath_overrides_runpath=no
9645 need_lib_prefix=no
9646 export_dynamic_flag_spec='${wl}-Blargedynsym'
9647 runpath_var=LD_RUN_PATH
9648 ;;
9649 siemens)
9650 need_lib_prefix=no
9651 ;;
9652 motorola)
9653 need_lib_prefix=no
9654 need_version=no
9655 shlibpath_overrides_runpath=no
9656 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9657 ;;
9658 esac
9659 ;;
9660
9661 sysv4*MP*)
9662 if test -d /usr/nec ;then
9663 version_type=linux
9664 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9665 soname_spec='$libname${shared_ext}.$major'
9666 shlibpath_var=LD_LIBRARY_PATH
9667 fi
9668 ;;
9669
9670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9671 version_type=freebsd-elf
9672 need_lib_prefix=no
9673 need_version=no
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9675 soname_spec='${libname}${release}${shared_ext}$major'
9676 shlibpath_var=LD_LIBRARY_PATH
9677 hardcode_into_libs=yes
9678 if test "$with_gnu_ld" = yes; then
9679 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9680 shlibpath_overrides_runpath=no
9681 else
9682 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9683 shlibpath_overrides_runpath=yes
9684 case $host_os in
9685 sco3.2v5*)
9686 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9687 ;;
9688 esac
9689 fi
9690 sys_lib_dlsearch_path_spec='/usr/lib'
9691 ;;
9692
9693 uts4*)
9694 version_type=linux
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9696 soname_spec='${libname}${release}${shared_ext}$major'
9697 shlibpath_var=LD_LIBRARY_PATH
9698 ;;
9699
9700 *)
9701 dynamic_linker=no
9702 ;;
9703 esac
9704 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9705 echo "${ECHO_T}$dynamic_linker" >&6; }
9706 test "$dynamic_linker" = no && can_build_shared=no
9707
9708 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9712 fi
9713
9714 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9715 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9719 fi
9720
9721 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9722
9723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9724 if test "$GCC" = yes; then
9725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9726 fi
9727
9728 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9729 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9730 hardcode_action=
9731 if test -n "$hardcode_libdir_flag_spec" || \
9732 test -n "$runpath_var" || \
9733 test "X$hardcode_automatic" = "Xyes" ; then
9734
9735 # We can hardcode non-existant directories.
9736 if test "$hardcode_direct" != no &&
9737 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9738 # have to relink, otherwise we might link with an installed library
9739 # when we should be linking with a yet-to-be-installed one
9740 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9741 test "$hardcode_minus_L" != no; then
9742 # Linking always hardcodes the temporary library directory.
9743 hardcode_action=relink
9744 else
9745 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9746 hardcode_action=immediate
9747 fi
9748 else
9749 # We cannot hardcode anything, or else we can only hardcode existing
9750 # directories.
9751 hardcode_action=unsupported
9752 fi
9753 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9754 echo "${ECHO_T}$hardcode_action" >&6; }
9755
9756 if test "$hardcode_action" = relink; then
9757 # Fast installation is not supported
9758 enable_fast_install=no
9759 elif test "$shlibpath_overrides_runpath" = yes ||
9760 test "$enable_shared" = no; then
9761 # Fast installation is not necessary
9762 enable_fast_install=needless
9763 fi
9764
9765 striplib=
9766 old_striplib=
9767 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9768 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9769 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9770 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9771 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9772 { echo "$as_me:$LINENO: result: yes" >&5
9773 echo "${ECHO_T}yes" >&6; }
9774 else
9775 # FIXME - insert some real tests, host_os isn't really good enough
9776 case $host_os in
9777 darwin*)
9778 if test -n "$STRIP" ; then
9779 striplib="$STRIP -x"
9780 old_striplib="$STRIP -S"
9781 { echo "$as_me:$LINENO: result: yes" >&5
9782 echo "${ECHO_T}yes" >&6; }
9783 else
9784 { echo "$as_me:$LINENO: result: no" >&5
9785 echo "${ECHO_T}no" >&6; }
9786 fi
9787 ;;
9788 *)
9789 { echo "$as_me:$LINENO: result: no" >&5
9790 echo "${ECHO_T}no" >&6; }
9791 ;;
9792 esac
9793 fi
9794
9795 if test "x$enable_dlopen" != xyes; then
9796 enable_dlopen=unknown
9797 enable_dlopen_self=unknown
9798 enable_dlopen_self_static=unknown
9799 else
9800 lt_cv_dlopen=no
9801 lt_cv_dlopen_libs=
9802
9803 case $host_os in
9804 beos*)
9805 lt_cv_dlopen="load_add_on"
9806 lt_cv_dlopen_libs=
9807 lt_cv_dlopen_self=yes
9808 ;;
9809
9810 mingw* | pw32*)
9811 lt_cv_dlopen="LoadLibrary"
9812 lt_cv_dlopen_libs=
9813 ;;
9814
9815 cygwin*)
9816 lt_cv_dlopen="dlopen"
9817 lt_cv_dlopen_libs=
9818 ;;
9819
9820 darwin*)
9821 # if libdl is installed we need to link against it
9822 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9823 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9824 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827 ac_check_lib_save_LIBS=$LIBS
9828 LIBS="-ldl $LIBS"
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835
9836 /* Override any GCC internal prototype to avoid an error.
9837 Use char because int might match the return type of a GCC
9838 builtin and then its argument prototype would still apply. */
9839 #ifdef __cplusplus
9840 extern "C"
9841 #endif
9842 char dlopen ();
9843 int
9844 main ()
9845 {
9846 return dlopen ();
9847 ;
9848 return 0;
9849 }
9850 _ACEOF
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (ac_try="$ac_link"
9853 case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9856 esac
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_link") 2>conftest.er1
9859 ac_status=$?
9860 grep -v '^ *+' conftest.er1 >conftest.err
9861 rm -f conftest.er1
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } && {
9865 test -z "$ac_c_werror_flag" ||
9866 test ! -s conftest.err
9867 } && test -s conftest$ac_exeext &&
9868 $as_test_x conftest$ac_exeext; then
9869 ac_cv_lib_dl_dlopen=yes
9870 else
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 ac_cv_lib_dl_dlopen=no
9875 fi
9876
9877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878 conftest$ac_exeext conftest.$ac_ext
9879 LIBS=$ac_check_lib_save_LIBS
9880 fi
9881 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9882 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9883 if test $ac_cv_lib_dl_dlopen = yes; then
9884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9885 else
9886
9887 lt_cv_dlopen="dyld"
9888 lt_cv_dlopen_libs=
9889 lt_cv_dlopen_self=yes
9890
9891 fi
9892
9893 ;;
9894
9895 *)
9896 { echo "$as_me:$LINENO: checking for shl_load" >&5
9897 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9898 if test "${ac_cv_func_shl_load+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9909 #define shl_load innocuous_shl_load
9910
9911 /* System header to define __stub macros and hopefully few prototypes,
9912 which can conflict with char shl_load (); below.
9913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9914 <limits.h> exists even on freestanding compilers. */
9915
9916 #ifdef __STDC__
9917 # include <limits.h>
9918 #else
9919 # include <assert.h>
9920 #endif
9921
9922 #undef shl_load
9923
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9927 #ifdef __cplusplus
9928 extern "C"
9929 #endif
9930 char shl_load ();
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined __stub_shl_load || defined __stub___shl_load
9935 choke me
9936 #endif
9937
9938 int
9939 main ()
9940 {
9941 return shl_load ();
9942 ;
9943 return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9948 case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_link") 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest$ac_exeext &&
9963 $as_test_x conftest$ac_exeext; then
9964 ac_cv_func_shl_load=yes
9965 else
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9968
9969 ac_cv_func_shl_load=no
9970 fi
9971
9972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9973 conftest$ac_exeext conftest.$ac_ext
9974 fi
9975 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9976 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9977 if test $ac_cv_func_shl_load = yes; then
9978 lt_cv_dlopen="shl_load"
9979 else
9980 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9981 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9982 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985 ac_check_lib_save_LIBS=$LIBS
9986 LIBS="-ldld $LIBS"
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
9997 #ifdef __cplusplus
9998 extern "C"
9999 #endif
10000 char shl_load ();
10001 int
10002 main ()
10003 {
10004 return shl_load ();
10005 ;
10006 return 0;
10007 }
10008 _ACEOF
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (ac_try="$ac_link"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10014 esac
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_link") 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } && {
10023 test -z "$ac_c_werror_flag" ||
10024 test ! -s conftest.err
10025 } && test -s conftest$ac_exeext &&
10026 $as_test_x conftest$ac_exeext; then
10027 ac_cv_lib_dld_shl_load=yes
10028 else
10029 echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.$ac_ext >&5
10031
10032 ac_cv_lib_dld_shl_load=no
10033 fi
10034
10035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10036 conftest$ac_exeext conftest.$ac_ext
10037 LIBS=$ac_check_lib_save_LIBS
10038 fi
10039 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10040 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10041 if test $ac_cv_lib_dld_shl_load = yes; then
10042 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10043 else
10044 { echo "$as_me:$LINENO: checking for dlopen" >&5
10045 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10046 if test "${ac_cv_func_dlopen+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 else
10049 cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h. */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10055 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10057 #define dlopen innocuous_dlopen
10058
10059 /* System header to define __stub macros and hopefully few prototypes,
10060 which can conflict with char dlopen (); below.
10061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10062 <limits.h> exists even on freestanding compilers. */
10063
10064 #ifdef __STDC__
10065 # include <limits.h>
10066 #else
10067 # include <assert.h>
10068 #endif
10069
10070 #undef dlopen
10071
10072 /* Override any GCC internal prototype to avoid an error.
10073 Use char because int might match the return type of a GCC
10074 builtin and then its argument prototype would still apply. */
10075 #ifdef __cplusplus
10076 extern "C"
10077 #endif
10078 char dlopen ();
10079 /* The GNU C library defines this for functions which it implements
10080 to always fail with ENOSYS. Some functions are actually named
10081 something starting with __ and the normal name is an alias. */
10082 #if defined __stub_dlopen || defined __stub___dlopen
10083 choke me
10084 #endif
10085
10086 int
10087 main ()
10088 {
10089 return dlopen ();
10090 ;
10091 return 0;
10092 }
10093 _ACEOF
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_link") 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest$ac_exeext &&
10111 $as_test_x conftest$ac_exeext; then
10112 ac_cv_func_dlopen=yes
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 ac_cv_func_dlopen=no
10118 fi
10119
10120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121 conftest$ac_exeext conftest.$ac_ext
10122 fi
10123 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10124 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10125 if test $ac_cv_func_dlopen = yes; then
10126 lt_cv_dlopen="dlopen"
10127 else
10128 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10129 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10130 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133 ac_check_lib_save_LIBS=$LIBS
10134 LIBS="-ldl $LIBS"
10135 cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h. */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141
10142 /* Override any GCC internal prototype to avoid an error.
10143 Use char because int might match the return type of a GCC
10144 builtin and then its argument prototype would still apply. */
10145 #ifdef __cplusplus
10146 extern "C"
10147 #endif
10148 char dlopen ();
10149 int
10150 main ()
10151 {
10152 return dlopen ();
10153 ;
10154 return 0;
10155 }
10156 _ACEOF
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (ac_try="$ac_link"
10159 case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162 esac
10163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_link") 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } && {
10171 test -z "$ac_c_werror_flag" ||
10172 test ! -s conftest.err
10173 } && test -s conftest$ac_exeext &&
10174 $as_test_x conftest$ac_exeext; then
10175 ac_cv_lib_dl_dlopen=yes
10176 else
10177 echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10179
10180 ac_cv_lib_dl_dlopen=no
10181 fi
10182
10183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LIBS=$ac_check_lib_save_LIBS
10186 fi
10187 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10188 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10189 if test $ac_cv_lib_dl_dlopen = yes; then
10190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10191 else
10192 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10193 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10194 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197 ac_check_lib_save_LIBS=$LIBS
10198 LIBS="-lsvld $LIBS"
10199 cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h. */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10205
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10209 #ifdef __cplusplus
10210 extern "C"
10211 #endif
10212 char dlopen ();
10213 int
10214 main ()
10215 {
10216 return dlopen ();
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 rm -f conftest.$ac_objext conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_link") 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest$ac_exeext &&
10238 $as_test_x conftest$ac_exeext; then
10239 ac_cv_lib_svld_dlopen=yes
10240 else
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 ac_cv_lib_svld_dlopen=no
10245 fi
10246
10247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10248 conftest$ac_exeext conftest.$ac_ext
10249 LIBS=$ac_check_lib_save_LIBS
10250 fi
10251 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10252 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10253 if test $ac_cv_lib_svld_dlopen = yes; then
10254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10255 else
10256 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10257 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10258 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 else
10261 ac_check_lib_save_LIBS=$LIBS
10262 LIBS="-ldld $LIBS"
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h. */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269
10270 /* Override any GCC internal prototype to avoid an error.
10271 Use char because int might match the return type of a GCC
10272 builtin and then its argument prototype would still apply. */
10273 #ifdef __cplusplus
10274 extern "C"
10275 #endif
10276 char dld_link ();
10277 int
10278 main ()
10279 {
10280 return dld_link ();
10281 ;
10282 return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (ac_try="$ac_link"
10287 case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10290 esac
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_link") 2>conftest.er1
10293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } && {
10299 test -z "$ac_c_werror_flag" ||
10300 test ! -s conftest.err
10301 } && test -s conftest$ac_exeext &&
10302 $as_test_x conftest$ac_exeext; then
10303 ac_cv_lib_dld_dld_link=yes
10304 else
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 ac_cv_lib_dld_dld_link=no
10309 fi
10310
10311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10312 conftest$ac_exeext conftest.$ac_ext
10313 LIBS=$ac_check_lib_save_LIBS
10314 fi
10315 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10316 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10317 if test $ac_cv_lib_dld_dld_link = yes; then
10318 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10319 fi
10320
10321
10322 fi
10323
10324
10325 fi
10326
10327
10328 fi
10329
10330
10331 fi
10332
10333
10334 fi
10335
10336 ;;
10337 esac
10338
10339 if test "x$lt_cv_dlopen" != xno; then
10340 enable_dlopen=yes
10341 else
10342 enable_dlopen=no
10343 fi
10344
10345 case $lt_cv_dlopen in
10346 dlopen)
10347 save_CPPFLAGS="$CPPFLAGS"
10348 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10349
10350 save_LDFLAGS="$LDFLAGS"
10351 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10352
10353 save_LIBS="$LIBS"
10354 LIBS="$lt_cv_dlopen_libs $LIBS"
10355
10356 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10357 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10358 if test "${lt_cv_dlopen_self+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361 if test "$cross_compiling" = yes; then :
10362 lt_cv_dlopen_self=cross
10363 else
10364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10365 lt_status=$lt_dlunknown
10366 cat > conftest.$ac_ext <<EOF
10367 #line 10368 "configure"
10368 #include "confdefs.h"
10369
10370 #if HAVE_DLFCN_H
10371 #include <dlfcn.h>
10372 #endif
10373
10374 #include <stdio.h>
10375
10376 #ifdef RTLD_GLOBAL
10377 # define LT_DLGLOBAL RTLD_GLOBAL
10378 #else
10379 # ifdef DL_GLOBAL
10380 # define LT_DLGLOBAL DL_GLOBAL
10381 # else
10382 # define LT_DLGLOBAL 0
10383 # endif
10384 #endif
10385
10386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10387 find out it does not work in some platform. */
10388 #ifndef LT_DLLAZY_OR_NOW
10389 # ifdef RTLD_LAZY
10390 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10391 # else
10392 # ifdef DL_LAZY
10393 # define LT_DLLAZY_OR_NOW DL_LAZY
10394 # else
10395 # ifdef RTLD_NOW
10396 # define LT_DLLAZY_OR_NOW RTLD_NOW
10397 # else
10398 # ifdef DL_NOW
10399 # define LT_DLLAZY_OR_NOW DL_NOW
10400 # else
10401 # define LT_DLLAZY_OR_NOW 0
10402 # endif
10403 # endif
10404 # endif
10405 # endif
10406 #endif
10407
10408 #ifdef __cplusplus
10409 extern "C" void exit (int);
10410 #endif
10411
10412 void fnord() { int i=42;}
10413 int main ()
10414 {
10415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10416 int status = $lt_dlunknown;
10417
10418 if (self)
10419 {
10420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10422 /* dlclose (self); */
10423 }
10424 else
10425 puts (dlerror ());
10426
10427 exit (status);
10428 }
10429 EOF
10430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10431 (eval $ac_link) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10435 (./conftest; exit; ) >&5 2>/dev/null
10436 lt_status=$?
10437 case x$lt_status in
10438 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10439 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10440 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10441 esac
10442 else :
10443 # compilation failed
10444 lt_cv_dlopen_self=no
10445 fi
10446 fi
10447 rm -fr conftest*
10448
10449
10450 fi
10451 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10452 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10453
10454 if test "x$lt_cv_dlopen_self" = xyes; then
10455 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10456 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10457 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10458 if test "${lt_cv_dlopen_self_static+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461 if test "$cross_compiling" = yes; then :
10462 lt_cv_dlopen_self_static=cross
10463 else
10464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10465 lt_status=$lt_dlunknown
10466 cat > conftest.$ac_ext <<EOF
10467 #line 10468 "configure"
10468 #include "confdefs.h"
10469
10470 #if HAVE_DLFCN_H
10471 #include <dlfcn.h>
10472 #endif
10473
10474 #include <stdio.h>
10475
10476 #ifdef RTLD_GLOBAL
10477 # define LT_DLGLOBAL RTLD_GLOBAL
10478 #else
10479 # ifdef DL_GLOBAL
10480 # define LT_DLGLOBAL DL_GLOBAL
10481 # else
10482 # define LT_DLGLOBAL 0
10483 # endif
10484 #endif
10485
10486 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10487 find out it does not work in some platform. */
10488 #ifndef LT_DLLAZY_OR_NOW
10489 # ifdef RTLD_LAZY
10490 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10491 # else
10492 # ifdef DL_LAZY
10493 # define LT_DLLAZY_OR_NOW DL_LAZY
10494 # else
10495 # ifdef RTLD_NOW
10496 # define LT_DLLAZY_OR_NOW RTLD_NOW
10497 # else
10498 # ifdef DL_NOW
10499 # define LT_DLLAZY_OR_NOW DL_NOW
10500 # else
10501 # define LT_DLLAZY_OR_NOW 0
10502 # endif
10503 # endif
10504 # endif
10505 # endif
10506 #endif
10507
10508 #ifdef __cplusplus
10509 extern "C" void exit (int);
10510 #endif
10511
10512 void fnord() { int i=42;}
10513 int main ()
10514 {
10515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10516 int status = $lt_dlunknown;
10517
10518 if (self)
10519 {
10520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10521 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10522 /* dlclose (self); */
10523 }
10524 else
10525 puts (dlerror ());
10526
10527 exit (status);
10528 }
10529 EOF
10530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531 (eval $ac_link) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10535 (./conftest; exit; ) >&5 2>/dev/null
10536 lt_status=$?
10537 case x$lt_status in
10538 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10539 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10540 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10541 esac
10542 else :
10543 # compilation failed
10544 lt_cv_dlopen_self_static=no
10545 fi
10546 fi
10547 rm -fr conftest*
10548
10549
10550 fi
10551 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10552 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10553 fi
10554
10555 CPPFLAGS="$save_CPPFLAGS"
10556 LDFLAGS="$save_LDFLAGS"
10557 LIBS="$save_LIBS"
10558 ;;
10559 esac
10560
10561 case $lt_cv_dlopen_self in
10562 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10563 *) enable_dlopen_self=unknown ;;
10564 esac
10565
10566 case $lt_cv_dlopen_self_static in
10567 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10568 *) enable_dlopen_self_static=unknown ;;
10569 esac
10570 fi
10571
10572
10573 # Report which library types will actually be built
10574 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10575 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10576 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10577 echo "${ECHO_T}$can_build_shared" >&6; }
10578
10579 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10580 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10581 test "$can_build_shared" = "no" && enable_shared=no
10582
10583 # On AIX, shared libraries and static libraries use the same namespace, and
10584 # are all built from PIC.
10585 case $host_os in
10586 aix3*)
10587 test "$enable_shared" = yes && enable_static=no
10588 if test -n "$RANLIB"; then
10589 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10590 postinstall_cmds='$RANLIB $lib'
10591 fi
10592 ;;
10593
10594 aix[4-9]*)
10595 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10596 test "$enable_shared" = yes && enable_static=no
10597 fi
10598 ;;
10599 esac
10600 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10601 echo "${ECHO_T}$enable_shared" >&6; }
10602
10603 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10604 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10605 # Make sure either enable_shared or enable_static is yes.
10606 test "$enable_shared" = yes || enable_static=yes
10607 { echo "$as_me:$LINENO: result: $enable_static" >&5
10608 echo "${ECHO_T}$enable_static" >&6; }
10609
10610 # The else clause should only fire when bootstrapping the
10611 # libtool distribution, otherwise you forgot to ship ltmain.sh
10612 # with your package, and you will get complaints that there are
10613 # no rules to generate ltmain.sh.
10614 if test -f "$ltmain"; then
10615 # See if we are running on zsh, and set the options which allow our commands through
10616 # without removal of \ escapes.
10617 if test -n "${ZSH_VERSION+set}" ; then
10618 setopt NO_GLOB_SUBST
10619 fi
10620 # Now quote all the things that may contain metacharacters while being
10621 # careful not to overquote the AC_SUBSTed values. We take copies of the
10622 # variables and quote the copies for generation of the libtool script.
10623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10624 SED SHELL STRIP \
10625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10627 deplibs_check_method reload_flag reload_cmds need_locks \
10628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10629 lt_cv_sys_global_symbol_to_c_name_address \
10630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10631 old_postinstall_cmds old_postuninstall_cmds \
10632 compiler \
10633 CC \
10634 LD \
10635 lt_prog_compiler_wl \
10636 lt_prog_compiler_pic \
10637 lt_prog_compiler_static \
10638 lt_prog_compiler_no_builtin_flag \
10639 export_dynamic_flag_spec \
10640 thread_safe_flag_spec \
10641 whole_archive_flag_spec \
10642 enable_shared_with_static_runtimes \
10643 old_archive_cmds \
10644 old_archive_from_new_cmds \
10645 predep_objects \
10646 postdep_objects \
10647 predeps \
10648 postdeps \
10649 compiler_lib_search_path \
10650 compiler_lib_search_dirs \
10651 archive_cmds \
10652 archive_expsym_cmds \
10653 postinstall_cmds \
10654 postuninstall_cmds \
10655 old_archive_from_expsyms_cmds \
10656 allow_undefined_flag \
10657 no_undefined_flag \
10658 export_symbols_cmds \
10659 hardcode_libdir_flag_spec \
10660 hardcode_libdir_flag_spec_ld \
10661 hardcode_libdir_separator \
10662 hardcode_automatic \
10663 module_cmds \
10664 module_expsym_cmds \
10665 lt_cv_prog_compiler_c_o \
10666 fix_srcfile_path \
10667 exclude_expsyms \
10668 include_expsyms; do
10669
10670 case $var in
10671 old_archive_cmds | \
10672 old_archive_from_new_cmds | \
10673 archive_cmds | \
10674 archive_expsym_cmds | \
10675 module_cmds | \
10676 module_expsym_cmds | \
10677 old_archive_from_expsyms_cmds | \
10678 export_symbols_cmds | \
10679 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10680 postinstall_cmds | postuninstall_cmds | \
10681 old_postinstall_cmds | old_postuninstall_cmds | \
10682 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10683 # Double-quote double-evaled strings.
10684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10685 ;;
10686 *)
10687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10688 ;;
10689 esac
10690 done
10691
10692 case $lt_echo in
10693 *'\$0 --fallback-echo"')
10694 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10695 ;;
10696 esac
10697
10698 cfgfile="${ofile}T"
10699 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10700 $rm -f "$cfgfile"
10701 { echo "$as_me:$LINENO: creating $ofile" >&5
10702 echo "$as_me: creating $ofile" >&6;}
10703
10704 cat <<__EOF__ >> "$cfgfile"
10705 #! $SHELL
10706
10707 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10708 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10709 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10710 #
10711 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10712 # Free Software Foundation, Inc.
10713 #
10714 # This file is part of GNU Libtool:
10715 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10716 #
10717 # This program is free software; you can redistribute it and/or modify
10718 # it under the terms of the GNU General Public License as published by
10719 # the Free Software Foundation; either version 2 of the License, or
10720 # (at your option) any later version.
10721 #
10722 # This program is distributed in the hope that it will be useful, but
10723 # WITHOUT ANY WARRANTY; without even the implied warranty of
10724 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10725 # General Public License for more details.
10726 #
10727 # You should have received a copy of the GNU General Public License
10728 # along with this program; if not, write to the Free Software
10729 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10730 #
10731 # As a special exception to the GNU General Public License, if you
10732 # distribute this file as part of a program that contains a
10733 # configuration script generated by Autoconf, you may include it under
10734 # the same distribution terms that you use for the rest of that program.
10735
10736 # A sed program that does not truncate output.
10737 SED=$lt_SED
10738
10739 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10740 Xsed="$SED -e 1s/^X//"
10741
10742 # The HP-UX ksh and POSIX shell print the target directory to stdout
10743 # if CDPATH is set.
10744 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10745
10746 # The names of the tagged configurations supported by this script.
10747 available_tags=
10748
10749 # ### BEGIN LIBTOOL CONFIG
10750
10751 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10752
10753 # Shell to use when invoking shell scripts.
10754 SHELL=$lt_SHELL
10755
10756 # Whether or not to build shared libraries.
10757 build_libtool_libs=$enable_shared
10758
10759 # Whether or not to build static libraries.
10760 build_old_libs=$enable_static
10761
10762 # Whether or not to add -lc for building shared libraries.
10763 build_libtool_need_lc=$archive_cmds_need_lc
10764
10765 # Whether or not to disallow shared libs when runtime libs are static
10766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10767
10768 # Whether or not to optimize for fast installation.
10769 fast_install=$enable_fast_install
10770
10771 # The host system.
10772 host_alias=$host_alias
10773 host=$host
10774 host_os=$host_os
10775
10776 # The build system.
10777 build_alias=$build_alias
10778 build=$build
10779 build_os=$build_os
10780
10781 # An echo program that does not interpret backslashes.
10782 echo=$lt_echo
10783
10784 # The archiver.
10785 AR=$lt_AR
10786 AR_FLAGS=$lt_AR_FLAGS
10787
10788 # A C compiler.
10789 LTCC=$lt_LTCC
10790
10791 # LTCC compiler flags.
10792 LTCFLAGS=$lt_LTCFLAGS
10793
10794 # A language-specific compiler.
10795 CC=$lt_compiler
10796
10797 # Is the compiler the GNU C compiler?
10798 with_gcc=$GCC
10799
10800 # An ERE matcher.
10801 EGREP=$lt_EGREP
10802
10803 # The linker used to build libraries.
10804 LD=$lt_LD
10805
10806 # Whether we need hard or soft links.
10807 LN_S=$lt_LN_S
10808
10809 # A BSD-compatible nm program.
10810 NM=$lt_NM
10811
10812 # A symbol stripping program
10813 STRIP=$lt_STRIP
10814
10815 # Used to examine libraries when file_magic_cmd begins "file"
10816 MAGIC_CMD=$MAGIC_CMD
10817
10818 # Used on cygwin: DLL creation program.
10819 DLLTOOL="$DLLTOOL"
10820
10821 # Used on cygwin: object dumper.
10822 OBJDUMP="$OBJDUMP"
10823
10824 # Used on cygwin: assembler.
10825 AS="$AS"
10826
10827 # The name of the directory that contains temporary libtool files.
10828 objdir=$objdir
10829
10830 # How to create reloadable object files.
10831 reload_flag=$lt_reload_flag
10832 reload_cmds=$lt_reload_cmds
10833
10834 # How to pass a linker flag through the compiler.
10835 wl=$lt_lt_prog_compiler_wl
10836
10837 # Object file suffix (normally "o").
10838 objext="$ac_objext"
10839
10840 # Old archive suffix (normally "a").
10841 libext="$libext"
10842
10843 # Shared library suffix (normally ".so").
10844 shrext_cmds='$shrext_cmds'
10845
10846 # Executable file suffix (normally "").
10847 exeext="$exeext"
10848
10849 # Additional compiler flags for building library objects.
10850 pic_flag=$lt_lt_prog_compiler_pic
10851 pic_mode=$pic_mode
10852
10853 # What is the maximum length of a command?
10854 max_cmd_len=$lt_cv_sys_max_cmd_len
10855
10856 # Does compiler simultaneously support -c and -o options?
10857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10858
10859 # Must we lock files when doing compilation?
10860 need_locks=$lt_need_locks
10861
10862 # Do we need the lib prefix for modules?
10863 need_lib_prefix=$need_lib_prefix
10864
10865 # Do we need a version for libraries?
10866 need_version=$need_version
10867
10868 # Whether dlopen is supported.
10869 dlopen_support=$enable_dlopen
10870
10871 # Whether dlopen of programs is supported.
10872 dlopen_self=$enable_dlopen_self
10873
10874 # Whether dlopen of statically linked programs is supported.
10875 dlopen_self_static=$enable_dlopen_self_static
10876
10877 # Compiler flag to prevent dynamic linking.
10878 link_static_flag=$lt_lt_prog_compiler_static
10879
10880 # Compiler flag to turn off builtin functions.
10881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10882
10883 # Compiler flag to allow reflexive dlopens.
10884 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10885
10886 # Compiler flag to generate shared objects directly from archives.
10887 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10888
10889 # Compiler flag to generate thread-safe objects.
10890 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10891
10892 # Library versioning type.
10893 version_type=$version_type
10894
10895 # Format of library name prefix.
10896 libname_spec=$lt_libname_spec
10897
10898 # List of archive names. First name is the real one, the rest are links.
10899 # The last name is the one that the linker finds with -lNAME.
10900 library_names_spec=$lt_library_names_spec
10901
10902 # The coded name of the library, if different from the real name.
10903 soname_spec=$lt_soname_spec
10904
10905 # Commands used to build and install an old-style archive.
10906 RANLIB=$lt_RANLIB
10907 old_archive_cmds=$lt_old_archive_cmds
10908 old_postinstall_cmds=$lt_old_postinstall_cmds
10909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10910
10911 # Create an old-style archive from a shared archive.
10912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10913
10914 # Create a temporary old-style archive to link instead of a shared archive.
10915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10916
10917 # Commands used to build and install a shared archive.
10918 archive_cmds=$lt_archive_cmds
10919 archive_expsym_cmds=$lt_archive_expsym_cmds
10920 postinstall_cmds=$lt_postinstall_cmds
10921 postuninstall_cmds=$lt_postuninstall_cmds
10922
10923 # Commands used to build a loadable module (assumed same as above if empty)
10924 module_cmds=$lt_module_cmds
10925 module_expsym_cmds=$lt_module_expsym_cmds
10926
10927 # Commands to strip libraries.
10928 old_striplib=$lt_old_striplib
10929 striplib=$lt_striplib
10930
10931 # Dependencies to place before the objects being linked to create a
10932 # shared library.
10933 predep_objects=$lt_predep_objects
10934
10935 # Dependencies to place after the objects being linked to create a
10936 # shared library.
10937 postdep_objects=$lt_postdep_objects
10938
10939 # Dependencies to place before the objects being linked to create a
10940 # shared library.
10941 predeps=$lt_predeps
10942
10943 # Dependencies to place after the objects being linked to create a
10944 # shared library.
10945 postdeps=$lt_postdeps
10946
10947 # The directories searched by this compiler when creating a shared
10948 # library
10949 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10950
10951 # The library search path used internally by the compiler when linking
10952 # a shared library.
10953 compiler_lib_search_path=$lt_compiler_lib_search_path
10954
10955 # Method to check whether dependent libraries are shared objects.
10956 deplibs_check_method=$lt_deplibs_check_method
10957
10958 # Command to use when deplibs_check_method == file_magic.
10959 file_magic_cmd=$lt_file_magic_cmd
10960
10961 # Flag that allows shared libraries with undefined symbols to be built.
10962 allow_undefined_flag=$lt_allow_undefined_flag
10963
10964 # Flag that forces no undefined symbols.
10965 no_undefined_flag=$lt_no_undefined_flag
10966
10967 # Commands used to finish a libtool library installation in a directory.
10968 finish_cmds=$lt_finish_cmds
10969
10970 # Same as above, but a single script fragment to be evaled but not shown.
10971 finish_eval=$lt_finish_eval
10972
10973 # Take the output of nm and produce a listing of raw symbols and C names.
10974 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10975
10976 # Transform the output of nm in a proper C declaration
10977 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10978
10979 # Transform the output of nm in a C name address pair
10980 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10981
10982 # This is the shared library runtime path variable.
10983 runpath_var=$runpath_var
10984
10985 # This is the shared library path variable.
10986 shlibpath_var=$shlibpath_var
10987
10988 # Is shlibpath searched before the hard-coded library search path?
10989 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10990
10991 # How to hardcode a shared library path into an executable.
10992 hardcode_action=$hardcode_action
10993
10994 # Whether we should hardcode library paths into libraries.
10995 hardcode_into_libs=$hardcode_into_libs
10996
10997 # Flag to hardcode \$libdir into a binary during linking.
10998 # This must work even if \$libdir does not exist.
10999 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11000
11001 # If ld is used when linking, flag to hardcode \$libdir into
11002 # a binary during linking. This must work even if \$libdir does
11003 # not exist.
11004 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11005
11006 # Whether we need a single -rpath flag with a separated argument.
11007 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11008
11009 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11010 # resulting binary.
11011 hardcode_direct=$hardcode_direct
11012
11013 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11014 # resulting binary.
11015 hardcode_minus_L=$hardcode_minus_L
11016
11017 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11018 # the resulting binary.
11019 hardcode_shlibpath_var=$hardcode_shlibpath_var
11020
11021 # Set to yes if building a shared library automatically hardcodes DIR into the library
11022 # and all subsequent libraries and executables linked against it.
11023 hardcode_automatic=$hardcode_automatic
11024
11025 # Variables whose values should be saved in libtool wrapper scripts and
11026 # restored at relink time.
11027 variables_saved_for_relink="$variables_saved_for_relink"
11028
11029 # Whether libtool must link a program against all its dependency libraries.
11030 link_all_deplibs=$link_all_deplibs
11031
11032 # Compile-time system search path for libraries
11033 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11034
11035 # Run-time system search path for libraries
11036 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11037
11038 # Fix the shell variable \$srcfile for the compiler.
11039 fix_srcfile_path=$lt_fix_srcfile_path
11040
11041 # Set to yes if exported symbols are required.
11042 always_export_symbols=$always_export_symbols
11043
11044 # The commands to list exported symbols.
11045 export_symbols_cmds=$lt_export_symbols_cmds
11046
11047 # The commands to extract the exported symbol list from a shared archive.
11048 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11049
11050 # Symbols that should not be listed in the preloaded symbols.
11051 exclude_expsyms=$lt_exclude_expsyms
11052
11053 # Symbols that must always be exported.
11054 include_expsyms=$lt_include_expsyms
11055
11056 # ### END LIBTOOL CONFIG
11057
11058 __EOF__
11059
11060
11061 case $host_os in
11062 aix3*)
11063 cat <<\EOF >> "$cfgfile"
11064
11065 # AIX sometimes has problems with the GCC collect2 program. For some
11066 # reason, if we set the COLLECT_NAMES environment variable, the problems
11067 # vanish in a puff of smoke.
11068 if test "X${COLLECT_NAMES+set}" != Xset; then
11069 COLLECT_NAMES=
11070 export COLLECT_NAMES
11071 fi
11072 EOF
11073 ;;
11074 esac
11075
11076 # We use sed instead of cat because bash on DJGPP gets confused if
11077 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11078 # text mode, it properly converts lines to CR/LF. This bash problem
11079 # is reportedly fixed, but why not run on old versions too?
11080 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11081
11082 mv -f "$cfgfile" "$ofile" || \
11083 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11084 chmod +x "$ofile"
11085
11086 else
11087 # If there is no Makefile yet, we rely on a make rule to execute
11088 # `config.status --recheck' to rerun these tests and create the
11089 # libtool script then.
11090 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11091 if test -f "$ltmain_in"; then
11092 test -f Makefile && make "$ltmain"
11093 fi
11094 fi
11095
11096
11097 ac_ext=c
11098 ac_cpp='$CPP $CPPFLAGS'
11099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11102
11103 CC="$lt_save_CC"
11104
11105
11106 # Check whether --with-tags was given.
11107 if test "${with_tags+set}" = set; then
11108 withval=$with_tags; tagnames="$withval"
11109 fi
11110
11111
11112 if test -f "$ltmain" && test -n "$tagnames"; then
11113 if test ! -f "${ofile}"; then
11114 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11115 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11116 fi
11117
11118 if test -z "$LTCC"; then
11119 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11120 if test -z "$LTCC"; then
11121 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11122 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11123 else
11124 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11125 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11126 fi
11127 fi
11128 if test -z "$LTCFLAGS"; then
11129 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11130 fi
11131
11132 # Extract list of available tagged configurations in $ofile.
11133 # Note that this assumes the entire list is on one line.
11134 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11135
11136 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11137 for tagname in $tagnames; do
11138 IFS="$lt_save_ifs"
11139 # Check whether tagname contains only valid characters
11140 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11141 "") ;;
11142 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11143 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11144 { (exit 1); exit 1; }; }
11145 ;;
11146 esac
11147
11148 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11149 then
11150 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11151 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11152 { (exit 1); exit 1; }; }
11153 fi
11154
11155 # Update the list of available tags.
11156 if test -n "$tagname"; then
11157 echo appending configuration tag \"$tagname\" to $ofile
11158
11159 case $tagname in
11160 CXX)
11161 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11162 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11163 (test "X$CXX" != "Xg++"))) ; then
11164 ac_ext=cpp
11165 ac_cpp='$CXXCPP $CPPFLAGS'
11166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11169
11170
11171
11172
11173 archive_cmds_need_lc_CXX=no
11174 allow_undefined_flag_CXX=
11175 always_export_symbols_CXX=no
11176 archive_expsym_cmds_CXX=
11177 export_dynamic_flag_spec_CXX=
11178 hardcode_direct_CXX=no
11179 hardcode_libdir_flag_spec_CXX=
11180 hardcode_libdir_flag_spec_ld_CXX=
11181 hardcode_libdir_separator_CXX=
11182 hardcode_minus_L_CXX=no
11183 hardcode_shlibpath_var_CXX=unsupported
11184 hardcode_automatic_CXX=no
11185 module_cmds_CXX=
11186 module_expsym_cmds_CXX=
11187 link_all_deplibs_CXX=unknown
11188 old_archive_cmds_CXX=$old_archive_cmds
11189 no_undefined_flag_CXX=
11190 whole_archive_flag_spec_CXX=
11191 enable_shared_with_static_runtimes_CXX=no
11192
11193 # Dependencies to place before and after the object being linked:
11194 predep_objects_CXX=
11195 postdep_objects_CXX=
11196 predeps_CXX=
11197 postdeps_CXX=
11198 compiler_lib_search_path_CXX=
11199 compiler_lib_search_dirs_CXX=
11200
11201 # Source file extension for C++ test sources.
11202 ac_ext=cpp
11203
11204 # Object file extension for compiled C++ test sources.
11205 objext=o
11206 objext_CXX=$objext
11207
11208 # Code to be used in simple compile tests
11209 lt_simple_compile_test_code="int some_variable = 0;"
11210
11211 # Code to be used in simple link tests
11212 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11213
11214 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11215
11216 # If no C compiler was specified, use CC.
11217 LTCC=${LTCC-"$CC"}
11218
11219 # If no C compiler flags were specified, use CFLAGS.
11220 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11221
11222 # Allow CC to be a program name with arguments.
11223 compiler=$CC
11224
11225
11226 # save warnings/boilerplate of simple test code
11227 ac_outfile=conftest.$ac_objext
11228 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11229 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11230 _lt_compiler_boilerplate=`cat conftest.err`
11231 $rm conftest*
11232
11233 ac_outfile=conftest.$ac_objext
11234 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11235 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11236 _lt_linker_boilerplate=`cat conftest.err`
11237 $rm -r conftest*
11238
11239
11240 # Allow CC to be a program name with arguments.
11241 lt_save_CC=$CC
11242 lt_save_LD=$LD
11243 lt_save_GCC=$GCC
11244 GCC=$GXX
11245 lt_save_with_gnu_ld=$with_gnu_ld
11246 lt_save_path_LD=$lt_cv_path_LD
11247 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11248 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11249 else
11250 $as_unset lt_cv_prog_gnu_ld
11251 fi
11252 if test -n "${lt_cv_path_LDCXX+set}"; then
11253 lt_cv_path_LD=$lt_cv_path_LDCXX
11254 else
11255 $as_unset lt_cv_path_LD
11256 fi
11257 test -z "${LDCXX+set}" || LD=$LDCXX
11258 CC=${CXX-"c++"}
11259 compiler=$CC
11260 compiler_CXX=$CC
11261 for cc_temp in $compiler""; do
11262 case $cc_temp in
11263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11265 \-*) ;;
11266 *) break;;
11267 esac
11268 done
11269 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11270
11271
11272 # We don't want -fno-exception wen compiling C++ code, so set the
11273 # no_builtin_flag separately
11274 if test "$GXX" = yes; then
11275 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11276 else
11277 lt_prog_compiler_no_builtin_flag_CXX=
11278 fi
11279
11280 if test "$GXX" = yes; then
11281 # Set up default GNU C++ configuration
11282
11283
11284 # Check whether --with-gnu-ld was given.
11285 if test "${with_gnu_ld+set}" = set; then
11286 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11287 else
11288 with_gnu_ld=no
11289 fi
11290
11291 ac_prog=ld
11292 if test "$GCC" = yes; then
11293 # Check if gcc -print-prog-name=ld gives a path.
11294 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11295 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11296 case $host in
11297 *-*-mingw*)
11298 # gcc leaves a trailing carriage return which upsets mingw
11299 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11300 *)
11301 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11302 esac
11303 case $ac_prog in
11304 # Accept absolute paths.
11305 [\\/]* | ?:[\\/]*)
11306 re_direlt='/[^/][^/]*/\.\./'
11307 # Canonicalize the pathname of ld
11308 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11309 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11310 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11311 done
11312 test -z "$LD" && LD="$ac_prog"
11313 ;;
11314 "")
11315 # If it fails, then pretend we aren't using GCC.
11316 ac_prog=ld
11317 ;;
11318 *)
11319 # If it is relative, then search for the first ld in PATH.
11320 with_gnu_ld=unknown
11321 ;;
11322 esac
11323 elif test "$with_gnu_ld" = yes; then
11324 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11325 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11326 else
11327 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11328 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11329 fi
11330 if test "${lt_cv_path_LD+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333 if test -z "$LD"; then
11334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11335 for ac_dir in $PATH; do
11336 IFS="$lt_save_ifs"
11337 test -z "$ac_dir" && ac_dir=.
11338 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11339 lt_cv_path_LD="$ac_dir/$ac_prog"
11340 # Check to see if the program is GNU ld. I'd rather use --version,
11341 # but apparently some variants of GNU ld only accept -v.
11342 # Break only if it was the GNU/non-GNU ld that we prefer.
11343 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11344 *GNU* | *'with BFD'*)
11345 test "$with_gnu_ld" != no && break
11346 ;;
11347 *)
11348 test "$with_gnu_ld" != yes && break
11349 ;;
11350 esac
11351 fi
11352 done
11353 IFS="$lt_save_ifs"
11354 else
11355 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11356 fi
11357 fi
11358
11359 LD="$lt_cv_path_LD"
11360 if test -n "$LD"; then
11361 { echo "$as_me:$LINENO: result: $LD" >&5
11362 echo "${ECHO_T}$LD" >&6; }
11363 else
11364 { echo "$as_me:$LINENO: result: no" >&5
11365 echo "${ECHO_T}no" >&6; }
11366 fi
11367 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11368 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11369 { (exit 1); exit 1; }; }
11370 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11371 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11372 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11376 case `$LD -v 2>&1 </dev/null` in
11377 *GNU* | *'with BFD'*)
11378 lt_cv_prog_gnu_ld=yes
11379 ;;
11380 *)
11381 lt_cv_prog_gnu_ld=no
11382 ;;
11383 esac
11384 fi
11385 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11386 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11387 with_gnu_ld=$lt_cv_prog_gnu_ld
11388
11389
11390
11391 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11392 # archiving commands below assume that GNU ld is being used.
11393 if test "$with_gnu_ld" = yes; then
11394 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11395 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'
11396
11397 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11398 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11399
11400 # If archive_cmds runs LD, not CC, wlarc should be empty
11401 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11402 # investigate it a little bit more. (MM)
11403 wlarc='${wl}'
11404
11405 # ancient GNU ld didn't support --whole-archive et. al.
11406 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11407 grep 'no-whole-archive' > /dev/null; then
11408 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11409 else
11410 whole_archive_flag_spec_CXX=
11411 fi
11412 else
11413 with_gnu_ld=no
11414 wlarc=
11415
11416 # A generic and very simple default shared library creation
11417 # command for GNU C++ for the case where it uses the native
11418 # linker, instead of GNU ld. If possible, this setting should
11419 # overridden to take advantage of the native linker features on
11420 # the platform it is being used on.
11421 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11422 fi
11423
11424 # Commands to make compiler produce verbose output that lists
11425 # what "hidden" libraries, object files and flags are used when
11426 # linking a shared library.
11427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11428
11429 else
11430 GXX=no
11431 with_gnu_ld=no
11432 wlarc=
11433 fi
11434
11435 # PORTME: fill in a description of your system's C++ link characteristics
11436 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11437 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11438 ld_shlibs_CXX=yes
11439 case $host_os in
11440 aix3*)
11441 # FIXME: insert proper C++ library support
11442 ld_shlibs_CXX=no
11443 ;;
11444 aix[4-9]*)
11445 if test "$host_cpu" = ia64; then
11446 # On IA64, the linker does run time linking by default, so we don't
11447 # have to do anything special.
11448 aix_use_runtimelinking=no
11449 exp_sym_flag='-Bexport'
11450 no_entry_flag=""
11451 else
11452 aix_use_runtimelinking=no
11453
11454 # Test if we are trying to use run time linking or normal
11455 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11456 # need to do runtime linking.
11457 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11458 for ld_flag in $LDFLAGS; do
11459 case $ld_flag in
11460 *-brtl*)
11461 aix_use_runtimelinking=yes
11462 break
11463 ;;
11464 esac
11465 done
11466 ;;
11467 esac
11468
11469 exp_sym_flag='-bexport'
11470 no_entry_flag='-bnoentry'
11471 fi
11472
11473 # When large executables or shared objects are built, AIX ld can
11474 # have problems creating the table of contents. If linking a library
11475 # or program results in "error TOC overflow" add -mminimal-toc to
11476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11478
11479 archive_cmds_CXX=''
11480 hardcode_direct_CXX=yes
11481 hardcode_libdir_separator_CXX=':'
11482 link_all_deplibs_CXX=yes
11483
11484 if test "$GXX" = yes; then
11485 case $host_os in aix4.[012]|aix4.[012].*)
11486 # We only want to do this on AIX 4.2 and lower, the check
11487 # below for broken collect2 doesn't work under 4.3+
11488 collect2name=`${CC} -print-prog-name=collect2`
11489 if test -f "$collect2name" && \
11490 strings "$collect2name" | grep resolve_lib_name >/dev/null
11491 then
11492 # We have reworked collect2
11493 :
11494 else
11495 # We have old collect2
11496 hardcode_direct_CXX=unsupported
11497 # It fails to find uninstalled libraries when the uninstalled
11498 # path is not listed in the libpath. Setting hardcode_minus_L
11499 # to unsupported forces relinking
11500 hardcode_minus_L_CXX=yes
11501 hardcode_libdir_flag_spec_CXX='-L$libdir'
11502 hardcode_libdir_separator_CXX=
11503 fi
11504 ;;
11505 esac
11506 shared_flag='-shared'
11507 if test "$aix_use_runtimelinking" = yes; then
11508 shared_flag="$shared_flag "'${wl}-G'
11509 fi
11510 else
11511 # not using gcc
11512 if test "$host_cpu" = ia64; then
11513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11514 # chokes on -Wl,-G. The following line is correct:
11515 shared_flag='-G'
11516 else
11517 if test "$aix_use_runtimelinking" = yes; then
11518 shared_flag='${wl}-G'
11519 else
11520 shared_flag='${wl}-bM:SRE'
11521 fi
11522 fi
11523 fi
11524
11525 # It seems that -bexpall does not export symbols beginning with
11526 # underscore (_), so it is better to generate a list of symbols to export.
11527 always_export_symbols_CXX=yes
11528 if test "$aix_use_runtimelinking" = yes; then
11529 # Warning - without using the other runtime loading flags (-brtl),
11530 # -berok will link without error, but may produce a broken library.
11531 allow_undefined_flag_CXX='-berok'
11532 # Determine the default libpath from the value encoded in an empty executable.
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539
11540 int
11541 main ()
11542 {
11543
11544 ;
11545 return 0;
11546 }
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (ac_try="$ac_link"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_link") 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_cxx_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest$ac_exeext &&
11565 $as_test_x conftest$ac_exeext; then
11566
11567 lt_aix_libpath_sed='
11568 /Import File Strings/,/^$/ {
11569 /^0/ {
11570 s/^0 *\(.*\)$/\1/
11571 p
11572 }
11573 }'
11574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11575 # Check for a 64-bit object if we didn't find anything.
11576 if test -z "$aix_libpath"; then
11577 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11578 fi
11579 else
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583
11584 fi
11585
11586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11587 conftest$ac_exeext conftest.$ac_ext
11588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11589
11590 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11591
11592 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"
11593 else
11594 if test "$host_cpu" = ia64; then
11595 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11596 allow_undefined_flag_CXX="-z nodefs"
11597 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"
11598 else
11599 # Determine the default libpath from the value encoded in an empty executable.
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h. */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606
11607 int
11608 main ()
11609 {
11610
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (ac_try="$ac_link"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_cxx_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest$ac_exeext &&
11632 $as_test_x conftest$ac_exeext; then
11633
11634 lt_aix_libpath_sed='
11635 /Import File Strings/,/^$/ {
11636 /^0/ {
11637 s/^0 *\(.*\)$/\1/
11638 p
11639 }
11640 }'
11641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11642 # Check for a 64-bit object if we didn't find anything.
11643 if test -z "$aix_libpath"; then
11644 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11645 fi
11646 else
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11649
11650
11651 fi
11652
11653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11654 conftest$ac_exeext conftest.$ac_ext
11655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11656
11657 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11658 # Warning - without using the other run time loading flags,
11659 # -berok will link without error, but may produce a broken library.
11660 no_undefined_flag_CXX=' ${wl}-bernotok'
11661 allow_undefined_flag_CXX=' ${wl}-berok'
11662 # Exported symbols can be pulled into shared objects from archives
11663 whole_archive_flag_spec_CXX='$convenience'
11664 archive_cmds_need_lc_CXX=yes
11665 # This is similar to how AIX traditionally builds its shared libraries.
11666 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'
11667 fi
11668 fi
11669 ;;
11670
11671 beos*)
11672 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11673 allow_undefined_flag_CXX=unsupported
11674 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11675 # support --undefined. This deserves some investigation. FIXME
11676 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11677 else
11678 ld_shlibs_CXX=no
11679 fi
11680 ;;
11681
11682 chorus*)
11683 case $cc_basename in
11684 *)
11685 # FIXME: insert proper C++ library support
11686 ld_shlibs_CXX=no
11687 ;;
11688 esac
11689 ;;
11690
11691 cygwin* | mingw* | pw32*)
11692 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11693 # as there is no search path for DLLs.
11694 hardcode_libdir_flag_spec_CXX='-L$libdir'
11695 allow_undefined_flag_CXX=unsupported
11696 always_export_symbols_CXX=no
11697 enable_shared_with_static_runtimes_CXX=yes
11698
11699 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11700 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'
11701 # If the export-symbols file already is a .def file (1st line
11702 # is EXPORTS), use it as is; otherwise, prepend...
11703 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11704 cp $export_symbols $output_objdir/$soname.def;
11705 else
11706 echo EXPORTS > $output_objdir/$soname.def;
11707 cat $export_symbols >> $output_objdir/$soname.def;
11708 fi~
11709 $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'
11710 else
11711 ld_shlibs_CXX=no
11712 fi
11713 ;;
11714 darwin* | rhapsody*)
11715 archive_cmds_need_lc_CXX=no
11716 hardcode_direct_CXX=no
11717 hardcode_automatic_CXX=yes
11718 hardcode_shlibpath_var_CXX=unsupported
11719 whole_archive_flag_spec_CXX=''
11720 link_all_deplibs_CXX=yes
11721 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11722 if test "$GXX" = yes ; then
11723 output_verbose_link_cmd='echo'
11724 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}"
11725 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11726 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}"
11727 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}"
11728 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11729 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}"
11730 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}"
11731 fi
11732 else
11733 case $cc_basename in
11734 xlc*)
11735 output_verbose_link_cmd='echo'
11736 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'
11737 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11738 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11739 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}'
11740 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}'
11741 ;;
11742 *)
11743 ld_shlibs_CXX=no
11744 ;;
11745 esac
11746 fi
11747 ;;
11748
11749 dgux*)
11750 case $cc_basename in
11751 ec++*)
11752 # FIXME: insert proper C++ library support
11753 ld_shlibs_CXX=no
11754 ;;
11755 ghcx*)
11756 # Green Hills C++ Compiler
11757 # FIXME: insert proper C++ library support
11758 ld_shlibs_CXX=no
11759 ;;
11760 *)
11761 # FIXME: insert proper C++ library support
11762 ld_shlibs_CXX=no
11763 ;;
11764 esac
11765 ;;
11766 freebsd[12]*)
11767 # C++ shared libraries reported to be fairly broken before switch to ELF
11768 ld_shlibs_CXX=no
11769 ;;
11770 freebsd-elf*)
11771 archive_cmds_need_lc_CXX=no
11772 ;;
11773 freebsd* | dragonfly*)
11774 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11775 # conventions
11776 ld_shlibs_CXX=yes
11777 ;;
11778 gnu*)
11779 ;;
11780 hpux9*)
11781 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11782 hardcode_libdir_separator_CXX=:
11783 export_dynamic_flag_spec_CXX='${wl}-E'
11784 hardcode_direct_CXX=yes
11785 hardcode_minus_L_CXX=yes # Not in the search PATH,
11786 # but as the default
11787 # location of the library.
11788
11789 case $cc_basename in
11790 CC*)
11791 # FIXME: insert proper C++ library support
11792 ld_shlibs_CXX=no
11793 ;;
11794 aCC*)
11795 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'
11796 # Commands to make compiler produce verbose output that lists
11797 # what "hidden" libraries, object files and flags are used when
11798 # linking a shared library.
11799 #
11800 # There doesn't appear to be a way to prevent this compiler from
11801 # explicitly linking system object files so we need to strip them
11802 # from the output so that they don't get included in the library
11803 # dependencies.
11804 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'
11805 ;;
11806 *)
11807 if test "$GXX" = yes; then
11808 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'
11809 else
11810 # FIXME: insert proper C++ library support
11811 ld_shlibs_CXX=no
11812 fi
11813 ;;
11814 esac
11815 ;;
11816 hpux10*|hpux11*)
11817 if test $with_gnu_ld = no; then
11818 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11819 hardcode_libdir_separator_CXX=:
11820
11821 case $host_cpu in
11822 hppa*64*|ia64*) ;;
11823 *)
11824 export_dynamic_flag_spec_CXX='${wl}-E'
11825 ;;
11826 esac
11827 fi
11828 case $host_cpu in
11829 hppa*64*|ia64*)
11830 hardcode_direct_CXX=no
11831 hardcode_shlibpath_var_CXX=no
11832 ;;
11833 *)
11834 hardcode_direct_CXX=yes
11835 hardcode_minus_L_CXX=yes # Not in the search PATH,
11836 # but as the default
11837 # location of the library.
11838 ;;
11839 esac
11840
11841 case $cc_basename in
11842 CC*)
11843 # FIXME: insert proper C++ library support
11844 ld_shlibs_CXX=no
11845 ;;
11846 aCC*)
11847 case $host_cpu in
11848 hppa*64*)
11849 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11850 ;;
11851 ia64*)
11852 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11853 ;;
11854 *)
11855 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11856 ;;
11857 esac
11858 # Commands to make compiler produce verbose output that lists
11859 # what "hidden" libraries, object files and flags are used when
11860 # linking a shared library.
11861 #
11862 # There doesn't appear to be a way to prevent this compiler from
11863 # explicitly linking system object files so we need to strip them
11864 # from the output so that they don't get included in the library
11865 # dependencies.
11866 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'
11867 ;;
11868 *)
11869 if test "$GXX" = yes; then
11870 if test $with_gnu_ld = no; then
11871 case $host_cpu in
11872 hppa*64*)
11873 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11874 ;;
11875 ia64*)
11876 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11877 ;;
11878 *)
11879 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'
11880 ;;
11881 esac
11882 fi
11883 else
11884 # FIXME: insert proper C++ library support
11885 ld_shlibs_CXX=no
11886 fi
11887 ;;
11888 esac
11889 ;;
11890 interix[3-9]*)
11891 hardcode_direct_CXX=no
11892 hardcode_shlibpath_var_CXX=no
11893 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11894 export_dynamic_flag_spec_CXX='${wl}-E'
11895 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11896 # Instead, shared libraries are loaded at an image base (0x10000000 by
11897 # default) and relocated if they conflict, which is a slow very memory
11898 # consuming and fragmenting process. To avoid this, we pick a random,
11899 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11900 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11901 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'
11902 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'
11903 ;;
11904 irix5* | irix6*)
11905 case $cc_basename in
11906 CC*)
11907 # SGI C++
11908 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'
11909
11910 # Archives containing C++ object files must be created using
11911 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11912 # necessary to make sure instantiated templates are included
11913 # in the archive.
11914 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11915 ;;
11916 *)
11917 if test "$GXX" = yes; then
11918 if test "$with_gnu_ld" = no; then
11919 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'
11920 else
11921 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'
11922 fi
11923 fi
11924 link_all_deplibs_CXX=yes
11925 ;;
11926 esac
11927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11928 hardcode_libdir_separator_CXX=:
11929 ;;
11930 linux* | k*bsd*-gnu)
11931 case $cc_basename in
11932 KCC*)
11933 # Kuck and Associates, Inc. (KAI) C++ Compiler
11934
11935 # KCC will only create a shared library if the output file
11936 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11937 # to its proper name (with version) after linking.
11938 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'
11939 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'
11940 # Commands to make compiler produce verbose output that lists
11941 # what "hidden" libraries, object files and flags are used when
11942 # linking a shared library.
11943 #
11944 # There doesn't appear to be a way to prevent this compiler from
11945 # explicitly linking system object files so we need to strip them
11946 # from the output so that they don't get included in the library
11947 # dependencies.
11948 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'
11949
11950 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11952
11953 # Archives containing C++ object files must be created using
11954 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11955 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11956 ;;
11957 icpc*)
11958 # Intel C++
11959 with_gnu_ld=yes
11960 # version 8.0 and above of icpc choke on multiply defined symbols
11961 # if we add $predep_objects and $postdep_objects, however 7.1 and
11962 # earlier do not add the objects themselves.
11963 case `$CC -V 2>&1` in
11964 *"Version 7."*)
11965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11966 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'
11967 ;;
11968 *) # Version 8.0 or newer
11969 tmp_idyn=
11970 case $host_cpu in
11971 ia64*) tmp_idyn=' -i_dynamic';;
11972 esac
11973 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11974 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'
11975 ;;
11976 esac
11977 archive_cmds_need_lc_CXX=no
11978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11979 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11980 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11981 ;;
11982 pgCC* | pgcpp*)
11983 # Portland Group C++ compiler
11984 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11985 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'
11986
11987 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11988 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11989 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'
11990 ;;
11991 cxx*)
11992 # Compaq C++
11993 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11994 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'
11995
11996 runpath_var=LD_RUN_PATH
11997 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11998 hardcode_libdir_separator_CXX=:
11999
12000 # Commands to make compiler produce verbose output that lists
12001 # what "hidden" libraries, object files and flags are used when
12002 # linking a shared library.
12003 #
12004 # There doesn't appear to be a way to prevent this compiler from
12005 # explicitly linking system object files so we need to strip them
12006 # from the output so that they don't get included in the library
12007 # dependencies.
12008 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'
12009 ;;
12010 *)
12011 case `$CC -V 2>&1 | sed 5q` in
12012 *Sun\ C*)
12013 # Sun C++ 5.9
12014 no_undefined_flag_CXX=' -zdefs'
12015 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12016 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'
12017 hardcode_libdir_flag_spec_CXX='-R$libdir'
12018 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'
12019
12020 # Not sure whether something based on
12021 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12022 # would be better.
12023 output_verbose_link_cmd='echo'
12024
12025 # Archives containing C++ object files must be created using
12026 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12027 # necessary to make sure instantiated templates are included
12028 # in the archive.
12029 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12030 ;;
12031 esac
12032 ;;
12033 esac
12034 ;;
12035 lynxos*)
12036 # FIXME: insert proper C++ library support
12037 ld_shlibs_CXX=no
12038 ;;
12039 m88k*)
12040 # FIXME: insert proper C++ library support
12041 ld_shlibs_CXX=no
12042 ;;
12043 mvs*)
12044 case $cc_basename in
12045 cxx*)
12046 # FIXME: insert proper C++ library support
12047 ld_shlibs_CXX=no
12048 ;;
12049 *)
12050 # FIXME: insert proper C++ library support
12051 ld_shlibs_CXX=no
12052 ;;
12053 esac
12054 ;;
12055 netbsd* | netbsdelf*-gnu)
12056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12057 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12058 wlarc=
12059 hardcode_libdir_flag_spec_CXX='-R$libdir'
12060 hardcode_direct_CXX=yes
12061 hardcode_shlibpath_var_CXX=no
12062 fi
12063 # Workaround some broken pre-1.5 toolchains
12064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12065 ;;
12066 openbsd2*)
12067 # C++ shared libraries are fairly broken
12068 ld_shlibs_CXX=no
12069 ;;
12070 openbsd*)
12071 if test -f /usr/libexec/ld.so; then
12072 hardcode_direct_CXX=yes
12073 hardcode_shlibpath_var_CXX=no
12074 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12077 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12078 export_dynamic_flag_spec_CXX='${wl}-E'
12079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12080 fi
12081 output_verbose_link_cmd='echo'
12082 else
12083 ld_shlibs_CXX=no
12084 fi
12085 ;;
12086 osf3*)
12087 case $cc_basename in
12088 KCC*)
12089 # Kuck and Associates, Inc. (KAI) C++ Compiler
12090
12091 # KCC will only create a shared library if the output file
12092 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12093 # to its proper name (with version) after linking.
12094 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'
12095
12096 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12097 hardcode_libdir_separator_CXX=:
12098
12099 # Archives containing C++ object files must be created using
12100 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12101 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12102
12103 ;;
12104 RCC*)
12105 # Rational C++ 2.4.1
12106 # FIXME: insert proper C++ library support
12107 ld_shlibs_CXX=no
12108 ;;
12109 cxx*)
12110 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12111 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'
12112
12113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12114 hardcode_libdir_separator_CXX=:
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 #
12120 # There doesn't appear to be a way to prevent this compiler from
12121 # explicitly linking system object files so we need to strip them
12122 # from the output so that they don't get included in the library
12123 # dependencies.
12124 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'
12125 ;;
12126 *)
12127 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12128 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12129 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'
12130
12131 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12132 hardcode_libdir_separator_CXX=:
12133
12134 # Commands to make compiler produce verbose output that lists
12135 # what "hidden" libraries, object files and flags are used when
12136 # linking a shared library.
12137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12138
12139 else
12140 # FIXME: insert proper C++ library support
12141 ld_shlibs_CXX=no
12142 fi
12143 ;;
12144 esac
12145 ;;
12146 osf4* | osf5*)
12147 case $cc_basename in
12148 KCC*)
12149 # Kuck and Associates, Inc. (KAI) C++ Compiler
12150
12151 # KCC will only create a shared library if the output file
12152 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12153 # to its proper name (with version) after linking.
12154 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'
12155
12156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12157 hardcode_libdir_separator_CXX=:
12158
12159 # Archives containing C++ object files must be created using
12160 # the KAI C++ compiler.
12161 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12162 ;;
12163 RCC*)
12164 # Rational C++ 2.4.1
12165 # FIXME: insert proper C++ library support
12166 ld_shlibs_CXX=no
12167 ;;
12168 cxx*)
12169 allow_undefined_flag_CXX=' -expect_unresolved \*'
12170 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'
12171 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12172 echo "-hidden">> $lib.exp~
12173 $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~
12174 $rm $lib.exp'
12175
12176 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12177 hardcode_libdir_separator_CXX=:
12178
12179 # Commands to make compiler produce verbose output that lists
12180 # what "hidden" libraries, object files and flags are used when
12181 # linking a shared library.
12182 #
12183 # There doesn't appear to be a way to prevent this compiler from
12184 # explicitly linking system object files so we need to strip them
12185 # from the output so that they don't get included in the library
12186 # dependencies.
12187 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'
12188 ;;
12189 *)
12190 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12191 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12192 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'
12193
12194 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12195 hardcode_libdir_separator_CXX=:
12196
12197 # Commands to make compiler produce verbose output that lists
12198 # what "hidden" libraries, object files and flags are used when
12199 # linking a shared library.
12200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12201
12202 else
12203 # FIXME: insert proper C++ library support
12204 ld_shlibs_CXX=no
12205 fi
12206 ;;
12207 esac
12208 ;;
12209 psos*)
12210 # FIXME: insert proper C++ library support
12211 ld_shlibs_CXX=no
12212 ;;
12213 sunos4*)
12214 case $cc_basename in
12215 CC*)
12216 # Sun C++ 4.x
12217 # FIXME: insert proper C++ library support
12218 ld_shlibs_CXX=no
12219 ;;
12220 lcc*)
12221 # Lucid
12222 # FIXME: insert proper C++ library support
12223 ld_shlibs_CXX=no
12224 ;;
12225 *)
12226 # FIXME: insert proper C++ library support
12227 ld_shlibs_CXX=no
12228 ;;
12229 esac
12230 ;;
12231 solaris*)
12232 case $cc_basename in
12233 CC*)
12234 # Sun C++ 4.2, 5.x and Centerline C++
12235 archive_cmds_need_lc_CXX=yes
12236 no_undefined_flag_CXX=' -zdefs'
12237 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12238 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12239 $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'
12240
12241 hardcode_libdir_flag_spec_CXX='-R$libdir'
12242 hardcode_shlibpath_var_CXX=no
12243 case $host_os in
12244 solaris2.[0-5] | solaris2.[0-5].*) ;;
12245 *)
12246 # The compiler driver will combine and reorder linker options,
12247 # but understands `-z linker_flag'.
12248 # Supported since Solaris 2.6 (maybe 2.5.1?)
12249 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12250 ;;
12251 esac
12252 link_all_deplibs_CXX=yes
12253
12254 output_verbose_link_cmd='echo'
12255
12256 # Archives containing C++ object files must be created using
12257 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12258 # necessary to make sure instantiated templates are included
12259 # in the archive.
12260 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12261 ;;
12262 gcx*)
12263 # Green Hills C++ Compiler
12264 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12265
12266 # The C++ compiler must be used to create the archive.
12267 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12268 ;;
12269 *)
12270 # GNU C++ compiler with Solaris linker
12271 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12272 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12273 if $CC --version | grep -v '^2\.7' > /dev/null; then
12274 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12275 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12276 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12277
12278 # Commands to make compiler produce verbose output that lists
12279 # what "hidden" libraries, object files and flags are used when
12280 # linking a shared library.
12281 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12282 else
12283 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12284 # platform.
12285 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12286 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12287 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12288
12289 # Commands to make compiler produce verbose output that lists
12290 # what "hidden" libraries, object files and flags are used when
12291 # linking a shared library.
12292 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12293 fi
12294
12295 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12296 case $host_os in
12297 solaris2.[0-5] | solaris2.[0-5].*) ;;
12298 *)
12299 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12300 ;;
12301 esac
12302 fi
12303 ;;
12304 esac
12305 ;;
12306 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12307 no_undefined_flag_CXX='${wl}-z,text'
12308 archive_cmds_need_lc_CXX=no
12309 hardcode_shlibpath_var_CXX=no
12310 runpath_var='LD_RUN_PATH'
12311
12312 case $cc_basename in
12313 CC*)
12314 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12315 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12316 ;;
12317 *)
12318 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12319 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 ;;
12321 esac
12322 ;;
12323 sysv5* | sco3.2v5* | sco5v6*)
12324 # Note: We can NOT use -z defs as we might desire, because we do not
12325 # link with -lc, and that would cause any symbols used from libc to
12326 # always be unresolved, which means just about no library would
12327 # ever link correctly. If we're not using GNU ld we use -z text
12328 # though, which does catch some bad symbols but isn't as heavy-handed
12329 # as -z defs.
12330 # For security reasons, it is highly recommended that you always
12331 # use absolute paths for naming shared libraries, and exclude the
12332 # DT_RUNPATH tag from executables and libraries. But doing so
12333 # requires that you compile everything twice, which is a pain.
12334 # So that behaviour is only enabled if SCOABSPATH is set to a
12335 # non-empty value in the environment. Most likely only useful for
12336 # creating official distributions of packages.
12337 # This is a hack until libtool officially supports absolute path
12338 # names for shared libraries.
12339 no_undefined_flag_CXX='${wl}-z,text'
12340 allow_undefined_flag_CXX='${wl}-z,nodefs'
12341 archive_cmds_need_lc_CXX=no
12342 hardcode_shlibpath_var_CXX=no
12343 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12344 hardcode_libdir_separator_CXX=':'
12345 link_all_deplibs_CXX=yes
12346 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12347 runpath_var='LD_RUN_PATH'
12348
12349 case $cc_basename in
12350 CC*)
12351 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12352 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12353 ;;
12354 *)
12355 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12356 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12357 ;;
12358 esac
12359 ;;
12360 tandem*)
12361 case $cc_basename in
12362 NCC*)
12363 # NonStop-UX NCC 3.20
12364 # FIXME: insert proper C++ library support
12365 ld_shlibs_CXX=no
12366 ;;
12367 *)
12368 # FIXME: insert proper C++ library support
12369 ld_shlibs_CXX=no
12370 ;;
12371 esac
12372 ;;
12373 vxworks*)
12374 # FIXME: insert proper C++ library support
12375 ld_shlibs_CXX=no
12376 ;;
12377 *)
12378 # FIXME: insert proper C++ library support
12379 ld_shlibs_CXX=no
12380 ;;
12381 esac
12382 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12383 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12384 test "$ld_shlibs_CXX" = no && can_build_shared=no
12385
12386 GCC_CXX="$GXX"
12387 LD_CXX="$LD"
12388
12389 cat > conftest.$ac_ext <<EOF
12390 class Foo
12391 {
12392 public:
12393 Foo (void) { a = 0; }
12394 private:
12395 int a;
12396 };
12397 EOF
12398
12399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400 (eval $ac_compile) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; then
12404 # Parse the compiler output and extract the necessary
12405 # objects, libraries and library flags.
12406
12407 # Sentinel used to keep track of whether or not we are before
12408 # the conftest object file.
12409 pre_test_object_deps_done=no
12410
12411 # The `*' in the case matches for architectures that use `case' in
12412 # $output_verbose_cmd can trigger glob expansion during the loop
12413 # eval without this substitution.
12414 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12415
12416 for p in `eval $output_verbose_link_cmd`; do
12417 case $p in
12418
12419 -L* | -R* | -l*)
12420 # Some compilers place space between "-{L,R}" and the path.
12421 # Remove the space.
12422 if test $p = "-L" \
12423 || test $p = "-R"; then
12424 prev=$p
12425 continue
12426 else
12427 prev=
12428 fi
12429
12430 if test "$pre_test_object_deps_done" = no; then
12431 case $p in
12432 -L* | -R*)
12433 # Internal compiler library paths should come after those
12434 # provided the user. The postdeps already come after the
12435 # user supplied libs so there is no need to process them.
12436 if test -z "$compiler_lib_search_path_CXX"; then
12437 compiler_lib_search_path_CXX="${prev}${p}"
12438 else
12439 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12440 fi
12441 ;;
12442 # The "-l" case would never come before the object being
12443 # linked, so don't bother handling this case.
12444 esac
12445 else
12446 if test -z "$postdeps_CXX"; then
12447 postdeps_CXX="${prev}${p}"
12448 else
12449 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12450 fi
12451 fi
12452 ;;
12453
12454 *.$objext)
12455 # This assumes that the test object file only shows up
12456 # once in the compiler output.
12457 if test "$p" = "conftest.$objext"; then
12458 pre_test_object_deps_done=yes
12459 continue
12460 fi
12461
12462 if test "$pre_test_object_deps_done" = no; then
12463 if test -z "$predep_objects_CXX"; then
12464 predep_objects_CXX="$p"
12465 else
12466 predep_objects_CXX="$predep_objects_CXX $p"
12467 fi
12468 else
12469 if test -z "$postdep_objects_CXX"; then
12470 postdep_objects_CXX="$p"
12471 else
12472 postdep_objects_CXX="$postdep_objects_CXX $p"
12473 fi
12474 fi
12475 ;;
12476
12477 *) ;; # Ignore the rest.
12478
12479 esac
12480 done
12481
12482 # Clean up.
12483 rm -f a.out a.exe
12484 else
12485 echo "libtool.m4: error: problem compiling CXX test program"
12486 fi
12487
12488 $rm -f confest.$objext
12489
12490 compiler_lib_search_dirs_CXX=
12491 if test -n "$compiler_lib_search_path_CXX"; then
12492 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12493 fi
12494
12495 # PORTME: override above test on systems where it is broken
12496 case $host_os in
12497 interix[3-9]*)
12498 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12499 # hack all around it, let's just trust "g++" to DTRT.
12500 predep_objects_CXX=
12501 postdep_objects_CXX=
12502 postdeps_CXX=
12503 ;;
12504
12505 linux*)
12506 case `$CC -V 2>&1 | sed 5q` in
12507 *Sun\ C*)
12508 # Sun C++ 5.9
12509 #
12510 # The more standards-conforming stlport4 library is
12511 # incompatible with the Cstd library. Avoid specifying
12512 # it if it's in CXXFLAGS. Ignore libCrun as
12513 # -library=stlport4 depends on it.
12514 case " $CXX $CXXFLAGS " in
12515 *" -library=stlport4 "*)
12516 solaris_use_stlport4=yes
12517 ;;
12518 esac
12519 if test "$solaris_use_stlport4" != yes; then
12520 postdeps_CXX='-library=Cstd -library=Crun'
12521 fi
12522 ;;
12523 esac
12524 ;;
12525
12526 solaris*)
12527 case $cc_basename in
12528 CC*)
12529 # The more standards-conforming stlport4 library is
12530 # incompatible with the Cstd library. Avoid specifying
12531 # it if it's in CXXFLAGS. Ignore libCrun as
12532 # -library=stlport4 depends on it.
12533 case " $CXX $CXXFLAGS " in
12534 *" -library=stlport4 "*)
12535 solaris_use_stlport4=yes
12536 ;;
12537 esac
12538
12539 # Adding this requires a known-good setup of shared libraries for
12540 # Sun compiler versions before 5.6, else PIC objects from an old
12541 # archive will be linked into the output, leading to subtle bugs.
12542 if test "$solaris_use_stlport4" != yes; then
12543 postdeps_CXX='-library=Cstd -library=Crun'
12544 fi
12545 ;;
12546 esac
12547 ;;
12548 esac
12549
12550 case " $postdeps_CXX " in
12551 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12552 esac
12553
12554 lt_prog_compiler_wl_CXX=
12555 lt_prog_compiler_pic_CXX=
12556 lt_prog_compiler_static_CXX=
12557
12558 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12559 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12560
12561 # C++ specific cases for pic, static, wl, etc.
12562 if test "$GXX" = yes; then
12563 lt_prog_compiler_wl_CXX='-Wl,'
12564 lt_prog_compiler_static_CXX='-static'
12565
12566 case $host_os in
12567 aix*)
12568 # All AIX code is PIC.
12569 if test "$host_cpu" = ia64; then
12570 # AIX 5 now supports IA64 processor
12571 lt_prog_compiler_static_CXX='-Bstatic'
12572 fi
12573 ;;
12574 amigaos*)
12575 # FIXME: we need at least 68020 code to build shared libraries, but
12576 # adding the `-m68020' flag to GCC prevents building anything better,
12577 # like `-m68040'.
12578 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12579 ;;
12580 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12581 # PIC is the default for these OSes.
12582 ;;
12583 mingw* | cygwin* | os2* | pw32*)
12584 # This hack is so that the source file can tell whether it is being
12585 # built for inclusion in a dll (and should export symbols for example).
12586 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12587 # (--disable-auto-import) libraries
12588 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12589 ;;
12590 darwin* | rhapsody*)
12591 # PIC is the default on this platform
12592 # Common symbols not allowed in MH_DYLIB files
12593 lt_prog_compiler_pic_CXX='-fno-common'
12594 ;;
12595 *djgpp*)
12596 # DJGPP does not support shared libraries at all
12597 lt_prog_compiler_pic_CXX=
12598 ;;
12599 interix[3-9]*)
12600 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12601 # Instead, we relocate shared libraries at runtime.
12602 ;;
12603 sysv4*MP*)
12604 if test -d /usr/nec; then
12605 lt_prog_compiler_pic_CXX=-Kconform_pic
12606 fi
12607 ;;
12608 hpux*)
12609 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12610 # not for PA HP-UX.
12611 case $host_cpu in
12612 hppa*64*|ia64*)
12613 ;;
12614 *)
12615 lt_prog_compiler_pic_CXX='-fPIC'
12616 ;;
12617 esac
12618 ;;
12619 *)
12620 lt_prog_compiler_pic_CXX='-fPIC'
12621 ;;
12622 esac
12623 else
12624 case $host_os in
12625 aix[4-9]*)
12626 # All AIX code is PIC.
12627 if test "$host_cpu" = ia64; then
12628 # AIX 5 now supports IA64 processor
12629 lt_prog_compiler_static_CXX='-Bstatic'
12630 else
12631 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12632 fi
12633 ;;
12634 chorus*)
12635 case $cc_basename in
12636 cxch68*)
12637 # Green Hills C++ Compiler
12638 # _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"
12639 ;;
12640 esac
12641 ;;
12642 darwin*)
12643 # PIC is the default on this platform
12644 # Common symbols not allowed in MH_DYLIB files
12645 case $cc_basename in
12646 xlc*)
12647 lt_prog_compiler_pic_CXX='-qnocommon'
12648 lt_prog_compiler_wl_CXX='-Wl,'
12649 ;;
12650 esac
12651 ;;
12652 dgux*)
12653 case $cc_basename in
12654 ec++*)
12655 lt_prog_compiler_pic_CXX='-KPIC'
12656 ;;
12657 ghcx*)
12658 # Green Hills C++ Compiler
12659 lt_prog_compiler_pic_CXX='-pic'
12660 ;;
12661 *)
12662 ;;
12663 esac
12664 ;;
12665 freebsd* | dragonfly*)
12666 # FreeBSD uses GNU C++
12667 ;;
12668 hpux9* | hpux10* | hpux11*)
12669 case $cc_basename in
12670 CC*)
12671 lt_prog_compiler_wl_CXX='-Wl,'
12672 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12673 if test "$host_cpu" != ia64; then
12674 lt_prog_compiler_pic_CXX='+Z'
12675 fi
12676 ;;
12677 aCC*)
12678 lt_prog_compiler_wl_CXX='-Wl,'
12679 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12680 case $host_cpu in
12681 hppa*64*|ia64*)
12682 # +Z the default
12683 ;;
12684 *)
12685 lt_prog_compiler_pic_CXX='+Z'
12686 ;;
12687 esac
12688 ;;
12689 *)
12690 ;;
12691 esac
12692 ;;
12693 interix*)
12694 # This is c89, which is MS Visual C++ (no shared libs)
12695 # Anyone wants to do a port?
12696 ;;
12697 irix5* | irix6* | nonstopux*)
12698 case $cc_basename in
12699 CC*)
12700 lt_prog_compiler_wl_CXX='-Wl,'
12701 lt_prog_compiler_static_CXX='-non_shared'
12702 # CC pic flag -KPIC is the default.
12703 ;;
12704 *)
12705 ;;
12706 esac
12707 ;;
12708 linux* | k*bsd*-gnu)
12709 case $cc_basename in
12710 KCC*)
12711 # KAI C++ Compiler
12712 lt_prog_compiler_wl_CXX='--backend -Wl,'
12713 lt_prog_compiler_pic_CXX='-fPIC'
12714 ;;
12715 icpc* | ecpc*)
12716 # Intel C++
12717 lt_prog_compiler_wl_CXX='-Wl,'
12718 lt_prog_compiler_pic_CXX='-KPIC'
12719 lt_prog_compiler_static_CXX='-static'
12720 ;;
12721 pgCC* | pgcpp*)
12722 # Portland Group C++ compiler.
12723 lt_prog_compiler_wl_CXX='-Wl,'
12724 lt_prog_compiler_pic_CXX='-fpic'
12725 lt_prog_compiler_static_CXX='-Bstatic'
12726 ;;
12727 cxx*)
12728 # Compaq C++
12729 # Make sure the PIC flag is empty. It appears that all Alpha
12730 # Linux and Compaq Tru64 Unix objects are PIC.
12731 lt_prog_compiler_pic_CXX=
12732 lt_prog_compiler_static_CXX='-non_shared'
12733 ;;
12734 *)
12735 case `$CC -V 2>&1 | sed 5q` in
12736 *Sun\ C*)
12737 # Sun C++ 5.9
12738 lt_prog_compiler_pic_CXX='-KPIC'
12739 lt_prog_compiler_static_CXX='-Bstatic'
12740 lt_prog_compiler_wl_CXX='-Qoption ld '
12741 ;;
12742 esac
12743 ;;
12744 esac
12745 ;;
12746 lynxos*)
12747 ;;
12748 m88k*)
12749 ;;
12750 mvs*)
12751 case $cc_basename in
12752 cxx*)
12753 lt_prog_compiler_pic_CXX='-W c,exportall'
12754 ;;
12755 *)
12756 ;;
12757 esac
12758 ;;
12759 netbsd* | netbsdelf*-gnu)
12760 ;;
12761 osf3* | osf4* | osf5*)
12762 case $cc_basename in
12763 KCC*)
12764 lt_prog_compiler_wl_CXX='--backend -Wl,'
12765 ;;
12766 RCC*)
12767 # Rational C++ 2.4.1
12768 lt_prog_compiler_pic_CXX='-pic'
12769 ;;
12770 cxx*)
12771 # Digital/Compaq C++
12772 lt_prog_compiler_wl_CXX='-Wl,'
12773 # Make sure the PIC flag is empty. It appears that all Alpha
12774 # Linux and Compaq Tru64 Unix objects are PIC.
12775 lt_prog_compiler_pic_CXX=
12776 lt_prog_compiler_static_CXX='-non_shared'
12777 ;;
12778 *)
12779 ;;
12780 esac
12781 ;;
12782 psos*)
12783 ;;
12784 solaris*)
12785 case $cc_basename in
12786 CC*)
12787 # Sun C++ 4.2, 5.x and Centerline C++
12788 lt_prog_compiler_pic_CXX='-KPIC'
12789 lt_prog_compiler_static_CXX='-Bstatic'
12790 lt_prog_compiler_wl_CXX='-Qoption ld '
12791 ;;
12792 gcx*)
12793 # Green Hills C++ Compiler
12794 lt_prog_compiler_pic_CXX='-PIC'
12795 ;;
12796 *)
12797 ;;
12798 esac
12799 ;;
12800 sunos4*)
12801 case $cc_basename in
12802 CC*)
12803 # Sun C++ 4.x
12804 lt_prog_compiler_pic_CXX='-pic'
12805 lt_prog_compiler_static_CXX='-Bstatic'
12806 ;;
12807 lcc*)
12808 # Lucid
12809 lt_prog_compiler_pic_CXX='-pic'
12810 ;;
12811 *)
12812 ;;
12813 esac
12814 ;;
12815 tandem*)
12816 case $cc_basename in
12817 NCC*)
12818 # NonStop-UX NCC 3.20
12819 lt_prog_compiler_pic_CXX='-KPIC'
12820 ;;
12821 *)
12822 ;;
12823 esac
12824 ;;
12825 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12826 case $cc_basename in
12827 CC*)
12828 lt_prog_compiler_wl_CXX='-Wl,'
12829 lt_prog_compiler_pic_CXX='-KPIC'
12830 lt_prog_compiler_static_CXX='-Bstatic'
12831 ;;
12832 esac
12833 ;;
12834 vxworks*)
12835 ;;
12836 *)
12837 lt_prog_compiler_can_build_shared_CXX=no
12838 ;;
12839 esac
12840 fi
12841
12842 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12843 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12844
12845 #
12846 # Check to make sure the PIC flag actually works.
12847 #
12848 if test -n "$lt_prog_compiler_pic_CXX"; then
12849
12850 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12851 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12852 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855 lt_cv_prog_compiler_pic_works_CXX=no
12856 ac_outfile=conftest.$ac_objext
12857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12858 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12859 # Insert the option either (1) after the last *FLAGS variable, or
12860 # (2) before a word containing "conftest.", or (3) at the end.
12861 # Note that $ac_compile itself does not contain backslashes and begins
12862 # with a dollar sign (not a hyphen), so the echo should work correctly.
12863 # The option is referenced via a variable to avoid confusing sed.
12864 lt_compile=`echo "$ac_compile" | $SED \
12865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12867 -e 's:$: $lt_compiler_flag:'`
12868 (eval echo "\"\$as_me:12869: $lt_compile\"" >&5)
12869 (eval "$lt_compile" 2>conftest.err)
12870 ac_status=$?
12871 cat conftest.err >&5
12872 echo "$as_me:12873: \$? = $ac_status" >&5
12873 if (exit $ac_status) && test -s "$ac_outfile"; then
12874 # The compiler can only warn and ignore the option if not recognized
12875 # So say no if there are warnings other than the usual output.
12876 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12879 lt_cv_prog_compiler_pic_works_CXX=yes
12880 fi
12881 fi
12882 $rm conftest*
12883
12884 fi
12885 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12886 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12887
12888 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12889 case $lt_prog_compiler_pic_CXX in
12890 "" | " "*) ;;
12891 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12892 esac
12893 else
12894 lt_prog_compiler_pic_CXX=
12895 lt_prog_compiler_can_build_shared_CXX=no
12896 fi
12897
12898 fi
12899 case $host_os in
12900 # For platforms which do not support PIC, -DPIC is meaningless:
12901 *djgpp*)
12902 lt_prog_compiler_pic_CXX=
12903 ;;
12904 *)
12905 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12906 ;;
12907 esac
12908
12909 #
12910 # Check to make sure the static flag actually works.
12911 #
12912 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12913 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12914 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12915 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918 lt_cv_prog_compiler_static_works_CXX=no
12919 save_LDFLAGS="$LDFLAGS"
12920 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12921 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12922 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12923 # The linker can only warn and ignore the option if not recognized
12924 # So say no if there are warnings
12925 if test -s conftest.err; then
12926 # Append any errors to the config.log.
12927 cat conftest.err 1>&5
12928 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12930 if diff conftest.exp conftest.er2 >/dev/null; then
12931 lt_cv_prog_compiler_static_works_CXX=yes
12932 fi
12933 else
12934 lt_cv_prog_compiler_static_works_CXX=yes
12935 fi
12936 fi
12937 $rm -r conftest*
12938 LDFLAGS="$save_LDFLAGS"
12939
12940 fi
12941 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12942 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12943
12944 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12945 :
12946 else
12947 lt_prog_compiler_static_CXX=
12948 fi
12949
12950
12951 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12952 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12953 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956 lt_cv_prog_compiler_c_o_CXX=no
12957 $rm -r conftest 2>/dev/null
12958 mkdir conftest
12959 cd conftest
12960 mkdir out
12961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12962
12963 lt_compiler_flag="-o out/conftest2.$ac_objext"
12964 # Insert the option either (1) after the last *FLAGS variable, or
12965 # (2) before a word containing "conftest.", or (3) at the end.
12966 # Note that $ac_compile itself does not contain backslashes and begins
12967 # with a dollar sign (not a hyphen), so the echo should work correctly.
12968 lt_compile=`echo "$ac_compile" | $SED \
12969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12971 -e 's:$: $lt_compiler_flag:'`
12972 (eval echo "\"\$as_me:12973: $lt_compile\"" >&5)
12973 (eval "$lt_compile" 2>out/conftest.err)
12974 ac_status=$?
12975 cat out/conftest.err >&5
12976 echo "$as_me:12977: \$? = $ac_status" >&5
12977 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12978 then
12979 # The compiler can only warn and ignore the option if not recognized
12980 # So say no if there are warnings
12981 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12984 lt_cv_prog_compiler_c_o_CXX=yes
12985 fi
12986 fi
12987 chmod u+w . 2>&5
12988 $rm conftest*
12989 # SGI C++ compiler will create directory out/ii_files/ for
12990 # template instantiation
12991 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12992 $rm out/* && rmdir out
12993 cd ..
12994 rmdir conftest
12995 $rm conftest*
12996
12997 fi
12998 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12999 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13000
13001
13002 hard_links="nottested"
13003 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13004 # do not overwrite the value of need_locks provided by the user
13005 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13006 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13007 hard_links=yes
13008 $rm conftest*
13009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13010 touch conftest.a
13011 ln conftest.a conftest.b 2>&5 || hard_links=no
13012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13013 { echo "$as_me:$LINENO: result: $hard_links" >&5
13014 echo "${ECHO_T}$hard_links" >&6; }
13015 if test "$hard_links" = no; then
13016 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13017 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13018 need_locks=warn
13019 fi
13020 else
13021 need_locks=no
13022 fi
13023
13024 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13025 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13026
13027 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13028 case $host_os in
13029 aix[4-9]*)
13030 # If we're using GNU nm, then we don't want the "-C" option.
13031 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13032 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13033 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'
13034 else
13035 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'
13036 fi
13037 ;;
13038 pw32*)
13039 export_symbols_cmds_CXX="$ltdll_cmds"
13040 ;;
13041 cygwin* | mingw*)
13042 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'
13043 ;;
13044 linux* | k*bsd*-gnu)
13045 link_all_deplibs_CXX=no
13046 ;;
13047 *)
13048 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13049 ;;
13050 esac
13051 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13052
13053 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13054 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13055 test "$ld_shlibs_CXX" = no && can_build_shared=no
13056
13057 #
13058 # Do we need to explicitly link libc?
13059 #
13060 case "x$archive_cmds_need_lc_CXX" in
13061 x|xyes)
13062 # Assume -lc should be added
13063 archive_cmds_need_lc_CXX=yes
13064
13065 if test "$enable_shared" = yes && test "$GCC" = yes; then
13066 case $archive_cmds_CXX in
13067 *'~'*)
13068 # FIXME: we may have to deal with multi-command sequences.
13069 ;;
13070 '$CC '*)
13071 # Test whether the compiler implicitly links with -lc since on some
13072 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13073 # to ld, don't add -lc before -lgcc.
13074 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13075 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13076 $rm conftest*
13077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13078
13079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13080 (eval $ac_compile) 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } 2>conftest.err; then
13084 soname=conftest
13085 lib=conftest
13086 libobjs=conftest.$ac_objext
13087 deplibs=
13088 wl=$lt_prog_compiler_wl_CXX
13089 pic_flag=$lt_prog_compiler_pic_CXX
13090 compiler_flags=-v
13091 linker_flags=-v
13092 verstring=
13093 output_objdir=.
13094 libname=conftest
13095 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13096 allow_undefined_flag_CXX=
13097 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13098 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }
13102 then
13103 archive_cmds_need_lc_CXX=no
13104 else
13105 archive_cmds_need_lc_CXX=yes
13106 fi
13107 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13108 else
13109 cat conftest.err 1>&5
13110 fi
13111 $rm conftest*
13112 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13113 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13114 ;;
13115 esac
13116 fi
13117 ;;
13118 esac
13119
13120 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13121 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13122 library_names_spec=
13123 libname_spec='lib$name'
13124 soname_spec=
13125 shrext_cmds=".so"
13126 postinstall_cmds=
13127 postuninstall_cmds=
13128 finish_cmds=
13129 finish_eval=
13130 shlibpath_var=
13131 shlibpath_overrides_runpath=unknown
13132 version_type=none
13133 dynamic_linker="$host_os ld.so"
13134 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13135
13136 need_lib_prefix=unknown
13137 hardcode_into_libs=no
13138
13139 # when you set need_version to no, make sure it does not cause -set_version
13140 # flags to be left without arguments
13141 need_version=unknown
13142
13143 case $host_os in
13144 aix3*)
13145 version_type=linux
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13147 shlibpath_var=LIBPATH
13148
13149 # AIX 3 has no versioning support, so we append a major version to the name.
13150 soname_spec='${libname}${release}${shared_ext}$major'
13151 ;;
13152
13153 aix[4-9]*)
13154 version_type=linux
13155 need_lib_prefix=no
13156 need_version=no
13157 hardcode_into_libs=yes
13158 if test "$host_cpu" = ia64; then
13159 # AIX 5 supports IA64
13160 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13161 shlibpath_var=LD_LIBRARY_PATH
13162 else
13163 # With GCC up to 2.95.x, collect2 would create an import file
13164 # for dependence libraries. The import file would start with
13165 # the line `#! .'. This would cause the generated library to
13166 # depend on `.', always an invalid library. This was fixed in
13167 # development snapshots of GCC prior to 3.0.
13168 case $host_os in
13169 aix4 | aix4.[01] | aix4.[01].*)
13170 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13171 echo ' yes '
13172 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13173 :
13174 else
13175 can_build_shared=no
13176 fi
13177 ;;
13178 esac
13179 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13180 # soname into executable. Probably we can add versioning support to
13181 # collect2, so additional links can be useful in future.
13182 if test "$aix_use_runtimelinking" = yes; then
13183 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13184 # instead of lib<name>.a to let people know that these are not
13185 # typical AIX shared libraries.
13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187 else
13188 # We preserve .a as extension for shared libraries through AIX4.2
13189 # and later when we are not doing run time linking.
13190 library_names_spec='${libname}${release}.a $libname.a'
13191 soname_spec='${libname}${release}${shared_ext}$major'
13192 fi
13193 shlibpath_var=LIBPATH
13194 fi
13195 ;;
13196
13197 amigaos*)
13198 library_names_spec='$libname.ixlibrary $libname.a'
13199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13200 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'
13201 ;;
13202
13203 beos*)
13204 library_names_spec='${libname}${shared_ext}'
13205 dynamic_linker="$host_os ld.so"
13206 shlibpath_var=LIBRARY_PATH
13207 ;;
13208
13209 bsdi[45]*)
13210 version_type=linux
13211 need_version=no
13212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13213 soname_spec='${libname}${release}${shared_ext}$major'
13214 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13215 shlibpath_var=LD_LIBRARY_PATH
13216 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13217 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13218 # the default ld.so.conf also contains /usr/contrib/lib and
13219 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13220 # libtool to hard-code these into programs
13221 ;;
13222
13223 cygwin* | mingw* | pw32*)
13224 version_type=windows
13225 shrext_cmds=".dll"
13226 need_version=no
13227 need_lib_prefix=no
13228
13229 case $GCC,$host_os in
13230 yes,cygwin* | yes,mingw* | yes,pw32*)
13231 library_names_spec='$libname.dll.a'
13232 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13233 postinstall_cmds='base_file=`basename \${file}`~
13234 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13235 dldir=$destdir/`dirname \$dlpath`~
13236 test -d \$dldir || mkdir -p \$dldir~
13237 $install_prog $dir/$dlname \$dldir/$dlname~
13238 chmod a+x \$dldir/$dlname'
13239 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13240 dlpath=$dir/\$dldll~
13241 $rm \$dlpath'
13242 shlibpath_overrides_runpath=yes
13243
13244 case $host_os in
13245 cygwin*)
13246 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13247 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13248 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13249 ;;
13250 mingw*)
13251 # MinGW DLLs use traditional 'lib' prefix
13252 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13253 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13254 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13255 # It is most probably a Windows format PATH printed by
13256 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13257 # path with ; separators, and with drive letters. We can handle the
13258 # drive letters (cygwin fileutils understands them), so leave them,
13259 # especially as we might pass files found there to a mingw objdump,
13260 # which wouldn't understand a cygwinified path. Ahh.
13261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13262 else
13263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13264 fi
13265 ;;
13266 pw32*)
13267 # pw32 DLLs use 'pw' prefix rather than 'lib'
13268 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13269 ;;
13270 esac
13271 ;;
13272
13273 *)
13274 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13275 ;;
13276 esac
13277 dynamic_linker='Win32 ld.exe'
13278 # FIXME: first we should search . and the directory the executable is in
13279 shlibpath_var=PATH
13280 ;;
13281
13282 darwin* | rhapsody*)
13283 dynamic_linker="$host_os dyld"
13284 version_type=darwin
13285 need_lib_prefix=no
13286 need_version=no
13287 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13288 soname_spec='${libname}${release}${major}$shared_ext'
13289 shlibpath_overrides_runpath=yes
13290 shlibpath_var=DYLD_LIBRARY_PATH
13291 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13292
13293 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13294 ;;
13295
13296 dgux*)
13297 version_type=linux
13298 need_lib_prefix=no
13299 need_version=no
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13301 soname_spec='${libname}${release}${shared_ext}$major'
13302 shlibpath_var=LD_LIBRARY_PATH
13303 ;;
13304
13305 freebsd1*)
13306 dynamic_linker=no
13307 ;;
13308
13309 freebsd* | dragonfly*)
13310 # DragonFly does not have aout. When/if they implement a new
13311 # versioning mechanism, adjust this.
13312 if test -x /usr/bin/objformat; then
13313 objformat=`/usr/bin/objformat`
13314 else
13315 case $host_os in
13316 freebsd[123]*) objformat=aout ;;
13317 *) objformat=elf ;;
13318 esac
13319 fi
13320 version_type=freebsd-$objformat
13321 case $version_type in
13322 freebsd-elf*)
13323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13324 need_version=no
13325 need_lib_prefix=no
13326 ;;
13327 freebsd-*)
13328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13329 need_version=yes
13330 ;;
13331 esac
13332 shlibpath_var=LD_LIBRARY_PATH
13333 case $host_os in
13334 freebsd2*)
13335 shlibpath_overrides_runpath=yes
13336 ;;
13337 freebsd3.[01]* | freebsdelf3.[01]*)
13338 shlibpath_overrides_runpath=yes
13339 hardcode_into_libs=yes
13340 ;;
13341 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13342 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13343 shlibpath_overrides_runpath=no
13344 hardcode_into_libs=yes
13345 ;;
13346 *) # from 4.6 on, and DragonFly
13347 shlibpath_overrides_runpath=yes
13348 hardcode_into_libs=yes
13349 ;;
13350 esac
13351 ;;
13352
13353 gnu*)
13354 version_type=linux
13355 need_lib_prefix=no
13356 need_version=no
13357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13358 soname_spec='${libname}${release}${shared_ext}$major'
13359 shlibpath_var=LD_LIBRARY_PATH
13360 hardcode_into_libs=yes
13361 ;;
13362
13363 hpux9* | hpux10* | hpux11*)
13364 # Give a soname corresponding to the major version so that dld.sl refuses to
13365 # link against other versions.
13366 version_type=sunos
13367 need_lib_prefix=no
13368 need_version=no
13369 case $host_cpu in
13370 ia64*)
13371 shrext_cmds='.so'
13372 hardcode_into_libs=yes
13373 dynamic_linker="$host_os dld.so"
13374 shlibpath_var=LD_LIBRARY_PATH
13375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13377 soname_spec='${libname}${release}${shared_ext}$major'
13378 if test "X$HPUX_IA64_MODE" = X32; then
13379 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13380 else
13381 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13382 fi
13383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13384 ;;
13385 hppa*64*)
13386 shrext_cmds='.sl'
13387 hardcode_into_libs=yes
13388 dynamic_linker="$host_os dld.sl"
13389 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13392 soname_spec='${libname}${release}${shared_ext}$major'
13393 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13395 ;;
13396 *)
13397 shrext_cmds='.sl'
13398 dynamic_linker="$host_os dld.sl"
13399 shlibpath_var=SHLIB_PATH
13400 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13402 soname_spec='${libname}${release}${shared_ext}$major'
13403 ;;
13404 esac
13405 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13406 postinstall_cmds='chmod 555 $lib'
13407 ;;
13408
13409 interix[3-9]*)
13410 version_type=linux
13411 need_lib_prefix=no
13412 need_version=no
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 shlibpath_overrides_runpath=no
13418 hardcode_into_libs=yes
13419 ;;
13420
13421 irix5* | irix6* | nonstopux*)
13422 case $host_os in
13423 nonstopux*) version_type=nonstopux ;;
13424 *)
13425 if test "$lt_cv_prog_gnu_ld" = yes; then
13426 version_type=linux
13427 else
13428 version_type=irix
13429 fi ;;
13430 esac
13431 need_lib_prefix=no
13432 need_version=no
13433 soname_spec='${libname}${release}${shared_ext}$major'
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13435 case $host_os in
13436 irix5* | nonstopux*)
13437 libsuff= shlibsuff=
13438 ;;
13439 *)
13440 case $LD in # libtool.m4 will add one of these switches to LD
13441 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13442 libsuff= shlibsuff= libmagic=32-bit;;
13443 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13444 libsuff=32 shlibsuff=N32 libmagic=N32;;
13445 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13446 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13447 *) libsuff= shlibsuff= libmagic=never-match;;
13448 esac
13449 ;;
13450 esac
13451 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13452 shlibpath_overrides_runpath=no
13453 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13454 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13455 hardcode_into_libs=yes
13456 ;;
13457
13458 # No shared lib support for Linux oldld, aout, or coff.
13459 linux*oldld* | linux*aout* | linux*coff*)
13460 dynamic_linker=no
13461 ;;
13462
13463 # This must be Linux ELF.
13464 linux* | k*bsd*-gnu)
13465 version_type=linux
13466 need_lib_prefix=no
13467 need_version=no
13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469 soname_spec='${libname}${release}${shared_ext}$major'
13470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13471 shlibpath_var=LD_LIBRARY_PATH
13472 shlibpath_overrides_runpath=no
13473 # This implies no fast_install, which is unacceptable.
13474 # Some rework will be needed to allow for fast_install
13475 # before this can be enabled.
13476 hardcode_into_libs=yes
13477
13478 # Append ld.so.conf contents to the search path
13479 if test -f /etc/ld.so.conf; then
13480 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' ' '`
13481 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13482 fi
13483
13484 # We used to test for /lib/ld.so.1 and disable shared libraries on
13485 # powerpc, because MkLinux only supported shared libraries with the
13486 # GNU dynamic linker. Since this was broken with cross compilers,
13487 # most powerpc-linux boxes support dynamic linking these days and
13488 # people can always --disable-shared, the test was removed, and we
13489 # assume the GNU/Linux dynamic linker is in use.
13490 dynamic_linker='GNU/Linux ld.so'
13491 ;;
13492
13493 netbsdelf*-gnu)
13494 version_type=linux
13495 need_lib_prefix=no
13496 need_version=no
13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13498 soname_spec='${libname}${release}${shared_ext}$major'
13499 shlibpath_var=LD_LIBRARY_PATH
13500 shlibpath_overrides_runpath=no
13501 hardcode_into_libs=yes
13502 dynamic_linker='NetBSD ld.elf_so'
13503 ;;
13504
13505 netbsd*)
13506 version_type=sunos
13507 need_lib_prefix=no
13508 need_version=no
13509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13512 dynamic_linker='NetBSD (a.out) ld.so'
13513 else
13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13515 soname_spec='${libname}${release}${shared_ext}$major'
13516 dynamic_linker='NetBSD ld.elf_so'
13517 fi
13518 shlibpath_var=LD_LIBRARY_PATH
13519 shlibpath_overrides_runpath=yes
13520 hardcode_into_libs=yes
13521 ;;
13522
13523 newsos6)
13524 version_type=linux
13525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13526 shlibpath_var=LD_LIBRARY_PATH
13527 shlibpath_overrides_runpath=yes
13528 ;;
13529
13530 nto-qnx*)
13531 version_type=linux
13532 need_lib_prefix=no
13533 need_version=no
13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13535 soname_spec='${libname}${release}${shared_ext}$major'
13536 shlibpath_var=LD_LIBRARY_PATH
13537 shlibpath_overrides_runpath=yes
13538 ;;
13539
13540 openbsd*)
13541 version_type=sunos
13542 sys_lib_dlsearch_path_spec="/usr/lib"
13543 need_lib_prefix=no
13544 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13545 case $host_os in
13546 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13547 *) need_version=no ;;
13548 esac
13549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13551 shlibpath_var=LD_LIBRARY_PATH
13552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13553 case $host_os in
13554 openbsd2.[89] | openbsd2.[89].*)
13555 shlibpath_overrides_runpath=no
13556 ;;
13557 *)
13558 shlibpath_overrides_runpath=yes
13559 ;;
13560 esac
13561 else
13562 shlibpath_overrides_runpath=yes
13563 fi
13564 ;;
13565
13566 os2*)
13567 libname_spec='$name'
13568 shrext_cmds=".dll"
13569 need_lib_prefix=no
13570 library_names_spec='$libname${shared_ext} $libname.a'
13571 dynamic_linker='OS/2 ld.exe'
13572 shlibpath_var=LIBPATH
13573 ;;
13574
13575 osf3* | osf4* | osf5*)
13576 version_type=osf
13577 need_lib_prefix=no
13578 need_version=no
13579 soname_spec='${libname}${release}${shared_ext}$major'
13580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13581 shlibpath_var=LD_LIBRARY_PATH
13582 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13583 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13584 ;;
13585
13586 rdos*)
13587 dynamic_linker=no
13588 ;;
13589
13590 solaris*)
13591 version_type=linux
13592 need_lib_prefix=no
13593 need_version=no
13594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595 soname_spec='${libname}${release}${shared_ext}$major'
13596 shlibpath_var=LD_LIBRARY_PATH
13597 shlibpath_overrides_runpath=yes
13598 hardcode_into_libs=yes
13599 # ldd complains unless libraries are executable
13600 postinstall_cmds='chmod +x $lib'
13601 ;;
13602
13603 sunos4*)
13604 version_type=sunos
13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13606 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13607 shlibpath_var=LD_LIBRARY_PATH
13608 shlibpath_overrides_runpath=yes
13609 if test "$with_gnu_ld" = yes; then
13610 need_lib_prefix=no
13611 fi
13612 need_version=yes
13613 ;;
13614
13615 sysv4 | sysv4.3*)
13616 version_type=linux
13617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13618 soname_spec='${libname}${release}${shared_ext}$major'
13619 shlibpath_var=LD_LIBRARY_PATH
13620 case $host_vendor in
13621 sni)
13622 shlibpath_overrides_runpath=no
13623 need_lib_prefix=no
13624 export_dynamic_flag_spec='${wl}-Blargedynsym'
13625 runpath_var=LD_RUN_PATH
13626 ;;
13627 siemens)
13628 need_lib_prefix=no
13629 ;;
13630 motorola)
13631 need_lib_prefix=no
13632 need_version=no
13633 shlibpath_overrides_runpath=no
13634 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13635 ;;
13636 esac
13637 ;;
13638
13639 sysv4*MP*)
13640 if test -d /usr/nec ;then
13641 version_type=linux
13642 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13643 soname_spec='$libname${shared_ext}.$major'
13644 shlibpath_var=LD_LIBRARY_PATH
13645 fi
13646 ;;
13647
13648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13649 version_type=freebsd-elf
13650 need_lib_prefix=no
13651 need_version=no
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13653 soname_spec='${libname}${release}${shared_ext}$major'
13654 shlibpath_var=LD_LIBRARY_PATH
13655 hardcode_into_libs=yes
13656 if test "$with_gnu_ld" = yes; then
13657 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13658 shlibpath_overrides_runpath=no
13659 else
13660 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13661 shlibpath_overrides_runpath=yes
13662 case $host_os in
13663 sco3.2v5*)
13664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13665 ;;
13666 esac
13667 fi
13668 sys_lib_dlsearch_path_spec='/usr/lib'
13669 ;;
13670
13671 uts4*)
13672 version_type=linux
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13674 soname_spec='${libname}${release}${shared_ext}$major'
13675 shlibpath_var=LD_LIBRARY_PATH
13676 ;;
13677
13678 *)
13679 dynamic_linker=no
13680 ;;
13681 esac
13682 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13683 echo "${ECHO_T}$dynamic_linker" >&6; }
13684 test "$dynamic_linker" = no && can_build_shared=no
13685
13686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13690 fi
13691
13692 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13693 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 else
13696 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13697 fi
13698
13699 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13700
13701 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13702 if test "$GCC" = yes; then
13703 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13704 fi
13705
13706 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13707 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13708 hardcode_action_CXX=
13709 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13710 test -n "$runpath_var_CXX" || \
13711 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13712
13713 # We can hardcode non-existant directories.
13714 if test "$hardcode_direct_CXX" != no &&
13715 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13716 # have to relink, otherwise we might link with an installed library
13717 # when we should be linking with a yet-to-be-installed one
13718 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13719 test "$hardcode_minus_L_CXX" != no; then
13720 # Linking always hardcodes the temporary library directory.
13721 hardcode_action_CXX=relink
13722 else
13723 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13724 hardcode_action_CXX=immediate
13725 fi
13726 else
13727 # We cannot hardcode anything, or else we can only hardcode existing
13728 # directories.
13729 hardcode_action_CXX=unsupported
13730 fi
13731 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13732 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13733
13734 if test "$hardcode_action_CXX" = relink; then
13735 # Fast installation is not supported
13736 enable_fast_install=no
13737 elif test "$shlibpath_overrides_runpath" = yes ||
13738 test "$enable_shared" = no; then
13739 # Fast installation is not necessary
13740 enable_fast_install=needless
13741 fi
13742
13743
13744 # The else clause should only fire when bootstrapping the
13745 # libtool distribution, otherwise you forgot to ship ltmain.sh
13746 # with your package, and you will get complaints that there are
13747 # no rules to generate ltmain.sh.
13748 if test -f "$ltmain"; then
13749 # See if we are running on zsh, and set the options which allow our commands through
13750 # without removal of \ escapes.
13751 if test -n "${ZSH_VERSION+set}" ; then
13752 setopt NO_GLOB_SUBST
13753 fi
13754 # Now quote all the things that may contain metacharacters while being
13755 # careful not to overquote the AC_SUBSTed values. We take copies of the
13756 # variables and quote the copies for generation of the libtool script.
13757 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13758 SED SHELL STRIP \
13759 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13760 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13761 deplibs_check_method reload_flag reload_cmds need_locks \
13762 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13763 lt_cv_sys_global_symbol_to_c_name_address \
13764 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13765 old_postinstall_cmds old_postuninstall_cmds \
13766 compiler_CXX \
13767 CC_CXX \
13768 LD_CXX \
13769 lt_prog_compiler_wl_CXX \
13770 lt_prog_compiler_pic_CXX \
13771 lt_prog_compiler_static_CXX \
13772 lt_prog_compiler_no_builtin_flag_CXX \
13773 export_dynamic_flag_spec_CXX \
13774 thread_safe_flag_spec_CXX \
13775 whole_archive_flag_spec_CXX \
13776 enable_shared_with_static_runtimes_CXX \
13777 old_archive_cmds_CXX \
13778 old_archive_from_new_cmds_CXX \
13779 predep_objects_CXX \
13780 postdep_objects_CXX \
13781 predeps_CXX \
13782 postdeps_CXX \
13783 compiler_lib_search_path_CXX \
13784 compiler_lib_search_dirs_CXX \
13785 archive_cmds_CXX \
13786 archive_expsym_cmds_CXX \
13787 postinstall_cmds_CXX \
13788 postuninstall_cmds_CXX \
13789 old_archive_from_expsyms_cmds_CXX \
13790 allow_undefined_flag_CXX \
13791 no_undefined_flag_CXX \
13792 export_symbols_cmds_CXX \
13793 hardcode_libdir_flag_spec_CXX \
13794 hardcode_libdir_flag_spec_ld_CXX \
13795 hardcode_libdir_separator_CXX \
13796 hardcode_automatic_CXX \
13797 module_cmds_CXX \
13798 module_expsym_cmds_CXX \
13799 lt_cv_prog_compiler_c_o_CXX \
13800 fix_srcfile_path_CXX \
13801 exclude_expsyms_CXX \
13802 include_expsyms_CXX; do
13803
13804 case $var in
13805 old_archive_cmds_CXX | \
13806 old_archive_from_new_cmds_CXX | \
13807 archive_cmds_CXX | \
13808 archive_expsym_cmds_CXX | \
13809 module_cmds_CXX | \
13810 module_expsym_cmds_CXX | \
13811 old_archive_from_expsyms_cmds_CXX | \
13812 export_symbols_cmds_CXX | \
13813 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13814 postinstall_cmds | postuninstall_cmds | \
13815 old_postinstall_cmds | old_postuninstall_cmds | \
13816 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13817 # Double-quote double-evaled strings.
13818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13819 ;;
13820 *)
13821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13822 ;;
13823 esac
13824 done
13825
13826 case $lt_echo in
13827 *'\$0 --fallback-echo"')
13828 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13829 ;;
13830 esac
13831
13832 cfgfile="$ofile"
13833
13834 cat <<__EOF__ >> "$cfgfile"
13835 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13836
13837 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13838
13839 # Shell to use when invoking shell scripts.
13840 SHELL=$lt_SHELL
13841
13842 # Whether or not to build shared libraries.
13843 build_libtool_libs=$enable_shared
13844
13845 # Whether or not to build static libraries.
13846 build_old_libs=$enable_static
13847
13848 # Whether or not to add -lc for building shared libraries.
13849 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13850
13851 # Whether or not to disallow shared libs when runtime libs are static
13852 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13853
13854 # Whether or not to optimize for fast installation.
13855 fast_install=$enable_fast_install
13856
13857 # The host system.
13858 host_alias=$host_alias
13859 host=$host
13860 host_os=$host_os
13861
13862 # The build system.
13863 build_alias=$build_alias
13864 build=$build
13865 build_os=$build_os
13866
13867 # An echo program that does not interpret backslashes.
13868 echo=$lt_echo
13869
13870 # The archiver.
13871 AR=$lt_AR
13872 AR_FLAGS=$lt_AR_FLAGS
13873
13874 # A C compiler.
13875 LTCC=$lt_LTCC
13876
13877 # LTCC compiler flags.
13878 LTCFLAGS=$lt_LTCFLAGS
13879
13880 # A language-specific compiler.
13881 CC=$lt_compiler_CXX
13882
13883 # Is the compiler the GNU C compiler?
13884 with_gcc=$GCC_CXX
13885
13886 # An ERE matcher.
13887 EGREP=$lt_EGREP
13888
13889 # The linker used to build libraries.
13890 LD=$lt_LD_CXX
13891
13892 # Whether we need hard or soft links.
13893 LN_S=$lt_LN_S
13894
13895 # A BSD-compatible nm program.
13896 NM=$lt_NM
13897
13898 # A symbol stripping program
13899 STRIP=$lt_STRIP
13900
13901 # Used to examine libraries when file_magic_cmd begins "file"
13902 MAGIC_CMD=$MAGIC_CMD
13903
13904 # Used on cygwin: DLL creation program.
13905 DLLTOOL="$DLLTOOL"
13906
13907 # Used on cygwin: object dumper.
13908 OBJDUMP="$OBJDUMP"
13909
13910 # Used on cygwin: assembler.
13911 AS="$AS"
13912
13913 # The name of the directory that contains temporary libtool files.
13914 objdir=$objdir
13915
13916 # How to create reloadable object files.
13917 reload_flag=$lt_reload_flag
13918 reload_cmds=$lt_reload_cmds
13919
13920 # How to pass a linker flag through the compiler.
13921 wl=$lt_lt_prog_compiler_wl_CXX
13922
13923 # Object file suffix (normally "o").
13924 objext="$ac_objext"
13925
13926 # Old archive suffix (normally "a").
13927 libext="$libext"
13928
13929 # Shared library suffix (normally ".so").
13930 shrext_cmds='$shrext_cmds'
13931
13932 # Executable file suffix (normally "").
13933 exeext="$exeext"
13934
13935 # Additional compiler flags for building library objects.
13936 pic_flag=$lt_lt_prog_compiler_pic_CXX
13937 pic_mode=$pic_mode
13938
13939 # What is the maximum length of a command?
13940 max_cmd_len=$lt_cv_sys_max_cmd_len
13941
13942 # Does compiler simultaneously support -c and -o options?
13943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13944
13945 # Must we lock files when doing compilation?
13946 need_locks=$lt_need_locks
13947
13948 # Do we need the lib prefix for modules?
13949 need_lib_prefix=$need_lib_prefix
13950
13951 # Do we need a version for libraries?
13952 need_version=$need_version
13953
13954 # Whether dlopen is supported.
13955 dlopen_support=$enable_dlopen
13956
13957 # Whether dlopen of programs is supported.
13958 dlopen_self=$enable_dlopen_self
13959
13960 # Whether dlopen of statically linked programs is supported.
13961 dlopen_self_static=$enable_dlopen_self_static
13962
13963 # Compiler flag to prevent dynamic linking.
13964 link_static_flag=$lt_lt_prog_compiler_static_CXX
13965
13966 # Compiler flag to turn off builtin functions.
13967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13968
13969 # Compiler flag to allow reflexive dlopens.
13970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13971
13972 # Compiler flag to generate shared objects directly from archives.
13973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13974
13975 # Compiler flag to generate thread-safe objects.
13976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13977
13978 # Library versioning type.
13979 version_type=$version_type
13980
13981 # Format of library name prefix.
13982 libname_spec=$lt_libname_spec
13983
13984 # List of archive names. First name is the real one, the rest are links.
13985 # The last name is the one that the linker finds with -lNAME.
13986 library_names_spec=$lt_library_names_spec
13987
13988 # The coded name of the library, if different from the real name.
13989 soname_spec=$lt_soname_spec
13990
13991 # Commands used to build and install an old-style archive.
13992 RANLIB=$lt_RANLIB
13993 old_archive_cmds=$lt_old_archive_cmds_CXX
13994 old_postinstall_cmds=$lt_old_postinstall_cmds
13995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13996
13997 # Create an old-style archive from a shared archive.
13998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13999
14000 # Create a temporary old-style archive to link instead of a shared archive.
14001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14002
14003 # Commands used to build and install a shared archive.
14004 archive_cmds=$lt_archive_cmds_CXX
14005 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14006 postinstall_cmds=$lt_postinstall_cmds
14007 postuninstall_cmds=$lt_postuninstall_cmds
14008
14009 # Commands used to build a loadable module (assumed same as above if empty)
14010 module_cmds=$lt_module_cmds_CXX
14011 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14012
14013 # Commands to strip libraries.
14014 old_striplib=$lt_old_striplib
14015 striplib=$lt_striplib
14016
14017 # Dependencies to place before the objects being linked to create a
14018 # shared library.
14019 predep_objects=$lt_predep_objects_CXX
14020
14021 # Dependencies to place after the objects being linked to create a
14022 # shared library.
14023 postdep_objects=$lt_postdep_objects_CXX
14024
14025 # Dependencies to place before the objects being linked to create a
14026 # shared library.
14027 predeps=$lt_predeps_CXX
14028
14029 # Dependencies to place after the objects being linked to create a
14030 # shared library.
14031 postdeps=$lt_postdeps_CXX
14032
14033 # The directories searched by this compiler when creating a shared
14034 # library
14035 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14036
14037 # The library search path used internally by the compiler when linking
14038 # a shared library.
14039 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14040
14041 # Method to check whether dependent libraries are shared objects.
14042 deplibs_check_method=$lt_deplibs_check_method
14043
14044 # Command to use when deplibs_check_method == file_magic.
14045 file_magic_cmd=$lt_file_magic_cmd
14046
14047 # Flag that allows shared libraries with undefined symbols to be built.
14048 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14049
14050 # Flag that forces no undefined symbols.
14051 no_undefined_flag=$lt_no_undefined_flag_CXX
14052
14053 # Commands used to finish a libtool library installation in a directory.
14054 finish_cmds=$lt_finish_cmds
14055
14056 # Same as above, but a single script fragment to be evaled but not shown.
14057 finish_eval=$lt_finish_eval
14058
14059 # Take the output of nm and produce a listing of raw symbols and C names.
14060 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14061
14062 # Transform the output of nm in a proper C declaration
14063 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14064
14065 # Transform the output of nm in a C name address pair
14066 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14067
14068 # This is the shared library runtime path variable.
14069 runpath_var=$runpath_var
14070
14071 # This is the shared library path variable.
14072 shlibpath_var=$shlibpath_var
14073
14074 # Is shlibpath searched before the hard-coded library search path?
14075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14076
14077 # How to hardcode a shared library path into an executable.
14078 hardcode_action=$hardcode_action_CXX
14079
14080 # Whether we should hardcode library paths into libraries.
14081 hardcode_into_libs=$hardcode_into_libs
14082
14083 # Flag to hardcode \$libdir into a binary during linking.
14084 # This must work even if \$libdir does not exist.
14085 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14086
14087 # If ld is used when linking, flag to hardcode \$libdir into
14088 # a binary during linking. This must work even if \$libdir does
14089 # not exist.
14090 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14091
14092 # Whether we need a single -rpath flag with a separated argument.
14093 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14094
14095 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14096 # resulting binary.
14097 hardcode_direct=$hardcode_direct_CXX
14098
14099 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14100 # resulting binary.
14101 hardcode_minus_L=$hardcode_minus_L_CXX
14102
14103 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14104 # the resulting binary.
14105 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14106
14107 # Set to yes if building a shared library automatically hardcodes DIR into the library
14108 # and all subsequent libraries and executables linked against it.
14109 hardcode_automatic=$hardcode_automatic_CXX
14110
14111 # Variables whose values should be saved in libtool wrapper scripts and
14112 # restored at relink time.
14113 variables_saved_for_relink="$variables_saved_for_relink"
14114
14115 # Whether libtool must link a program against all its dependency libraries.
14116 link_all_deplibs=$link_all_deplibs_CXX
14117
14118 # Compile-time system search path for libraries
14119 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14120
14121 # Run-time system search path for libraries
14122 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14123
14124 # Fix the shell variable \$srcfile for the compiler.
14125 fix_srcfile_path=$lt_fix_srcfile_path
14126
14127 # Set to yes if exported symbols are required.
14128 always_export_symbols=$always_export_symbols_CXX
14129
14130 # The commands to list exported symbols.
14131 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14132
14133 # The commands to extract the exported symbol list from a shared archive.
14134 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14135
14136 # Symbols that should not be listed in the preloaded symbols.
14137 exclude_expsyms=$lt_exclude_expsyms_CXX
14138
14139 # Symbols that must always be exported.
14140 include_expsyms=$lt_include_expsyms_CXX
14141
14142 # ### END LIBTOOL TAG CONFIG: $tagname
14143
14144 __EOF__
14145
14146
14147 else
14148 # If there is no Makefile yet, we rely on a make rule to execute
14149 # `config.status --recheck' to rerun these tests and create the
14150 # libtool script then.
14151 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14152 if test -f "$ltmain_in"; then
14153 test -f Makefile && make "$ltmain"
14154 fi
14155 fi
14156
14157
14158 ac_ext=c
14159 ac_cpp='$CPP $CPPFLAGS'
14160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14163
14164 CC=$lt_save_CC
14165 LDCXX=$LD
14166 LD=$lt_save_LD
14167 GCC=$lt_save_GCC
14168 with_gnu_ldcxx=$with_gnu_ld
14169 with_gnu_ld=$lt_save_with_gnu_ld
14170 lt_cv_path_LDCXX=$lt_cv_path_LD
14171 lt_cv_path_LD=$lt_save_path_LD
14172 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14173 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14174
14175 else
14176 tagname=""
14177 fi
14178 ;;
14179
14180 F77)
14181 if test -n "$F77" && test "X$F77" != "Xno"; then
14182
14183 ac_ext=f
14184 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14185 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14186 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14187
14188
14189 archive_cmds_need_lc_F77=no
14190 allow_undefined_flag_F77=
14191 always_export_symbols_F77=no
14192 archive_expsym_cmds_F77=
14193 export_dynamic_flag_spec_F77=
14194 hardcode_direct_F77=no
14195 hardcode_libdir_flag_spec_F77=
14196 hardcode_libdir_flag_spec_ld_F77=
14197 hardcode_libdir_separator_F77=
14198 hardcode_minus_L_F77=no
14199 hardcode_automatic_F77=no
14200 module_cmds_F77=
14201 module_expsym_cmds_F77=
14202 link_all_deplibs_F77=unknown
14203 old_archive_cmds_F77=$old_archive_cmds
14204 no_undefined_flag_F77=
14205 whole_archive_flag_spec_F77=
14206 enable_shared_with_static_runtimes_F77=no
14207
14208 # Source file extension for f77 test sources.
14209 ac_ext=f
14210
14211 # Object file extension for compiled f77 test sources.
14212 objext=o
14213 objext_F77=$objext
14214
14215 # Code to be used in simple compile tests
14216 lt_simple_compile_test_code="\
14217 subroutine t
14218 return
14219 end
14220 "
14221
14222 # Code to be used in simple link tests
14223 lt_simple_link_test_code="\
14224 program t
14225 end
14226 "
14227
14228 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14229
14230 # If no C compiler was specified, use CC.
14231 LTCC=${LTCC-"$CC"}
14232
14233 # If no C compiler flags were specified, use CFLAGS.
14234 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14235
14236 # Allow CC to be a program name with arguments.
14237 compiler=$CC
14238
14239
14240 # save warnings/boilerplate of simple test code
14241 ac_outfile=conftest.$ac_objext
14242 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14243 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14244 _lt_compiler_boilerplate=`cat conftest.err`
14245 $rm conftest*
14246
14247 ac_outfile=conftest.$ac_objext
14248 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14249 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14250 _lt_linker_boilerplate=`cat conftest.err`
14251 $rm -r conftest*
14252
14253
14254 # Allow CC to be a program name with arguments.
14255 lt_save_CC="$CC"
14256 CC=${F77-"f77"}
14257 compiler=$CC
14258 compiler_F77=$CC
14259 for cc_temp in $compiler""; do
14260 case $cc_temp in
14261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14263 \-*) ;;
14264 *) break;;
14265 esac
14266 done
14267 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14268
14269
14270 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14271 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14272 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14273 echo "${ECHO_T}$can_build_shared" >&6; }
14274
14275 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14276 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14277 test "$can_build_shared" = "no" && enable_shared=no
14278
14279 # On AIX, shared libraries and static libraries use the same namespace, and
14280 # are all built from PIC.
14281 case $host_os in
14282 aix3*)
14283 test "$enable_shared" = yes && enable_static=no
14284 if test -n "$RANLIB"; then
14285 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14286 postinstall_cmds='$RANLIB $lib'
14287 fi
14288 ;;
14289 aix[4-9]*)
14290 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14291 test "$enable_shared" = yes && enable_static=no
14292 fi
14293 ;;
14294 esac
14295 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14296 echo "${ECHO_T}$enable_shared" >&6; }
14297
14298 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14299 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14300 # Make sure either enable_shared or enable_static is yes.
14301 test "$enable_shared" = yes || enable_static=yes
14302 { echo "$as_me:$LINENO: result: $enable_static" >&5
14303 echo "${ECHO_T}$enable_static" >&6; }
14304
14305 GCC_F77="$G77"
14306 LD_F77="$LD"
14307
14308 lt_prog_compiler_wl_F77=
14309 lt_prog_compiler_pic_F77=
14310 lt_prog_compiler_static_F77=
14311
14312 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14313 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14314
14315 if test "$GCC" = yes; then
14316 lt_prog_compiler_wl_F77='-Wl,'
14317 lt_prog_compiler_static_F77='-static'
14318
14319 case $host_os in
14320 aix*)
14321 # All AIX code is PIC.
14322 if test "$host_cpu" = ia64; then
14323 # AIX 5 now supports IA64 processor
14324 lt_prog_compiler_static_F77='-Bstatic'
14325 fi
14326 ;;
14327
14328 amigaos*)
14329 # FIXME: we need at least 68020 code to build shared libraries, but
14330 # adding the `-m68020' flag to GCC prevents building anything better,
14331 # like `-m68040'.
14332 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14333 ;;
14334
14335 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14336 # PIC is the default for these OSes.
14337 ;;
14338
14339 mingw* | cygwin* | pw32* | os2*)
14340 # This hack is so that the source file can tell whether it is being
14341 # built for inclusion in a dll (and should export symbols for example).
14342 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14343 # (--disable-auto-import) libraries
14344 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14345 ;;
14346
14347 darwin* | rhapsody*)
14348 # PIC is the default on this platform
14349 # Common symbols not allowed in MH_DYLIB files
14350 lt_prog_compiler_pic_F77='-fno-common'
14351 ;;
14352
14353 interix[3-9]*)
14354 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14355 # Instead, we relocate shared libraries at runtime.
14356 ;;
14357
14358 msdosdjgpp*)
14359 # Just because we use GCC doesn't mean we suddenly get shared libraries
14360 # on systems that don't support them.
14361 lt_prog_compiler_can_build_shared_F77=no
14362 enable_shared=no
14363 ;;
14364
14365 sysv4*MP*)
14366 if test -d /usr/nec; then
14367 lt_prog_compiler_pic_F77=-Kconform_pic
14368 fi
14369 ;;
14370
14371 hpux*)
14372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14373 # not for PA HP-UX.
14374 case $host_cpu in
14375 hppa*64*|ia64*)
14376 # +Z the default
14377 ;;
14378 *)
14379 lt_prog_compiler_pic_F77='-fPIC'
14380 ;;
14381 esac
14382 ;;
14383
14384 *)
14385 lt_prog_compiler_pic_F77='-fPIC'
14386 ;;
14387 esac
14388 else
14389 # PORTME Check for flag to pass linker flags through the system compiler.
14390 case $host_os in
14391 aix*)
14392 lt_prog_compiler_wl_F77='-Wl,'
14393 if test "$host_cpu" = ia64; then
14394 # AIX 5 now supports IA64 processor
14395 lt_prog_compiler_static_F77='-Bstatic'
14396 else
14397 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14398 fi
14399 ;;
14400 darwin*)
14401 # PIC is the default on this platform
14402 # Common symbols not allowed in MH_DYLIB files
14403 case $cc_basename in
14404 xlc*)
14405 lt_prog_compiler_pic_F77='-qnocommon'
14406 lt_prog_compiler_wl_F77='-Wl,'
14407 ;;
14408 esac
14409 ;;
14410
14411 mingw* | cygwin* | pw32* | os2*)
14412 # This hack is so that the source file can tell whether it is being
14413 # built for inclusion in a dll (and should export symbols for example).
14414 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14415 ;;
14416
14417 hpux9* | hpux10* | hpux11*)
14418 lt_prog_compiler_wl_F77='-Wl,'
14419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14420 # not for PA HP-UX.
14421 case $host_cpu in
14422 hppa*64*|ia64*)
14423 # +Z the default
14424 ;;
14425 *)
14426 lt_prog_compiler_pic_F77='+Z'
14427 ;;
14428 esac
14429 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14430 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14431 ;;
14432
14433 irix5* | irix6* | nonstopux*)
14434 lt_prog_compiler_wl_F77='-Wl,'
14435 # PIC (with -KPIC) is the default.
14436 lt_prog_compiler_static_F77='-non_shared'
14437 ;;
14438
14439 newsos6)
14440 lt_prog_compiler_pic_F77='-KPIC'
14441 lt_prog_compiler_static_F77='-Bstatic'
14442 ;;
14443
14444 linux* | k*bsd*-gnu)
14445 case $cc_basename in
14446 icc* | ecc*)
14447 lt_prog_compiler_wl_F77='-Wl,'
14448 lt_prog_compiler_pic_F77='-KPIC'
14449 lt_prog_compiler_static_F77='-static'
14450 ;;
14451 pgcc* | pgf77* | pgf90* | pgf95*)
14452 # Portland Group compilers (*not* the Pentium gcc compiler,
14453 # which looks to be a dead project)
14454 lt_prog_compiler_wl_F77='-Wl,'
14455 lt_prog_compiler_pic_F77='-fpic'
14456 lt_prog_compiler_static_F77='-Bstatic'
14457 ;;
14458 ccc*)
14459 lt_prog_compiler_wl_F77='-Wl,'
14460 # All Alpha code is PIC.
14461 lt_prog_compiler_static_F77='-non_shared'
14462 ;;
14463 *)
14464 case `$CC -V 2>&1 | sed 5q` in
14465 *Sun\ C*)
14466 # Sun C 5.9
14467 lt_prog_compiler_pic_F77='-KPIC'
14468 lt_prog_compiler_static_F77='-Bstatic'
14469 lt_prog_compiler_wl_F77='-Wl,'
14470 ;;
14471 *Sun\ F*)
14472 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14473 lt_prog_compiler_pic_F77='-KPIC'
14474 lt_prog_compiler_static_F77='-Bstatic'
14475 lt_prog_compiler_wl_F77=''
14476 ;;
14477 esac
14478 ;;
14479 esac
14480 ;;
14481
14482 osf3* | osf4* | osf5*)
14483 lt_prog_compiler_wl_F77='-Wl,'
14484 # All OSF/1 code is PIC.
14485 lt_prog_compiler_static_F77='-non_shared'
14486 ;;
14487
14488 rdos*)
14489 lt_prog_compiler_static_F77='-non_shared'
14490 ;;
14491
14492 solaris*)
14493 lt_prog_compiler_pic_F77='-KPIC'
14494 lt_prog_compiler_static_F77='-Bstatic'
14495 case $cc_basename in
14496 f77* | f90* | f95*)
14497 lt_prog_compiler_wl_F77='-Qoption ld ';;
14498 *)
14499 lt_prog_compiler_wl_F77='-Wl,';;
14500 esac
14501 ;;
14502
14503 sunos4*)
14504 lt_prog_compiler_wl_F77='-Qoption ld '
14505 lt_prog_compiler_pic_F77='-PIC'
14506 lt_prog_compiler_static_F77='-Bstatic'
14507 ;;
14508
14509 sysv4 | sysv4.2uw2* | sysv4.3*)
14510 lt_prog_compiler_wl_F77='-Wl,'
14511 lt_prog_compiler_pic_F77='-KPIC'
14512 lt_prog_compiler_static_F77='-Bstatic'
14513 ;;
14514
14515 sysv4*MP*)
14516 if test -d /usr/nec ;then
14517 lt_prog_compiler_pic_F77='-Kconform_pic'
14518 lt_prog_compiler_static_F77='-Bstatic'
14519 fi
14520 ;;
14521
14522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14523 lt_prog_compiler_wl_F77='-Wl,'
14524 lt_prog_compiler_pic_F77='-KPIC'
14525 lt_prog_compiler_static_F77='-Bstatic'
14526 ;;
14527
14528 unicos*)
14529 lt_prog_compiler_wl_F77='-Wl,'
14530 lt_prog_compiler_can_build_shared_F77=no
14531 ;;
14532
14533 uts4*)
14534 lt_prog_compiler_pic_F77='-pic'
14535 lt_prog_compiler_static_F77='-Bstatic'
14536 ;;
14537
14538 *)
14539 lt_prog_compiler_can_build_shared_F77=no
14540 ;;
14541 esac
14542 fi
14543
14544 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14545 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14546
14547 #
14548 # Check to make sure the PIC flag actually works.
14549 #
14550 if test -n "$lt_prog_compiler_pic_F77"; then
14551
14552 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14553 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14554 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557 lt_cv_prog_compiler_pic_works_F77=no
14558 ac_outfile=conftest.$ac_objext
14559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14560 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14561 # Insert the option either (1) after the last *FLAGS variable, or
14562 # (2) before a word containing "conftest.", or (3) at the end.
14563 # Note that $ac_compile itself does not contain backslashes and begins
14564 # with a dollar sign (not a hyphen), so the echo should work correctly.
14565 # The option is referenced via a variable to avoid confusing sed.
14566 lt_compile=`echo "$ac_compile" | $SED \
14567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14569 -e 's:$: $lt_compiler_flag:'`
14570 (eval echo "\"\$as_me:14571: $lt_compile\"" >&5)
14571 (eval "$lt_compile" 2>conftest.err)
14572 ac_status=$?
14573 cat conftest.err >&5
14574 echo "$as_me:14575: \$? = $ac_status" >&5
14575 if (exit $ac_status) && test -s "$ac_outfile"; then
14576 # The compiler can only warn and ignore the option if not recognized
14577 # So say no if there are warnings other than the usual output.
14578 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14581 lt_cv_prog_compiler_pic_works_F77=yes
14582 fi
14583 fi
14584 $rm conftest*
14585
14586 fi
14587 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14588 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14589
14590 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14591 case $lt_prog_compiler_pic_F77 in
14592 "" | " "*) ;;
14593 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14594 esac
14595 else
14596 lt_prog_compiler_pic_F77=
14597 lt_prog_compiler_can_build_shared_F77=no
14598 fi
14599
14600 fi
14601 case $host_os in
14602 # For platforms which do not support PIC, -DPIC is meaningless:
14603 *djgpp*)
14604 lt_prog_compiler_pic_F77=
14605 ;;
14606 *)
14607 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14608 ;;
14609 esac
14610
14611 #
14612 # Check to make sure the static flag actually works.
14613 #
14614 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14615 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14616 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14617 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620 lt_cv_prog_compiler_static_works_F77=no
14621 save_LDFLAGS="$LDFLAGS"
14622 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14623 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14624 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14625 # The linker can only warn and ignore the option if not recognized
14626 # So say no if there are warnings
14627 if test -s conftest.err; then
14628 # Append any errors to the config.log.
14629 cat conftest.err 1>&5
14630 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14632 if diff conftest.exp conftest.er2 >/dev/null; then
14633 lt_cv_prog_compiler_static_works_F77=yes
14634 fi
14635 else
14636 lt_cv_prog_compiler_static_works_F77=yes
14637 fi
14638 fi
14639 $rm -r conftest*
14640 LDFLAGS="$save_LDFLAGS"
14641
14642 fi
14643 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14644 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14645
14646 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14647 :
14648 else
14649 lt_prog_compiler_static_F77=
14650 fi
14651
14652
14653 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14654 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14655 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14657 else
14658 lt_cv_prog_compiler_c_o_F77=no
14659 $rm -r conftest 2>/dev/null
14660 mkdir conftest
14661 cd conftest
14662 mkdir out
14663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14664
14665 lt_compiler_flag="-o out/conftest2.$ac_objext"
14666 # Insert the option either (1) after the last *FLAGS variable, or
14667 # (2) before a word containing "conftest.", or (3) at the end.
14668 # Note that $ac_compile itself does not contain backslashes and begins
14669 # with a dollar sign (not a hyphen), so the echo should work correctly.
14670 lt_compile=`echo "$ac_compile" | $SED \
14671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14673 -e 's:$: $lt_compiler_flag:'`
14674 (eval echo "\"\$as_me:14675: $lt_compile\"" >&5)
14675 (eval "$lt_compile" 2>out/conftest.err)
14676 ac_status=$?
14677 cat out/conftest.err >&5
14678 echo "$as_me:14679: \$? = $ac_status" >&5
14679 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14680 then
14681 # The compiler can only warn and ignore the option if not recognized
14682 # So say no if there are warnings
14683 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14686 lt_cv_prog_compiler_c_o_F77=yes
14687 fi
14688 fi
14689 chmod u+w . 2>&5
14690 $rm conftest*
14691 # SGI C++ compiler will create directory out/ii_files/ for
14692 # template instantiation
14693 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14694 $rm out/* && rmdir out
14695 cd ..
14696 rmdir conftest
14697 $rm conftest*
14698
14699 fi
14700 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14701 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14702
14703
14704 hard_links="nottested"
14705 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14706 # do not overwrite the value of need_locks provided by the user
14707 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14708 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14709 hard_links=yes
14710 $rm conftest*
14711 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14712 touch conftest.a
14713 ln conftest.a conftest.b 2>&5 || hard_links=no
14714 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14715 { echo "$as_me:$LINENO: result: $hard_links" >&5
14716 echo "${ECHO_T}$hard_links" >&6; }
14717 if test "$hard_links" = no; then
14718 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14719 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14720 need_locks=warn
14721 fi
14722 else
14723 need_locks=no
14724 fi
14725
14726 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14727 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14728
14729 runpath_var=
14730 allow_undefined_flag_F77=
14731 enable_shared_with_static_runtimes_F77=no
14732 archive_cmds_F77=
14733 archive_expsym_cmds_F77=
14734 old_archive_From_new_cmds_F77=
14735 old_archive_from_expsyms_cmds_F77=
14736 export_dynamic_flag_spec_F77=
14737 whole_archive_flag_spec_F77=
14738 thread_safe_flag_spec_F77=
14739 hardcode_libdir_flag_spec_F77=
14740 hardcode_libdir_flag_spec_ld_F77=
14741 hardcode_libdir_separator_F77=
14742 hardcode_direct_F77=no
14743 hardcode_minus_L_F77=no
14744 hardcode_shlibpath_var_F77=unsupported
14745 link_all_deplibs_F77=unknown
14746 hardcode_automatic_F77=no
14747 module_cmds_F77=
14748 module_expsym_cmds_F77=
14749 always_export_symbols_F77=no
14750 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14751 # include_expsyms should be a list of space-separated symbols to be *always*
14752 # included in the symbol list
14753 include_expsyms_F77=
14754 # exclude_expsyms can be an extended regexp of symbols to exclude
14755 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14756 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14757 # as well as any symbol that contains `d'.
14758 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14760 # platforms (ab)use it in PIC code, but their linkers get confused if
14761 # the symbol is explicitly referenced. Since portable code cannot
14762 # rely on this symbol name, it's probably fine to never include it in
14763 # preloaded symbol tables.
14764 # Exclude shared library initialization/finalization symbols.
14765 extract_expsyms_cmds=
14766 # Just being paranoid about ensuring that cc_basename is set.
14767 for cc_temp in $compiler""; do
14768 case $cc_temp in
14769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14771 \-*) ;;
14772 *) break;;
14773 esac
14774 done
14775 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14776
14777 case $host_os in
14778 cygwin* | mingw* | pw32*)
14779 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14780 # When not using gcc, we currently assume that we are using
14781 # Microsoft Visual C++.
14782 if test "$GCC" != yes; then
14783 with_gnu_ld=no
14784 fi
14785 ;;
14786 interix*)
14787 # we just hope/assume this is gcc and not c89 (= MSVC++)
14788 with_gnu_ld=yes
14789 ;;
14790 openbsd*)
14791 with_gnu_ld=no
14792 ;;
14793 esac
14794
14795 ld_shlibs_F77=yes
14796 if test "$with_gnu_ld" = yes; then
14797 # If archive_cmds runs LD, not CC, wlarc should be empty
14798 wlarc='${wl}'
14799
14800 # Set some defaults for GNU ld with shared library support. These
14801 # are reset later if shared libraries are not supported. Putting them
14802 # here allows them to be overridden if necessary.
14803 runpath_var=LD_RUN_PATH
14804 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14805 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14806 # ancient GNU ld didn't support --whole-archive et. al.
14807 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14808 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14809 else
14810 whole_archive_flag_spec_F77=
14811 fi
14812 supports_anon_versioning=no
14813 case `$LD -v 2>/dev/null` in
14814 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14815 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14816 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14817 *\ 2.11.*) ;; # other 2.11 versions
14818 *) supports_anon_versioning=yes ;;
14819 esac
14820
14821 # See if GNU ld supports shared libraries.
14822 case $host_os in
14823 aix[3-9]*)
14824 # On AIX/PPC, the GNU linker is very broken
14825 if test "$host_cpu" != ia64; then
14826 ld_shlibs_F77=no
14827 cat <<EOF 1>&2
14828
14829 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14830 *** to be unable to reliably create shared libraries on AIX.
14831 *** Therefore, libtool is disabling shared libraries support. If you
14832 *** really care for shared libraries, you may want to modify your PATH
14833 *** so that a non-GNU linker is found, and then restart.
14834
14835 EOF
14836 fi
14837 ;;
14838
14839 amigaos*)
14840 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)'
14841 hardcode_libdir_flag_spec_F77='-L$libdir'
14842 hardcode_minus_L_F77=yes
14843
14844 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14845 # that the semantics of dynamic libraries on AmigaOS, at least up
14846 # to version 4, is to share data among multiple programs linked
14847 # with the same dynamic library. Since this doesn't match the
14848 # behavior of shared libraries on other platforms, we can't use
14849 # them.
14850 ld_shlibs_F77=no
14851 ;;
14852
14853 beos*)
14854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14855 allow_undefined_flag_F77=unsupported
14856 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14857 # support --undefined. This deserves some investigation. FIXME
14858 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859 else
14860 ld_shlibs_F77=no
14861 fi
14862 ;;
14863
14864 cygwin* | mingw* | pw32*)
14865 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14866 # as there is no search path for DLLs.
14867 hardcode_libdir_flag_spec_F77='-L$libdir'
14868 allow_undefined_flag_F77=unsupported
14869 always_export_symbols_F77=no
14870 enable_shared_with_static_runtimes_F77=yes
14871 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14872
14873 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14874 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14875 # If the export-symbols file already is a .def file (1st line
14876 # is EXPORTS), use it as is; otherwise, prepend...
14877 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14878 cp $export_symbols $output_objdir/$soname.def;
14879 else
14880 echo EXPORTS > $output_objdir/$soname.def;
14881 cat $export_symbols >> $output_objdir/$soname.def;
14882 fi~
14883 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14884 else
14885 ld_shlibs_F77=no
14886 fi
14887 ;;
14888
14889 interix[3-9]*)
14890 hardcode_direct_F77=no
14891 hardcode_shlibpath_var_F77=no
14892 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14893 export_dynamic_flag_spec_F77='${wl}-E'
14894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14895 # Instead, shared libraries are loaded at an image base (0x10000000 by
14896 # default) and relocated if they conflict, which is a slow very memory
14897 # consuming and fragmenting process. To avoid this, we pick a random,
14898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14900 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'
14901 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'
14902 ;;
14903
14904 gnu* | linux* | k*bsd*-gnu)
14905 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14906 tmp_addflag=
14907 case $cc_basename,$host_cpu in
14908 pgcc*) # Portland Group C compiler
14909 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'
14910 tmp_addflag=' $pic_flag'
14911 ;;
14912 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14913 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'
14914 tmp_addflag=' $pic_flag -Mnomain' ;;
14915 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14916 tmp_addflag=' -i_dynamic' ;;
14917 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14918 tmp_addflag=' -i_dynamic -nofor_main' ;;
14919 ifc* | ifort*) # Intel Fortran compiler
14920 tmp_addflag=' -nofor_main' ;;
14921 esac
14922 case `$CC -V 2>&1 | sed 5q` in
14923 *Sun\ C*) # Sun C 5.9
14924 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'
14925 tmp_sharedflag='-G' ;;
14926 *Sun\ F*) # Sun Fortran 8.3
14927 tmp_sharedflag='-G' ;;
14928 *)
14929 tmp_sharedflag='-shared' ;;
14930 esac
14931 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14932
14933 if test $supports_anon_versioning = yes; then
14934 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14935 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14936 $echo "local: *; };" >> $output_objdir/$libname.ver~
14937 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14938 fi
14939 link_all_deplibs_F77=no
14940 else
14941 ld_shlibs_F77=no
14942 fi
14943 ;;
14944
14945 netbsd* | netbsdelf*-gnu)
14946 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14947 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14948 wlarc=
14949 else
14950 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14951 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14952 fi
14953 ;;
14954
14955 solaris*)
14956 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14957 ld_shlibs_F77=no
14958 cat <<EOF 1>&2
14959
14960 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14961 *** create shared libraries on Solaris systems. Therefore, libtool
14962 *** is disabling shared libraries support. We urge you to upgrade GNU
14963 *** binutils to release 2.9.1 or newer. Another option is to modify
14964 *** your PATH or compiler configuration so that the native linker is
14965 *** used, and then restart.
14966
14967 EOF
14968 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14969 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14970 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14971 else
14972 ld_shlibs_F77=no
14973 fi
14974 ;;
14975
14976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14977 case `$LD -v 2>&1` in
14978 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14979 ld_shlibs_F77=no
14980 cat <<_LT_EOF 1>&2
14981
14982 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14983 *** reliably create shared libraries on SCO systems. Therefore, libtool
14984 *** is disabling shared libraries support. We urge you to upgrade GNU
14985 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14986 *** your PATH or compiler configuration so that the native linker is
14987 *** used, and then restart.
14988
14989 _LT_EOF
14990 ;;
14991 *)
14992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14993 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14994 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14995 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14996 else
14997 ld_shlibs_F77=no
14998 fi
14999 ;;
15000 esac
15001 ;;
15002
15003 sunos4*)
15004 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15005 wlarc=
15006 hardcode_direct_F77=yes
15007 hardcode_shlibpath_var_F77=no
15008 ;;
15009
15010 *)
15011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15012 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15013 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15014 else
15015 ld_shlibs_F77=no
15016 fi
15017 ;;
15018 esac
15019
15020 if test "$ld_shlibs_F77" = no; then
15021 runpath_var=
15022 hardcode_libdir_flag_spec_F77=
15023 export_dynamic_flag_spec_F77=
15024 whole_archive_flag_spec_F77=
15025 fi
15026 else
15027 # PORTME fill in a description of your system's linker (not GNU ld)
15028 case $host_os in
15029 aix3*)
15030 allow_undefined_flag_F77=unsupported
15031 always_export_symbols_F77=yes
15032 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'
15033 # Note: this linker hardcodes the directories in LIBPATH if there
15034 # are no directories specified by -L.
15035 hardcode_minus_L_F77=yes
15036 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15037 # Neither direct hardcoding nor static linking is supported with a
15038 # broken collect2.
15039 hardcode_direct_F77=unsupported
15040 fi
15041 ;;
15042
15043 aix[4-9]*)
15044 if test "$host_cpu" = ia64; then
15045 # On IA64, the linker does run time linking by default, so we don't
15046 # have to do anything special.
15047 aix_use_runtimelinking=no
15048 exp_sym_flag='-Bexport'
15049 no_entry_flag=""
15050 else
15051 # If we're using GNU nm, then we don't want the "-C" option.
15052 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15053 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15054 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'
15055 else
15056 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'
15057 fi
15058 aix_use_runtimelinking=no
15059
15060 # Test if we are trying to use run time linking or normal
15061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15062 # need to do runtime linking.
15063 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15064 for ld_flag in $LDFLAGS; do
15065 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15066 aix_use_runtimelinking=yes
15067 break
15068 fi
15069 done
15070 ;;
15071 esac
15072
15073 exp_sym_flag='-bexport'
15074 no_entry_flag='-bnoentry'
15075 fi
15076
15077 # When large executables or shared objects are built, AIX ld can
15078 # have problems creating the table of contents. If linking a library
15079 # or program results in "error TOC overflow" add -mminimal-toc to
15080 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15081 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15082
15083 archive_cmds_F77=''
15084 hardcode_direct_F77=yes
15085 hardcode_libdir_separator_F77=':'
15086 link_all_deplibs_F77=yes
15087
15088 if test "$GCC" = yes; then
15089 case $host_os in aix4.[012]|aix4.[012].*)
15090 # We only want to do this on AIX 4.2 and lower, the check
15091 # below for broken collect2 doesn't work under 4.3+
15092 collect2name=`${CC} -print-prog-name=collect2`
15093 if test -f "$collect2name" && \
15094 strings "$collect2name" | grep resolve_lib_name >/dev/null
15095 then
15096 # We have reworked collect2
15097 :
15098 else
15099 # We have old collect2
15100 hardcode_direct_F77=unsupported
15101 # It fails to find uninstalled libraries when the uninstalled
15102 # path is not listed in the libpath. Setting hardcode_minus_L
15103 # to unsupported forces relinking
15104 hardcode_minus_L_F77=yes
15105 hardcode_libdir_flag_spec_F77='-L$libdir'
15106 hardcode_libdir_separator_F77=
15107 fi
15108 ;;
15109 esac
15110 shared_flag='-shared'
15111 if test "$aix_use_runtimelinking" = yes; then
15112 shared_flag="$shared_flag "'${wl}-G'
15113 fi
15114 else
15115 # not using gcc
15116 if test "$host_cpu" = ia64; then
15117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15118 # chokes on -Wl,-G. The following line is correct:
15119 shared_flag='-G'
15120 else
15121 if test "$aix_use_runtimelinking" = yes; then
15122 shared_flag='${wl}-G'
15123 else
15124 shared_flag='${wl}-bM:SRE'
15125 fi
15126 fi
15127 fi
15128
15129 # It seems that -bexpall does not export symbols beginning with
15130 # underscore (_), so it is better to generate a list of symbols to export.
15131 always_export_symbols_F77=yes
15132 if test "$aix_use_runtimelinking" = yes; then
15133 # Warning - without using the other runtime loading flags (-brtl),
15134 # -berok will link without error, but may produce a broken library.
15135 allow_undefined_flag_F77='-berok'
15136 # Determine the default libpath from the value encoded in an empty executable.
15137 cat >conftest.$ac_ext <<_ACEOF
15138 program main
15139
15140 end
15141 _ACEOF
15142 rm -f conftest.$ac_objext conftest$ac_exeext
15143 if { (ac_try="$ac_link"
15144 case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15147 esac
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_link") 2>conftest.er1
15150 ac_status=$?
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } && {
15156 test -z "$ac_f77_werror_flag" ||
15157 test ! -s conftest.err
15158 } && test -s conftest$ac_exeext &&
15159 $as_test_x conftest$ac_exeext; then
15160
15161 lt_aix_libpath_sed='
15162 /Import File Strings/,/^$/ {
15163 /^0/ {
15164 s/^0 *\(.*\)$/\1/
15165 p
15166 }
15167 }'
15168 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15169 # Check for a 64-bit object if we didn't find anything.
15170 if test -z "$aix_libpath"; then
15171 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15172 fi
15173 else
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177
15178 fi
15179
15180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15181 conftest$ac_exeext conftest.$ac_ext
15182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15183
15184 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15185 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"
15186 else
15187 if test "$host_cpu" = ia64; then
15188 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15189 allow_undefined_flag_F77="-z nodefs"
15190 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"
15191 else
15192 # Determine the default libpath from the value encoded in an empty executable.
15193 cat >conftest.$ac_ext <<_ACEOF
15194 program main
15195
15196 end
15197 _ACEOF
15198 rm -f conftest.$ac_objext conftest$ac_exeext
15199 if { (ac_try="$ac_link"
15200 case "(($ac_try" in
15201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202 *) ac_try_echo=$ac_try;;
15203 esac
15204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205 (eval "$ac_link") 2>conftest.er1
15206 ac_status=$?
15207 grep -v '^ *+' conftest.er1 >conftest.err
15208 rm -f conftest.er1
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } && {
15212 test -z "$ac_f77_werror_flag" ||
15213 test ! -s conftest.err
15214 } && test -s conftest$ac_exeext &&
15215 $as_test_x conftest$ac_exeext; then
15216
15217 lt_aix_libpath_sed='
15218 /Import File Strings/,/^$/ {
15219 /^0/ {
15220 s/^0 *\(.*\)$/\1/
15221 p
15222 }
15223 }'
15224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15225 # Check for a 64-bit object if we didn't find anything.
15226 if test -z "$aix_libpath"; then
15227 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15228 fi
15229 else
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15232
15233
15234 fi
15235
15236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15237 conftest$ac_exeext conftest.$ac_ext
15238 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15239
15240 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15241 # Warning - without using the other run time loading flags,
15242 # -berok will link without error, but may produce a broken library.
15243 no_undefined_flag_F77=' ${wl}-bernotok'
15244 allow_undefined_flag_F77=' ${wl}-berok'
15245 # Exported symbols can be pulled into shared objects from archives
15246 whole_archive_flag_spec_F77='$convenience'
15247 archive_cmds_need_lc_F77=yes
15248 # This is similar to how AIX traditionally builds its shared libraries.
15249 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'
15250 fi
15251 fi
15252 ;;
15253
15254 amigaos*)
15255 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)'
15256 hardcode_libdir_flag_spec_F77='-L$libdir'
15257 hardcode_minus_L_F77=yes
15258 # see comment about different semantics on the GNU ld section
15259 ld_shlibs_F77=no
15260 ;;
15261
15262 bsdi[45]*)
15263 export_dynamic_flag_spec_F77=-rdynamic
15264 ;;
15265
15266 cygwin* | mingw* | pw32*)
15267 # When not using gcc, we currently assume that we are using
15268 # Microsoft Visual C++.
15269 # hardcode_libdir_flag_spec is actually meaningless, as there is
15270 # no search path for DLLs.
15271 hardcode_libdir_flag_spec_F77=' '
15272 allow_undefined_flag_F77=unsupported
15273 # Tell ltmain to make .lib files, not .a files.
15274 libext=lib
15275 # Tell ltmain to make .dll files, not .so files.
15276 shrext_cmds=".dll"
15277 # FIXME: Setting linknames here is a bad hack.
15278 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15279 # The linker will automatically build a .lib file if we build a DLL.
15280 old_archive_From_new_cmds_F77='true'
15281 # FIXME: Should let the user specify the lib program.
15282 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15283 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15284 enable_shared_with_static_runtimes_F77=yes
15285 ;;
15286
15287 darwin* | rhapsody*)
15288 case $host_os in
15289 rhapsody* | darwin1.[012])
15290 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15291 ;;
15292 *) # Darwin 1.3 on
15293 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15294 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15295 else
15296 case ${MACOSX_DEPLOYMENT_TARGET} in
15297 10.[012])
15298 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15299 ;;
15300 10.*)
15301 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15302 ;;
15303 esac
15304 fi
15305 ;;
15306 esac
15307 archive_cmds_need_lc_F77=no
15308 hardcode_direct_F77=no
15309 hardcode_automatic_F77=yes
15310 hardcode_shlibpath_var_F77=unsupported
15311 whole_archive_flag_spec_F77=''
15312 link_all_deplibs_F77=yes
15313 if test "$GCC" = yes ; then
15314 output_verbose_link_cmd='echo'
15315 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}"
15316 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15317 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}"
15318 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}"
15319 else
15320 case $cc_basename in
15321 xlc*)
15322 output_verbose_link_cmd='echo'
15323 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15324 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15325 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15326 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}'
15327 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}'
15328 ;;
15329 *)
15330 ld_shlibs_F77=no
15331 ;;
15332 esac
15333 fi
15334 ;;
15335
15336 dgux*)
15337 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15338 hardcode_libdir_flag_spec_F77='-L$libdir'
15339 hardcode_shlibpath_var_F77=no
15340 ;;
15341
15342 freebsd1*)
15343 ld_shlibs_F77=no
15344 ;;
15345
15346 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15347 # support. Future versions do this automatically, but an explicit c++rt0.o
15348 # does not break anything, and helps significantly (at the cost of a little
15349 # extra space).
15350 freebsd2.2*)
15351 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15352 hardcode_libdir_flag_spec_F77='-R$libdir'
15353 hardcode_direct_F77=yes
15354 hardcode_shlibpath_var_F77=no
15355 ;;
15356
15357 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15358 freebsd2*)
15359 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15360 hardcode_direct_F77=yes
15361 hardcode_minus_L_F77=yes
15362 hardcode_shlibpath_var_F77=no
15363 ;;
15364
15365 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15366 freebsd* | dragonfly*)
15367 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15368 hardcode_libdir_flag_spec_F77='-R$libdir'
15369 hardcode_direct_F77=yes
15370 hardcode_shlibpath_var_F77=no
15371 ;;
15372
15373 hpux9*)
15374 if test "$GCC" = yes; then
15375 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'
15376 else
15377 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'
15378 fi
15379 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15380 hardcode_libdir_separator_F77=:
15381 hardcode_direct_F77=yes
15382
15383 # hardcode_minus_L: Not really in the search PATH,
15384 # but as the default location of the library.
15385 hardcode_minus_L_F77=yes
15386 export_dynamic_flag_spec_F77='${wl}-E'
15387 ;;
15388
15389 hpux10*)
15390 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15391 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15392 else
15393 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15394 fi
15395 if test "$with_gnu_ld" = no; then
15396 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15397 hardcode_libdir_separator_F77=:
15398
15399 hardcode_direct_F77=yes
15400 export_dynamic_flag_spec_F77='${wl}-E'
15401
15402 # hardcode_minus_L: Not really in the search PATH,
15403 # but as the default location of the library.
15404 hardcode_minus_L_F77=yes
15405 fi
15406 ;;
15407
15408 hpux11*)
15409 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15410 case $host_cpu in
15411 hppa*64*)
15412 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15413 ;;
15414 ia64*)
15415 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15416 ;;
15417 *)
15418 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15419 ;;
15420 esac
15421 else
15422 case $host_cpu in
15423 hppa*64*)
15424 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15425 ;;
15426 ia64*)
15427 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15428 ;;
15429 *)
15430 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15431 ;;
15432 esac
15433 fi
15434 if test "$with_gnu_ld" = no; then
15435 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15436 hardcode_libdir_separator_F77=:
15437
15438 case $host_cpu in
15439 hppa*64*|ia64*)
15440 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15441 hardcode_direct_F77=no
15442 hardcode_shlibpath_var_F77=no
15443 ;;
15444 *)
15445 hardcode_direct_F77=yes
15446 export_dynamic_flag_spec_F77='${wl}-E'
15447
15448 # hardcode_minus_L: Not really in the search PATH,
15449 # but as the default location of the library.
15450 hardcode_minus_L_F77=yes
15451 ;;
15452 esac
15453 fi
15454 ;;
15455
15456 irix5* | irix6* | nonstopux*)
15457 if test "$GCC" = yes; then
15458 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'
15459 else
15460 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'
15461 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15462 fi
15463 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15464 hardcode_libdir_separator_F77=:
15465 link_all_deplibs_F77=yes
15466 ;;
15467
15468 netbsd* | netbsdelf*-gnu)
15469 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15470 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15471 else
15472 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15473 fi
15474 hardcode_libdir_flag_spec_F77='-R$libdir'
15475 hardcode_direct_F77=yes
15476 hardcode_shlibpath_var_F77=no
15477 ;;
15478
15479 newsos6)
15480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15481 hardcode_direct_F77=yes
15482 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15483 hardcode_libdir_separator_F77=:
15484 hardcode_shlibpath_var_F77=no
15485 ;;
15486
15487 openbsd*)
15488 if test -f /usr/libexec/ld.so; then
15489 hardcode_direct_F77=yes
15490 hardcode_shlibpath_var_F77=no
15491 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15492 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15493 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15494 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15495 export_dynamic_flag_spec_F77='${wl}-E'
15496 else
15497 case $host_os in
15498 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15499 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15500 hardcode_libdir_flag_spec_F77='-R$libdir'
15501 ;;
15502 *)
15503 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15504 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15505 ;;
15506 esac
15507 fi
15508 else
15509 ld_shlibs_F77=no
15510 fi
15511 ;;
15512
15513 os2*)
15514 hardcode_libdir_flag_spec_F77='-L$libdir'
15515 hardcode_minus_L_F77=yes
15516 allow_undefined_flag_F77=unsupported
15517 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'
15518 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15519 ;;
15520
15521 osf3*)
15522 if test "$GCC" = yes; then
15523 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15524 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'
15525 else
15526 allow_undefined_flag_F77=' -expect_unresolved \*'
15527 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'
15528 fi
15529 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15530 hardcode_libdir_separator_F77=:
15531 ;;
15532
15533 osf4* | osf5*) # as osf3* with the addition of -msym flag
15534 if test "$GCC" = yes; then
15535 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15536 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'
15537 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15538 else
15539 allow_undefined_flag_F77=' -expect_unresolved \*'
15540 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'
15541 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~
15542 $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'
15543
15544 # Both c and cxx compiler support -rpath directly
15545 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15546 fi
15547 hardcode_libdir_separator_F77=:
15548 ;;
15549
15550 solaris*)
15551 no_undefined_flag_F77=' -z text'
15552 if test "$GCC" = yes; then
15553 wlarc='${wl}'
15554 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15555 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15556 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15557 else
15558 wlarc=''
15559 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15560 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15561 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15562 fi
15563 hardcode_libdir_flag_spec_F77='-R$libdir'
15564 hardcode_shlibpath_var_F77=no
15565 case $host_os in
15566 solaris2.[0-5] | solaris2.[0-5].*) ;;
15567 *)
15568 # The compiler driver will combine and reorder linker options,
15569 # but understands `-z linker_flag'. GCC discards it without `$wl',
15570 # but is careful enough not to reorder.
15571 # Supported since Solaris 2.6 (maybe 2.5.1?)
15572 if test "$GCC" = yes; then
15573 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15574 else
15575 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15576 fi
15577 ;;
15578 esac
15579 link_all_deplibs_F77=yes
15580 ;;
15581
15582 sunos4*)
15583 if test "x$host_vendor" = xsequent; then
15584 # Use $CC to link under sequent, because it throws in some extra .o
15585 # files that make .init and .fini sections work.
15586 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15587 else
15588 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15589 fi
15590 hardcode_libdir_flag_spec_F77='-L$libdir'
15591 hardcode_direct_F77=yes
15592 hardcode_minus_L_F77=yes
15593 hardcode_shlibpath_var_F77=no
15594 ;;
15595
15596 sysv4)
15597 case $host_vendor in
15598 sni)
15599 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15600 hardcode_direct_F77=yes # is this really true???
15601 ;;
15602 siemens)
15603 ## LD is ld it makes a PLAMLIB
15604 ## CC just makes a GrossModule.
15605 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15606 reload_cmds_F77='$CC -r -o $output$reload_objs'
15607 hardcode_direct_F77=no
15608 ;;
15609 motorola)
15610 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15612 ;;
15613 esac
15614 runpath_var='LD_RUN_PATH'
15615 hardcode_shlibpath_var_F77=no
15616 ;;
15617
15618 sysv4.3*)
15619 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620 hardcode_shlibpath_var_F77=no
15621 export_dynamic_flag_spec_F77='-Bexport'
15622 ;;
15623
15624 sysv4*MP*)
15625 if test -d /usr/nec; then
15626 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15627 hardcode_shlibpath_var_F77=no
15628 runpath_var=LD_RUN_PATH
15629 hardcode_runpath_var=yes
15630 ld_shlibs_F77=yes
15631 fi
15632 ;;
15633
15634 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15635 no_undefined_flag_F77='${wl}-z,text'
15636 archive_cmds_need_lc_F77=no
15637 hardcode_shlibpath_var_F77=no
15638 runpath_var='LD_RUN_PATH'
15639
15640 if test "$GCC" = yes; then
15641 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15642 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15643 else
15644 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15645 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15646 fi
15647 ;;
15648
15649 sysv5* | sco3.2v5* | sco5v6*)
15650 # Note: We can NOT use -z defs as we might desire, because we do not
15651 # link with -lc, and that would cause any symbols used from libc to
15652 # always be unresolved, which means just about no library would
15653 # ever link correctly. If we're not using GNU ld we use -z text
15654 # though, which does catch some bad symbols but isn't as heavy-handed
15655 # as -z defs.
15656 no_undefined_flag_F77='${wl}-z,text'
15657 allow_undefined_flag_F77='${wl}-z,nodefs'
15658 archive_cmds_need_lc_F77=no
15659 hardcode_shlibpath_var_F77=no
15660 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15661 hardcode_libdir_separator_F77=':'
15662 link_all_deplibs_F77=yes
15663 export_dynamic_flag_spec_F77='${wl}-Bexport'
15664 runpath_var='LD_RUN_PATH'
15665
15666 if test "$GCC" = yes; then
15667 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15668 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15669 else
15670 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15671 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15672 fi
15673 ;;
15674
15675 uts4*)
15676 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677 hardcode_libdir_flag_spec_F77='-L$libdir'
15678 hardcode_shlibpath_var_F77=no
15679 ;;
15680
15681 *)
15682 ld_shlibs_F77=no
15683 ;;
15684 esac
15685 fi
15686
15687 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15688 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15689 test "$ld_shlibs_F77" = no && can_build_shared=no
15690
15691 #
15692 # Do we need to explicitly link libc?
15693 #
15694 case "x$archive_cmds_need_lc_F77" in
15695 x|xyes)
15696 # Assume -lc should be added
15697 archive_cmds_need_lc_F77=yes
15698
15699 if test "$enable_shared" = yes && test "$GCC" = yes; then
15700 case $archive_cmds_F77 in
15701 *'~'*)
15702 # FIXME: we may have to deal with multi-command sequences.
15703 ;;
15704 '$CC '*)
15705 # Test whether the compiler implicitly links with -lc since on some
15706 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15707 # to ld, don't add -lc before -lgcc.
15708 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15709 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15710 $rm conftest*
15711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15712
15713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15714 (eval $ac_compile) 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } 2>conftest.err; then
15718 soname=conftest
15719 lib=conftest
15720 libobjs=conftest.$ac_objext
15721 deplibs=
15722 wl=$lt_prog_compiler_wl_F77
15723 pic_flag=$lt_prog_compiler_pic_F77
15724 compiler_flags=-v
15725 linker_flags=-v
15726 verstring=
15727 output_objdir=.
15728 libname=conftest
15729 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15730 allow_undefined_flag_F77=
15731 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15732 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }
15736 then
15737 archive_cmds_need_lc_F77=no
15738 else
15739 archive_cmds_need_lc_F77=yes
15740 fi
15741 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15742 else
15743 cat conftest.err 1>&5
15744 fi
15745 $rm conftest*
15746 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15747 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15748 ;;
15749 esac
15750 fi
15751 ;;
15752 esac
15753
15754 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15755 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15756 library_names_spec=
15757 libname_spec='lib$name'
15758 soname_spec=
15759 shrext_cmds=".so"
15760 postinstall_cmds=
15761 postuninstall_cmds=
15762 finish_cmds=
15763 finish_eval=
15764 shlibpath_var=
15765 shlibpath_overrides_runpath=unknown
15766 version_type=none
15767 dynamic_linker="$host_os ld.so"
15768 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15769
15770 need_lib_prefix=unknown
15771 hardcode_into_libs=no
15772
15773 # when you set need_version to no, make sure it does not cause -set_version
15774 # flags to be left without arguments
15775 need_version=unknown
15776
15777 case $host_os in
15778 aix3*)
15779 version_type=linux
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15781 shlibpath_var=LIBPATH
15782
15783 # AIX 3 has no versioning support, so we append a major version to the name.
15784 soname_spec='${libname}${release}${shared_ext}$major'
15785 ;;
15786
15787 aix[4-9]*)
15788 version_type=linux
15789 need_lib_prefix=no
15790 need_version=no
15791 hardcode_into_libs=yes
15792 if test "$host_cpu" = ia64; then
15793 # AIX 5 supports IA64
15794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15795 shlibpath_var=LD_LIBRARY_PATH
15796 else
15797 # With GCC up to 2.95.x, collect2 would create an import file
15798 # for dependence libraries. The import file would start with
15799 # the line `#! .'. This would cause the generated library to
15800 # depend on `.', always an invalid library. This was fixed in
15801 # development snapshots of GCC prior to 3.0.
15802 case $host_os in
15803 aix4 | aix4.[01] | aix4.[01].*)
15804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15805 echo ' yes '
15806 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15807 :
15808 else
15809 can_build_shared=no
15810 fi
15811 ;;
15812 esac
15813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15814 # soname into executable. Probably we can add versioning support to
15815 # collect2, so additional links can be useful in future.
15816 if test "$aix_use_runtimelinking" = yes; then
15817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15818 # instead of lib<name>.a to let people know that these are not
15819 # typical AIX shared libraries.
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821 else
15822 # We preserve .a as extension for shared libraries through AIX4.2
15823 # and later when we are not doing run time linking.
15824 library_names_spec='${libname}${release}.a $libname.a'
15825 soname_spec='${libname}${release}${shared_ext}$major'
15826 fi
15827 shlibpath_var=LIBPATH
15828 fi
15829 ;;
15830
15831 amigaos*)
15832 library_names_spec='$libname.ixlibrary $libname.a'
15833 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15834 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'
15835 ;;
15836
15837 beos*)
15838 library_names_spec='${libname}${shared_ext}'
15839 dynamic_linker="$host_os ld.so"
15840 shlibpath_var=LIBRARY_PATH
15841 ;;
15842
15843 bsdi[45]*)
15844 version_type=linux
15845 need_version=no
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847 soname_spec='${libname}${release}${shared_ext}$major'
15848 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15849 shlibpath_var=LD_LIBRARY_PATH
15850 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15851 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15852 # the default ld.so.conf also contains /usr/contrib/lib and
15853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15854 # libtool to hard-code these into programs
15855 ;;
15856
15857 cygwin* | mingw* | pw32*)
15858 version_type=windows
15859 shrext_cmds=".dll"
15860 need_version=no
15861 need_lib_prefix=no
15862
15863 case $GCC,$host_os in
15864 yes,cygwin* | yes,mingw* | yes,pw32*)
15865 library_names_spec='$libname.dll.a'
15866 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15867 postinstall_cmds='base_file=`basename \${file}`~
15868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15869 dldir=$destdir/`dirname \$dlpath`~
15870 test -d \$dldir || mkdir -p \$dldir~
15871 $install_prog $dir/$dlname \$dldir/$dlname~
15872 chmod a+x \$dldir/$dlname'
15873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15874 dlpath=$dir/\$dldll~
15875 $rm \$dlpath'
15876 shlibpath_overrides_runpath=yes
15877
15878 case $host_os in
15879 cygwin*)
15880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15882 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15883 ;;
15884 mingw*)
15885 # MinGW DLLs use traditional 'lib' prefix
15886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15887 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15888 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15889 # It is most probably a Windows format PATH printed by
15890 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15891 # path with ; separators, and with drive letters. We can handle the
15892 # drive letters (cygwin fileutils understands them), so leave them,
15893 # especially as we might pass files found there to a mingw objdump,
15894 # which wouldn't understand a cygwinified path. Ahh.
15895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15896 else
15897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15898 fi
15899 ;;
15900 pw32*)
15901 # pw32 DLLs use 'pw' prefix rather than 'lib'
15902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15903 ;;
15904 esac
15905 ;;
15906
15907 *)
15908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15909 ;;
15910 esac
15911 dynamic_linker='Win32 ld.exe'
15912 # FIXME: first we should search . and the directory the executable is in
15913 shlibpath_var=PATH
15914 ;;
15915
15916 darwin* | rhapsody*)
15917 dynamic_linker="$host_os dyld"
15918 version_type=darwin
15919 need_lib_prefix=no
15920 need_version=no
15921 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15922 soname_spec='${libname}${release}${major}$shared_ext'
15923 shlibpath_overrides_runpath=yes
15924 shlibpath_var=DYLD_LIBRARY_PATH
15925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15926
15927 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15928 ;;
15929
15930 dgux*)
15931 version_type=linux
15932 need_lib_prefix=no
15933 need_version=no
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 shlibpath_var=LD_LIBRARY_PATH
15937 ;;
15938
15939 freebsd1*)
15940 dynamic_linker=no
15941 ;;
15942
15943 freebsd* | dragonfly*)
15944 # DragonFly does not have aout. When/if they implement a new
15945 # versioning mechanism, adjust this.
15946 if test -x /usr/bin/objformat; then
15947 objformat=`/usr/bin/objformat`
15948 else
15949 case $host_os in
15950 freebsd[123]*) objformat=aout ;;
15951 *) objformat=elf ;;
15952 esac
15953 fi
15954 version_type=freebsd-$objformat
15955 case $version_type in
15956 freebsd-elf*)
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15958 need_version=no
15959 need_lib_prefix=no
15960 ;;
15961 freebsd-*)
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15963 need_version=yes
15964 ;;
15965 esac
15966 shlibpath_var=LD_LIBRARY_PATH
15967 case $host_os in
15968 freebsd2*)
15969 shlibpath_overrides_runpath=yes
15970 ;;
15971 freebsd3.[01]* | freebsdelf3.[01]*)
15972 shlibpath_overrides_runpath=yes
15973 hardcode_into_libs=yes
15974 ;;
15975 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15976 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15977 shlibpath_overrides_runpath=no
15978 hardcode_into_libs=yes
15979 ;;
15980 *) # from 4.6 on, and DragonFly
15981 shlibpath_overrides_runpath=yes
15982 hardcode_into_libs=yes
15983 ;;
15984 esac
15985 ;;
15986
15987 gnu*)
15988 version_type=linux
15989 need_lib_prefix=no
15990 need_version=no
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 shlibpath_var=LD_LIBRARY_PATH
15994 hardcode_into_libs=yes
15995 ;;
15996
15997 hpux9* | hpux10* | hpux11*)
15998 # Give a soname corresponding to the major version so that dld.sl refuses to
15999 # link against other versions.
16000 version_type=sunos
16001 need_lib_prefix=no
16002 need_version=no
16003 case $host_cpu in
16004 ia64*)
16005 shrext_cmds='.so'
16006 hardcode_into_libs=yes
16007 dynamic_linker="$host_os dld.so"
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011 soname_spec='${libname}${release}${shared_ext}$major'
16012 if test "X$HPUX_IA64_MODE" = X32; then
16013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16014 else
16015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16016 fi
16017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16018 ;;
16019 hppa*64*)
16020 shrext_cmds='.sl'
16021 hardcode_into_libs=yes
16022 dynamic_linker="$host_os dld.sl"
16023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026 soname_spec='${libname}${release}${shared_ext}$major'
16027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16029 ;;
16030 *)
16031 shrext_cmds='.sl'
16032 dynamic_linker="$host_os dld.sl"
16033 shlibpath_var=SHLIB_PATH
16034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036 soname_spec='${libname}${release}${shared_ext}$major'
16037 ;;
16038 esac
16039 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16040 postinstall_cmds='chmod 555 $lib'
16041 ;;
16042
16043 interix[3-9]*)
16044 version_type=linux
16045 need_lib_prefix=no
16046 need_version=no
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16048 soname_spec='${libname}${release}${shared_ext}$major'
16049 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 shlibpath_overrides_runpath=no
16052 hardcode_into_libs=yes
16053 ;;
16054
16055 irix5* | irix6* | nonstopux*)
16056 case $host_os in
16057 nonstopux*) version_type=nonstopux ;;
16058 *)
16059 if test "$lt_cv_prog_gnu_ld" = yes; then
16060 version_type=linux
16061 else
16062 version_type=irix
16063 fi ;;
16064 esac
16065 need_lib_prefix=no
16066 need_version=no
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16069 case $host_os in
16070 irix5* | nonstopux*)
16071 libsuff= shlibsuff=
16072 ;;
16073 *)
16074 case $LD in # libtool.m4 will add one of these switches to LD
16075 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16076 libsuff= shlibsuff= libmagic=32-bit;;
16077 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16078 libsuff=32 shlibsuff=N32 libmagic=N32;;
16079 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16080 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16081 *) libsuff= shlibsuff= libmagic=never-match;;
16082 esac
16083 ;;
16084 esac
16085 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16086 shlibpath_overrides_runpath=no
16087 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16088 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16089 hardcode_into_libs=yes
16090 ;;
16091
16092 # No shared lib support for Linux oldld, aout, or coff.
16093 linux*oldld* | linux*aout* | linux*coff*)
16094 dynamic_linker=no
16095 ;;
16096
16097 # This must be Linux ELF.
16098 linux* | k*bsd*-gnu)
16099 version_type=linux
16100 need_lib_prefix=no
16101 need_version=no
16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103 soname_spec='${libname}${release}${shared_ext}$major'
16104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16105 shlibpath_var=LD_LIBRARY_PATH
16106 shlibpath_overrides_runpath=no
16107 # This implies no fast_install, which is unacceptable.
16108 # Some rework will be needed to allow for fast_install
16109 # before this can be enabled.
16110 hardcode_into_libs=yes
16111
16112 # Append ld.so.conf contents to the search path
16113 if test -f /etc/ld.so.conf; then
16114 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' ' '`
16115 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16116 fi
16117
16118 # We used to test for /lib/ld.so.1 and disable shared libraries on
16119 # powerpc, because MkLinux only supported shared libraries with the
16120 # GNU dynamic linker. Since this was broken with cross compilers,
16121 # most powerpc-linux boxes support dynamic linking these days and
16122 # people can always --disable-shared, the test was removed, and we
16123 # assume the GNU/Linux dynamic linker is in use.
16124 dynamic_linker='GNU/Linux ld.so'
16125 ;;
16126
16127 netbsdelf*-gnu)
16128 version_type=linux
16129 need_lib_prefix=no
16130 need_version=no
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16132 soname_spec='${libname}${release}${shared_ext}$major'
16133 shlibpath_var=LD_LIBRARY_PATH
16134 shlibpath_overrides_runpath=no
16135 hardcode_into_libs=yes
16136 dynamic_linker='NetBSD ld.elf_so'
16137 ;;
16138
16139 netbsd*)
16140 version_type=sunos
16141 need_lib_prefix=no
16142 need_version=no
16143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16146 dynamic_linker='NetBSD (a.out) ld.so'
16147 else
16148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16149 soname_spec='${libname}${release}${shared_ext}$major'
16150 dynamic_linker='NetBSD ld.elf_so'
16151 fi
16152 shlibpath_var=LD_LIBRARY_PATH
16153 shlibpath_overrides_runpath=yes
16154 hardcode_into_libs=yes
16155 ;;
16156
16157 newsos6)
16158 version_type=linux
16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160 shlibpath_var=LD_LIBRARY_PATH
16161 shlibpath_overrides_runpath=yes
16162 ;;
16163
16164 nto-qnx*)
16165 version_type=linux
16166 need_lib_prefix=no
16167 need_version=no
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=yes
16172 ;;
16173
16174 openbsd*)
16175 version_type=sunos
16176 sys_lib_dlsearch_path_spec="/usr/lib"
16177 need_lib_prefix=no
16178 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16179 case $host_os in
16180 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16181 *) need_version=no ;;
16182 esac
16183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16185 shlibpath_var=LD_LIBRARY_PATH
16186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16187 case $host_os in
16188 openbsd2.[89] | openbsd2.[89].*)
16189 shlibpath_overrides_runpath=no
16190 ;;
16191 *)
16192 shlibpath_overrides_runpath=yes
16193 ;;
16194 esac
16195 else
16196 shlibpath_overrides_runpath=yes
16197 fi
16198 ;;
16199
16200 os2*)
16201 libname_spec='$name'
16202 shrext_cmds=".dll"
16203 need_lib_prefix=no
16204 library_names_spec='$libname${shared_ext} $libname.a'
16205 dynamic_linker='OS/2 ld.exe'
16206 shlibpath_var=LIBPATH
16207 ;;
16208
16209 osf3* | osf4* | osf5*)
16210 version_type=osf
16211 need_lib_prefix=no
16212 need_version=no
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16217 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16218 ;;
16219
16220 rdos*)
16221 dynamic_linker=no
16222 ;;
16223
16224 solaris*)
16225 version_type=linux
16226 need_lib_prefix=no
16227 need_version=no
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 shlibpath_var=LD_LIBRARY_PATH
16231 shlibpath_overrides_runpath=yes
16232 hardcode_into_libs=yes
16233 # ldd complains unless libraries are executable
16234 postinstall_cmds='chmod +x $lib'
16235 ;;
16236
16237 sunos4*)
16238 version_type=sunos
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16240 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 shlibpath_overrides_runpath=yes
16243 if test "$with_gnu_ld" = yes; then
16244 need_lib_prefix=no
16245 fi
16246 need_version=yes
16247 ;;
16248
16249 sysv4 | sysv4.3*)
16250 version_type=linux
16251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16252 soname_spec='${libname}${release}${shared_ext}$major'
16253 shlibpath_var=LD_LIBRARY_PATH
16254 case $host_vendor in
16255 sni)
16256 shlibpath_overrides_runpath=no
16257 need_lib_prefix=no
16258 export_dynamic_flag_spec='${wl}-Blargedynsym'
16259 runpath_var=LD_RUN_PATH
16260 ;;
16261 siemens)
16262 need_lib_prefix=no
16263 ;;
16264 motorola)
16265 need_lib_prefix=no
16266 need_version=no
16267 shlibpath_overrides_runpath=no
16268 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16269 ;;
16270 esac
16271 ;;
16272
16273 sysv4*MP*)
16274 if test -d /usr/nec ;then
16275 version_type=linux
16276 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16277 soname_spec='$libname${shared_ext}.$major'
16278 shlibpath_var=LD_LIBRARY_PATH
16279 fi
16280 ;;
16281
16282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16283 version_type=freebsd-elf
16284 need_lib_prefix=no
16285 need_version=no
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 hardcode_into_libs=yes
16290 if test "$with_gnu_ld" = yes; then
16291 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16292 shlibpath_overrides_runpath=no
16293 else
16294 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16295 shlibpath_overrides_runpath=yes
16296 case $host_os in
16297 sco3.2v5*)
16298 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16299 ;;
16300 esac
16301 fi
16302 sys_lib_dlsearch_path_spec='/usr/lib'
16303 ;;
16304
16305 uts4*)
16306 version_type=linux
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308 soname_spec='${libname}${release}${shared_ext}$major'
16309 shlibpath_var=LD_LIBRARY_PATH
16310 ;;
16311
16312 *)
16313 dynamic_linker=no
16314 ;;
16315 esac
16316 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16317 echo "${ECHO_T}$dynamic_linker" >&6; }
16318 test "$dynamic_linker" = no && can_build_shared=no
16319
16320 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16321 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 else
16323 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16324 fi
16325
16326 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16327 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 else
16330 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16331 fi
16332
16333 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16334
16335 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16336 if test "$GCC" = yes; then
16337 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16338 fi
16339
16340 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16341 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16342 hardcode_action_F77=
16343 if test -n "$hardcode_libdir_flag_spec_F77" || \
16344 test -n "$runpath_var_F77" || \
16345 test "X$hardcode_automatic_F77" = "Xyes" ; then
16346
16347 # We can hardcode non-existant directories.
16348 if test "$hardcode_direct_F77" != no &&
16349 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16350 # have to relink, otherwise we might link with an installed library
16351 # when we should be linking with a yet-to-be-installed one
16352 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16353 test "$hardcode_minus_L_F77" != no; then
16354 # Linking always hardcodes the temporary library directory.
16355 hardcode_action_F77=relink
16356 else
16357 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16358 hardcode_action_F77=immediate
16359 fi
16360 else
16361 # We cannot hardcode anything, or else we can only hardcode existing
16362 # directories.
16363 hardcode_action_F77=unsupported
16364 fi
16365 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16366 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16367
16368 if test "$hardcode_action_F77" = relink; then
16369 # Fast installation is not supported
16370 enable_fast_install=no
16371 elif test "$shlibpath_overrides_runpath" = yes ||
16372 test "$enable_shared" = no; then
16373 # Fast installation is not necessary
16374 enable_fast_install=needless
16375 fi
16376
16377
16378 # The else clause should only fire when bootstrapping the
16379 # libtool distribution, otherwise you forgot to ship ltmain.sh
16380 # with your package, and you will get complaints that there are
16381 # no rules to generate ltmain.sh.
16382 if test -f "$ltmain"; then
16383 # See if we are running on zsh, and set the options which allow our commands through
16384 # without removal of \ escapes.
16385 if test -n "${ZSH_VERSION+set}" ; then
16386 setopt NO_GLOB_SUBST
16387 fi
16388 # Now quote all the things that may contain metacharacters while being
16389 # careful not to overquote the AC_SUBSTed values. We take copies of the
16390 # variables and quote the copies for generation of the libtool script.
16391 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16392 SED SHELL STRIP \
16393 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16394 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16395 deplibs_check_method reload_flag reload_cmds need_locks \
16396 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16397 lt_cv_sys_global_symbol_to_c_name_address \
16398 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16399 old_postinstall_cmds old_postuninstall_cmds \
16400 compiler_F77 \
16401 CC_F77 \
16402 LD_F77 \
16403 lt_prog_compiler_wl_F77 \
16404 lt_prog_compiler_pic_F77 \
16405 lt_prog_compiler_static_F77 \
16406 lt_prog_compiler_no_builtin_flag_F77 \
16407 export_dynamic_flag_spec_F77 \
16408 thread_safe_flag_spec_F77 \
16409 whole_archive_flag_spec_F77 \
16410 enable_shared_with_static_runtimes_F77 \
16411 old_archive_cmds_F77 \
16412 old_archive_from_new_cmds_F77 \
16413 predep_objects_F77 \
16414 postdep_objects_F77 \
16415 predeps_F77 \
16416 postdeps_F77 \
16417 compiler_lib_search_path_F77 \
16418 compiler_lib_search_dirs_F77 \
16419 archive_cmds_F77 \
16420 archive_expsym_cmds_F77 \
16421 postinstall_cmds_F77 \
16422 postuninstall_cmds_F77 \
16423 old_archive_from_expsyms_cmds_F77 \
16424 allow_undefined_flag_F77 \
16425 no_undefined_flag_F77 \
16426 export_symbols_cmds_F77 \
16427 hardcode_libdir_flag_spec_F77 \
16428 hardcode_libdir_flag_spec_ld_F77 \
16429 hardcode_libdir_separator_F77 \
16430 hardcode_automatic_F77 \
16431 module_cmds_F77 \
16432 module_expsym_cmds_F77 \
16433 lt_cv_prog_compiler_c_o_F77 \
16434 fix_srcfile_path_F77 \
16435 exclude_expsyms_F77 \
16436 include_expsyms_F77; do
16437
16438 case $var in
16439 old_archive_cmds_F77 | \
16440 old_archive_from_new_cmds_F77 | \
16441 archive_cmds_F77 | \
16442 archive_expsym_cmds_F77 | \
16443 module_cmds_F77 | \
16444 module_expsym_cmds_F77 | \
16445 old_archive_from_expsyms_cmds_F77 | \
16446 export_symbols_cmds_F77 | \
16447 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16448 postinstall_cmds | postuninstall_cmds | \
16449 old_postinstall_cmds | old_postuninstall_cmds | \
16450 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16451 # Double-quote double-evaled strings.
16452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16453 ;;
16454 *)
16455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16456 ;;
16457 esac
16458 done
16459
16460 case $lt_echo in
16461 *'\$0 --fallback-echo"')
16462 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16463 ;;
16464 esac
16465
16466 cfgfile="$ofile"
16467
16468 cat <<__EOF__ >> "$cfgfile"
16469 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16470
16471 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16472
16473 # Shell to use when invoking shell scripts.
16474 SHELL=$lt_SHELL
16475
16476 # Whether or not to build shared libraries.
16477 build_libtool_libs=$enable_shared
16478
16479 # Whether or not to build static libraries.
16480 build_old_libs=$enable_static
16481
16482 # Whether or not to add -lc for building shared libraries.
16483 build_libtool_need_lc=$archive_cmds_need_lc_F77
16484
16485 # Whether or not to disallow shared libs when runtime libs are static
16486 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16487
16488 # Whether or not to optimize for fast installation.
16489 fast_install=$enable_fast_install
16490
16491 # The host system.
16492 host_alias=$host_alias
16493 host=$host
16494 host_os=$host_os
16495
16496 # The build system.
16497 build_alias=$build_alias
16498 build=$build
16499 build_os=$build_os
16500
16501 # An echo program that does not interpret backslashes.
16502 echo=$lt_echo
16503
16504 # The archiver.
16505 AR=$lt_AR
16506 AR_FLAGS=$lt_AR_FLAGS
16507
16508 # A C compiler.
16509 LTCC=$lt_LTCC
16510
16511 # LTCC compiler flags.
16512 LTCFLAGS=$lt_LTCFLAGS
16513
16514 # A language-specific compiler.
16515 CC=$lt_compiler_F77
16516
16517 # Is the compiler the GNU C compiler?
16518 with_gcc=$GCC_F77
16519
16520 # An ERE matcher.
16521 EGREP=$lt_EGREP
16522
16523 # The linker used to build libraries.
16524 LD=$lt_LD_F77
16525
16526 # Whether we need hard or soft links.
16527 LN_S=$lt_LN_S
16528
16529 # A BSD-compatible nm program.
16530 NM=$lt_NM
16531
16532 # A symbol stripping program
16533 STRIP=$lt_STRIP
16534
16535 # Used to examine libraries when file_magic_cmd begins "file"
16536 MAGIC_CMD=$MAGIC_CMD
16537
16538 # Used on cygwin: DLL creation program.
16539 DLLTOOL="$DLLTOOL"
16540
16541 # Used on cygwin: object dumper.
16542 OBJDUMP="$OBJDUMP"
16543
16544 # Used on cygwin: assembler.
16545 AS="$AS"
16546
16547 # The name of the directory that contains temporary libtool files.
16548 objdir=$objdir
16549
16550 # How to create reloadable object files.
16551 reload_flag=$lt_reload_flag
16552 reload_cmds=$lt_reload_cmds
16553
16554 # How to pass a linker flag through the compiler.
16555 wl=$lt_lt_prog_compiler_wl_F77
16556
16557 # Object file suffix (normally "o").
16558 objext="$ac_objext"
16559
16560 # Old archive suffix (normally "a").
16561 libext="$libext"
16562
16563 # Shared library suffix (normally ".so").
16564 shrext_cmds='$shrext_cmds'
16565
16566 # Executable file suffix (normally "").
16567 exeext="$exeext"
16568
16569 # Additional compiler flags for building library objects.
16570 pic_flag=$lt_lt_prog_compiler_pic_F77
16571 pic_mode=$pic_mode
16572
16573 # What is the maximum length of a command?
16574 max_cmd_len=$lt_cv_sys_max_cmd_len
16575
16576 # Does compiler simultaneously support -c and -o options?
16577 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16578
16579 # Must we lock files when doing compilation?
16580 need_locks=$lt_need_locks
16581
16582 # Do we need the lib prefix for modules?
16583 need_lib_prefix=$need_lib_prefix
16584
16585 # Do we need a version for libraries?
16586 need_version=$need_version
16587
16588 # Whether dlopen is supported.
16589 dlopen_support=$enable_dlopen
16590
16591 # Whether dlopen of programs is supported.
16592 dlopen_self=$enable_dlopen_self
16593
16594 # Whether dlopen of statically linked programs is supported.
16595 dlopen_self_static=$enable_dlopen_self_static
16596
16597 # Compiler flag to prevent dynamic linking.
16598 link_static_flag=$lt_lt_prog_compiler_static_F77
16599
16600 # Compiler flag to turn off builtin functions.
16601 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16602
16603 # Compiler flag to allow reflexive dlopens.
16604 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16605
16606 # Compiler flag to generate shared objects directly from archives.
16607 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16608
16609 # Compiler flag to generate thread-safe objects.
16610 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16611
16612 # Library versioning type.
16613 version_type=$version_type
16614
16615 # Format of library name prefix.
16616 libname_spec=$lt_libname_spec
16617
16618 # List of archive names. First name is the real one, the rest are links.
16619 # The last name is the one that the linker finds with -lNAME.
16620 library_names_spec=$lt_library_names_spec
16621
16622 # The coded name of the library, if different from the real name.
16623 soname_spec=$lt_soname_spec
16624
16625 # Commands used to build and install an old-style archive.
16626 RANLIB=$lt_RANLIB
16627 old_archive_cmds=$lt_old_archive_cmds_F77
16628 old_postinstall_cmds=$lt_old_postinstall_cmds
16629 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16630
16631 # Create an old-style archive from a shared archive.
16632 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16633
16634 # Create a temporary old-style archive to link instead of a shared archive.
16635 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16636
16637 # Commands used to build and install a shared archive.
16638 archive_cmds=$lt_archive_cmds_F77
16639 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16640 postinstall_cmds=$lt_postinstall_cmds
16641 postuninstall_cmds=$lt_postuninstall_cmds
16642
16643 # Commands used to build a loadable module (assumed same as above if empty)
16644 module_cmds=$lt_module_cmds_F77
16645 module_expsym_cmds=$lt_module_expsym_cmds_F77
16646
16647 # Commands to strip libraries.
16648 old_striplib=$lt_old_striplib
16649 striplib=$lt_striplib
16650
16651 # Dependencies to place before the objects being linked to create a
16652 # shared library.
16653 predep_objects=$lt_predep_objects_F77
16654
16655 # Dependencies to place after the objects being linked to create a
16656 # shared library.
16657 postdep_objects=$lt_postdep_objects_F77
16658
16659 # Dependencies to place before the objects being linked to create a
16660 # shared library.
16661 predeps=$lt_predeps_F77
16662
16663 # Dependencies to place after the objects being linked to create a
16664 # shared library.
16665 postdeps=$lt_postdeps_F77
16666
16667 # The directories searched by this compiler when creating a shared
16668 # library
16669 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16670
16671 # The library search path used internally by the compiler when linking
16672 # a shared library.
16673 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16674
16675 # Method to check whether dependent libraries are shared objects.
16676 deplibs_check_method=$lt_deplibs_check_method
16677
16678 # Command to use when deplibs_check_method == file_magic.
16679 file_magic_cmd=$lt_file_magic_cmd
16680
16681 # Flag that allows shared libraries with undefined symbols to be built.
16682 allow_undefined_flag=$lt_allow_undefined_flag_F77
16683
16684 # Flag that forces no undefined symbols.
16685 no_undefined_flag=$lt_no_undefined_flag_F77
16686
16687 # Commands used to finish a libtool library installation in a directory.
16688 finish_cmds=$lt_finish_cmds
16689
16690 # Same as above, but a single script fragment to be evaled but not shown.
16691 finish_eval=$lt_finish_eval
16692
16693 # Take the output of nm and produce a listing of raw symbols and C names.
16694 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16695
16696 # Transform the output of nm in a proper C declaration
16697 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16698
16699 # Transform the output of nm in a C name address pair
16700 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16701
16702 # This is the shared library runtime path variable.
16703 runpath_var=$runpath_var
16704
16705 # This is the shared library path variable.
16706 shlibpath_var=$shlibpath_var
16707
16708 # Is shlibpath searched before the hard-coded library search path?
16709 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16710
16711 # How to hardcode a shared library path into an executable.
16712 hardcode_action=$hardcode_action_F77
16713
16714 # Whether we should hardcode library paths into libraries.
16715 hardcode_into_libs=$hardcode_into_libs
16716
16717 # Flag to hardcode \$libdir into a binary during linking.
16718 # This must work even if \$libdir does not exist.
16719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16720
16721 # If ld is used when linking, flag to hardcode \$libdir into
16722 # a binary during linking. This must work even if \$libdir does
16723 # not exist.
16724 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16725
16726 # Whether we need a single -rpath flag with a separated argument.
16727 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16728
16729 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16730 # resulting binary.
16731 hardcode_direct=$hardcode_direct_F77
16732
16733 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16734 # resulting binary.
16735 hardcode_minus_L=$hardcode_minus_L_F77
16736
16737 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16738 # the resulting binary.
16739 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16740
16741 # Set to yes if building a shared library automatically hardcodes DIR into the library
16742 # and all subsequent libraries and executables linked against it.
16743 hardcode_automatic=$hardcode_automatic_F77
16744
16745 # Variables whose values should be saved in libtool wrapper scripts and
16746 # restored at relink time.
16747 variables_saved_for_relink="$variables_saved_for_relink"
16748
16749 # Whether libtool must link a program against all its dependency libraries.
16750 link_all_deplibs=$link_all_deplibs_F77
16751
16752 # Compile-time system search path for libraries
16753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16754
16755 # Run-time system search path for libraries
16756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16757
16758 # Fix the shell variable \$srcfile for the compiler.
16759 fix_srcfile_path=$lt_fix_srcfile_path
16760
16761 # Set to yes if exported symbols are required.
16762 always_export_symbols=$always_export_symbols_F77
16763
16764 # The commands to list exported symbols.
16765 export_symbols_cmds=$lt_export_symbols_cmds_F77
16766
16767 # The commands to extract the exported symbol list from a shared archive.
16768 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16769
16770 # Symbols that should not be listed in the preloaded symbols.
16771 exclude_expsyms=$lt_exclude_expsyms_F77
16772
16773 # Symbols that must always be exported.
16774 include_expsyms=$lt_include_expsyms_F77
16775
16776 # ### END LIBTOOL TAG CONFIG: $tagname
16777
16778 __EOF__
16779
16780
16781 else
16782 # If there is no Makefile yet, we rely on a make rule to execute
16783 # `config.status --recheck' to rerun these tests and create the
16784 # libtool script then.
16785 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16786 if test -f "$ltmain_in"; then
16787 test -f Makefile && make "$ltmain"
16788 fi
16789 fi
16790
16791
16792 ac_ext=c
16793 ac_cpp='$CPP $CPPFLAGS'
16794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16797
16798 CC="$lt_save_CC"
16799
16800 else
16801 tagname=""
16802 fi
16803 ;;
16804
16805 GCJ)
16806 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16807
16808
16809 # Source file extension for Java test sources.
16810 ac_ext=java
16811
16812 # Object file extension for compiled Java test sources.
16813 objext=o
16814 objext_GCJ=$objext
16815
16816 # Code to be used in simple compile tests
16817 lt_simple_compile_test_code="class foo {}"
16818
16819 # Code to be used in simple link tests
16820 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16821
16822 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16823
16824 # If no C compiler was specified, use CC.
16825 LTCC=${LTCC-"$CC"}
16826
16827 # If no C compiler flags were specified, use CFLAGS.
16828 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16829
16830 # Allow CC to be a program name with arguments.
16831 compiler=$CC
16832
16833
16834 # save warnings/boilerplate of simple test code
16835 ac_outfile=conftest.$ac_objext
16836 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16837 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16838 _lt_compiler_boilerplate=`cat conftest.err`
16839 $rm conftest*
16840
16841 ac_outfile=conftest.$ac_objext
16842 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16843 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16844 _lt_linker_boilerplate=`cat conftest.err`
16845 $rm -r conftest*
16846
16847
16848 # Allow CC to be a program name with arguments.
16849 lt_save_CC="$CC"
16850 CC=${GCJ-"gcj"}
16851 compiler=$CC
16852 compiler_GCJ=$CC
16853 for cc_temp in $compiler""; do
16854 case $cc_temp in
16855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16857 \-*) ;;
16858 *) break;;
16859 esac
16860 done
16861 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16862
16863
16864 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16865 archive_cmds_need_lc_GCJ=no
16866
16867 old_archive_cmds_GCJ=$old_archive_cmds
16868
16869
16870 lt_prog_compiler_no_builtin_flag_GCJ=
16871
16872 if test "$GCC" = yes; then
16873 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16874
16875
16876 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16877 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16878 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 else
16881 lt_cv_prog_compiler_rtti_exceptions=no
16882 ac_outfile=conftest.$ac_objext
16883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16884 lt_compiler_flag="-fno-rtti -fno-exceptions"
16885 # Insert the option either (1) after the last *FLAGS variable, or
16886 # (2) before a word containing "conftest.", or (3) at the end.
16887 # Note that $ac_compile itself does not contain backslashes and begins
16888 # with a dollar sign (not a hyphen), so the echo should work correctly.
16889 # The option is referenced via a variable to avoid confusing sed.
16890 lt_compile=`echo "$ac_compile" | $SED \
16891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16893 -e 's:$: $lt_compiler_flag:'`
16894 (eval echo "\"\$as_me:16895: $lt_compile\"" >&5)
16895 (eval "$lt_compile" 2>conftest.err)
16896 ac_status=$?
16897 cat conftest.err >&5
16898 echo "$as_me:16899: \$? = $ac_status" >&5
16899 if (exit $ac_status) && test -s "$ac_outfile"; then
16900 # The compiler can only warn and ignore the option if not recognized
16901 # So say no if there are warnings other than the usual output.
16902 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16905 lt_cv_prog_compiler_rtti_exceptions=yes
16906 fi
16907 fi
16908 $rm conftest*
16909
16910 fi
16911 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16912 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16913
16914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16915 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16916 else
16917 :
16918 fi
16919
16920 fi
16921
16922 lt_prog_compiler_wl_GCJ=
16923 lt_prog_compiler_pic_GCJ=
16924 lt_prog_compiler_static_GCJ=
16925
16926 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16927 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16928
16929 if test "$GCC" = yes; then
16930 lt_prog_compiler_wl_GCJ='-Wl,'
16931 lt_prog_compiler_static_GCJ='-static'
16932
16933 case $host_os in
16934 aix*)
16935 # All AIX code is PIC.
16936 if test "$host_cpu" = ia64; then
16937 # AIX 5 now supports IA64 processor
16938 lt_prog_compiler_static_GCJ='-Bstatic'
16939 fi
16940 ;;
16941
16942 amigaos*)
16943 # FIXME: we need at least 68020 code to build shared libraries, but
16944 # adding the `-m68020' flag to GCC prevents building anything better,
16945 # like `-m68040'.
16946 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16947 ;;
16948
16949 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16950 # PIC is the default for these OSes.
16951 ;;
16952
16953 mingw* | cygwin* | pw32* | os2*)
16954 # This hack is so that the source file can tell whether it is being
16955 # built for inclusion in a dll (and should export symbols for example).
16956 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16957 # (--disable-auto-import) libraries
16958
16959 ;;
16960
16961 darwin* | rhapsody*)
16962 # PIC is the default on this platform
16963 # Common symbols not allowed in MH_DYLIB files
16964 lt_prog_compiler_pic_GCJ='-fno-common'
16965 ;;
16966
16967 interix[3-9]*)
16968 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16969 # Instead, we relocate shared libraries at runtime.
16970 ;;
16971
16972 msdosdjgpp*)
16973 # Just because we use GCC doesn't mean we suddenly get shared libraries
16974 # on systems that don't support them.
16975 lt_prog_compiler_can_build_shared_GCJ=no
16976 enable_shared=no
16977 ;;
16978
16979 sysv4*MP*)
16980 if test -d /usr/nec; then
16981 lt_prog_compiler_pic_GCJ=-Kconform_pic
16982 fi
16983 ;;
16984
16985 hpux*)
16986 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16987 # not for PA HP-UX.
16988 case $host_cpu in
16989 hppa*64*|ia64*)
16990 # +Z the default
16991 ;;
16992 *)
16993 lt_prog_compiler_pic_GCJ='-fPIC'
16994 ;;
16995 esac
16996 ;;
16997
16998 *)
16999 lt_prog_compiler_pic_GCJ='-fPIC'
17000 ;;
17001 esac
17002 else
17003 # PORTME Check for flag to pass linker flags through the system compiler.
17004 case $host_os in
17005 aix*)
17006 lt_prog_compiler_wl_GCJ='-Wl,'
17007 if test "$host_cpu" = ia64; then
17008 # AIX 5 now supports IA64 processor
17009 lt_prog_compiler_static_GCJ='-Bstatic'
17010 else
17011 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17012 fi
17013 ;;
17014 darwin*)
17015 # PIC is the default on this platform
17016 # Common symbols not allowed in MH_DYLIB files
17017 case $cc_basename in
17018 xlc*)
17019 lt_prog_compiler_pic_GCJ='-qnocommon'
17020 lt_prog_compiler_wl_GCJ='-Wl,'
17021 ;;
17022 esac
17023 ;;
17024
17025 mingw* | cygwin* | pw32* | os2*)
17026 # This hack is so that the source file can tell whether it is being
17027 # built for inclusion in a dll (and should export symbols for example).
17028
17029 ;;
17030
17031 hpux9* | hpux10* | hpux11*)
17032 lt_prog_compiler_wl_GCJ='-Wl,'
17033 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17034 # not for PA HP-UX.
17035 case $host_cpu in
17036 hppa*64*|ia64*)
17037 # +Z the default
17038 ;;
17039 *)
17040 lt_prog_compiler_pic_GCJ='+Z'
17041 ;;
17042 esac
17043 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17044 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17045 ;;
17046
17047 irix5* | irix6* | nonstopux*)
17048 lt_prog_compiler_wl_GCJ='-Wl,'
17049 # PIC (with -KPIC) is the default.
17050 lt_prog_compiler_static_GCJ='-non_shared'
17051 ;;
17052
17053 newsos6)
17054 lt_prog_compiler_pic_GCJ='-KPIC'
17055 lt_prog_compiler_static_GCJ='-Bstatic'
17056 ;;
17057
17058 linux* | k*bsd*-gnu)
17059 case $cc_basename in
17060 icc* | ecc*)
17061 lt_prog_compiler_wl_GCJ='-Wl,'
17062 lt_prog_compiler_pic_GCJ='-KPIC'
17063 lt_prog_compiler_static_GCJ='-static'
17064 ;;
17065 pgcc* | pgf77* | pgf90* | pgf95*)
17066 # Portland Group compilers (*not* the Pentium gcc compiler,
17067 # which looks to be a dead project)
17068 lt_prog_compiler_wl_GCJ='-Wl,'
17069 lt_prog_compiler_pic_GCJ='-fpic'
17070 lt_prog_compiler_static_GCJ='-Bstatic'
17071 ;;
17072 ccc*)
17073 lt_prog_compiler_wl_GCJ='-Wl,'
17074 # All Alpha code is PIC.
17075 lt_prog_compiler_static_GCJ='-non_shared'
17076 ;;
17077 *)
17078 case `$CC -V 2>&1 | sed 5q` in
17079 *Sun\ C*)
17080 # Sun C 5.9
17081 lt_prog_compiler_pic_GCJ='-KPIC'
17082 lt_prog_compiler_static_GCJ='-Bstatic'
17083 lt_prog_compiler_wl_GCJ='-Wl,'
17084 ;;
17085 *Sun\ F*)
17086 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17087 lt_prog_compiler_pic_GCJ='-KPIC'
17088 lt_prog_compiler_static_GCJ='-Bstatic'
17089 lt_prog_compiler_wl_GCJ=''
17090 ;;
17091 esac
17092 ;;
17093 esac
17094 ;;
17095
17096 osf3* | osf4* | osf5*)
17097 lt_prog_compiler_wl_GCJ='-Wl,'
17098 # All OSF/1 code is PIC.
17099 lt_prog_compiler_static_GCJ='-non_shared'
17100 ;;
17101
17102 rdos*)
17103 lt_prog_compiler_static_GCJ='-non_shared'
17104 ;;
17105
17106 solaris*)
17107 lt_prog_compiler_pic_GCJ='-KPIC'
17108 lt_prog_compiler_static_GCJ='-Bstatic'
17109 case $cc_basename in
17110 f77* | f90* | f95*)
17111 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17112 *)
17113 lt_prog_compiler_wl_GCJ='-Wl,';;
17114 esac
17115 ;;
17116
17117 sunos4*)
17118 lt_prog_compiler_wl_GCJ='-Qoption ld '
17119 lt_prog_compiler_pic_GCJ='-PIC'
17120 lt_prog_compiler_static_GCJ='-Bstatic'
17121 ;;
17122
17123 sysv4 | sysv4.2uw2* | sysv4.3*)
17124 lt_prog_compiler_wl_GCJ='-Wl,'
17125 lt_prog_compiler_pic_GCJ='-KPIC'
17126 lt_prog_compiler_static_GCJ='-Bstatic'
17127 ;;
17128
17129 sysv4*MP*)
17130 if test -d /usr/nec ;then
17131 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17132 lt_prog_compiler_static_GCJ='-Bstatic'
17133 fi
17134 ;;
17135
17136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17137 lt_prog_compiler_wl_GCJ='-Wl,'
17138 lt_prog_compiler_pic_GCJ='-KPIC'
17139 lt_prog_compiler_static_GCJ='-Bstatic'
17140 ;;
17141
17142 unicos*)
17143 lt_prog_compiler_wl_GCJ='-Wl,'
17144 lt_prog_compiler_can_build_shared_GCJ=no
17145 ;;
17146
17147 uts4*)
17148 lt_prog_compiler_pic_GCJ='-pic'
17149 lt_prog_compiler_static_GCJ='-Bstatic'
17150 ;;
17151
17152 *)
17153 lt_prog_compiler_can_build_shared_GCJ=no
17154 ;;
17155 esac
17156 fi
17157
17158 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17159 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17160
17161 #
17162 # Check to make sure the PIC flag actually works.
17163 #
17164 if test -n "$lt_prog_compiler_pic_GCJ"; then
17165
17166 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17167 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17168 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171 lt_cv_prog_compiler_pic_works_GCJ=no
17172 ac_outfile=conftest.$ac_objext
17173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17174 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17175 # Insert the option either (1) after the last *FLAGS variable, or
17176 # (2) before a word containing "conftest.", or (3) at the end.
17177 # Note that $ac_compile itself does not contain backslashes and begins
17178 # with a dollar sign (not a hyphen), so the echo should work correctly.
17179 # The option is referenced via a variable to avoid confusing sed.
17180 lt_compile=`echo "$ac_compile" | $SED \
17181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17183 -e 's:$: $lt_compiler_flag:'`
17184 (eval echo "\"\$as_me:17185: $lt_compile\"" >&5)
17185 (eval "$lt_compile" 2>conftest.err)
17186 ac_status=$?
17187 cat conftest.err >&5
17188 echo "$as_me:17189: \$? = $ac_status" >&5
17189 if (exit $ac_status) && test -s "$ac_outfile"; then
17190 # The compiler can only warn and ignore the option if not recognized
17191 # So say no if there are warnings other than the usual output.
17192 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17194 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17195 lt_cv_prog_compiler_pic_works_GCJ=yes
17196 fi
17197 fi
17198 $rm conftest*
17199
17200 fi
17201 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17202 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17203
17204 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17205 case $lt_prog_compiler_pic_GCJ in
17206 "" | " "*) ;;
17207 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17208 esac
17209 else
17210 lt_prog_compiler_pic_GCJ=
17211 lt_prog_compiler_can_build_shared_GCJ=no
17212 fi
17213
17214 fi
17215 case $host_os in
17216 # For platforms which do not support PIC, -DPIC is meaningless:
17217 *djgpp*)
17218 lt_prog_compiler_pic_GCJ=
17219 ;;
17220 *)
17221 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17222 ;;
17223 esac
17224
17225 #
17226 # Check to make sure the static flag actually works.
17227 #
17228 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17229 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17230 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17231 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234 lt_cv_prog_compiler_static_works_GCJ=no
17235 save_LDFLAGS="$LDFLAGS"
17236 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17237 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17239 # The linker can only warn and ignore the option if not recognized
17240 # So say no if there are warnings
17241 if test -s conftest.err; then
17242 # Append any errors to the config.log.
17243 cat conftest.err 1>&5
17244 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17246 if diff conftest.exp conftest.er2 >/dev/null; then
17247 lt_cv_prog_compiler_static_works_GCJ=yes
17248 fi
17249 else
17250 lt_cv_prog_compiler_static_works_GCJ=yes
17251 fi
17252 fi
17253 $rm -r conftest*
17254 LDFLAGS="$save_LDFLAGS"
17255
17256 fi
17257 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17258 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17259
17260 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17261 :
17262 else
17263 lt_prog_compiler_static_GCJ=
17264 fi
17265
17266
17267 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17268 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17269 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272 lt_cv_prog_compiler_c_o_GCJ=no
17273 $rm -r conftest 2>/dev/null
17274 mkdir conftest
17275 cd conftest
17276 mkdir out
17277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17278
17279 lt_compiler_flag="-o out/conftest2.$ac_objext"
17280 # Insert the option either (1) after the last *FLAGS variable, or
17281 # (2) before a word containing "conftest.", or (3) at the end.
17282 # Note that $ac_compile itself does not contain backslashes and begins
17283 # with a dollar sign (not a hyphen), so the echo should work correctly.
17284 lt_compile=`echo "$ac_compile" | $SED \
17285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17287 -e 's:$: $lt_compiler_flag:'`
17288 (eval echo "\"\$as_me:17289: $lt_compile\"" >&5)
17289 (eval "$lt_compile" 2>out/conftest.err)
17290 ac_status=$?
17291 cat out/conftest.err >&5
17292 echo "$as_me:17293: \$? = $ac_status" >&5
17293 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17294 then
17295 # The compiler can only warn and ignore the option if not recognized
17296 # So say no if there are warnings
17297 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17298 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17299 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17300 lt_cv_prog_compiler_c_o_GCJ=yes
17301 fi
17302 fi
17303 chmod u+w . 2>&5
17304 $rm conftest*
17305 # SGI C++ compiler will create directory out/ii_files/ for
17306 # template instantiation
17307 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17308 $rm out/* && rmdir out
17309 cd ..
17310 rmdir conftest
17311 $rm conftest*
17312
17313 fi
17314 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17315 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17316
17317
17318 hard_links="nottested"
17319 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17320 # do not overwrite the value of need_locks provided by the user
17321 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17322 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17323 hard_links=yes
17324 $rm conftest*
17325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17326 touch conftest.a
17327 ln conftest.a conftest.b 2>&5 || hard_links=no
17328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17329 { echo "$as_me:$LINENO: result: $hard_links" >&5
17330 echo "${ECHO_T}$hard_links" >&6; }
17331 if test "$hard_links" = no; then
17332 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17333 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17334 need_locks=warn
17335 fi
17336 else
17337 need_locks=no
17338 fi
17339
17340 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17341 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17342
17343 runpath_var=
17344 allow_undefined_flag_GCJ=
17345 enable_shared_with_static_runtimes_GCJ=no
17346 archive_cmds_GCJ=
17347 archive_expsym_cmds_GCJ=
17348 old_archive_From_new_cmds_GCJ=
17349 old_archive_from_expsyms_cmds_GCJ=
17350 export_dynamic_flag_spec_GCJ=
17351 whole_archive_flag_spec_GCJ=
17352 thread_safe_flag_spec_GCJ=
17353 hardcode_libdir_flag_spec_GCJ=
17354 hardcode_libdir_flag_spec_ld_GCJ=
17355 hardcode_libdir_separator_GCJ=
17356 hardcode_direct_GCJ=no
17357 hardcode_minus_L_GCJ=no
17358 hardcode_shlibpath_var_GCJ=unsupported
17359 link_all_deplibs_GCJ=unknown
17360 hardcode_automatic_GCJ=no
17361 module_cmds_GCJ=
17362 module_expsym_cmds_GCJ=
17363 always_export_symbols_GCJ=no
17364 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17365 # include_expsyms should be a list of space-separated symbols to be *always*
17366 # included in the symbol list
17367 include_expsyms_GCJ=
17368 # exclude_expsyms can be an extended regexp of symbols to exclude
17369 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17370 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17371 # as well as any symbol that contains `d'.
17372 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17373 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17374 # platforms (ab)use it in PIC code, but their linkers get confused if
17375 # the symbol is explicitly referenced. Since portable code cannot
17376 # rely on this symbol name, it's probably fine to never include it in
17377 # preloaded symbol tables.
17378 # Exclude shared library initialization/finalization symbols.
17379 extract_expsyms_cmds=
17380 # Just being paranoid about ensuring that cc_basename is set.
17381 for cc_temp in $compiler""; do
17382 case $cc_temp in
17383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17385 \-*) ;;
17386 *) break;;
17387 esac
17388 done
17389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17390
17391 case $host_os in
17392 cygwin* | mingw* | pw32*)
17393 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17394 # When not using gcc, we currently assume that we are using
17395 # Microsoft Visual C++.
17396 if test "$GCC" != yes; then
17397 with_gnu_ld=no
17398 fi
17399 ;;
17400 interix*)
17401 # we just hope/assume this is gcc and not c89 (= MSVC++)
17402 with_gnu_ld=yes
17403 ;;
17404 openbsd*)
17405 with_gnu_ld=no
17406 ;;
17407 esac
17408
17409 ld_shlibs_GCJ=yes
17410 if test "$with_gnu_ld" = yes; then
17411 # If archive_cmds runs LD, not CC, wlarc should be empty
17412 wlarc='${wl}'
17413
17414 # Set some defaults for GNU ld with shared library support. These
17415 # are reset later if shared libraries are not supported. Putting them
17416 # here allows them to be overridden if necessary.
17417 runpath_var=LD_RUN_PATH
17418 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17419 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17420 # ancient GNU ld didn't support --whole-archive et. al.
17421 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17422 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17423 else
17424 whole_archive_flag_spec_GCJ=
17425 fi
17426 supports_anon_versioning=no
17427 case `$LD -v 2>/dev/null` in
17428 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17429 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17430 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17431 *\ 2.11.*) ;; # other 2.11 versions
17432 *) supports_anon_versioning=yes ;;
17433 esac
17434
17435 # See if GNU ld supports shared libraries.
17436 case $host_os in
17437 aix[3-9]*)
17438 # On AIX/PPC, the GNU linker is very broken
17439 if test "$host_cpu" != ia64; then
17440 ld_shlibs_GCJ=no
17441 cat <<EOF 1>&2
17442
17443 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17444 *** to be unable to reliably create shared libraries on AIX.
17445 *** Therefore, libtool is disabling shared libraries support. If you
17446 *** really care for shared libraries, you may want to modify your PATH
17447 *** so that a non-GNU linker is found, and then restart.
17448
17449 EOF
17450 fi
17451 ;;
17452
17453 amigaos*)
17454 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)'
17455 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17456 hardcode_minus_L_GCJ=yes
17457
17458 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17459 # that the semantics of dynamic libraries on AmigaOS, at least up
17460 # to version 4, is to share data among multiple programs linked
17461 # with the same dynamic library. Since this doesn't match the
17462 # behavior of shared libraries on other platforms, we can't use
17463 # them.
17464 ld_shlibs_GCJ=no
17465 ;;
17466
17467 beos*)
17468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17469 allow_undefined_flag_GCJ=unsupported
17470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17471 # support --undefined. This deserves some investigation. FIXME
17472 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17473 else
17474 ld_shlibs_GCJ=no
17475 fi
17476 ;;
17477
17478 cygwin* | mingw* | pw32*)
17479 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17480 # as there is no search path for DLLs.
17481 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17482 allow_undefined_flag_GCJ=unsupported
17483 always_export_symbols_GCJ=no
17484 enable_shared_with_static_runtimes_GCJ=yes
17485 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17486
17487 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17488 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17489 # If the export-symbols file already is a .def file (1st line
17490 # is EXPORTS), use it as is; otherwise, prepend...
17491 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17492 cp $export_symbols $output_objdir/$soname.def;
17493 else
17494 echo EXPORTS > $output_objdir/$soname.def;
17495 cat $export_symbols >> $output_objdir/$soname.def;
17496 fi~
17497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17498 else
17499 ld_shlibs_GCJ=no
17500 fi
17501 ;;
17502
17503 interix[3-9]*)
17504 hardcode_direct_GCJ=no
17505 hardcode_shlibpath_var_GCJ=no
17506 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17507 export_dynamic_flag_spec_GCJ='${wl}-E'
17508 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17509 # Instead, shared libraries are loaded at an image base (0x10000000 by
17510 # default) and relocated if they conflict, which is a slow very memory
17511 # consuming and fragmenting process. To avoid this, we pick a random,
17512 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17513 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17514 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'
17515 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'
17516 ;;
17517
17518 gnu* | linux* | k*bsd*-gnu)
17519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17520 tmp_addflag=
17521 case $cc_basename,$host_cpu in
17522 pgcc*) # Portland Group C compiler
17523 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'
17524 tmp_addflag=' $pic_flag'
17525 ;;
17526 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17527 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'
17528 tmp_addflag=' $pic_flag -Mnomain' ;;
17529 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17530 tmp_addflag=' -i_dynamic' ;;
17531 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17532 tmp_addflag=' -i_dynamic -nofor_main' ;;
17533 ifc* | ifort*) # Intel Fortran compiler
17534 tmp_addflag=' -nofor_main' ;;
17535 esac
17536 case `$CC -V 2>&1 | sed 5q` in
17537 *Sun\ C*) # Sun C 5.9
17538 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'
17539 tmp_sharedflag='-G' ;;
17540 *Sun\ F*) # Sun Fortran 8.3
17541 tmp_sharedflag='-G' ;;
17542 *)
17543 tmp_sharedflag='-shared' ;;
17544 esac
17545 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17546
17547 if test $supports_anon_versioning = yes; then
17548 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17550 $echo "local: *; };" >> $output_objdir/$libname.ver~
17551 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17552 fi
17553 link_all_deplibs_GCJ=no
17554 else
17555 ld_shlibs_GCJ=no
17556 fi
17557 ;;
17558
17559 netbsd* | netbsdelf*-gnu)
17560 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17561 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17562 wlarc=
17563 else
17564 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17565 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17566 fi
17567 ;;
17568
17569 solaris*)
17570 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17571 ld_shlibs_GCJ=no
17572 cat <<EOF 1>&2
17573
17574 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17575 *** create shared libraries on Solaris systems. Therefore, libtool
17576 *** is disabling shared libraries support. We urge you to upgrade GNU
17577 *** binutils to release 2.9.1 or newer. Another option is to modify
17578 *** your PATH or compiler configuration so that the native linker is
17579 *** used, and then restart.
17580
17581 EOF
17582 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17583 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17584 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17585 else
17586 ld_shlibs_GCJ=no
17587 fi
17588 ;;
17589
17590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17591 case `$LD -v 2>&1` in
17592 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17593 ld_shlibs_GCJ=no
17594 cat <<_LT_EOF 1>&2
17595
17596 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17597 *** reliably create shared libraries on SCO systems. Therefore, libtool
17598 *** is disabling shared libraries support. We urge you to upgrade GNU
17599 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17600 *** your PATH or compiler configuration so that the native linker is
17601 *** used, and then restart.
17602
17603 _LT_EOF
17604 ;;
17605 *)
17606 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17607 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17608 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17609 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17610 else
17611 ld_shlibs_GCJ=no
17612 fi
17613 ;;
17614 esac
17615 ;;
17616
17617 sunos4*)
17618 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17619 wlarc=
17620 hardcode_direct_GCJ=yes
17621 hardcode_shlibpath_var_GCJ=no
17622 ;;
17623
17624 *)
17625 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17626 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17627 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17628 else
17629 ld_shlibs_GCJ=no
17630 fi
17631 ;;
17632 esac
17633
17634 if test "$ld_shlibs_GCJ" = no; then
17635 runpath_var=
17636 hardcode_libdir_flag_spec_GCJ=
17637 export_dynamic_flag_spec_GCJ=
17638 whole_archive_flag_spec_GCJ=
17639 fi
17640 else
17641 # PORTME fill in a description of your system's linker (not GNU ld)
17642 case $host_os in
17643 aix3*)
17644 allow_undefined_flag_GCJ=unsupported
17645 always_export_symbols_GCJ=yes
17646 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'
17647 # Note: this linker hardcodes the directories in LIBPATH if there
17648 # are no directories specified by -L.
17649 hardcode_minus_L_GCJ=yes
17650 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17651 # Neither direct hardcoding nor static linking is supported with a
17652 # broken collect2.
17653 hardcode_direct_GCJ=unsupported
17654 fi
17655 ;;
17656
17657 aix[4-9]*)
17658 if test "$host_cpu" = ia64; then
17659 # On IA64, the linker does run time linking by default, so we don't
17660 # have to do anything special.
17661 aix_use_runtimelinking=no
17662 exp_sym_flag='-Bexport'
17663 no_entry_flag=""
17664 else
17665 # If we're using GNU nm, then we don't want the "-C" option.
17666 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17667 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17668 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'
17669 else
17670 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'
17671 fi
17672 aix_use_runtimelinking=no
17673
17674 # Test if we are trying to use run time linking or normal
17675 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17676 # need to do runtime linking.
17677 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17678 for ld_flag in $LDFLAGS; do
17679 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17680 aix_use_runtimelinking=yes
17681 break
17682 fi
17683 done
17684 ;;
17685 esac
17686
17687 exp_sym_flag='-bexport'
17688 no_entry_flag='-bnoentry'
17689 fi
17690
17691 # When large executables or shared objects are built, AIX ld can
17692 # have problems creating the table of contents. If linking a library
17693 # or program results in "error TOC overflow" add -mminimal-toc to
17694 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17695 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17696
17697 archive_cmds_GCJ=''
17698 hardcode_direct_GCJ=yes
17699 hardcode_libdir_separator_GCJ=':'
17700 link_all_deplibs_GCJ=yes
17701
17702 if test "$GCC" = yes; then
17703 case $host_os in aix4.[012]|aix4.[012].*)
17704 # We only want to do this on AIX 4.2 and lower, the check
17705 # below for broken collect2 doesn't work under 4.3+
17706 collect2name=`${CC} -print-prog-name=collect2`
17707 if test -f "$collect2name" && \
17708 strings "$collect2name" | grep resolve_lib_name >/dev/null
17709 then
17710 # We have reworked collect2
17711 :
17712 else
17713 # We have old collect2
17714 hardcode_direct_GCJ=unsupported
17715 # It fails to find uninstalled libraries when the uninstalled
17716 # path is not listed in the libpath. Setting hardcode_minus_L
17717 # to unsupported forces relinking
17718 hardcode_minus_L_GCJ=yes
17719 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17720 hardcode_libdir_separator_GCJ=
17721 fi
17722 ;;
17723 esac
17724 shared_flag='-shared'
17725 if test "$aix_use_runtimelinking" = yes; then
17726 shared_flag="$shared_flag "'${wl}-G'
17727 fi
17728 else
17729 # not using gcc
17730 if test "$host_cpu" = ia64; then
17731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17732 # chokes on -Wl,-G. The following line is correct:
17733 shared_flag='-G'
17734 else
17735 if test "$aix_use_runtimelinking" = yes; then
17736 shared_flag='${wl}-G'
17737 else
17738 shared_flag='${wl}-bM:SRE'
17739 fi
17740 fi
17741 fi
17742
17743 # It seems that -bexpall does not export symbols beginning with
17744 # underscore (_), so it is better to generate a list of symbols to export.
17745 always_export_symbols_GCJ=yes
17746 if test "$aix_use_runtimelinking" = yes; then
17747 # Warning - without using the other runtime loading flags (-brtl),
17748 # -berok will link without error, but may produce a broken library.
17749 allow_undefined_flag_GCJ='-berok'
17750 # Determine the default libpath from the value encoded in an empty executable.
17751 cat >conftest.$ac_ext <<_ACEOF
17752 /* confdefs.h. */
17753 _ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17757
17758 int
17759 main ()
17760 {
17761
17762 ;
17763 return 0;
17764 }
17765 _ACEOF
17766 rm -f conftest.$ac_objext conftest$ac_exeext
17767 if { (ac_try="$ac_link"
17768 case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771 esac
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_link") 2>conftest.er1
17774 ac_status=$?
17775 grep -v '^ *+' conftest.er1 >conftest.err
17776 rm -f conftest.er1
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } && {
17780 test -z "$ac_c_werror_flag" ||
17781 test ! -s conftest.err
17782 } && test -s conftest$ac_exeext &&
17783 $as_test_x conftest$ac_exeext; then
17784
17785 lt_aix_libpath_sed='
17786 /Import File Strings/,/^$/ {
17787 /^0/ {
17788 s/^0 *\(.*\)$/\1/
17789 p
17790 }
17791 }'
17792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17793 # Check for a 64-bit object if we didn't find anything.
17794 if test -z "$aix_libpath"; then
17795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17796 fi
17797 else
17798 echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801
17802 fi
17803
17804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17805 conftest$ac_exeext conftest.$ac_ext
17806 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17807
17808 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17809 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"
17810 else
17811 if test "$host_cpu" = ia64; then
17812 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17813 allow_undefined_flag_GCJ="-z nodefs"
17814 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"
17815 else
17816 # Determine the default libpath from the value encoded in an empty executable.
17817 cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h. */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823
17824 int
17825 main ()
17826 {
17827
17828 ;
17829 return 0;
17830 }
17831 _ACEOF
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17840 ac_status=$?
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest$ac_exeext &&
17849 $as_test_x conftest$ac_exeext; then
17850
17851 lt_aix_libpath_sed='
17852 /Import File Strings/,/^$/ {
17853 /^0/ {
17854 s/^0 *\(.*\)$/\1/
17855 p
17856 }
17857 }'
17858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859 # Check for a 64-bit object if we didn't find anything.
17860 if test -z "$aix_libpath"; then
17861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17862 fi
17863 else
17864 echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17866
17867
17868 fi
17869
17870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17871 conftest$ac_exeext conftest.$ac_ext
17872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17873
17874 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17875 # Warning - without using the other run time loading flags,
17876 # -berok will link without error, but may produce a broken library.
17877 no_undefined_flag_GCJ=' ${wl}-bernotok'
17878 allow_undefined_flag_GCJ=' ${wl}-berok'
17879 # Exported symbols can be pulled into shared objects from archives
17880 whole_archive_flag_spec_GCJ='$convenience'
17881 archive_cmds_need_lc_GCJ=yes
17882 # This is similar to how AIX traditionally builds its shared libraries.
17883 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'
17884 fi
17885 fi
17886 ;;
17887
17888 amigaos*)
17889 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)'
17890 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17891 hardcode_minus_L_GCJ=yes
17892 # see comment about different semantics on the GNU ld section
17893 ld_shlibs_GCJ=no
17894 ;;
17895
17896 bsdi[45]*)
17897 export_dynamic_flag_spec_GCJ=-rdynamic
17898 ;;
17899
17900 cygwin* | mingw* | pw32*)
17901 # When not using gcc, we currently assume that we are using
17902 # Microsoft Visual C++.
17903 # hardcode_libdir_flag_spec is actually meaningless, as there is
17904 # no search path for DLLs.
17905 hardcode_libdir_flag_spec_GCJ=' '
17906 allow_undefined_flag_GCJ=unsupported
17907 # Tell ltmain to make .lib files, not .a files.
17908 libext=lib
17909 # Tell ltmain to make .dll files, not .so files.
17910 shrext_cmds=".dll"
17911 # FIXME: Setting linknames here is a bad hack.
17912 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17913 # The linker will automatically build a .lib file if we build a DLL.
17914 old_archive_From_new_cmds_GCJ='true'
17915 # FIXME: Should let the user specify the lib program.
17916 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17917 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17918 enable_shared_with_static_runtimes_GCJ=yes
17919 ;;
17920
17921 darwin* | rhapsody*)
17922 case $host_os in
17923 rhapsody* | darwin1.[012])
17924 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17925 ;;
17926 *) # Darwin 1.3 on
17927 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17928 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17929 else
17930 case ${MACOSX_DEPLOYMENT_TARGET} in
17931 10.[012])
17932 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17933 ;;
17934 10.*)
17935 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17936 ;;
17937 esac
17938 fi
17939 ;;
17940 esac
17941 archive_cmds_need_lc_GCJ=no
17942 hardcode_direct_GCJ=no
17943 hardcode_automatic_GCJ=yes
17944 hardcode_shlibpath_var_GCJ=unsupported
17945 whole_archive_flag_spec_GCJ=''
17946 link_all_deplibs_GCJ=yes
17947 if test "$GCC" = yes ; then
17948 output_verbose_link_cmd='echo'
17949 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}"
17950 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17951 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}"
17952 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}"
17953 else
17954 case $cc_basename in
17955 xlc*)
17956 output_verbose_link_cmd='echo'
17957 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17958 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17959 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17960 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}'
17961 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}'
17962 ;;
17963 *)
17964 ld_shlibs_GCJ=no
17965 ;;
17966 esac
17967 fi
17968 ;;
17969
17970 dgux*)
17971 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17973 hardcode_shlibpath_var_GCJ=no
17974 ;;
17975
17976 freebsd1*)
17977 ld_shlibs_GCJ=no
17978 ;;
17979
17980 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17981 # support. Future versions do this automatically, but an explicit c++rt0.o
17982 # does not break anything, and helps significantly (at the cost of a little
17983 # extra space).
17984 freebsd2.2*)
17985 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17986 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17987 hardcode_direct_GCJ=yes
17988 hardcode_shlibpath_var_GCJ=no
17989 ;;
17990
17991 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17992 freebsd2*)
17993 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17994 hardcode_direct_GCJ=yes
17995 hardcode_minus_L_GCJ=yes
17996 hardcode_shlibpath_var_GCJ=no
17997 ;;
17998
17999 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18000 freebsd* | dragonfly*)
18001 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18002 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18003 hardcode_direct_GCJ=yes
18004 hardcode_shlibpath_var_GCJ=no
18005 ;;
18006
18007 hpux9*)
18008 if test "$GCC" = yes; then
18009 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'
18010 else
18011 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'
18012 fi
18013 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18014 hardcode_libdir_separator_GCJ=:
18015 hardcode_direct_GCJ=yes
18016
18017 # hardcode_minus_L: Not really in the search PATH,
18018 # but as the default location of the library.
18019 hardcode_minus_L_GCJ=yes
18020 export_dynamic_flag_spec_GCJ='${wl}-E'
18021 ;;
18022
18023 hpux10*)
18024 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18025 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18026 else
18027 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18028 fi
18029 if test "$with_gnu_ld" = no; then
18030 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18031 hardcode_libdir_separator_GCJ=:
18032
18033 hardcode_direct_GCJ=yes
18034 export_dynamic_flag_spec_GCJ='${wl}-E'
18035
18036 # hardcode_minus_L: Not really in the search PATH,
18037 # but as the default location of the library.
18038 hardcode_minus_L_GCJ=yes
18039 fi
18040 ;;
18041
18042 hpux11*)
18043 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18044 case $host_cpu in
18045 hppa*64*)
18046 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18047 ;;
18048 ia64*)
18049 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18050 ;;
18051 *)
18052 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18053 ;;
18054 esac
18055 else
18056 case $host_cpu in
18057 hppa*64*)
18058 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18059 ;;
18060 ia64*)
18061 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18062 ;;
18063 *)
18064 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18065 ;;
18066 esac
18067 fi
18068 if test "$with_gnu_ld" = no; then
18069 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18070 hardcode_libdir_separator_GCJ=:
18071
18072 case $host_cpu in
18073 hppa*64*|ia64*)
18074 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18075 hardcode_direct_GCJ=no
18076 hardcode_shlibpath_var_GCJ=no
18077 ;;
18078 *)
18079 hardcode_direct_GCJ=yes
18080 export_dynamic_flag_spec_GCJ='${wl}-E'
18081
18082 # hardcode_minus_L: Not really in the search PATH,
18083 # but as the default location of the library.
18084 hardcode_minus_L_GCJ=yes
18085 ;;
18086 esac
18087 fi
18088 ;;
18089
18090 irix5* | irix6* | nonstopux*)
18091 if test "$GCC" = yes; then
18092 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'
18093 else
18094 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'
18095 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18096 fi
18097 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18098 hardcode_libdir_separator_GCJ=:
18099 link_all_deplibs_GCJ=yes
18100 ;;
18101
18102 netbsd* | netbsdelf*-gnu)
18103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18104 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18105 else
18106 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18107 fi
18108 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18109 hardcode_direct_GCJ=yes
18110 hardcode_shlibpath_var_GCJ=no
18111 ;;
18112
18113 newsos6)
18114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18115 hardcode_direct_GCJ=yes
18116 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18117 hardcode_libdir_separator_GCJ=:
18118 hardcode_shlibpath_var_GCJ=no
18119 ;;
18120
18121 openbsd*)
18122 if test -f /usr/libexec/ld.so; then
18123 hardcode_direct_GCJ=yes
18124 hardcode_shlibpath_var_GCJ=no
18125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18126 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18127 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18128 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18129 export_dynamic_flag_spec_GCJ='${wl}-E'
18130 else
18131 case $host_os in
18132 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18133 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18134 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18135 ;;
18136 *)
18137 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18138 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18139 ;;
18140 esac
18141 fi
18142 else
18143 ld_shlibs_GCJ=no
18144 fi
18145 ;;
18146
18147 os2*)
18148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18149 hardcode_minus_L_GCJ=yes
18150 allow_undefined_flag_GCJ=unsupported
18151 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'
18152 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18153 ;;
18154
18155 osf3*)
18156 if test "$GCC" = yes; then
18157 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18158 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'
18159 else
18160 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18161 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'
18162 fi
18163 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18164 hardcode_libdir_separator_GCJ=:
18165 ;;
18166
18167 osf4* | osf5*) # as osf3* with the addition of -msym flag
18168 if test "$GCC" = yes; then
18169 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18170 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'
18171 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18172 else
18173 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18174 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'
18175 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~
18176 $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'
18177
18178 # Both c and cxx compiler support -rpath directly
18179 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18180 fi
18181 hardcode_libdir_separator_GCJ=:
18182 ;;
18183
18184 solaris*)
18185 no_undefined_flag_GCJ=' -z text'
18186 if test "$GCC" = yes; then
18187 wlarc='${wl}'
18188 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18189 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18190 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18191 else
18192 wlarc=''
18193 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18194 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18195 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18196 fi
18197 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18198 hardcode_shlibpath_var_GCJ=no
18199 case $host_os in
18200 solaris2.[0-5] | solaris2.[0-5].*) ;;
18201 *)
18202 # The compiler driver will combine and reorder linker options,
18203 # but understands `-z linker_flag'. GCC discards it without `$wl',
18204 # but is careful enough not to reorder.
18205 # Supported since Solaris 2.6 (maybe 2.5.1?)
18206 if test "$GCC" = yes; then
18207 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18208 else
18209 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18210 fi
18211 ;;
18212 esac
18213 link_all_deplibs_GCJ=yes
18214 ;;
18215
18216 sunos4*)
18217 if test "x$host_vendor" = xsequent; then
18218 # Use $CC to link under sequent, because it throws in some extra .o
18219 # files that make .init and .fini sections work.
18220 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18221 else
18222 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18223 fi
18224 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18225 hardcode_direct_GCJ=yes
18226 hardcode_minus_L_GCJ=yes
18227 hardcode_shlibpath_var_GCJ=no
18228 ;;
18229
18230 sysv4)
18231 case $host_vendor in
18232 sni)
18233 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18234 hardcode_direct_GCJ=yes # is this really true???
18235 ;;
18236 siemens)
18237 ## LD is ld it makes a PLAMLIB
18238 ## CC just makes a GrossModule.
18239 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18240 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18241 hardcode_direct_GCJ=no
18242 ;;
18243 motorola)
18244 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18245 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18246 ;;
18247 esac
18248 runpath_var='LD_RUN_PATH'
18249 hardcode_shlibpath_var_GCJ=no
18250 ;;
18251
18252 sysv4.3*)
18253 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18254 hardcode_shlibpath_var_GCJ=no
18255 export_dynamic_flag_spec_GCJ='-Bexport'
18256 ;;
18257
18258 sysv4*MP*)
18259 if test -d /usr/nec; then
18260 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18261 hardcode_shlibpath_var_GCJ=no
18262 runpath_var=LD_RUN_PATH
18263 hardcode_runpath_var=yes
18264 ld_shlibs_GCJ=yes
18265 fi
18266 ;;
18267
18268 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18269 no_undefined_flag_GCJ='${wl}-z,text'
18270 archive_cmds_need_lc_GCJ=no
18271 hardcode_shlibpath_var_GCJ=no
18272 runpath_var='LD_RUN_PATH'
18273
18274 if test "$GCC" = yes; then
18275 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18276 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18277 else
18278 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18279 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18280 fi
18281 ;;
18282
18283 sysv5* | sco3.2v5* | sco5v6*)
18284 # Note: We can NOT use -z defs as we might desire, because we do not
18285 # link with -lc, and that would cause any symbols used from libc to
18286 # always be unresolved, which means just about no library would
18287 # ever link correctly. If we're not using GNU ld we use -z text
18288 # though, which does catch some bad symbols but isn't as heavy-handed
18289 # as -z defs.
18290 no_undefined_flag_GCJ='${wl}-z,text'
18291 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18292 archive_cmds_need_lc_GCJ=no
18293 hardcode_shlibpath_var_GCJ=no
18294 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18295 hardcode_libdir_separator_GCJ=':'
18296 link_all_deplibs_GCJ=yes
18297 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18298 runpath_var='LD_RUN_PATH'
18299
18300 if test "$GCC" = yes; then
18301 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18302 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18303 else
18304 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18305 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18306 fi
18307 ;;
18308
18309 uts4*)
18310 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18311 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18312 hardcode_shlibpath_var_GCJ=no
18313 ;;
18314
18315 *)
18316 ld_shlibs_GCJ=no
18317 ;;
18318 esac
18319 fi
18320
18321 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18322 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18323 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18324
18325 #
18326 # Do we need to explicitly link libc?
18327 #
18328 case "x$archive_cmds_need_lc_GCJ" in
18329 x|xyes)
18330 # Assume -lc should be added
18331 archive_cmds_need_lc_GCJ=yes
18332
18333 if test "$enable_shared" = yes && test "$GCC" = yes; then
18334 case $archive_cmds_GCJ in
18335 *'~'*)
18336 # FIXME: we may have to deal with multi-command sequences.
18337 ;;
18338 '$CC '*)
18339 # Test whether the compiler implicitly links with -lc since on some
18340 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18341 # to ld, don't add -lc before -lgcc.
18342 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18343 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18344 $rm conftest*
18345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18346
18347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18348 (eval $ac_compile) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } 2>conftest.err; then
18352 soname=conftest
18353 lib=conftest
18354 libobjs=conftest.$ac_objext
18355 deplibs=
18356 wl=$lt_prog_compiler_wl_GCJ
18357 pic_flag=$lt_prog_compiler_pic_GCJ
18358 compiler_flags=-v
18359 linker_flags=-v
18360 verstring=
18361 output_objdir=.
18362 libname=conftest
18363 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18364 allow_undefined_flag_GCJ=
18365 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18366 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }
18370 then
18371 archive_cmds_need_lc_GCJ=no
18372 else
18373 archive_cmds_need_lc_GCJ=yes
18374 fi
18375 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18376 else
18377 cat conftest.err 1>&5
18378 fi
18379 $rm conftest*
18380 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18381 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18382 ;;
18383 esac
18384 fi
18385 ;;
18386 esac
18387
18388 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18389 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18390 library_names_spec=
18391 libname_spec='lib$name'
18392 soname_spec=
18393 shrext_cmds=".so"
18394 postinstall_cmds=
18395 postuninstall_cmds=
18396 finish_cmds=
18397 finish_eval=
18398 shlibpath_var=
18399 shlibpath_overrides_runpath=unknown
18400 version_type=none
18401 dynamic_linker="$host_os ld.so"
18402 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18403
18404 need_lib_prefix=unknown
18405 hardcode_into_libs=no
18406
18407 # when you set need_version to no, make sure it does not cause -set_version
18408 # flags to be left without arguments
18409 need_version=unknown
18410
18411 case $host_os in
18412 aix3*)
18413 version_type=linux
18414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18415 shlibpath_var=LIBPATH
18416
18417 # AIX 3 has no versioning support, so we append a major version to the name.
18418 soname_spec='${libname}${release}${shared_ext}$major'
18419 ;;
18420
18421 aix[4-9]*)
18422 version_type=linux
18423 need_lib_prefix=no
18424 need_version=no
18425 hardcode_into_libs=yes
18426 if test "$host_cpu" = ia64; then
18427 # AIX 5 supports IA64
18428 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18429 shlibpath_var=LD_LIBRARY_PATH
18430 else
18431 # With GCC up to 2.95.x, collect2 would create an import file
18432 # for dependence libraries. The import file would start with
18433 # the line `#! .'. This would cause the generated library to
18434 # depend on `.', always an invalid library. This was fixed in
18435 # development snapshots of GCC prior to 3.0.
18436 case $host_os in
18437 aix4 | aix4.[01] | aix4.[01].*)
18438 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18439 echo ' yes '
18440 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18441 :
18442 else
18443 can_build_shared=no
18444 fi
18445 ;;
18446 esac
18447 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18448 # soname into executable. Probably we can add versioning support to
18449 # collect2, so additional links can be useful in future.
18450 if test "$aix_use_runtimelinking" = yes; then
18451 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18452 # instead of lib<name>.a to let people know that these are not
18453 # typical AIX shared libraries.
18454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18455 else
18456 # We preserve .a as extension for shared libraries through AIX4.2
18457 # and later when we are not doing run time linking.
18458 library_names_spec='${libname}${release}.a $libname.a'
18459 soname_spec='${libname}${release}${shared_ext}$major'
18460 fi
18461 shlibpath_var=LIBPATH
18462 fi
18463 ;;
18464
18465 amigaos*)
18466 library_names_spec='$libname.ixlibrary $libname.a'
18467 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18468 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'
18469 ;;
18470
18471 beos*)
18472 library_names_spec='${libname}${shared_ext}'
18473 dynamic_linker="$host_os ld.so"
18474 shlibpath_var=LIBRARY_PATH
18475 ;;
18476
18477 bsdi[45]*)
18478 version_type=linux
18479 need_version=no
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481 soname_spec='${libname}${release}${shared_ext}$major'
18482 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18483 shlibpath_var=LD_LIBRARY_PATH
18484 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18485 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18486 # the default ld.so.conf also contains /usr/contrib/lib and
18487 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18488 # libtool to hard-code these into programs
18489 ;;
18490
18491 cygwin* | mingw* | pw32*)
18492 version_type=windows
18493 shrext_cmds=".dll"
18494 need_version=no
18495 need_lib_prefix=no
18496
18497 case $GCC,$host_os in
18498 yes,cygwin* | yes,mingw* | yes,pw32*)
18499 library_names_spec='$libname.dll.a'
18500 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18501 postinstall_cmds='base_file=`basename \${file}`~
18502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18503 dldir=$destdir/`dirname \$dlpath`~
18504 test -d \$dldir || mkdir -p \$dldir~
18505 $install_prog $dir/$dlname \$dldir/$dlname~
18506 chmod a+x \$dldir/$dlname'
18507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18508 dlpath=$dir/\$dldll~
18509 $rm \$dlpath'
18510 shlibpath_overrides_runpath=yes
18511
18512 case $host_os in
18513 cygwin*)
18514 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18515 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18516 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18517 ;;
18518 mingw*)
18519 # MinGW DLLs use traditional 'lib' prefix
18520 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18522 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18523 # It is most probably a Windows format PATH printed by
18524 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18525 # path with ; separators, and with drive letters. We can handle the
18526 # drive letters (cygwin fileutils understands them), so leave them,
18527 # especially as we might pass files found there to a mingw objdump,
18528 # which wouldn't understand a cygwinified path. Ahh.
18529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18530 else
18531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18532 fi
18533 ;;
18534 pw32*)
18535 # pw32 DLLs use 'pw' prefix rather than 'lib'
18536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18537 ;;
18538 esac
18539 ;;
18540
18541 *)
18542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18543 ;;
18544 esac
18545 dynamic_linker='Win32 ld.exe'
18546 # FIXME: first we should search . and the directory the executable is in
18547 shlibpath_var=PATH
18548 ;;
18549
18550 darwin* | rhapsody*)
18551 dynamic_linker="$host_os dyld"
18552 version_type=darwin
18553 need_lib_prefix=no
18554 need_version=no
18555 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18556 soname_spec='${libname}${release}${major}$shared_ext'
18557 shlibpath_overrides_runpath=yes
18558 shlibpath_var=DYLD_LIBRARY_PATH
18559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18560
18561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18562 ;;
18563
18564 dgux*)
18565 version_type=linux
18566 need_lib_prefix=no
18567 need_version=no
18568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18569 soname_spec='${libname}${release}${shared_ext}$major'
18570 shlibpath_var=LD_LIBRARY_PATH
18571 ;;
18572
18573 freebsd1*)
18574 dynamic_linker=no
18575 ;;
18576
18577 freebsd* | dragonfly*)
18578 # DragonFly does not have aout. When/if they implement a new
18579 # versioning mechanism, adjust this.
18580 if test -x /usr/bin/objformat; then
18581 objformat=`/usr/bin/objformat`
18582 else
18583 case $host_os in
18584 freebsd[123]*) objformat=aout ;;
18585 *) objformat=elf ;;
18586 esac
18587 fi
18588 version_type=freebsd-$objformat
18589 case $version_type in
18590 freebsd-elf*)
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18592 need_version=no
18593 need_lib_prefix=no
18594 ;;
18595 freebsd-*)
18596 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18597 need_version=yes
18598 ;;
18599 esac
18600 shlibpath_var=LD_LIBRARY_PATH
18601 case $host_os in
18602 freebsd2*)
18603 shlibpath_overrides_runpath=yes
18604 ;;
18605 freebsd3.[01]* | freebsdelf3.[01]*)
18606 shlibpath_overrides_runpath=yes
18607 hardcode_into_libs=yes
18608 ;;
18609 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18610 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18611 shlibpath_overrides_runpath=no
18612 hardcode_into_libs=yes
18613 ;;
18614 *) # from 4.6 on, and DragonFly
18615 shlibpath_overrides_runpath=yes
18616 hardcode_into_libs=yes
18617 ;;
18618 esac
18619 ;;
18620
18621 gnu*)
18622 version_type=linux
18623 need_lib_prefix=no
18624 need_version=no
18625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18626 soname_spec='${libname}${release}${shared_ext}$major'
18627 shlibpath_var=LD_LIBRARY_PATH
18628 hardcode_into_libs=yes
18629 ;;
18630
18631 hpux9* | hpux10* | hpux11*)
18632 # Give a soname corresponding to the major version so that dld.sl refuses to
18633 # link against other versions.
18634 version_type=sunos
18635 need_lib_prefix=no
18636 need_version=no
18637 case $host_cpu in
18638 ia64*)
18639 shrext_cmds='.so'
18640 hardcode_into_libs=yes
18641 dynamic_linker="$host_os dld.so"
18642 shlibpath_var=LD_LIBRARY_PATH
18643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18645 soname_spec='${libname}${release}${shared_ext}$major'
18646 if test "X$HPUX_IA64_MODE" = X32; then
18647 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18648 else
18649 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18650 fi
18651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18652 ;;
18653 hppa*64*)
18654 shrext_cmds='.sl'
18655 hardcode_into_libs=yes
18656 dynamic_linker="$host_os dld.sl"
18657 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18658 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660 soname_spec='${libname}${release}${shared_ext}$major'
18661 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18663 ;;
18664 *)
18665 shrext_cmds='.sl'
18666 dynamic_linker="$host_os dld.sl"
18667 shlibpath_var=SHLIB_PATH
18668 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18670 soname_spec='${libname}${release}${shared_ext}$major'
18671 ;;
18672 esac
18673 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18674 postinstall_cmds='chmod 555 $lib'
18675 ;;
18676
18677 interix[3-9]*)
18678 version_type=linux
18679 need_lib_prefix=no
18680 need_version=no
18681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18682 soname_spec='${libname}${release}${shared_ext}$major'
18683 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18684 shlibpath_var=LD_LIBRARY_PATH
18685 shlibpath_overrides_runpath=no
18686 hardcode_into_libs=yes
18687 ;;
18688
18689 irix5* | irix6* | nonstopux*)
18690 case $host_os in
18691 nonstopux*) version_type=nonstopux ;;
18692 *)
18693 if test "$lt_cv_prog_gnu_ld" = yes; then
18694 version_type=linux
18695 else
18696 version_type=irix
18697 fi ;;
18698 esac
18699 need_lib_prefix=no
18700 need_version=no
18701 soname_spec='${libname}${release}${shared_ext}$major'
18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18703 case $host_os in
18704 irix5* | nonstopux*)
18705 libsuff= shlibsuff=
18706 ;;
18707 *)
18708 case $LD in # libtool.m4 will add one of these switches to LD
18709 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18710 libsuff= shlibsuff= libmagic=32-bit;;
18711 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18712 libsuff=32 shlibsuff=N32 libmagic=N32;;
18713 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18714 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18715 *) libsuff= shlibsuff= libmagic=never-match;;
18716 esac
18717 ;;
18718 esac
18719 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18720 shlibpath_overrides_runpath=no
18721 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18722 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18723 hardcode_into_libs=yes
18724 ;;
18725
18726 # No shared lib support for Linux oldld, aout, or coff.
18727 linux*oldld* | linux*aout* | linux*coff*)
18728 dynamic_linker=no
18729 ;;
18730
18731 # This must be Linux ELF.
18732 linux* | k*bsd*-gnu)
18733 version_type=linux
18734 need_lib_prefix=no
18735 need_version=no
18736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737 soname_spec='${libname}${release}${shared_ext}$major'
18738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18739 shlibpath_var=LD_LIBRARY_PATH
18740 shlibpath_overrides_runpath=no
18741 # This implies no fast_install, which is unacceptable.
18742 # Some rework will be needed to allow for fast_install
18743 # before this can be enabled.
18744 hardcode_into_libs=yes
18745
18746 # Append ld.so.conf contents to the search path
18747 if test -f /etc/ld.so.conf; then
18748 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' ' '`
18749 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18750 fi
18751
18752 # We used to test for /lib/ld.so.1 and disable shared libraries on
18753 # powerpc, because MkLinux only supported shared libraries with the
18754 # GNU dynamic linker. Since this was broken with cross compilers,
18755 # most powerpc-linux boxes support dynamic linking these days and
18756 # people can always --disable-shared, the test was removed, and we
18757 # assume the GNU/Linux dynamic linker is in use.
18758 dynamic_linker='GNU/Linux ld.so'
18759 ;;
18760
18761 netbsdelf*-gnu)
18762 version_type=linux
18763 need_lib_prefix=no
18764 need_version=no
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18766 soname_spec='${libname}${release}${shared_ext}$major'
18767 shlibpath_var=LD_LIBRARY_PATH
18768 shlibpath_overrides_runpath=no
18769 hardcode_into_libs=yes
18770 dynamic_linker='NetBSD ld.elf_so'
18771 ;;
18772
18773 netbsd*)
18774 version_type=sunos
18775 need_lib_prefix=no
18776 need_version=no
18777 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18780 dynamic_linker='NetBSD (a.out) ld.so'
18781 else
18782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18783 soname_spec='${libname}${release}${shared_ext}$major'
18784 dynamic_linker='NetBSD ld.elf_so'
18785 fi
18786 shlibpath_var=LD_LIBRARY_PATH
18787 shlibpath_overrides_runpath=yes
18788 hardcode_into_libs=yes
18789 ;;
18790
18791 newsos6)
18792 version_type=linux
18793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18794 shlibpath_var=LD_LIBRARY_PATH
18795 shlibpath_overrides_runpath=yes
18796 ;;
18797
18798 nto-qnx*)
18799 version_type=linux
18800 need_lib_prefix=no
18801 need_version=no
18802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18803 soname_spec='${libname}${release}${shared_ext}$major'
18804 shlibpath_var=LD_LIBRARY_PATH
18805 shlibpath_overrides_runpath=yes
18806 ;;
18807
18808 openbsd*)
18809 version_type=sunos
18810 sys_lib_dlsearch_path_spec="/usr/lib"
18811 need_lib_prefix=no
18812 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18813 case $host_os in
18814 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18815 *) need_version=no ;;
18816 esac
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18819 shlibpath_var=LD_LIBRARY_PATH
18820 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18821 case $host_os in
18822 openbsd2.[89] | openbsd2.[89].*)
18823 shlibpath_overrides_runpath=no
18824 ;;
18825 *)
18826 shlibpath_overrides_runpath=yes
18827 ;;
18828 esac
18829 else
18830 shlibpath_overrides_runpath=yes
18831 fi
18832 ;;
18833
18834 os2*)
18835 libname_spec='$name'
18836 shrext_cmds=".dll"
18837 need_lib_prefix=no
18838 library_names_spec='$libname${shared_ext} $libname.a'
18839 dynamic_linker='OS/2 ld.exe'
18840 shlibpath_var=LIBPATH
18841 ;;
18842
18843 osf3* | osf4* | osf5*)
18844 version_type=osf
18845 need_lib_prefix=no
18846 need_version=no
18847 soname_spec='${libname}${release}${shared_ext}$major'
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18849 shlibpath_var=LD_LIBRARY_PATH
18850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18852 ;;
18853
18854 rdos*)
18855 dynamic_linker=no
18856 ;;
18857
18858 solaris*)
18859 version_type=linux
18860 need_lib_prefix=no
18861 need_version=no
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 shlibpath_var=LD_LIBRARY_PATH
18865 shlibpath_overrides_runpath=yes
18866 hardcode_into_libs=yes
18867 # ldd complains unless libraries are executable
18868 postinstall_cmds='chmod +x $lib'
18869 ;;
18870
18871 sunos4*)
18872 version_type=sunos
18873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18875 shlibpath_var=LD_LIBRARY_PATH
18876 shlibpath_overrides_runpath=yes
18877 if test "$with_gnu_ld" = yes; then
18878 need_lib_prefix=no
18879 fi
18880 need_version=yes
18881 ;;
18882
18883 sysv4 | sysv4.3*)
18884 version_type=linux
18885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18886 soname_spec='${libname}${release}${shared_ext}$major'
18887 shlibpath_var=LD_LIBRARY_PATH
18888 case $host_vendor in
18889 sni)
18890 shlibpath_overrides_runpath=no
18891 need_lib_prefix=no
18892 export_dynamic_flag_spec='${wl}-Blargedynsym'
18893 runpath_var=LD_RUN_PATH
18894 ;;
18895 siemens)
18896 need_lib_prefix=no
18897 ;;
18898 motorola)
18899 need_lib_prefix=no
18900 need_version=no
18901 shlibpath_overrides_runpath=no
18902 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18903 ;;
18904 esac
18905 ;;
18906
18907 sysv4*MP*)
18908 if test -d /usr/nec ;then
18909 version_type=linux
18910 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18911 soname_spec='$libname${shared_ext}.$major'
18912 shlibpath_var=LD_LIBRARY_PATH
18913 fi
18914 ;;
18915
18916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18917 version_type=freebsd-elf
18918 need_lib_prefix=no
18919 need_version=no
18920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18921 soname_spec='${libname}${release}${shared_ext}$major'
18922 shlibpath_var=LD_LIBRARY_PATH
18923 hardcode_into_libs=yes
18924 if test "$with_gnu_ld" = yes; then
18925 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18926 shlibpath_overrides_runpath=no
18927 else
18928 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18929 shlibpath_overrides_runpath=yes
18930 case $host_os in
18931 sco3.2v5*)
18932 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18933 ;;
18934 esac
18935 fi
18936 sys_lib_dlsearch_path_spec='/usr/lib'
18937 ;;
18938
18939 uts4*)
18940 version_type=linux
18941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18942 soname_spec='${libname}${release}${shared_ext}$major'
18943 shlibpath_var=LD_LIBRARY_PATH
18944 ;;
18945
18946 *)
18947 dynamic_linker=no
18948 ;;
18949 esac
18950 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18951 echo "${ECHO_T}$dynamic_linker" >&6; }
18952 test "$dynamic_linker" = no && can_build_shared=no
18953
18954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18958 fi
18959
18960 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18961 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18962 echo $ECHO_N "(cached) $ECHO_C" >&6
18963 else
18964 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18965 fi
18966
18967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18968
18969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18970 if test "$GCC" = yes; then
18971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18972 fi
18973
18974 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18975 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18976 hardcode_action_GCJ=
18977 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18978 test -n "$runpath_var_GCJ" || \
18979 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18980
18981 # We can hardcode non-existant directories.
18982 if test "$hardcode_direct_GCJ" != no &&
18983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18984 # have to relink, otherwise we might link with an installed library
18985 # when we should be linking with a yet-to-be-installed one
18986 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18987 test "$hardcode_minus_L_GCJ" != no; then
18988 # Linking always hardcodes the temporary library directory.
18989 hardcode_action_GCJ=relink
18990 else
18991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18992 hardcode_action_GCJ=immediate
18993 fi
18994 else
18995 # We cannot hardcode anything, or else we can only hardcode existing
18996 # directories.
18997 hardcode_action_GCJ=unsupported
18998 fi
18999 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19000 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19001
19002 if test "$hardcode_action_GCJ" = relink; then
19003 # Fast installation is not supported
19004 enable_fast_install=no
19005 elif test "$shlibpath_overrides_runpath" = yes ||
19006 test "$enable_shared" = no; then
19007 # Fast installation is not necessary
19008 enable_fast_install=needless
19009 fi
19010
19011
19012 # The else clause should only fire when bootstrapping the
19013 # libtool distribution, otherwise you forgot to ship ltmain.sh
19014 # with your package, and you will get complaints that there are
19015 # no rules to generate ltmain.sh.
19016 if test -f "$ltmain"; then
19017 # See if we are running on zsh, and set the options which allow our commands through
19018 # without removal of \ escapes.
19019 if test -n "${ZSH_VERSION+set}" ; then
19020 setopt NO_GLOB_SUBST
19021 fi
19022 # Now quote all the things that may contain metacharacters while being
19023 # careful not to overquote the AC_SUBSTed values. We take copies of the
19024 # variables and quote the copies for generation of the libtool script.
19025 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19026 SED SHELL STRIP \
19027 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19028 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19029 deplibs_check_method reload_flag reload_cmds need_locks \
19030 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19031 lt_cv_sys_global_symbol_to_c_name_address \
19032 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19033 old_postinstall_cmds old_postuninstall_cmds \
19034 compiler_GCJ \
19035 CC_GCJ \
19036 LD_GCJ \
19037 lt_prog_compiler_wl_GCJ \
19038 lt_prog_compiler_pic_GCJ \
19039 lt_prog_compiler_static_GCJ \
19040 lt_prog_compiler_no_builtin_flag_GCJ \
19041 export_dynamic_flag_spec_GCJ \
19042 thread_safe_flag_spec_GCJ \
19043 whole_archive_flag_spec_GCJ \
19044 enable_shared_with_static_runtimes_GCJ \
19045 old_archive_cmds_GCJ \
19046 old_archive_from_new_cmds_GCJ \
19047 predep_objects_GCJ \
19048 postdep_objects_GCJ \
19049 predeps_GCJ \
19050 postdeps_GCJ \
19051 compiler_lib_search_path_GCJ \
19052 compiler_lib_search_dirs_GCJ \
19053 archive_cmds_GCJ \
19054 archive_expsym_cmds_GCJ \
19055 postinstall_cmds_GCJ \
19056 postuninstall_cmds_GCJ \
19057 old_archive_from_expsyms_cmds_GCJ \
19058 allow_undefined_flag_GCJ \
19059 no_undefined_flag_GCJ \
19060 export_symbols_cmds_GCJ \
19061 hardcode_libdir_flag_spec_GCJ \
19062 hardcode_libdir_flag_spec_ld_GCJ \
19063 hardcode_libdir_separator_GCJ \
19064 hardcode_automatic_GCJ \
19065 module_cmds_GCJ \
19066 module_expsym_cmds_GCJ \
19067 lt_cv_prog_compiler_c_o_GCJ \
19068 fix_srcfile_path_GCJ \
19069 exclude_expsyms_GCJ \
19070 include_expsyms_GCJ; do
19071
19072 case $var in
19073 old_archive_cmds_GCJ | \
19074 old_archive_from_new_cmds_GCJ | \
19075 archive_cmds_GCJ | \
19076 archive_expsym_cmds_GCJ | \
19077 module_cmds_GCJ | \
19078 module_expsym_cmds_GCJ | \
19079 old_archive_from_expsyms_cmds_GCJ | \
19080 export_symbols_cmds_GCJ | \
19081 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19082 postinstall_cmds | postuninstall_cmds | \
19083 old_postinstall_cmds | old_postuninstall_cmds | \
19084 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19085 # Double-quote double-evaled strings.
19086 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19087 ;;
19088 *)
19089 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19090 ;;
19091 esac
19092 done
19093
19094 case $lt_echo in
19095 *'\$0 --fallback-echo"')
19096 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19097 ;;
19098 esac
19099
19100 cfgfile="$ofile"
19101
19102 cat <<__EOF__ >> "$cfgfile"
19103 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19104
19105 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19106
19107 # Shell to use when invoking shell scripts.
19108 SHELL=$lt_SHELL
19109
19110 # Whether or not to build shared libraries.
19111 build_libtool_libs=$enable_shared
19112
19113 # Whether or not to build static libraries.
19114 build_old_libs=$enable_static
19115
19116 # Whether or not to add -lc for building shared libraries.
19117 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19118
19119 # Whether or not to disallow shared libs when runtime libs are static
19120 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19121
19122 # Whether or not to optimize for fast installation.
19123 fast_install=$enable_fast_install
19124
19125 # The host system.
19126 host_alias=$host_alias
19127 host=$host
19128 host_os=$host_os
19129
19130 # The build system.
19131 build_alias=$build_alias
19132 build=$build
19133 build_os=$build_os
19134
19135 # An echo program that does not interpret backslashes.
19136 echo=$lt_echo
19137
19138 # The archiver.
19139 AR=$lt_AR
19140 AR_FLAGS=$lt_AR_FLAGS
19141
19142 # A C compiler.
19143 LTCC=$lt_LTCC
19144
19145 # LTCC compiler flags.
19146 LTCFLAGS=$lt_LTCFLAGS
19147
19148 # A language-specific compiler.
19149 CC=$lt_compiler_GCJ
19150
19151 # Is the compiler the GNU C compiler?
19152 with_gcc=$GCC_GCJ
19153
19154 # An ERE matcher.
19155 EGREP=$lt_EGREP
19156
19157 # The linker used to build libraries.
19158 LD=$lt_LD_GCJ
19159
19160 # Whether we need hard or soft links.
19161 LN_S=$lt_LN_S
19162
19163 # A BSD-compatible nm program.
19164 NM=$lt_NM
19165
19166 # A symbol stripping program
19167 STRIP=$lt_STRIP
19168
19169 # Used to examine libraries when file_magic_cmd begins "file"
19170 MAGIC_CMD=$MAGIC_CMD
19171
19172 # Used on cygwin: DLL creation program.
19173 DLLTOOL="$DLLTOOL"
19174
19175 # Used on cygwin: object dumper.
19176 OBJDUMP="$OBJDUMP"
19177
19178 # Used on cygwin: assembler.
19179 AS="$AS"
19180
19181 # The name of the directory that contains temporary libtool files.
19182 objdir=$objdir
19183
19184 # How to create reloadable object files.
19185 reload_flag=$lt_reload_flag
19186 reload_cmds=$lt_reload_cmds
19187
19188 # How to pass a linker flag through the compiler.
19189 wl=$lt_lt_prog_compiler_wl_GCJ
19190
19191 # Object file suffix (normally "o").
19192 objext="$ac_objext"
19193
19194 # Old archive suffix (normally "a").
19195 libext="$libext"
19196
19197 # Shared library suffix (normally ".so").
19198 shrext_cmds='$shrext_cmds'
19199
19200 # Executable file suffix (normally "").
19201 exeext="$exeext"
19202
19203 # Additional compiler flags for building library objects.
19204 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19205 pic_mode=$pic_mode
19206
19207 # What is the maximum length of a command?
19208 max_cmd_len=$lt_cv_sys_max_cmd_len
19209
19210 # Does compiler simultaneously support -c and -o options?
19211 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19212
19213 # Must we lock files when doing compilation?
19214 need_locks=$lt_need_locks
19215
19216 # Do we need the lib prefix for modules?
19217 need_lib_prefix=$need_lib_prefix
19218
19219 # Do we need a version for libraries?
19220 need_version=$need_version
19221
19222 # Whether dlopen is supported.
19223 dlopen_support=$enable_dlopen
19224
19225 # Whether dlopen of programs is supported.
19226 dlopen_self=$enable_dlopen_self
19227
19228 # Whether dlopen of statically linked programs is supported.
19229 dlopen_self_static=$enable_dlopen_self_static
19230
19231 # Compiler flag to prevent dynamic linking.
19232 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19233
19234 # Compiler flag to turn off builtin functions.
19235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19236
19237 # Compiler flag to allow reflexive dlopens.
19238 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19239
19240 # Compiler flag to generate shared objects directly from archives.
19241 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19242
19243 # Compiler flag to generate thread-safe objects.
19244 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19245
19246 # Library versioning type.
19247 version_type=$version_type
19248
19249 # Format of library name prefix.
19250 libname_spec=$lt_libname_spec
19251
19252 # List of archive names. First name is the real one, the rest are links.
19253 # The last name is the one that the linker finds with -lNAME.
19254 library_names_spec=$lt_library_names_spec
19255
19256 # The coded name of the library, if different from the real name.
19257 soname_spec=$lt_soname_spec
19258
19259 # Commands used to build and install an old-style archive.
19260 RANLIB=$lt_RANLIB
19261 old_archive_cmds=$lt_old_archive_cmds_GCJ
19262 old_postinstall_cmds=$lt_old_postinstall_cmds
19263 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19264
19265 # Create an old-style archive from a shared archive.
19266 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19267
19268 # Create a temporary old-style archive to link instead of a shared archive.
19269 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19270
19271 # Commands used to build and install a shared archive.
19272 archive_cmds=$lt_archive_cmds_GCJ
19273 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19274 postinstall_cmds=$lt_postinstall_cmds
19275 postuninstall_cmds=$lt_postuninstall_cmds
19276
19277 # Commands used to build a loadable module (assumed same as above if empty)
19278 module_cmds=$lt_module_cmds_GCJ
19279 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19280
19281 # Commands to strip libraries.
19282 old_striplib=$lt_old_striplib
19283 striplib=$lt_striplib
19284
19285 # Dependencies to place before the objects being linked to create a
19286 # shared library.
19287 predep_objects=$lt_predep_objects_GCJ
19288
19289 # Dependencies to place after the objects being linked to create a
19290 # shared library.
19291 postdep_objects=$lt_postdep_objects_GCJ
19292
19293 # Dependencies to place before the objects being linked to create a
19294 # shared library.
19295 predeps=$lt_predeps_GCJ
19296
19297 # Dependencies to place after the objects being linked to create a
19298 # shared library.
19299 postdeps=$lt_postdeps_GCJ
19300
19301 # The directories searched by this compiler when creating a shared
19302 # library
19303 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19304
19305 # The library search path used internally by the compiler when linking
19306 # a shared library.
19307 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19308
19309 # Method to check whether dependent libraries are shared objects.
19310 deplibs_check_method=$lt_deplibs_check_method
19311
19312 # Command to use when deplibs_check_method == file_magic.
19313 file_magic_cmd=$lt_file_magic_cmd
19314
19315 # Flag that allows shared libraries with undefined symbols to be built.
19316 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19317
19318 # Flag that forces no undefined symbols.
19319 no_undefined_flag=$lt_no_undefined_flag_GCJ
19320
19321 # Commands used to finish a libtool library installation in a directory.
19322 finish_cmds=$lt_finish_cmds
19323
19324 # Same as above, but a single script fragment to be evaled but not shown.
19325 finish_eval=$lt_finish_eval
19326
19327 # Take the output of nm and produce a listing of raw symbols and C names.
19328 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19329
19330 # Transform the output of nm in a proper C declaration
19331 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19332
19333 # Transform the output of nm in a C name address pair
19334 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19335
19336 # This is the shared library runtime path variable.
19337 runpath_var=$runpath_var
19338
19339 # This is the shared library path variable.
19340 shlibpath_var=$shlibpath_var
19341
19342 # Is shlibpath searched before the hard-coded library search path?
19343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19344
19345 # How to hardcode a shared library path into an executable.
19346 hardcode_action=$hardcode_action_GCJ
19347
19348 # Whether we should hardcode library paths into libraries.
19349 hardcode_into_libs=$hardcode_into_libs
19350
19351 # Flag to hardcode \$libdir into a binary during linking.
19352 # This must work even if \$libdir does not exist.
19353 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19354
19355 # If ld is used when linking, flag to hardcode \$libdir into
19356 # a binary during linking. This must work even if \$libdir does
19357 # not exist.
19358 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19359
19360 # Whether we need a single -rpath flag with a separated argument.
19361 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19362
19363 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19364 # resulting binary.
19365 hardcode_direct=$hardcode_direct_GCJ
19366
19367 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19368 # resulting binary.
19369 hardcode_minus_L=$hardcode_minus_L_GCJ
19370
19371 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19372 # the resulting binary.
19373 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19374
19375 # Set to yes if building a shared library automatically hardcodes DIR into the library
19376 # and all subsequent libraries and executables linked against it.
19377 hardcode_automatic=$hardcode_automatic_GCJ
19378
19379 # Variables whose values should be saved in libtool wrapper scripts and
19380 # restored at relink time.
19381 variables_saved_for_relink="$variables_saved_for_relink"
19382
19383 # Whether libtool must link a program against all its dependency libraries.
19384 link_all_deplibs=$link_all_deplibs_GCJ
19385
19386 # Compile-time system search path for libraries
19387 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19388
19389 # Run-time system search path for libraries
19390 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19391
19392 # Fix the shell variable \$srcfile for the compiler.
19393 fix_srcfile_path=$lt_fix_srcfile_path
19394
19395 # Set to yes if exported symbols are required.
19396 always_export_symbols=$always_export_symbols_GCJ
19397
19398 # The commands to list exported symbols.
19399 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19400
19401 # The commands to extract the exported symbol list from a shared archive.
19402 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19403
19404 # Symbols that should not be listed in the preloaded symbols.
19405 exclude_expsyms=$lt_exclude_expsyms_GCJ
19406
19407 # Symbols that must always be exported.
19408 include_expsyms=$lt_include_expsyms_GCJ
19409
19410 # ### END LIBTOOL TAG CONFIG: $tagname
19411
19412 __EOF__
19413
19414
19415 else
19416 # If there is no Makefile yet, we rely on a make rule to execute
19417 # `config.status --recheck' to rerun these tests and create the
19418 # libtool script then.
19419 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19420 if test -f "$ltmain_in"; then
19421 test -f Makefile && make "$ltmain"
19422 fi
19423 fi
19424
19425
19426 ac_ext=c
19427 ac_cpp='$CPP $CPPFLAGS'
19428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19431
19432 CC="$lt_save_CC"
19433
19434 else
19435 tagname=""
19436 fi
19437 ;;
19438
19439 RC)
19440
19441
19442 # Source file extension for RC test sources.
19443 ac_ext=rc
19444
19445 # Object file extension for compiled RC test sources.
19446 objext=o
19447 objext_RC=$objext
19448
19449 # Code to be used in simple compile tests
19450 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19451
19452 # Code to be used in simple link tests
19453 lt_simple_link_test_code="$lt_simple_compile_test_code"
19454
19455 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19456
19457 # If no C compiler was specified, use CC.
19458 LTCC=${LTCC-"$CC"}
19459
19460 # If no C compiler flags were specified, use CFLAGS.
19461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19462
19463 # Allow CC to be a program name with arguments.
19464 compiler=$CC
19465
19466
19467 # save warnings/boilerplate of simple test code
19468 ac_outfile=conftest.$ac_objext
19469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19471 _lt_compiler_boilerplate=`cat conftest.err`
19472 $rm conftest*
19473
19474 ac_outfile=conftest.$ac_objext
19475 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19477 _lt_linker_boilerplate=`cat conftest.err`
19478 $rm -r conftest*
19479
19480
19481 # Allow CC to be a program name with arguments.
19482 lt_save_CC="$CC"
19483 CC=${RC-"windres"}
19484 compiler=$CC
19485 compiler_RC=$CC
19486 for cc_temp in $compiler""; do
19487 case $cc_temp in
19488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19490 \-*) ;;
19491 *) break;;
19492 esac
19493 done
19494 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19495
19496 lt_cv_prog_compiler_c_o_RC=yes
19497
19498 # The else clause should only fire when bootstrapping the
19499 # libtool distribution, otherwise you forgot to ship ltmain.sh
19500 # with your package, and you will get complaints that there are
19501 # no rules to generate ltmain.sh.
19502 if test -f "$ltmain"; then
19503 # See if we are running on zsh, and set the options which allow our commands through
19504 # without removal of \ escapes.
19505 if test -n "${ZSH_VERSION+set}" ; then
19506 setopt NO_GLOB_SUBST
19507 fi
19508 # Now quote all the things that may contain metacharacters while being
19509 # careful not to overquote the AC_SUBSTed values. We take copies of the
19510 # variables and quote the copies for generation of the libtool script.
19511 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19512 SED SHELL STRIP \
19513 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19514 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19515 deplibs_check_method reload_flag reload_cmds need_locks \
19516 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19517 lt_cv_sys_global_symbol_to_c_name_address \
19518 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19519 old_postinstall_cmds old_postuninstall_cmds \
19520 compiler_RC \
19521 CC_RC \
19522 LD_RC \
19523 lt_prog_compiler_wl_RC \
19524 lt_prog_compiler_pic_RC \
19525 lt_prog_compiler_static_RC \
19526 lt_prog_compiler_no_builtin_flag_RC \
19527 export_dynamic_flag_spec_RC \
19528 thread_safe_flag_spec_RC \
19529 whole_archive_flag_spec_RC \
19530 enable_shared_with_static_runtimes_RC \
19531 old_archive_cmds_RC \
19532 old_archive_from_new_cmds_RC \
19533 predep_objects_RC \
19534 postdep_objects_RC \
19535 predeps_RC \
19536 postdeps_RC \
19537 compiler_lib_search_path_RC \
19538 compiler_lib_search_dirs_RC \
19539 archive_cmds_RC \
19540 archive_expsym_cmds_RC \
19541 postinstall_cmds_RC \
19542 postuninstall_cmds_RC \
19543 old_archive_from_expsyms_cmds_RC \
19544 allow_undefined_flag_RC \
19545 no_undefined_flag_RC \
19546 export_symbols_cmds_RC \
19547 hardcode_libdir_flag_spec_RC \
19548 hardcode_libdir_flag_spec_ld_RC \
19549 hardcode_libdir_separator_RC \
19550 hardcode_automatic_RC \
19551 module_cmds_RC \
19552 module_expsym_cmds_RC \
19553 lt_cv_prog_compiler_c_o_RC \
19554 fix_srcfile_path_RC \
19555 exclude_expsyms_RC \
19556 include_expsyms_RC; do
19557
19558 case $var in
19559 old_archive_cmds_RC | \
19560 old_archive_from_new_cmds_RC | \
19561 archive_cmds_RC | \
19562 archive_expsym_cmds_RC | \
19563 module_cmds_RC | \
19564 module_expsym_cmds_RC | \
19565 old_archive_from_expsyms_cmds_RC | \
19566 export_symbols_cmds_RC | \
19567 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19568 postinstall_cmds | postuninstall_cmds | \
19569 old_postinstall_cmds | old_postuninstall_cmds | \
19570 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19571 # Double-quote double-evaled strings.
19572 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19573 ;;
19574 *)
19575 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19576 ;;
19577 esac
19578 done
19579
19580 case $lt_echo in
19581 *'\$0 --fallback-echo"')
19582 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19583 ;;
19584 esac
19585
19586 cfgfile="$ofile"
19587
19588 cat <<__EOF__ >> "$cfgfile"
19589 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19590
19591 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19592
19593 # Shell to use when invoking shell scripts.
19594 SHELL=$lt_SHELL
19595
19596 # Whether or not to build shared libraries.
19597 build_libtool_libs=$enable_shared
19598
19599 # Whether or not to build static libraries.
19600 build_old_libs=$enable_static
19601
19602 # Whether or not to add -lc for building shared libraries.
19603 build_libtool_need_lc=$archive_cmds_need_lc_RC
19604
19605 # Whether or not to disallow shared libs when runtime libs are static
19606 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19607
19608 # Whether or not to optimize for fast installation.
19609 fast_install=$enable_fast_install
19610
19611 # The host system.
19612 host_alias=$host_alias
19613 host=$host
19614 host_os=$host_os
19615
19616 # The build system.
19617 build_alias=$build_alias
19618 build=$build
19619 build_os=$build_os
19620
19621 # An echo program that does not interpret backslashes.
19622 echo=$lt_echo
19623
19624 # The archiver.
19625 AR=$lt_AR
19626 AR_FLAGS=$lt_AR_FLAGS
19627
19628 # A C compiler.
19629 LTCC=$lt_LTCC
19630
19631 # LTCC compiler flags.
19632 LTCFLAGS=$lt_LTCFLAGS
19633
19634 # A language-specific compiler.
19635 CC=$lt_compiler_RC
19636
19637 # Is the compiler the GNU C compiler?
19638 with_gcc=$GCC_RC
19639
19640 # An ERE matcher.
19641 EGREP=$lt_EGREP
19642
19643 # The linker used to build libraries.
19644 LD=$lt_LD_RC
19645
19646 # Whether we need hard or soft links.
19647 LN_S=$lt_LN_S
19648
19649 # A BSD-compatible nm program.
19650 NM=$lt_NM
19651
19652 # A symbol stripping program
19653 STRIP=$lt_STRIP
19654
19655 # Used to examine libraries when file_magic_cmd begins "file"
19656 MAGIC_CMD=$MAGIC_CMD
19657
19658 # Used on cygwin: DLL creation program.
19659 DLLTOOL="$DLLTOOL"
19660
19661 # Used on cygwin: object dumper.
19662 OBJDUMP="$OBJDUMP"
19663
19664 # Used on cygwin: assembler.
19665 AS="$AS"
19666
19667 # The name of the directory that contains temporary libtool files.
19668 objdir=$objdir
19669
19670 # How to create reloadable object files.
19671 reload_flag=$lt_reload_flag
19672 reload_cmds=$lt_reload_cmds
19673
19674 # How to pass a linker flag through the compiler.
19675 wl=$lt_lt_prog_compiler_wl_RC
19676
19677 # Object file suffix (normally "o").
19678 objext="$ac_objext"
19679
19680 # Old archive suffix (normally "a").
19681 libext="$libext"
19682
19683 # Shared library suffix (normally ".so").
19684 shrext_cmds='$shrext_cmds'
19685
19686 # Executable file suffix (normally "").
19687 exeext="$exeext"
19688
19689 # Additional compiler flags for building library objects.
19690 pic_flag=$lt_lt_prog_compiler_pic_RC
19691 pic_mode=$pic_mode
19692
19693 # What is the maximum length of a command?
19694 max_cmd_len=$lt_cv_sys_max_cmd_len
19695
19696 # Does compiler simultaneously support -c and -o options?
19697 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19698
19699 # Must we lock files when doing compilation?
19700 need_locks=$lt_need_locks
19701
19702 # Do we need the lib prefix for modules?
19703 need_lib_prefix=$need_lib_prefix
19704
19705 # Do we need a version for libraries?
19706 need_version=$need_version
19707
19708 # Whether dlopen is supported.
19709 dlopen_support=$enable_dlopen
19710
19711 # Whether dlopen of programs is supported.
19712 dlopen_self=$enable_dlopen_self
19713
19714 # Whether dlopen of statically linked programs is supported.
19715 dlopen_self_static=$enable_dlopen_self_static
19716
19717 # Compiler flag to prevent dynamic linking.
19718 link_static_flag=$lt_lt_prog_compiler_static_RC
19719
19720 # Compiler flag to turn off builtin functions.
19721 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19722
19723 # Compiler flag to allow reflexive dlopens.
19724 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19725
19726 # Compiler flag to generate shared objects directly from archives.
19727 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19728
19729 # Compiler flag to generate thread-safe objects.
19730 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19731
19732 # Library versioning type.
19733 version_type=$version_type
19734
19735 # Format of library name prefix.
19736 libname_spec=$lt_libname_spec
19737
19738 # List of archive names. First name is the real one, the rest are links.
19739 # The last name is the one that the linker finds with -lNAME.
19740 library_names_spec=$lt_library_names_spec
19741
19742 # The coded name of the library, if different from the real name.
19743 soname_spec=$lt_soname_spec
19744
19745 # Commands used to build and install an old-style archive.
19746 RANLIB=$lt_RANLIB
19747 old_archive_cmds=$lt_old_archive_cmds_RC
19748 old_postinstall_cmds=$lt_old_postinstall_cmds
19749 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19750
19751 # Create an old-style archive from a shared archive.
19752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19753
19754 # Create a temporary old-style archive to link instead of a shared archive.
19755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19756
19757 # Commands used to build and install a shared archive.
19758 archive_cmds=$lt_archive_cmds_RC
19759 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19760 postinstall_cmds=$lt_postinstall_cmds
19761 postuninstall_cmds=$lt_postuninstall_cmds
19762
19763 # Commands used to build a loadable module (assumed same as above if empty)
19764 module_cmds=$lt_module_cmds_RC
19765 module_expsym_cmds=$lt_module_expsym_cmds_RC
19766
19767 # Commands to strip libraries.
19768 old_striplib=$lt_old_striplib
19769 striplib=$lt_striplib
19770
19771 # Dependencies to place before the objects being linked to create a
19772 # shared library.
19773 predep_objects=$lt_predep_objects_RC
19774
19775 # Dependencies to place after the objects being linked to create a
19776 # shared library.
19777 postdep_objects=$lt_postdep_objects_RC
19778
19779 # Dependencies to place before the objects being linked to create a
19780 # shared library.
19781 predeps=$lt_predeps_RC
19782
19783 # Dependencies to place after the objects being linked to create a
19784 # shared library.
19785 postdeps=$lt_postdeps_RC
19786
19787 # The directories searched by this compiler when creating a shared
19788 # library
19789 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19790
19791 # The library search path used internally by the compiler when linking
19792 # a shared library.
19793 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19794
19795 # Method to check whether dependent libraries are shared objects.
19796 deplibs_check_method=$lt_deplibs_check_method
19797
19798 # Command to use when deplibs_check_method == file_magic.
19799 file_magic_cmd=$lt_file_magic_cmd
19800
19801 # Flag that allows shared libraries with undefined symbols to be built.
19802 allow_undefined_flag=$lt_allow_undefined_flag_RC
19803
19804 # Flag that forces no undefined symbols.
19805 no_undefined_flag=$lt_no_undefined_flag_RC
19806
19807 # Commands used to finish a libtool library installation in a directory.
19808 finish_cmds=$lt_finish_cmds
19809
19810 # Same as above, but a single script fragment to be evaled but not shown.
19811 finish_eval=$lt_finish_eval
19812
19813 # Take the output of nm and produce a listing of raw symbols and C names.
19814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19815
19816 # Transform the output of nm in a proper C declaration
19817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19818
19819 # Transform the output of nm in a C name address pair
19820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19821
19822 # This is the shared library runtime path variable.
19823 runpath_var=$runpath_var
19824
19825 # This is the shared library path variable.
19826 shlibpath_var=$shlibpath_var
19827
19828 # Is shlibpath searched before the hard-coded library search path?
19829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19830
19831 # How to hardcode a shared library path into an executable.
19832 hardcode_action=$hardcode_action_RC
19833
19834 # Whether we should hardcode library paths into libraries.
19835 hardcode_into_libs=$hardcode_into_libs
19836
19837 # Flag to hardcode \$libdir into a binary during linking.
19838 # This must work even if \$libdir does not exist.
19839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19840
19841 # If ld is used when linking, flag to hardcode \$libdir into
19842 # a binary during linking. This must work even if \$libdir does
19843 # not exist.
19844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19845
19846 # Whether we need a single -rpath flag with a separated argument.
19847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19848
19849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19850 # resulting binary.
19851 hardcode_direct=$hardcode_direct_RC
19852
19853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19854 # resulting binary.
19855 hardcode_minus_L=$hardcode_minus_L_RC
19856
19857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19858 # the resulting binary.
19859 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19860
19861 # Set to yes if building a shared library automatically hardcodes DIR into the library
19862 # and all subsequent libraries and executables linked against it.
19863 hardcode_automatic=$hardcode_automatic_RC
19864
19865 # Variables whose values should be saved in libtool wrapper scripts and
19866 # restored at relink time.
19867 variables_saved_for_relink="$variables_saved_for_relink"
19868
19869 # Whether libtool must link a program against all its dependency libraries.
19870 link_all_deplibs=$link_all_deplibs_RC
19871
19872 # Compile-time system search path for libraries
19873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19874
19875 # Run-time system search path for libraries
19876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19877
19878 # Fix the shell variable \$srcfile for the compiler.
19879 fix_srcfile_path=$lt_fix_srcfile_path
19880
19881 # Set to yes if exported symbols are required.
19882 always_export_symbols=$always_export_symbols_RC
19883
19884 # The commands to list exported symbols.
19885 export_symbols_cmds=$lt_export_symbols_cmds_RC
19886
19887 # The commands to extract the exported symbol list from a shared archive.
19888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19889
19890 # Symbols that should not be listed in the preloaded symbols.
19891 exclude_expsyms=$lt_exclude_expsyms_RC
19892
19893 # Symbols that must always be exported.
19894 include_expsyms=$lt_include_expsyms_RC
19895
19896 # ### END LIBTOOL TAG CONFIG: $tagname
19897
19898 __EOF__
19899
19900
19901 else
19902 # If there is no Makefile yet, we rely on a make rule to execute
19903 # `config.status --recheck' to rerun these tests and create the
19904 # libtool script then.
19905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19906 if test -f "$ltmain_in"; then
19907 test -f Makefile && make "$ltmain"
19908 fi
19909 fi
19910
19911
19912 ac_ext=c
19913 ac_cpp='$CPP $CPPFLAGS'
19914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19917
19918 CC="$lt_save_CC"
19919
19920 ;;
19921
19922 *)
19923 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19924 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19925 { (exit 1); exit 1; }; }
19926 ;;
19927 esac
19928
19929 # Append the new tag name to the list of available tags.
19930 if test -n "$tagname" ; then
19931 available_tags="$available_tags $tagname"
19932 fi
19933 fi
19934 done
19935 IFS="$lt_save_ifs"
19936
19937 # Now substitute the updated list of available tags.
19938 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19939 mv "${ofile}T" "$ofile"
19940 chmod +x "$ofile"
19941 else
19942 rm -f "${ofile}T"
19943 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19944 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19945 { (exit 1); exit 1; }; }
19946 fi
19947 fi
19948
19949
19950
19951 # This can be used to rebuild libtool when needed
19952 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19953
19954 # Always use our own libtool.
19955 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19956
19957 # Prevent multiple expansion
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979 case "$am__api_version" in
19980 1.01234)
19981 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
19982 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
19983 { (exit 1); exit 1; }; }
19984 ;;
19985 *)
19986 ;;
19987 esac
19988
19989 if test -n ""; then
19990 { echo "$as_me:$LINENO: checking for intltool >= " >&5
19991 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; }
19992
19993 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
19994 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
19995 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
19996
19997 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
19998 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
19999 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
20000 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5
20001 echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;}
20002 { (exit 1); exit 1; }; }
20003 fi
20004
20005 # Extract the first word of "intltool-update", so it can be a program name with args.
20006 set dummy intltool-update; ac_word=$2
20007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20009 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20011 else
20012 case $INTLTOOL_UPDATE in
20013 [\\/]* | ?:[\\/]*)
20014 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
20015 ;;
20016 *)
20017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20018 for as_dir in $PATH
20019 do
20020 IFS=$as_save_IFS
20021 test -z "$as_dir" && as_dir=.
20022 for ac_exec_ext in '' $ac_executable_extensions; do
20023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20024 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
20025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20026 break 2
20027 fi
20028 done
20029 done
20030 IFS=$as_save_IFS
20031
20032 ;;
20033 esac
20034 fi
20035 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
20036 if test -n "$INTLTOOL_UPDATE"; then
20037 { echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
20038 echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
20039 else
20040 { echo "$as_me:$LINENO: result: no" >&5
20041 echo "${ECHO_T}no" >&6; }
20042 fi
20043
20044
20045 # Extract the first word of "intltool-merge", so it can be a program name with args.
20046 set dummy intltool-merge; ac_word=$2
20047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20049 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052 case $INTLTOOL_MERGE in
20053 [\\/]* | ?:[\\/]*)
20054 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
20055 ;;
20056 *)
20057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20058 for as_dir in $PATH
20059 do
20060 IFS=$as_save_IFS
20061 test -z "$as_dir" && as_dir=.
20062 for ac_exec_ext in '' $ac_executable_extensions; do
20063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20064 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
20065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20066 break 2
20067 fi
20068 done
20069 done
20070 IFS=$as_save_IFS
20071
20072 ;;
20073 esac
20074 fi
20075 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
20076 if test -n "$INTLTOOL_MERGE"; then
20077 { echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
20078 echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
20079 else
20080 { echo "$as_me:$LINENO: result: no" >&5
20081 echo "${ECHO_T}no" >&6; }
20082 fi
20083
20084
20085 # Extract the first word of "intltool-extract", so it can be a program name with args.
20086 set dummy intltool-extract; ac_word=$2
20087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20089 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092 case $INTLTOOL_EXTRACT in
20093 [\\/]* | ?:[\\/]*)
20094 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
20095 ;;
20096 *)
20097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20098 for as_dir in $PATH
20099 do
20100 IFS=$as_save_IFS
20101 test -z "$as_dir" && as_dir=.
20102 for ac_exec_ext in '' $ac_executable_extensions; do
20103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20104 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
20105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20106 break 2
20107 fi
20108 done
20109 done
20110 IFS=$as_save_IFS
20111
20112 ;;
20113 esac
20114 fi
20115 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
20116 if test -n "$INTLTOOL_EXTRACT"; then
20117 { echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
20118 echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
20119 else
20120 { echo "$as_me:$LINENO: result: no" >&5
20121 echo "${ECHO_T}no" >&6; }
20122 fi
20123
20124
20125 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
20126 { { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
20127 echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
20128 { (exit 1); exit 1; }; }
20129 fi
20130
20131 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20132 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20133 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20134 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20135 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
20136 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20137 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20138 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20139 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20140 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20141 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20142 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
20143 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20144 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20145 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20146 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20147 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20148 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20149 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171 # Check the gettext tools to make sure they are GNU
20172 # Extract the first word of "xgettext", so it can be a program name with args.
20173 set dummy xgettext; ac_word=$2
20174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20176 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20178 else
20179 case $XGETTEXT in
20180 [\\/]* | ?:[\\/]*)
20181 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20182 ;;
20183 *)
20184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20185 for as_dir in $PATH
20186 do
20187 IFS=$as_save_IFS
20188 test -z "$as_dir" && as_dir=.
20189 for ac_exec_ext in '' $ac_executable_extensions; do
20190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20191 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
20192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20193 break 2
20194 fi
20195 done
20196 done
20197 IFS=$as_save_IFS
20198
20199 ;;
20200 esac
20201 fi
20202 XGETTEXT=$ac_cv_path_XGETTEXT
20203 if test -n "$XGETTEXT"; then
20204 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20205 echo "${ECHO_T}$XGETTEXT" >&6; }
20206 else
20207 { echo "$as_me:$LINENO: result: no" >&5
20208 echo "${ECHO_T}no" >&6; }
20209 fi
20210
20211
20212 # Extract the first word of "msgmerge", so it can be a program name with args.
20213 set dummy msgmerge; ac_word=$2
20214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20216 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219 case $MSGMERGE in
20220 [\\/]* | ?:[\\/]*)
20221 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20222 ;;
20223 *)
20224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20225 for as_dir in $PATH
20226 do
20227 IFS=$as_save_IFS
20228 test -z "$as_dir" && as_dir=.
20229 for ac_exec_ext in '' $ac_executable_extensions; do
20230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20231 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
20232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20233 break 2
20234 fi
20235 done
20236 done
20237 IFS=$as_save_IFS
20238
20239 ;;
20240 esac
20241 fi
20242 MSGMERGE=$ac_cv_path_MSGMERGE
20243 if test -n "$MSGMERGE"; then
20244 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20245 echo "${ECHO_T}$MSGMERGE" >&6; }
20246 else
20247 { echo "$as_me:$LINENO: result: no" >&5
20248 echo "${ECHO_T}no" >&6; }
20249 fi
20250
20251
20252 # Extract the first word of "msgfmt", so it can be a program name with args.
20253 set dummy msgfmt; ac_word=$2
20254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20256 if test "${ac_cv_path_MSGFMT+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 else
20259 case $MSGFMT in
20260 [\\/]* | ?:[\\/]*)
20261 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20262 ;;
20263 *)
20264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20265 for as_dir in $PATH
20266 do
20267 IFS=$as_save_IFS
20268 test -z "$as_dir" && as_dir=.
20269 for ac_exec_ext in '' $ac_executable_extensions; do
20270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20271 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
20272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20273 break 2
20274 fi
20275 done
20276 done
20277 IFS=$as_save_IFS
20278
20279 ;;
20280 esac
20281 fi
20282 MSGFMT=$ac_cv_path_MSGFMT
20283 if test -n "$MSGFMT"; then
20284 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
20285 echo "${ECHO_T}$MSGFMT" >&6; }
20286 else
20287 { echo "$as_me:$LINENO: result: no" >&5
20288 echo "${ECHO_T}no" >&6; }
20289 fi
20290
20291
20292 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
20293 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20294 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20295 { (exit 1); exit 1; }; }
20296 fi
20297 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
20298 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
20299 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
20300 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
20301 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20302 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20303 { (exit 1); exit 1; }; }
20304 fi
20305
20306 # Extract the first word of "perl", so it can be a program name with args.
20307 set dummy perl; ac_word=$2
20308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20310 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313 case $INTLTOOL_PERL in
20314 [\\/]* | ?:[\\/]*)
20315 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
20316 ;;
20317 *)
20318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20319 for as_dir in $PATH
20320 do
20321 IFS=$as_save_IFS
20322 test -z "$as_dir" && as_dir=.
20323 for ac_exec_ext in '' $ac_executable_extensions; do
20324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20325 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
20326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20327 break 2
20328 fi
20329 done
20330 done
20331 IFS=$as_save_IFS
20332
20333 ;;
20334 esac
20335 fi
20336 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
20337 if test -n "$INTLTOOL_PERL"; then
20338 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
20339 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
20340 else
20341 { echo "$as_me:$LINENO: result: no" >&5
20342 echo "${ECHO_T}no" >&6; }
20343 fi
20344
20345
20346 if test -z "$INTLTOOL_PERL"; then
20347 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
20348 echo "$as_me: error: perl not found; required for intltool" >&2;}
20349 { (exit 1); exit 1; }; }
20350 fi
20351 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
20352 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
20353 echo "$as_me: error: perl 5.x required for intltool" >&2;}
20354 { (exit 1); exit 1; }; }
20355 fi
20356 if test "x" != "xno-xml"; then
20357 { echo "$as_me:$LINENO: checking for XML::Parser" >&5
20358 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
20359 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
20360 { echo "$as_me:$LINENO: result: ok" >&5
20361 echo "${ECHO_T}ok" >&6; }
20362 else
20363 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
20364 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
20365 { (exit 1); exit 1; }; }
20366 fi
20367 fi
20368
20369 # Substitute ALL_LINGUAS so we can use it in po/Makefile
20370
20371
20372 # Set DATADIRNAME correctly if it is not set yet
20373 # (copied from glib-gettext.m4)
20374 if test -z "$DATADIRNAME"; then
20375 cat >conftest.$ac_ext <<_ACEOF
20376 /* confdefs.h. */
20377 _ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381
20382 int
20383 main ()
20384 {
20385 extern int _nl_msg_cat_cntr;
20386 return _nl_msg_cat_cntr
20387 ;
20388 return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (ac_try="$ac_link"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_link") 2>conftest.er1
20399 ac_status=$?
20400 grep -v '^ *+' conftest.er1 >conftest.err
20401 rm -f conftest.er1
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && {
20405 test -z "$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20407 } && test -s conftest$ac_exeext &&
20408 $as_test_x conftest$ac_exeext; then
20409 DATADIRNAME=share
20410 else
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414 case $host in
20415 *-*-solaris*)
20416 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
20417 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
20418 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20421 cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h. */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20427 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
20428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20429 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
20430
20431 /* System header to define __stub macros and hopefully few prototypes,
20432 which can conflict with char bind_textdomain_codeset (); below.
20433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20434 <limits.h> exists even on freestanding compilers. */
20435
20436 #ifdef __STDC__
20437 # include <limits.h>
20438 #else
20439 # include <assert.h>
20440 #endif
20441
20442 #undef bind_textdomain_codeset
20443
20444 /* Override any GCC internal prototype to avoid an error.
20445 Use char because int might match the return type of a GCC
20446 builtin and then its argument prototype would still apply. */
20447 #ifdef __cplusplus
20448 extern "C"
20449 #endif
20450 char bind_textdomain_codeset ();
20451 /* The GNU C library defines this for functions which it implements
20452 to always fail with ENOSYS. Some functions are actually named
20453 something starting with __ and the normal name is an alias. */
20454 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
20455 choke me
20456 #endif
20457
20458 int
20459 main ()
20460 {
20461 return bind_textdomain_codeset ();
20462 ;
20463 return 0;
20464 }
20465 _ACEOF
20466 rm -f conftest.$ac_objext conftest$ac_exeext
20467 if { (ac_try="$ac_link"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_link") 2>conftest.er1
20474 ac_status=$?
20475 grep -v '^ *+' conftest.er1 >conftest.err
20476 rm -f conftest.er1
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } && {
20480 test -z "$ac_c_werror_flag" ||
20481 test ! -s conftest.err
20482 } && test -s conftest$ac_exeext &&
20483 $as_test_x conftest$ac_exeext; then
20484 ac_cv_func_bind_textdomain_codeset=yes
20485 else
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 ac_cv_func_bind_textdomain_codeset=no
20490 fi
20491
20492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20493 conftest$ac_exeext conftest.$ac_ext
20494 fi
20495 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
20496 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
20497 if test $ac_cv_func_bind_textdomain_codeset = yes; then
20498 DATADIRNAME=share
20499 else
20500 DATADIRNAME=lib
20501 fi
20502
20503 ;;
20504 *)
20505 DATADIRNAME=lib
20506 ;;
20507 esac
20508 fi
20509
20510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20511 conftest$ac_exeext conftest.$ac_ext
20512 fi
20513
20514
20515
20516
20517
20518 for ac_prog in flex lex
20519 do
20520 # Extract the first word of "$ac_prog", so it can be a program name with args.
20521 set dummy $ac_prog; ac_word=$2
20522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20524 if test "${ac_cv_prog_LEX+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527 if test -n "$LEX"; then
20528 ac_cv_prog_LEX="$LEX" # Let the user override the test.
20529 else
20530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20531 for as_dir in $PATH
20532 do
20533 IFS=$as_save_IFS
20534 test -z "$as_dir" && as_dir=.
20535 for ac_exec_ext in '' $ac_executable_extensions; do
20536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20537 ac_cv_prog_LEX="$ac_prog"
20538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20539 break 2
20540 fi
20541 done
20542 done
20543 IFS=$as_save_IFS
20544
20545 fi
20546 fi
20547 LEX=$ac_cv_prog_LEX
20548 if test -n "$LEX"; then
20549 { echo "$as_me:$LINENO: result: $LEX" >&5
20550 echo "${ECHO_T}$LEX" >&6; }
20551 else
20552 { echo "$as_me:$LINENO: result: no" >&5
20553 echo "${ECHO_T}no" >&6; }
20554 fi
20555
20556
20557 test -n "$LEX" && break
20558 done
20559 test -n "$LEX" || LEX=":"
20560
20561 if test "x$LEX" != "x:"; then
20562 cat >conftest.l <<_ACEOF
20563 %%
20564 a { ECHO; }
20565 b { REJECT; }
20566 c { yymore (); }
20567 d { yyless (1); }
20568 e { yyless (input () != 0); }
20569 f { unput (yytext[0]); }
20570 . { BEGIN INITIAL; }
20571 %%
20572 #ifdef YYTEXT_POINTER
20573 extern char *yytext;
20574 #endif
20575 int
20576 main (void)
20577 {
20578 return ! yylex () + ! yywrap ();
20579 }
20580 _ACEOF
20581 { (ac_try="$LEX conftest.l"
20582 case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$LEX conftest.l") 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }
20591 { echo "$as_me:$LINENO: checking lex output file root" >&5
20592 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
20593 if test "${ac_cv_prog_lex_root+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596
20597 if test -f lex.yy.c; then
20598 ac_cv_prog_lex_root=lex.yy
20599 elif test -f lexyy.c; then
20600 ac_cv_prog_lex_root=lexyy
20601 else
20602 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
20603 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
20604 { (exit 1); exit 1; }; }
20605 fi
20606 fi
20607 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
20608 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
20609 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20610
20611 if test -z "${LEXLIB+set}"; then
20612 { echo "$as_me:$LINENO: checking lex library" >&5
20613 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
20614 if test "${ac_cv_lib_lex+set}" = set; then
20615 echo $ECHO_N "(cached) $ECHO_C" >&6
20616 else
20617
20618 ac_save_LIBS=$LIBS
20619 ac_cv_lib_lex='none needed'
20620 for ac_lib in '' -lfl -ll; do
20621 LIBS="$ac_lib $ac_save_LIBS"
20622 cat >conftest.$ac_ext <<_ACEOF
20623 `cat $LEX_OUTPUT_ROOT.c`
20624 _ACEOF
20625 rm -f conftest.$ac_objext conftest$ac_exeext
20626 if { (ac_try="$ac_link"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_link") 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest$ac_exeext &&
20642 $as_test_x conftest$ac_exeext; then
20643 ac_cv_lib_lex=$ac_lib
20644 else
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648
20649 fi
20650
20651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20652 conftest$ac_exeext conftest.$ac_ext
20653 test "$ac_cv_lib_lex" != 'none needed' && break
20654 done
20655 LIBS=$ac_save_LIBS
20656
20657 fi
20658 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
20659 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
20660 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
20661 fi
20662
20663
20664 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
20665 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
20666 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 else
20669 # POSIX says lex can declare yytext either as a pointer or an array; the
20670 # default is implementation-dependent. Figure out which it is, since
20671 # not all implementations provide the %pointer and %array declarations.
20672 ac_cv_prog_lex_yytext_pointer=no
20673 ac_save_LIBS=$LIBS
20674 LIBS="$LEXLIB $ac_save_LIBS"
20675 cat >conftest.$ac_ext <<_ACEOF
20676 #define YYTEXT_POINTER 1
20677 `cat $LEX_OUTPUT_ROOT.c`
20678 _ACEOF
20679 rm -f conftest.$ac_objext conftest$ac_exeext
20680 if { (ac_try="$ac_link"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_link") 2>conftest.er1
20687 ac_status=$?
20688 grep -v '^ *+' conftest.er1 >conftest.err
20689 rm -f conftest.er1
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } && {
20693 test -z "$ac_c_werror_flag" ||
20694 test ! -s conftest.err
20695 } && test -s conftest$ac_exeext &&
20696 $as_test_x conftest$ac_exeext; then
20697 ac_cv_prog_lex_yytext_pointer=yes
20698 else
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20701
20702
20703 fi
20704
20705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20706 conftest$ac_exeext conftest.$ac_ext
20707 LIBS=$ac_save_LIBS
20708
20709 fi
20710 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
20711 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
20712 if test $ac_cv_prog_lex_yytext_pointer = yes; then
20713
20714 cat >>confdefs.h <<\_ACEOF
20715 #define YYTEXT_POINTER 1
20716 _ACEOF
20717
20718 fi
20719 rm -f conftest.l $LEX_OUTPUT_ROOT.c
20720
20721 fi
20722 if test "$LEX" = :; then
20723 LEX=${am_missing_run}flex
20724 fi
20725 for ac_prog in 'bison -y' byacc
20726 do
20727 # Extract the first word of "$ac_prog", so it can be a program name with args.
20728 set dummy $ac_prog; ac_word=$2
20729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20731 if test "${ac_cv_prog_YACC+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 else
20734 if test -n "$YACC"; then
20735 ac_cv_prog_YACC="$YACC" # Let the user override the test.
20736 else
20737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20738 for as_dir in $PATH
20739 do
20740 IFS=$as_save_IFS
20741 test -z "$as_dir" && as_dir=.
20742 for ac_exec_ext in '' $ac_executable_extensions; do
20743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20744 ac_cv_prog_YACC="$ac_prog"
20745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20746 break 2
20747 fi
20748 done
20749 done
20750 IFS=$as_save_IFS
20751
20752 fi
20753 fi
20754 YACC=$ac_cv_prog_YACC
20755 if test -n "$YACC"; then
20756 { echo "$as_me:$LINENO: result: $YACC" >&5
20757 echo "${ECHO_T}$YACC" >&6; }
20758 else
20759 { echo "$as_me:$LINENO: result: no" >&5
20760 echo "${ECHO_T}no" >&6; }
20761 fi
20762
20763
20764 test -n "$YACC" && break
20765 done
20766 test -n "$YACC" || YACC="yacc"
20767
20768
20769 ALL_LINGUAS="nb de"
20770
20771
20772 for ac_header in locale.h
20773 do
20774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20780 fi
20781 ac_res=`eval echo '${'$as_ac_Header'}'`
20782 { echo "$as_me:$LINENO: result: $ac_res" >&5
20783 echo "${ECHO_T}$ac_res" >&6; }
20784 else
20785 # Is the header compilable?
20786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20788 cat >conftest.$ac_ext <<_ACEOF
20789 /* confdefs.h. */
20790 _ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h. */
20794 $ac_includes_default
20795 #include <$ac_header>
20796 _ACEOF
20797 rm -f conftest.$ac_objext
20798 if { (ac_try="$ac_compile"
20799 case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_compile") 2>conftest.er1
20805 ac_status=$?
20806 grep -v '^ *+' conftest.er1 >conftest.err
20807 rm -f conftest.er1
20808 cat conftest.err >&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } && {
20811 test -z "$ac_c_werror_flag" ||
20812 test ! -s conftest.err
20813 } && test -s conftest.$ac_objext; then
20814 ac_header_compiler=yes
20815 else
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819 ac_header_compiler=no
20820 fi
20821
20822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20824 echo "${ECHO_T}$ac_header_compiler" >&6; }
20825
20826 # Is the header present?
20827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20829 cat >conftest.$ac_ext <<_ACEOF
20830 /* confdefs.h. */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h. */
20835 #include <$ac_header>
20836 _ACEOF
20837 if { (ac_try="$ac_cpp conftest.$ac_ext"
20838 case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20844 ac_status=$?
20845 grep -v '^ *+' conftest.er1 >conftest.err
20846 rm -f conftest.er1
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } >/dev/null && {
20850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 }; then
20853 ac_header_preproc=yes
20854 else
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20857
20858 ac_header_preproc=no
20859 fi
20860
20861 rm -f conftest.err conftest.$ac_ext
20862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20863 echo "${ECHO_T}$ac_header_preproc" >&6; }
20864
20865 # So? What about this header?
20866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20867 yes:no: )
20868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20872 ac_header_preproc=yes
20873 ;;
20874 no:yes:* )
20875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20887
20888 ;;
20889 esac
20890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895 eval "$as_ac_Header=\$ac_header_preproc"
20896 fi
20897 ac_res=`eval echo '${'$as_ac_Header'}'`
20898 { echo "$as_me:$LINENO: result: $ac_res" >&5
20899 echo "${ECHO_T}$ac_res" >&6; }
20900
20901 fi
20902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20903 cat >>confdefs.h <<_ACEOF
20904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20905 _ACEOF
20906
20907 fi
20908
20909 done
20910
20911 if test $ac_cv_header_locale_h = yes; then
20912 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
20913 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
20914 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 else
20917 cat >conftest.$ac_ext <<_ACEOF
20918 /* confdefs.h. */
20919 _ACEOF
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20923 #include <locale.h>
20924 int
20925 main ()
20926 {
20927 return LC_MESSAGES
20928 ;
20929 return 0;
20930 }
20931 _ACEOF
20932 rm -f conftest.$ac_objext conftest$ac_exeext
20933 if { (ac_try="$ac_link"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_link") 2>conftest.er1
20940 ac_status=$?
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && {
20946 test -z "$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20948 } && test -s conftest$ac_exeext &&
20949 $as_test_x conftest$ac_exeext; then
20950 am_cv_val_LC_MESSAGES=yes
20951 else
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20954
20955 am_cv_val_LC_MESSAGES=no
20956 fi
20957
20958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20959 conftest$ac_exeext conftest.$ac_ext
20960 fi
20961 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
20962 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
20963 if test $am_cv_val_LC_MESSAGES = yes; then
20964
20965 cat >>confdefs.h <<\_ACEOF
20966 #define HAVE_LC_MESSAGES 1
20967 _ACEOF
20968
20969 fi
20970 fi
20971 USE_NLS=yes
20972
20973
20974 gt_cv_have_gettext=no
20975
20976 CATOBJEXT=NONE
20977 XGETTEXT=:
20978 INTLLIBS=
20979
20980 if test "${ac_cv_header_libintl_h+set}" = set; then
20981 { echo "$as_me:$LINENO: checking for libintl.h" >&5
20982 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
20983 if test "${ac_cv_header_libintl_h+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20985 fi
20986 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20987 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
20988 else
20989 # Is the header compilable?
20990 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
20991 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
20992 cat >conftest.$ac_ext <<_ACEOF
20993 /* confdefs.h. */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h. */
20998 $ac_includes_default
20999 #include <libintl.h>
21000 _ACEOF
21001 rm -f conftest.$ac_objext
21002 if { (ac_try="$ac_compile"
21003 case "(($ac_try" in
21004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005 *) ac_try_echo=$ac_try;;
21006 esac
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008 (eval "$ac_compile") 2>conftest.er1
21009 ac_status=$?
21010 grep -v '^ *+' conftest.er1 >conftest.err
21011 rm -f conftest.er1
21012 cat conftest.err >&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } && {
21015 test -z "$ac_c_werror_flag" ||
21016 test ! -s conftest.err
21017 } && test -s conftest.$ac_objext; then
21018 ac_header_compiler=yes
21019 else
21020 echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023 ac_header_compiler=no
21024 fi
21025
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21028 echo "${ECHO_T}$ac_header_compiler" >&6; }
21029
21030 # Is the header present?
21031 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
21032 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
21033 cat >conftest.$ac_ext <<_ACEOF
21034 /* confdefs.h. */
21035 _ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 #include <libintl.h>
21040 _ACEOF
21041 if { (ac_try="$ac_cpp conftest.$ac_ext"
21042 case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21045 esac
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21048 ac_status=$?
21049 grep -v '^ *+' conftest.er1 >conftest.err
21050 rm -f conftest.er1
21051 cat conftest.err >&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } >/dev/null && {
21054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21055 test ! -s conftest.err
21056 }; then
21057 ac_header_preproc=yes
21058 else
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21061
21062 ac_header_preproc=no
21063 fi
21064
21065 rm -f conftest.err conftest.$ac_ext
21066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21067 echo "${ECHO_T}$ac_header_preproc" >&6; }
21068
21069 # So? What about this header?
21070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21071 yes:no: )
21072 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21073 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21074 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21075 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21076 ac_header_preproc=yes
21077 ;;
21078 no:yes:* )
21079 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21080 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21082 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21083 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21084 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21086 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21088 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21089 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21090 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21091
21092 ;;
21093 esac
21094 { echo "$as_me:$LINENO: checking for libintl.h" >&5
21095 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
21096 if test "${ac_cv_header_libintl_h+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099 ac_cv_header_libintl_h=$ac_header_preproc
21100 fi
21101 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21102 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
21103
21104 fi
21105 if test $ac_cv_header_libintl_h = yes; then
21106 gt_cv_func_dgettext_libintl="no"
21107 libintl_extra_libs=""
21108
21109 #
21110 # First check in libc
21111 #
21112 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
21113 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
21114 if test "${gt_cv_func_ngettext_libc+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21116 else
21117 cat >conftest.$ac_ext <<_ACEOF
21118 /* confdefs.h. */
21119 _ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21123
21124 #include <libintl.h>
21125
21126 int
21127 main ()
21128 {
21129 return !ngettext ("","", 1)
21130 ;
21131 return 0;
21132 }
21133 _ACEOF
21134 rm -f conftest.$ac_objext conftest$ac_exeext
21135 if { (ac_try="$ac_link"
21136 case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21139 esac
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_link") 2>conftest.er1
21142 ac_status=$?
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && {
21148 test -z "$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 } && test -s conftest$ac_exeext &&
21151 $as_test_x conftest$ac_exeext; then
21152 gt_cv_func_ngettext_libc=yes
21153 else
21154 echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21156
21157 gt_cv_func_ngettext_libc=no
21158 fi
21159
21160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21161 conftest$ac_exeext conftest.$ac_ext
21162
21163 fi
21164 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
21165 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
21166
21167 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21168 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
21169 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
21170 if test "${gt_cv_func_dgettext_libc+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 else
21173 cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h. */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179
21180 #include <libintl.h>
21181
21182 int
21183 main ()
21184 {
21185 return !dgettext ("","")
21186 ;
21187 return 0;
21188 }
21189 _ACEOF
21190 rm -f conftest.$ac_objext conftest$ac_exeext
21191 if { (ac_try="$ac_link"
21192 case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21195 esac
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_link") 2>conftest.er1
21198 ac_status=$?
21199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } && {
21204 test -z "$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 } && test -s conftest$ac_exeext &&
21207 $as_test_x conftest$ac_exeext; then
21208 gt_cv_func_dgettext_libc=yes
21209 else
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21212
21213 gt_cv_func_dgettext_libc=no
21214 fi
21215
21216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21217 conftest$ac_exeext conftest.$ac_ext
21218
21219 fi
21220 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
21221 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
21222 fi
21223
21224 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21225
21226 for ac_func in bind_textdomain_codeset
21227 do
21228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 else
21234 cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h. */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21242 #define $ac_func innocuous_$ac_func
21243
21244 /* System header to define __stub macros and hopefully few prototypes,
21245 which can conflict with char $ac_func (); below.
21246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21247 <limits.h> exists even on freestanding compilers. */
21248
21249 #ifdef __STDC__
21250 # include <limits.h>
21251 #else
21252 # include <assert.h>
21253 #endif
21254
21255 #undef $ac_func
21256
21257 /* Override any GCC internal prototype to avoid an error.
21258 Use char because int might match the return type of a GCC
21259 builtin and then its argument prototype would still apply. */
21260 #ifdef __cplusplus
21261 extern "C"
21262 #endif
21263 char $ac_func ();
21264 /* The GNU C library defines this for functions which it implements
21265 to always fail with ENOSYS. Some functions are actually named
21266 something starting with __ and the normal name is an alias. */
21267 #if defined __stub_$ac_func || defined __stub___$ac_func
21268 choke me
21269 #endif
21270
21271 int
21272 main ()
21273 {
21274 return $ac_func ();
21275 ;
21276 return 0;
21277 }
21278 _ACEOF
21279 rm -f conftest.$ac_objext conftest$ac_exeext
21280 if { (ac_try="$ac_link"
21281 case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_link") 2>conftest.er1
21287 ac_status=$?
21288 grep -v '^ *+' conftest.er1 >conftest.err
21289 rm -f conftest.er1
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } && {
21293 test -z "$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21295 } && test -s conftest$ac_exeext &&
21296 $as_test_x conftest$ac_exeext; then
21297 eval "$as_ac_var=yes"
21298 else
21299 echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302 eval "$as_ac_var=no"
21303 fi
21304
21305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21306 conftest$ac_exeext conftest.$ac_ext
21307 fi
21308 ac_res=`eval echo '${'$as_ac_var'}'`
21309 { echo "$as_me:$LINENO: result: $ac_res" >&5
21310 echo "${ECHO_T}$ac_res" >&6; }
21311 if test `eval echo '${'$as_ac_var'}'` = yes; then
21312 cat >>confdefs.h <<_ACEOF
21313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21314 _ACEOF
21315
21316 fi
21317 done
21318
21319 fi
21320
21321 #
21322 # If we don't have everything we want, check in libintl
21323 #
21324 if test "$gt_cv_func_dgettext_libc" != "yes" \
21325 || test "$gt_cv_func_ngettext_libc" != "yes" \
21326 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
21327
21328 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
21329 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
21330 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333 ac_check_lib_save_LIBS=$LIBS
21334 LIBS="-lintl $LIBS"
21335 cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h. */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21341
21342 /* Override any GCC internal prototype to avoid an error.
21343 Use char because int might match the return type of a GCC
21344 builtin and then its argument prototype would still apply. */
21345 #ifdef __cplusplus
21346 extern "C"
21347 #endif
21348 char bindtextdomain ();
21349 int
21350 main ()
21351 {
21352 return bindtextdomain ();
21353 ;
21354 return 0;
21355 }
21356 _ACEOF
21357 rm -f conftest.$ac_objext conftest$ac_exeext
21358 if { (ac_try="$ac_link"
21359 case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_link") 2>conftest.er1
21365 ac_status=$?
21366 grep -v '^ *+' conftest.er1 >conftest.err
21367 rm -f conftest.er1
21368 cat conftest.err >&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } && {
21371 test -z "$ac_c_werror_flag" ||
21372 test ! -s conftest.err
21373 } && test -s conftest$ac_exeext &&
21374 $as_test_x conftest$ac_exeext; then
21375 ac_cv_lib_intl_bindtextdomain=yes
21376 else
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21379
21380 ac_cv_lib_intl_bindtextdomain=no
21381 fi
21382
21383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21384 conftest$ac_exeext conftest.$ac_ext
21385 LIBS=$ac_check_lib_save_LIBS
21386 fi
21387 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
21388 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
21389 if test $ac_cv_lib_intl_bindtextdomain = yes; then
21390 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21391 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
21392 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 else
21395 ac_check_lib_save_LIBS=$LIBS
21396 LIBS="-lintl $LIBS"
21397 cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h. */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403
21404 /* Override any GCC internal prototype to avoid an error.
21405 Use char because int might match the return type of a GCC
21406 builtin and then its argument prototype would still apply. */
21407 #ifdef __cplusplus
21408 extern "C"
21409 #endif
21410 char ngettext ();
21411 int
21412 main ()
21413 {
21414 return ngettext ();
21415 ;
21416 return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest.$ac_objext conftest$ac_exeext
21420 if { (ac_try="$ac_link"
21421 case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_link") 2>conftest.er1
21427 ac_status=$?
21428 grep -v '^ *+' conftest.er1 >conftest.err
21429 rm -f conftest.er1
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && {
21433 test -z "$ac_c_werror_flag" ||
21434 test ! -s conftest.err
21435 } && test -s conftest$ac_exeext &&
21436 $as_test_x conftest$ac_exeext; then
21437 ac_cv_lib_intl_ngettext=yes
21438 else
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21441
21442 ac_cv_lib_intl_ngettext=no
21443 fi
21444
21445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21446 conftest$ac_exeext conftest.$ac_ext
21447 LIBS=$ac_check_lib_save_LIBS
21448 fi
21449 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21450 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
21451 if test $ac_cv_lib_intl_ngettext = yes; then
21452 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21453 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21454 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21456 else
21457 ac_check_lib_save_LIBS=$LIBS
21458 LIBS="-lintl $LIBS"
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h. */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465
21466 /* Override any GCC internal prototype to avoid an error.
21467 Use char because int might match the return type of a GCC
21468 builtin and then its argument prototype would still apply. */
21469 #ifdef __cplusplus
21470 extern "C"
21471 #endif
21472 char dgettext ();
21473 int
21474 main ()
21475 {
21476 return dgettext ();
21477 ;
21478 return 0;
21479 }
21480 _ACEOF
21481 rm -f conftest.$ac_objext conftest$ac_exeext
21482 if { (ac_try="$ac_link"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21486 esac
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_link") 2>conftest.er1
21489 ac_status=$?
21490 grep -v '^ *+' conftest.er1 >conftest.err
21491 rm -f conftest.er1
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } && {
21495 test -z "$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 } && test -s conftest$ac_exeext &&
21498 $as_test_x conftest$ac_exeext; then
21499 ac_cv_lib_intl_dgettext=yes
21500 else
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504 ac_cv_lib_intl_dgettext=no
21505 fi
21506
21507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21508 conftest$ac_exeext conftest.$ac_ext
21509 LIBS=$ac_check_lib_save_LIBS
21510 fi
21511 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21512 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21513 if test $ac_cv_lib_intl_dgettext = yes; then
21514 gt_cv_func_dgettext_libintl=yes
21515 fi
21516
21517 fi
21518
21519 fi
21520
21521
21522 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
21523 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
21524 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
21525 { echo "$as_me:$LINENO: result: " >&5
21526 echo "${ECHO_T}" >&6; }
21527 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21528 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
21529 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21531 else
21532 ac_check_lib_save_LIBS=$LIBS
21533 LIBS="-lintl -liconv $LIBS"
21534 cat >conftest.$ac_ext <<_ACEOF
21535 /* confdefs.h. */
21536 _ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21540
21541 /* Override any GCC internal prototype to avoid an error.
21542 Use char because int might match the return type of a GCC
21543 builtin and then its argument prototype would still apply. */
21544 #ifdef __cplusplus
21545 extern "C"
21546 #endif
21547 char ngettext ();
21548 int
21549 main ()
21550 {
21551 return ngettext ();
21552 ;
21553 return 0;
21554 }
21555 _ACEOF
21556 rm -f conftest.$ac_objext conftest$ac_exeext
21557 if { (ac_try="$ac_link"
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_link") 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_exeext &&
21573 $as_test_x conftest$ac_exeext; then
21574 ac_cv_lib_intl_ngettext=yes
21575 else
21576 echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21578
21579 ac_cv_lib_intl_ngettext=no
21580 fi
21581
21582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21583 conftest$ac_exeext conftest.$ac_ext
21584 LIBS=$ac_check_lib_save_LIBS
21585 fi
21586 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21587 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
21588 if test $ac_cv_lib_intl_ngettext = yes; then
21589 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
21590 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
21591 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
21592 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 else
21594 ac_check_lib_save_LIBS=$LIBS
21595 LIBS="-lintl -liconv $LIBS"
21596 cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h. */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21602
21603 /* Override any GCC internal prototype to avoid an error.
21604 Use char because int might match the return type of a GCC
21605 builtin and then its argument prototype would still apply. */
21606 #ifdef __cplusplus
21607 extern "C"
21608 #endif
21609 char dcgettext ();
21610 int
21611 main ()
21612 {
21613 return dcgettext ();
21614 ;
21615 return 0;
21616 }
21617 _ACEOF
21618 rm -f conftest.$ac_objext conftest$ac_exeext
21619 if { (ac_try="$ac_link"
21620 case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21623 esac
21624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21625 (eval "$ac_link") 2>conftest.er1
21626 ac_status=$?
21627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } && {
21632 test -z "$ac_c_werror_flag" ||
21633 test ! -s conftest.err
21634 } && test -s conftest$ac_exeext &&
21635 $as_test_x conftest$ac_exeext; then
21636 ac_cv_lib_intl_dcgettext=yes
21637 else
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641 ac_cv_lib_intl_dcgettext=no
21642 fi
21643
21644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21645 conftest$ac_exeext conftest.$ac_ext
21646 LIBS=$ac_check_lib_save_LIBS
21647 fi
21648 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
21649 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
21650 if test $ac_cv_lib_intl_dcgettext = yes; then
21651 gt_cv_func_dgettext_libintl=yes
21652 libintl_extra_libs=-liconv
21653 else
21654 :
21655 fi
21656
21657 else
21658 :
21659 fi
21660
21661 fi
21662
21663 #
21664 # If we found libintl, then check in it for bind_textdomain_codeset();
21665 # we'll prefer libc if neither have bind_textdomain_codeset(),
21666 # and both have dgettext and ngettext
21667 #
21668 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
21669 glib_save_LIBS="$LIBS"
21670 LIBS="$LIBS -lintl $libintl_extra_libs"
21671 unset ac_cv_func_bind_textdomain_codeset
21672
21673 for ac_func in bind_textdomain_codeset
21674 do
21675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21676 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 else
21681 cat >conftest.$ac_ext <<_ACEOF
21682 /* confdefs.h. */
21683 _ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21689 #define $ac_func innocuous_$ac_func
21690
21691 /* System header to define __stub macros and hopefully few prototypes,
21692 which can conflict with char $ac_func (); below.
21693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21694 <limits.h> exists even on freestanding compilers. */
21695
21696 #ifdef __STDC__
21697 # include <limits.h>
21698 #else
21699 # include <assert.h>
21700 #endif
21701
21702 #undef $ac_func
21703
21704 /* Override any GCC internal prototype to avoid an error.
21705 Use char because int might match the return type of a GCC
21706 builtin and then its argument prototype would still apply. */
21707 #ifdef __cplusplus
21708 extern "C"
21709 #endif
21710 char $ac_func ();
21711 /* The GNU C library defines this for functions which it implements
21712 to always fail with ENOSYS. Some functions are actually named
21713 something starting with __ and the normal name is an alias. */
21714 #if defined __stub_$ac_func || defined __stub___$ac_func
21715 choke me
21716 #endif
21717
21718 int
21719 main ()
21720 {
21721 return $ac_func ();
21722 ;
21723 return 0;
21724 }
21725 _ACEOF
21726 rm -f conftest.$ac_objext conftest$ac_exeext
21727 if { (ac_try="$ac_link"
21728 case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21731 esac
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_link") 2>conftest.er1
21734 ac_status=$?
21735 grep -v '^ *+' conftest.er1 >conftest.err
21736 rm -f conftest.er1
21737 cat conftest.err >&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } && {
21740 test -z "$ac_c_werror_flag" ||
21741 test ! -s conftest.err
21742 } && test -s conftest$ac_exeext &&
21743 $as_test_x conftest$ac_exeext; then
21744 eval "$as_ac_var=yes"
21745 else
21746 echo "$as_me: failed program was:" >&5
21747 sed 's/^/| /' conftest.$ac_ext >&5
21748
21749 eval "$as_ac_var=no"
21750 fi
21751
21752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21753 conftest$ac_exeext conftest.$ac_ext
21754 fi
21755 ac_res=`eval echo '${'$as_ac_var'}'`
21756 { echo "$as_me:$LINENO: result: $ac_res" >&5
21757 echo "${ECHO_T}$ac_res" >&6; }
21758 if test `eval echo '${'$as_ac_var'}'` = yes; then
21759 cat >>confdefs.h <<_ACEOF
21760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21761 _ACEOF
21762
21763 fi
21764 done
21765
21766 LIBS="$glib_save_LIBS"
21767
21768 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
21769 gt_cv_func_dgettext_libc=no
21770 else
21771 if test "$gt_cv_func_dgettext_libc" = "yes" \
21772 && test "$gt_cv_func_ngettext_libc" = "yes"; then
21773 gt_cv_func_dgettext_libintl=no
21774 fi
21775 fi
21776 fi
21777 fi
21778
21779 if test "$gt_cv_func_dgettext_libc" = "yes" \
21780 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
21781 gt_cv_have_gettext=yes
21782 fi
21783
21784 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
21785 INTLLIBS="-lintl $libintl_extra_libs"
21786 fi
21787
21788 if test "$gt_cv_have_gettext" = "yes"; then
21789
21790 cat >>confdefs.h <<\_ACEOF
21791 #define HAVE_GETTEXT 1
21792 _ACEOF
21793
21794 # Extract the first word of "msgfmt", so it can be a program name with args.
21795 set dummy msgfmt; ac_word=$2
21796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21798 if test "${ac_cv_path_MSGFMT+set}" = set; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 else
21801 case "$MSGFMT" in
21802 /*)
21803 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21804 ;;
21805 *)
21806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21807 for ac_dir in $PATH; do
21808 test -z "$ac_dir" && ac_dir=.
21809 if test -f $ac_dir/$ac_word; then
21810 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
21811 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
21812 break
21813 fi
21814 fi
21815 done
21816 IFS="$ac_save_ifs"
21817 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
21818 ;;
21819 esac
21820 fi
21821 MSGFMT="$ac_cv_path_MSGFMT"
21822 if test "$MSGFMT" != "no"; then
21823 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
21824 echo "${ECHO_T}$MSGFMT" >&6; }
21825 else
21826 { echo "$as_me:$LINENO: result: no" >&5
21827 echo "${ECHO_T}no" >&6; }
21828 fi
21829 if test "$MSGFMT" != "no"; then
21830 glib_save_LIBS="$LIBS"
21831 LIBS="$LIBS $INTLLIBS"
21832
21833 for ac_func in dcgettext
21834 do
21835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841 cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h. */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21849 #define $ac_func innocuous_$ac_func
21850
21851 /* System header to define __stub macros and hopefully few prototypes,
21852 which can conflict with char $ac_func (); below.
21853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21854 <limits.h> exists even on freestanding compilers. */
21855
21856 #ifdef __STDC__
21857 # include <limits.h>
21858 #else
21859 # include <assert.h>
21860 #endif
21861
21862 #undef $ac_func
21863
21864 /* Override any GCC internal prototype to avoid an error.
21865 Use char because int might match the return type of a GCC
21866 builtin and then its argument prototype would still apply. */
21867 #ifdef __cplusplus
21868 extern "C"
21869 #endif
21870 char $ac_func ();
21871 /* The GNU C library defines this for functions which it implements
21872 to always fail with ENOSYS. Some functions are actually named
21873 something starting with __ and the normal name is an alias. */
21874 #if defined __stub_$ac_func || defined __stub___$ac_func
21875 choke me
21876 #endif
21877
21878 int
21879 main ()
21880 {
21881 return $ac_func ();
21882 ;
21883 return 0;
21884 }
21885 _ACEOF
21886 rm -f conftest.$ac_objext conftest$ac_exeext
21887 if { (ac_try="$ac_link"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_link") 2>conftest.er1
21894 ac_status=$?
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } && {
21900 test -z "$ac_c_werror_flag" ||
21901 test ! -s conftest.err
21902 } && test -s conftest$ac_exeext &&
21903 $as_test_x conftest$ac_exeext; then
21904 eval "$as_ac_var=yes"
21905 else
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21908
21909 eval "$as_ac_var=no"
21910 fi
21911
21912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21913 conftest$ac_exeext conftest.$ac_ext
21914 fi
21915 ac_res=`eval echo '${'$as_ac_var'}'`
21916 { echo "$as_me:$LINENO: result: $ac_res" >&5
21917 echo "${ECHO_T}$ac_res" >&6; }
21918 if test `eval echo '${'$as_ac_var'}'` = yes; then
21919 cat >>confdefs.h <<_ACEOF
21920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21921 _ACEOF
21922
21923 fi
21924 done
21925
21926 MSGFMT_OPTS=
21927 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
21928 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
21929 cat >conftest.foo <<_ACEOF
21930
21931 msgid ""
21932 msgstr ""
21933 "Content-Type: text/plain; charset=UTF-8\n"
21934 "Project-Id-Version: test 1.0\n"
21935 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
21936 "Last-Translator: test <foo@bar.xx>\n"
21937 "Language-Team: C <LL@li.org>\n"
21938 "MIME-Version: 1.0\n"
21939 "Content-Transfer-Encoding: 8bit\n"
21940
21941 _ACEOF
21942 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
21943 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; then
21947 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
21948 echo "${ECHO_T}yes" >&6; }
21949 else { echo "$as_me:$LINENO: result: no" >&5
21950 echo "${ECHO_T}no" >&6; }
21951 echo "$as_me: failed input was:" >&5
21952 sed 's/^/| /' conftest.foo >&5
21953 fi
21954
21955 # Extract the first word of "gmsgfmt", so it can be a program name with args.
21956 set dummy gmsgfmt; ac_word=$2
21957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21959 if test "${ac_cv_path_GMSGFMT+set}" = set; then
21960 echo $ECHO_N "(cached) $ECHO_C" >&6
21961 else
21962 case $GMSGFMT in
21963 [\\/]* | ?:[\\/]*)
21964 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21965 ;;
21966 *)
21967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21968 for as_dir in $PATH
21969 do
21970 IFS=$as_save_IFS
21971 test -z "$as_dir" && as_dir=.
21972 for ac_exec_ext in '' $ac_executable_extensions; do
21973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21974 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21976 break 2
21977 fi
21978 done
21979 done
21980 IFS=$as_save_IFS
21981
21982 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21983 ;;
21984 esac
21985 fi
21986 GMSGFMT=$ac_cv_path_GMSGFMT
21987 if test -n "$GMSGFMT"; then
21988 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21989 echo "${ECHO_T}$GMSGFMT" >&6; }
21990 else
21991 { echo "$as_me:$LINENO: result: no" >&5
21992 echo "${ECHO_T}no" >&6; }
21993 fi
21994
21995
21996 # Extract the first word of "xgettext", so it can be a program name with args.
21997 set dummy xgettext; ac_word=$2
21998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22000 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 else
22003 case "$XGETTEXT" in
22004 /*)
22005 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22006 ;;
22007 *)
22008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22009 for ac_dir in $PATH; do
22010 test -z "$ac_dir" && ac_dir=.
22011 if test -f $ac_dir/$ac_word; then
22012 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
22013 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22014 break
22015 fi
22016 fi
22017 done
22018 IFS="$ac_save_ifs"
22019 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22020 ;;
22021 esac
22022 fi
22023 XGETTEXT="$ac_cv_path_XGETTEXT"
22024 if test "$XGETTEXT" != ":"; then
22025 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22026 echo "${ECHO_T}$XGETTEXT" >&6; }
22027 else
22028 { echo "$as_me:$LINENO: result: no" >&5
22029 echo "${ECHO_T}no" >&6; }
22030 fi
22031
22032 cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h. */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h. */
22038
22039 int
22040 main ()
22041 {
22042 extern int _nl_msg_cat_cntr;
22043 return _nl_msg_cat_cntr
22044 ;
22045 return 0;
22046 }
22047 _ACEOF
22048 rm -f conftest.$ac_objext conftest$ac_exeext
22049 if { (ac_try="$ac_link"
22050 case "(($ac_try" in
22051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052 *) ac_try_echo=$ac_try;;
22053 esac
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055 (eval "$ac_link") 2>conftest.er1
22056 ac_status=$?
22057 grep -v '^ *+' conftest.er1 >conftest.err
22058 rm -f conftest.er1
22059 cat conftest.err >&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } && {
22062 test -z "$ac_c_werror_flag" ||
22063 test ! -s conftest.err
22064 } && test -s conftest$ac_exeext &&
22065 $as_test_x conftest$ac_exeext; then
22066 CATOBJEXT=.gmo
22067 DATADIRNAME=share
22068 else
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072 case $host in
22073 *-*-solaris*)
22074 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
22075 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
22076 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22078 else
22079 cat >conftest.$ac_ext <<_ACEOF
22080 /* confdefs.h. */
22081 _ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h. */
22085 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
22086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22087 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
22088
22089 /* System header to define __stub macros and hopefully few prototypes,
22090 which can conflict with char bind_textdomain_codeset (); below.
22091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22092 <limits.h> exists even on freestanding compilers. */
22093
22094 #ifdef __STDC__
22095 # include <limits.h>
22096 #else
22097 # include <assert.h>
22098 #endif
22099
22100 #undef bind_textdomain_codeset
22101
22102 /* Override any GCC internal prototype to avoid an error.
22103 Use char because int might match the return type of a GCC
22104 builtin and then its argument prototype would still apply. */
22105 #ifdef __cplusplus
22106 extern "C"
22107 #endif
22108 char bind_textdomain_codeset ();
22109 /* The GNU C library defines this for functions which it implements
22110 to always fail with ENOSYS. Some functions are actually named
22111 something starting with __ and the normal name is an alias. */
22112 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
22113 choke me
22114 #endif
22115
22116 int
22117 main ()
22118 {
22119 return bind_textdomain_codeset ();
22120 ;
22121 return 0;
22122 }
22123 _ACEOF
22124 rm -f conftest.$ac_objext conftest$ac_exeext
22125 if { (ac_try="$ac_link"
22126 case "(($ac_try" in
22127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128 *) ac_try_echo=$ac_try;;
22129 esac
22130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131 (eval "$ac_link") 2>conftest.er1
22132 ac_status=$?
22133 grep -v '^ *+' conftest.er1 >conftest.err
22134 rm -f conftest.er1
22135 cat conftest.err >&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } && {
22138 test -z "$ac_c_werror_flag" ||
22139 test ! -s conftest.err
22140 } && test -s conftest$ac_exeext &&
22141 $as_test_x conftest$ac_exeext; then
22142 ac_cv_func_bind_textdomain_codeset=yes
22143 else
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22146
22147 ac_cv_func_bind_textdomain_codeset=no
22148 fi
22149
22150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22151 conftest$ac_exeext conftest.$ac_ext
22152 fi
22153 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
22154 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
22155 if test $ac_cv_func_bind_textdomain_codeset = yes; then
22156 CATOBJEXT=.gmo
22157 DATADIRNAME=share
22158 else
22159 CATOBJEXT=.mo
22160 DATADIRNAME=lib
22161 fi
22162
22163 ;;
22164 *)
22165 CATOBJEXT=.mo
22166 DATADIRNAME=lib
22167 ;;
22168 esac
22169 fi
22170
22171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22172 conftest$ac_exeext conftest.$ac_ext
22173 LIBS="$glib_save_LIBS"
22174 INSTOBJEXT=.mo
22175 else
22176 gt_cv_have_gettext=no
22177 fi
22178 fi
22179
22180 fi
22181
22182
22183
22184 if test "$gt_cv_have_gettext" = "yes" ; then
22185
22186 cat >>confdefs.h <<\_ACEOF
22187 #define ENABLE_NLS 1
22188 _ACEOF
22189
22190 fi
22191
22192 if test "$XGETTEXT" != ":"; then
22193 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
22194 : ;
22195 else
22196 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22197 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
22198 XGETTEXT=":"
22199 fi
22200 fi
22201
22202 # We need to process the po/ directory.
22203 POSUB=po
22204
22205 ac_config_commands="$ac_config_commands default-1"
22206
22207
22208 for lang in $ALL_LINGUAS; do
22209 GMOFILES="$GMOFILES $lang.gmo"
22210 POFILES="$POFILES $lang.po"
22211 done
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225 if test "$gt_cv_have_gettext" = "yes"; then
22226 if test "x$ALL_LINGUAS" = "x"; then
22227 LINGUAS=
22228 else
22229 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
22230 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
22231 NEW_LINGUAS=
22232 for presentlang in $ALL_LINGUAS; do
22233 useit=no
22234 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
22235 desiredlanguages="$LINGUAS"
22236 else
22237 desiredlanguages="$ALL_LINGUAS"
22238 fi
22239 for desiredlang in $desiredlanguages; do
22240 # Use the presentlang catalog if desiredlang is
22241 # a. equal to presentlang, or
22242 # b. a variant of presentlang (because in this case,
22243 # presentlang can be used as a fallback for messages
22244 # which are not translated in the desiredlang catalog).
22245 case "$desiredlang" in
22246 "$presentlang"*) useit=yes;;
22247 esac
22248 done
22249 if test $useit = yes; then
22250 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
22251 fi
22252 done
22253 LINGUAS=$NEW_LINGUAS
22254 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
22255 echo "${ECHO_T}$LINGUAS" >&6; }
22256 fi
22257
22258 if test -n "$LINGUAS"; then
22259 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
22260 fi
22261 fi
22262
22263 MKINSTALLDIRS=
22264 if test -n "$ac_aux_dir"; then
22265 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
22266 fi
22267 if test -z "$MKINSTALLDIRS"; then
22268 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22269 fi
22270
22271
22272 test -d po || mkdir po
22273 if test "x$srcdir" != "x."; then
22274 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
22275 posrcprefix="$srcdir/"
22276 else
22277 posrcprefix="../$srcdir/"
22278 fi
22279 else
22280 posrcprefix="../"
22281 fi
22282 rm -f po/POTFILES
22283 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
22284 < $srcdir/po/POTFILES.in > po/POTFILES
22285
22286
22287 GTK_REQUIRED="2.4.0"
22288 GLADE_REQUIRED="2.4.0"
22289 DBUS_REQUIRED="0.60"
22290 GCONF_REQUIRED="2.8"
22291 LIBNOTIFY_REQUIRED="0.4"
22292
22293
22294
22295 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22296 if test -n "$ac_tool_prefix"; then
22297 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22298 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22301 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304 case $PKG_CONFIG in
22305 [\\/]* | ?:[\\/]*)
22306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22307 ;;
22308 *)
22309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22310 for as_dir in $PATH
22311 do
22312 IFS=$as_save_IFS
22313 test -z "$as_dir" && as_dir=.
22314 for ac_exec_ext in '' $ac_executable_extensions; do
22315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22318 break 2
22319 fi
22320 done
22321 done
22322 IFS=$as_save_IFS
22323
22324 ;;
22325 esac
22326 fi
22327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22328 if test -n "$PKG_CONFIG"; then
22329 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22330 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22331 else
22332 { echo "$as_me:$LINENO: result: no" >&5
22333 echo "${ECHO_T}no" >&6; }
22334 fi
22335
22336
22337 fi
22338 if test -z "$ac_cv_path_PKG_CONFIG"; then
22339 ac_pt_PKG_CONFIG=$PKG_CONFIG
22340 # Extract the first word of "pkg-config", so it can be a program name with args.
22341 set dummy pkg-config; ac_word=$2
22342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22344 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347 case $ac_pt_PKG_CONFIG in
22348 [\\/]* | ?:[\\/]*)
22349 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22350 ;;
22351 *)
22352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22353 for as_dir in $PATH
22354 do
22355 IFS=$as_save_IFS
22356 test -z "$as_dir" && as_dir=.
22357 for ac_exec_ext in '' $ac_executable_extensions; do
22358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22359 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22361 break 2
22362 fi
22363 done
22364 done
22365 IFS=$as_save_IFS
22366
22367 ;;
22368 esac
22369 fi
22370 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22371 if test -n "$ac_pt_PKG_CONFIG"; then
22372 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22373 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22374 else
22375 { echo "$as_me:$LINENO: result: no" >&5
22376 echo "${ECHO_T}no" >&6; }
22377 fi
22378
22379 if test "x$ac_pt_PKG_CONFIG" = x; then
22380 PKG_CONFIG=""
22381 else
22382 case $cross_compiling:$ac_tool_warned in
22383 yes:)
22384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22385 whose name does not start with the host triplet. If you think this
22386 configuration is useful to you, please write to autoconf@gnu.org." >&5
22387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22388 whose name does not start with the host triplet. If you think this
22389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22390 ac_tool_warned=yes ;;
22391 esac
22392 PKG_CONFIG=$ac_pt_PKG_CONFIG
22393 fi
22394 else
22395 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22396 fi
22397
22398 fi
22399 if test -n "$PKG_CONFIG"; then
22400 _pkg_min_version=0.9.0
22401 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22402 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22403 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22404 { echo "$as_me:$LINENO: result: yes" >&5
22405 echo "${ECHO_T}yes" >&6; }
22406 else
22407 { echo "$as_me:$LINENO: result: no" >&5
22408 echo "${ECHO_T}no" >&6; }
22409 PKG_CONFIG=""
22410 fi
22411
22412 fi
22413
22414 pkg_failed=no
22415 { echo "$as_me:$LINENO: checking for GTK" >&5
22416 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
22417
22418 if test -n "$PKG_CONFIG"; then
22419 if test -n "$GTK_CFLAGS"; then
22420 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
22421 else
22422 if test -n "$PKG_CONFIG" && \
22423 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK_REQUIRED\"") >&5
22424 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK_REQUIRED") 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; then
22428 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= $GTK_REQUIRED" 2>/dev/null`
22429 else
22430 pkg_failed=yes
22431 fi
22432 fi
22433 else
22434 pkg_failed=untried
22435 fi
22436 if test -n "$PKG_CONFIG"; then
22437 if test -n "$GTK_LIBS"; then
22438 pkg_cv_GTK_LIBS="$GTK_LIBS"
22439 else
22440 if test -n "$PKG_CONFIG" && \
22441 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK_REQUIRED\"") >&5
22442 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK_REQUIRED") 2>&5
22443 ac_status=$?
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; then
22446 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= $GTK_REQUIRED" 2>/dev/null`
22447 else
22448 pkg_failed=yes
22449 fi
22450 fi
22451 else
22452 pkg_failed=untried
22453 fi
22454
22455
22456
22457 if test $pkg_failed = yes; then
22458
22459 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22460 _pkg_short_errors_supported=yes
22461 else
22462 _pkg_short_errors_supported=no
22463 fi
22464 if test $_pkg_short_errors_supported = yes; then
22465 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= $GTK_REQUIRED"`
22466 else
22467 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= $GTK_REQUIRED"`
22468 fi
22469 # Put the nasty error message in config.log where it belongs
22470 echo "$GTK_PKG_ERRORS" >&5
22471
22472 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= $GTK_REQUIRED) were not met:
22473
22474 $GTK_PKG_ERRORS
22475
22476 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22477 installed software in a non-standard prefix.
22478
22479 Alternatively, you may set the environment variables GTK_CFLAGS
22480 and GTK_LIBS to avoid the need to call pkg-config.
22481 See the pkg-config man page for more details.
22482 " >&5
22483 echo "$as_me: error: Package requirements (gtk+-2.0 >= $GTK_REQUIRED) were not met:
22484
22485 $GTK_PKG_ERRORS
22486
22487 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22488 installed software in a non-standard prefix.
22489
22490 Alternatively, you may set the environment variables GTK_CFLAGS
22491 and GTK_LIBS to avoid the need to call pkg-config.
22492 See the pkg-config man page for more details.
22493 " >&2;}
22494 { (exit 1); exit 1; }; }
22495 elif test $pkg_failed = untried; then
22496 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22497 is in your PATH or set the PKG_CONFIG environment variable to the full
22498 path to pkg-config.
22499
22500 Alternatively, you may set the environment variables GTK_CFLAGS
22501 and GTK_LIBS to avoid the need to call pkg-config.
22502 See the pkg-config man page for more details.
22503
22504 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22505 See \`config.log' for more details." >&5
22506 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22507 is in your PATH or set the PKG_CONFIG environment variable to the full
22508 path to pkg-config.
22509
22510 Alternatively, you may set the environment variables GTK_CFLAGS
22511 and GTK_LIBS to avoid the need to call pkg-config.
22512 See the pkg-config man page for more details.
22513
22514 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22515 See \`config.log' for more details." >&2;}
22516 { (exit 1); exit 1; }; }
22517 else
22518 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
22519 GTK_LIBS=$pkg_cv_GTK_LIBS
22520 { echo "$as_me:$LINENO: result: yes" >&5
22521 echo "${ECHO_T}yes" >&6; }
22522 :
22523 fi
22524
22525 pkg_failed=no
22526 { echo "$as_me:$LINENO: checking for GLADE" >&5
22527 echo $ECHO_N "checking for GLADE... $ECHO_C" >&6; }
22528
22529 if test -n "$PKG_CONFIG"; then
22530 if test -n "$GLADE_CFLAGS"; then
22531 pkg_cv_GLADE_CFLAGS="$GLADE_CFLAGS"
22532 else
22533 if test -n "$PKG_CONFIG" && \
22534 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= \$GLADE_REQUIRED\"") >&5
22535 ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= $GLADE_REQUIRED") 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; then
22539 pkg_cv_GLADE_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0 >= $GLADE_REQUIRED" 2>/dev/null`
22540 else
22541 pkg_failed=yes
22542 fi
22543 fi
22544 else
22545 pkg_failed=untried
22546 fi
22547 if test -n "$PKG_CONFIG"; then
22548 if test -n "$GLADE_LIBS"; then
22549 pkg_cv_GLADE_LIBS="$GLADE_LIBS"
22550 else
22551 if test -n "$PKG_CONFIG" && \
22552 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= \$GLADE_REQUIRED\"") >&5
22553 ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= $GLADE_REQUIRED") 2>&5
22554 ac_status=$?
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; then
22557 pkg_cv_GLADE_LIBS=`$PKG_CONFIG --libs "libglade-2.0 >= $GLADE_REQUIRED" 2>/dev/null`
22558 else
22559 pkg_failed=yes
22560 fi
22561 fi
22562 else
22563 pkg_failed=untried
22564 fi
22565
22566
22567
22568 if test $pkg_failed = yes; then
22569
22570 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22571 _pkg_short_errors_supported=yes
22572 else
22573 _pkg_short_errors_supported=no
22574 fi
22575 if test $_pkg_short_errors_supported = yes; then
22576 GLADE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libglade-2.0 >= $GLADE_REQUIRED"`
22577 else
22578 GLADE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglade-2.0 >= $GLADE_REQUIRED"`
22579 fi
22580 # Put the nasty error message in config.log where it belongs
22581 echo "$GLADE_PKG_ERRORS" >&5
22582
22583 { { echo "$as_me:$LINENO: error: Package requirements (libglade-2.0 >= $GLADE_REQUIRED) were not met:
22584
22585 $GLADE_PKG_ERRORS
22586
22587 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22588 installed software in a non-standard prefix.
22589
22590 Alternatively, you may set the environment variables GLADE_CFLAGS
22591 and GLADE_LIBS to avoid the need to call pkg-config.
22592 See the pkg-config man page for more details.
22593 " >&5
22594 echo "$as_me: error: Package requirements (libglade-2.0 >= $GLADE_REQUIRED) were not met:
22595
22596 $GLADE_PKG_ERRORS
22597
22598 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22599 installed software in a non-standard prefix.
22600
22601 Alternatively, you may set the environment variables GLADE_CFLAGS
22602 and GLADE_LIBS to avoid the need to call pkg-config.
22603 See the pkg-config man page for more details.
22604 " >&2;}
22605 { (exit 1); exit 1; }; }
22606 elif test $pkg_failed = untried; then
22607 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22608 is in your PATH or set the PKG_CONFIG environment variable to the full
22609 path to pkg-config.
22610
22611 Alternatively, you may set the environment variables GLADE_CFLAGS
22612 and GLADE_LIBS to avoid the need to call pkg-config.
22613 See the pkg-config man page for more details.
22614
22615 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22616 See \`config.log' for more details." >&5
22617 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22618 is in your PATH or set the PKG_CONFIG environment variable to the full
22619 path to pkg-config.
22620
22621 Alternatively, you may set the environment variables GLADE_CFLAGS
22622 and GLADE_LIBS to avoid the need to call pkg-config.
22623 See the pkg-config man page for more details.
22624
22625 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22626 See \`config.log' for more details." >&2;}
22627 { (exit 1); exit 1; }; }
22628 else
22629 GLADE_CFLAGS=$pkg_cv_GLADE_CFLAGS
22630 GLADE_LIBS=$pkg_cv_GLADE_LIBS
22631 { echo "$as_me:$LINENO: result: yes" >&5
22632 echo "${ECHO_T}yes" >&6; }
22633 :
22634 fi
22635
22636 pkg_failed=no
22637 { echo "$as_me:$LINENO: checking for DBUS" >&5
22638 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
22639
22640 if test -n "$PKG_CONFIG"; then
22641 if test -n "$DBUS_CFLAGS"; then
22642 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
22643 else
22644 if test -n "$PKG_CONFIG" && \
22645 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= \$DBUS_REQUIRED\"") >&5
22646 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= $DBUS_REQUIRED") 2>&5
22647 ac_status=$?
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; then
22650 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= $DBUS_REQUIRED" 2>/dev/null`
22651 else
22652 pkg_failed=yes
22653 fi
22654 fi
22655 else
22656 pkg_failed=untried
22657 fi
22658 if test -n "$PKG_CONFIG"; then
22659 if test -n "$DBUS_LIBS"; then
22660 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
22661 else
22662 if test -n "$PKG_CONFIG" && \
22663 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= \$DBUS_REQUIRED\"") >&5
22664 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= $DBUS_REQUIRED") 2>&5
22665 ac_status=$?
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; then
22668 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= $DBUS_REQUIRED" 2>/dev/null`
22669 else
22670 pkg_failed=yes
22671 fi
22672 fi
22673 else
22674 pkg_failed=untried
22675 fi
22676
22677
22678
22679 if test $pkg_failed = yes; then
22680
22681 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22682 _pkg_short_errors_supported=yes
22683 else
22684 _pkg_short_errors_supported=no
22685 fi
22686 if test $_pkg_short_errors_supported = yes; then
22687 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 >= $DBUS_REQUIRED"`
22688 else
22689 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 >= $DBUS_REQUIRED"`
22690 fi
22691 # Put the nasty error message in config.log where it belongs
22692 echo "$DBUS_PKG_ERRORS" >&5
22693
22694 { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 >= $DBUS_REQUIRED) were not met:
22695
22696 $DBUS_PKG_ERRORS
22697
22698 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22699 installed software in a non-standard prefix.
22700
22701 Alternatively, you may set the environment variables DBUS_CFLAGS
22702 and DBUS_LIBS to avoid the need to call pkg-config.
22703 See the pkg-config man page for more details.
22704 " >&5
22705 echo "$as_me: error: Package requirements (dbus-glib-1 >= $DBUS_REQUIRED) were not met:
22706
22707 $DBUS_PKG_ERRORS
22708
22709 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22710 installed software in a non-standard prefix.
22711
22712 Alternatively, you may set the environment variables DBUS_CFLAGS
22713 and DBUS_LIBS to avoid the need to call pkg-config.
22714 See the pkg-config man page for more details.
22715 " >&2;}
22716 { (exit 1); exit 1; }; }
22717 elif test $pkg_failed = untried; then
22718 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22719 is in your PATH or set the PKG_CONFIG environment variable to the full
22720 path to pkg-config.
22721
22722 Alternatively, you may set the environment variables DBUS_CFLAGS
22723 and DBUS_LIBS to avoid the need to call pkg-config.
22724 See the pkg-config man page for more details.
22725
22726 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22727 See \`config.log' for more details." >&5
22728 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22729 is in your PATH or set the PKG_CONFIG environment variable to the full
22730 path to pkg-config.
22731
22732 Alternatively, you may set the environment variables DBUS_CFLAGS
22733 and DBUS_LIBS to avoid the need to call pkg-config.
22734 See the pkg-config man page for more details.
22735
22736 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22737 See \`config.log' for more details." >&2;}
22738 { (exit 1); exit 1; }; }
22739 else
22740 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
22741 DBUS_LIBS=$pkg_cv_DBUS_LIBS
22742 { echo "$as_me:$LINENO: result: yes" >&5
22743 echo "${ECHO_T}yes" >&6; }
22744 :
22745 fi
22746
22747 pkg_failed=no
22748 { echo "$as_me:$LINENO: checking for GCONF" >&5
22749 echo $ECHO_N "checking for GCONF... $ECHO_C" >&6; }
22750
22751 if test -n "$PKG_CONFIG"; then
22752 if test -n "$GCONF_CFLAGS"; then
22753 pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
22754 else
22755 if test -n "$PKG_CONFIG" && \
22756 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 >= \$GCONF_REQUIRED\"") >&5
22757 ($PKG_CONFIG --exists --print-errors "gconf-2.0 >= $GCONF_REQUIRED") 2>&5
22758 ac_status=$?
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); }; then
22761 pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= $GCONF_REQUIRED" 2>/dev/null`
22762 else
22763 pkg_failed=yes
22764 fi
22765 fi
22766 else
22767 pkg_failed=untried
22768 fi
22769 if test -n "$PKG_CONFIG"; then
22770 if test -n "$GCONF_LIBS"; then
22771 pkg_cv_GCONF_LIBS="$GCONF_LIBS"
22772 else
22773 if test -n "$PKG_CONFIG" && \
22774 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 >= \$GCONF_REQUIRED\"") >&5
22775 ($PKG_CONFIG --exists --print-errors "gconf-2.0 >= $GCONF_REQUIRED") 2>&5
22776 ac_status=$?
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }; then
22779 pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= $GCONF_REQUIRED" 2>/dev/null`
22780 else
22781 pkg_failed=yes
22782 fi
22783 fi
22784 else
22785 pkg_failed=untried
22786 fi
22787
22788
22789
22790 if test $pkg_failed = yes; then
22791
22792 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22793 _pkg_short_errors_supported=yes
22794 else
22795 _pkg_short_errors_supported=no
22796 fi
22797 if test $_pkg_short_errors_supported = yes; then
22798 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gconf-2.0 >= $GCONF_REQUIRED"`
22799 else
22800 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= $GCONF_REQUIRED"`
22801 fi
22802 # Put the nasty error message in config.log where it belongs
22803 echo "$GCONF_PKG_ERRORS" >&5
22804
22805 { { echo "$as_me:$LINENO: error: Package requirements (gconf-2.0 >= $GCONF_REQUIRED) were not met:
22806
22807 $GCONF_PKG_ERRORS
22808
22809 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22810 installed software in a non-standard prefix.
22811
22812 Alternatively, you may set the environment variables GCONF_CFLAGS
22813 and GCONF_LIBS to avoid the need to call pkg-config.
22814 See the pkg-config man page for more details.
22815 " >&5
22816 echo "$as_me: error: Package requirements (gconf-2.0 >= $GCONF_REQUIRED) were not met:
22817
22818 $GCONF_PKG_ERRORS
22819
22820 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22821 installed software in a non-standard prefix.
22822
22823 Alternatively, you may set the environment variables GCONF_CFLAGS
22824 and GCONF_LIBS to avoid the need to call pkg-config.
22825 See the pkg-config man page for more details.
22826 " >&2;}
22827 { (exit 1); exit 1; }; }
22828 elif test $pkg_failed = untried; then
22829 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22830 is in your PATH or set the PKG_CONFIG environment variable to the full
22831 path to pkg-config.
22832
22833 Alternatively, you may set the environment variables GCONF_CFLAGS
22834 and GCONF_LIBS to avoid the need to call pkg-config.
22835 See the pkg-config man page for more details.
22836
22837 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22838 See \`config.log' for more details." >&5
22839 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22840 is in your PATH or set the PKG_CONFIG environment variable to the full
22841 path to pkg-config.
22842
22843 Alternatively, you may set the environment variables GCONF_CFLAGS
22844 and GCONF_LIBS to avoid the need to call pkg-config.
22845 See the pkg-config man page for more details.
22846
22847 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22848 See \`config.log' for more details." >&2;}
22849 { (exit 1); exit 1; }; }
22850 else
22851 GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
22852 GCONF_LIBS=$pkg_cv_GCONF_LIBS
22853 { echo "$as_me:$LINENO: result: yes" >&5
22854 echo "${ECHO_T}yes" >&6; }
22855 :
22856 fi
22857
22858 # Check whether --enable-debug was given.
22859 if test "${enable_debug+set}" = set; then
22860 enableval=$enable_debug;
22861 else
22862 enable_debug=no
22863 fi
22864
22865 if test x"$enable_debug" = x"yes"; then
22866
22867 cat >>confdefs.h <<\_ACEOF
22868 #define ENABLE_DEBUG 1
22869 _ACEOF
22870
22871 fi
22872
22873
22874 # Extract the first word of "krb5-config", so it can be a program name with args.
22875 set dummy krb5-config; ac_word=$2
22876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22878 if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then
22879 echo $ECHO_N "(cached) $ECHO_C" >&6
22880 else
22881 case $KRB5_CONFIG in
22882 [\\/]* | ?:[\\/]*)
22883 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
22884 ;;
22885 *)
22886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22887 as_dummy="$PATH:/usr/kerberos/bin"
22888 for as_dir in $as_dummy
22889 do
22890 IFS=$as_save_IFS
22891 test -z "$as_dir" && as_dir=.
22892 for ac_exec_ext in '' $ac_executable_extensions; do
22893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22894 ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22896 break 2
22897 fi
22898 done
22899 done
22900 IFS=$as_save_IFS
22901
22902 test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="none"
22903 ;;
22904 esac
22905 fi
22906 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
22907 if test -n "$KRB5_CONFIG"; then
22908 { echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
22909 echo "${ECHO_T}$KRB5_CONFIG" >&6; }
22910 else
22911 { echo "$as_me:$LINENO: result: no" >&5
22912 echo "${ECHO_T}no" >&6; }
22913 fi
22914
22915
22916 if test "x$KRB5_CONFIG" != "xnone"; then
22917 KRB5_LIBS="`${KRB5_CONFIG} --libs krb5`"
22918 KRB5_CFLAGS="`${KRB5_CONFIG} --cflags krb5`"
22919
22920
22921 fi
22922
22923 savedCFLAGS="$CFLAGS"
22924 CFLAGS="$KRB5_CFLAGS $CFLAGS"
22925 savedLIBS="$LIBS"
22926 LIBS="$KRB5_LIBS $LIBS"
22927
22928 for ac_header in hx509_err.h
22929 do
22930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22935 echo $ECHO_N "(cached) $ECHO_C" >&6
22936 fi
22937 ac_res=`eval echo '${'$as_ac_Header'}'`
22938 { echo "$as_me:$LINENO: result: $ac_res" >&5
22939 echo "${ECHO_T}$ac_res" >&6; }
22940 else
22941 # Is the header compilable?
22942 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22944 cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h. */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 $ac_includes_default
22951 #include <$ac_header>
22952 _ACEOF
22953 rm -f conftest.$ac_objext
22954 if { (ac_try="$ac_compile"
22955 case "(($ac_try" in
22956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957 *) ac_try_echo=$ac_try;;
22958 esac
22959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22960 (eval "$ac_compile") 2>conftest.er1
22961 ac_status=$?
22962 grep -v '^ *+' conftest.er1 >conftest.err
22963 rm -f conftest.er1
22964 cat conftest.err >&5
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); } && {
22967 test -z "$ac_c_werror_flag" ||
22968 test ! -s conftest.err
22969 } && test -s conftest.$ac_objext; then
22970 ac_header_compiler=yes
22971 else
22972 echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22974
22975 ac_header_compiler=no
22976 fi
22977
22978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22980 echo "${ECHO_T}$ac_header_compiler" >&6; }
22981
22982 # Is the header present?
22983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22985 cat >conftest.$ac_ext <<_ACEOF
22986 /* confdefs.h. */
22987 _ACEOF
22988 cat confdefs.h >>conftest.$ac_ext
22989 cat >>conftest.$ac_ext <<_ACEOF
22990 /* end confdefs.h. */
22991 #include <$ac_header>
22992 _ACEOF
22993 if { (ac_try="$ac_cpp conftest.$ac_ext"
22994 case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22997 esac
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23000 ac_status=$?
23001 grep -v '^ *+' conftest.er1 >conftest.err
23002 rm -f conftest.er1
23003 cat conftest.err >&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); } >/dev/null && {
23006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23007 test ! -s conftest.err
23008 }; then
23009 ac_header_preproc=yes
23010 else
23011 echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23013
23014 ac_header_preproc=no
23015 fi
23016
23017 rm -f conftest.err conftest.$ac_ext
23018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23019 echo "${ECHO_T}$ac_header_preproc" >&6; }
23020
23021 # So? What about this header?
23022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23023 yes:no: )
23024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23028 ac_header_preproc=yes
23029 ;;
23030 no:yes:* )
23031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23043
23044 ;;
23045 esac
23046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23051 eval "$as_ac_Header=\$ac_header_preproc"
23052 fi
23053 ac_res=`eval echo '${'$as_ac_Header'}'`
23054 { echo "$as_me:$LINENO: result: $ac_res" >&5
23055 echo "${ECHO_T}$ac_res" >&6; }
23056
23057 fi
23058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23059 cat >>confdefs.h <<_ACEOF
23060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23061 _ACEOF
23062
23063 fi
23064
23065 done
23066
23067 { echo "$as_me:$LINENO: checking for krb5_creds.ticket_flags" >&5
23068 echo $ECHO_N "checking for krb5_creds.ticket_flags... $ECHO_C" >&6; }
23069 if test "${ac_cv_member_krb5_creds_ticket_flags+set}" = set; then
23070 echo $ECHO_N "(cached) $ECHO_C" >&6
23071 else
23072 cat >conftest.$ac_ext <<_ACEOF
23073 /* confdefs.h. */
23074 _ACEOF
23075 cat confdefs.h >>conftest.$ac_ext
23076 cat >>conftest.$ac_ext <<_ACEOF
23077 /* end confdefs.h. */
23078 #include <krb5.h>
23079
23080 int
23081 main ()
23082 {
23083 static krb5_creds ac_aggr;
23084 if (ac_aggr.ticket_flags)
23085 return 0;
23086 ;
23087 return 0;
23088 }
23089 _ACEOF
23090 rm -f conftest.$ac_objext
23091 if { (ac_try="$ac_compile"
23092 case "(($ac_try" in
23093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23094 *) ac_try_echo=$ac_try;;
23095 esac
23096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23097 (eval "$ac_compile") 2>conftest.er1
23098 ac_status=$?
23099 grep -v '^ *+' conftest.er1 >conftest.err
23100 rm -f conftest.er1
23101 cat conftest.err >&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } && {
23104 test -z "$ac_c_werror_flag" ||
23105 test ! -s conftest.err
23106 } && test -s conftest.$ac_objext; then
23107 ac_cv_member_krb5_creds_ticket_flags=yes
23108 else
23109 echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23111
23112 cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h. */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23118 #include <krb5.h>
23119
23120 int
23121 main ()
23122 {
23123 static krb5_creds ac_aggr;
23124 if (sizeof ac_aggr.ticket_flags)
23125 return 0;
23126 ;
23127 return 0;
23128 }
23129 _ACEOF
23130 rm -f conftest.$ac_objext
23131 if { (ac_try="$ac_compile"
23132 case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_compile") 2>conftest.er1
23138 ac_status=$?
23139 grep -v '^ *+' conftest.er1 >conftest.err
23140 rm -f conftest.er1
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } && {
23144 test -z "$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23146 } && test -s conftest.$ac_objext; then
23147 ac_cv_member_krb5_creds_ticket_flags=yes
23148 else
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152 ac_cv_member_krb5_creds_ticket_flags=no
23153 fi
23154
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156 fi
23157
23158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23159 fi
23160 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_creds_ticket_flags" >&5
23161 echo "${ECHO_T}$ac_cv_member_krb5_creds_ticket_flags" >&6; }
23162 if test $ac_cv_member_krb5_creds_ticket_flags = yes; then
23163
23164 cat >>confdefs.h <<_ACEOF
23165 #define HAVE_KRB5_CREDS_TICKET_FLAGS 1
23166 _ACEOF
23167
23168
23169 fi
23170
23171 { echo "$as_me:$LINENO: checking for krb5_creds.flags.b.forwardable" >&5
23172 echo $ECHO_N "checking for krb5_creds.flags.b.forwardable... $ECHO_C" >&6; }
23173 if test "${ac_cv_member_krb5_creds_flags_b_forwardable+set}" = set; then
23174 echo $ECHO_N "(cached) $ECHO_C" >&6
23175 else
23176 cat >conftest.$ac_ext <<_ACEOF
23177 /* confdefs.h. */
23178 _ACEOF
23179 cat confdefs.h >>conftest.$ac_ext
23180 cat >>conftest.$ac_ext <<_ACEOF
23181 /* end confdefs.h. */
23182 #include <krb5.h>
23183
23184 int
23185 main ()
23186 {
23187 static krb5_creds ac_aggr;
23188 if (ac_aggr.flags.b.forwardable)
23189 return 0;
23190 ;
23191 return 0;
23192 }
23193 _ACEOF
23194 rm -f conftest.$ac_objext
23195 if { (ac_try="$ac_compile"
23196 case "(($ac_try" in
23197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198 *) ac_try_echo=$ac_try;;
23199 esac
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201 (eval "$ac_compile") 2>conftest.er1
23202 ac_status=$?
23203 grep -v '^ *+' conftest.er1 >conftest.err
23204 rm -f conftest.er1
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && {
23208 test -z "$ac_c_werror_flag" ||
23209 test ! -s conftest.err
23210 } && test -s conftest.$ac_objext; then
23211 ac_cv_member_krb5_creds_flags_b_forwardable=yes
23212 else
23213 echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23215
23216 cat >conftest.$ac_ext <<_ACEOF
23217 /* confdefs.h. */
23218 _ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h. */
23222 #include <krb5.h>
23223
23224 int
23225 main ()
23226 {
23227 static krb5_creds ac_aggr;
23228 if (sizeof ac_aggr.flags.b.forwardable)
23229 return 0;
23230 ;
23231 return 0;
23232 }
23233 _ACEOF
23234 rm -f conftest.$ac_objext
23235 if { (ac_try="$ac_compile"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23239 esac
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241 (eval "$ac_compile") 2>conftest.er1
23242 ac_status=$?
23243 grep -v '^ *+' conftest.er1 >conftest.err
23244 rm -f conftest.er1
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } && {
23248 test -z "$ac_c_werror_flag" ||
23249 test ! -s conftest.err
23250 } && test -s conftest.$ac_objext; then
23251 ac_cv_member_krb5_creds_flags_b_forwardable=yes
23252 else
23253 echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23255
23256 ac_cv_member_krb5_creds_flags_b_forwardable=no
23257 fi
23258
23259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23260 fi
23261
23262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23263 fi
23264 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_creds_flags_b_forwardable" >&5
23265 echo "${ECHO_T}$ac_cv_member_krb5_creds_flags_b_forwardable" >&6; }
23266 if test $ac_cv_member_krb5_creds_flags_b_forwardable = yes; then
23267
23268 cat >>confdefs.h <<_ACEOF
23269 #define HAVE_KRB5_CREDS_FLAGS_B_FORWARDABLE 1
23270 _ACEOF
23271
23272
23273 fi
23274
23275 { echo "$as_me:$LINENO: checking for krb5_creds.flags.b.renewable" >&5
23276 echo $ECHO_N "checking for krb5_creds.flags.b.renewable... $ECHO_C" >&6; }
23277 if test "${ac_cv_member_krb5_creds_flags_b_renewable+set}" = set; then
23278 echo $ECHO_N "(cached) $ECHO_C" >&6
23279 else
23280 cat >conftest.$ac_ext <<_ACEOF
23281 /* confdefs.h. */
23282 _ACEOF
23283 cat confdefs.h >>conftest.$ac_ext
23284 cat >>conftest.$ac_ext <<_ACEOF
23285 /* end confdefs.h. */
23286 #include <krb5.h>
23287
23288 int
23289 main ()
23290 {
23291 static krb5_creds ac_aggr;
23292 if (ac_aggr.flags.b.renewable)
23293 return 0;
23294 ;
23295 return 0;
23296 }
23297 _ACEOF
23298 rm -f conftest.$ac_objext
23299 if { (ac_try="$ac_compile"
23300 case "(($ac_try" in
23301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302 *) ac_try_echo=$ac_try;;
23303 esac
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305 (eval "$ac_compile") 2>conftest.er1
23306 ac_status=$?
23307 grep -v '^ *+' conftest.er1 >conftest.err
23308 rm -f conftest.er1
23309 cat conftest.err >&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); } && {
23312 test -z "$ac_c_werror_flag" ||
23313 test ! -s conftest.err
23314 } && test -s conftest.$ac_objext; then
23315 ac_cv_member_krb5_creds_flags_b_renewable=yes
23316 else
23317 echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320 cat >conftest.$ac_ext <<_ACEOF
23321 /* confdefs.h. */
23322 _ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23326 #include <krb5.h>
23327
23328 int
23329 main ()
23330 {
23331 static krb5_creds ac_aggr;
23332 if (sizeof ac_aggr.flags.b.renewable)
23333 return 0;
23334 ;
23335 return 0;
23336 }
23337 _ACEOF
23338 rm -f conftest.$ac_objext
23339 if { (ac_try="$ac_compile"
23340 case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23343 esac
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_compile") 2>conftest.er1
23346 ac_status=$?
23347 grep -v '^ *+' conftest.er1 >conftest.err
23348 rm -f conftest.er1
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } && {
23352 test -z "$ac_c_werror_flag" ||
23353 test ! -s conftest.err
23354 } && test -s conftest.$ac_objext; then
23355 ac_cv_member_krb5_creds_flags_b_renewable=yes
23356 else
23357 echo "$as_me: failed program was:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23359
23360 ac_cv_member_krb5_creds_flags_b_renewable=no
23361 fi
23362
23363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364 fi
23365
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367 fi
23368 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_creds_flags_b_renewable" >&5
23369 echo "${ECHO_T}$ac_cv_member_krb5_creds_flags_b_renewable" >&6; }
23370 if test $ac_cv_member_krb5_creds_flags_b_renewable = yes; then
23371
23372 cat >>confdefs.h <<_ACEOF
23373 #define HAVE_KRB5_CREDS_FLAGS_B_RENEWABLE 1
23374 _ACEOF
23375
23376
23377 fi
23378
23379 { echo "$as_me:$LINENO: checking for krb5_creds.flags.b.proxiable" >&5
23380 echo $ECHO_N "checking for krb5_creds.flags.b.proxiable... $ECHO_C" >&6; }
23381 if test "${ac_cv_member_krb5_creds_flags_b_proxiable+set}" = set; then
23382 echo $ECHO_N "(cached) $ECHO_C" >&6
23383 else
23384 cat >conftest.$ac_ext <<_ACEOF
23385 /* confdefs.h. */
23386 _ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h. */
23390 #include <krb5.h>
23391
23392 int
23393 main ()
23394 {
23395 static krb5_creds ac_aggr;
23396 if (ac_aggr.flags.b.proxiable)
23397 return 0;
23398 ;
23399 return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext
23403 if { (ac_try="$ac_compile"
23404 case "(($ac_try" in
23405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406 *) ac_try_echo=$ac_try;;
23407 esac
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409 (eval "$ac_compile") 2>conftest.er1
23410 ac_status=$?
23411 grep -v '^ *+' conftest.er1 >conftest.err
23412 rm -f conftest.er1
23413 cat conftest.err >&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } && {
23416 test -z "$ac_c_werror_flag" ||
23417 test ! -s conftest.err
23418 } && test -s conftest.$ac_objext; then
23419 ac_cv_member_krb5_creds_flags_b_proxiable=yes
23420 else
23421 echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424 cat >conftest.$ac_ext <<_ACEOF
23425 /* confdefs.h. */
23426 _ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23430 #include <krb5.h>
23431
23432 int
23433 main ()
23434 {
23435 static krb5_creds ac_aggr;
23436 if (sizeof ac_aggr.flags.b.proxiable)
23437 return 0;
23438 ;
23439 return 0;
23440 }
23441 _ACEOF
23442 rm -f conftest.$ac_objext
23443 if { (ac_try="$ac_compile"
23444 case "(($ac_try" in
23445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23447 esac
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_compile") 2>conftest.er1
23450 ac_status=$?
23451 grep -v '^ *+' conftest.er1 >conftest.err
23452 rm -f conftest.er1
23453 cat conftest.err >&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest.$ac_objext; then
23459 ac_cv_member_krb5_creds_flags_b_proxiable=yes
23460 else
23461 echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23463
23464 ac_cv_member_krb5_creds_flags_b_proxiable=no
23465 fi
23466
23467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468 fi
23469
23470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23471 fi
23472 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_creds_flags_b_proxiable" >&5
23473 echo "${ECHO_T}$ac_cv_member_krb5_creds_flags_b_proxiable" >&6; }
23474 if test $ac_cv_member_krb5_creds_flags_b_proxiable = yes; then
23475
23476 cat >>confdefs.h <<_ACEOF
23477 #define HAVE_KRB5_CREDS_FLAGS_B_PROXIABLE 1
23478 _ACEOF
23479
23480
23481 fi
23482
23483 { echo "$as_me:$LINENO: checking for krb5_creds.flags" >&5
23484 echo $ECHO_N "checking for krb5_creds.flags... $ECHO_C" >&6; }
23485 if test "${ac_cv_member_krb5_creds_flags+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 else
23488 cat >conftest.$ac_ext <<_ACEOF
23489 /* confdefs.h. */
23490 _ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23494 #include <krb5.h>
23495
23496 int
23497 main ()
23498 {
23499 static krb5_creds ac_aggr;
23500 if (ac_aggr.flags)
23501 return 0;
23502 ;
23503 return 0;
23504 }
23505 _ACEOF
23506 rm -f conftest.$ac_objext
23507 if { (ac_try="$ac_compile"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23511 esac
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_compile") 2>conftest.er1
23514 ac_status=$?
23515 grep -v '^ *+' conftest.er1 >conftest.err
23516 rm -f conftest.er1
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } && {
23520 test -z "$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 } && test -s conftest.$ac_objext; then
23523 ac_cv_member_krb5_creds_flags=yes
23524 else
23525 echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23527
23528 cat >conftest.$ac_ext <<_ACEOF
23529 /* confdefs.h. */
23530 _ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h. */
23534 #include <krb5.h>
23535
23536 int
23537 main ()
23538 {
23539 static krb5_creds ac_aggr;
23540 if (sizeof ac_aggr.flags)
23541 return 0;
23542 ;
23543 return 0;
23544 }
23545 _ACEOF
23546 rm -f conftest.$ac_objext
23547 if { (ac_try="$ac_compile"
23548 case "(($ac_try" in
23549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23550 *) ac_try_echo=$ac_try;;
23551 esac
23552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23553 (eval "$ac_compile") 2>conftest.er1
23554 ac_status=$?
23555 grep -v '^ *+' conftest.er1 >conftest.err
23556 rm -f conftest.er1
23557 cat conftest.err >&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); } && {
23560 test -z "$ac_c_werror_flag" ||
23561 test ! -s conftest.err
23562 } && test -s conftest.$ac_objext; then
23563 ac_cv_member_krb5_creds_flags=yes
23564 else
23565 echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23567
23568 ac_cv_member_krb5_creds_flags=no
23569 fi
23570
23571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23572 fi
23573
23574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23575 fi
23576 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_creds_flags" >&5
23577 echo "${ECHO_T}$ac_cv_member_krb5_creds_flags" >&6; }
23578 if test $ac_cv_member_krb5_creds_flags = yes; then
23579
23580 cat >>confdefs.h <<_ACEOF
23581 #define HAVE_KRB5_CREDS_FLAGS 1
23582 _ACEOF
23583
23584
23585 fi
23586
23587
23588 for ac_func in krb5_get_error_message
23589 do
23590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23594 echo $ECHO_N "(cached) $ECHO_C" >&6
23595 else
23596 cat >conftest.$ac_ext <<_ACEOF
23597 /* confdefs.h. */
23598 _ACEOF
23599 cat confdefs.h >>conftest.$ac_ext
23600 cat >>conftest.$ac_ext <<_ACEOF
23601 /* end confdefs.h. */
23602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23604 #define $ac_func innocuous_$ac_func
23605
23606 /* System header to define __stub macros and hopefully few prototypes,
23607 which can conflict with char $ac_func (); below.
23608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23609 <limits.h> exists even on freestanding compilers. */
23610
23611 #ifdef __STDC__
23612 # include <limits.h>
23613 #else
23614 # include <assert.h>
23615 #endif
23616
23617 #undef $ac_func
23618
23619 /* Override any GCC internal prototype to avoid an error.
23620 Use char because int might match the return type of a GCC
23621 builtin and then its argument prototype would still apply. */
23622 #ifdef __cplusplus
23623 extern "C"
23624 #endif
23625 char $ac_func ();
23626 /* The GNU C library defines this for functions which it implements
23627 to always fail with ENOSYS. Some functions are actually named
23628 something starting with __ and the normal name is an alias. */
23629 #if defined __stub_$ac_func || defined __stub___$ac_func
23630 choke me
23631 #endif
23632
23633 int
23634 main ()
23635 {
23636 return $ac_func ();
23637 ;
23638 return 0;
23639 }
23640 _ACEOF
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (ac_try="$ac_link"
23643 case "(($ac_try" in
23644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645 *) ac_try_echo=$ac_try;;
23646 esac
23647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648 (eval "$ac_link") 2>conftest.er1
23649 ac_status=$?
23650 grep -v '^ *+' conftest.er1 >conftest.err
23651 rm -f conftest.er1
23652 cat conftest.err >&5
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); } && {
23655 test -z "$ac_c_werror_flag" ||
23656 test ! -s conftest.err
23657 } && test -s conftest$ac_exeext &&
23658 $as_test_x conftest$ac_exeext; then
23659 eval "$as_ac_var=yes"
23660 else
23661 echo "$as_me: failed program was:" >&5
23662 sed 's/^/| /' conftest.$ac_ext >&5
23663
23664 eval "$as_ac_var=no"
23665 fi
23666
23667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23668 conftest$ac_exeext conftest.$ac_ext
23669 fi
23670 ac_res=`eval echo '${'$as_ac_var'}'`
23671 { echo "$as_me:$LINENO: result: $ac_res" >&5
23672 echo "${ECHO_T}$ac_res" >&6; }
23673 if test `eval echo '${'$as_ac_var'}'` = yes; then
23674 cat >>confdefs.h <<_ACEOF
23675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23676 _ACEOF
23677
23678 fi
23679 done
23680
23681
23682 for ac_func in krb5_get_renewed_creds
23683 do
23684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
23689 else
23690 cat >conftest.$ac_ext <<_ACEOF
23691 /* confdefs.h. */
23692 _ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h. */
23696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23698 #define $ac_func innocuous_$ac_func
23699
23700 /* System header to define __stub macros and hopefully few prototypes,
23701 which can conflict with char $ac_func (); below.
23702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23703 <limits.h> exists even on freestanding compilers. */
23704
23705 #ifdef __STDC__
23706 # include <limits.h>
23707 #else
23708 # include <assert.h>
23709 #endif
23710
23711 #undef $ac_func
23712
23713 /* Override any GCC internal prototype to avoid an error.
23714 Use char because int might match the return type of a GCC
23715 builtin and then its argument prototype would still apply. */
23716 #ifdef __cplusplus
23717 extern "C"
23718 #endif
23719 char $ac_func ();
23720 /* The GNU C library defines this for functions which it implements
23721 to always fail with ENOSYS. Some functions are actually named
23722 something starting with __ and the normal name is an alias. */
23723 #if defined __stub_$ac_func || defined __stub___$ac_func
23724 choke me
23725 #endif
23726
23727 int
23728 main ()
23729 {
23730 return $ac_func ();
23731 ;
23732 return 0;
23733 }
23734 _ACEOF
23735 rm -f conftest.$ac_objext conftest$ac_exeext
23736 if { (ac_try="$ac_link"
23737 case "(($ac_try" in
23738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739 *) ac_try_echo=$ac_try;;
23740 esac
23741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23742 (eval "$ac_link") 2>conftest.er1
23743 ac_status=$?
23744 grep -v '^ *+' conftest.er1 >conftest.err
23745 rm -f conftest.er1
23746 cat conftest.err >&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); } && {
23749 test -z "$ac_c_werror_flag" ||
23750 test ! -s conftest.err
23751 } && test -s conftest$ac_exeext &&
23752 $as_test_x conftest$ac_exeext; then
23753 eval "$as_ac_var=yes"
23754 else
23755 echo "$as_me: failed program was:" >&5
23756 sed 's/^/| /' conftest.$ac_ext >&5
23757
23758 eval "$as_ac_var=no"
23759 fi
23760
23761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23762 conftest$ac_exeext conftest.$ac_ext
23763 fi
23764 ac_res=`eval echo '${'$as_ac_var'}'`
23765 { echo "$as_me:$LINENO: result: $ac_res" >&5
23766 echo "${ECHO_T}$ac_res" >&6; }
23767 if test `eval echo '${'$as_ac_var'}'` = yes; then
23768 cat >>confdefs.h <<_ACEOF
23769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23770 _ACEOF
23771
23772 fi
23773 done
23774
23775
23776 for ac_func in krb5_get_init_creds_opt_set_default_flags
23777 do
23778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23782 echo $ECHO_N "(cached) $ECHO_C" >&6
23783 else
23784 cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h. */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h. */
23790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23792 #define $ac_func innocuous_$ac_func
23793
23794 /* System header to define __stub macros and hopefully few prototypes,
23795 which can conflict with char $ac_func (); below.
23796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23797 <limits.h> exists even on freestanding compilers. */
23798
23799 #ifdef __STDC__
23800 # include <limits.h>
23801 #else
23802 # include <assert.h>
23803 #endif
23804
23805 #undef $ac_func
23806
23807 /* Override any GCC internal prototype to avoid an error.
23808 Use char because int might match the return type of a GCC
23809 builtin and then its argument prototype would still apply. */
23810 #ifdef __cplusplus
23811 extern "C"
23812 #endif
23813 char $ac_func ();
23814 /* The GNU C library defines this for functions which it implements
23815 to always fail with ENOSYS. Some functions are actually named
23816 something starting with __ and the normal name is an alias. */
23817 #if defined __stub_$ac_func || defined __stub___$ac_func
23818 choke me
23819 #endif
23820
23821 int
23822 main ()
23823 {
23824 return $ac_func ();
23825 ;
23826 return 0;
23827 }
23828 _ACEOF
23829 rm -f conftest.$ac_objext conftest$ac_exeext
23830 if { (ac_try="$ac_link"
23831 case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23834 esac
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_link") 2>conftest.er1
23837 ac_status=$?
23838 grep -v '^ *+' conftest.er1 >conftest.err
23839 rm -f conftest.er1
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
23845 } && test -s conftest$ac_exeext &&
23846 $as_test_x conftest$ac_exeext; then
23847 eval "$as_ac_var=yes"
23848 else
23849 echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23851
23852 eval "$as_ac_var=no"
23853 fi
23854
23855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23856 conftest$ac_exeext conftest.$ac_ext
23857 fi
23858 ac_res=`eval echo '${'$as_ac_var'}'`
23859 { echo "$as_me:$LINENO: result: $ac_res" >&5
23860 echo "${ECHO_T}$ac_res" >&6; }
23861 if test `eval echo '${'$as_ac_var'}'` = yes; then
23862 cat >>confdefs.h <<_ACEOF
23863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23864 _ACEOF
23865
23866 fi
23867 done
23868
23869
23870 for ac_func in krb5_cc_clear_mcred
23871 do
23872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23876 echo $ECHO_N "(cached) $ECHO_C" >&6
23877 else
23878 cat >conftest.$ac_ext <<_ACEOF
23879 /* confdefs.h. */
23880 _ACEOF
23881 cat confdefs.h >>conftest.$ac_ext
23882 cat >>conftest.$ac_ext <<_ACEOF
23883 /* end confdefs.h. */
23884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23886 #define $ac_func innocuous_$ac_func
23887
23888 /* System header to define __stub macros and hopefully few prototypes,
23889 which can conflict with char $ac_func (); below.
23890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23891 <limits.h> exists even on freestanding compilers. */
23892
23893 #ifdef __STDC__
23894 # include <limits.h>
23895 #else
23896 # include <assert.h>
23897 #endif
23898
23899 #undef $ac_func
23900
23901 /* Override any GCC internal prototype to avoid an error.
23902 Use char because int might match the return type of a GCC
23903 builtin and then its argument prototype would still apply. */
23904 #ifdef __cplusplus
23905 extern "C"
23906 #endif
23907 char $ac_func ();
23908 /* The GNU C library defines this for functions which it implements
23909 to always fail with ENOSYS. Some functions are actually named
23910 something starting with __ and the normal name is an alias. */
23911 #if defined __stub_$ac_func || defined __stub___$ac_func
23912 choke me
23913 #endif
23914
23915 int
23916 main ()
23917 {
23918 return $ac_func ();
23919 ;
23920 return 0;
23921 }
23922 _ACEOF
23923 rm -f conftest.$ac_objext conftest$ac_exeext
23924 if { (ac_try="$ac_link"
23925 case "(($ac_try" in
23926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927 *) ac_try_echo=$ac_try;;
23928 esac
23929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23930 (eval "$ac_link") 2>conftest.er1
23931 ac_status=$?
23932 grep -v '^ *+' conftest.er1 >conftest.err
23933 rm -f conftest.er1
23934 cat conftest.err >&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } && {
23937 test -z "$ac_c_werror_flag" ||
23938 test ! -s conftest.err
23939 } && test -s conftest$ac_exeext &&
23940 $as_test_x conftest$ac_exeext; then
23941 eval "$as_ac_var=yes"
23942 else
23943 echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946 eval "$as_ac_var=no"
23947 fi
23948
23949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23950 conftest$ac_exeext conftest.$ac_ext
23951 fi
23952 ac_res=`eval echo '${'$as_ac_var'}'`
23953 { echo "$as_me:$LINENO: result: $ac_res" >&5
23954 echo "${ECHO_T}$ac_res" >&6; }
23955 if test `eval echo '${'$as_ac_var'}'` = yes; then
23956 cat >>confdefs.h <<_ACEOF
23957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23958 _ACEOF
23959
23960 fi
23961 done
23962
23963 { echo "$as_me:$LINENO: checking if a krb5_principal->realm is a char*" >&5
23964 echo $ECHO_N "checking if a krb5_principal->realm is a char*... $ECHO_C" >&6; }
23965 cat >conftest.$ac_ext <<_ACEOF
23966
23967 $ac_includes_default
23968 #include <krb5.h>
23969 #include <string.h>
23970 int
23971 main(int argc, char **argv)
23972 {
23973 static krb5_principal foo;
23974 return strlen(foo->realm);
23975 }
23976 _ACEOF
23977 rm -f conftest.$ac_objext
23978 if { (ac_try="$ac_compile"
23979 case "(($ac_try" in
23980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981 *) ac_try_echo=$ac_try;;
23982 esac
23983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23984 (eval "$ac_compile") 2>conftest.er1
23985 ac_status=$?
23986 grep -v '^ *+' conftest.er1 >conftest.err
23987 rm -f conftest.er1
23988 cat conftest.err >&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } && {
23991 test -z "$ac_c_werror_flag" ||
23992 test ! -s conftest.err
23993 } && test -s conftest.$ac_objext; then
23994
23995 cat >>confdefs.h <<\_ACEOF
23996 #define HAVE_KRB5_PRINCIPAL_REALM_AS_STRING 1
23997 _ACEOF
23998
23999 { echo "$as_me:$LINENO: result: yes" >&5
24000 echo "${ECHO_T}yes" >&6; }
24001 else
24002 echo "$as_me: failed program was:" >&5
24003 sed 's/^/| /' conftest.$ac_ext >&5
24004
24005 { echo "$as_me:$LINENO: result: no" >&5
24006 echo "${ECHO_T}no" >&6; }
24007 fi
24008
24009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24010
24011 { echo "$as_me:$LINENO: checking if a krb5_principal->realm is a krb5_data" >&5
24012 echo $ECHO_N "checking if a krb5_principal->realm is a krb5_data... $ECHO_C" >&6; }
24013 cat >conftest.$ac_ext <<_ACEOF
24014
24015 $ac_includes_default
24016 #include <krb5.h>
24017 int
24018 main(int argc, char **argv)
24019 {
24020 static krb5_principal foo;
24021 static krb5_data bar;
24022 foo->realm = bar;
24023 return 0;
24024 }
24025 _ACEOF
24026 rm -f conftest.$ac_objext
24027 if { (ac_try="$ac_compile"
24028 case "(($ac_try" in
24029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030 *) ac_try_echo=$ac_try;;
24031 esac
24032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033 (eval "$ac_compile") 2>conftest.er1
24034 ac_status=$?
24035 grep -v '^ *+' conftest.er1 >conftest.err
24036 rm -f conftest.er1
24037 cat conftest.err >&5
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } && {
24040 test -z "$ac_c_werror_flag" ||
24041 test ! -s conftest.err
24042 } && test -s conftest.$ac_objext; then
24043
24044 cat >>confdefs.h <<\_ACEOF
24045 #define HAVE_KRB5_PRINCIPAL_REALM_AS_DATA 1
24046 _ACEOF
24047
24048 { echo "$as_me:$LINENO: result: yes" >&5
24049 echo "${ECHO_T}yes" >&6; }
24050 else
24051 echo "$as_me: failed program was:" >&5
24052 sed 's/^/| /' conftest.$ac_ext >&5
24053
24054 { echo "$as_me:$LINENO: result: no" >&5
24055 echo "${ECHO_T}no" >&6; }
24056 fi
24057
24058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059 { echo "$as_me:$LINENO: checking whether to enable pkinit support" >&5
24060 echo $ECHO_N "checking whether to enable pkinit support... $ECHO_C" >&6; }
24061 # Check whether --enable-pkinit was given.
24062 if test "${enable_pkinit+set}" = set; then
24063 enableval=$enable_pkinit;
24064 else
24065 enable_pkinit=autodetect
24066 fi
24067
24068 { echo "$as_me:$LINENO: result: $enable_pkinit" >&5
24069 echo "${ECHO_T}$enable_pkinit" >&6; }
24070
24071 if test "x$enable_pkinit" != "xno"; then
24072
24073 for ac_func in krb5_get_init_creds_opt_set_pkinit
24074 do
24075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
24080 else
24081 cat >conftest.$ac_ext <<_ACEOF
24082 /* confdefs.h. */
24083 _ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h. */
24087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24089 #define $ac_func innocuous_$ac_func
24090
24091 /* System header to define __stub macros and hopefully few prototypes,
24092 which can conflict with char $ac_func (); below.
24093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24094 <limits.h> exists even on freestanding compilers. */
24095
24096 #ifdef __STDC__
24097 # include <limits.h>
24098 #else
24099 # include <assert.h>
24100 #endif
24101
24102 #undef $ac_func
24103
24104 /* Override any GCC internal prototype to avoid an error.
24105 Use char because int might match the return type of a GCC
24106 builtin and then its argument prototype would still apply. */
24107 #ifdef __cplusplus
24108 extern "C"
24109 #endif
24110 char $ac_func ();
24111 /* The GNU C library defines this for functions which it implements
24112 to always fail with ENOSYS. Some functions are actually named
24113 something starting with __ and the normal name is an alias. */
24114 #if defined __stub_$ac_func || defined __stub___$ac_func
24115 choke me
24116 #endif
24117
24118 int
24119 main ()
24120 {
24121 return $ac_func ();
24122 ;
24123 return 0;
24124 }
24125 _ACEOF
24126 rm -f conftest.$ac_objext conftest$ac_exeext
24127 if { (ac_try="$ac_link"
24128 case "(($ac_try" in
24129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130 *) ac_try_echo=$ac_try;;
24131 esac
24132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24133 (eval "$ac_link") 2>conftest.er1
24134 ac_status=$?
24135 grep -v '^ *+' conftest.er1 >conftest.err
24136 rm -f conftest.er1
24137 cat conftest.err >&5
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } && {
24140 test -z "$ac_c_werror_flag" ||
24141 test ! -s conftest.err
24142 } && test -s conftest$ac_exeext &&
24143 $as_test_x conftest$ac_exeext; then
24144 eval "$as_ac_var=yes"
24145 else
24146 echo "$as_me: failed program was:" >&5
24147 sed 's/^/| /' conftest.$ac_ext >&5
24148
24149 eval "$as_ac_var=no"
24150 fi
24151
24152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24153 conftest$ac_exeext conftest.$ac_ext
24154 fi
24155 ac_res=`eval echo '${'$as_ac_var'}'`
24156 { echo "$as_me:$LINENO: result: $ac_res" >&5
24157 echo "${ECHO_T}$ac_res" >&6; }
24158 if test `eval echo '${'$as_ac_var'}'` = yes; then
24159 cat >>confdefs.h <<_ACEOF
24160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24161 _ACEOF
24162 enable_pkinit=yes
24163 else
24164 enable_pkinit=no
24165 fi
24166 done
24167
24168 fi
24169
24170 if test "x$enable_pkinit" = "xyes"; then
24171
24172 cat >>confdefs.h <<\_ACEOF
24173 #define ENABLE_PKINIT 1
24174 _ACEOF
24175
24176 fi
24177 if test "x$enable_pkinit" = "xyes"; then
24178 ENABLE_PKINIT_TRUE=
24179 ENABLE_PKINIT_FALSE='#'
24180 else
24181 ENABLE_PKINIT_TRUE='#'
24182 ENABLE_PKINIT_FALSE=
24183 fi
24184
24185 CFLAGS="$savedCFLAGS"
24186 LIBS="$savedLIBS"
24187
24188
24189
24190 { echo "$as_me:$LINENO: checking whether to enable NetworkManager support" >&5
24191 echo $ECHO_N "checking whether to enable NetworkManager support... $ECHO_C" >&6; }
24192 # Check whether --enable-network-manager was given.
24193 if test "${enable_network_manager+set}" = set; then
24194 enableval=$enable_network_manager;
24195 else
24196 enable_network_manager=autodetect
24197 fi
24198
24199 { echo "$as_me:$LINENO: result: $enable_network_manager" >&5
24200 echo "${ECHO_T}$enable_network_manager" >&6; }
24201
24202 if test "x$enable_network_manager" != "xno"; then
24203
24204 pkg_failed=no
24205 { echo "$as_me:$LINENO: checking for NETWORK_MANAGER" >&5
24206 echo $ECHO_N "checking for NETWORK_MANAGER... $ECHO_C" >&6; }
24207
24208 if test -n "$PKG_CONFIG"; then
24209 if test -n "$NETWORK_MANAGER_CFLAGS"; then
24210 pkg_cv_NETWORK_MANAGER_CFLAGS="$NETWORK_MANAGER_CFLAGS"
24211 else
24212 if test -n "$PKG_CONFIG" && \
24213 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnm_glib >= 0.5\"") >&5
24214 ($PKG_CONFIG --exists --print-errors "libnm_glib >= 0.5") 2>&5
24215 ac_status=$?
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); }; then
24218 pkg_cv_NETWORK_MANAGER_CFLAGS=`$PKG_CONFIG --cflags "libnm_glib >= 0.5" 2>/dev/null`
24219 else
24220 pkg_failed=yes
24221 fi
24222 fi
24223 else
24224 pkg_failed=untried
24225 fi
24226 if test -n "$PKG_CONFIG"; then
24227 if test -n "$NETWORK_MANAGER_LIBS"; then
24228 pkg_cv_NETWORK_MANAGER_LIBS="$NETWORK_MANAGER_LIBS"
24229 else
24230 if test -n "$PKG_CONFIG" && \
24231 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnm_glib >= 0.5\"") >&5
24232 ($PKG_CONFIG --exists --print-errors "libnm_glib >= 0.5") 2>&5
24233 ac_status=$?
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); }; then
24236 pkg_cv_NETWORK_MANAGER_LIBS=`$PKG_CONFIG --libs "libnm_glib >= 0.5" 2>/dev/null`
24237 else
24238 pkg_failed=yes
24239 fi
24240 fi
24241 else
24242 pkg_failed=untried
24243 fi
24244
24245
24246
24247 if test $pkg_failed = yes; then
24248
24249 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24250 _pkg_short_errors_supported=yes
24251 else
24252 _pkg_short_errors_supported=no
24253 fi
24254 if test $_pkg_short_errors_supported = yes; then
24255 NETWORK_MANAGER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnm_glib >= 0.5"`
24256 else
24257 NETWORK_MANAGER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnm_glib >= 0.5"`
24258 fi
24259 # Put the nasty error message in config.log where it belongs
24260 echo "$NETWORK_MANAGER_PKG_ERRORS" >&5
24261
24262 { echo "$as_me:$LINENO: result: no" >&5
24263 echo "${ECHO_T}no" >&6; }
24264 enable_network_manager=no
24265 elif test $pkg_failed = untried; then
24266 enable_network_manager=no
24267 else
24268 NETWORK_MANAGER_CFLAGS=$pkg_cv_NETWORK_MANAGER_CFLAGS
24269 NETWORK_MANAGER_LIBS=$pkg_cv_NETWORK_MANAGER_LIBS
24270 { echo "$as_me:$LINENO: result: yes" >&5
24271 echo "${ECHO_T}yes" >&6; }
24272 enable_network_manager=yes
24273 fi
24274
24275
24276 fi
24277
24278 if test "x$enable_network_manager" = "xyes"; then
24279
24280 cat >>confdefs.h <<\_ACEOF
24281 #define ENABLE_NETWORK_MANAGER 1
24282 _ACEOF
24283
24284 fi
24285 if test "x$enable_network_manager" = "xyes"; then
24286 ENABLE_NETWORK_MANAGER_TRUE=
24287 ENABLE_NETWORK_MANAGER_FALSE='#'
24288 else
24289 ENABLE_NETWORK_MANAGER_TRUE='#'
24290 ENABLE_NETWORK_MANAGER_FALSE=
24291 fi
24292
24293
24294 LIBNOTIFY_CFLAGS=
24295 LIBNOTIFY_LIBS=
24296
24297 # Check whether --with-libnotify was given.
24298 if test "${with_libnotify+set}" = set; then
24299 withval=$with_libnotify;
24300 else
24301 with_libnotify=check
24302 fi
24303
24304
24305 if test "x$with_libnotify" = "xyes" -o "x$with_libnotify" = "xcheck"; then
24306
24307 pkg_failed=no
24308 { echo "$as_me:$LINENO: checking for LIBNOTIFY" >&5
24309 echo $ECHO_N "checking for LIBNOTIFY... $ECHO_C" >&6; }
24310
24311 if test -n "$PKG_CONFIG"; then
24312 if test -n "$LIBNOTIFY_CFLAGS"; then
24313 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
24314 else
24315 if test -n "$PKG_CONFIG" && \
24316 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify >= \$LIBNOTIFY_REQUIRED\"") >&5
24317 ($PKG_CONFIG --exists --print-errors "libnotify >= $LIBNOTIFY_REQUIRED") 2>&5
24318 ac_status=$?
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); }; then
24321 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify >= $LIBNOTIFY_REQUIRED" 2>/dev/null`
24322 else
24323 pkg_failed=yes
24324 fi
24325 fi
24326 else
24327 pkg_failed=untried
24328 fi
24329 if test -n "$PKG_CONFIG"; then
24330 if test -n "$LIBNOTIFY_LIBS"; then
24331 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
24332 else
24333 if test -n "$PKG_CONFIG" && \
24334 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify >= \$LIBNOTIFY_REQUIRED\"") >&5
24335 ($PKG_CONFIG --exists --print-errors "libnotify >= $LIBNOTIFY_REQUIRED") 2>&5
24336 ac_status=$?
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); }; then
24339 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify >= $LIBNOTIFY_REQUIRED" 2>/dev/null`
24340 else
24341 pkg_failed=yes
24342 fi
24343 fi
24344 else
24345 pkg_failed=untried
24346 fi
24347
24348
24349
24350 if test $pkg_failed = yes; then
24351
24352 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24353 _pkg_short_errors_supported=yes
24354 else
24355 _pkg_short_errors_supported=no
24356 fi
24357 if test $_pkg_short_errors_supported = yes; then
24358 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify >= $LIBNOTIFY_REQUIRED"`
24359 else
24360 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify >= $LIBNOTIFY_REQUIRED"`
24361 fi
24362 # Put the nasty error message in config.log where it belongs
24363 echo "$LIBNOTIFY_PKG_ERRORS" >&5
24364
24365 { echo "$as_me:$LINENO: result: no" >&5
24366 echo "${ECHO_T}no" >&6; }
24367
24368 if test "x$with_libnotify" = "xcheck" ; then
24369 with_libnotify=no
24370 else
24371 { { echo "$as_me:$LINENO: error: You must install libnotify >= $LIBNOTIFY_REQUIRED to compile krb5-auth-dialog" >&5
24372 echo "$as_me: error: You must install libnotify >= $LIBNOTIFY_REQUIRED to compile krb5-auth-dialog" >&2;}
24373 { (exit 1); exit 1; }; }
24374 fi
24375
24376 elif test $pkg_failed = untried; then
24377
24378 if test "x$with_libnotify" = "xcheck" ; then
24379 with_libnotify=no
24380 else
24381 { { echo "$as_me:$LINENO: error: You must install libnotify >= $LIBNOTIFY_REQUIRED to compile krb5-auth-dialog" >&5
24382 echo "$as_me: error: You must install libnotify >= $LIBNOTIFY_REQUIRED to compile krb5-auth-dialog" >&2;}
24383 { (exit 1); exit 1; }; }
24384 fi
24385
24386 else
24387 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
24388 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
24389 { echo "$as_me:$LINENO: result: yes" >&5
24390 echo "${ECHO_T}yes" >&6; }
24391 with_libnotify=yes
24392 fi
24393 if test "x$with_libnotify" = "xyes" ; then
24394
24395 cat >>confdefs.h <<_ACEOF
24396 #define HAVE_LIBNOTIFY 1
24397 _ACEOF
24398
24399 fi
24400 fi
24401 if test "x$with_libnotify" = "xyes"; then
24402 HAVE_LIBNOTIFY_TRUE=
24403 HAVE_LIBNOTIFY_FALSE='#'
24404 else
24405 HAVE_LIBNOTIFY_TRUE='#'
24406 HAVE_LIBNOTIFY_FALSE=
24407 fi
24408
24409
24410
24411
24412
24413
24414
24415
24416 for ac_func in seteuid stpcpy mmap
24417 do
24418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24422 echo $ECHO_N "(cached) $ECHO_C" >&6
24423 else
24424 cat >conftest.$ac_ext <<_ACEOF
24425 /* confdefs.h. */
24426 _ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24432 #define $ac_func innocuous_$ac_func
24433
24434 /* System header to define __stub macros and hopefully few prototypes,
24435 which can conflict with char $ac_func (); below.
24436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24437 <limits.h> exists even on freestanding compilers. */
24438
24439 #ifdef __STDC__
24440 # include <limits.h>
24441 #else
24442 # include <assert.h>
24443 #endif
24444
24445 #undef $ac_func
24446
24447 /* Override any GCC internal prototype to avoid an error.
24448 Use char because int might match the return type of a GCC
24449 builtin and then its argument prototype would still apply. */
24450 #ifdef __cplusplus
24451 extern "C"
24452 #endif
24453 char $ac_func ();
24454 /* The GNU C library defines this for functions which it implements
24455 to always fail with ENOSYS. Some functions are actually named
24456 something starting with __ and the normal name is an alias. */
24457 #if defined __stub_$ac_func || defined __stub___$ac_func
24458 choke me
24459 #endif
24460
24461 int
24462 main ()
24463 {
24464 return $ac_func ();
24465 ;
24466 return 0;
24467 }
24468 _ACEOF
24469 rm -f conftest.$ac_objext conftest$ac_exeext
24470 if { (ac_try="$ac_link"
24471 case "(($ac_try" in
24472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473 *) ac_try_echo=$ac_try;;
24474 esac
24475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24476 (eval "$ac_link") 2>conftest.er1
24477 ac_status=$?
24478 grep -v '^ *+' conftest.er1 >conftest.err
24479 rm -f conftest.er1
24480 cat conftest.err >&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); } && {
24483 test -z "$ac_c_werror_flag" ||
24484 test ! -s conftest.err
24485 } && test -s conftest$ac_exeext &&
24486 $as_test_x conftest$ac_exeext; then
24487 eval "$as_ac_var=yes"
24488 else
24489 echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24491
24492 eval "$as_ac_var=no"
24493 fi
24494
24495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24496 conftest$ac_exeext conftest.$ac_ext
24497 fi
24498 ac_res=`eval echo '${'$as_ac_var'}'`
24499 { echo "$as_me:$LINENO: result: $ac_res" >&5
24500 echo "${ECHO_T}$ac_res" >&6; }
24501 if test `eval echo '${'$as_ac_var'}'` = yes; then
24502 cat >>confdefs.h <<_ACEOF
24503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24504 _ACEOF
24505
24506 fi
24507 done
24508
24509
24510 for ac_func in mlock
24511 do
24512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24513 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24516 echo $ECHO_N "(cached) $ECHO_C" >&6
24517 else
24518 cat >conftest.$ac_ext <<_ACEOF
24519 /* confdefs.h. */
24520 _ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24526 #define $ac_func innocuous_$ac_func
24527
24528 /* System header to define __stub macros and hopefully few prototypes,
24529 which can conflict with char $ac_func (); below.
24530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24531 <limits.h> exists even on freestanding compilers. */
24532
24533 #ifdef __STDC__
24534 # include <limits.h>
24535 #else
24536 # include <assert.h>
24537 #endif
24538
24539 #undef $ac_func
24540
24541 /* Override any GCC internal prototype to avoid an error.
24542 Use char because int might match the return type of a GCC
24543 builtin and then its argument prototype would still apply. */
24544 #ifdef __cplusplus
24545 extern "C"
24546 #endif
24547 char $ac_func ();
24548 /* The GNU C library defines this for functions which it implements
24549 to always fail with ENOSYS. Some functions are actually named
24550 something starting with __ and the normal name is an alias. */
24551 #if defined __stub_$ac_func || defined __stub___$ac_func
24552 choke me
24553 #endif
24554
24555 int
24556 main ()
24557 {
24558 return $ac_func ();
24559 ;
24560 return 0;
24561 }
24562 _ACEOF
24563 rm -f conftest.$ac_objext conftest$ac_exeext
24564 if { (ac_try="$ac_link"
24565 case "(($ac_try" in
24566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567 *) ac_try_echo=$ac_try;;
24568 esac
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570 (eval "$ac_link") 2>conftest.er1
24571 ac_status=$?
24572 grep -v '^ *+' conftest.er1 >conftest.err
24573 rm -f conftest.er1
24574 cat conftest.err >&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); } && {
24577 test -z "$ac_c_werror_flag" ||
24578 test ! -s conftest.err
24579 } && test -s conftest$ac_exeext &&
24580 $as_test_x conftest$ac_exeext; then
24581 eval "$as_ac_var=yes"
24582 else
24583 echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24585
24586 eval "$as_ac_var=no"
24587 fi
24588
24589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24590 conftest$ac_exeext conftest.$ac_ext
24591 fi
24592 ac_res=`eval echo '${'$as_ac_var'}'`
24593 { echo "$as_me:$LINENO: result: $ac_res" >&5
24594 echo "${ECHO_T}$ac_res" >&6; }
24595 if test `eval echo '${'$as_ac_var'}'` = yes; then
24596 cat >>confdefs.h <<_ACEOF
24597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24598 _ACEOF
24599
24600 fi
24601 done
24602
24603 if test "$ac_cv_func_mlock" = "no"; then
24604
24605 for ac_header in sys/mman.h
24606 do
24607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24612 echo $ECHO_N "(cached) $ECHO_C" >&6
24613 fi
24614 ac_res=`eval echo '${'$as_ac_Header'}'`
24615 { echo "$as_me:$LINENO: result: $ac_res" >&5
24616 echo "${ECHO_T}$ac_res" >&6; }
24617 else
24618 # Is the header compilable?
24619 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24621 cat >conftest.$ac_ext <<_ACEOF
24622 /* confdefs.h. */
24623 _ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h. */
24627 $ac_includes_default
24628 #include <$ac_header>
24629 _ACEOF
24630 rm -f conftest.$ac_objext
24631 if { (ac_try="$ac_compile"
24632 case "(($ac_try" in
24633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634 *) ac_try_echo=$ac_try;;
24635 esac
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_compile") 2>conftest.er1
24638 ac_status=$?
24639 grep -v '^ *+' conftest.er1 >conftest.err
24640 rm -f conftest.er1
24641 cat conftest.err >&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } && {
24644 test -z "$ac_c_werror_flag" ||
24645 test ! -s conftest.err
24646 } && test -s conftest.$ac_objext; then
24647 ac_header_compiler=yes
24648 else
24649 echo "$as_me: failed program was:" >&5
24650 sed 's/^/| /' conftest.$ac_ext >&5
24651
24652 ac_header_compiler=no
24653 fi
24654
24655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24657 echo "${ECHO_T}$ac_header_compiler" >&6; }
24658
24659 # Is the header present?
24660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24662 cat >conftest.$ac_ext <<_ACEOF
24663 /* confdefs.h. */
24664 _ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h. */
24668 #include <$ac_header>
24669 _ACEOF
24670 if { (ac_try="$ac_cpp conftest.$ac_ext"
24671 case "(($ac_try" in
24672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673 *) ac_try_echo=$ac_try;;
24674 esac
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24677 ac_status=$?
24678 grep -v '^ *+' conftest.er1 >conftest.err
24679 rm -f conftest.er1
24680 cat conftest.err >&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } >/dev/null && {
24683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24684 test ! -s conftest.err
24685 }; then
24686 ac_header_preproc=yes
24687 else
24688 echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24690
24691 ac_header_preproc=no
24692 fi
24693
24694 rm -f conftest.err conftest.$ac_ext
24695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24696 echo "${ECHO_T}$ac_header_preproc" >&6; }
24697
24698 # So? What about this header?
24699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24700 yes:no: )
24701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24705 ac_header_preproc=yes
24706 ;;
24707 no:yes:* )
24708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24720
24721 ;;
24722 esac
24723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24726 echo $ECHO_N "(cached) $ECHO_C" >&6
24727 else
24728 eval "$as_ac_Header=\$ac_header_preproc"
24729 fi
24730 ac_res=`eval echo '${'$as_ac_Header'}'`
24731 { echo "$as_me:$LINENO: result: $ac_res" >&5
24732 echo "${ECHO_T}$ac_res" >&6; }
24733
24734 fi
24735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24736 cat >>confdefs.h <<_ACEOF
24737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24738 _ACEOF
24739
24740 fi
24741
24742 done
24743
24744 if test "$ac_cv_header_sys_mman_h" = "yes"; then
24745 # Add librt to LIBS:
24746
24747 { echo "$as_me:$LINENO: checking for memlk in -lrt" >&5
24748 echo $ECHO_N "checking for memlk in -lrt... $ECHO_C" >&6; }
24749 if test "${ac_cv_lib_rt_memlk+set}" = set; then
24750 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 else
24752 ac_check_lib_save_LIBS=$LIBS
24753 LIBS="-lrt $LIBS"
24754 cat >conftest.$ac_ext <<_ACEOF
24755 /* confdefs.h. */
24756 _ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h. */
24760
24761 /* Override any GCC internal prototype to avoid an error.
24762 Use char because int might match the return type of a GCC
24763 builtin and then its argument prototype would still apply. */
24764 #ifdef __cplusplus
24765 extern "C"
24766 #endif
24767 char memlk ();
24768 int
24769 main ()
24770 {
24771 return memlk ();
24772 ;
24773 return 0;
24774 }
24775 _ACEOF
24776 rm -f conftest.$ac_objext conftest$ac_exeext
24777 if { (ac_try="$ac_link"
24778 case "(($ac_try" in
24779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780 *) ac_try_echo=$ac_try;;
24781 esac
24782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783 (eval "$ac_link") 2>conftest.er1
24784 ac_status=$?
24785 grep -v '^ *+' conftest.er1 >conftest.err
24786 rm -f conftest.er1
24787 cat conftest.err >&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); } && {
24790 test -z "$ac_c_werror_flag" ||
24791 test ! -s conftest.err
24792 } && test -s conftest$ac_exeext &&
24793 $as_test_x conftest$ac_exeext; then
24794 ac_cv_lib_rt_memlk=yes
24795 else
24796 echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24798
24799 ac_cv_lib_rt_memlk=no
24800 fi
24801
24802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24803 conftest$ac_exeext conftest.$ac_ext
24804 LIBS=$ac_check_lib_save_LIBS
24805 fi
24806 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_memlk" >&5
24807 echo "${ECHO_T}$ac_cv_lib_rt_memlk" >&6; }
24808 if test $ac_cv_lib_rt_memlk = yes; then
24809 cat >>confdefs.h <<_ACEOF
24810 #define HAVE_LIBRT 1
24811 _ACEOF
24812
24813 LIBS="-lrt $LIBS"
24814
24815 fi
24816
24817 { echo "$as_me:$LINENO: checking whether mlock is in sys/mman.h" >&5
24818 echo $ECHO_N "checking whether mlock is in sys/mman.h... $ECHO_C" >&6; }
24819 if test "${gnupg_cv_mlock_is_in_sys_mman+set}" = set; then
24820 echo $ECHO_N "(cached) $ECHO_C" >&6
24821 else
24822 cat >conftest.$ac_ext <<_ACEOF
24823 /* confdefs.h. */
24824 _ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h. */
24828
24829 #include <assert.h>
24830 #ifdef HAVE_SYS_MMAN_H
24831 #include <sys/mman.h>
24832 #endif
24833
24834 int
24835 main ()
24836 {
24837
24838 int i;
24839
24840 /* glibc defines this for functions which it implements
24841 * to always fail with ENOSYS. Some functions are actually
24842 * named something starting with __ and the normal name
24843 * is an alias. */
24844 #if defined (__stub_mlock) || defined (__stub___mlock)
24845 choke me
24846 #else
24847 mlock(&i, 4);
24848 #endif
24849 ; return 0;
24850
24851 ;
24852 return 0;
24853 }
24854 _ACEOF
24855 rm -f conftest.$ac_objext conftest$ac_exeext
24856 if { (ac_try="$ac_link"
24857 case "(($ac_try" in
24858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24859 *) ac_try_echo=$ac_try;;
24860 esac
24861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24862 (eval "$ac_link") 2>conftest.er1
24863 ac_status=$?
24864 grep -v '^ *+' conftest.er1 >conftest.err
24865 rm -f conftest.er1
24866 cat conftest.err >&5
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); } && {
24869 test -z "$ac_c_werror_flag" ||
24870 test ! -s conftest.err
24871 } && test -s conftest$ac_exeext &&
24872 $as_test_x conftest$ac_exeext; then
24873 gnupg_cv_mlock_is_in_sys_mman=yes
24874 else
24875 echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.$ac_ext >&5
24877
24878 gnupg_cv_mlock_is_in_sys_mman=no
24879 fi
24880
24881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24882 conftest$ac_exeext conftest.$ac_ext
24883 fi
24884 { echo "$as_me:$LINENO: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
24885 echo "${ECHO_T}$gnupg_cv_mlock_is_in_sys_mman" >&6; }
24886 if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
24887
24888 cat >>confdefs.h <<\_ACEOF
24889 #define HAVE_MLOCK 1
24890 _ACEOF
24891
24892 fi
24893 fi
24894 fi
24895 if test "$ac_cv_func_mlock" = "yes"; then
24896 { echo "$as_me:$LINENO: checking whether mlock is broken" >&5
24897 echo $ECHO_N "checking whether mlock is broken... $ECHO_C" >&6; }
24898 if test "${gnupg_cv_have_broken_mlock+set}" = set; then
24899 echo $ECHO_N "(cached) $ECHO_C" >&6
24900 else
24901 if test "$cross_compiling" = yes; then
24902 gnupg_cv_have_broken_mlock="assume-no"
24903
24904 else
24905 cat >conftest.$ac_ext <<_ACEOF
24906 /* confdefs.h. */
24907 _ACEOF
24908 cat confdefs.h >>conftest.$ac_ext
24909 cat >>conftest.$ac_ext <<_ACEOF
24910 /* end confdefs.h. */
24911
24912 #include <stdlib.h>
24913 #include <unistd.h>
24914 #include <errno.h>
24915 #include <sys/mman.h>
24916 #include <sys/types.h>
24917 #include <fcntl.h>
24918
24919 int main()
24920 {
24921 char *pool;
24922 int err;
24923 long int pgsize = getpagesize();
24924
24925 pool = malloc( 4096 + pgsize );
24926 if( !pool )
24927 return 2;
24928 pool += (pgsize - ((long int)pool % pgsize));
24929
24930 err = mlock( pool, 4096 );
24931 if( !err || errno == EPERM )
24932 return 0; /* okay */
24933
24934 return 1; /* hmmm */
24935 }
24936
24937
24938 _ACEOF
24939 rm -f conftest$ac_exeext
24940 if { (ac_try="$ac_link"
24941 case "(($ac_try" in
24942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943 *) ac_try_echo=$ac_try;;
24944 esac
24945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946 (eval "$ac_link") 2>&5
24947 ac_status=$?
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24950 { (case "(($ac_try" in
24951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952 *) ac_try_echo=$ac_try;;
24953 esac
24954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955 (eval "$ac_try") 2>&5
24956 ac_status=$?
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); }; }; then
24959 gnupg_cv_have_broken_mlock="no"
24960 else
24961 echo "$as_me: program exited with status $ac_status" >&5
24962 echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24964
24965 ( exit $ac_status )
24966 gnupg_cv_have_broken_mlock="yes"
24967 fi
24968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24969 fi
24970
24971
24972
24973 fi
24974
24975 if test "$gnupg_cv_have_broken_mlock" = "yes"; then
24976
24977 cat >>confdefs.h <<\_ACEOF
24978 #define HAVE_BROKEN_MLOCK 1
24979 _ACEOF
24980
24981 { echo "$as_me:$LINENO: result: yes" >&5
24982 echo "${ECHO_T}yes" >&6; }
24983
24984 for ac_func in plock
24985 do
24986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24990 echo $ECHO_N "(cached) $ECHO_C" >&6
24991 else
24992 cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h. */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25000 #define $ac_func innocuous_$ac_func
25001
25002 /* System header to define __stub macros and hopefully few prototypes,
25003 which can conflict with char $ac_func (); below.
25004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25005 <limits.h> exists even on freestanding compilers. */
25006
25007 #ifdef __STDC__
25008 # include <limits.h>
25009 #else
25010 # include <assert.h>
25011 #endif
25012
25013 #undef $ac_func
25014
25015 /* Override any GCC internal prototype to avoid an error.
25016 Use char because int might match the return type of a GCC
25017 builtin and then its argument prototype would still apply. */
25018 #ifdef __cplusplus
25019 extern "C"
25020 #endif
25021 char $ac_func ();
25022 /* The GNU C library defines this for functions which it implements
25023 to always fail with ENOSYS. Some functions are actually named
25024 something starting with __ and the normal name is an alias. */
25025 #if defined __stub_$ac_func || defined __stub___$ac_func
25026 choke me
25027 #endif
25028
25029 int
25030 main ()
25031 {
25032 return $ac_func ();
25033 ;
25034 return 0;
25035 }
25036 _ACEOF
25037 rm -f conftest.$ac_objext conftest$ac_exeext
25038 if { (ac_try="$ac_link"
25039 case "(($ac_try" in
25040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041 *) ac_try_echo=$ac_try;;
25042 esac
25043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25044 (eval "$ac_link") 2>conftest.er1
25045 ac_status=$?
25046 grep -v '^ *+' conftest.er1 >conftest.err
25047 rm -f conftest.er1
25048 cat conftest.err >&5
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } && {
25051 test -z "$ac_c_werror_flag" ||
25052 test ! -s conftest.err
25053 } && test -s conftest$ac_exeext &&
25054 $as_test_x conftest$ac_exeext; then
25055 eval "$as_ac_var=yes"
25056 else
25057 echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25059
25060 eval "$as_ac_var=no"
25061 fi
25062
25063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25064 conftest$ac_exeext conftest.$ac_ext
25065 fi
25066 ac_res=`eval echo '${'$as_ac_var'}'`
25067 { echo "$as_me:$LINENO: result: $ac_res" >&5
25068 echo "${ECHO_T}$ac_res" >&6; }
25069 if test `eval echo '${'$as_ac_var'}'` = yes; then
25070 cat >>confdefs.h <<_ACEOF
25071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25072 _ACEOF
25073
25074 fi
25075 done
25076
25077 else
25078 if test "$gnupg_cv_have_broken_mlock" = "no"; then
25079 { echo "$as_me:$LINENO: result: no" >&5
25080 echo "${ECHO_T}no" >&6; }
25081 else
25082 { echo "$as_me:$LINENO: result: assuming no" >&5
25083 echo "${ECHO_T}assuming no" >&6; }
25084 fi
25085 fi
25086 fi
25087
25088 { echo "$as_me:$LINENO: checking for byte typedef" >&5
25089 echo $ECHO_N "checking for byte typedef... $ECHO_C" >&6; }
25090 if test "${gnupg_cv_typedef_byte+set}" = set; then
25091 echo $ECHO_N "(cached) $ECHO_C" >&6
25092 else
25093 cat >conftest.$ac_ext <<_ACEOF
25094 /* confdefs.h. */
25095 _ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25099 #define _GNU_SOURCE 1
25100 #include <stdlib.h>
25101 #include <sys/types.h>
25102 int
25103 main ()
25104 {
25105
25106 #undef byte
25107 int a = sizeof(byte);
25108
25109 ;
25110 return 0;
25111 }
25112 _ACEOF
25113 rm -f conftest.$ac_objext
25114 if { (ac_try="$ac_compile"
25115 case "(($ac_try" in
25116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25117 *) ac_try_echo=$ac_try;;
25118 esac
25119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25120 (eval "$ac_compile") 2>conftest.er1
25121 ac_status=$?
25122 grep -v '^ *+' conftest.er1 >conftest.err
25123 rm -f conftest.er1
25124 cat conftest.err >&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } && {
25127 test -z "$ac_c_werror_flag" ||
25128 test ! -s conftest.err
25129 } && test -s conftest.$ac_objext; then
25130 gnupg_cv_typedef_byte=yes
25131 else
25132 echo "$as_me: failed program was:" >&5
25133 sed 's/^/| /' conftest.$ac_ext >&5
25134
25135 gnupg_cv_typedef_byte=no
25136 fi
25137
25138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25139 fi
25140
25141 { echo "$as_me:$LINENO: result: $gnupg_cv_typedef_byte" >&5
25142 echo "${ECHO_T}$gnupg_cv_typedef_byte" >&6; }
25143 if test "$gnupg_cv_typedef_byte" = yes; then
25144
25145 cat >>confdefs.h <<\_ACEOF
25146 #define HAVE_BYTE_TYPEDEF 1
25147 _ACEOF
25148
25149 fi
25150
25151 { echo "$as_me:$LINENO: checking for ulong typedef" >&5
25152 echo $ECHO_N "checking for ulong typedef... $ECHO_C" >&6; }
25153 if test "${gnupg_cv_typedef_ulong+set}" = set; then
25154 echo $ECHO_N "(cached) $ECHO_C" >&6
25155 else
25156 cat >conftest.$ac_ext <<_ACEOF
25157 /* confdefs.h. */
25158 _ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h. */
25162 #define _GNU_SOURCE 1
25163 #include <stdlib.h>
25164 #include <sys/types.h>
25165 int
25166 main ()
25167 {
25168
25169 #undef ulong
25170 int a = sizeof(ulong);
25171
25172 ;
25173 return 0;
25174 }
25175 _ACEOF
25176 rm -f conftest.$ac_objext
25177 if { (ac_try="$ac_compile"
25178 case "(($ac_try" in
25179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25180 *) ac_try_echo=$ac_try;;
25181 esac
25182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25183 (eval "$ac_compile") 2>conftest.er1
25184 ac_status=$?
25185 grep -v '^ *+' conftest.er1 >conftest.err
25186 rm -f conftest.er1
25187 cat conftest.err >&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } && {
25190 test -z "$ac_c_werror_flag" ||
25191 test ! -s conftest.err
25192 } && test -s conftest.$ac_objext; then
25193 gnupg_cv_typedef_ulong=yes
25194 else
25195 echo "$as_me: failed program was:" >&5
25196 sed 's/^/| /' conftest.$ac_ext >&5
25197
25198 gnupg_cv_typedef_ulong=no
25199 fi
25200
25201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25202 fi
25203
25204 { echo "$as_me:$LINENO: result: $gnupg_cv_typedef_ulong" >&5
25205 echo "${ECHO_T}$gnupg_cv_typedef_ulong" >&6; }
25206 if test "$gnupg_cv_typedef_ulong" = yes; then
25207
25208 cat >>confdefs.h <<\_ACEOF
25209 #define HAVE_ULONG_TYPEDEF 1
25210 _ACEOF
25211
25212 fi
25213
25214
25215 # Check whether --with-libcap was given.
25216 if test "${with_libcap+set}" = set; then
25217 withval=$with_libcap;
25218 fi
25219
25220 if test "x$with_libcap" != "xno"; then
25221 # Extract the first word of "setcap", so it can be a program name with args.
25222 set dummy setcap; ac_word=$2
25223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25225 if test "${ac_cv_path_SETCAP+set}" = set; then
25226 echo $ECHO_N "(cached) $ECHO_C" >&6
25227 else
25228 case $SETCAP in
25229 [\\/]* | ?:[\\/]*)
25230 ac_cv_path_SETCAP="$SETCAP" # Let the user override the test with a path.
25231 ;;
25232 *)
25233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25234 as_dummy=""$PATH:/sbin:/usr/sbin""
25235 for as_dir in $as_dummy
25236 do
25237 IFS=$as_save_IFS
25238 test -z "$as_dir" && as_dir=.
25239 for ac_exec_ext in '' $ac_executable_extensions; do
25240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25241 ac_cv_path_SETCAP="$as_dir/$ac_word$ac_exec_ext"
25242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25243 break 2
25244 fi
25245 done
25246 done
25247 IFS=$as_save_IFS
25248
25249 test -z "$ac_cv_path_SETCAP" && ac_cv_path_SETCAP=":"
25250 ;;
25251 esac
25252 fi
25253 SETCAP=$ac_cv_path_SETCAP
25254 if test -n "$SETCAP"; then
25255 { echo "$as_me:$LINENO: result: $SETCAP" >&5
25256 echo "${ECHO_T}$SETCAP" >&6; }
25257 else
25258 { echo "$as_me:$LINENO: result: no" >&5
25259 echo "${ECHO_T}no" >&6; }
25260 fi
25261
25262
25263 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
25264 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
25265 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
25266 echo $ECHO_N "(cached) $ECHO_C" >&6
25267 else
25268 ac_check_lib_save_LIBS=$LIBS
25269 LIBS="-lcap $LIBS"
25270 cat >conftest.$ac_ext <<_ACEOF
25271 /* confdefs.h. */
25272 _ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h. */
25276
25277 /* Override any GCC internal prototype to avoid an error.
25278 Use char because int might match the return type of a GCC
25279 builtin and then its argument prototype would still apply. */
25280 #ifdef __cplusplus
25281 extern "C"
25282 #endif
25283 char cap_set_proc ();
25284 int
25285 main ()
25286 {
25287 return cap_set_proc ();
25288 ;
25289 return 0;
25290 }
25291 _ACEOF
25292 rm -f conftest.$ac_objext conftest$ac_exeext
25293 if { (ac_try="$ac_link"
25294 case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25297 esac
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_link") 2>conftest.er1
25300 ac_status=$?
25301 grep -v '^ *+' conftest.er1 >conftest.err
25302 rm -f conftest.er1
25303 cat conftest.err >&5
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); } && {
25306 test -z "$ac_c_werror_flag" ||
25307 test ! -s conftest.err
25308 } && test -s conftest$ac_exeext &&
25309 $as_test_x conftest$ac_exeext; then
25310 ac_cv_lib_cap_cap_set_proc=yes
25311 else
25312 echo "$as_me: failed program was:" >&5
25313 sed 's/^/| /' conftest.$ac_ext >&5
25314
25315 ac_cv_lib_cap_cap_set_proc=no
25316 fi
25317
25318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25319 conftest$ac_exeext conftest.$ac_ext
25320 LIBS=$ac_check_lib_save_LIBS
25321 fi
25322 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
25323 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
25324 if test $ac_cv_lib_cap_cap_set_proc = yes; then
25325
25326
25327 cat >>confdefs.h <<\_ACEOF
25328 #define USE_CAPABILITIES 1
25329 _ACEOF
25330
25331 LIBCAP=-lcap
25332
25333 fi
25334
25335 fi
25336
25337
25338
25339 check_interval=30
25340
25341 cat >>confdefs.h <<_ACEOF
25342 #define CREDENTIAL_CHECK_INTERVAL $check_interval
25343 _ACEOF
25344
25345
25346
25347 minimum_lifetime=30
25348
25349 cat >>confdefs.h <<_ACEOF
25350 #define MINUTES_BEFORE_PROMPTING $minimum_lifetime
25351 _ACEOF
25352
25353
25354
25355 CFLAGS="\
25356 $GTK_CFLAGS \
25357 $GLADE_CFLAGS \
25358 $DBUS_CFLAGS \
25359 $GCONF_CFLAGS \
25360 $KRB5_CFLAGS \
25361 $NETWORK_MANAGER_CFLAGS \
25362 $LIBNOTIFY_CFLAGS \
25363 $CFLAGS"
25364
25365 ac_config_files="$ac_config_files Makefile krb5-auth-dialog.spec src/Makefile src/krb5-auth-dialog.1 secmem/Makefile gtksecentry/Makefile icons/Makefile etpo/Makefile po/Makefile.in"
25366
25367 cat >confcache <<\_ACEOF
25368 # This file is a shell script that caches the results of configure
25369 # tests run on this system so they can be shared between configure
25370 # scripts and configure runs, see configure's option --config-cache.
25371 # It is not useful on other systems. If it contains results you don't
25372 # want to keep, you may remove or edit it.
25373 #
25374 # config.status only pays attention to the cache file if you give it
25375 # the --recheck option to rerun configure.
25376 #
25377 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25378 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25379 # following values.
25380
25381 _ACEOF
25382
25383 # The following way of writing the cache mishandles newlines in values,
25384 # but we know of no workaround that is simple, portable, and efficient.
25385 # So, we kill variables containing newlines.
25386 # Ultrix sh set writes to stderr and can't be redirected directly,
25387 # and sets the high bit in the cache file unless we assign to the vars.
25388 (
25389 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25390 eval ac_val=\$$ac_var
25391 case $ac_val in #(
25392 *${as_nl}*)
25393 case $ac_var in #(
25394 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25395 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25396 esac
25397 case $ac_var in #(
25398 _ | IFS | as_nl) ;; #(
25399 *) $as_unset $ac_var ;;
25400 esac ;;
25401 esac
25402 done
25403
25404 (set) 2>&1 |
25405 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25406 *${as_nl}ac_space=\ *)
25407 # `set' does not quote correctly, so add quotes (double-quote
25408 # substitution turns \\\\ into \\, and sed turns \\ into \).
25409 sed -n \
25410 "s/'/'\\\\''/g;
25411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25412 ;; #(
25413 *)
25414 # `set' quotes correctly as required by POSIX, so do not add quotes.
25415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25416 ;;
25417 esac |
25418 sort
25419 ) |
25420 sed '
25421 /^ac_cv_env_/b end
25422 t clear
25423 :clear
25424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25425 t end
25426 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25427 :end' >>confcache
25428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25429 if test -w "$cache_file"; then
25430 test "x$cache_file" != "x/dev/null" &&
25431 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25432 echo "$as_me: updating cache $cache_file" >&6;}
25433 cat confcache >$cache_file
25434 else
25435 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25436 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25437 fi
25438 fi
25439 rm -f confcache
25440
25441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25442 # Let make expand exec_prefix.
25443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25444
25445 DEFS=-DHAVE_CONFIG_H
25446
25447 ac_libobjs=
25448 ac_ltlibobjs=
25449 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25450 # 1. Remove the extension, and $U if already installed.
25451 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25452 ac_i=`echo "$ac_i" | sed "$ac_script"`
25453 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25454 # will be set to the directory where LIBOBJS objects are built.
25455 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25456 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25457 done
25458 LIBOBJS=$ac_libobjs
25459
25460 LTLIBOBJS=$ac_ltlibobjs
25461
25462
25463 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25464 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25465 Usually this means the macro was only invoked conditionally." >&5
25466 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25467 Usually this means the macro was only invoked conditionally." >&2;}
25468 { (exit 1); exit 1; }; }
25469 fi
25470 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25471 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25472 Usually this means the macro was only invoked conditionally." >&5
25473 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25474 Usually this means the macro was only invoked conditionally." >&2;}
25475 { (exit 1); exit 1; }; }
25476 fi
25477 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25478 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25479 Usually this means the macro was only invoked conditionally." >&5
25480 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25481 Usually this means the macro was only invoked conditionally." >&2;}
25482 { (exit 1); exit 1; }; }
25483 fi
25484 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25485 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25486 Usually this means the macro was only invoked conditionally." >&5
25487 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25488 Usually this means the macro was only invoked conditionally." >&2;}
25489 { (exit 1); exit 1; }; }
25490 fi
25491
25492 ac_config_commands="$ac_config_commands po/stamp-it"
25493
25494
25495 if test -z "${ENABLE_PKINIT_TRUE}" && test -z "${ENABLE_PKINIT_FALSE}"; then
25496 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PKINIT\" was never defined.
25497 Usually this means the macro was only invoked conditionally." >&5
25498 echo "$as_me: error: conditional \"ENABLE_PKINIT\" was never defined.
25499 Usually this means the macro was only invoked conditionally." >&2;}
25500 { (exit 1); exit 1; }; }
25501 fi
25502 if test -z "${ENABLE_NETWORK_MANAGER_TRUE}" && test -z "${ENABLE_NETWORK_MANAGER_FALSE}"; then
25503 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK_MANAGER\" was never defined.
25504 Usually this means the macro was only invoked conditionally." >&5
25505 echo "$as_me: error: conditional \"ENABLE_NETWORK_MANAGER\" was never defined.
25506 Usually this means the macro was only invoked conditionally." >&2;}
25507 { (exit 1); exit 1; }; }
25508 fi
25509 if test -z "${HAVE_LIBNOTIFY_TRUE}" && test -z "${HAVE_LIBNOTIFY_FALSE}"; then
25510 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBNOTIFY\" was never defined.
25511 Usually this means the macro was only invoked conditionally." >&5
25512 echo "$as_me: error: conditional \"HAVE_LIBNOTIFY\" was never defined.
25513 Usually this means the macro was only invoked conditionally." >&2;}
25514 { (exit 1); exit 1; }; }
25515 fi
25516
25517 : ${CONFIG_STATUS=./config.status}
25518 ac_clean_files_save=$ac_clean_files
25519 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25520 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25521 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25522 cat >$CONFIG_STATUS <<_ACEOF
25523 #! $SHELL
25524 # Generated by $as_me.
25525 # Run this file to recreate the current configuration.
25526 # Compiler output produced by configure, useful for debugging
25527 # configure, is in config.log if it exists.
25528
25529 debug=false
25530 ac_cs_recheck=false
25531 ac_cs_silent=false
25532 SHELL=\${CONFIG_SHELL-$SHELL}
25533 _ACEOF
25534
25535 cat >>$CONFIG_STATUS <<\_ACEOF
25536 ## --------------------- ##
25537 ## M4sh Initialization. ##
25538 ## --------------------- ##
25539
25540 # Be more Bourne compatible
25541 DUALCASE=1; export DUALCASE # for MKS sh
25542 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25543 emulate sh
25544 NULLCMD=:
25545 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25546 # is contrary to our usage. Disable this feature.
25547 alias -g '${1+"$@"}'='"$@"'
25548 setopt NO_GLOB_SUBST
25549 else
25550 case `(set -o) 2>/dev/null` in
25551 *posix*) set -o posix ;;
25552 esac
25553
25554 fi
25555
25556
25557
25558
25559 # PATH needs CR
25560 # Avoid depending upon Character Ranges.
25561 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25562 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25563 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25564 as_cr_digits='0123456789'
25565 as_cr_alnum=$as_cr_Letters$as_cr_digits
25566
25567 # The user is always right.
25568 if test "${PATH_SEPARATOR+set}" != set; then
25569 echo "#! /bin/sh" >conf$$.sh
25570 echo "exit 0" >>conf$$.sh
25571 chmod +x conf$$.sh
25572 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25573 PATH_SEPARATOR=';'
25574 else
25575 PATH_SEPARATOR=:
25576 fi
25577 rm -f conf$$.sh
25578 fi
25579
25580 # Support unset when possible.
25581 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25582 as_unset=unset
25583 else
25584 as_unset=false
25585 fi
25586
25587
25588 # IFS
25589 # We need space, tab and new line, in precisely that order. Quoting is
25590 # there to prevent editors from complaining about space-tab.
25591 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25592 # splitting by setting IFS to empty value.)
25593 as_nl='
25594 '
25595 IFS=" "" $as_nl"
25596
25597 # Find who we are. Look in the path if we contain no directory separator.
25598 case $0 in
25599 *[\\/]* ) as_myself=$0 ;;
25600 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25601 for as_dir in $PATH
25602 do
25603 IFS=$as_save_IFS
25604 test -z "$as_dir" && as_dir=.
25605 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25606 done
25607 IFS=$as_save_IFS
25608
25609 ;;
25610 esac
25611 # We did not find ourselves, most probably we were run as `sh COMMAND'
25612 # in which case we are not to be found in the path.
25613 if test "x$as_myself" = x; then
25614 as_myself=$0
25615 fi
25616 if test ! -f "$as_myself"; then
25617 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25618 { (exit 1); exit 1; }
25619 fi
25620
25621 # Work around bugs in pre-3.0 UWIN ksh.
25622 for as_var in ENV MAIL MAILPATH
25623 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25624 done
25625 PS1='$ '
25626 PS2='> '
25627 PS4='+ '
25628
25629 # NLS nuisances.
25630 for as_var in \
25631 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25632 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25633 LC_TELEPHONE LC_TIME
25634 do
25635 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25636 eval $as_var=C; export $as_var
25637 else
25638 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25639 fi
25640 done
25641
25642 # Required to use basename.
25643 if expr a : '\(a\)' >/dev/null 2>&1 &&
25644 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25645 as_expr=expr
25646 else
25647 as_expr=false
25648 fi
25649
25650 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25651 as_basename=basename
25652 else
25653 as_basename=false
25654 fi
25655
25656
25657 # Name of the executable.
25658 as_me=`$as_basename -- "$0" ||
25659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25660 X"$0" : 'X\(//\)$' \| \
25661 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25662 echo X/"$0" |
25663 sed '/^.*\/\([^/][^/]*\)\/*$/{
25664 s//\1/
25665 q
25666 }
25667 /^X\/\(\/\/\)$/{
25668 s//\1/
25669 q
25670 }
25671 /^X\/\(\/\).*/{
25672 s//\1/
25673 q
25674 }
25675 s/.*/./; q'`
25676
25677 # CDPATH.
25678 $as_unset CDPATH
25679
25680
25681
25682 as_lineno_1=$LINENO
25683 as_lineno_2=$LINENO
25684 test "x$as_lineno_1" != "x$as_lineno_2" &&
25685 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25686
25687 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25688 # uniformly replaced by the line number. The first 'sed' inserts a
25689 # line-number line after each line using $LINENO; the second 'sed'
25690 # does the real work. The second script uses 'N' to pair each
25691 # line-number line with the line containing $LINENO, and appends
25692 # trailing '-' during substitution so that $LINENO is not a special
25693 # case at line end.
25694 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25695 # scripts with optimization help from Paolo Bonzini. Blame Lee
25696 # E. McMahon (1931-1989) for sed's syntax. :-)
25697 sed -n '
25698 p
25699 /[$]LINENO/=
25700 ' <$as_myself |
25701 sed '
25702 s/[$]LINENO.*/&-/
25703 t lineno
25704 b
25705 :lineno
25706 N
25707 :loop
25708 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25709 t loop
25710 s/-\n.*//
25711 ' >$as_me.lineno &&
25712 chmod +x "$as_me.lineno" ||
25713 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25714 { (exit 1); exit 1; }; }
25715
25716 # Don't try to exec as it changes $[0], causing all sort of problems
25717 # (the dirname of $[0] is not the place where we might find the
25718 # original and so on. Autoconf is especially sensitive to this).
25719 . "./$as_me.lineno"
25720 # Exit status is that of the last command.
25721 exit
25722 }
25723
25724
25725 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25726 as_dirname=dirname
25727 else
25728 as_dirname=false
25729 fi
25730
25731 ECHO_C= ECHO_N= ECHO_T=
25732 case `echo -n x` in
25733 -n*)
25734 case `echo 'x\c'` in
25735 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25736 *) ECHO_C='\c';;
25737 esac;;
25738 *)
25739 ECHO_N='-n';;
25740 esac
25741
25742 if expr a : '\(a\)' >/dev/null 2>&1 &&
25743 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25744 as_expr=expr
25745 else
25746 as_expr=false
25747 fi
25748
25749 rm -f conf$$ conf$$.exe conf$$.file
25750 if test -d conf$$.dir; then
25751 rm -f conf$$.dir/conf$$.file
25752 else
25753 rm -f conf$$.dir
25754 mkdir conf$$.dir
25755 fi
25756 echo >conf$$.file
25757 if ln -s conf$$.file conf$$ 2>/dev/null; then
25758 as_ln_s='ln -s'
25759 # ... but there are two gotchas:
25760 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25761 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25762 # In both cases, we have to default to `cp -p'.
25763 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25764 as_ln_s='cp -p'
25765 elif ln conf$$.file conf$$ 2>/dev/null; then
25766 as_ln_s=ln
25767 else
25768 as_ln_s='cp -p'
25769 fi
25770 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25771 rmdir conf$$.dir 2>/dev/null
25772
25773 if mkdir -p . 2>/dev/null; then
25774 as_mkdir_p=:
25775 else
25776 test -d ./-p && rmdir ./-p
25777 as_mkdir_p=false
25778 fi
25779
25780 if test -x / >/dev/null 2>&1; then
25781 as_test_x='test -x'
25782 else
25783 if ls -dL / >/dev/null 2>&1; then
25784 as_ls_L_option=L
25785 else
25786 as_ls_L_option=
25787 fi
25788 as_test_x='
25789 eval sh -c '\''
25790 if test -d "$1"; then
25791 test -d "$1/.";
25792 else
25793 case $1 in
25794 -*)set "./$1";;
25795 esac;
25796 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25797 ???[sx]*):;;*)false;;esac;fi
25798 '\'' sh
25799 '
25800 fi
25801 as_executable_p=$as_test_x
25802
25803 # Sed expression to map a string onto a valid CPP name.
25804 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25805
25806 # Sed expression to map a string onto a valid variable name.
25807 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25808
25809
25810 exec 6>&1
25811
25812 # Save the log message, to keep $[0] and so on meaningful, and to
25813 # report actual input values of CONFIG_FILES etc. instead of their
25814 # values after options handling.
25815 ac_log="
25816 This file was extended by $as_me, which was
25817 generated by GNU Autoconf 2.61. Invocation command line was
25818
25819 CONFIG_FILES = $CONFIG_FILES
25820 CONFIG_HEADERS = $CONFIG_HEADERS
25821 CONFIG_LINKS = $CONFIG_LINKS
25822 CONFIG_COMMANDS = $CONFIG_COMMANDS
25823 $ $0 $@
25824
25825 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25826 "
25827
25828 _ACEOF
25829
25830 cat >>$CONFIG_STATUS <<_ACEOF
25831 # Files that config.status was made for.
25832 config_files="$ac_config_files"
25833 config_headers="$ac_config_headers"
25834 config_commands="$ac_config_commands"
25835
25836 _ACEOF
25837
25838 cat >>$CONFIG_STATUS <<\_ACEOF
25839 ac_cs_usage="\
25840 \`$as_me' instantiates files from templates according to the
25841 current configuration.
25842
25843 Usage: $0 [OPTIONS] [FILE]...
25844
25845 -h, --help print this help, then exit
25846 -V, --version print version number and configuration settings, then exit
25847 -q, --quiet do not print progress messages
25848 -d, --debug don't remove temporary files
25849 --recheck update $as_me by reconfiguring in the same conditions
25850 --file=FILE[:TEMPLATE]
25851 instantiate the configuration file FILE
25852 --header=FILE[:TEMPLATE]
25853 instantiate the configuration header FILE
25854
25855 Configuration files:
25856 $config_files
25857
25858 Configuration headers:
25859 $config_headers
25860
25861 Configuration commands:
25862 $config_commands
25863
25864 Report bugs to <bug-autoconf@gnu.org>."
25865
25866 _ACEOF
25867 cat >>$CONFIG_STATUS <<_ACEOF
25868 ac_cs_version="\\
25869 config.status
25870 configured by $0, generated by GNU Autoconf 2.61,
25871 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25872
25873 Copyright (C) 2006 Free Software Foundation, Inc.
25874 This config.status script is free software; the Free Software Foundation
25875 gives unlimited permission to copy, distribute and modify it."
25876
25877 ac_pwd='$ac_pwd'
25878 srcdir='$srcdir'
25879 INSTALL='$INSTALL'
25880 MKDIR_P='$MKDIR_P'
25881 _ACEOF
25882
25883 cat >>$CONFIG_STATUS <<\_ACEOF
25884 # If no file are specified by the user, then we need to provide default
25885 # value. By we need to know if files were specified by the user.
25886 ac_need_defaults=:
25887 while test $# != 0
25888 do
25889 case $1 in
25890 --*=*)
25891 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25892 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25893 ac_shift=:
25894 ;;
25895 *)
25896 ac_option=$1
25897 ac_optarg=$2
25898 ac_shift=shift
25899 ;;
25900 esac
25901
25902 case $ac_option in
25903 # Handling of the options.
25904 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25905 ac_cs_recheck=: ;;
25906 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25907 echo "$ac_cs_version"; exit ;;
25908 --debug | --debu | --deb | --de | --d | -d )
25909 debug=: ;;
25910 --file | --fil | --fi | --f )
25911 $ac_shift
25912 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25913 ac_need_defaults=false;;
25914 --header | --heade | --head | --hea )
25915 $ac_shift
25916 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25917 ac_need_defaults=false;;
25918 --he | --h)
25919 # Conflict between --help and --header
25920 { echo "$as_me: error: ambiguous option: $1
25921 Try \`$0 --help' for more information." >&2
25922 { (exit 1); exit 1; }; };;
25923 --help | --hel | -h )
25924 echo "$ac_cs_usage"; exit ;;
25925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25926 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25927 ac_cs_silent=: ;;
25928
25929 # This is an error.
25930 -*) { echo "$as_me: error: unrecognized option: $1
25931 Try \`$0 --help' for more information." >&2
25932 { (exit 1); exit 1; }; } ;;
25933
25934 *) ac_config_targets="$ac_config_targets $1"
25935 ac_need_defaults=false ;;
25936
25937 esac
25938 shift
25939 done
25940
25941 ac_configure_extra_args=
25942
25943 if $ac_cs_silent; then
25944 exec 6>/dev/null
25945 ac_configure_extra_args="$ac_configure_extra_args --silent"
25946 fi
25947
25948 _ACEOF
25949 cat >>$CONFIG_STATUS <<_ACEOF
25950 if \$ac_cs_recheck; then
25951 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25952 CONFIG_SHELL=$SHELL
25953 export CONFIG_SHELL
25954 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25955 fi
25956
25957 _ACEOF
25958 cat >>$CONFIG_STATUS <<\_ACEOF
25959 exec 5>>config.log
25960 {
25961 echo
25962 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25963 ## Running $as_me. ##
25964 _ASBOX
25965 echo "$ac_log"
25966 } >&5
25967
25968 _ACEOF
25969 cat >>$CONFIG_STATUS <<_ACEOF
25970 #
25971 # INIT-COMMANDS
25972 #
25973 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25974
25975
25976 _ACEOF
25977
25978 cat >>$CONFIG_STATUS <<\_ACEOF
25979
25980 # Handling of arguments.
25981 for ac_config_target in $ac_config_targets
25982 do
25983 case $ac_config_target in
25984 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25985 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25986 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25987 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25988 "krb5-auth-dialog.spec") CONFIG_FILES="$CONFIG_FILES krb5-auth-dialog.spec" ;;
25989 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25990 "src/krb5-auth-dialog.1") CONFIG_FILES="$CONFIG_FILES src/krb5-auth-dialog.1" ;;
25991 "secmem/Makefile") CONFIG_FILES="$CONFIG_FILES secmem/Makefile" ;;
25992 "gtksecentry/Makefile") CONFIG_FILES="$CONFIG_FILES gtksecentry/Makefile" ;;
25993 "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
25994 "etpo/Makefile") CONFIG_FILES="$CONFIG_FILES etpo/Makefile" ;;
25995 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
25996 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
25997
25998 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25999 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26000 { (exit 1); exit 1; }; };;
26001 esac
26002 done
26003
26004
26005 # If the user did not use the arguments to specify the items to instantiate,
26006 # then the envvar interface is used. Set only those that are not.
26007 # We use the long form for the default assignment because of an extremely
26008 # bizarre bug on SunOS 4.1.3.
26009 if $ac_need_defaults; then
26010 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26011 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26012 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26013 fi
26014
26015 # Have a temporary directory for convenience. Make it in the build tree
26016 # simply because there is no reason against having it here, and in addition,
26017 # creating and moving files from /tmp can sometimes cause problems.
26018 # Hook for its removal unless debugging.
26019 # Note that there is a small window in which the directory will not be cleaned:
26020 # after its creation but before its name has been assigned to `$tmp'.
26021 $debug ||
26022 {
26023 tmp=
26024 trap 'exit_status=$?
26025 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26026 ' 0
26027 trap '{ (exit 1); exit 1; }' 1 2 13 15
26028 }
26029 # Create a (secure) tmp directory for tmp files.
26030
26031 {
26032 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26033 test -n "$tmp" && test -d "$tmp"
26034 } ||
26035 {
26036 tmp=./conf$$-$RANDOM
26037 (umask 077 && mkdir "$tmp")
26038 } ||
26039 {
26040 echo "$me: cannot create a temporary directory in ." >&2
26041 { (exit 1); exit 1; }
26042 }
26043
26044 #
26045 # Set up the sed scripts for CONFIG_FILES section.
26046 #
26047
26048 # No need to generate the scripts if there are no CONFIG_FILES.
26049 # This happens for instance when ./config.status config.h
26050 if test -n "$CONFIG_FILES"; then
26051
26052 _ACEOF
26053
26054
26055
26056 ac_delim='%!_!# '
26057 for ac_last_try in false false false false false :; do
26058 cat >conf$$subs.sed <<_ACEOF
26059 SHELL!$SHELL$ac_delim
26060 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26061 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26062 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26063 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26064 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26065 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26066 exec_prefix!$exec_prefix$ac_delim
26067 prefix!$prefix$ac_delim
26068 program_transform_name!$program_transform_name$ac_delim
26069 bindir!$bindir$ac_delim
26070 sbindir!$sbindir$ac_delim
26071 libexecdir!$libexecdir$ac_delim
26072 datarootdir!$datarootdir$ac_delim
26073 datadir!$datadir$ac_delim
26074 sysconfdir!$sysconfdir$ac_delim
26075 sharedstatedir!$sharedstatedir$ac_delim
26076 localstatedir!$localstatedir$ac_delim
26077 includedir!$includedir$ac_delim
26078 oldincludedir!$oldincludedir$ac_delim
26079 docdir!$docdir$ac_delim
26080 infodir!$infodir$ac_delim
26081 htmldir!$htmldir$ac_delim
26082 dvidir!$dvidir$ac_delim
26083 pdfdir!$pdfdir$ac_delim
26084 psdir!$psdir$ac_delim
26085 libdir!$libdir$ac_delim
26086 localedir!$localedir$ac_delim
26087 mandir!$mandir$ac_delim
26088 DEFS!$DEFS$ac_delim
26089 ECHO_C!$ECHO_C$ac_delim
26090 ECHO_N!$ECHO_N$ac_delim
26091 ECHO_T!$ECHO_T$ac_delim
26092 LIBS!$LIBS$ac_delim
26093 build_alias!$build_alias$ac_delim
26094 host_alias!$host_alias$ac_delim
26095 target_alias!$target_alias$ac_delim
26096 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26097 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26098 INSTALL_DATA!$INSTALL_DATA$ac_delim
26099 am__isrc!$am__isrc$ac_delim
26100 CYGPATH_W!$CYGPATH_W$ac_delim
26101 PACKAGE!$PACKAGE$ac_delim
26102 VERSION!$VERSION$ac_delim
26103 ACLOCAL!$ACLOCAL$ac_delim
26104 AUTOCONF!$AUTOCONF$ac_delim
26105 AUTOMAKE!$AUTOMAKE$ac_delim
26106 AUTOHEADER!$AUTOHEADER$ac_delim
26107 MAKEINFO!$MAKEINFO$ac_delim
26108 install_sh!$install_sh$ac_delim
26109 STRIP!$STRIP$ac_delim
26110 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26111 mkdir_p!$mkdir_p$ac_delim
26112 AWK!$AWK$ac_delim
26113 SET_MAKE!$SET_MAKE$ac_delim
26114 am__leading_dot!$am__leading_dot$ac_delim
26115 AMTAR!$AMTAR$ac_delim
26116 am__tar!$am__tar$ac_delim
26117 am__untar!$am__untar$ac_delim
26118 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26119 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26120 MAINT!$MAINT$ac_delim
26121 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
26122 CC!$CC$ac_delim
26123 CFLAGS!$CFLAGS$ac_delim
26124 LDFLAGS!$LDFLAGS$ac_delim
26125 CPPFLAGS!$CPPFLAGS$ac_delim
26126 ac_ct_CC!$ac_ct_CC$ac_delim
26127 EXEEXT!$EXEEXT$ac_delim
26128 OBJEXT!$OBJEXT$ac_delim
26129 DEPDIR!$DEPDIR$ac_delim
26130 am__include!$am__include$ac_delim
26131 am__quote!$am__quote$ac_delim
26132 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26133 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26134 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26135 CCDEPMODE!$CCDEPMODE$ac_delim
26136 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26137 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26138 CPP!$CPP$ac_delim
26139 GREP!$GREP$ac_delim
26140 EGREP!$EGREP$ac_delim
26141 build!$build$ac_delim
26142 build_cpu!$build_cpu$ac_delim
26143 build_vendor!$build_vendor$ac_delim
26144 build_os!$build_os$ac_delim
26145 host!$host$ac_delim
26146 host_cpu!$host_cpu$ac_delim
26147 host_vendor!$host_vendor$ac_delim
26148 host_os!$host_os$ac_delim
26149 SED!$SED$ac_delim
26150 LN_S!$LN_S$ac_delim
26151 ECHO!$ECHO$ac_delim
26152 AR!$AR$ac_delim
26153 RANLIB!$RANLIB$ac_delim
26154 DSYMUTIL!$DSYMUTIL$ac_delim
26155 NMEDIT!$NMEDIT$ac_delim
26156 _ACEOF
26157
26158 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26159 break
26160 elif $ac_last_try; then
26161 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26162 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26163 { (exit 1); exit 1; }; }
26164 else
26165 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26166 fi
26167 done
26168
26169 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26170 if test -n "$ac_eof"; then
26171 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26172 ac_eof=`expr $ac_eof + 1`
26173 fi
26174
26175 cat >>$CONFIG_STATUS <<_ACEOF
26176 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26177 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26178 _ACEOF
26179 sed '
26180 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26181 s/^/s,@/; s/!/@,|#_!!_#|/
26182 :n
26183 t n
26184 s/'"$ac_delim"'$/,g/; t
26185 s/$/\\/; p
26186 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26187 ' >>$CONFIG_STATUS <conf$$subs.sed
26188 rm -f conf$$subs.sed
26189 cat >>$CONFIG_STATUS <<_ACEOF
26190 CEOF$ac_eof
26191 _ACEOF
26192
26193
26194 ac_delim='%!_!# '
26195 for ac_last_try in false false false false false :; do
26196 cat >conf$$subs.sed <<_ACEOF
26197 CXX!$CXX$ac_delim
26198 CXXFLAGS!$CXXFLAGS$ac_delim
26199 ac_ct_CXX!$ac_ct_CXX$ac_delim
26200 CXXDEPMODE!$CXXDEPMODE$ac_delim
26201 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26202 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26203 CXXCPP!$CXXCPP$ac_delim
26204 F77!$F77$ac_delim
26205 FFLAGS!$FFLAGS$ac_delim
26206 ac_ct_F77!$ac_ct_F77$ac_delim
26207 LIBTOOL!$LIBTOOL$ac_delim
26208 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
26209 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
26210 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
26211 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
26212 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
26213 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
26214 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
26215 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
26216 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
26217 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
26218 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
26219 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
26220 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
26221 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
26222 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
26223 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
26224 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
26225 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
26226 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
26227 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
26228 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
26229 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
26230 XGETTEXT!$XGETTEXT$ac_delim
26231 MSGMERGE!$MSGMERGE$ac_delim
26232 MSGFMT!$MSGFMT$ac_delim
26233 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
26234 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
26235 DATADIRNAME!$DATADIRNAME$ac_delim
26236 LEX!$LEX$ac_delim
26237 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
26238 LEXLIB!$LEXLIB$ac_delim
26239 YACC!$YACC$ac_delim
26240 YFLAGS!$YFLAGS$ac_delim
26241 USE_NLS!$USE_NLS$ac_delim
26242 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
26243 GMSGFMT!$GMSGFMT$ac_delim
26244 CATALOGS!$CATALOGS$ac_delim
26245 CATOBJEXT!$CATOBJEXT$ac_delim
26246 GMOFILES!$GMOFILES$ac_delim
26247 INSTOBJEXT!$INSTOBJEXT$ac_delim
26248 INTLLIBS!$INTLLIBS$ac_delim
26249 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
26250 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
26251 POFILES!$POFILES$ac_delim
26252 POSUB!$POSUB$ac_delim
26253 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
26254 PKG_CONFIG!$PKG_CONFIG$ac_delim
26255 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
26256 GTK_LIBS!$GTK_LIBS$ac_delim
26257 GLADE_CFLAGS!$GLADE_CFLAGS$ac_delim
26258 GLADE_LIBS!$GLADE_LIBS$ac_delim
26259 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
26260 DBUS_LIBS!$DBUS_LIBS$ac_delim
26261 GCONF_CFLAGS!$GCONF_CFLAGS$ac_delim
26262 GCONF_LIBS!$GCONF_LIBS$ac_delim
26263 KRB5_CONFIG!$KRB5_CONFIG$ac_delim
26264 KRB5_CFLAGS!$KRB5_CFLAGS$ac_delim
26265 KRB5_LIBS!$KRB5_LIBS$ac_delim
26266 ENABLE_PKINIT_TRUE!$ENABLE_PKINIT_TRUE$ac_delim
26267 ENABLE_PKINIT_FALSE!$ENABLE_PKINIT_FALSE$ac_delim
26268 NETWORK_MANAGER_CFLAGS!$NETWORK_MANAGER_CFLAGS$ac_delim
26269 NETWORK_MANAGER_LIBS!$NETWORK_MANAGER_LIBS$ac_delim
26270 ENABLE_NETWORK_MANAGER_TRUE!$ENABLE_NETWORK_MANAGER_TRUE$ac_delim
26271 ENABLE_NETWORK_MANAGER_FALSE!$ENABLE_NETWORK_MANAGER_FALSE$ac_delim
26272 LIBNOTIFY_CFLAGS!$LIBNOTIFY_CFLAGS$ac_delim
26273 LIBNOTIFY_LIBS!$LIBNOTIFY_LIBS$ac_delim
26274 HAVE_LIBNOTIFY_TRUE!$HAVE_LIBNOTIFY_TRUE$ac_delim
26275 HAVE_LIBNOTIFY_FALSE!$HAVE_LIBNOTIFY_FALSE$ac_delim
26276 SETCAP!$SETCAP$ac_delim
26277 LIBCAP!$LIBCAP$ac_delim
26278 check_interval!$check_interval$ac_delim
26279 minimum_lifetime!$minimum_lifetime$ac_delim
26280 LIBOBJS!$LIBOBJS$ac_delim
26281 LTLIBOBJS!$LTLIBOBJS$ac_delim
26282 _ACEOF
26283
26284 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
26285 break
26286 elif $ac_last_try; then
26287 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26288 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26289 { (exit 1); exit 1; }; }
26290 else
26291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26292 fi
26293 done
26294
26295 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26296 if test -n "$ac_eof"; then
26297 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26298 ac_eof=`expr $ac_eof + 1`
26299 fi
26300
26301 cat >>$CONFIG_STATUS <<_ACEOF
26302 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26303 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26304 _ACEOF
26305 sed '
26306 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26307 s/^/s,@/; s/!/@,|#_!!_#|/
26308 :n
26309 t n
26310 s/'"$ac_delim"'$/,g/; t
26311 s/$/\\/; p
26312 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26313 ' >>$CONFIG_STATUS <conf$$subs.sed
26314 rm -f conf$$subs.sed
26315 cat >>$CONFIG_STATUS <<_ACEOF
26316 :end
26317 s/|#_!!_#|//g
26318 CEOF$ac_eof
26319 _ACEOF
26320
26321
26322 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26323 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26324 # trailing colons and then remove the whole line if VPATH becomes empty
26325 # (actually we leave an empty line to preserve line numbers).
26326 if test "x$srcdir" = x.; then
26327 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26328 s/:*\$(srcdir):*/:/
26329 s/:*\${srcdir}:*/:/
26330 s/:*@srcdir@:*/:/
26331 s/^\([^=]*=[ ]*\):*/\1/
26332 s/:*$//
26333 s/^[^=]*=[ ]*$//
26334 }'
26335 fi
26336
26337 cat >>$CONFIG_STATUS <<\_ACEOF
26338 fi # test -n "$CONFIG_FILES"
26339
26340
26341 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26342 do
26343 case $ac_tag in
26344 :[FHLC]) ac_mode=$ac_tag; continue;;
26345 esac
26346 case $ac_mode$ac_tag in
26347 :[FHL]*:*);;
26348 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26349 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26350 { (exit 1); exit 1; }; };;
26351 :[FH]-) ac_tag=-:-;;
26352 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26353 esac
26354 ac_save_IFS=$IFS
26355 IFS=:
26356 set x $ac_tag
26357 IFS=$ac_save_IFS
26358 shift
26359 ac_file=$1
26360 shift
26361
26362 case $ac_mode in
26363 :L) ac_source=$1;;
26364 :[FH])
26365 ac_file_inputs=
26366 for ac_f
26367 do
26368 case $ac_f in
26369 -) ac_f="$tmp/stdin";;
26370 *) # Look for the file first in the build tree, then in the source tree
26371 # (if the path is not absolute). The absolute path cannot be DOS-style,
26372 # because $ac_f cannot contain `:'.
26373 test -f "$ac_f" ||
26374 case $ac_f in
26375 [\\/$]*) false;;
26376 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26377 esac ||
26378 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26379 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26380 { (exit 1); exit 1; }; };;
26381 esac
26382 ac_file_inputs="$ac_file_inputs $ac_f"
26383 done
26384
26385 # Let's still pretend it is `configure' which instantiates (i.e., don't
26386 # use $as_me), people would be surprised to read:
26387 # /* config.h. Generated by config.status. */
26388 configure_input="Generated from "`IFS=:
26389 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26390 if test x"$ac_file" != x-; then
26391 configure_input="$ac_file. $configure_input"
26392 { echo "$as_me:$LINENO: creating $ac_file" >&5
26393 echo "$as_me: creating $ac_file" >&6;}
26394 fi
26395
26396 case $ac_tag in
26397 *:-:* | *:-) cat >"$tmp/stdin";;
26398 esac
26399 ;;
26400 esac
26401
26402 ac_dir=`$as_dirname -- "$ac_file" ||
26403 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26404 X"$ac_file" : 'X\(//\)[^/]' \| \
26405 X"$ac_file" : 'X\(//\)$' \| \
26406 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26407 echo X"$ac_file" |
26408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26409 s//\1/
26410 q
26411 }
26412 /^X\(\/\/\)[^/].*/{
26413 s//\1/
26414 q
26415 }
26416 /^X\(\/\/\)$/{
26417 s//\1/
26418 q
26419 }
26420 /^X\(\/\).*/{
26421 s//\1/
26422 q
26423 }
26424 s/.*/./; q'`
26425 { as_dir="$ac_dir"
26426 case $as_dir in #(
26427 -*) as_dir=./$as_dir;;
26428 esac
26429 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26430 as_dirs=
26431 while :; do
26432 case $as_dir in #(
26433 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26434 *) as_qdir=$as_dir;;
26435 esac
26436 as_dirs="'$as_qdir' $as_dirs"
26437 as_dir=`$as_dirname -- "$as_dir" ||
26438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26439 X"$as_dir" : 'X\(//\)[^/]' \| \
26440 X"$as_dir" : 'X\(//\)$' \| \
26441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26442 echo X"$as_dir" |
26443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26444 s//\1/
26445 q
26446 }
26447 /^X\(\/\/\)[^/].*/{
26448 s//\1/
26449 q
26450 }
26451 /^X\(\/\/\)$/{
26452 s//\1/
26453 q
26454 }
26455 /^X\(\/\).*/{
26456 s//\1/
26457 q
26458 }
26459 s/.*/./; q'`
26460 test -d "$as_dir" && break
26461 done
26462 test -z "$as_dirs" || eval "mkdir $as_dirs"
26463 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26464 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26465 { (exit 1); exit 1; }; }; }
26466 ac_builddir=.
26467
26468 case "$ac_dir" in
26469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26470 *)
26471 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26472 # A ".." for each directory in $ac_dir_suffix.
26473 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26474 case $ac_top_builddir_sub in
26475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26477 esac ;;
26478 esac
26479 ac_abs_top_builddir=$ac_pwd
26480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26481 # for backward compatibility:
26482 ac_top_builddir=$ac_top_build_prefix
26483
26484 case $srcdir in
26485 .) # We are building in place.
26486 ac_srcdir=.
26487 ac_top_srcdir=$ac_top_builddir_sub
26488 ac_abs_top_srcdir=$ac_pwd ;;
26489 [\\/]* | ?:[\\/]* ) # Absolute name.
26490 ac_srcdir=$srcdir$ac_dir_suffix;
26491 ac_top_srcdir=$srcdir
26492 ac_abs_top_srcdir=$srcdir ;;
26493 *) # Relative name.
26494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26495 ac_top_srcdir=$ac_top_build_prefix$srcdir
26496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26497 esac
26498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26499
26500
26501 case $ac_mode in
26502 :F)
26503 #
26504 # CONFIG_FILE
26505 #
26506
26507 case $INSTALL in
26508 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26509 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26510 esac
26511 ac_MKDIR_P=$MKDIR_P
26512 case $MKDIR_P in
26513 [\\/$]* | ?:[\\/]* ) ;;
26514 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26515 esac
26516 _ACEOF
26517
26518 cat >>$CONFIG_STATUS <<\_ACEOF
26519 # If the template does not know about datarootdir, expand it.
26520 # FIXME: This hack should be removed a few years after 2.60.
26521 ac_datarootdir_hack=; ac_datarootdir_seen=
26522
26523 case `sed -n '/datarootdir/ {
26524 p
26525 q
26526 }
26527 /@datadir@/p
26528 /@docdir@/p
26529 /@infodir@/p
26530 /@localedir@/p
26531 /@mandir@/p
26532 ' $ac_file_inputs` in
26533 *datarootdir*) ac_datarootdir_seen=yes;;
26534 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26535 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26536 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26537 _ACEOF
26538 cat >>$CONFIG_STATUS <<_ACEOF
26539 ac_datarootdir_hack='
26540 s&@datadir@&$datadir&g
26541 s&@docdir@&$docdir&g
26542 s&@infodir@&$infodir&g
26543 s&@localedir@&$localedir&g
26544 s&@mandir@&$mandir&g
26545 s&\\\${datarootdir}&$datarootdir&g' ;;
26546 esac
26547 _ACEOF
26548
26549 # Neutralize VPATH when `$srcdir' = `.'.
26550 # Shell code in configure.ac might set extrasub.
26551 # FIXME: do we really want to maintain this feature?
26552 cat >>$CONFIG_STATUS <<_ACEOF
26553 sed "$ac_vpsub
26554 $extrasub
26555 _ACEOF
26556 cat >>$CONFIG_STATUS <<\_ACEOF
26557 :t
26558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26559 s&@configure_input@&$configure_input&;t t
26560 s&@top_builddir@&$ac_top_builddir_sub&;t t
26561 s&@srcdir@&$ac_srcdir&;t t
26562 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26563 s&@top_srcdir@&$ac_top_srcdir&;t t
26564 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26565 s&@builddir@&$ac_builddir&;t t
26566 s&@abs_builddir@&$ac_abs_builddir&;t t
26567 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26568 s&@INSTALL@&$ac_INSTALL&;t t
26569 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26570 $ac_datarootdir_hack
26571 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26572
26573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26574 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26576 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26577 which seems to be undefined. Please make sure it is defined." >&5
26578 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26579 which seems to be undefined. Please make sure it is defined." >&2;}
26580
26581 rm -f "$tmp/stdin"
26582 case $ac_file in
26583 -) cat "$tmp/out"; rm -f "$tmp/out";;
26584 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26585 esac
26586 ;;
26587 :H)
26588 #
26589 # CONFIG_HEADER
26590 #
26591 _ACEOF
26592
26593 # Transform confdefs.h into a sed script `conftest.defines', that
26594 # substitutes the proper values into config.h.in to produce config.h.
26595 rm -f conftest.defines conftest.tail
26596 # First, append a space to every undef/define line, to ease matching.
26597 echo 's/$/ /' >conftest.defines
26598 # Then, protect against being on the right side of a sed subst, or in
26599 # an unquoted here document, in config.status. If some macros were
26600 # called several times there might be several #defines for the same
26601 # symbol, which is useless. But do not sort them, since the last
26602 # AC_DEFINE must be honored.
26603 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26604 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26605 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26606 # PARAMS is the parameter list in the macro definition--in most cases, it's
26607 # just an empty string.
26608 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26609 ac_dB='\\)[ (].*,\\1define\\2'
26610 ac_dC=' '
26611 ac_dD=' ,'
26612
26613 uniq confdefs.h |
26614 sed -n '
26615 t rset
26616 :rset
26617 s/^[ ]*#[ ]*define[ ][ ]*//
26618 t ok
26619 d
26620 :ok
26621 s/[\\&,]/\\&/g
26622 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26623 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26624 ' >>conftest.defines
26625
26626 # Remove the space that was appended to ease matching.
26627 # Then replace #undef with comments. This is necessary, for
26628 # example, in the case of _POSIX_SOURCE, which is predefined and required
26629 # on some systems where configure will not decide to define it.
26630 # (The regexp can be short, since the line contains either #define or #undef.)
26631 echo 's/ $//
26632 s,^[ #]*u.*,/* & */,' >>conftest.defines
26633
26634 # Break up conftest.defines:
26635 ac_max_sed_lines=50
26636
26637 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26638 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26639 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26640 # et cetera.
26641 ac_in='$ac_file_inputs'
26642 ac_out='"$tmp/out1"'
26643 ac_nxt='"$tmp/out2"'
26644
26645 while :
26646 do
26647 # Write a here document:
26648 cat >>$CONFIG_STATUS <<_ACEOF
26649 # First, check the format of the line:
26650 cat >"\$tmp/defines.sed" <<\\CEOF
26651 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26652 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26653 b
26654 :def
26655 _ACEOF
26656 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26657 echo 'CEOF
26658 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26659 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26660 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26661 grep . conftest.tail >/dev/null || break
26662 rm -f conftest.defines
26663 mv conftest.tail conftest.defines
26664 done
26665 rm -f conftest.defines conftest.tail
26666
26667 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26668 cat >>$CONFIG_STATUS <<\_ACEOF
26669 if test x"$ac_file" != x-; then
26670 echo "/* $configure_input */" >"$tmp/config.h"
26671 cat "$ac_result" >>"$tmp/config.h"
26672 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26673 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26674 echo "$as_me: $ac_file is unchanged" >&6;}
26675 else
26676 rm -f $ac_file
26677 mv "$tmp/config.h" $ac_file
26678 fi
26679 else
26680 echo "/* $configure_input */"
26681 cat "$ac_result"
26682 fi
26683 rm -f "$tmp/out12"
26684 # Compute $ac_file's index in $config_headers.
26685 _am_arg=$ac_file
26686 _am_stamp_count=1
26687 for _am_header in $config_headers :; do
26688 case $_am_header in
26689 $_am_arg | $_am_arg:* )
26690 break ;;
26691 * )
26692 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26693 esac
26694 done
26695 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26696 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26697 X"$_am_arg" : 'X\(//\)[^/]' \| \
26698 X"$_am_arg" : 'X\(//\)$' \| \
26699 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26700 echo X"$_am_arg" |
26701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26702 s//\1/
26703 q
26704 }
26705 /^X\(\/\/\)[^/].*/{
26706 s//\1/
26707 q
26708 }
26709 /^X\(\/\/\)$/{
26710 s//\1/
26711 q
26712 }
26713 /^X\(\/\).*/{
26714 s//\1/
26715 q
26716 }
26717 s/.*/./; q'`/stamp-h$_am_stamp_count
26718 ;;
26719
26720 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26721 echo "$as_me: executing $ac_file commands" >&6;}
26722 ;;
26723 esac
26724
26725
26726 case $ac_file$ac_mode in
26727 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26728 # Strip MF so we end up with the name of the file.
26729 mf=`echo "$mf" | sed -e 's/:.*$//'`
26730 # Check whether this is an Automake generated Makefile or not.
26731 # We used to match only the files named `Makefile.in', but
26732 # some people rename them; so instead we look at the file content.
26733 # Grep'ing the first line is not enough: some people post-process
26734 # each Makefile.in and add a new line on top of each file to say so.
26735 # Grep'ing the whole file is not good either: AIX grep has a line
26736 # limit of 2048, but all sed's we know have understand at least 4000.
26737 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26738 dirpart=`$as_dirname -- "$mf" ||
26739 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26740 X"$mf" : 'X\(//\)[^/]' \| \
26741 X"$mf" : 'X\(//\)$' \| \
26742 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26743 echo X"$mf" |
26744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26745 s//\1/
26746 q
26747 }
26748 /^X\(\/\/\)[^/].*/{
26749 s//\1/
26750 q
26751 }
26752 /^X\(\/\/\)$/{
26753 s//\1/
26754 q
26755 }
26756 /^X\(\/\).*/{
26757 s//\1/
26758 q
26759 }
26760 s/.*/./; q'`
26761 else
26762 continue
26763 fi
26764 # Extract the definition of DEPDIR, am__include, and am__quote
26765 # from the Makefile without running `make'.
26766 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26767 test -z "$DEPDIR" && continue
26768 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26769 test -z "am__include" && continue
26770 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26771 # When using ansi2knr, U may be empty or an underscore; expand it
26772 U=`sed -n 's/^U = //p' < "$mf"`
26773 # Find all dependency output files, they are included files with
26774 # $(DEPDIR) in their names. We invoke sed twice because it is the
26775 # simplest approach to changing $(DEPDIR) to its actual value in the
26776 # expansion.
26777 for file in `sed -n "
26778 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26779 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26780 # Make sure the directory exists.
26781 test -f "$dirpart/$file" && continue
26782 fdir=`$as_dirname -- "$file" ||
26783 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26784 X"$file" : 'X\(//\)[^/]' \| \
26785 X"$file" : 'X\(//\)$' \| \
26786 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26787 echo X"$file" |
26788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26789 s//\1/
26790 q
26791 }
26792 /^X\(\/\/\)[^/].*/{
26793 s//\1/
26794 q
26795 }
26796 /^X\(\/\/\)$/{
26797 s//\1/
26798 q
26799 }
26800 /^X\(\/\).*/{
26801 s//\1/
26802 q
26803 }
26804 s/.*/./; q'`
26805 { as_dir=$dirpart/$fdir
26806 case $as_dir in #(
26807 -*) as_dir=./$as_dir;;
26808 esac
26809 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26810 as_dirs=
26811 while :; do
26812 case $as_dir in #(
26813 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26814 *) as_qdir=$as_dir;;
26815 esac
26816 as_dirs="'$as_qdir' $as_dirs"
26817 as_dir=`$as_dirname -- "$as_dir" ||
26818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26819 X"$as_dir" : 'X\(//\)[^/]' \| \
26820 X"$as_dir" : 'X\(//\)$' \| \
26821 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26822 echo X"$as_dir" |
26823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26824 s//\1/
26825 q
26826 }
26827 /^X\(\/\/\)[^/].*/{
26828 s//\1/
26829 q
26830 }
26831 /^X\(\/\/\)$/{
26832 s//\1/
26833 q
26834 }
26835 /^X\(\/\).*/{
26836 s//\1/
26837 q
26838 }
26839 s/.*/./; q'`
26840 test -d "$as_dir" && break
26841 done
26842 test -z "$as_dirs" || eval "mkdir $as_dirs"
26843 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26844 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26845 { (exit 1); exit 1; }; }; }
26846 # echo "creating $dirpart/$file"
26847 echo '# dummy' > "$dirpart/$file"
26848 done
26849 done
26850 ;;
26851 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
26852 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
26853 esac ;;
26854 "po/stamp-it":C)
26855 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
26856 >"po/stamp-it.tmp"
26857 sed '/^#/d
26858 s/^[[].*] *//
26859 /^[ ]*$/d
26860 '"s|^| $ac_top_srcdir/|" \
26861 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
26862
26863 if test ! -f "po/Makefile"; then
26864 { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
26865 echo "$as_me: error: po/Makefile is not ready." >&2;}
26866 { (exit 1); exit 1; }; }
26867 fi
26868 mv "po/Makefile" "po/Makefile.tmp"
26869 sed '/^POTFILES =/,/[^\\]$/ {
26870 /^POTFILES =/!d
26871 r po/POTFILES
26872 }
26873 ' "po/Makefile.tmp" >"po/Makefile"
26874 rm -f "po/Makefile.tmp"
26875 mv "po/stamp-it.tmp" "po/stamp-it"
26876 ;;
26877
26878 esac
26879 done # for ac_tag
26880
26881
26882 { (exit 0); exit 0; }
26883 _ACEOF
26884 chmod +x $CONFIG_STATUS
26885 ac_clean_files=$ac_clean_files_save
26886
26887
26888 # configure is writing to config.log, and then calls config.status.
26889 # config.status does its own redirection, appending to config.log.
26890 # Unfortunately, on DOS this fails, as config.log is still kept open
26891 # by configure, so config.status won't be able to write to it; its
26892 # output is simply discarded. So we exec the FD to /dev/null,
26893 # effectively closing config.log, so it can be properly (re)opened and
26894 # appended to by config.status. When coming back to configure, we
26895 # need to make the FD available again.
26896 if test "$no_create" != yes; then
26897 ac_cs_success=:
26898 ac_config_status_args=
26899 test "$silent" = yes &&
26900 ac_config_status_args="$ac_config_status_args --quiet"
26901 exec 5>/dev/null
26902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26903 exec 5>>config.log
26904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26905 # would make configure fail if this is the last instruction.
26906 $ac_cs_success || { (exit 1); exit 1; }
26907 fi
26908
26909
26910 { echo "$as_me:$LINENO: " >&5
26911 echo "$as_me: " >&6;}
26912 { echo "$as_me:$LINENO: Configuration summary" >&5
26913 echo "$as_me: Configuration summary" >&6;}
26914 { echo "$as_me:$LINENO: =====================" >&5
26915 echo "$as_me: =====================" >&6;}
26916 { echo "$as_me:$LINENO: " >&5
26917 echo "$as_me: " >&6;}
26918 { echo "$as_me:$LINENO: Libraries" >&5
26919 echo "$as_me: Libraries" >&6;}
26920 { echo "$as_me:$LINENO: " >&5
26921 echo "$as_me: " >&6;}
26922 { echo "$as_me:$LINENO: kerberos: $KRB5_CFLAGS $KRB5_LIBS" >&5
26923 echo "$as_me: kerberos: $KRB5_CFLAGS $KRB5_LIBS" >&6;}
26924 { echo "$as_me:$LINENO: gtk: $GTK_CFLAGS $GTK_LIBS" >&5
26925 echo "$as_me: gtk: $GTK_CFLAGS $GTK_LIBS" >&6;}
26926 { echo "$as_me:$LINENO: glade: $GLADE_CFLAGS $GLADE_LIBS" >&5
26927 echo "$as_me: glade: $GLADE_CFLAGS $GLADE_LIBS" >&6;}
26928 { echo "$as_me:$LINENO: dbus: $DBUS_CFLAGS $DBUS_LIBS" >&5
26929 echo "$as_me: dbus: $DBUS_CFLAGS $DBUS_LIBS" >&6;}
26930 { echo "$as_me:$LINENO: gconf: $GCONF_CFLAGS $GCONF_LIBS" >&5
26931 echo "$as_me: gconf: $GCONF_CFLAGS $GCONF_LIBS" >&6;}
26932 if test "$with_libnotify" = "yes" ; then
26933 { echo "$as_me:$LINENO: libnotify: $LIBNOTIFY_CFLAGS $LIBNOTIFY_LIBS" >&5
26934 echo "$as_me: libnotify: $LIBNOTIFY_CFLAGS $LIBNOTIFY_LIBS" >&6;}
26935 else
26936 { echo "$as_me:$LINENO: libnotify: no" >&5
26937 echo "$as_me: libnotify: no" >&6;}
26938 fi
26939 if test "$enable_network_manager" = "yes" ; then
26940 { echo "$as_me:$LINENO: Network Manager: $NETWORK_MANAGER_CFLAGS $NETWORK_MANAGER_LIBS" >&5
26941 echo "$as_me: Network Manager: $NETWORK_MANAGER_CFLAGS $NETWORK_MANAGER_LIBS" >&6;}
26942 else
26943 { echo "$as_me:$LINENO: Network Manager: no" >&5
26944 echo "$as_me: Network Manager: no" >&6;}
26945 fi
26946 { echo "$as_me:$LINENO: " >&5
26947 echo "$as_me: " >&6;}
26948 { echo "$as_me:$LINENO: Miscellaneous" >&5
26949 echo "$as_me: Miscellaneous" >&6;}
26950 { echo "$as_me:$LINENO: " >&5
26951 echo "$as_me: " >&6;}
26952 { echo "$as_me:$LINENO: Minimum Lifetime: $minimum_lifetime minutes" >&5
26953 echo "$as_me: Minimum Lifetime: $minimum_lifetime minutes" >&6;}
26954 { echo "$as_me:$LINENO: Check Interval: $check_interval seconds" >&5
26955 echo "$as_me: Check Interval: $check_interval seconds" >&6;}
26956 { echo "$as_me:$LINENO: " >&5
26957 echo "$as_me: " >&6;}
26958
+0
-589
depcomp less more
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2007-03-29.01
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
6 # Foundation, Inc.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
29
30 case $1 in
31 '')
32 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
33 exit 1;
34 ;;
35 -h | --h*)
36 cat <<\EOF
37 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
38
39 Run PROGRAMS ARGS to compile a file, generating dependencies
40 as side-effects.
41
42 Environment variables:
43 depmode Dependency tracking mode.
44 source Source file read by `PROGRAMS ARGS'.
45 object Object file output by `PROGRAMS ARGS'.
46 DEPDIR directory where to store dependencies.
47 depfile Dependency file to output.
48 tmpdepfile Temporary file to use when outputing dependencies.
49 libtool Whether libtool is used (yes/no).
50
51 Report bugs to <bug-automake@gnu.org>.
52 EOF
53 exit $?
54 ;;
55 -v | --v*)
56 echo "depcomp $scriptversion"
57 exit $?
58 ;;
59 esac
60
61 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
62 echo "depcomp: Variables source, object and depmode must be set" 1>&2
63 exit 1
64 fi
65
66 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
67 depfile=${depfile-`echo "$object" |
68 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
69 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
70
71 rm -f "$tmpdepfile"
72
73 # Some modes work just like other modes, but use different flags. We
74 # parameterize here, but still list the modes in the big case below,
75 # to make depend.m4 easier to write. Note that we *cannot* use a case
76 # here, because this file can only contain one case statement.
77 if test "$depmode" = hp; then
78 # HP compiler uses -M and no extra arg.
79 gccflag=-M
80 depmode=gcc
81 fi
82
83 if test "$depmode" = dashXmstdout; then
84 # This is just like dashmstdout with a different argument.
85 dashmflag=-xM
86 depmode=dashmstdout
87 fi
88
89 case "$depmode" in
90 gcc3)
91 ## gcc 3 implements dependency tracking that does exactly what
92 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
93 ## it if -MD -MP comes after the -MF stuff. Hmm.
94 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
95 ## the command line argument order; so add the flags where they
96 ## appear in depend2.am. Note that the slowdown incurred here
97 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
98 for arg
99 do
100 case $arg in
101 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
102 *) set fnord "$@" "$arg" ;;
103 esac
104 shift # fnord
105 shift # $arg
106 done
107 "$@"
108 stat=$?
109 if test $stat -eq 0; then :
110 else
111 rm -f "$tmpdepfile"
112 exit $stat
113 fi
114 mv "$tmpdepfile" "$depfile"
115 ;;
116
117 gcc)
118 ## There are various ways to get dependency output from gcc. Here's
119 ## why we pick this rather obscure method:
120 ## - Don't want to use -MD because we'd like the dependencies to end
121 ## up in a subdir. Having to rename by hand is ugly.
122 ## (We might end up doing this anyway to support other compilers.)
123 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
124 ## -MM, not -M (despite what the docs say).
125 ## - Using -M directly means running the compiler twice (even worse
126 ## than renaming).
127 if test -z "$gccflag"; then
128 gccflag=-MD,
129 fi
130 "$@" -Wp,"$gccflag$tmpdepfile"
131 stat=$?
132 if test $stat -eq 0; then :
133 else
134 rm -f "$tmpdepfile"
135 exit $stat
136 fi
137 rm -f "$depfile"
138 echo "$object : \\" > "$depfile"
139 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
140 ## The second -e expression handles DOS-style file names with drive letters.
141 sed -e 's/^[^:]*: / /' \
142 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
143 ## This next piece of magic avoids the `deleted header file' problem.
144 ## The problem is that when a header file which appears in a .P file
145 ## is deleted, the dependency causes make to die (because there is
146 ## typically no way to rebuild the header). We avoid this by adding
147 ## dummy dependencies for each header file. Too bad gcc doesn't do
148 ## this for us directly.
149 tr ' ' '
150 ' < "$tmpdepfile" |
151 ## Some versions of gcc put a space before the `:'. On the theory
152 ## that the space means something, we add a space to the output as
153 ## well.
154 ## Some versions of the HPUX 10.20 sed can't process this invocation
155 ## correctly. Breaking it into two sed invocations is a workaround.
156 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
157 rm -f "$tmpdepfile"
158 ;;
159
160 hp)
161 # This case exists only to let depend.m4 do its work. It works by
162 # looking at the text of this script. This case will never be run,
163 # since it is checked for above.
164 exit 1
165 ;;
166
167 sgi)
168 if test "$libtool" = yes; then
169 "$@" "-Wp,-MDupdate,$tmpdepfile"
170 else
171 "$@" -MDupdate "$tmpdepfile"
172 fi
173 stat=$?
174 if test $stat -eq 0; then :
175 else
176 rm -f "$tmpdepfile"
177 exit $stat
178 fi
179 rm -f "$depfile"
180
181 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
182 echo "$object : \\" > "$depfile"
183
184 # Clip off the initial element (the dependent). Don't try to be
185 # clever and replace this with sed code, as IRIX sed won't handle
186 # lines with more than a fixed number of characters (4096 in
187 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
188 # the IRIX cc adds comments like `#:fec' to the end of the
189 # dependency line.
190 tr ' ' '
191 ' < "$tmpdepfile" \
192 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
193 tr '
194 ' ' ' >> $depfile
195 echo >> $depfile
196
197 # The second pass generates a dummy entry for each header file.
198 tr ' ' '
199 ' < "$tmpdepfile" \
200 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
201 >> $depfile
202 else
203 # The sourcefile does not contain any dependencies, so just
204 # store a dummy comment line, to avoid errors with the Makefile
205 # "include basename.Plo" scheme.
206 echo "#dummy" > "$depfile"
207 fi
208 rm -f "$tmpdepfile"
209 ;;
210
211 aix)
212 # The C for AIX Compiler uses -M and outputs the dependencies
213 # in a .u file. In older versions, this file always lives in the
214 # current directory. Also, the AIX compiler puts `$object:' at the
215 # start of each line; $object doesn't have directory information.
216 # Version 6 uses the directory in both cases.
217 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
218 test "x$dir" = "x$object" && dir=
219 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
220 if test "$libtool" = yes; then
221 tmpdepfile1=$dir$base.u
222 tmpdepfile2=$base.u
223 tmpdepfile3=$dir.libs/$base.u
224 "$@" -Wc,-M
225 else
226 tmpdepfile1=$dir$base.u
227 tmpdepfile2=$dir$base.u
228 tmpdepfile3=$dir$base.u
229 "$@" -M
230 fi
231 stat=$?
232
233 if test $stat -eq 0; then :
234 else
235 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
236 exit $stat
237 fi
238
239 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
240 do
241 test -f "$tmpdepfile" && break
242 done
243 if test -f "$tmpdepfile"; then
244 # Each line is of the form `foo.o: dependent.h'.
245 # Do two passes, one to just change these to
246 # `$object: dependent.h' and one to simply `dependent.h:'.
247 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
248 # That's a tab and a space in the [].
249 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
250 else
251 # The sourcefile does not contain any dependencies, so just
252 # store a dummy comment line, to avoid errors with the Makefile
253 # "include basename.Plo" scheme.
254 echo "#dummy" > "$depfile"
255 fi
256 rm -f "$tmpdepfile"
257 ;;
258
259 icc)
260 # Intel's C compiler understands `-MD -MF file'. However on
261 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
262 # ICC 7.0 will fill foo.d with something like
263 # foo.o: sub/foo.c
264 # foo.o: sub/foo.h
265 # which is wrong. We want:
266 # sub/foo.o: sub/foo.c
267 # sub/foo.o: sub/foo.h
268 # sub/foo.c:
269 # sub/foo.h:
270 # ICC 7.1 will output
271 # foo.o: sub/foo.c sub/foo.h
272 # and will wrap long lines using \ :
273 # foo.o: sub/foo.c ... \
274 # sub/foo.h ... \
275 # ...
276
277 "$@" -MD -MF "$tmpdepfile"
278 stat=$?
279 if test $stat -eq 0; then :
280 else
281 rm -f "$tmpdepfile"
282 exit $stat
283 fi
284 rm -f "$depfile"
285 # Each line is of the form `foo.o: dependent.h',
286 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
287 # Do two passes, one to just change these to
288 # `$object: dependent.h' and one to simply `dependent.h:'.
289 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
290 # Some versions of the HPUX 10.20 sed can't process this invocation
291 # correctly. Breaking it into two sed invocations is a workaround.
292 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
293 sed -e 's/$/ :/' >> "$depfile"
294 rm -f "$tmpdepfile"
295 ;;
296
297 hp2)
298 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
299 # compilers, which have integrated preprocessors. The correct option
300 # to use with these is +Maked; it writes dependencies to a file named
301 # 'foo.d', which lands next to the object file, wherever that
302 # happens to be.
303 # Much of this is similar to the tru64 case; see comments there.
304 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
305 test "x$dir" = "x$object" && dir=
306 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
307 if test "$libtool" = yes; then
308 tmpdepfile1=$dir$base.d
309 tmpdepfile2=$dir.libs/$base.d
310 "$@" -Wc,+Maked
311 else
312 tmpdepfile1=$dir$base.d
313 tmpdepfile2=$dir$base.d
314 "$@" +Maked
315 fi
316 stat=$?
317 if test $stat -eq 0; then :
318 else
319 rm -f "$tmpdepfile1" "$tmpdepfile2"
320 exit $stat
321 fi
322
323 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
324 do
325 test -f "$tmpdepfile" && break
326 done
327 if test -f "$tmpdepfile"; then
328 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
329 # Add `dependent.h:' lines.
330 sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
331 else
332 echo "#dummy" > "$depfile"
333 fi
334 rm -f "$tmpdepfile" "$tmpdepfile2"
335 ;;
336
337 tru64)
338 # The Tru64 compiler uses -MD to generate dependencies as a side
339 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
340 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
341 # dependencies in `foo.d' instead, so we check for that too.
342 # Subdirectories are respected.
343 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
344 test "x$dir" = "x$object" && dir=
345 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
346
347 if test "$libtool" = yes; then
348 # With Tru64 cc, shared objects can also be used to make a
349 # static library. This mechanism is used in libtool 1.4 series to
350 # handle both shared and static libraries in a single compilation.
351 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
352 #
353 # With libtool 1.5 this exception was removed, and libtool now
354 # generates 2 separate objects for the 2 libraries. These two
355 # compilations output dependencies in $dir.libs/$base.o.d and
356 # in $dir$base.o.d. We have to check for both files, because
357 # one of the two compilations can be disabled. We should prefer
358 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
359 # automatically cleaned when .libs/ is deleted, while ignoring
360 # the former would cause a distcleancheck panic.
361 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
362 tmpdepfile2=$dir$base.o.d # libtool 1.5
363 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
364 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
365 "$@" -Wc,-MD
366 else
367 tmpdepfile1=$dir$base.o.d
368 tmpdepfile2=$dir$base.d
369 tmpdepfile3=$dir$base.d
370 tmpdepfile4=$dir$base.d
371 "$@" -MD
372 fi
373
374 stat=$?
375 if test $stat -eq 0; then :
376 else
377 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
378 exit $stat
379 fi
380
381 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
382 do
383 test -f "$tmpdepfile" && break
384 done
385 if test -f "$tmpdepfile"; then
386 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
387 # That's a tab and a space in the [].
388 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
389 else
390 echo "#dummy" > "$depfile"
391 fi
392 rm -f "$tmpdepfile"
393 ;;
394
395 #nosideeffect)
396 # This comment above is used by automake to tell side-effect
397 # dependency tracking mechanisms from slower ones.
398
399 dashmstdout)
400 # Important note: in order to support this mode, a compiler *must*
401 # always write the preprocessed file to stdout, regardless of -o.
402 "$@" || exit $?
403
404 # Remove the call to Libtool.
405 if test "$libtool" = yes; then
406 while test $1 != '--mode=compile'; do
407 shift
408 done
409 shift
410 fi
411
412 # Remove `-o $object'.
413 IFS=" "
414 for arg
415 do
416 case $arg in
417 -o)
418 shift
419 ;;
420 $object)
421 shift
422 ;;
423 *)
424 set fnord "$@" "$arg"
425 shift # fnord
426 shift # $arg
427 ;;
428 esac
429 done
430
431 test -z "$dashmflag" && dashmflag=-M
432 # Require at least two characters before searching for `:'
433 # in the target name. This is to cope with DOS-style filenames:
434 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
435 "$@" $dashmflag |
436 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
437 rm -f "$depfile"
438 cat < "$tmpdepfile" > "$depfile"
439 tr ' ' '
440 ' < "$tmpdepfile" | \
441 ## Some versions of the HPUX 10.20 sed can't process this invocation
442 ## correctly. Breaking it into two sed invocations is a workaround.
443 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
444 rm -f "$tmpdepfile"
445 ;;
446
447 dashXmstdout)
448 # This case only exists to satisfy depend.m4. It is never actually
449 # run, as this mode is specially recognized in the preamble.
450 exit 1
451 ;;
452
453 makedepend)
454 "$@" || exit $?
455 # Remove any Libtool call
456 if test "$libtool" = yes; then
457 while test $1 != '--mode=compile'; do
458 shift
459 done
460 shift
461 fi
462 # X makedepend
463 shift
464 cleared=no
465 for arg in "$@"; do
466 case $cleared in
467 no)
468 set ""; shift
469 cleared=yes ;;
470 esac
471 case "$arg" in
472 -D*|-I*)
473 set fnord "$@" "$arg"; shift ;;
474 # Strip any option that makedepend may not understand. Remove
475 # the object too, otherwise makedepend will parse it as a source file.
476 -*|$object)
477 ;;
478 *)
479 set fnord "$@" "$arg"; shift ;;
480 esac
481 done
482 obj_suffix="`echo $object | sed 's/^.*\././'`"
483 touch "$tmpdepfile"
484 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
485 rm -f "$depfile"
486 cat < "$tmpdepfile" > "$depfile"
487 sed '1,2d' "$tmpdepfile" | tr ' ' '
488 ' | \
489 ## Some versions of the HPUX 10.20 sed can't process this invocation
490 ## correctly. Breaking it into two sed invocations is a workaround.
491 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
492 rm -f "$tmpdepfile" "$tmpdepfile".bak
493 ;;
494
495 cpp)
496 # Important note: in order to support this mode, a compiler *must*
497 # always write the preprocessed file to stdout.
498 "$@" || exit $?
499
500 # Remove the call to Libtool.
501 if test "$libtool" = yes; then
502 while test $1 != '--mode=compile'; do
503 shift
504 done
505 shift
506 fi
507
508 # Remove `-o $object'.
509 IFS=" "
510 for arg
511 do
512 case $arg in
513 -o)
514 shift
515 ;;
516 $object)
517 shift
518 ;;
519 *)
520 set fnord "$@" "$arg"
521 shift # fnord
522 shift # $arg
523 ;;
524 esac
525 done
526
527 "$@" -E |
528 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
529 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
530 sed '$ s: \\$::' > "$tmpdepfile"
531 rm -f "$depfile"
532 echo "$object : \\" > "$depfile"
533 cat < "$tmpdepfile" >> "$depfile"
534 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
535 rm -f "$tmpdepfile"
536 ;;
537
538 msvisualcpp)
539 # 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.
542 "$@" || exit $?
543 IFS=" "
544 for arg
545 do
546 case "$arg" in
547 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
548 set fnord "$@"
549 shift
550 shift
551 ;;
552 *)
553 set fnord "$@" "$arg"
554 shift
555 shift
556 ;;
557 esac
558 done
559 "$@" -E |
560 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
561 rm -f "$depfile"
562 echo "$object : \\" > "$depfile"
563 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
564 echo " " >> "$depfile"
565 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
566 rm -f "$tmpdepfile"
567 ;;
568
569 none)
570 exec "$@"
571 ;;
572
573 *)
574 echo "Unknown depmode $depmode" 1>&2
575 exit 1
576 ;;
577 esac
578
579 exit 0
580
581 # Local Variables:
582 # mode: shell-script
583 # sh-indentation: 2
584 # eval: (add-hook 'write-file-hooks 'time-stamp)
585 # time-stamp-start: "scriptversion="
586 # time-stamp-format: "%:y-%02m-%02d.%02H"
587 # time-stamp-end: "$"
588 # End:
0 Makefile
1 Makefile.in
2 etpo
3 grammar.c
4 grammar.h
5 lexer.c
+0
-548
etpo/Makefile.in less more
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkglibdir = $(libdir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21 install_sh_DATA = $(install_sh) -c -m 644
22 install_sh_PROGRAM = $(install_sh) -c
23 install_sh_SCRIPT = $(install_sh) -c
24 INSTALL_HEADER = $(INSTALL_DATA)
25 transform = $(program_transform_name)
26 NORMAL_INSTALL = :
27 PRE_INSTALL = :
28 POST_INSTALL = :
29 NORMAL_UNINSTALL = :
30 PRE_UNINSTALL = :
31 POST_UNINSTALL = :
32 build_triplet = @build@
33 host_triplet = @host@
34 noinst_PROGRAMS = etpo$(EXEEXT)
35 subdir = etpo
36 DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
37 grammar.c grammar.h lexer.c
38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
40 $(top_srcdir)/configure.ac
41 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42 $(ACLOCAL_M4)
43 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
44 CONFIG_HEADER = $(top_builddir)/config.h
45 CONFIG_CLEAN_FILES =
46 PROGRAMS = $(noinst_PROGRAMS)
47 am_etpo_OBJECTS = lexer.$(OBJEXT) grammar.$(OBJEXT)
48 etpo_OBJECTS = $(am_etpo_OBJECTS)
49 etpo_LDADD = $(LDADD)
50 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
51 depcomp = $(SHELL) $(top_srcdir)/depcomp
52 am__depfiles_maybe = depfiles
53 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
54 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
55 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
56 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
57 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
58 CCLD = $(CC)
59 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
60 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
61 $(LDFLAGS) -o $@
62 @MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||
63 LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
64 LTLEXCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
65 --mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS)
66 YLWRAP = $(top_srcdir)/ylwrap
67 @MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||
68 YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS)
69 LTYACCCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=compile $(YACC) $(YFLAGS) $(AM_YFLAGS)
71 SOURCES = $(etpo_SOURCES)
72 DIST_SOURCES = $(etpo_SOURCES)
73 ETAGS = etags
74 CTAGS = ctags
75 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
76 ACLOCAL = @ACLOCAL@
77 ALL_LINGUAS = @ALL_LINGUAS@
78 AMTAR = @AMTAR@
79 AR = @AR@
80 AUTOCONF = @AUTOCONF@
81 AUTOHEADER = @AUTOHEADER@
82 AUTOMAKE = @AUTOMAKE@
83 AWK = @AWK@
84 CATALOGS = @CATALOGS@
85 CATOBJEXT = @CATOBJEXT@
86 CC = @CC@
87 CCDEPMODE = @CCDEPMODE@
88 CFLAGS = @CFLAGS@
89 CPP = @CPP@
90 CPPFLAGS = @CPPFLAGS@
91 CXX = @CXX@
92 CXXCPP = @CXXCPP@
93 CXXDEPMODE = @CXXDEPMODE@
94 CXXFLAGS = @CXXFLAGS@
95 CYGPATH_W = @CYGPATH_W@
96 DATADIRNAME = @DATADIRNAME@
97 DBUS_CFLAGS = @DBUS_CFLAGS@
98 DBUS_LIBS = @DBUS_LIBS@
99 DEFS = @DEFS@
100 DEPDIR = @DEPDIR@
101 DSYMUTIL = @DSYMUTIL@
102 ECHO = @ECHO@
103 ECHO_C = @ECHO_C@
104 ECHO_N = @ECHO_N@
105 ECHO_T = @ECHO_T@
106 EGREP = @EGREP@
107 EXEEXT = @EXEEXT@
108 F77 = @F77@
109 FFLAGS = @FFLAGS@
110 GCONF_CFLAGS = @GCONF_CFLAGS@
111 GCONF_LIBS = @GCONF_LIBS@
112 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
113 GLADE_CFLAGS = @GLADE_CFLAGS@
114 GLADE_LIBS = @GLADE_LIBS@
115 GMOFILES = @GMOFILES@
116 GMSGFMT = @GMSGFMT@
117 GREP = @GREP@
118 GTK_CFLAGS = @GTK_CFLAGS@
119 GTK_LIBS = @GTK_LIBS@
120 INSTALL = @INSTALL@
121 INSTALL_DATA = @INSTALL_DATA@
122 INSTALL_PROGRAM = @INSTALL_PROGRAM@
123 INSTALL_SCRIPT = @INSTALL_SCRIPT@
124 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125 INSTOBJEXT = @INSTOBJEXT@
126 INTLLIBS = @INTLLIBS@
127 INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
128 INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
129 INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
130 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
131 INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
132 INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
133 INTLTOOL_MERGE = @INTLTOOL_MERGE@
134 INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
135 INTLTOOL_PERL = @INTLTOOL_PERL@
136 INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
137 INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
138 INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
139 INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
140 INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
141 INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
142 INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
143 INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
144 INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
145 INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
146 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
147 INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
148 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
149 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
150 KRB5_CFLAGS = @KRB5_CFLAGS@
151 KRB5_CONFIG = @KRB5_CONFIG@
152 KRB5_LIBS = @KRB5_LIBS@
153 LDFLAGS = @LDFLAGS@
154 LEX = @LEX@
155 LEXLIB = @LEXLIB@
156 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
157 LIBCAP = @LIBCAP@
158 LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@
159 LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@
160 LIBOBJS = @LIBOBJS@
161 LIBS = @LIBS@
162 LIBTOOL = @LIBTOOL@
163 LN_S = @LN_S@
164 LTLIBOBJS = @LTLIBOBJS@
165 MAINT = @MAINT@
166 MAKEINFO = @MAKEINFO@
167 MKDIR_P = @MKDIR_P@
168 MKINSTALLDIRS = @MKINSTALLDIRS@
169 MSGFMT = @MSGFMT@
170 MSGFMT_OPTS = @MSGFMT_OPTS@
171 MSGMERGE = @MSGMERGE@
172 NETWORK_MANAGER_CFLAGS = @NETWORK_MANAGER_CFLAGS@
173 NETWORK_MANAGER_LIBS = @NETWORK_MANAGER_LIBS@
174 NMEDIT = @NMEDIT@
175 OBJEXT = @OBJEXT@
176 PACKAGE = @PACKAGE@
177 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
178 PACKAGE_NAME = @PACKAGE_NAME@
179 PACKAGE_STRING = @PACKAGE_STRING@
180 PACKAGE_TARNAME = @PACKAGE_TARNAME@
181 PACKAGE_VERSION = @PACKAGE_VERSION@
182 PATH_SEPARATOR = @PATH_SEPARATOR@
183 PKG_CONFIG = @PKG_CONFIG@
184 POFILES = @POFILES@
185 POSUB = @POSUB@
186 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
187 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
188 RANLIB = @RANLIB@
189 SED = @SED@
190 SETCAP = @SETCAP@
191 SET_MAKE = @SET_MAKE@
192 SHELL = @SHELL@
193 STRIP = @STRIP@
194 USE_NLS = @USE_NLS@
195 VERSION = @VERSION@
196 XGETTEXT = @XGETTEXT@
197 YACC = @YACC@
198 YFLAGS = @YFLAGS@
199 abs_builddir = @abs_builddir@
200 abs_srcdir = @abs_srcdir@
201 abs_top_builddir = @abs_top_builddir@
202 abs_top_srcdir = @abs_top_srcdir@
203 ac_ct_CC = @ac_ct_CC@
204 ac_ct_CXX = @ac_ct_CXX@
205 ac_ct_F77 = @ac_ct_F77@
206 am__include = @am__include@
207 am__leading_dot = @am__leading_dot@
208 am__quote = @am__quote@
209 am__tar = @am__tar@
210 am__untar = @am__untar@
211 bindir = @bindir@
212 build = @build@
213 build_alias = @build_alias@
214 build_cpu = @build_cpu@
215 build_os = @build_os@
216 build_vendor = @build_vendor@
217 builddir = @builddir@
218 check_interval = @check_interval@
219 datadir = @datadir@
220 datarootdir = @datarootdir@
221 docdir = @docdir@
222 dvidir = @dvidir@
223 exec_prefix = @exec_prefix@
224 host = @host@
225 host_alias = @host_alias@
226 host_cpu = @host_cpu@
227 host_os = @host_os@
228 host_vendor = @host_vendor@
229 htmldir = @htmldir@
230 includedir = @includedir@
231 infodir = @infodir@
232 install_sh = @install_sh@
233 libdir = @libdir@
234 libexecdir = @libexecdir@
235 localedir = @localedir@
236 localstatedir = @localstatedir@
237 mandir = @mandir@
238 minimum_lifetime = @minimum_lifetime@
239 mkdir_p = @mkdir_p@
240 oldincludedir = @oldincludedir@
241 pdfdir = @pdfdir@
242 prefix = @prefix@
243 program_transform_name = @program_transform_name@
244 psdir = @psdir@
245 sbindir = @sbindir@
246 sharedstatedir = @sharedstatedir@
247 srcdir = @srcdir@
248 sysconfdir = @sysconfdir@
249 target_alias = @target_alias@
250 top_builddir = @top_builddir@
251 top_srcdir = @top_srcdir@
252 etpo_SOURCES = lexer.l grammar.y
253 AM_YFLAGS = -d
254 AM_CFLAGS = \
255 @GTK_CFLAGS@ \
256 @GLADE_CFLAGS@ \
257 @DBUS_CFLAGS@ \
258 @GCONF_CFLAGS@ \
259 @KRB5_CFLAGS@ \
260 @NETWORK_MANAGER_CFLAGS@ \
261 @LIBNOTIFY_CFLAGS@ \
262 @CFLAGS@
263
264 AM_LDFLAGS = \
265 @NETWORK_MANAGER_LIBS@ \
266 @KRB5_LIBS@ \
267 @LIBNOTIFY_LIBS@ \
268 @DBUS_LIBS@ \
269 @GCONF_LIBS@ \
270 @GLADE_LIBS@ \
271 @GTK_LIBS@
272
273 DISTCLEANFILES = lexer.c
274 all: all-am
275
276 .SUFFIXES:
277 .SUFFIXES: .c .l .lo .o .obj .y
278 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
279 @for dep in $?; do \
280 case '$(am__configure_deps)' in \
281 *$$dep*) \
282 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
283 && exit 0; \
284 exit 1;; \
285 esac; \
286 done; \
287 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu etpo/Makefile'; \
288 cd $(top_srcdir) && \
289 $(AUTOMAKE) --gnu etpo/Makefile
290 .PRECIOUS: Makefile
291 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
292 @case '$?' in \
293 *config.status*) \
294 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
295 *) \
296 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
297 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
298 esac;
299
300 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
301 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
302
303 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
304 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
305 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
306 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
307
308 clean-noinstPROGRAMS:
309 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
310 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
311 echo " rm -f $$p $$f"; \
312 rm -f $$p $$f ; \
313 done
314 grammar.h: grammar.c
315 @if test ! -f $@; then \
316 rm -f grammar.c; \
317 $(MAKE) $(AM_MAKEFLAGS) grammar.c; \
318 else :; fi
319 etpo$(EXEEXT): $(etpo_OBJECTS) $(etpo_DEPENDENCIES)
320 @rm -f etpo$(EXEEXT)
321 $(LINK) $(etpo_OBJECTS) $(etpo_LDADD) $(LIBS)
322
323 mostlyclean-compile:
324 -rm -f *.$(OBJEXT)
325
326 distclean-compile:
327 -rm -f *.tab.c
328
329 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/grammar.Po@am__quote@
330 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lexer.Po@am__quote@
331
332 .c.o:
333 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
334 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
335 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
336 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
337 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
338
339 .c.obj:
340 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
341 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
342 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
343 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
344 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
345
346 .c.lo:
347 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
348 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
349 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
350 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
351 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
352
353 .l.c:
354 $(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
355
356 .y.c:
357 $(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE)
358
359 mostlyclean-libtool:
360 -rm -f *.lo
361
362 clean-libtool:
363 -rm -rf .libs _libs
364
365 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
366 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
367 unique=`for i in $$list; do \
368 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
369 done | \
370 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
371 END { if (nonempty) { for (i in files) print i; }; }'`; \
372 mkid -fID $$unique
373 tags: TAGS
374
375 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
376 $(TAGS_FILES) $(LISP)
377 tags=; \
378 here=`pwd`; \
379 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
380 unique=`for i in $$list; do \
381 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
382 done | \
383 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
384 END { if (nonempty) { for (i in files) print i; }; }'`; \
385 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
386 test -n "$$unique" || unique=$$empty_fix; \
387 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
388 $$tags $$unique; \
389 fi
390 ctags: CTAGS
391 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
392 $(TAGS_FILES) $(LISP)
393 tags=; \
394 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
395 unique=`for i in $$list; do \
396 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
397 done | \
398 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
399 END { if (nonempty) { for (i in files) print i; }; }'`; \
400 test -z "$(CTAGS_ARGS)$$tags$$unique" \
401 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
402 $$tags $$unique
403
404 GTAGS:
405 here=`$(am__cd) $(top_builddir) && pwd` \
406 && cd $(top_srcdir) \
407 && gtags -i $(GTAGS_ARGS) $$here
408
409 distclean-tags:
410 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
411
412 distdir: $(DISTFILES)
413 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
414 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
415 list='$(DISTFILES)'; \
416 dist_files=`for file in $$list; do echo $$file; done | \
417 sed -e "s|^$$srcdirstrip/||;t" \
418 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
419 case $$dist_files in \
420 */*) $(MKDIR_P) `echo "$$dist_files" | \
421 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
422 sort -u` ;; \
423 esac; \
424 for file in $$dist_files; do \
425 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
426 if test -d $$d/$$file; then \
427 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
428 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
429 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
430 fi; \
431 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
432 else \
433 test -f $(distdir)/$$file \
434 || cp -p $$d/$$file $(distdir)/$$file \
435 || exit 1; \
436 fi; \
437 done
438 check-am: all-am
439 check: check-am
440 all-am: Makefile $(PROGRAMS)
441 installdirs:
442 install: install-am
443 install-exec: install-exec-am
444 install-data: install-data-am
445 uninstall: uninstall-am
446
447 install-am: all-am
448 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
449
450 installcheck: installcheck-am
451 install-strip:
452 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
453 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
454 `test -z '$(STRIP)' || \
455 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
456 mostlyclean-generic:
457
458 clean-generic:
459
460 distclean-generic:
461 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
462 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
463
464 maintainer-clean-generic:
465 @echo "This command is intended for maintainers to use"
466 @echo "it deletes files that may require special tools to rebuild."
467 -rm -f grammar.c
468 -rm -f grammar.h
469 -rm -f lexer.c
470 clean: clean-am
471
472 clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
473 mostlyclean-am
474
475 distclean: distclean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478 distclean-am: clean-am distclean-compile distclean-generic \
479 distclean-tags
480
481 dvi: dvi-am
482
483 dvi-am:
484
485 html: html-am
486
487 info: info-am
488
489 info-am:
490
491 install-data-am:
492
493 install-dvi: install-dvi-am
494
495 install-exec-am:
496
497 install-html: install-html-am
498
499 install-info: install-info-am
500
501 install-man:
502
503 install-pdf: install-pdf-am
504
505 install-ps: install-ps-am
506
507 installcheck-am:
508
509 maintainer-clean: maintainer-clean-am
510 -rm -rf ./$(DEPDIR)
511 -rm -f Makefile
512 maintainer-clean-am: distclean-am maintainer-clean-generic
513
514 mostlyclean: mostlyclean-am
515
516 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
517 mostlyclean-libtool
518
519 pdf: pdf-am
520
521 pdf-am:
522
523 ps: ps-am
524
525 ps-am:
526
527 uninstall-am:
528
529 .MAKE: install-am install-strip
530
531 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
532 clean-libtool clean-noinstPROGRAMS ctags distclean \
533 distclean-compile distclean-generic distclean-libtool \
534 distclean-tags distdir dvi dvi-am html html-am info info-am \
535 install install-am install-data install-data-am install-dvi \
536 install-dvi-am install-exec install-exec-am install-html \
537 install-html-am install-info install-info-am install-man \
538 install-pdf install-pdf-am install-ps install-ps-am \
539 install-strip installcheck installcheck-am installdirs \
540 maintainer-clean maintainer-clean-generic mostlyclean \
541 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
542 pdf pdf-am ps ps-am tags uninstall uninstall-am
543
544 lexer.c: grammar.h
545 # Tell versions [3.59,3.63) of GNU make to not export all variables.
546 # Otherwise a system limit (for SysV at least) may be exceeded.
547 .NOEXPORT:
+0
-1607
etpo/grammar.c less more
0 /* A Bison parser, made by GNU Bison 2.3. */
1
2 /* Skeleton implementation for Bison's Yacc-like parsers in C
3
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
5 Free Software Foundation, Inc.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
21
22 /* As a special exception, you may create a larger work that contains
23 part or all of the Bison parser skeleton and distribute that work
24 under terms of your choice, so long as that work isn't itself a
25 parser generator using the skeleton or a modified version thereof
26 as a parser skeleton. Alternatively, if you modify or redistribute
27 the parser skeleton itself, you may (at your option) remove this
28 special exception, which will cause the skeleton and the resulting
29 Bison output files to be licensed under the GNU General Public
30 License without this special exception.
31
32 This special exception was added by the Free Software Foundation in
33 version 2.2 of Bison. */
34
35 /* C LALR(1) parser skeleton written by Richard Stallman, by
36 simplifying the original so-called "semantic" parser. */
37
38 /* All symbols defined below should begin with yy or YY, to avoid
39 infringing on user name space. This should be done even for local
40 variables, as they might otherwise be expanded by user macros.
41 There are some unavoidable exceptions within include files to
42 define necessary library symbols; they are noted "INFRINGES ON
43 USER NAME SPACE" below. */
44
45 /* Identify Bison output. */
46 #define YYBISON 1
47
48 /* Bison version. */
49 #define YYBISON_VERSION "2.3"
50
51 /* Skeleton name. */
52 #define YYSKELETON_NAME "yacc.c"
53
54 /* Pure parsers. */
55 #define YYPURE 0
56
57 /* Using locations. */
58 #define YYLSP_NEEDED 0
59
60
61
62 /* Tokens. */
63 #ifndef YYTOKENTYPE
64 # define YYTOKENTYPE
65 /* Put the tokens into the symbol table, so that GDB and other debuggers
66 know about them. */
67 enum yytokentype {
68 ERROR_TABLE_START = 258,
69 ERROR_TABLE_END = 259,
70 ERROR_CODE_START = 260,
71 COMMA = 261,
72 QUOTE = 262,
73 EMPTY = 263,
74 TOKEN = 264,
75 LITERAL = 265
76 };
77 #endif
78 /* Tokens. */
79 #define ERROR_TABLE_START 258
80 #define ERROR_TABLE_END 259
81 #define ERROR_CODE_START 260
82 #define COMMA 261
83 #define QUOTE 262
84 #define EMPTY 263
85 #define TOKEN 264
86 #define LITERAL 265
87
88
89
90
91 /* Copy the first part of user declarations. */
92 #line 1 "grammar.y"
93
94 /*
95 * Copyright (C) 2004 Red Hat, Inc.
96 *
97 * This is free software; you can redistribute it and/or modify it under
98 * the terms of the GNU Library General Public License as published by
99 * the Free Software Foundation; either version 2 of the License, or
100 * (at your option) any later version.
101 *
102 * This program is distributed in the hope that it will be useful, but
103 * WITHOUT ANY WARRANTY; without even the implied warranty of
104 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
105 * General Public License for more details.
106 *
107 * You should have received a copy of the GNU Library General Public
108 * License along with this program; if not, write to the Free Software
109 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
110 */
111 #include "config.h"
112 #include <glib.h>
113 #include <stdio.h>
114 #include <string.h>
115 static const char *table = "unknown";
116 extern const char *currentfile;
117
118
119 /* Enabling traces. */
120 #ifndef YYDEBUG
121 # define YYDEBUG 0
122 #endif
123
124 /* Enabling verbose error messages. */
125 #ifdef YYERROR_VERBOSE
126 # undef YYERROR_VERBOSE
127 # define YYERROR_VERBOSE 1
128 #else
129 # define YYERROR_VERBOSE 0
130 #endif
131
132 /* Enabling the token table. */
133 #ifndef YYTOKEN_TABLE
134 # define YYTOKEN_TABLE 0
135 #endif
136
137 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
138 typedef union YYSTYPE
139 #line 26 "grammar.y"
140 {
141 char *sval;
142 int ival;
143 }
144 /* Line 187 of yacc.c. */
145 #line 147 "grammar.c"
146 YYSTYPE;
147 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
148 # define YYSTYPE_IS_DECLARED 1
149 # define YYSTYPE_IS_TRIVIAL 1
150 #endif
151
152
153
154 /* Copy the second part of user declarations. */
155
156
157 /* Line 216 of yacc.c. */
158 #line 160 "grammar.c"
159
160 #ifdef short
161 # undef short
162 #endif
163
164 #ifdef YYTYPE_UINT8
165 typedef YYTYPE_UINT8 yytype_uint8;
166 #else
167 typedef unsigned char yytype_uint8;
168 #endif
169
170 #ifdef YYTYPE_INT8
171 typedef YYTYPE_INT8 yytype_int8;
172 #elif (defined __STDC__ || defined __C99__FUNC__ \
173 || defined __cplusplus || defined _MSC_VER)
174 typedef signed char yytype_int8;
175 #else
176 typedef short int yytype_int8;
177 #endif
178
179 #ifdef YYTYPE_UINT16
180 typedef YYTYPE_UINT16 yytype_uint16;
181 #else
182 typedef unsigned short int yytype_uint16;
183 #endif
184
185 #ifdef YYTYPE_INT16
186 typedef YYTYPE_INT16 yytype_int16;
187 #else
188 typedef short int yytype_int16;
189 #endif
190
191 #ifndef YYSIZE_T
192 # ifdef __SIZE_TYPE__
193 # define YYSIZE_T __SIZE_TYPE__
194 # elif defined size_t
195 # define YYSIZE_T size_t
196 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
197 || defined __cplusplus || defined _MSC_VER)
198 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
199 # define YYSIZE_T size_t
200 # else
201 # define YYSIZE_T unsigned int
202 # endif
203 #endif
204
205 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
206
207 #ifndef YY_
208 # if YYENABLE_NLS
209 # if ENABLE_NLS
210 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
211 # define YY_(msgid) dgettext ("bison-runtime", msgid)
212 # endif
213 # endif
214 # ifndef YY_
215 # define YY_(msgid) msgid
216 # endif
217 #endif
218
219 /* Suppress unused-variable warnings by "using" E. */
220 #if ! defined lint || defined __GNUC__
221 # define YYUSE(e) ((void) (e))
222 #else
223 # define YYUSE(e) /* empty */
224 #endif
225
226 /* Identity function, used to suppress warnings about constant conditions. */
227 #ifndef lint
228 # define YYID(n) (n)
229 #else
230 #if (defined __STDC__ || defined __C99__FUNC__ \
231 || defined __cplusplus || defined _MSC_VER)
232 static int
233 YYID (int i)
234 #else
235 static int
236 YYID (i)
237 int i;
238 #endif
239 {
240 return i;
241 }
242 #endif
243
244 #if ! defined yyoverflow || YYERROR_VERBOSE
245
246 /* The parser invokes alloca or malloc; define the necessary symbols. */
247
248 # ifdef YYSTACK_USE_ALLOCA
249 # if YYSTACK_USE_ALLOCA
250 # ifdef __GNUC__
251 # define YYSTACK_ALLOC __builtin_alloca
252 # elif defined __BUILTIN_VA_ARG_INCR
253 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
254 # elif defined _AIX
255 # define YYSTACK_ALLOC __alloca
256 # elif defined _MSC_VER
257 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
258 # define alloca _alloca
259 # else
260 # define YYSTACK_ALLOC alloca
261 # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
262 || defined __cplusplus || defined _MSC_VER)
263 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
264 # ifndef _STDLIB_H
265 # define _STDLIB_H 1
266 # endif
267 # endif
268 # endif
269 # endif
270 # endif
271
272 # ifdef YYSTACK_ALLOC
273 /* Pacify GCC's `empty if-body' warning. */
274 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
275 # ifndef YYSTACK_ALLOC_MAXIMUM
276 /* The OS might guarantee only one guard page at the bottom of the stack,
277 and a page size can be as small as 4096 bytes. So we cannot safely
278 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
279 to allow for a few compiler-allocated temporary stack slots. */
280 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
281 # endif
282 # else
283 # define YYSTACK_ALLOC YYMALLOC
284 # define YYSTACK_FREE YYFREE
285 # ifndef YYSTACK_ALLOC_MAXIMUM
286 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
287 # endif
288 # if (defined __cplusplus && ! defined _STDLIB_H \
289 && ! ((defined YYMALLOC || defined malloc) \
290 && (defined YYFREE || defined free)))
291 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
292 # ifndef _STDLIB_H
293 # define _STDLIB_H 1
294 # endif
295 # endif
296 # ifndef YYMALLOC
297 # define YYMALLOC malloc
298 # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
299 || defined __cplusplus || defined _MSC_VER)
300 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
301 # endif
302 # endif
303 # ifndef YYFREE
304 # define YYFREE free
305 # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
306 || defined __cplusplus || defined _MSC_VER)
307 void free (void *); /* INFRINGES ON USER NAME SPACE */
308 # endif
309 # endif
310 # endif
311 #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
312
313
314 #if (! defined yyoverflow \
315 && (! defined __cplusplus \
316 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
317
318 /* A type that is properly aligned for any stack member. */
319 union yyalloc
320 {
321 yytype_int16 yyss;
322 YYSTYPE yyvs;
323 };
324
325 /* The size of the maximum gap between one aligned stack and the next. */
326 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
327
328 /* The size of an array large to enough to hold all stacks, each with
329 N elements. */
330 # define YYSTACK_BYTES(N) \
331 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
332 + YYSTACK_GAP_MAXIMUM)
333
334 /* Copy COUNT objects from FROM to TO. The source and destination do
335 not overlap. */
336 # ifndef YYCOPY
337 # if defined __GNUC__ && 1 < __GNUC__
338 # define YYCOPY(To, From, Count) \
339 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
340 # else
341 # define YYCOPY(To, From, Count) \
342 do \
343 { \
344 YYSIZE_T yyi; \
345 for (yyi = 0; yyi < (Count); yyi++) \
346 (To)[yyi] = (From)[yyi]; \
347 } \
348 while (YYID (0))
349 # endif
350 # endif
351
352 /* Relocate STACK from its old location to the new one. The
353 local variables YYSIZE and YYSTACKSIZE give the old and new number of
354 elements in the stack, and YYPTR gives the new location of the
355 stack. Advance YYPTR to a properly aligned location for the next
356 stack. */
357 # define YYSTACK_RELOCATE(Stack) \
358 do \
359 { \
360 YYSIZE_T yynewbytes; \
361 YYCOPY (&yyptr->Stack, Stack, yysize); \
362 Stack = &yyptr->Stack; \
363 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
364 yyptr += yynewbytes / sizeof (*yyptr); \
365 } \
366 while (YYID (0))
367
368 #endif
369
370 /* YYFINAL -- State number of the termination state. */
371 #define YYFINAL 11
372 /* YYLAST -- Last index in YYTABLE. */
373 #define YYLAST 15
374
375 /* YYNTOKENS -- Number of terminals. */
376 #define YYNTOKENS 11
377 /* YYNNTS -- Number of nonterminals. */
378 #define YYNNTS 7
379 /* YYNRULES -- Number of rules. */
380 #define YYNRULES 12
381 /* YYNRULES -- Number of states. */
382 #define YYNSTATES 20
383
384 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
385 #define YYUNDEFTOK 2
386 #define YYMAXUTOK 265
387
388 #define YYTRANSLATE(YYX) \
389 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
390
391 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
392 static const yytype_uint8 yytranslate[] =
393 {
394 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
395 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
396 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
397 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
398 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
399 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
400 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
401 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
402 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
403 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
404 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
405 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
406 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
407 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
408 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
409 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
410 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
411 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
412 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
413 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
414 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
415 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
416 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
417 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
418 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
419 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
420 5, 6, 7, 8, 9, 10
421 };
422
423 #if YYDEBUG
424 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
425 YYRHS. */
426 static const yytype_uint8 yyprhs[] =
427 {
428 0, 0, 3, 5, 8, 10, 12, 14, 17, 20,
429 22, 29, 35
430 };
431
432 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
433 static const yytype_int8 yyrhs[] =
434 {
435 12, 0, -1, 13, -1, 12, 13, -1, 14, -1,
436 16, -1, 17, -1, 3, 9, -1, 15, 10, -1,
437 10, -1, 5, 9, 6, 7, 15, 7, -1, 5,
438 9, 6, 7, 7, -1, 4, -1
439 };
440
441 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
442 static const yytype_uint8 yyrline[] =
443 {
444 0, 40, 40, 40, 41, 41, 41, 42, 43, 43,
445 44, 58, 60
446 };
447 #endif
448
449 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
450 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
451 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
452 static const char *const yytname[] =
453 {
454 "$end", "error", "$undefined", "ERROR_TABLE_START", "ERROR_TABLE_END",
455 "ERROR_CODE_START", "COMMA", "QUOTE", "EMPTY", "TOKEN", "LITERAL",
456 "$accept", "statements", "statement", "table_start", "literal",
457 "error_code", "table_end", 0
458 };
459 #endif
460
461 # ifdef YYPRINT
462 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
463 token YYLEX-NUM. */
464 static const yytype_uint16 yytoknum[] =
465 {
466 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
467 265
468 };
469 # endif
470
471 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
472 static const yytype_uint8 yyr1[] =
473 {
474 0, 11, 12, 12, 13, 13, 13, 14, 15, 15,
475 16, 16, 17
476 };
477
478 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
479 static const yytype_uint8 yyr2[] =
480 {
481 0, 2, 1, 2, 1, 1, 1, 2, 2, 1,
482 6, 5, 1
483 };
484
485 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
486 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
487 means the default is an error. */
488 static const yytype_uint8 yydefact[] =
489 {
490 0, 0, 12, 0, 0, 2, 4, 5, 6, 7,
491 0, 1, 3, 0, 0, 11, 9, 0, 10, 8
492 };
493
494 /* YYDEFGOTO[NTERM-NUM]. */
495 static const yytype_int8 yydefgoto[] =
496 {
497 -1, 4, 5, 6, 17, 7, 8
498 };
499
500 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
501 STATE-NUM. */
502 #define YYPACT_NINF -9
503 static const yytype_int8 yypact[] =
504 {
505 9, -8, -9, -7, 0, -9, -9, -9, -9, -9,
506 4, -9, -9, 8, -1, -9, -9, 1, -9, -9
507 };
508
509 /* YYPGOTO[NTERM-NUM]. */
510 static const yytype_int8 yypgoto[] =
511 {
512 -9, -9, 3, -9, -9, -9, -9
513 };
514
515 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
516 positive, shift that token. If negative, reduce the rule which
517 number is the opposite. If zero, do what YYDEFACT says.
518 If YYTABLE_NINF, syntax error. */
519 #define YYTABLE_NINF -1
520 static const yytype_uint8 yytable[] =
521 {
522 11, 9, 10, 1, 2, 3, 15, 12, 18, 16,
523 13, 19, 1, 2, 3, 14
524 };
525
526 static const yytype_uint8 yycheck[] =
527 {
528 0, 9, 9, 3, 4, 5, 7, 4, 7, 10,
529 6, 10, 3, 4, 5, 7
530 };
531
532 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
533 symbol of state STATE-NUM. */
534 static const yytype_uint8 yystos[] =
535 {
536 0, 3, 4, 5, 12, 13, 14, 16, 17, 9,
537 9, 0, 13, 6, 7, 7, 10, 15, 7, 10
538 };
539
540 #define yyerrok (yyerrstatus = 0)
541 #define yyclearin (yychar = YYEMPTY)
542 #define YYEMPTY (-2)
543 #define YYEOF 0
544
545 #define YYACCEPT goto yyacceptlab
546 #define YYABORT goto yyabortlab
547 #define YYERROR goto yyerrorlab
548
549
550 /* Like YYERROR except do call yyerror. This remains here temporarily
551 to ease the transition to the new meaning of YYERROR, for GCC.
552 Once GCC version 2 has supplanted version 1, this can go. */
553
554 #define YYFAIL goto yyerrlab
555
556 #define YYRECOVERING() (!!yyerrstatus)
557
558 #define YYBACKUP(Token, Value) \
559 do \
560 if (yychar == YYEMPTY && yylen == 1) \
561 { \
562 yychar = (Token); \
563 yylval = (Value); \
564 yytoken = YYTRANSLATE (yychar); \
565 YYPOPSTACK (1); \
566 goto yybackup; \
567 } \
568 else \
569 { \
570 yyerror (YY_("syntax error: cannot back up")); \
571 YYERROR; \
572 } \
573 while (YYID (0))
574
575
576 #define YYTERROR 1
577 #define YYERRCODE 256
578
579
580 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
581 If N is 0, then set CURRENT to the empty location which ends
582 the previous symbol: RHS[0] (always defined). */
583
584 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
585 #ifndef YYLLOC_DEFAULT
586 # define YYLLOC_DEFAULT(Current, Rhs, N) \
587 do \
588 if (YYID (N)) \
589 { \
590 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
591 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
592 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
593 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
594 } \
595 else \
596 { \
597 (Current).first_line = (Current).last_line = \
598 YYRHSLOC (Rhs, 0).last_line; \
599 (Current).first_column = (Current).last_column = \
600 YYRHSLOC (Rhs, 0).last_column; \
601 } \
602 while (YYID (0))
603 #endif
604
605
606 /* YY_LOCATION_PRINT -- Print the location on the stream.
607 This macro was not mandated originally: define only if we know
608 we won't break user code: when these are the locations we know. */
609
610 #ifndef YY_LOCATION_PRINT
611 # if YYLTYPE_IS_TRIVIAL
612 # define YY_LOCATION_PRINT(File, Loc) \
613 fprintf (File, "%d.%d-%d.%d", \
614 (Loc).first_line, (Loc).first_column, \
615 (Loc).last_line, (Loc).last_column)
616 # else
617 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
618 # endif
619 #endif
620
621
622 /* YYLEX -- calling `yylex' with the right arguments. */
623
624 #ifdef YYLEX_PARAM
625 # define YYLEX yylex (YYLEX_PARAM)
626 #else
627 # define YYLEX yylex ()
628 #endif
629
630 /* Enable debugging if requested. */
631 #if YYDEBUG
632
633 # ifndef YYFPRINTF
634 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
635 # define YYFPRINTF fprintf
636 # endif
637
638 # define YYDPRINTF(Args) \
639 do { \
640 if (yydebug) \
641 YYFPRINTF Args; \
642 } while (YYID (0))
643
644 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
645 do { \
646 if (yydebug) \
647 { \
648 YYFPRINTF (stderr, "%s ", Title); \
649 yy_symbol_print (stderr, \
650 Type, Value); \
651 YYFPRINTF (stderr, "\n"); \
652 } \
653 } while (YYID (0))
654
655
656 /*--------------------------------.
657 | Print this symbol on YYOUTPUT. |
658 `--------------------------------*/
659
660 /*ARGSUSED*/
661 #if (defined __STDC__ || defined __C99__FUNC__ \
662 || defined __cplusplus || defined _MSC_VER)
663 static void
664 yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
665 #else
666 static void
667 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
668 FILE *yyoutput;
669 int yytype;
670 YYSTYPE const * const yyvaluep;
671 #endif
672 {
673 if (!yyvaluep)
674 return;
675 # ifdef YYPRINT
676 if (yytype < YYNTOKENS)
677 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
678 # else
679 YYUSE (yyoutput);
680 # endif
681 switch (yytype)
682 {
683 default:
684 break;
685 }
686 }
687
688
689 /*--------------------------------.
690 | Print this symbol on YYOUTPUT. |
691 `--------------------------------*/
692
693 #if (defined __STDC__ || defined __C99__FUNC__ \
694 || defined __cplusplus || defined _MSC_VER)
695 static void
696 yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
697 #else
698 static void
699 yy_symbol_print (yyoutput, yytype, yyvaluep)
700 FILE *yyoutput;
701 int yytype;
702 YYSTYPE const * const yyvaluep;
703 #endif
704 {
705 if (yytype < YYNTOKENS)
706 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
707 else
708 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
709
710 yy_symbol_value_print (yyoutput, yytype, yyvaluep);
711 YYFPRINTF (yyoutput, ")");
712 }
713
714 /*------------------------------------------------------------------.
715 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
716 | TOP (included). |
717 `------------------------------------------------------------------*/
718
719 #if (defined __STDC__ || defined __C99__FUNC__ \
720 || defined __cplusplus || defined _MSC_VER)
721 static void
722 yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
723 #else
724 static void
725 yy_stack_print (bottom, top)
726 yytype_int16 *bottom;
727 yytype_int16 *top;
728 #endif
729 {
730 YYFPRINTF (stderr, "Stack now");
731 for (; bottom <= top; ++bottom)
732 YYFPRINTF (stderr, " %d", *bottom);
733 YYFPRINTF (stderr, "\n");
734 }
735
736 # define YY_STACK_PRINT(Bottom, Top) \
737 do { \
738 if (yydebug) \
739 yy_stack_print ((Bottom), (Top)); \
740 } while (YYID (0))
741
742
743 /*------------------------------------------------.
744 | Report that the YYRULE is going to be reduced. |
745 `------------------------------------------------*/
746
747 #if (defined __STDC__ || defined __C99__FUNC__ \
748 || defined __cplusplus || defined _MSC_VER)
749 static void
750 yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
751 #else
752 static void
753 yy_reduce_print (yyvsp, yyrule)
754 YYSTYPE *yyvsp;
755 int yyrule;
756 #endif
757 {
758 int yynrhs = yyr2[yyrule];
759 int yyi;
760 unsigned long int yylno = yyrline[yyrule];
761 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
762 yyrule - 1, yylno);
763 /* The symbols being reduced. */
764 for (yyi = 0; yyi < yynrhs; yyi++)
765 {
766 fprintf (stderr, " $%d = ", yyi + 1);
767 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
768 &(yyvsp[(yyi + 1) - (yynrhs)])
769 );
770 fprintf (stderr, "\n");
771 }
772 }
773
774 # define YY_REDUCE_PRINT(Rule) \
775 do { \
776 if (yydebug) \
777 yy_reduce_print (yyvsp, Rule); \
778 } while (YYID (0))
779
780 /* Nonzero means print parse trace. It is left uninitialized so that
781 multiple parsers can coexist. */
782 int yydebug;
783 #else /* !YYDEBUG */
784 # define YYDPRINTF(Args)
785 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
786 # define YY_STACK_PRINT(Bottom, Top)
787 # define YY_REDUCE_PRINT(Rule)
788 #endif /* !YYDEBUG */
789
790
791 /* YYINITDEPTH -- initial size of the parser's stacks. */
792 #ifndef YYINITDEPTH
793 # define YYINITDEPTH 200
794 #endif
795
796 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
797 if the built-in stack extension method is used).
798
799 Do not make this value too large; the results are undefined if
800 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
801 evaluated with infinite-precision integer arithmetic. */
802
803 #ifndef YYMAXDEPTH
804 # define YYMAXDEPTH 10000
805 #endif
806
807
808
809 #if YYERROR_VERBOSE
810
811 # ifndef yystrlen
812 # if defined __GLIBC__ && defined _STRING_H
813 # define yystrlen strlen
814 # else
815 /* Return the length of YYSTR. */
816 #if (defined __STDC__ || defined __C99__FUNC__ \
817 || defined __cplusplus || defined _MSC_VER)
818 static YYSIZE_T
819 yystrlen (const char *yystr)
820 #else
821 static YYSIZE_T
822 yystrlen (yystr)
823 const char *yystr;
824 #endif
825 {
826 YYSIZE_T yylen;
827 for (yylen = 0; yystr[yylen]; yylen++)
828 continue;
829 return yylen;
830 }
831 # endif
832 # endif
833
834 # ifndef yystpcpy
835 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
836 # define yystpcpy stpcpy
837 # else
838 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
839 YYDEST. */
840 #if (defined __STDC__ || defined __C99__FUNC__ \
841 || defined __cplusplus || defined _MSC_VER)
842 static char *
843 yystpcpy (char *yydest, const char *yysrc)
844 #else
845 static char *
846 yystpcpy (yydest, yysrc)
847 char *yydest;
848 const char *yysrc;
849 #endif
850 {
851 char *yyd = yydest;
852 const char *yys = yysrc;
853
854 while ((*yyd++ = *yys++) != '\0')
855 continue;
856
857 return yyd - 1;
858 }
859 # endif
860 # endif
861
862 # ifndef yytnamerr
863 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
864 quotes and backslashes, so that it's suitable for yyerror. The
865 heuristic is that double-quoting is unnecessary unless the string
866 contains an apostrophe, a comma, or backslash (other than
867 backslash-backslash). YYSTR is taken from yytname. If YYRES is
868 null, do not copy; instead, return the length of what the result
869 would have been. */
870 static YYSIZE_T
871 yytnamerr (char *yyres, const char *yystr)
872 {
873 if (*yystr == '"')
874 {
875 YYSIZE_T yyn = 0;
876 char const *yyp = yystr;
877
878 for (;;)
879 switch (*++yyp)
880 {
881 case '\'':
882 case ',':
883 goto do_not_strip_quotes;
884
885 case '\\':
886 if (*++yyp != '\\')
887 goto do_not_strip_quotes;
888 /* Fall through. */
889 default:
890 if (yyres)
891 yyres[yyn] = *yyp;
892 yyn++;
893 break;
894
895 case '"':
896 if (yyres)
897 yyres[yyn] = '\0';
898 return yyn;
899 }
900 do_not_strip_quotes: ;
901 }
902
903 if (! yyres)
904 return yystrlen (yystr);
905
906 return yystpcpy (yyres, yystr) - yyres;
907 }
908 # endif
909
910 /* Copy into YYRESULT an error message about the unexpected token
911 YYCHAR while in state YYSTATE. Return the number of bytes copied,
912 including the terminating null byte. If YYRESULT is null, do not
913 copy anything; just return the number of bytes that would be
914 copied. As a special case, return 0 if an ordinary "syntax error"
915 message will do. Return YYSIZE_MAXIMUM if overflow occurs during
916 size calculation. */
917 static YYSIZE_T
918 yysyntax_error (char *yyresult, int yystate, int yychar)
919 {
920 int yyn = yypact[yystate];
921
922 if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
923 return 0;
924 else
925 {
926 int yytype = YYTRANSLATE (yychar);
927 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
928 YYSIZE_T yysize = yysize0;
929 YYSIZE_T yysize1;
930 int yysize_overflow = 0;
931 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
932 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
933 int yyx;
934
935 # if 0
936 /* This is so xgettext sees the translatable formats that are
937 constructed on the fly. */
938 YY_("syntax error, unexpected %s");
939 YY_("syntax error, unexpected %s, expecting %s");
940 YY_("syntax error, unexpected %s, expecting %s or %s");
941 YY_("syntax error, unexpected %s, expecting %s or %s or %s");
942 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
943 # endif
944 char *yyfmt;
945 char const *yyf;
946 static char const yyunexpected[] = "syntax error, unexpected %s";
947 static char const yyexpecting[] = ", expecting %s";
948 static char const yyor[] = " or %s";
949 char yyformat[sizeof yyunexpected
950 + sizeof yyexpecting - 1
951 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
952 * (sizeof yyor - 1))];
953 char const *yyprefix = yyexpecting;
954
955 /* Start YYX at -YYN if negative to avoid negative indexes in
956 YYCHECK. */
957 int yyxbegin = yyn < 0 ? -yyn : 0;
958
959 /* Stay within bounds of both yycheck and yytname. */
960 int yychecklim = YYLAST - yyn + 1;
961 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
962 int yycount = 1;
963
964 yyarg[0] = yytname[yytype];
965 yyfmt = yystpcpy (yyformat, yyunexpected);
966
967 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
968 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
969 {
970 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
971 {
972 yycount = 1;
973 yysize = yysize0;
974 yyformat[sizeof yyunexpected - 1] = '\0';
975 break;
976 }
977 yyarg[yycount++] = yytname[yyx];
978 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
979 yysize_overflow |= (yysize1 < yysize);
980 yysize = yysize1;
981 yyfmt = yystpcpy (yyfmt, yyprefix);
982 yyprefix = yyor;
983 }
984
985 yyf = YY_(yyformat);
986 yysize1 = yysize + yystrlen (yyf);
987 yysize_overflow |= (yysize1 < yysize);
988 yysize = yysize1;
989
990 if (yysize_overflow)
991 return YYSIZE_MAXIMUM;
992
993 if (yyresult)
994 {
995 /* Avoid sprintf, as that infringes on the user's name space.
996 Don't have undefined behavior even if the translation
997 produced a string with the wrong number of "%s"s. */
998 char *yyp = yyresult;
999 int yyi = 0;
1000 while ((*yyp = *yyf) != '\0')
1001 {
1002 if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
1003 {
1004 yyp += yytnamerr (yyp, yyarg[yyi++]);
1005 yyf += 2;
1006 }
1007 else
1008 {
1009 yyp++;
1010 yyf++;
1011 }
1012 }
1013 }
1014 return yysize;
1015 }
1016 }
1017 #endif /* YYERROR_VERBOSE */
1018
1019
1020 /*-----------------------------------------------.
1021 | Release the memory associated to this symbol. |
1022 `-----------------------------------------------*/
1023
1024 /*ARGSUSED*/
1025 #if (defined __STDC__ || defined __C99__FUNC__ \
1026 || defined __cplusplus || defined _MSC_VER)
1027 static void
1028 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
1029 #else
1030 static void
1031 yydestruct (yymsg, yytype, yyvaluep)
1032 const char *yymsg;
1033 int yytype;
1034 YYSTYPE *yyvaluep;
1035 #endif
1036 {
1037 YYUSE (yyvaluep);
1038
1039 if (!yymsg)
1040 yymsg = "Deleting";
1041 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1042
1043 switch (yytype)
1044 {
1045
1046 default:
1047 break;
1048 }
1049 }
1050
1051
1052 /* Prevent warnings from -Wmissing-prototypes. */
1053
1054 #ifdef YYPARSE_PARAM
1055 #if defined __STDC__ || defined __cplusplus
1056 int yyparse (void *YYPARSE_PARAM);
1057 #else
1058 int yyparse ();
1059 #endif
1060 #else /* ! YYPARSE_PARAM */
1061 #if defined __STDC__ || defined __cplusplus
1062 int yyparse (void);
1063 #else
1064 int yyparse ();
1065 #endif
1066 #endif /* ! YYPARSE_PARAM */
1067
1068
1069
1070 /* The look-ahead symbol. */
1071 int yychar;
1072
1073 /* The semantic value of the look-ahead symbol. */
1074 YYSTYPE yylval;
1075
1076 /* Number of syntax errors so far. */
1077 int yynerrs;
1078
1079
1080
1081 /*----------.
1082 | yyparse. |
1083 `----------*/
1084
1085 #ifdef YYPARSE_PARAM
1086 #if (defined __STDC__ || defined __C99__FUNC__ \
1087 || defined __cplusplus || defined _MSC_VER)
1088 int
1089 yyparse (void *YYPARSE_PARAM)
1090 #else
1091 int
1092 yyparse (YYPARSE_PARAM)
1093 void *YYPARSE_PARAM;
1094 #endif
1095 #else /* ! YYPARSE_PARAM */
1096 #if (defined __STDC__ || defined __C99__FUNC__ \
1097 || defined __cplusplus || defined _MSC_VER)
1098 int
1099 yyparse (void)
1100 #else
1101 int
1102 yyparse ()
1103
1104 #endif
1105 #endif
1106 {
1107
1108 int yystate;
1109 int yyn;
1110 int yyresult;
1111 /* Number of tokens to shift before error messages enabled. */
1112 int yyerrstatus;
1113 /* Look-ahead token as an internal (translated) token number. */
1114 int yytoken = 0;
1115 #if YYERROR_VERBOSE
1116 /* Buffer for error messages, and its allocated size. */
1117 char yymsgbuf[128];
1118 char *yymsg = yymsgbuf;
1119 YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
1120 #endif
1121
1122 /* Three stacks and their tools:
1123 `yyss': related to states,
1124 `yyvs': related to semantic values,
1125 `yyls': related to locations.
1126
1127 Refer to the stacks thru separate pointers, to allow yyoverflow
1128 to reallocate them elsewhere. */
1129
1130 /* The state stack. */
1131 yytype_int16 yyssa[YYINITDEPTH];
1132 yytype_int16 *yyss = yyssa;
1133 yytype_int16 *yyssp;
1134
1135 /* The semantic value stack. */
1136 YYSTYPE yyvsa[YYINITDEPTH];
1137 YYSTYPE *yyvs = yyvsa;
1138 YYSTYPE *yyvsp;
1139
1140
1141
1142 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1143
1144 YYSIZE_T yystacksize = YYINITDEPTH;
1145
1146 /* The variables used to return semantic value and location from the
1147 action routines. */
1148 YYSTYPE yyval;
1149
1150
1151 /* The number of symbols on the RHS of the reduced rule.
1152 Keep to zero when no symbol should be popped. */
1153 int yylen = 0;
1154
1155 YYDPRINTF ((stderr, "Starting parse\n"));
1156
1157 yystate = 0;
1158 yyerrstatus = 0;
1159 yynerrs = 0;
1160 yychar = YYEMPTY; /* Cause a token to be read. */
1161
1162 /* Initialize stack pointers.
1163 Waste one element of value and location stack
1164 so that they stay on the same level as the state stack.
1165 The wasted elements are never initialized. */
1166
1167 yyssp = yyss;
1168 yyvsp = yyvs;
1169
1170 goto yysetstate;
1171
1172 /*------------------------------------------------------------.
1173 | yynewstate -- Push a new state, which is found in yystate. |
1174 `------------------------------------------------------------*/
1175 yynewstate:
1176 /* In all cases, when you get here, the value and location stacks
1177 have just been pushed. So pushing a state here evens the stacks. */
1178 yyssp++;
1179
1180 yysetstate:
1181 *yyssp = yystate;
1182
1183 if (yyss + yystacksize - 1 <= yyssp)
1184 {
1185 /* Get the current used size of the three stacks, in elements. */
1186 YYSIZE_T yysize = yyssp - yyss + 1;
1187
1188 #ifdef yyoverflow
1189 {
1190 /* Give user a chance to reallocate the stack. Use copies of
1191 these so that the &'s don't force the real ones into
1192 memory. */
1193 YYSTYPE *yyvs1 = yyvs;
1194 yytype_int16 *yyss1 = yyss;
1195
1196
1197 /* Each stack pointer address is followed by the size of the
1198 data in use in that stack, in bytes. This used to be a
1199 conditional around just the two extra args, but that might
1200 be undefined if yyoverflow is a macro. */
1201 yyoverflow (YY_("memory exhausted"),
1202 &yyss1, yysize * sizeof (*yyssp),
1203 &yyvs1, yysize * sizeof (*yyvsp),
1204
1205 &yystacksize);
1206
1207 yyss = yyss1;
1208 yyvs = yyvs1;
1209 }
1210 #else /* no yyoverflow */
1211 # ifndef YYSTACK_RELOCATE
1212 goto yyexhaustedlab;
1213 # else
1214 /* Extend the stack our own way. */
1215 if (YYMAXDEPTH <= yystacksize)
1216 goto yyexhaustedlab;
1217 yystacksize *= 2;
1218 if (YYMAXDEPTH < yystacksize)
1219 yystacksize = YYMAXDEPTH;
1220
1221 {
1222 yytype_int16 *yyss1 = yyss;
1223 union yyalloc *yyptr =
1224 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
1225 if (! yyptr)
1226 goto yyexhaustedlab;
1227 YYSTACK_RELOCATE (yyss);
1228 YYSTACK_RELOCATE (yyvs);
1229
1230 # undef YYSTACK_RELOCATE
1231 if (yyss1 != yyssa)
1232 YYSTACK_FREE (yyss1);
1233 }
1234 # endif
1235 #endif /* no yyoverflow */
1236
1237 yyssp = yyss + yysize - 1;
1238 yyvsp = yyvs + yysize - 1;
1239
1240
1241 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
1242 (unsigned long int) yystacksize));
1243
1244 if (yyss + yystacksize - 1 <= yyssp)
1245 YYABORT;
1246 }
1247
1248 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1249
1250 goto yybackup;
1251
1252 /*-----------.
1253 | yybackup. |
1254 `-----------*/
1255 yybackup:
1256
1257 /* Do appropriate processing given the current state. Read a
1258 look-ahead token if we need one and don't already have one. */
1259
1260 /* First try to decide what to do without reference to look-ahead token. */
1261 yyn = yypact[yystate];
1262 if (yyn == YYPACT_NINF)
1263 goto yydefault;
1264
1265 /* Not known => get a look-ahead token if don't already have one. */
1266
1267 /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
1268 if (yychar == YYEMPTY)
1269 {
1270 YYDPRINTF ((stderr, "Reading a token: "));
1271 yychar = YYLEX;
1272 }
1273
1274 if (yychar <= YYEOF)
1275 {
1276 yychar = yytoken = YYEOF;
1277 YYDPRINTF ((stderr, "Now at end of input.\n"));
1278 }
1279 else
1280 {
1281 yytoken = YYTRANSLATE (yychar);
1282 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
1283 }
1284
1285 /* If the proper action on seeing token YYTOKEN is to reduce or to
1286 detect an error, take that action. */
1287 yyn += yytoken;
1288 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1289 goto yydefault;
1290 yyn = yytable[yyn];
1291 if (yyn <= 0)
1292 {
1293 if (yyn == 0 || yyn == YYTABLE_NINF)
1294 goto yyerrlab;
1295 yyn = -yyn;
1296 goto yyreduce;
1297 }
1298
1299 if (yyn == YYFINAL)
1300 YYACCEPT;
1301
1302 /* Count tokens shifted since error; after three, turn off error
1303 status. */
1304 if (yyerrstatus)
1305 yyerrstatus--;
1306
1307 /* Shift the look-ahead token. */
1308 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
1309
1310 /* Discard the shifted token unless it is eof. */
1311 if (yychar != YYEOF)
1312 yychar = YYEMPTY;
1313
1314 yystate = yyn;
1315 *++yyvsp = yylval;
1316
1317 goto yynewstate;
1318
1319
1320 /*-----------------------------------------------------------.
1321 | yydefault -- do the default action for the current state. |
1322 `-----------------------------------------------------------*/
1323 yydefault:
1324 yyn = yydefact[yystate];
1325 if (yyn == 0)
1326 goto yyerrlab;
1327 goto yyreduce;
1328
1329
1330 /*-----------------------------.
1331 | yyreduce -- Do a reduction. |
1332 `-----------------------------*/
1333 yyreduce:
1334 /* yyn is the number of a rule to reduce with. */
1335 yylen = yyr2[yyn];
1336
1337 /* If YYLEN is nonzero, implement the default value of the action:
1338 `$$ = $1'.
1339
1340 Otherwise, the following line sets YYVAL to garbage.
1341 This behavior is undocumented and Bison
1342 users should not rely upon it. Assigning to YYVAL
1343 unconditionally makes the parser a bit smaller, and it avoids a
1344 GCC warning that YYVAL may be used uninitialized. */
1345 yyval = yyvsp[1-yylen];
1346
1347
1348 YY_REDUCE_PRINT (yyn);
1349 switch (yyn)
1350 {
1351 case 7:
1352 #line 42 "grammar.y"
1353 { table = (yyvsp[(2) - (2)].sval); }
1354 break;
1355
1356 case 8:
1357 #line 43 "grammar.y"
1358 { (yyval.sval) = g_strconcat((yyvsp[(1) - (2)].sval), (yyvsp[(2) - (2)].sval), NULL);}
1359 break;
1360
1361 case 10:
1362 #line 44 "grammar.y"
1363 {
1364 {
1365 gchar **lines;
1366 int i;
1367 const char *p;
1368 /* Find the basename of the current file. */
1369 if (strchr(currentfile, '/') != NULL) {
1370 p = strrchr(currentfile, '/') + 1;
1371 } else {
1372 p = currentfile;
1373 }
1374 printf("\tN_(\"%s\"),\t/* %s:%s:%s */\n", (yyvsp[(5) - (6)].sval), p, table, (yyvsp[(2) - (6)].sval));
1375 }
1376 }
1377 break;
1378
1379 case 11:
1380 #line 58 "grammar.y"
1381 {
1382 }
1383 break;
1384
1385 case 12:
1386 #line 60 "grammar.y"
1387 { table = "unknown"; }
1388 break;
1389
1390
1391 /* Line 1267 of yacc.c. */
1392 #line 1394 "grammar.c"
1393 default: break;
1394 }
1395 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
1396
1397 YYPOPSTACK (yylen);
1398 yylen = 0;
1399 YY_STACK_PRINT (yyss, yyssp);
1400
1401 *++yyvsp = yyval;
1402
1403
1404 /* Now `shift' the result of the reduction. Determine what state
1405 that goes to, based on the state we popped back to and the rule
1406 number reduced by. */
1407
1408 yyn = yyr1[yyn];
1409
1410 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
1411 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
1412 yystate = yytable[yystate];
1413 else
1414 yystate = yydefgoto[yyn - YYNTOKENS];
1415
1416 goto yynewstate;
1417
1418
1419 /*------------------------------------.
1420 | yyerrlab -- here on detecting error |
1421 `------------------------------------*/
1422 yyerrlab:
1423 /* If not already recovering from an error, report this error. */
1424 if (!yyerrstatus)
1425 {
1426 ++yynerrs;
1427 #if ! YYERROR_VERBOSE
1428 yyerror (YY_("syntax error"));
1429 #else
1430 {
1431 YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
1432 if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
1433 {
1434 YYSIZE_T yyalloc = 2 * yysize;
1435 if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
1436 yyalloc = YYSTACK_ALLOC_MAXIMUM;
1437 if (yymsg != yymsgbuf)
1438 YYSTACK_FREE (yymsg);
1439 yymsg = (char *) YYSTACK_ALLOC (yyalloc);
1440 if (yymsg)
1441 yymsg_alloc = yyalloc;
1442 else
1443 {
1444 yymsg = yymsgbuf;
1445 yymsg_alloc = sizeof yymsgbuf;
1446 }
1447 }
1448
1449 if (0 < yysize && yysize <= yymsg_alloc)
1450 {
1451 (void) yysyntax_error (yymsg, yystate, yychar);
1452 yyerror (yymsg);
1453 }
1454 else
1455 {
1456 yyerror (YY_("syntax error"));
1457 if (yysize != 0)
1458 goto yyexhaustedlab;
1459 }
1460 }
1461 #endif
1462 }
1463
1464
1465
1466 if (yyerrstatus == 3)
1467 {
1468 /* If just tried and failed to reuse look-ahead token after an
1469 error, discard it. */
1470
1471 if (yychar <= YYEOF)
1472 {
1473 /* Return failure if at end of input. */
1474 if (yychar == YYEOF)
1475 YYABORT;
1476 }
1477 else
1478 {
1479 yydestruct ("Error: discarding",
1480 yytoken, &yylval);
1481 yychar = YYEMPTY;
1482 }
1483 }
1484
1485 /* Else will try to reuse look-ahead token after shifting the error
1486 token. */
1487 goto yyerrlab1;
1488
1489
1490 /*---------------------------------------------------.
1491 | yyerrorlab -- error raised explicitly by YYERROR. |
1492 `---------------------------------------------------*/
1493 yyerrorlab:
1494
1495 /* Pacify compilers like GCC when the user code never invokes
1496 YYERROR and the label yyerrorlab therefore never appears in user
1497 code. */
1498 if (/*CONSTCOND*/ 0)
1499 goto yyerrorlab;
1500
1501 /* Do not reclaim the symbols of the rule which action triggered
1502 this YYERROR. */
1503 YYPOPSTACK (yylen);
1504 yylen = 0;
1505 YY_STACK_PRINT (yyss, yyssp);
1506 yystate = *yyssp;
1507 goto yyerrlab1;
1508
1509
1510 /*-------------------------------------------------------------.
1511 | yyerrlab1 -- common code for both syntax error and YYERROR. |
1512 `-------------------------------------------------------------*/
1513 yyerrlab1:
1514 yyerrstatus = 3; /* Each real token shifted decrements this. */
1515
1516 for (;;)
1517 {
1518 yyn = yypact[yystate];
1519 if (yyn != YYPACT_NINF)
1520 {
1521 yyn += YYTERROR;
1522 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
1523 {
1524 yyn = yytable[yyn];
1525 if (0 < yyn)
1526 break;
1527 }
1528 }
1529
1530 /* Pop the current state because it cannot handle the error token. */
1531 if (yyssp == yyss)
1532 YYABORT;
1533
1534
1535 yydestruct ("Error: popping",
1536 yystos[yystate], yyvsp);
1537 YYPOPSTACK (1);
1538 yystate = *yyssp;
1539 YY_STACK_PRINT (yyss, yyssp);
1540 }
1541
1542 if (yyn == YYFINAL)
1543 YYACCEPT;
1544
1545 *++yyvsp = yylval;
1546
1547
1548 /* Shift the error token. */
1549 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
1550
1551 yystate = yyn;
1552 goto yynewstate;
1553
1554
1555 /*-------------------------------------.
1556 | yyacceptlab -- YYACCEPT comes here. |
1557 `-------------------------------------*/
1558 yyacceptlab:
1559 yyresult = 0;
1560 goto yyreturn;
1561
1562 /*-----------------------------------.
1563 | yyabortlab -- YYABORT comes here. |
1564 `-----------------------------------*/
1565 yyabortlab:
1566 yyresult = 1;
1567 goto yyreturn;
1568
1569 #ifndef yyoverflow
1570 /*-------------------------------------------------.
1571 | yyexhaustedlab -- memory exhaustion comes here. |
1572 `-------------------------------------------------*/
1573 yyexhaustedlab:
1574 yyerror (YY_("memory exhausted"));
1575 yyresult = 2;
1576 /* Fall through. */
1577 #endif
1578
1579 yyreturn:
1580 if (yychar != YYEOF && yychar != YYEMPTY)
1581 yydestruct ("Cleanup: discarding lookahead",
1582 yytoken, &yylval);
1583 /* Do not reclaim the symbols of the rule which action triggered
1584 this YYABORT or YYACCEPT. */
1585 YYPOPSTACK (yylen);
1586 YY_STACK_PRINT (yyss, yyssp);
1587 while (yyssp != yyss)
1588 {
1589 yydestruct ("Cleanup: popping",
1590 yystos[*yyssp], yyvsp);
1591 YYPOPSTACK (1);
1592 }
1593 #ifndef yyoverflow
1594 if (yyss != yyssa)
1595 YYSTACK_FREE (yyss);
1596 #endif
1597 #if YYERROR_VERBOSE
1598 if (yymsg != yymsgbuf)
1599 YYSTACK_FREE (yymsg);
1600 #endif
1601 /* Make sure YYID is used. */
1602 return YYID (yyresult);
1603 }
1604
1605
1606
+0
-81
etpo/grammar.h less more
0 /* A Bison parser, made by GNU Bison 2.3. */
1
2 /* Skeleton interface for Bison's Yacc-like parsers in C
3
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
5 Free Software Foundation, Inc.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
21
22 /* As a special exception, you may create a larger work that contains
23 part or all of the Bison parser skeleton and distribute that work
24 under terms of your choice, so long as that work isn't itself a
25 parser generator using the skeleton or a modified version thereof
26 as a parser skeleton. Alternatively, if you modify or redistribute
27 the parser skeleton itself, you may (at your option) remove this
28 special exception, which will cause the skeleton and the resulting
29 Bison output files to be licensed under the GNU General Public
30 License without this special exception.
31
32 This special exception was added by the Free Software Foundation in
33 version 2.2 of Bison. */
34
35 /* Tokens. */
36 #ifndef YYTOKENTYPE
37 # define YYTOKENTYPE
38 /* Put the tokens into the symbol table, so that GDB and other debuggers
39 know about them. */
40 enum yytokentype {
41 ERROR_TABLE_START = 258,
42 ERROR_TABLE_END = 259,
43 ERROR_CODE_START = 260,
44 COMMA = 261,
45 QUOTE = 262,
46 EMPTY = 263,
47 TOKEN = 264,
48 LITERAL = 265
49 };
50 #endif
51 /* Tokens. */
52 #define ERROR_TABLE_START 258
53 #define ERROR_TABLE_END 259
54 #define ERROR_CODE_START 260
55 #define COMMA 261
56 #define QUOTE 262
57 #define EMPTY 263
58 #define TOKEN 264
59 #define LITERAL 265
60
61
62
63
64 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
65 typedef union YYSTYPE
66 #line 26 "grammar.y"
67 {
68 char *sval;
69 int ival;
70 }
71 /* Line 1489 of yacc.c. */
72 #line 74 "grammar.h"
73 YYSTYPE;
74 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
75 # define YYSTYPE_IS_DECLARED 1
76 # define YYSTYPE_IS_TRIVIAL 1
77 #endif
78
79 extern YYSTYPE yylval;
80
+0
-1969
etpo/lexer.c less more
0
1 #line 3 "lexer.c"
2
3 #define YY_INT_ALIGNED short int
4
5 /* A lexical scanner generated by flex */
6
7 #define FLEX_SCANNER
8 #define YY_FLEX_MAJOR_VERSION 2
9 #define YY_FLEX_MINOR_VERSION 5
10 #define YY_FLEX_SUBMINOR_VERSION 35
11 #if YY_FLEX_SUBMINOR_VERSION > 0
12 #define FLEX_BETA
13 #endif
14
15 /* First, we deal with platform-specific or compiler-specific issues. */
16
17 /* begin standard C headers. */
18 #include <stdio.h>
19 #include <string.h>
20 #include <errno.h>
21 #include <stdlib.h>
22
23 /* end standard C headers. */
24
25 /* flex integer type definitions */
26
27 #ifndef FLEXINT_H
28 #define FLEXINT_H
29
30 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
31
32 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
33
34 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
35 * if you want the limit (max/min) macros for int types.
36 */
37 #ifndef __STDC_LIMIT_MACROS
38 #define __STDC_LIMIT_MACROS 1
39 #endif
40
41 #include <inttypes.h>
42 typedef int8_t flex_int8_t;
43 typedef uint8_t flex_uint8_t;
44 typedef int16_t flex_int16_t;
45 typedef uint16_t flex_uint16_t;
46 typedef int32_t flex_int32_t;
47 typedef uint32_t flex_uint32_t;
48 #else
49 typedef signed char flex_int8_t;
50 typedef short int flex_int16_t;
51 typedef int flex_int32_t;
52 typedef unsigned char flex_uint8_t;
53 typedef unsigned short int flex_uint16_t;
54 typedef unsigned int flex_uint32_t;
55
56 /* Limits of integral types. */
57 #ifndef INT8_MIN
58 #define INT8_MIN (-128)
59 #endif
60 #ifndef INT16_MIN
61 #define INT16_MIN (-32767-1)
62 #endif
63 #ifndef INT32_MIN
64 #define INT32_MIN (-2147483647-1)
65 #endif
66 #ifndef INT8_MAX
67 #define INT8_MAX (127)
68 #endif
69 #ifndef INT16_MAX
70 #define INT16_MAX (32767)
71 #endif
72 #ifndef INT32_MAX
73 #define INT32_MAX (2147483647)
74 #endif
75 #ifndef UINT8_MAX
76 #define UINT8_MAX (255U)
77 #endif
78 #ifndef UINT16_MAX
79 #define UINT16_MAX (65535U)
80 #endif
81 #ifndef UINT32_MAX
82 #define UINT32_MAX (4294967295U)
83 #endif
84
85 #endif /* ! C99 */
86
87 #endif /* ! FLEXINT_H */
88
89 #ifdef __cplusplus
90
91 /* The "const" storage-class-modifier is valid. */
92 #define YY_USE_CONST
93
94 #else /* ! __cplusplus */
95
96 /* C99 requires __STDC__ to be defined as 1. */
97 #if defined (__STDC__)
98
99 #define YY_USE_CONST
100
101 #endif /* defined (__STDC__) */
102 #endif /* ! __cplusplus */
103
104 #ifdef YY_USE_CONST
105 #define yyconst const
106 #else
107 #define yyconst
108 #endif
109
110 /* Returned upon end-of-file. */
111 #define YY_NULL 0
112
113 /* Promotes a possibly negative, possibly signed char to an unsigned
114 * integer for use as an array index. If the signed char is negative,
115 * we want to instead treat it as an 8-bit unsigned char, hence the
116 * double cast.
117 */
118 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
119
120 /* Enter a start condition. This macro really ought to take a parameter,
121 * but we do it the disgusting crufty way forced on us by the ()-less
122 * definition of BEGIN.
123 */
124 #define BEGIN (yy_start) = 1 + 2 *
125
126 /* Translate the current start state into a value that can be later handed
127 * to BEGIN to return to the state. The YYSTATE alias is for lex
128 * compatibility.
129 */
130 #define YY_START (((yy_start) - 1) / 2)
131 #define YYSTATE YY_START
132
133 /* Action number for EOF rule of a given start state. */
134 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
135
136 /* Special action meaning "start processing a new file". */
137 #define YY_NEW_FILE yyrestart(yyin )
138
139 #define YY_END_OF_BUFFER_CHAR 0
140
141 /* Size of default input buffer. */
142 #ifndef YY_BUF_SIZE
143 #define YY_BUF_SIZE 16384
144 #endif
145
146 /* The state buf must be large enough to hold one state per character in the main buffer.
147 */
148 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
149
150 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
151 #define YY_TYPEDEF_YY_BUFFER_STATE
152 typedef struct yy_buffer_state *YY_BUFFER_STATE;
153 #endif
154
155 extern int yyleng;
156
157 extern FILE *yyin, *yyout;
158
159 #define EOB_ACT_CONTINUE_SCAN 0
160 #define EOB_ACT_END_OF_FILE 1
161 #define EOB_ACT_LAST_MATCH 2
162
163 #define YY_LESS_LINENO(n)
164
165 /* Return all but the first "n" matched characters back to the input stream. */
166 #define yyless(n) \
167 do \
168 { \
169 /* Undo effects of setting up yytext. */ \
170 int yyless_macro_arg = (n); \
171 YY_LESS_LINENO(yyless_macro_arg);\
172 *yy_cp = (yy_hold_char); \
173 YY_RESTORE_YY_MORE_OFFSET \
174 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
175 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
176 } \
177 while ( 0 )
178
179 #define unput(c) yyunput( c, (yytext_ptr) )
180
181 #ifndef YY_TYPEDEF_YY_SIZE_T
182 #define YY_TYPEDEF_YY_SIZE_T
183 typedef size_t yy_size_t;
184 #endif
185
186 #ifndef YY_STRUCT_YY_BUFFER_STATE
187 #define YY_STRUCT_YY_BUFFER_STATE
188 struct yy_buffer_state
189 {
190 FILE *yy_input_file;
191
192 char *yy_ch_buf; /* input buffer */
193 char *yy_buf_pos; /* current position in input buffer */
194
195 /* Size of input buffer in bytes, not including room for EOB
196 * characters.
197 */
198 yy_size_t yy_buf_size;
199
200 /* Number of characters read into yy_ch_buf, not including EOB
201 * characters.
202 */
203 int yy_n_chars;
204
205 /* Whether we "own" the buffer - i.e., we know we created it,
206 * and can realloc() it to grow it, and should free() it to
207 * delete it.
208 */
209 int yy_is_our_buffer;
210
211 /* Whether this is an "interactive" input source; if so, and
212 * if we're using stdio for input, then we want to use getc()
213 * instead of fread(), to make sure we stop fetching input after
214 * each newline.
215 */
216 int yy_is_interactive;
217
218 /* Whether we're considered to be at the beginning of a line.
219 * If so, '^' rules will be active on the next match, otherwise
220 * not.
221 */
222 int yy_at_bol;
223
224 int yy_bs_lineno; /**< The line count. */
225 int yy_bs_column; /**< The column count. */
226
227 /* Whether to try to fill the input buffer when we reach the
228 * end of it.
229 */
230 int yy_fill_buffer;
231
232 int yy_buffer_status;
233
234 #define YY_BUFFER_NEW 0
235 #define YY_BUFFER_NORMAL 1
236 /* When an EOF's been seen but there's still some text to process
237 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
238 * shouldn't try reading from the input source any more. We might
239 * still have a bunch of tokens to match, though, because of
240 * possible backing-up.
241 *
242 * When we actually see the EOF, we change the status to "new"
243 * (via yyrestart()), so that the user can continue scanning by
244 * just pointing yyin at a new input file.
245 */
246 #define YY_BUFFER_EOF_PENDING 2
247
248 };
249 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
250
251 /* Stack of input buffers. */
252 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
253 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
254 static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
255
256 /* We provide macros for accessing buffer states in case in the
257 * future we want to put the buffer states in a more general
258 * "scanner state".
259 *
260 * Returns the top of the stack, or NULL.
261 */
262 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
263 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
264 : NULL)
265
266 /* Same as previous macro, but useful when we know that the buffer stack is not
267 * NULL or when we need an lvalue. For internal use only.
268 */
269 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
270
271 /* yy_hold_char holds the character lost when yytext is formed. */
272 static char yy_hold_char;
273 static int yy_n_chars; /* number of characters read into yy_ch_buf */
274 int yyleng;
275
276 /* Points to current character in buffer. */
277 static char *yy_c_buf_p = (char *) 0;
278 static int yy_init = 0; /* whether we need to initialize */
279 static int yy_start = 0; /* start state number */
280
281 /* Flag which is used to allow yywrap()'s to do buffer switches
282 * instead of setting up a fresh yyin. A bit of a hack ...
283 */
284 static int yy_did_buffer_switch_on_eof;
285
286 void yyrestart (FILE *input_file );
287 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
288 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
289 void yy_delete_buffer (YY_BUFFER_STATE b );
290 void yy_flush_buffer (YY_BUFFER_STATE b );
291 void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
292 void yypop_buffer_state (void );
293
294 static void yyensure_buffer_stack (void );
295 static void yy_load_buffer_state (void );
296 static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
297
298 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
299
300 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
301 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
302 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
303
304 void *yyalloc (yy_size_t );
305 void *yyrealloc (void *,yy_size_t );
306 void yyfree (void * );
307
308 #define yy_new_buffer yy_create_buffer
309
310 #define yy_set_interactive(is_interactive) \
311 { \
312 if ( ! YY_CURRENT_BUFFER ){ \
313 yyensure_buffer_stack (); \
314 YY_CURRENT_BUFFER_LVALUE = \
315 yy_create_buffer(yyin,YY_BUF_SIZE ); \
316 } \
317 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
318 }
319
320 #define yy_set_bol(at_bol) \
321 { \
322 if ( ! YY_CURRENT_BUFFER ){\
323 yyensure_buffer_stack (); \
324 YY_CURRENT_BUFFER_LVALUE = \
325 yy_create_buffer(yyin,YY_BUF_SIZE ); \
326 } \
327 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
328 }
329
330 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
331
332 /* Begin user sect3 */
333
334 typedef unsigned char YY_CHAR;
335
336 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
337
338 typedef int yy_state_type;
339
340 extern int yylineno;
341
342 int yylineno = 1;
343
344 extern char *yytext;
345 #define yytext_ptr yytext
346
347 static yy_state_type yy_get_previous_state (void );
348 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
349 static int yy_get_next_buffer (void );
350 static void yy_fatal_error (yyconst char msg[] );
351
352 /* Done after the current pattern has been matched and before the
353 * corresponding action - sets up yytext.
354 */
355 #define YY_DO_BEFORE_ACTION \
356 (yytext_ptr) = yy_bp; \
357 yyleng = (size_t) (yy_cp - yy_bp); \
358 (yy_hold_char) = *yy_cp; \
359 *yy_cp = '\0'; \
360 (yy_c_buf_p) = yy_cp;
361
362 #define YY_NUM_RULES 14
363 #define YY_END_OF_BUFFER 15
364 /* This struct is not used in this scanner,
365 but its presence is necessary. */
366 struct yy_trans_info
367 {
368 flex_int32_t yy_verify;
369 flex_int32_t yy_nxt;
370 };
371 static yyconst flex_int16_t yy_accept[43] =
372 { 0,
373 0, 0, 0, 0, 15, 14, 8, 6, 9, 4,
374 7, 14, 7, 14, 11, 11, 10, 11, 7, 5,
375 3, 7, 7, 1, 0, 13, 11, 11, 11, 2,
376 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
377 7, 0
378 } ;
379
380 static yyconst flex_int32_t yy_ec[256] =
381 { 0,
382 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
383 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
384 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
385 1, 2, 1, 5, 6, 1, 1, 1, 1, 1,
386 1, 1, 1, 7, 8, 1, 1, 8, 8, 8,
387 8, 8, 8, 8, 8, 8, 8, 1, 1, 1,
388 1, 1, 1, 1, 8, 8, 8, 8, 8, 8,
389 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
390 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
391 1, 9, 1, 1, 10, 1, 11, 12, 13, 14,
392
393 15, 8, 8, 8, 8, 8, 8, 16, 8, 17,
394 18, 8, 8, 19, 8, 20, 8, 8, 8, 8,
395 8, 8, 1, 1, 1, 1, 1, 1, 1, 1,
396 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
397 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
398 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
399 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
400 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
401 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
402 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
403
404 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
405 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
406 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
407 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
408 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
409 1, 1, 1, 1, 1
410 } ;
411
412 static yyconst flex_int32_t yy_meta[21] =
413 { 0,
414 1, 1, 1, 1, 2, 1, 1, 3, 1, 3,
415 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
416 } ;
417
418 static yyconst flex_int16_t yy_base[48] =
419 { 0,
420 0, 58, 18, 19, 63, 65, 65, 65, 65, 65,
421 0, 59, 13, 58, 0, 0, 65, 24, 0, 65,
422 0, 46, 40, 0, 55, 65, 0, 31, 0, 0,
423 39, 37, 45, 15, 36, 42, 38, 39, 35, 33,
424 29, 65, 36, 28, 39, 42, 45
425 } ;
426
427 static yyconst flex_int16_t yy_def[48] =
428 { 0,
429 42, 1, 43, 43, 42, 42, 42, 42, 42, 42,
430 44, 42, 44, 45, 46, 46, 42, 47, 44, 42,
431 44, 44, 44, 44, 45, 42, 46, 47, 46, 44,
432 44, 44, 44, 44, 44, 44, 44, 44, 44, 44,
433 44, 0, 42, 42, 42, 42, 42
434 } ;
435
436 static yyconst flex_int16_t yy_nxt[86] =
437 { 0,
438 6, 7, 8, 8, 9, 6, 10, 11, 12, 11,
439 11, 11, 11, 11, 13, 11, 11, 11, 11, 11,
440 16, 16, 17, 17, 18, 21, 29, 35, 25, 22,
441 19, 23, 24, 29, 36, 25, 15, 15, 15, 25,
442 25, 25, 27, 24, 27, 28, 28, 28, 41, 21,
443 40, 39, 38, 37, 34, 33, 32, 26, 31, 30,
444 26, 20, 42, 14, 5, 42, 42, 42, 42, 42,
445 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
446 42, 42, 42, 42, 42
447 } ;
448
449 static yyconst flex_int16_t yy_chk[86] =
450 { 0,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
452 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
453 3, 4, 3, 4, 4, 13, 18, 34, 18, 13,
454 44, 13, 13, 28, 34, 28, 43, 43, 43, 45,
455 45, 45, 46, 41, 46, 47, 47, 47, 40, 39,
456 38, 37, 36, 35, 33, 32, 31, 25, 23, 22,
457 14, 12, 5, 2, 42, 42, 42, 42, 42, 42,
458 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
459 42, 42, 42, 42, 42
460 } ;
461
462 static yy_state_type yy_last_accepting_state;
463 static char *yy_last_accepting_cpos;
464
465 extern int yy_flex_debug;
466 int yy_flex_debug = 0;
467
468 /* The intent behind this definition is that it'll catch
469 * any uses of REJECT which flex missed.
470 */
471 #define REJECT reject_used_but_not_detected
472 #define yymore() yymore_used_but_not_detected
473 #define YY_MORE_ADJ 0
474 #define YY_RESTORE_YY_MORE_OFFSET
475 char *yytext;
476 #line 1 "lexer.l"
477 #line 2 "lexer.l"
478 /*
479 * Copyright (C) 2004 Red Hat, Inc.
480 *
481 * This is free software; you can redistribute it and/or modify it under
482 * the terms of the GNU Library General Public License as published by
483 * the Free Software Foundation; either version 2 of the License, or
484 * (at your option) any later version.
485 *
486 * This program is distributed in the hope that it will be useful, but
487 * WITHOUT ANY WARRANTY; without even the implied warranty of
488 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
489 * General Public License for more details.
490 *
491 * You should have received a copy of the GNU Library General Public
492 * License along with this program; if not, write to the Free Software
493 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
494 */
495 #include "config.h"
496 #include <sys/types.h>
497 #include <sys/stat.h>
498 #include <sys/time.h>
499 #include <ftw.h>
500 #include <getopt.h>
501 #include <stdio.h>
502 #include <stdlib.h>
503 #include <string.h>
504 #include <time.h>
505 #include <unistd.h>
506 #include <glib.h>
507 #include "grammar.h"
508
509 #line 511 "lexer.c"
510
511 #define INITIAL 0
512 #define QUOTED 1
513
514 #ifndef YY_NO_UNISTD_H
515 /* Special case for "unistd.h", since it is non-ANSI. We include it way
516 * down here because we want the user's section 1 to have been scanned first.
517 * The user has a chance to override it with an option.
518 */
519 #include <unistd.h>
520 #endif
521
522 #ifndef YY_EXTRA_TYPE
523 #define YY_EXTRA_TYPE void *
524 #endif
525
526 static int yy_init_globals (void );
527
528 /* Accessor methods to globals.
529 These are made visible to non-reentrant scanners for convenience. */
530
531 int yylex_destroy (void );
532
533 int yyget_debug (void );
534
535 void yyset_debug (int debug_flag );
536
537 YY_EXTRA_TYPE yyget_extra (void );
538
539 void yyset_extra (YY_EXTRA_TYPE user_defined );
540
541 FILE *yyget_in (void );
542
543 void yyset_in (FILE * in_str );
544
545 FILE *yyget_out (void );
546
547 void yyset_out (FILE * out_str );
548
549 int yyget_leng (void );
550
551 char *yyget_text (void );
552
553 int yyget_lineno (void );
554
555 void yyset_lineno (int line_number );
556
557 /* Macros after this point can all be overridden by user definitions in
558 * section 1.
559 */
560
561 #ifndef YY_SKIP_YYWRAP
562 #ifdef __cplusplus
563 extern "C" int yywrap (void );
564 #else
565 extern int yywrap (void );
566 #endif
567 #endif
568
569 static void yyunput (int c,char *buf_ptr );
570
571 #ifndef yytext_ptr
572 static void yy_flex_strncpy (char *,yyconst char *,int );
573 #endif
574
575 #ifdef YY_NEED_STRLEN
576 static int yy_flex_strlen (yyconst char * );
577 #endif
578
579 #ifndef YY_NO_INPUT
580
581 #ifdef __cplusplus
582 static int yyinput (void );
583 #else
584 static int input (void );
585 #endif
586
587 #endif
588
589 /* Amount of stuff to slurp up with each read. */
590 #ifndef YY_READ_BUF_SIZE
591 #define YY_READ_BUF_SIZE 8192
592 #endif
593
594 /* Copy whatever the last rule matched to the standard output. */
595 #ifndef ECHO
596 /* This used to be an fputs(), but since the string might contain NUL's,
597 * we now use fwrite().
598 */
599 #define ECHO fwrite( yytext, yyleng, 1, yyout )
600 #endif
601
602 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
603 * is returned in "result".
604 */
605 #ifndef YY_INPUT
606 #define YY_INPUT(buf,result,max_size) \
607 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
608 { \
609 int c = '*'; \
610 size_t n; \
611 for ( n = 0; n < max_size && \
612 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
613 buf[n] = (char) c; \
614 if ( c == '\n' ) \
615 buf[n++] = (char) c; \
616 if ( c == EOF && ferror( yyin ) ) \
617 YY_FATAL_ERROR( "input in flex scanner failed" ); \
618 result = n; \
619 } \
620 else \
621 { \
622 errno=0; \
623 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
624 { \
625 if( errno != EINTR) \
626 { \
627 YY_FATAL_ERROR( "input in flex scanner failed" ); \
628 break; \
629 } \
630 errno=0; \
631 clearerr(yyin); \
632 } \
633 }\
634 \
635
636 #endif
637
638 /* No semi-colon after return; correct usage is to write "yyterminate();" -
639 * we don't want an extra ';' after the "return" because that will cause
640 * some compilers to complain about unreachable statements.
641 */
642 #ifndef yyterminate
643 #define yyterminate() return YY_NULL
644 #endif
645
646 /* Number of entries by which start-condition stack grows. */
647 #ifndef YY_START_STACK_INCR
648 #define YY_START_STACK_INCR 25
649 #endif
650
651 /* Report a fatal error. */
652 #ifndef YY_FATAL_ERROR
653 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
654 #endif
655
656 /* end tables serialization structures and prototypes */
657
658 /* Default declaration of generated scanner - a define so the user can
659 * easily add parameters.
660 */
661 #ifndef YY_DECL
662 #define YY_DECL_IS_OURS 1
663
664 extern int yylex (void);
665
666 #define YY_DECL int yylex (void)
667 #endif /* !YY_DECL */
668
669 /* Code executed at the beginning of each rule, after yytext and yyleng
670 * have been set up.
671 */
672 #ifndef YY_USER_ACTION
673 #define YY_USER_ACTION
674 #endif
675
676 /* Code executed at the end of each rule. */
677 #ifndef YY_BREAK
678 #define YY_BREAK break;
679 #endif
680
681 #define YY_RULE_SETUP \
682 if ( yyleng > 0 ) \
683 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
684 (yytext[yyleng - 1] == '\n'); \
685 YY_USER_ACTION
686
687 /** The main scanner function which does all the work.
688 */
689 YY_DECL
690 {
691 register yy_state_type yy_current_state;
692 register char *yy_cp, *yy_bp;
693 register int yy_act;
694
695 #line 34 "lexer.l"
696
697 #line 699 "lexer.c"
698
699 if ( !(yy_init) )
700 {
701 (yy_init) = 1;
702
703 #ifdef YY_USER_INIT
704 YY_USER_INIT;
705 #endif
706
707 if ( ! (yy_start) )
708 (yy_start) = 1; /* first start state */
709
710 if ( ! yyin )
711 yyin = stdin;
712
713 if ( ! yyout )
714 yyout = stdout;
715
716 if ( ! YY_CURRENT_BUFFER ) {
717 yyensure_buffer_stack ();
718 YY_CURRENT_BUFFER_LVALUE =
719 yy_create_buffer(yyin,YY_BUF_SIZE );
720 }
721
722 yy_load_buffer_state( );
723 }
724
725 while ( 1 ) /* loops until end-of-file is reached */
726 {
727 yy_cp = (yy_c_buf_p);
728
729 /* Support of yytext. */
730 *yy_cp = (yy_hold_char);
731
732 /* yy_bp points to the position in yy_ch_buf of the start of
733 * the current run.
734 */
735 yy_bp = yy_cp;
736
737 yy_current_state = (yy_start);
738 yy_current_state += YY_AT_BOL();
739 yy_match:
740 do
741 {
742 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
743 if ( yy_accept[yy_current_state] )
744 {
745 (yy_last_accepting_state) = yy_current_state;
746 (yy_last_accepting_cpos) = yy_cp;
747 }
748 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
749 {
750 yy_current_state = (int) yy_def[yy_current_state];
751 if ( yy_current_state >= 43 )
752 yy_c = yy_meta[(unsigned int) yy_c];
753 }
754 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
755 ++yy_cp;
756 }
757 while ( yy_base[yy_current_state] != 65 );
758
759 yy_find_action:
760 yy_act = yy_accept[yy_current_state];
761 if ( yy_act == 0 )
762 { /* have to back up */
763 yy_cp = (yy_last_accepting_cpos);
764 yy_current_state = (yy_last_accepting_state);
765 yy_act = yy_accept[yy_current_state];
766 }
767
768 YY_DO_BEFORE_ACTION;
769
770 do_action: /* This label is used only to access EOF actions. */
771
772 switch ( yy_act )
773 { /* beginning of action switch */
774 case 0: /* must back up */
775 /* undo the effects of YY_DO_BEFORE_ACTION */
776 *yy_cp = (yy_hold_char);
777 yy_cp = (yy_last_accepting_cpos);
778 yy_current_state = (yy_last_accepting_state);
779 goto yy_find_action;
780
781 case 1:
782 YY_RULE_SETUP
783 #line 35 "lexer.l"
784 { yylval.sval = g_strdup(yytext);
785 return ERROR_TABLE_START; };
786 YY_BREAK
787 case 2:
788 YY_RULE_SETUP
789 #line 37 "lexer.l"
790 { return ERROR_TABLE_END; };
791 YY_BREAK
792 case 3:
793 YY_RULE_SETUP
794 #line 38 "lexer.l"
795 { yylval.sval = g_strdup(yytext);
796 return ERROR_CODE_START; };
797 YY_BREAK
798 case 4:
799 YY_RULE_SETUP
800 #line 40 "lexer.l"
801 { return COMMA; };
802 YY_BREAK
803 case 5:
804 /* rule 5 can match eol */
805 YY_RULE_SETUP
806 #line 41 "lexer.l"
807 { };
808 YY_BREAK
809 case 6:
810 /* rule 6 can match eol */
811 YY_RULE_SETUP
812 #line 42 "lexer.l"
813 { };
814 YY_BREAK
815 case 7:
816 YY_RULE_SETUP
817 #line 43 "lexer.l"
818 { yylval.sval = g_strdup(yytext);
819 return TOKEN; };
820 YY_BREAK
821 case 8:
822 YY_RULE_SETUP
823 #line 45 "lexer.l"
824 { };
825 YY_BREAK
826 case 9:
827 YY_RULE_SETUP
828 #line 46 "lexer.l"
829 { BEGIN(QUOTED);
830 yylval.sval = g_strdup("");
831 return QUOTE; };
832 YY_BREAK
833 case 10:
834 YY_RULE_SETUP
835 #line 49 "lexer.l"
836 { BEGIN(INITIAL);
837 return QUOTE; };
838 YY_BREAK
839 case 11:
840 /* rule 11 can match eol */
841 YY_RULE_SETUP
842 #line 51 "lexer.l"
843 { yylval.sval = g_strdup(yytext);
844 return LITERAL; };
845 YY_BREAK
846 case 12:
847 /* rule 12 can match eol */
848 YY_RULE_SETUP
849 #line 53 "lexer.l"
850 { yylval.sval = g_strdup(yytext);
851 return LITERAL; };
852 YY_BREAK
853 case 13:
854 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
855 (yy_c_buf_p) = yy_cp -= 1;
856 YY_DO_BEFORE_ACTION; /* set up yytext again */
857 YY_RULE_SETUP
858 #line 55 "lexer.l"
859 { };
860 YY_BREAK
861 case 14:
862 YY_RULE_SETUP
863 #line 56 "lexer.l"
864 ECHO;
865 YY_BREAK
866 #line 868 "lexer.c"
867 case YY_STATE_EOF(INITIAL):
868 case YY_STATE_EOF(QUOTED):
869 yyterminate();
870
871 case YY_END_OF_BUFFER:
872 {
873 /* Amount of text matched not including the EOB char. */
874 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
875
876 /* Undo the effects of YY_DO_BEFORE_ACTION. */
877 *yy_cp = (yy_hold_char);
878 YY_RESTORE_YY_MORE_OFFSET
879
880 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
881 {
882 /* We're scanning a new file or input source. It's
883 * possible that this happened because the user
884 * just pointed yyin at a new source and called
885 * yylex(). If so, then we have to assure
886 * consistency between YY_CURRENT_BUFFER and our
887 * globals. Here is the right place to do so, because
888 * this is the first action (other than possibly a
889 * back-up) that will match for the new input source.
890 */
891 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
892 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
893 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
894 }
895
896 /* Note that here we test for yy_c_buf_p "<=" to the position
897 * of the first EOB in the buffer, since yy_c_buf_p will
898 * already have been incremented past the NUL character
899 * (since all states make transitions on EOB to the
900 * end-of-buffer state). Contrast this with the test
901 * in input().
902 */
903 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
904 { /* This was really a NUL. */
905 yy_state_type yy_next_state;
906
907 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
908
909 yy_current_state = yy_get_previous_state( );
910
911 /* Okay, we're now positioned to make the NUL
912 * transition. We couldn't have
913 * yy_get_previous_state() go ahead and do it
914 * for us because it doesn't know how to deal
915 * with the possibility of jamming (and we don't
916 * want to build jamming into it because then it
917 * will run more slowly).
918 */
919
920 yy_next_state = yy_try_NUL_trans( yy_current_state );
921
922 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
923
924 if ( yy_next_state )
925 {
926 /* Consume the NUL. */
927 yy_cp = ++(yy_c_buf_p);
928 yy_current_state = yy_next_state;
929 goto yy_match;
930 }
931
932 else
933 {
934 yy_cp = (yy_c_buf_p);
935 goto yy_find_action;
936 }
937 }
938
939 else switch ( yy_get_next_buffer( ) )
940 {
941 case EOB_ACT_END_OF_FILE:
942 {
943 (yy_did_buffer_switch_on_eof) = 0;
944
945 if ( yywrap( ) )
946 {
947 /* Note: because we've taken care in
948 * yy_get_next_buffer() to have set up
949 * yytext, we can now set up
950 * yy_c_buf_p so that if some total
951 * hoser (like flex itself) wants to
952 * call the scanner after we return the
953 * YY_NULL, it'll still work - another
954 * YY_NULL will get returned.
955 */
956 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
957
958 yy_act = YY_STATE_EOF(YY_START);
959 goto do_action;
960 }
961
962 else
963 {
964 if ( ! (yy_did_buffer_switch_on_eof) )
965 YY_NEW_FILE;
966 }
967 break;
968 }
969
970 case EOB_ACT_CONTINUE_SCAN:
971 (yy_c_buf_p) =
972 (yytext_ptr) + yy_amount_of_matched_text;
973
974 yy_current_state = yy_get_previous_state( );
975
976 yy_cp = (yy_c_buf_p);
977 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
978 goto yy_match;
979
980 case EOB_ACT_LAST_MATCH:
981 (yy_c_buf_p) =
982 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
983
984 yy_current_state = yy_get_previous_state( );
985
986 yy_cp = (yy_c_buf_p);
987 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
988 goto yy_find_action;
989 }
990 break;
991 }
992
993 default:
994 YY_FATAL_ERROR(
995 "fatal flex scanner internal error--no action found" );
996 } /* end of action switch */
997 } /* end of scanning one token */
998 } /* end of yylex */
999
1000 /* yy_get_next_buffer - try to read in a new buffer
1001 *
1002 * Returns a code representing an action:
1003 * EOB_ACT_LAST_MATCH -
1004 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1005 * EOB_ACT_END_OF_FILE - end of file
1006 */
1007 static int yy_get_next_buffer (void)
1008 {
1009 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1010 register char *source = (yytext_ptr);
1011 register int number_to_move, i;
1012 int ret_val;
1013
1014 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1015 YY_FATAL_ERROR(
1016 "fatal flex scanner internal error--end of buffer missed" );
1017
1018 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1019 { /* Don't try to fill the buffer, so this is an EOF. */
1020 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1021 {
1022 /* We matched a single character, the EOB, so
1023 * treat this as a final EOF.
1024 */
1025 return EOB_ACT_END_OF_FILE;
1026 }
1027
1028 else
1029 {
1030 /* We matched some text prior to the EOB, first
1031 * process it.
1032 */
1033 return EOB_ACT_LAST_MATCH;
1034 }
1035 }
1036
1037 /* Try to read more data. */
1038
1039 /* First move last chars to start of buffer. */
1040 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
1041
1042 for ( i = 0; i < number_to_move; ++i )
1043 *(dest++) = *(source++);
1044
1045 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1046 /* don't do the read, it's not guaranteed to return an EOF,
1047 * just force an EOF
1048 */
1049 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1050
1051 else
1052 {
1053 int num_to_read =
1054 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1055
1056 while ( num_to_read <= 0 )
1057 { /* Not enough room in the buffer - grow it. */
1058
1059 /* just a shorter name for the current buffer */
1060 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
1061
1062 int yy_c_buf_p_offset =
1063 (int) ((yy_c_buf_p) - b->yy_ch_buf);
1064
1065 if ( b->yy_is_our_buffer )
1066 {
1067 int new_size = b->yy_buf_size * 2;
1068
1069 if ( new_size <= 0 )
1070 b->yy_buf_size += b->yy_buf_size / 8;
1071 else
1072 b->yy_buf_size *= 2;
1073
1074 b->yy_ch_buf = (char *)
1075 /* Include room in for 2 EOB chars. */
1076 yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
1077 }
1078 else
1079 /* Can't grow it, we don't own it. */
1080 b->yy_ch_buf = 0;
1081
1082 if ( ! b->yy_ch_buf )
1083 YY_FATAL_ERROR(
1084 "fatal error - scanner input buffer overflow" );
1085
1086 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1087
1088 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1089 number_to_move - 1;
1090
1091 }
1092
1093 if ( num_to_read > YY_READ_BUF_SIZE )
1094 num_to_read = YY_READ_BUF_SIZE;
1095
1096 /* Read in more data. */
1097 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1098 (yy_n_chars), (size_t) num_to_read );
1099
1100 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1101 }
1102
1103 if ( (yy_n_chars) == 0 )
1104 {
1105 if ( number_to_move == YY_MORE_ADJ )
1106 {
1107 ret_val = EOB_ACT_END_OF_FILE;
1108 yyrestart(yyin );
1109 }
1110
1111 else
1112 {
1113 ret_val = EOB_ACT_LAST_MATCH;
1114 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1115 YY_BUFFER_EOF_PENDING;
1116 }
1117 }
1118
1119 else
1120 ret_val = EOB_ACT_CONTINUE_SCAN;
1121
1122 if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1123 /* Extend the array by 50%, plus the number we really need. */
1124 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1125 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
1126 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1127 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1128 }
1129
1130 (yy_n_chars) += number_to_move;
1131 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
1132 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
1133
1134 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1135
1136 return ret_val;
1137 }
1138
1139 /* yy_get_previous_state - get the state just before the EOB char was reached */
1140
1141 static yy_state_type yy_get_previous_state (void)
1142 {
1143 register yy_state_type yy_current_state;
1144 register char *yy_cp;
1145
1146 yy_current_state = (yy_start);
1147 yy_current_state += YY_AT_BOL();
1148
1149 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1150 {
1151 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1152 if ( yy_accept[yy_current_state] )
1153 {
1154 (yy_last_accepting_state) = yy_current_state;
1155 (yy_last_accepting_cpos) = yy_cp;
1156 }
1157 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1158 {
1159 yy_current_state = (int) yy_def[yy_current_state];
1160 if ( yy_current_state >= 43 )
1161 yy_c = yy_meta[(unsigned int) yy_c];
1162 }
1163 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1164 }
1165
1166 return yy_current_state;
1167 }
1168
1169 /* yy_try_NUL_trans - try to make a transition on the NUL character
1170 *
1171 * synopsis
1172 * next_state = yy_try_NUL_trans( current_state );
1173 */
1174 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1175 {
1176 register int yy_is_jam;
1177 register char *yy_cp = (yy_c_buf_p);
1178
1179 register YY_CHAR yy_c = 1;
1180 if ( yy_accept[yy_current_state] )
1181 {
1182 (yy_last_accepting_state) = yy_current_state;
1183 (yy_last_accepting_cpos) = yy_cp;
1184 }
1185 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1186 {
1187 yy_current_state = (int) yy_def[yy_current_state];
1188 if ( yy_current_state >= 43 )
1189 yy_c = yy_meta[(unsigned int) yy_c];
1190 }
1191 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1192 yy_is_jam = (yy_current_state == 42);
1193
1194 return yy_is_jam ? 0 : yy_current_state;
1195 }
1196
1197 static void yyunput (int c, register char * yy_bp )
1198 {
1199 register char *yy_cp;
1200
1201 yy_cp = (yy_c_buf_p);
1202
1203 /* undo effects of setting up yytext */
1204 *yy_cp = (yy_hold_char);
1205
1206 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1207 { /* need to shift things up to make room */
1208 /* +2 for EOB chars. */
1209 register int number_to_move = (yy_n_chars) + 2;
1210 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
1211 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
1212 register char *source =
1213 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
1214
1215 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1216 *--dest = *--source;
1217
1218 yy_cp += (int) (dest - source);
1219 yy_bp += (int) (dest - source);
1220 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
1221 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
1222
1223 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1224 YY_FATAL_ERROR( "flex scanner push-back overflow" );
1225 }
1226
1227 *--yy_cp = (char) c;
1228
1229 (yytext_ptr) = yy_bp;
1230 (yy_hold_char) = *yy_cp;
1231 (yy_c_buf_p) = yy_cp;
1232 }
1233
1234 #ifndef YY_NO_INPUT
1235 #ifdef __cplusplus
1236 static int yyinput (void)
1237 #else
1238 static int input (void)
1239 #endif
1240
1241 {
1242 int c;
1243
1244 *(yy_c_buf_p) = (yy_hold_char);
1245
1246 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1247 {
1248 /* yy_c_buf_p now points to the character we want to return.
1249 * If this occurs *before* the EOB characters, then it's a
1250 * valid NUL; if not, then we've hit the end of the buffer.
1251 */
1252 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1253 /* This was really a NUL. */
1254 *(yy_c_buf_p) = '\0';
1255
1256 else
1257 { /* need more input */
1258 int offset = (yy_c_buf_p) - (yytext_ptr);
1259 ++(yy_c_buf_p);
1260
1261 switch ( yy_get_next_buffer( ) )
1262 {
1263 case EOB_ACT_LAST_MATCH:
1264 /* This happens because yy_g_n_b()
1265 * sees that we've accumulated a
1266 * token and flags that we need to
1267 * try matching the token before
1268 * proceeding. But for input(),
1269 * there's no matching to consider.
1270 * So convert the EOB_ACT_LAST_MATCH
1271 * to EOB_ACT_END_OF_FILE.
1272 */
1273
1274 /* Reset buffer status. */
1275 yyrestart(yyin );
1276
1277 /*FALLTHROUGH*/
1278
1279 case EOB_ACT_END_OF_FILE:
1280 {
1281 if ( yywrap( ) )
1282 return EOF;
1283
1284 if ( ! (yy_did_buffer_switch_on_eof) )
1285 YY_NEW_FILE;
1286 #ifdef __cplusplus
1287 return yyinput();
1288 #else
1289 return input();
1290 #endif
1291 }
1292
1293 case EOB_ACT_CONTINUE_SCAN:
1294 (yy_c_buf_p) = (yytext_ptr) + offset;
1295 break;
1296 }
1297 }
1298 }
1299
1300 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1301 *(yy_c_buf_p) = '\0'; /* preserve yytext */
1302 (yy_hold_char) = *++(yy_c_buf_p);
1303
1304 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
1305
1306 return c;
1307 }
1308 #endif /* ifndef YY_NO_INPUT */
1309
1310 /** Immediately switch to a different input stream.
1311 * @param input_file A readable stream.
1312 *
1313 * @note This function does not reset the start condition to @c INITIAL .
1314 */
1315 void yyrestart (FILE * input_file )
1316 {
1317
1318 if ( ! YY_CURRENT_BUFFER ){
1319 yyensure_buffer_stack ();
1320 YY_CURRENT_BUFFER_LVALUE =
1321 yy_create_buffer(yyin,YY_BUF_SIZE );
1322 }
1323
1324 yy_init_buffer(YY_CURRENT_BUFFER,input_file );
1325 yy_load_buffer_state( );
1326 }
1327
1328 /** Switch to a different input buffer.
1329 * @param new_buffer The new input buffer.
1330 *
1331 */
1332 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
1333 {
1334
1335 /* TODO. We should be able to replace this entire function body
1336 * with
1337 * yypop_buffer_state();
1338 * yypush_buffer_state(new_buffer);
1339 */
1340 yyensure_buffer_stack ();
1341 if ( YY_CURRENT_BUFFER == new_buffer )
1342 return;
1343
1344 if ( YY_CURRENT_BUFFER )
1345 {
1346 /* Flush out information for old buffer. */
1347 *(yy_c_buf_p) = (yy_hold_char);
1348 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1349 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1350 }
1351
1352 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1353 yy_load_buffer_state( );
1354
1355 /* We don't actually know whether we did this switch during
1356 * EOF (yywrap()) processing, but the only time this flag
1357 * is looked at is after yywrap() is called, so it's safe
1358 * to go ahead and always set it.
1359 */
1360 (yy_did_buffer_switch_on_eof) = 1;
1361 }
1362
1363 static void yy_load_buffer_state (void)
1364 {
1365 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1366 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1367 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1368 (yy_hold_char) = *(yy_c_buf_p);
1369 }
1370
1371 /** Allocate and initialize an input buffer state.
1372 * @param file A readable stream.
1373 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1374 *
1375 * @return the allocated buffer state.
1376 */
1377 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1378 {
1379 YY_BUFFER_STATE b;
1380
1381 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
1382 if ( ! b )
1383 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1384
1385 b->yy_buf_size = size;
1386
1387 /* yy_ch_buf has to be 2 characters longer than the size given because
1388 * we need to put in 2 end-of-buffer characters.
1389 */
1390 b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
1391 if ( ! b->yy_ch_buf )
1392 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1393
1394 b->yy_is_our_buffer = 1;
1395
1396 yy_init_buffer(b,file );
1397
1398 return b;
1399 }
1400
1401 /** Destroy the buffer.
1402 * @param b a buffer created with yy_create_buffer()
1403 *
1404 */
1405 void yy_delete_buffer (YY_BUFFER_STATE b )
1406 {
1407
1408 if ( ! b )
1409 return;
1410
1411 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1412 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1413
1414 if ( b->yy_is_our_buffer )
1415 yyfree((void *) b->yy_ch_buf );
1416
1417 yyfree((void *) b );
1418 }
1419
1420 #ifndef __cplusplus
1421 extern int isatty (int );
1422 #endif /* __cplusplus */
1423
1424 /* Initializes or reinitializes a buffer.
1425 * This function is sometimes called more than once on the same buffer,
1426 * such as during a yyrestart() or at EOF.
1427 */
1428 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
1429
1430 {
1431 int oerrno = errno;
1432
1433 yy_flush_buffer(b );
1434
1435 b->yy_input_file = file;
1436 b->yy_fill_buffer = 1;
1437
1438 /* If b is the current buffer, then yy_init_buffer was _probably_
1439 * called from yyrestart() or through yy_get_next_buffer.
1440 * In that case, we don't want to reset the lineno or column.
1441 */
1442 if (b != YY_CURRENT_BUFFER){
1443 b->yy_bs_lineno = 1;
1444 b->yy_bs_column = 0;
1445 }
1446
1447 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1448
1449 errno = oerrno;
1450 }
1451
1452 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1453 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1454 *
1455 */
1456 void yy_flush_buffer (YY_BUFFER_STATE b )
1457 {
1458 if ( ! b )
1459 return;
1460
1461 b->yy_n_chars = 0;
1462
1463 /* We always need two end-of-buffer characters. The first causes
1464 * a transition to the end-of-buffer state. The second causes
1465 * a jam in that state.
1466 */
1467 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1468 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1469
1470 b->yy_buf_pos = &b->yy_ch_buf[0];
1471
1472 b->yy_at_bol = 1;
1473 b->yy_buffer_status = YY_BUFFER_NEW;
1474
1475 if ( b == YY_CURRENT_BUFFER )
1476 yy_load_buffer_state( );
1477 }
1478
1479 /** Pushes the new state onto the stack. The new state becomes
1480 * the current state. This function will allocate the stack
1481 * if necessary.
1482 * @param new_buffer The new state.
1483 *
1484 */
1485 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
1486 {
1487 if (new_buffer == NULL)
1488 return;
1489
1490 yyensure_buffer_stack();
1491
1492 /* This block is copied from yy_switch_to_buffer. */
1493 if ( YY_CURRENT_BUFFER )
1494 {
1495 /* Flush out information for old buffer. */
1496 *(yy_c_buf_p) = (yy_hold_char);
1497 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1498 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1499 }
1500
1501 /* Only push if top exists. Otherwise, replace top. */
1502 if (YY_CURRENT_BUFFER)
1503 (yy_buffer_stack_top)++;
1504 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1505
1506 /* copied from yy_switch_to_buffer. */
1507 yy_load_buffer_state( );
1508 (yy_did_buffer_switch_on_eof) = 1;
1509 }
1510
1511 /** Removes and deletes the top of the stack, if present.
1512 * The next element becomes the new top.
1513 *
1514 */
1515 void yypop_buffer_state (void)
1516 {
1517 if (!YY_CURRENT_BUFFER)
1518 return;
1519
1520 yy_delete_buffer(YY_CURRENT_BUFFER );
1521 YY_CURRENT_BUFFER_LVALUE = NULL;
1522 if ((yy_buffer_stack_top) > 0)
1523 --(yy_buffer_stack_top);
1524
1525 if (YY_CURRENT_BUFFER) {
1526 yy_load_buffer_state( );
1527 (yy_did_buffer_switch_on_eof) = 1;
1528 }
1529 }
1530
1531 /* Allocates the stack if it does not exist.
1532 * Guarantees space for at least one push.
1533 */
1534 static void yyensure_buffer_stack (void)
1535 {
1536 int num_to_alloc;
1537
1538 if (!(yy_buffer_stack)) {
1539
1540 /* First allocation is just for 2 elements, since we don't know if this
1541 * scanner will even need a stack. We use 2 instead of 1 to avoid an
1542 * immediate realloc on the next call.
1543 */
1544 num_to_alloc = 1;
1545 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
1546 (num_to_alloc * sizeof(struct yy_buffer_state*)
1547 );
1548 if ( ! (yy_buffer_stack) )
1549 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1550
1551 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1552
1553 (yy_buffer_stack_max) = num_to_alloc;
1554 (yy_buffer_stack_top) = 0;
1555 return;
1556 }
1557
1558 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1559
1560 /* Increase the buffer to prepare for a possible push. */
1561 int grow_size = 8 /* arbitrary grow size */;
1562
1563 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1564 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
1565 ((yy_buffer_stack),
1566 num_to_alloc * sizeof(struct yy_buffer_state*)
1567 );
1568 if ( ! (yy_buffer_stack) )
1569 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1570
1571 /* zero only the new slots.*/
1572 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1573 (yy_buffer_stack_max) = num_to_alloc;
1574 }
1575 }
1576
1577 /** Setup the input buffer state to scan directly from a user-specified character buffer.
1578 * @param base the character buffer
1579 * @param size the size in bytes of the character buffer
1580 *
1581 * @return the newly allocated buffer state object.
1582 */
1583 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
1584 {
1585 YY_BUFFER_STATE b;
1586
1587 if ( size < 2 ||
1588 base[size-2] != YY_END_OF_BUFFER_CHAR ||
1589 base[size-1] != YY_END_OF_BUFFER_CHAR )
1590 /* They forgot to leave room for the EOB's. */
1591 return 0;
1592
1593 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
1594 if ( ! b )
1595 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1596
1597 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1598 b->yy_buf_pos = b->yy_ch_buf = base;
1599 b->yy_is_our_buffer = 0;
1600 b->yy_input_file = 0;
1601 b->yy_n_chars = b->yy_buf_size;
1602 b->yy_is_interactive = 0;
1603 b->yy_at_bol = 1;
1604 b->yy_fill_buffer = 0;
1605 b->yy_buffer_status = YY_BUFFER_NEW;
1606
1607 yy_switch_to_buffer(b );
1608
1609 return b;
1610 }
1611
1612 /** Setup the input buffer state to scan a string. The next call to yylex() will
1613 * scan from a @e copy of @a str.
1614 * @param yystr a NUL-terminated string to scan
1615 *
1616 * @return the newly allocated buffer state object.
1617 * @note If you want to scan bytes that may contain NUL values, then use
1618 * yy_scan_bytes() instead.
1619 */
1620 YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
1621 {
1622
1623 return yy_scan_bytes(yystr,strlen(yystr) );
1624 }
1625
1626 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1627 * scan from a @e copy of @a bytes.
1628 * @param bytes the byte buffer to scan
1629 * @param len the number of bytes in the buffer pointed to by @a bytes.
1630 *
1631 * @return the newly allocated buffer state object.
1632 */
1633 YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
1634 {
1635 YY_BUFFER_STATE b;
1636 char *buf;
1637 yy_size_t n;
1638 int i;
1639
1640 /* Get memory for full buffer, including space for trailing EOB's. */
1641 n = _yybytes_len + 2;
1642 buf = (char *) yyalloc(n );
1643 if ( ! buf )
1644 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1645
1646 for ( i = 0; i < _yybytes_len; ++i )
1647 buf[i] = yybytes[i];
1648
1649 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1650
1651 b = yy_scan_buffer(buf,n );
1652 if ( ! b )
1653 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1654
1655 /* It's okay to grow etc. this buffer, and we should throw it
1656 * away when we're done.
1657 */
1658 b->yy_is_our_buffer = 1;
1659
1660 return b;
1661 }
1662
1663 #ifndef YY_EXIT_FAILURE
1664 #define YY_EXIT_FAILURE 2
1665 #endif
1666
1667 static void yy_fatal_error (yyconst char* msg )
1668 {
1669 (void) fprintf( stderr, "%s\n", msg );
1670 exit( YY_EXIT_FAILURE );
1671 }
1672
1673 /* Redefine yyless() so it works in section 3 code. */
1674
1675 #undef yyless
1676 #define yyless(n) \
1677 do \
1678 { \
1679 /* Undo effects of setting up yytext. */ \
1680 int yyless_macro_arg = (n); \
1681 YY_LESS_LINENO(yyless_macro_arg);\
1682 yytext[yyleng] = (yy_hold_char); \
1683 (yy_c_buf_p) = yytext + yyless_macro_arg; \
1684 (yy_hold_char) = *(yy_c_buf_p); \
1685 *(yy_c_buf_p) = '\0'; \
1686 yyleng = yyless_macro_arg; \
1687 } \
1688 while ( 0 )
1689
1690 /* Accessor methods (get/set functions) to struct members. */
1691
1692 /** Get the current line number.
1693 *
1694 */
1695 int yyget_lineno (void)
1696 {
1697
1698 return yylineno;
1699 }
1700
1701 /** Get the input stream.
1702 *
1703 */
1704 FILE *yyget_in (void)
1705 {
1706 return yyin;
1707 }
1708
1709 /** Get the output stream.
1710 *
1711 */
1712 FILE *yyget_out (void)
1713 {
1714 return yyout;
1715 }
1716
1717 /** Get the length of the current token.
1718 *
1719 */
1720 int yyget_leng (void)
1721 {
1722 return yyleng;
1723 }
1724
1725 /** Get the current token.
1726 *
1727 */
1728
1729 char *yyget_text (void)
1730 {
1731 return yytext;
1732 }
1733
1734 /** Set the current line number.
1735 * @param line_number
1736 *
1737 */
1738 void yyset_lineno (int line_number )
1739 {
1740
1741 yylineno = line_number;
1742 }
1743
1744 /** Set the input stream. This does not discard the current
1745 * input buffer.
1746 * @param in_str A readable stream.
1747 *
1748 * @see yy_switch_to_buffer
1749 */
1750 void yyset_in (FILE * in_str )
1751 {
1752 yyin = in_str ;
1753 }
1754
1755 void yyset_out (FILE * out_str )
1756 {
1757 yyout = out_str ;
1758 }
1759
1760 int yyget_debug (void)
1761 {
1762 return yy_flex_debug;
1763 }
1764
1765 void yyset_debug (int bdebug )
1766 {
1767 yy_flex_debug = bdebug ;
1768 }
1769
1770 static int yy_init_globals (void)
1771 {
1772 /* Initialization is the same as for the non-reentrant scanner.
1773 * This function is called from yylex_destroy(), so don't allocate here.
1774 */
1775
1776 (yy_buffer_stack) = 0;
1777 (yy_buffer_stack_top) = 0;
1778 (yy_buffer_stack_max) = 0;
1779 (yy_c_buf_p) = (char *) 0;
1780 (yy_init) = 0;
1781 (yy_start) = 0;
1782
1783 /* Defined in main.c */
1784 #ifdef YY_STDINIT
1785 yyin = stdin;
1786 yyout = stdout;
1787 #else
1788 yyin = (FILE *) 0;
1789 yyout = (FILE *) 0;
1790 #endif
1791
1792 /* For future reference: Set errno on error, since we are called by
1793 * yylex_init()
1794 */
1795 return 0;
1796 }
1797
1798 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
1799 int yylex_destroy (void)
1800 {
1801
1802 /* Pop the buffer stack, destroying each element. */
1803 while(YY_CURRENT_BUFFER){
1804 yy_delete_buffer(YY_CURRENT_BUFFER );
1805 YY_CURRENT_BUFFER_LVALUE = NULL;
1806 yypop_buffer_state();
1807 }
1808
1809 /* Destroy the stack itself. */
1810 yyfree((yy_buffer_stack) );
1811 (yy_buffer_stack) = NULL;
1812
1813 /* Reset the globals. This is important in a non-reentrant scanner so the next time
1814 * yylex() is called, initialization will occur. */
1815 yy_init_globals( );
1816
1817 return 0;
1818 }
1819
1820 /*
1821 * Internal utility routines.
1822 */
1823
1824 #ifndef yytext_ptr
1825 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
1826 {
1827 register int i;
1828 for ( i = 0; i < n; ++i )
1829 s1[i] = s2[i];
1830 }
1831 #endif
1832
1833 #ifdef YY_NEED_STRLEN
1834 static int yy_flex_strlen (yyconst char * s )
1835 {
1836 register int n;
1837 for ( n = 0; s[n]; ++n )
1838 ;
1839
1840 return n;
1841 }
1842 #endif
1843
1844 void *yyalloc (yy_size_t size )
1845 {
1846 return (void *) malloc( size );
1847 }
1848
1849 void *yyrealloc (void * ptr, yy_size_t size )
1850 {
1851 /* The cast to (char *) in the following accommodates both
1852 * implementations that use char* generic pointers, and those
1853 * that use void* generic pointers. It works with the latter
1854 * because both ANSI C and C++ allow castless assignment from
1855 * any pointer type to void*, and deal with argument conversions
1856 * as though doing an assignment.
1857 */
1858 return (void *) realloc( (char *) ptr, size );
1859 }
1860
1861 void yyfree (void * ptr )
1862 {
1863 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
1864 }
1865
1866 #define YYTABLES_NAME "yytables"
1867
1868 #line 56 "lexer.l"
1869
1870
1871
1872 /* Complete list of filenames, an iterator for that list, and the contents of
1873 * the current item. */
1874 static GList *filenames = NULL, *filename = NULL;
1875 const char *currentfile = NULL;
1876
1877 int
1878 yyerror(void)
1879 {
1880 g_print("Syntax error (%s).\n", currentfile);
1881 exit(1);
1882 }
1883
1884 /* Callback for ftw(). Adds the filename being examined to the global list of
1885 * filenames. */
1886 static int
1887 fn(const char *file, const struct stat *st, int flag)
1888 {
1889 int i;
1890 if (flag == FTW_F) {
1891 i = strlen(file);
1892 if ((i > 3) &&
1893 (strncmp(file + strlen(file) - 3, ".et", 3) == 0)) {
1894 filenames = g_list_append(filenames, g_strdup(file));
1895 }
1896 }
1897 return 0;
1898 }
1899
1900 /* Open the next filename in the list of files, if we have a list and we
1901 * haven't reached its end. */
1902 int
1903 yywrap(void)
1904 {
1905 if ((filename != NULL) && (g_list_next(filename) != NULL)) {
1906 fclose(yyin);
1907 filename = g_list_next(filename);
1908 currentfile = filename->data;
1909 yyin = fopen(currentfile, "r");
1910 return 0;
1911 }
1912 return 1;
1913 }
1914
1915 /* Spew forth a gettext .pot header. */
1916 static void
1917 header(void)
1918 {
1919 const char *boilerplate = "const char *dummy = {\n";
1920 printf(boilerplate);
1921 }
1922
1923 static void
1924 tail(void)
1925 {
1926 const char *boilerplate = "};\n";
1927 printf(boilerplate);
1928 }
1929
1930 int
1931 main(int argc, char **argv)
1932 {
1933 int i;
1934 /* Call getopt. We don't provide any options just now, but this lets
1935 * us handle "--help" and "-h" queries simply. */
1936 while ((i = getopt(argc, argv, "")) != -1) {
1937 switch (i) {
1938 default:
1939 printf("Usage: etpo [directory ...]\n");
1940 return 2;
1941 break;
1942 }
1943 }
1944 /* Assume that each non-option argument is a directory. */
1945 for (i = optind; i < argc; i++) {
1946 if (ftw(argv[i], fn, 10) != 0) {
1947 perror("ftw");
1948 return 1;
1949 }
1950 }
1951 /* Spew out a header. */
1952 header();
1953 if (g_list_length(filenames) > 0) {
1954 /* Open the first file and start parsing it. */
1955 filename = filenames;
1956 currentfile = filename->data;
1957 yyin = fopen(currentfile, "r");
1958 yyparse();
1959 fclose(yyin);
1960 } else {
1961 /* Start parsing stdin. */
1962 currentfile = "<stdin>";
1963 yyin = stdin;
1964 }
1965 tail();
1966 return 0;
1967 }
1968
+0
-502
gtksecentry/Makefile.in less more
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkglibdir = $(libdir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21 install_sh_DATA = $(install_sh) -c -m 644
22 install_sh_PROGRAM = $(install_sh) -c
23 install_sh_SCRIPT = $(install_sh) -c
24 INSTALL_HEADER = $(INSTALL_DATA)
25 transform = $(program_transform_name)
26 NORMAL_INSTALL = :
27 PRE_INSTALL = :
28 POST_INSTALL = :
29 NORMAL_UNINSTALL = :
30 PRE_UNINSTALL = :
31 POST_UNINSTALL = :
32 build_triplet = @build@
33 host_triplet = @host@
34 subdir = gtksecentry
35 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
38 $(top_srcdir)/configure.ac
39 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
40 $(ACLOCAL_M4)
41 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
42 CONFIG_HEADER = $(top_builddir)/config.h
43 CONFIG_CLEAN_FILES =
44 LIBRARIES = $(noinst_LIBRARIES)
45 ARFLAGS = cru
46 libgtksecentry_a_AR = $(AR) $(ARFLAGS)
47 libgtksecentry_a_LIBADD =
48 am_libgtksecentry_a_OBJECTS = gtksecentry.$(OBJEXT)
49 libgtksecentry_a_OBJECTS = $(am_libgtksecentry_a_OBJECTS)
50 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
51 depcomp = $(SHELL) $(top_srcdir)/depcomp
52 am__depfiles_maybe = depfiles
53 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
54 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
55 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
56 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
57 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
58 CCLD = $(CC)
59 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
60 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
61 $(LDFLAGS) -o $@
62 SOURCES = $(libgtksecentry_a_SOURCES)
63 DIST_SOURCES = $(libgtksecentry_a_SOURCES)
64 ETAGS = etags
65 CTAGS = ctags
66 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
67 ACLOCAL = @ACLOCAL@
68 ALL_LINGUAS = @ALL_LINGUAS@
69 AMTAR = @AMTAR@
70 AR = @AR@
71 AUTOCONF = @AUTOCONF@
72 AUTOHEADER = @AUTOHEADER@
73 AUTOMAKE = @AUTOMAKE@
74 AWK = @AWK@
75 CATALOGS = @CATALOGS@
76 CATOBJEXT = @CATOBJEXT@
77 CC = @CC@
78 CCDEPMODE = @CCDEPMODE@
79 CFLAGS = @CFLAGS@
80 CPP = @CPP@
81 CPPFLAGS = @CPPFLAGS@
82 CXX = @CXX@
83 CXXCPP = @CXXCPP@
84 CXXDEPMODE = @CXXDEPMODE@
85 CXXFLAGS = @CXXFLAGS@
86 CYGPATH_W = @CYGPATH_W@
87 DATADIRNAME = @DATADIRNAME@
88 DBUS_CFLAGS = @DBUS_CFLAGS@
89 DBUS_LIBS = @DBUS_LIBS@
90 DEFS = @DEFS@
91 DEPDIR = @DEPDIR@
92 DSYMUTIL = @DSYMUTIL@
93 ECHO = @ECHO@
94 ECHO_C = @ECHO_C@
95 ECHO_N = @ECHO_N@
96 ECHO_T = @ECHO_T@
97 EGREP = @EGREP@
98 EXEEXT = @EXEEXT@
99 F77 = @F77@
100 FFLAGS = @FFLAGS@
101 GCONF_CFLAGS = @GCONF_CFLAGS@
102 GCONF_LIBS = @GCONF_LIBS@
103 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
104 GLADE_CFLAGS = @GLADE_CFLAGS@
105 GLADE_LIBS = @GLADE_LIBS@
106 GMOFILES = @GMOFILES@
107 GMSGFMT = @GMSGFMT@
108 GREP = @GREP@
109 GTK_CFLAGS = @GTK_CFLAGS@
110 GTK_LIBS = @GTK_LIBS@
111 INSTALL = @INSTALL@
112 INSTALL_DATA = @INSTALL_DATA@
113 INSTALL_PROGRAM = @INSTALL_PROGRAM@
114 INSTALL_SCRIPT = @INSTALL_SCRIPT@
115 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
116 INSTOBJEXT = @INSTOBJEXT@
117 INTLLIBS = @INTLLIBS@
118 INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
119 INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
120 INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
121 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
122 INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
123 INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
124 INTLTOOL_MERGE = @INTLTOOL_MERGE@
125 INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
126 INTLTOOL_PERL = @INTLTOOL_PERL@
127 INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
128 INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
129 INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
130 INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
131 INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
132 INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
133 INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
134 INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
135 INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
136 INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
137 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
138 INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
139 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
140 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
141 KRB5_CFLAGS = @KRB5_CFLAGS@
142 KRB5_CONFIG = @KRB5_CONFIG@
143 KRB5_LIBS = @KRB5_LIBS@
144 LDFLAGS = @LDFLAGS@
145 LEX = @LEX@
146 LEXLIB = @LEXLIB@
147 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
148 LIBCAP = @LIBCAP@
149 LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@
150 LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@
151 LIBOBJS = @LIBOBJS@
152 LIBS = @LIBS@
153 LIBTOOL = @LIBTOOL@
154 LN_S = @LN_S@
155 LTLIBOBJS = @LTLIBOBJS@
156 MAINT = @MAINT@
157 MAKEINFO = @MAKEINFO@
158 MKDIR_P = @MKDIR_P@
159 MKINSTALLDIRS = @MKINSTALLDIRS@
160 MSGFMT = @MSGFMT@
161 MSGFMT_OPTS = @MSGFMT_OPTS@
162 MSGMERGE = @MSGMERGE@
163 NETWORK_MANAGER_CFLAGS = @NETWORK_MANAGER_CFLAGS@
164 NETWORK_MANAGER_LIBS = @NETWORK_MANAGER_LIBS@
165 NMEDIT = @NMEDIT@
166 OBJEXT = @OBJEXT@
167 PACKAGE = @PACKAGE@
168 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
169 PACKAGE_NAME = @PACKAGE_NAME@
170 PACKAGE_STRING = @PACKAGE_STRING@
171 PACKAGE_TARNAME = @PACKAGE_TARNAME@
172 PACKAGE_VERSION = @PACKAGE_VERSION@
173 PATH_SEPARATOR = @PATH_SEPARATOR@
174 PKG_CONFIG = @PKG_CONFIG@
175 POFILES = @POFILES@
176 POSUB = @POSUB@
177 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
178 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
179 RANLIB = @RANLIB@
180 SED = @SED@
181 SETCAP = @SETCAP@
182 SET_MAKE = @SET_MAKE@
183 SHELL = @SHELL@
184 STRIP = @STRIP@
185 USE_NLS = @USE_NLS@
186 VERSION = @VERSION@
187 XGETTEXT = @XGETTEXT@
188 YACC = @YACC@
189 YFLAGS = @YFLAGS@
190 abs_builddir = @abs_builddir@
191 abs_srcdir = @abs_srcdir@
192 abs_top_builddir = @abs_top_builddir@
193 abs_top_srcdir = @abs_top_srcdir@
194 ac_ct_CC = @ac_ct_CC@
195 ac_ct_CXX = @ac_ct_CXX@
196 ac_ct_F77 = @ac_ct_F77@
197 am__include = @am__include@
198 am__leading_dot = @am__leading_dot@
199 am__quote = @am__quote@
200 am__tar = @am__tar@
201 am__untar = @am__untar@
202 bindir = @bindir@
203 build = @build@
204 build_alias = @build_alias@
205 build_cpu = @build_cpu@
206 build_os = @build_os@
207 build_vendor = @build_vendor@
208 builddir = @builddir@
209 check_interval = @check_interval@
210 datadir = @datadir@
211 datarootdir = @datarootdir@
212 docdir = @docdir@
213 dvidir = @dvidir@
214 exec_prefix = @exec_prefix@
215 host = @host@
216 host_alias = @host_alias@
217 host_cpu = @host_cpu@
218 host_os = @host_os@
219 host_vendor = @host_vendor@
220 htmldir = @htmldir@
221 includedir = @includedir@
222 infodir = @infodir@
223 install_sh = @install_sh@
224 libdir = @libdir@
225 libexecdir = @libexecdir@
226 localedir = @localedir@
227 localstatedir = @localstatedir@
228 mandir = @mandir@
229 minimum_lifetime = @minimum_lifetime@
230 mkdir_p = @mkdir_p@
231 oldincludedir = @oldincludedir@
232 pdfdir = @pdfdir@
233 prefix = @prefix@
234 program_transform_name = @program_transform_name@
235 psdir = @psdir@
236 sbindir = @sbindir@
237 sharedstatedir = @sharedstatedir@
238 srcdir = @srcdir@
239 sysconfdir = @sysconfdir@
240 target_alias = @target_alias@
241 top_builddir = @top_builddir@
242 top_srcdir = @top_srcdir@
243 AM_CPPFLAGS = $(GTK_CFLAGS) \
244 -I$(top_srcdir)/secmem -I$(top_srcdir)/gtksecentry
245
246 noinst_LIBRARIES = libgtksecentry.a
247 libgtksecentry_a_SOURCES = gtksecentry.c gtksecentry.h
248 all: all-am
249
250 .SUFFIXES:
251 .SUFFIXES: .c .lo .o .obj
252 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
253 @for dep in $?; do \
254 case '$(am__configure_deps)' in \
255 *$$dep*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
257 && exit 0; \
258 exit 1;; \
259 esac; \
260 done; \
261 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu gtksecentry/Makefile'; \
262 cd $(top_srcdir) && \
263 $(AUTOMAKE) --gnu gtksecentry/Makefile
264 .PRECIOUS: Makefile
265 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
266 @case '$?' in \
267 *config.status*) \
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
269 *) \
270 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
271 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
272 esac;
273
274 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
275 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
276
277 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
278 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
279 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
280 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
281
282 clean-noinstLIBRARIES:
283 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
284 libgtksecentry.a: $(libgtksecentry_a_OBJECTS) $(libgtksecentry_a_DEPENDENCIES)
285 -rm -f libgtksecentry.a
286 $(libgtksecentry_a_AR) libgtksecentry.a $(libgtksecentry_a_OBJECTS) $(libgtksecentry_a_LIBADD)
287 $(RANLIB) libgtksecentry.a
288
289 mostlyclean-compile:
290 -rm -f *.$(OBJEXT)
291
292 distclean-compile:
293 -rm -f *.tab.c
294
295 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtksecentry.Po@am__quote@
296
297 .c.o:
298 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
299 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
300 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
301 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
302 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
303
304 .c.obj:
305 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
306 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
310
311 .c.lo:
312 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
313 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
314 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
315 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
317
318 mostlyclean-libtool:
319 -rm -f *.lo
320
321 clean-libtool:
322 -rm -rf .libs _libs
323
324 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
325 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
326 unique=`for i in $$list; do \
327 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
328 done | \
329 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
330 END { if (nonempty) { for (i in files) print i; }; }'`; \
331 mkid -fID $$unique
332 tags: TAGS
333
334 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
335 $(TAGS_FILES) $(LISP)
336 tags=; \
337 here=`pwd`; \
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
344 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
345 test -n "$$unique" || unique=$$empty_fix; \
346 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
347 $$tags $$unique; \
348 fi
349 ctags: CTAGS
350 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
351 $(TAGS_FILES) $(LISP)
352 tags=; \
353 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
354 unique=`for i in $$list; do \
355 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
356 done | \
357 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
358 END { if (nonempty) { for (i in files) print i; }; }'`; \
359 test -z "$(CTAGS_ARGS)$$tags$$unique" \
360 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
361 $$tags $$unique
362
363 GTAGS:
364 here=`$(am__cd) $(top_builddir) && pwd` \
365 && cd $(top_srcdir) \
366 && gtags -i $(GTAGS_ARGS) $$here
367
368 distclean-tags:
369 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
370
371 distdir: $(DISTFILES)
372 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
373 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
374 list='$(DISTFILES)'; \
375 dist_files=`for file in $$list; do echo $$file; done | \
376 sed -e "s|^$$srcdirstrip/||;t" \
377 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
378 case $$dist_files in \
379 */*) $(MKDIR_P) `echo "$$dist_files" | \
380 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
381 sort -u` ;; \
382 esac; \
383 for file in $$dist_files; do \
384 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
385 if test -d $$d/$$file; then \
386 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
387 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
388 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
389 fi; \
390 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
391 else \
392 test -f $(distdir)/$$file \
393 || cp -p $$d/$$file $(distdir)/$$file \
394 || exit 1; \
395 fi; \
396 done
397 check-am: all-am
398 check: check-am
399 all-am: Makefile $(LIBRARIES)
400 installdirs:
401 install: install-am
402 install-exec: install-exec-am
403 install-data: install-data-am
404 uninstall: uninstall-am
405
406 install-am: all-am
407 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
408
409 installcheck: installcheck-am
410 install-strip:
411 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
412 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
413 `test -z '$(STRIP)' || \
414 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
415 mostlyclean-generic:
416
417 clean-generic:
418
419 distclean-generic:
420 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
421
422 maintainer-clean-generic:
423 @echo "This command is intended for maintainers to use"
424 @echo "it deletes files that may require special tools to rebuild."
425 clean: clean-am
426
427 clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
428 mostlyclean-am
429
430 distclean: distclean-am
431 -rm -rf ./$(DEPDIR)
432 -rm -f Makefile
433 distclean-am: clean-am distclean-compile distclean-generic \
434 distclean-tags
435
436 dvi: dvi-am
437
438 dvi-am:
439
440 html: html-am
441
442 info: info-am
443
444 info-am:
445
446 install-data-am:
447
448 install-dvi: install-dvi-am
449
450 install-exec-am:
451
452 install-html: install-html-am
453
454 install-info: install-info-am
455
456 install-man:
457
458 install-pdf: install-pdf-am
459
460 install-ps: install-ps-am
461
462 installcheck-am:
463
464 maintainer-clean: maintainer-clean-am
465 -rm -rf ./$(DEPDIR)
466 -rm -f Makefile
467 maintainer-clean-am: distclean-am maintainer-clean-generic
468
469 mostlyclean: mostlyclean-am
470
471 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
472 mostlyclean-libtool
473
474 pdf: pdf-am
475
476 pdf-am:
477
478 ps: ps-am
479
480 ps-am:
481
482 uninstall-am:
483
484 .MAKE: install-am install-strip
485
486 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
487 clean-libtool clean-noinstLIBRARIES ctags distclean \
488 distclean-compile distclean-generic distclean-libtool \
489 distclean-tags distdir dvi dvi-am html html-am info info-am \
490 install install-am install-data install-data-am install-dvi \
491 install-dvi-am install-exec install-exec-am install-html \
492 install-html-am install-info install-info-am install-man \
493 install-pdf install-pdf-am install-ps install-ps-am \
494 install-strip installcheck installcheck-am installdirs \
495 maintainer-clean maintainer-clean-generic mostlyclean \
496 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
497 pdf pdf-am ps ps-am tags uninstall uninstall-am
498
499 # Tell versions [3.59,3.63) of GNU make to not export all variables.
500 # Otherwise a system limit (for SysV at least) may be exceeded.
501 .NOEXPORT:
00 NULL =
11
2 smallicondir=${datadir}/icons/hicolor/22x22/apps
2 smallicondir=${pkgdatadir}/icons/hicolor/22x22/apps
33 smallicon_DATA= \
44 krb-valid-ticket.png \
55 krb-no-valid-ticket.png \
+0
-433
icons/Makefile.in less more
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkglibdir = $(libdir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21 install_sh_DATA = $(install_sh) -c -m 644
22 install_sh_PROGRAM = $(install_sh) -c
23 install_sh_SCRIPT = $(install_sh) -c
24 INSTALL_HEADER = $(INSTALL_DATA)
25 transform = $(program_transform_name)
26 NORMAL_INSTALL = :
27 PRE_INSTALL = :
28 POST_INSTALL = :
29 NORMAL_UNINSTALL = :
30 PRE_UNINSTALL = :
31 POST_UNINSTALL = :
32 build_triplet = @build@
33 host_triplet = @host@
34 subdir = icons
35 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
38 $(top_srcdir)/configure.ac
39 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
40 $(ACLOCAL_M4)
41 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
42 CONFIG_HEADER = $(top_builddir)/config.h
43 CONFIG_CLEAN_FILES =
44 SOURCES =
45 DIST_SOURCES =
46 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
47 am__vpath_adj = case $$p in \
48 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
49 *) f=$$p;; \
50 esac;
51 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
52 am__installdirs = "$(DESTDIR)$(smallicondir)"
53 smalliconDATA_INSTALL = $(INSTALL_DATA)
54 DATA = $(smallicon_DATA)
55 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
56 ACLOCAL = @ACLOCAL@
57 ALL_LINGUAS = @ALL_LINGUAS@
58 AMTAR = @AMTAR@
59 AR = @AR@
60 AUTOCONF = @AUTOCONF@
61 AUTOHEADER = @AUTOHEADER@
62 AUTOMAKE = @AUTOMAKE@
63 AWK = @AWK@
64 CATALOGS = @CATALOGS@
65 CATOBJEXT = @CATOBJEXT@
66 CC = @CC@
67 CCDEPMODE = @CCDEPMODE@
68 CFLAGS = @CFLAGS@
69 CPP = @CPP@
70 CPPFLAGS = @CPPFLAGS@
71 CXX = @CXX@
72 CXXCPP = @CXXCPP@
73 CXXDEPMODE = @CXXDEPMODE@
74 CXXFLAGS = @CXXFLAGS@
75 CYGPATH_W = @CYGPATH_W@
76 DATADIRNAME = @DATADIRNAME@
77 DBUS_CFLAGS = @DBUS_CFLAGS@
78 DBUS_LIBS = @DBUS_LIBS@
79 DEFS = @DEFS@
80 DEPDIR = @DEPDIR@
81 DSYMUTIL = @DSYMUTIL@
82 ECHO = @ECHO@
83 ECHO_C = @ECHO_C@
84 ECHO_N = @ECHO_N@
85 ECHO_T = @ECHO_T@
86 EGREP = @EGREP@
87 EXEEXT = @EXEEXT@
88 F77 = @F77@
89 FFLAGS = @FFLAGS@
90 GCONF_CFLAGS = @GCONF_CFLAGS@
91 GCONF_LIBS = @GCONF_LIBS@
92 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
93 GLADE_CFLAGS = @GLADE_CFLAGS@
94 GLADE_LIBS = @GLADE_LIBS@
95 GMOFILES = @GMOFILES@
96 GMSGFMT = @GMSGFMT@
97 GREP = @GREP@
98 GTK_CFLAGS = @GTK_CFLAGS@
99 GTK_LIBS = @GTK_LIBS@
100 INSTALL = @INSTALL@
101 INSTALL_DATA = @INSTALL_DATA@
102 INSTALL_PROGRAM = @INSTALL_PROGRAM@
103 INSTALL_SCRIPT = @INSTALL_SCRIPT@
104 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
105 INSTOBJEXT = @INSTOBJEXT@
106 INTLLIBS = @INTLLIBS@
107 INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
108 INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
109 INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
110 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
111 INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
112 INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
113 INTLTOOL_MERGE = @INTLTOOL_MERGE@
114 INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
115 INTLTOOL_PERL = @INTLTOOL_PERL@
116 INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
117 INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
118 INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
119 INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
120 INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
121 INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
122 INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
123 INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
124 INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
125 INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
126 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
127 INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
128 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
129 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
130 KRB5_CFLAGS = @KRB5_CFLAGS@
131 KRB5_CONFIG = @KRB5_CONFIG@
132 KRB5_LIBS = @KRB5_LIBS@
133 LDFLAGS = @LDFLAGS@
134 LEX = @LEX@
135 LEXLIB = @LEXLIB@
136 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
137 LIBCAP = @LIBCAP@
138 LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@
139 LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@
140 LIBOBJS = @LIBOBJS@
141 LIBS = @LIBS@
142 LIBTOOL = @LIBTOOL@
143 LN_S = @LN_S@
144 LTLIBOBJS = @LTLIBOBJS@
145 MAINT = @MAINT@
146 MAKEINFO = @MAKEINFO@
147 MKDIR_P = @MKDIR_P@
148 MKINSTALLDIRS = @MKINSTALLDIRS@
149 MSGFMT = @MSGFMT@
150 MSGFMT_OPTS = @MSGFMT_OPTS@
151 MSGMERGE = @MSGMERGE@
152 NETWORK_MANAGER_CFLAGS = @NETWORK_MANAGER_CFLAGS@
153 NETWORK_MANAGER_LIBS = @NETWORK_MANAGER_LIBS@
154 NMEDIT = @NMEDIT@
155 OBJEXT = @OBJEXT@
156 PACKAGE = @PACKAGE@
157 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
158 PACKAGE_NAME = @PACKAGE_NAME@
159 PACKAGE_STRING = @PACKAGE_STRING@
160 PACKAGE_TARNAME = @PACKAGE_TARNAME@
161 PACKAGE_VERSION = @PACKAGE_VERSION@
162 PATH_SEPARATOR = @PATH_SEPARATOR@
163 PKG_CONFIG = @PKG_CONFIG@
164 POFILES = @POFILES@
165 POSUB = @POSUB@
166 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
167 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
168 RANLIB = @RANLIB@
169 SED = @SED@
170 SETCAP = @SETCAP@
171 SET_MAKE = @SET_MAKE@
172 SHELL = @SHELL@
173 STRIP = @STRIP@
174 USE_NLS = @USE_NLS@
175 VERSION = @VERSION@
176 XGETTEXT = @XGETTEXT@
177 YACC = @YACC@
178 YFLAGS = @YFLAGS@
179 abs_builddir = @abs_builddir@
180 abs_srcdir = @abs_srcdir@
181 abs_top_builddir = @abs_top_builddir@
182 abs_top_srcdir = @abs_top_srcdir@
183 ac_ct_CC = @ac_ct_CC@
184 ac_ct_CXX = @ac_ct_CXX@
185 ac_ct_F77 = @ac_ct_F77@
186 am__include = @am__include@
187 am__leading_dot = @am__leading_dot@
188 am__quote = @am__quote@
189 am__tar = @am__tar@
190 am__untar = @am__untar@
191 bindir = @bindir@
192 build = @build@
193 build_alias = @build_alias@
194 build_cpu = @build_cpu@
195 build_os = @build_os@
196 build_vendor = @build_vendor@
197 builddir = @builddir@
198 check_interval = @check_interval@
199 datadir = @datadir@
200 datarootdir = @datarootdir@
201 docdir = @docdir@
202 dvidir = @dvidir@
203 exec_prefix = @exec_prefix@
204 host = @host@
205 host_alias = @host_alias@
206 host_cpu = @host_cpu@
207 host_os = @host_os@
208 host_vendor = @host_vendor@
209 htmldir = @htmldir@
210 includedir = @includedir@
211 infodir = @infodir@
212 install_sh = @install_sh@
213 libdir = @libdir@
214 libexecdir = @libexecdir@
215 localedir = @localedir@
216 localstatedir = @localstatedir@
217 mandir = @mandir@
218 minimum_lifetime = @minimum_lifetime@
219 mkdir_p = @mkdir_p@
220 oldincludedir = @oldincludedir@
221 pdfdir = @pdfdir@
222 prefix = @prefix@
223 program_transform_name = @program_transform_name@
224 psdir = @psdir@
225 sbindir = @sbindir@
226 sharedstatedir = @sharedstatedir@
227 srcdir = @srcdir@
228 sysconfdir = @sysconfdir@
229 target_alias = @target_alias@
230 top_builddir = @top_builddir@
231 top_srcdir = @top_srcdir@
232 NULL =
233 smallicondir = ${datadir}/icons/hicolor/22x22/apps
234 smallicon_DATA = \
235 krb-valid-ticket.png \
236 krb-no-valid-ticket.png \
237 krb-expiring-ticket.png \
238 $(NULL)
239
240 EXTRA_DIST = \
241 $(smallicon_DATA)
242
243 all: all-am
244
245 .SUFFIXES:
246 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
247 @for dep in $?; do \
248 case '$(am__configure_deps)' in \
249 *$$dep*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
251 && exit 0; \
252 exit 1;; \
253 esac; \
254 done; \
255 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu icons/Makefile'; \
256 cd $(top_srcdir) && \
257 $(AUTOMAKE) --gnu icons/Makefile
258 .PRECIOUS: Makefile
259 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
260 @case '$?' in \
261 *config.status*) \
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
263 *) \
264 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
265 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
266 esac;
267
268 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270
271 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
274 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
275
276 mostlyclean-libtool:
277 -rm -f *.lo
278
279 clean-libtool:
280 -rm -rf .libs _libs
281 install-smalliconDATA: $(smallicon_DATA)
282 @$(NORMAL_INSTALL)
283 test -z "$(smallicondir)" || $(MKDIR_P) "$(DESTDIR)$(smallicondir)"
284 @list='$(smallicon_DATA)'; for p in $$list; do \
285 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
286 f=$(am__strip_dir) \
287 echo " $(smalliconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(smallicondir)/$$f'"; \
288 $(smalliconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(smallicondir)/$$f"; \
289 done
290
291 uninstall-smalliconDATA:
292 @$(NORMAL_UNINSTALL)
293 @list='$(smallicon_DATA)'; for p in $$list; do \
294 f=$(am__strip_dir) \
295 echo " rm -f '$(DESTDIR)$(smallicondir)/$$f'"; \
296 rm -f "$(DESTDIR)$(smallicondir)/$$f"; \
297 done
298 tags: TAGS
299 TAGS:
300
301 ctags: CTAGS
302 CTAGS:
303
304
305 distdir: $(DISTFILES)
306 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
307 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
308 list='$(DISTFILES)'; \
309 dist_files=`for file in $$list; do echo $$file; done | \
310 sed -e "s|^$$srcdirstrip/||;t" \
311 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
312 case $$dist_files in \
313 */*) $(MKDIR_P) `echo "$$dist_files" | \
314 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
315 sort -u` ;; \
316 esac; \
317 for file in $$dist_files; do \
318 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
319 if test -d $$d/$$file; then \
320 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
321 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
322 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
323 fi; \
324 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
325 else \
326 test -f $(distdir)/$$file \
327 || cp -p $$d/$$file $(distdir)/$$file \
328 || exit 1; \
329 fi; \
330 done
331 check-am: all-am
332 check: check-am
333 all-am: Makefile $(DATA)
334 installdirs:
335 for dir in "$(DESTDIR)$(smallicondir)"; do \
336 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
337 done
338 install: install-am
339 install-exec: install-exec-am
340 install-data: install-data-am
341 uninstall: uninstall-am
342
343 install-am: all-am
344 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
345
346 installcheck: installcheck-am
347 install-strip:
348 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
349 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
350 `test -z '$(STRIP)' || \
351 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
352 mostlyclean-generic:
353
354 clean-generic:
355
356 distclean-generic:
357 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
358
359 maintainer-clean-generic:
360 @echo "This command is intended for maintainers to use"
361 @echo "it deletes files that may require special tools to rebuild."
362 clean: clean-am
363
364 clean-am: clean-generic clean-libtool mostlyclean-am
365
366 distclean: distclean-am
367 -rm -f Makefile
368 distclean-am: clean-am distclean-generic
369
370 dvi: dvi-am
371
372 dvi-am:
373
374 html: html-am
375
376 info: info-am
377
378 info-am:
379
380 install-data-am: install-smalliconDATA
381
382 install-dvi: install-dvi-am
383
384 install-exec-am:
385
386 install-html: install-html-am
387
388 install-info: install-info-am
389
390 install-man:
391
392 install-pdf: install-pdf-am
393
394 install-ps: install-ps-am
395
396 installcheck-am:
397
398 maintainer-clean: maintainer-clean-am
399 -rm -f Makefile
400 maintainer-clean-am: distclean-am maintainer-clean-generic
401
402 mostlyclean: mostlyclean-am
403
404 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
405
406 pdf: pdf-am
407
408 pdf-am:
409
410 ps: ps-am
411
412 ps-am:
413
414 uninstall-am: uninstall-smalliconDATA
415
416 .MAKE: install-am install-strip
417
418 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
419 distclean distclean-generic distclean-libtool distdir dvi \
420 dvi-am html html-am info info-am install install-am \
421 install-data install-data-am install-dvi install-dvi-am \
422 install-exec install-exec-am install-html install-html-am \
423 install-info install-info-am install-man install-pdf \
424 install-pdf-am install-ps install-ps-am install-smalliconDATA \
425 install-strip installcheck installcheck-am installdirs \
426 maintainer-clean maintainer-clean-generic mostlyclean \
427 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
428 uninstall uninstall-am uninstall-smalliconDATA
429
430 # Tell versions [3.59,3.63) of GNU make to not export all variables.
431 # Otherwise a system limit (for SysV at least) may be exceeded.
432 .NOEXPORT:
+0
-519
install-sh less more
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2006-12-25.00
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
50 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
59
60 chgrpprog=${CHGRPPROG-chgrp}
61 chmodprog=${CHMODPROG-chmod}
62 chownprog=${CHOWNPROG-chown}
63 cmpprog=${CMPPROG-cmp}
64 cpprog=${CPPROG-cp}
65 mkdirprog=${MKDIRPROG-mkdir}
66 mvprog=${MVPROG-mv}
67 rmprog=${RMPROG-rm}
68 stripprog=${STRIPPROG-strip}
69
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
81 posix_mkdir=
82
83 # Desired mode of installed file.
84 mode=0755
85
86 chgrpcmd=
87 chmodcmd=$chmodprog
88 chowncmd=
89 mvcmd=$mvprog
90 rmcmd="$rmprog -f"
91 stripcmd=
92
93 src=
94 dst=
95 dir_arg=
96 dst_arg=
97
98 copy_on_change=false
99 no_target_directory=
100
101 usage="\
102 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
103 or: $0 [OPTION]... SRCFILES... DIRECTORY
104 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
105 or: $0 [OPTION]... -d DIRECTORIES...
106
107 In the 1st form, copy SRCFILE to DSTFILE.
108 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
109 In the 4th, create DIRECTORIES.
110
111 Options:
112 --help display this help and exit.
113 --version display version info and exit.
114
115 -c (ignored)
116 -C install only if different (preserve the last data modification time)
117 -d create directories instead of installing files.
118 -g GROUP $chgrpprog installed files to GROUP.
119 -m MODE $chmodprog installed files to MODE.
120 -o USER $chownprog installed files to USER.
121 -s $stripprog installed files.
122 -t DIRECTORY install into DIRECTORY.
123 -T report an error if DSTFILE is a directory.
124
125 Environment variables override the default commands:
126 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
127 RMPROG STRIPPROG
128 "
129
130 while test $# -ne 0; do
131 case $1 in
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
137
138 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
140
141 --help) echo "$usage"; exit $?;;
142
143 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
151
152 -o) chowncmd="$chownprog $2"
153 shift;;
154
155 -s) stripcmd=$stripprog;;
156
157 -t) dst_arg=$2
158 shift;;
159
160 -T) no_target_directory=true;;
161
162 --version) echo "$0 $scriptversion"; exit $?;;
163
164 --) shift
165 break;;
166
167 -*) echo "$0: invalid option: $1" >&2
168 exit 1;;
169
170 *) break;;
171 esac
172 shift
173 done
174
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 done
189 fi
190
191 if test $# -eq 0; then
192 if test -z "$dir_arg"; then
193 echo "$0: no input file specified." >&2
194 exit 1
195 fi
196 # It's OK to call `install-sh -d' without argument.
197 # This can happen when creating conditional directories.
198 exit 0
199 fi
200
201 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
203
204 # Set umask so as not to create temps with too-generous modes.
205 # However, 'strip' requires both read and write access to temps.
206 case $mode in
207 # Optimize common cases.
208 *644) cp_umask=133;;
209 *755) cp_umask=22;;
210
211 *[0-7])
212 if test -z "$stripcmd"; then
213 u_plus_rw=
214 else
215 u_plus_rw='% 200'
216 fi
217 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
218 *)
219 if test -z "$stripcmd"; then
220 u_plus_rw=
221 else
222 u_plus_rw=,u+rw
223 fi
224 cp_umask=$mode$u_plus_rw;;
225 esac
226 fi
227
228 for src
229 do
230 # Protect names starting with `-'.
231 case $src in
232 -*) src=./$src;;
233 esac
234
235 if test -n "$dir_arg"; then
236 dst=$src
237 dstdir=$dst
238 test -d "$dstdir"
239 dstdir_status=$?
240 else
241
242 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
243 # might cause directories to be created, which would be especially bad
244 # if $src (and thus $dsttmp) contains '*'.
245 if test ! -f "$src" && test ! -d "$src"; then
246 echo "$0: $src does not exist." >&2
247 exit 1
248 fi
249
250 if test -z "$dst_arg"; then
251 echo "$0: no destination specified." >&2
252 exit 1
253 fi
254
255 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260
261 # If destination is a directory, append the input filename; won't work
262 # if double slashes aren't ignored.
263 if test -d "$dst"; then
264 if test -n "$no_target_directory"; then
265 echo "$0: $dst_arg: Is a directory" >&2
266 exit 1
267 fi
268 dstdir=$dst
269 dst=$dstdir/`basename "$src"`
270 dstdir_status=0
271 else
272 # Prefer dirname, but fall back on a substitute if dirname fails.
273 dstdir=`
274 (dirname "$dst") 2>/dev/null ||
275 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
276 X"$dst" : 'X\(//\)[^/]' \| \
277 X"$dst" : 'X\(//\)$' \| \
278 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
279 echo X"$dst" |
280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
281 s//\1/
282 q
283 }
284 /^X\(\/\/\)[^/].*/{
285 s//\1/
286 q
287 }
288 /^X\(\/\/\)$/{
289 s//\1/
290 q
291 }
292 /^X\(\/\).*/{
293 s//\1/
294 q
295 }
296 s/.*/./; q'
297 `
298
299 test -d "$dstdir"
300 dstdir_status=$?
301 fi
302 fi
303
304 obsolete_mkdir_used=false
305
306 if test $dstdir_status != 0; then
307 case $posix_mkdir in
308 '')
309 # Create intermediate dirs using mode 755 as modified by the umask.
310 # This is like FreeBSD 'install' as of 1997-10-28.
311 umask=`umask`
312 case $stripcmd.$umask in
313 # Optimize common cases.
314 *[2367][2367]) mkdir_umask=$umask;;
315 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
316
317 *[0-7])
318 mkdir_umask=`expr $umask + 22 \
319 - $umask % 100 % 40 + $umask % 20 \
320 - $umask % 10 % 4 + $umask % 2
321 `;;
322 *) mkdir_umask=$umask,go-w;;
323 esac
324
325 # With -d, create the new directory with the user-specified mode.
326 # Otherwise, rely on $mkdir_umask.
327 if test -n "$dir_arg"; then
328 mkdir_mode=-m$mode
329 else
330 mkdir_mode=
331 fi
332
333 posix_mkdir=false
334 case $umask in
335 *[123567][0-7][0-7])
336 # POSIX mkdir -p sets u+wx bits regardless of umask, which
337 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
338 ;;
339 *)
340 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
341 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
342
343 if (umask $mkdir_umask &&
344 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
345 then
346 if test -z "$dir_arg" || {
347 # Check for POSIX incompatibilities with -m.
348 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
350 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352 case $ls_ld_tmpdir in
353 d????-?r-*) different_mode=700;;
354 d????-?--*) different_mode=755;;
355 *) false;;
356 esac &&
357 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
358 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
359 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
360 }
361 }
362 then posix_mkdir=:
363 fi
364 rmdir "$tmpdir/d" "$tmpdir"
365 else
366 # Remove any dirs left behind by ancient mkdir implementations.
367 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
368 fi
369 trap '' 0;;
370 esac;;
371 esac
372
373 if
374 $posix_mkdir && (
375 umask $mkdir_umask &&
376 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
377 )
378 then :
379 else
380
381 # The umask is ridiculous, or mkdir does not conform to POSIX,
382 # or it failed possibly due to a race condition. Create the
383 # directory the slow way, step by step, checking for races as we go.
384
385 case $dstdir in
386 /*) prefix='/';;
387 -*) prefix='./';;
388 *) prefix='';;
389 esac
390
391 eval "$initialize_posix_glob"
392
393 oIFS=$IFS
394 IFS=/
395 $posix_glob set -f
396 set fnord $dstdir
397 shift
398 $posix_glob set +f
399 IFS=$oIFS
400
401 prefixes=
402
403 for d
404 do
405 test -z "$d" && continue
406
407 prefix=$prefix$d
408 if test -d "$prefix"; then
409 prefixes=
410 else
411 if $posix_mkdir; then
412 (umask=$mkdir_umask &&
413 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
414 # Don't fail if two instances are running concurrently.
415 test -d "$prefix" || exit 1
416 else
417 case $prefix in
418 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) qprefix=$prefix;;
420 esac
421 prefixes="$prefixes '$qprefix'"
422 fi
423 fi
424 prefix=$prefix/
425 done
426
427 if test -n "$prefixes"; then
428 # Don't fail if two instances are running concurrently.
429 (umask $mkdir_umask &&
430 eval "\$doit_exec \$mkdirprog $prefixes") ||
431 test -d "$dstdir" || exit 1
432 obsolete_mkdir_used=true
433 fi
434 fi
435 fi
436
437 if test -n "$dir_arg"; then
438 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
439 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
440 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
441 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
442 else
443
444 # Make a couple of temp file names in the proper directory.
445 dsttmp=$dstdir/_inst.$$_
446 rmtmp=$dstdir/_rm.$$_
447
448 # Trap to clean up those temp files at exit.
449 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
450
451 # Copy the file name to the temp name.
452 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
453
454 # and set any options; do chmod last to preserve setuid bits.
455 #
456 # If any of these fail, we abort the whole thing. If we want to
457 # ignore errors from any of these, just make sure not to ignore
458 # errors from the above "$doit $cpprog $src $dsttmp" command.
459 #
460 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
461 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
462 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
463 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
464
465 # If -C, don't bother to copy if it wouldn't change the file.
466 if $copy_on_change &&
467 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
468 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
469
470 eval "$initialize_posix_glob" &&
471 $posix_glob set -f &&
472 set X $old && old=:$2:$4:$5:$6 &&
473 set X $new && new=:$2:$4:$5:$6 &&
474 $posix_glob set +f &&
475
476 test "$old" = "$new" &&
477 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
478 then
479 rm -f "$dsttmp"
480 else
481 # Rename the file to the real destination.
482 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
483
484 # The rename failed, perhaps because mv can't rename something else
485 # to itself, or perhaps because mv is so ancient that it does not
486 # support -f.
487 {
488 # Now remove or move aside any old file at destination location.
489 # We try this two ways since rm can't unlink itself on some
490 # systems and the destination file might be busy for other
491 # reasons. In this case, the final cleanup might fail but the new
492 # file should still install successfully.
493 {
494 test ! -f "$dst" ||
495 $doit $rmcmd -f "$dst" 2>/dev/null ||
496 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
497 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
498 } ||
499 { echo "$0: cannot unlink or rename $dst" >&2
500 (exit 1); exit 1
501 }
502 } &&
503
504 # Now rename the file to the real destination.
505 $doit $mvcmd "$dsttmp" "$dst"
506 }
507 fi || exit 1
508
509 trap '' 0
510 fi
511 done
512
513 # Local variables:
514 # eval: (add-hook 'write-file-hooks 'time-stamp)
515 # time-stamp-start: "scriptversion="
516 # time-stamp-format: "%:y-%02m-%02d.%02H"
517 # time-stamp-end: "$"
518 # End:
+0
-45
krb5-auth-dialog.spec less more
0 Summary: Kerberos 5 authentication dialog
1 Name: krb5-auth-dialog
2 Version: 0.8
3 Release: 1
4 License: GPL
5 Group: User Interface/X
6 URL: http://www.redhat.com/
7 Source0: %{name}-%{version}.tar.gz
8 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
9 BuildRequires: krb5-devel
10 BuildRequires: libgnomeui-devel
11
12 %description
13 This package contains a dialog that warns the user when their Kerberos
14 tickets are about to expire and lets them renew them.
15
16 %prep
17 %setup -q
18
19 %build
20 %configure
21 make
22
23 %install
24 rm -rf $RPM_BUILD_ROOT
25 %makeinstall
26 %find_lang %name
27
28 %clean
29 rm -rf $RPM_BUILD_ROOT
30
31
32 %files -f %name.lang
33 %defattr(-,root,root,-)
34 %doc
35 %{_bindir}/krb5-auth-dialog
36 %{_mandir}/man?/krb5-auth-dialog.1*
37 %{_datadir}/krb5-auth-dialog/
38 %{_sysconfdir}/xdg/autostart/krb5-auth-dialog.dekstop
39
40
41 %changelog
42 * Mon Aug 16 2004 GNOME <jrb@redhat.com> - auth-dialog
43 - Initial build.
44
+0
-6964
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
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 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
42
43 PROGRAM=ltmain.sh
44 PACKAGE=libtool
45 VERSION="1.5.26 Debian 1.5.26-4"
46 TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
47
48 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
49 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50 emulate sh
51 NULLCMD=:
52 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53 # is contrary to our usage. Disable this feature.
54 alias -g '${1+"$@"}'='"$@"'
55 setopt NO_GLOB_SUBST
56 else
57 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
58 fi
59 BIN_SH=xpg4; export BIN_SH # for Tru64
60 DUALCASE=1; export DUALCASE # for MKS sh
61
62 # Check that we have a working $echo.
63 if test "X$1" = X--no-reexec; then
64 # Discard the --no-reexec flag, and continue.
65 shift
66 elif test "X$1" = X--fallback-echo; then
67 # Avoid inline document here, it may be left over
68 :
69 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
70 # Yippee, $echo works!
71 :
72 else
73 # Restart under the correct shell, and then maybe $echo will work.
74 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
75 fi
76
77 if test "X$1" = X--fallback-echo; then
78 # used as fallback echo
79 shift
80 cat <<EOF
81 $*
82 EOF
83 exit $EXIT_SUCCESS
84 fi
85
86 default_mode=
87 help="Try \`$progname --help' for more information."
88 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
140
141 # Global variables.
142 mode=$default_mode
143 nonopt=
144 prev=
145 prevopt=
146 run=
147 show="$echo"
148 show_help=
149 execute_dlfiles=
150 duplicate_deps=no
151 preserve_args=
152 lo2o="s/\\.lo\$/.${objext}/"
153 o2lo="s/\\.${objext}\$/.lo/"
154 extracted_archives=
155 extracted_serial=0
156
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 ()
166 {
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}-$$"
172 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
185 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
190 exit $EXIT_FAILURE
191 }
192 fi
193
194 $echo "X$my_tmpdir" | $Xsed
195 }
196
197
198 # func_win32_libid arg
199 # return the library type of file 'arg'
200 #
201 # Need a lot of goo to handle *both* DLLs and import libs
202 # Has to be a shell function in order to 'eat' the argument
203 # that is supplied when $file_magic_command is called.
204 func_win32_libid ()
205 {
206 win32_libid_type="unknown"
207 win32_fileres=`file -L $1 2>/dev/null`
208 case $win32_fileres in
209 *ar\ archive\ import\ library*) # definitely import
210 win32_libid_type="x86 archive import"
211 ;;
212 *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{
217 / I /{
218 s,.*,import,
219 p
220 q
221 }
222 }'`
223 case $win32_nmres in
224 import*) win32_libid_type="x86 archive import";;
225 *) win32_libid_type="x86 archive static";;
226 esac
227 fi
228 ;;
229 *DLL*)
230 win32_libid_type="x86 DLL"
231 ;;
232 *executable*) # but shell scripts are "executable" too...
233 case $win32_fileres in
234 *MS\ Windows\ PE\ Intel*)
235 win32_libid_type="x86 DLL"
236 ;;
237 esac
238 ;;
239 esac
240 $echo $win32_libid_type
241 }
242
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 }
308
309
310 # func_extract_an_archive dir oldlib
311 func_extract_an_archive ()
312 {
313 f_ex_an_ar_dir="$1"; shift
314 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 $?
318 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
319 :
320 else
321 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
322 exit $EXIT_FAILURE
323 fi
324 }
325
326 # func_extract_archives gentop oldlib ...
327 func_extract_archives ()
328 {
329 my_gentop="$1"; shift
330 my_oldlibs=${1+"$@"}
331 my_oldobjs=""
332 my_xlib=""
333 my_xabs=""
334 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
345
346 for my_xlib in $my_oldlibs; do
347 # Extract the objects.
348 case $my_xlib in
349 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
350 *) my_xabs=`pwd`"/$my_xlib" ;;
351 esac
352 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
353 my_xlib_u=$my_xlib
354 while :; do
355 case " $extracted_archives " in
356 *" $my_xlib_u "*)
357 extracted_serial=`expr $extracted_serial + 1`
358 my_xlib_u=lt$extracted_serial-$my_xlib ;;
359 *) break ;;
360 esac
361 done
362 extracted_archives="$extracted_archives $my_xlib_u"
363 my_xdir="$my_gentop/$my_xlib_u"
364
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
373 case $host in
374 *-darwin*)
375 $show "Extracting $my_xabs"
376 # Do not bother doing anything if just a dry run
377 if test -z "$run"; then
378 darwin_orig_dir=`pwd`
379 cd $my_xdir || exit $?
380 darwin_archive=$my_xabs
381 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://'`
386 darwin_arch=
387 $show "$darwin_base_archive has multiple architectures $darwin_arches"
388 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}"
391 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
392 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
393 cd "$darwin_curdir"
394 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
395 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`
398 darwin_file=
399 darwin_files=
400 for darwin_file in $darwin_filelist; do
401 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
402 lipo -create -output "$darwin_file" $darwin_files
403 done # $darwin_filelist
404 ${rm}r unfat-$$
405 cd "$darwin_orig_dir"
406 else
407 cd "$darwin_orig_dir"
408 func_extract_an_archive "$my_xdir" "$my_xabs"
409 fi # $darwin_arches
410 fi # $run
411 ;;
412 *)
413 func_extract_an_archive "$my_xdir" "$my_xabs"
414 ;;
415 esac
416 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
417 done
418 func_extract_archives_result="$my_oldobjs"
419 }
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 ;;
455 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
469 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"
524 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 ;;
639 esac
640 fi
641
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
647 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 ;;
723 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.
934 EOF
935
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"
943 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 :
966 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'
1005
1006 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"
1104 case $host in
1105 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1106 # It is impossible to link a dll without this setting, and
1107 # we shouldn't force the makefile maintainer to figure out
1108 # which system we are compiling for in order to pass an extra
1109 # flag for every libtool invocation.
1110 # allow_undefined=no
1111
1112 # FIXME: Unfortunately, there are problems with the above when trying
1113 # to make a dll which has undefined symbols, in which case not
1114 # even a static library is built. For now, we need to specify
1115 # -no-undefined on the libtool link line when we can be certain
1116 # that all symbols are satisfied, otherwise we get a static library.
1117 allow_undefined=yes
1118 ;;
1119 *)
1120 allow_undefined=yes
1121 ;;
1122 esac
1123 libtool_args="$nonopt"
1124 base_compile="$nonopt $@"
1125 compile_command="$nonopt"
1126 finalize_command="$nonopt"
1127
1128 compile_rpath=
1129 finalize_rpath=
1130 compile_shlibpath=
1131 finalize_shlibpath=
1132 convenience=
1133 old_convenience=
1134 deplibs=
1135 old_deplibs=
1136 compiler_flags=
1137 linker_flags=
1138 dllsearchpath=
1139 lib_search_path=`pwd`
1140 inst_prefix_dir=
1141
1142 avoid_version=no
1143 dlfiles=
1144 dlprefiles=
1145 dlself=no
1146 export_dynamic=no
1147 export_symbols=
1148 export_symbols_regex=
1149 generated=
1150 libobjs=
1151 ltlibs=
1152 module=no
1153 no_install=no
1154 objs=
1155 non_pic_objects=
1156 notinst_path= # paths that contain not-installed libtool libraries
1157 precious_files_regex=
1158 prefer_static_libs=no
1159 preload=no
1160 prev=
1161 prevarg=
1162 release=
1163 rpath=
1164 xrpath=
1165 perm_rpath=
1166 temp_rpath=
1167 thread_safe=no
1168 vinfo=
1169 vinfo_number=no
1170 single_module="${wl}-single_module"
1171
1172 func_infer_tag $base_compile
1173
1174 # We need to know -static, to get the right output filenames.
1175 for arg
1176 do
1177 case $arg in
1178 -all-static | -static | -static-libtool-libs)
1179 case $arg in
1180 -all-static)
1181 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
1183 fi
1184 if test -n "$link_static_flag"; then
1185 dlopen_self=$dlopen_self_static
1186 fi
1187 prefer_static_libs=yes
1188 ;;
1189 -static)
1190 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1191 dlopen_self=$dlopen_self_static
1192 fi
1193 prefer_static_libs=built
1194 ;;
1195 -static-libtool-libs)
1196 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1197 dlopen_self=$dlopen_self_static
1198 fi
1199 prefer_static_libs=yes
1200 ;;
1201 esac
1202 build_libtool_libs=no
1203 build_old_libs=yes
1204 break
1205 ;;
1206 esac
1207 done
1208
1209 # See if our shared archives depend on static archives.
1210 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
1211
1212 # Go through the arguments, transforming them on the way.
1213 while test "$#" -gt 0; do
1214 arg="$1"
1215 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"
1223
1224 # If the previous option needs an argument, assign it.
1225 if test -n "$prev"; then
1226 case $prev in
1227 output)
1228 compile_command="$compile_command @OUTPUT@"
1229 finalize_command="$finalize_command @OUTPUT@"
1230 ;;
1231 esac
1232
1233 case $prev in
1234 dlfiles|dlprefiles)
1235 if test "$preload" = no; then
1236 # Add the symbol object into the linking commands.
1237 compile_command="$compile_command @SYMFILE@"
1238 finalize_command="$finalize_command @SYMFILE@"
1239 preload=yes
1240 fi
1241 case $arg in
1242 *.la | *.lo) ;; # We handle these cases below.
1243 force)
1244 if test "$dlself" = no; then
1245 dlself=needless
1246 export_dynamic=yes
1247 fi
1248 prev=
1249 continue
1250 ;;
1251 self)
1252 if test "$prev" = dlprefiles; then
1253 dlself=yes
1254 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
1255 dlself=yes
1256 else
1257 dlself=needless
1258 export_dynamic=yes
1259 fi
1260 prev=
1261 continue
1262 ;;
1263 *)
1264 if test "$prev" = dlfiles; then
1265 dlfiles="$dlfiles $arg"
1266 else
1267 dlprefiles="$dlprefiles $arg"
1268 fi
1269 prev=
1270 continue
1271 ;;
1272 esac
1273 ;;
1274 expsyms)
1275 export_symbols="$arg"
1276 if test ! -f "$arg"; then
1277 $echo "$modename: symbol file \`$arg' does not exist"
1278 exit $EXIT_FAILURE
1279 fi
1280 prev=
1281 continue
1282 ;;
1283 expsyms_regex)
1284 export_symbols_regex="$arg"
1285 prev=
1286 continue
1287 ;;
1288 inst_prefix)
1289 inst_prefix_dir="$arg"
1290 prev=
1291 continue
1292 ;;
1293 precious_regex)
1294 precious_files_regex="$arg"
1295 prev=
1296 continue
1297 ;;
1298 release)
1299 release="-$arg"
1300 prev=
1301 continue
1302 ;;
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 ;;
1415 rpath | xrpath)
1416 # We need an absolute path.
1417 case $arg in
1418 [\\/]* | [A-Za-z]:[\\/]*) ;;
1419 *)
1420 $echo "$modename: only absolute run-paths are allowed" 1>&2
1421 exit $EXIT_FAILURE
1422 ;;
1423 esac
1424 if test "$prev" = rpath; then
1425 case "$rpath " in
1426 *" $arg "*) ;;
1427 *) rpath="$rpath $arg" ;;
1428 esac
1429 else
1430 case "$xrpath " in
1431 *" $arg "*) ;;
1432 *) xrpath="$xrpath $arg" ;;
1433 esac
1434 fi
1435 prev=
1436 continue
1437 ;;
1438 xcompiler)
1439 compiler_flags="$compiler_flags $qarg"
1440 prev=
1441 compile_command="$compile_command $qarg"
1442 finalize_command="$finalize_command $qarg"
1443 continue
1444 ;;
1445 xlinker)
1446 linker_flags="$linker_flags $qarg"
1447 compiler_flags="$compiler_flags $wl$qarg"
1448 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=
1471 continue
1472 ;;
1473 *)
1474 eval "$prev=\"\$arg\""
1475 prev=
1476 continue
1477 ;;
1478 esac
1479 fi # test -n "$prev"
1480
1481 prevarg="$arg"
1482
1483 case $arg in
1484 -all-static)
1485 if test -n "$link_static_flag"; then
1486 compile_command="$compile_command $link_static_flag"
1487 finalize_command="$finalize_command $link_static_flag"
1488 fi
1489 continue
1490 ;;
1491
1492 -allow-undefined)
1493 # FIXME: remove this flag sometime in the future.
1494 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1495 continue
1496 ;;
1497
1498 -avoid-version)
1499 avoid_version=yes
1500 continue
1501 ;;
1502
1503 -dlopen)
1504 prev=dlfiles
1505 continue
1506 ;;
1507
1508 -dlpreopen)
1509 prev=dlprefiles
1510 continue
1511 ;;
1512
1513 -export-dynamic)
1514 export_dynamic=yes
1515 continue
1516 ;;
1517
1518 -export-symbols | -export-symbols-regex)
1519 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
1522 fi
1523 if test "X$arg" = "X-export-symbols"; then
1524 prev=expsyms
1525 else
1526 prev=expsyms_regex
1527 fi
1528 continue
1529 ;;
1530
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"
1540 continue
1541 ;;
1542
1543 -inst-prefix-dir)
1544 prev=inst_prefix
1545 continue
1546 ;;
1547
1548 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
1549 # so, if we see these flags be careful not to treat them like -L
1550 -L[A-Z][A-Z]*:*)
1551 case $with_gcc/$host in
1552 no/*-*-irix* | /*-*-irix*)
1553 compile_command="$compile_command $arg"
1554 finalize_command="$finalize_command $arg"
1555 ;;
1556 esac
1557 continue
1558 ;;
1559
1560 -L*)
1561 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
1562 # We need an absolute path.
1563 case $dir in
1564 [\\/]* | [A-Za-z]:[\\/]*) ;;
1565 *)
1566 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
1572 dir="$absdir"
1573 ;;
1574 esac
1575 case "$deplibs " in
1576 *" -L$dir "*) ;;
1577 *)
1578 deplibs="$deplibs -L$dir"
1579 lib_search_path="$lib_search_path $dir"
1580 ;;
1581 esac
1582 case $host in
1583 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1584 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1585 case :$dllsearchpath: in
1586 *":$dir:"*) ;;
1587 *) dllsearchpath="$dllsearchpath:$dir";;
1588 esac
1589 case :$dllsearchpath: in
1590 *":$testbindir:"*) ;;
1591 *) dllsearchpath="$dllsearchpath:$testbindir";;
1592 esac
1593 ;;
1594 esac
1595 continue
1596 ;;
1597
1598 -l*)
1599 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1600 case $host in
1601 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1602 # These systems don't actually have a C or math library (as such)
1603 continue
1604 ;;
1605 *-*-os2*)
1606 # These systems don't actually have a C library (as such)
1607 test "X$arg" = "X-lc" && continue
1608 ;;
1609 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1610 # Do not include libc due to us having libc/libc_r.
1611 test "X$arg" = "X-lc" && continue
1612 ;;
1613 *-*-rhapsody* | *-*-darwin1.[012])
1614 # Rhapsody C and math libraries are in the System framework
1615 deplibs="$deplibs -framework System"
1616 continue
1617 ;;
1618 *-*-sco3.2v5* | *-*-sco5v6*)
1619 # Causes problems with __ctype
1620 test "X$arg" = "X-lc" && continue
1621 ;;
1622 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1623 # Compiler inserts libc in the correct place for threads to work
1624 test "X$arg" = "X-lc" && continue
1625 ;;
1626 esac
1627 elif test "X$arg" = "X-lc_r"; then
1628 case $host in
1629 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1630 # Do not include libc_r directly, use -pthread flag.
1631 continue
1632 ;;
1633 esac
1634 fi
1635 deplibs="$deplibs $arg"
1636 continue
1637 ;;
1638
1639 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1640 # classes, name mangling, and exception handling.
1641 -model)
1642 compile_command="$compile_command $arg"
1643 compiler_flags="$compiler_flags $arg"
1644 finalize_command="$finalize_command $arg"
1645 prev=xcompiler
1646 continue
1647 ;;
1648
1649 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1650 compiler_flags="$compiler_flags $arg"
1651 compile_command="$compile_command $arg"
1652 finalize_command="$finalize_command $arg"
1653 continue
1654 ;;
1655
1656 -multi_module)
1657 single_module="${wl}-multi_module"
1658 continue
1659 ;;
1660
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
1699 -no-fast-install)
1700 fast_install=no
1701 continue
1702 ;;
1703
1704 -no-install)
1705 case $host in
1706 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
1707 # The PATH hackery in wrapper scripts is required on Windows
1708 # 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
1711 fast_install=no
1712 ;;
1713 *) no_install=yes ;;
1714 esac
1715 continue
1716 ;;
1717
1718 -no-undefined)
1719 allow_undefined=no
1720 continue
1721 ;;
1722
1723 -objectlist)
1724 prev=objectlist
1725 continue
1726 ;;
1727
1728 -o) prev=output ;;
1729
1730 -precious-files-regex)
1731 prev=precious_regex
1732 continue
1733 ;;
1734
1735 -release)
1736 prev=release
1737 continue
1738 ;;
1739
1740 -rpath)
1741 prev=rpath
1742 continue
1743 ;;
1744
1745 -R)
1746 prev=xrpath
1747 continue
1748 ;;
1749
1750 -R*)
1751 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
1752 # We need an absolute path.
1753 case $dir in
1754 [\\/]* | [A-Za-z]:[\\/]*) ;;
1755 *)
1756 $echo "$modename: only absolute run-paths are allowed" 1>&2
1757 exit $EXIT_FAILURE
1758 ;;
1759 esac
1760 case "$xrpath " in
1761 *" $dir "*) ;;
1762 *) xrpath="$xrpath $dir" ;;
1763 esac
1764 continue
1765 ;;
1766
1767 -static | -static-libtool-libs)
1768 # The effects of -static are defined in a previous loop.
1769 # We used to do the same as -all-static on platforms that
1770 # didn't have a PIC flag, but the assumption that the effects
1771 # would be equivalent was wrong. It would break on at least
1772 # Digital Unix and AIX.
1773 continue
1774 ;;
1775
1776 -thread-safe)
1777 thread_safe=yes
1778 continue
1779 ;;
1780
1781 -version-info)
1782 prev=vinfo
1783 continue
1784 ;;
1785 -version-number)
1786 prev=vinfo
1787 vinfo_number=yes
1788 continue
1789 ;;
1790
1791 -Wc,*)
1792 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
1793 arg=
1794 save_ifs="$IFS"; IFS=','
1795 for flag in $args; do
1796 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"
1804 done
1805 IFS="$save_ifs"
1806 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1807 ;;
1808
1809 -Wl,*)
1810 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
1811 arg=
1812 save_ifs="$IFS"; IFS=','
1813 for flag in $args; do
1814 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"
1823 done
1824 IFS="$save_ifs"
1825 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1826 ;;
1827
1828 -Xcompiler)
1829 prev=xcompiler
1830 continue
1831 ;;
1832
1833 -Xlinker)
1834 prev=xlinker
1835 continue
1836 ;;
1837
1838 -XCClinker)
1839 prev=xcclinker
1840 continue
1841 ;;
1842
1843 # Some other compiler flag.
1844 -* | +*)
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
1853 ;;
1854
1855 *.$objext)
1856 # A standard object.
1857 objs="$objs $arg"
1858 ;;
1859
1860 *.lo)
1861 # A libtool-controlled object.
1862
1863 # 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
1865 pic_object=
1866 non_pic_object=
1867
1868 # 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" || \
1876 test -z "$non_pic_object" ||
1877 test "$pic_object" = none && \
1878 test "$non_pic_object" = none; then
1879 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1880 exit $EXIT_FAILURE
1881 fi
1882
1883 # 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
1890
1891 if test "$pic_object" != none; then
1892 # Prepend the subdirectory the object is found in.
1893 pic_object="$xdir$pic_object"
1894
1895 if test "$prev" = dlfiles; then
1896 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1897 dlfiles="$dlfiles $pic_object"
1898 prev=
1899 continue
1900 else
1901 # If libtool objects are unsupported, then we need to preload.
1902 prev=dlprefiles
1903 fi
1904 fi
1905
1906 # CHECK ME: I think I busted this. -Ossama
1907 if test "$prev" = dlprefiles; then
1908 # Preload the old-style object.
1909 dlprefiles="$dlprefiles $pic_object"
1910 prev=
1911 fi
1912
1913 # A PIC object.
1914 libobjs="$libobjs $pic_object"
1915 arg="$pic_object"
1916 fi
1917
1918 # Non-PIC object.
1919 if test "$non_pic_object" != none; then
1920 # Prepend the subdirectory the object is found in.
1921 non_pic_object="$xdir$non_pic_object"
1922
1923 # A standard non-PIC object
1924 non_pic_objects="$non_pic_objects $non_pic_object"
1925 if test -z "$pic_object" || test "$pic_object" = none ; then
1926 arg="$non_pic_object"
1927 fi
1928 else
1929 # If the PIC object exists, use it instead.
1930 # $xdir was prepended to $pic_object above.
1931 non_pic_object="$pic_object"
1932 non_pic_objects="$non_pic_objects $non_pic_object"
1933 fi
1934 else
1935 # 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
1939 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"
1954 fi
1955 fi
1956 ;;
1957
1958 *.$libext)
1959 # An archive.
1960 deplibs="$deplibs $arg"
1961 old_deplibs="$old_deplibs $arg"
1962 continue
1963 ;;
1964
1965 *.la)
1966 # A libtool-controlled library.
1967
1968 if test "$prev" = dlfiles; then
1969 # This library was specified with -dlopen.
1970 dlfiles="$dlfiles $arg"
1971 prev=
1972 elif test "$prev" = dlprefiles; then
1973 # The library was specified with -dlpreopen.
1974 dlprefiles="$dlprefiles $arg"
1975 prev=
1976 else
1977 deplibs="$deplibs $arg"
1978 fi
1979 continue
1980 ;;
1981
1982 # Some other compiler argument.
1983 *)
1984 # Unknown arguments in both finalize_command and compile_command need
1985 # 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
1992 ;;
1993 esac # arg
1994
1995 # Now actually substitute the argument into the commands.
1996 if test -n "$arg"; then
1997 compile_command="$compile_command $arg"
1998 finalize_command="$finalize_command $arg"
1999 fi
2000 done # argument parsing loop
2001
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
2007
2008 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
2009 eval arg=\"$export_dynamic_flag_spec\"
2010 compile_command="$compile_command $arg"
2011 finalize_command="$finalize_command $arg"
2012 fi
2013
2014 oldlibs=
2015 # calculate the name of the file, without its directory
2016 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
2017 libobjs_save="$libobjs"
2018
2019 if test -n "$shlibpath_var"; then
2020 # get the directories listed in $shlibpath_var
2021 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
2022 else
2023 shlib_search_path=
2024 fi
2025 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
2026 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
2027
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
2034 # 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
2043
2044 # Determine the type of output
2045 case $output in
2046 "")
2047 $echo "$modename: you must specify an output file" 1>&2
2048 $echo "$help" 1>&2
2049 exit $EXIT_FAILURE
2050 ;;
2051 *.$libext) linkmode=oldlib ;;
2052 *.lo | *.$objext) linkmode=obj ;;
2053 *.la) linkmode=lib ;;
2054 *) linkmode=prog ;; # Anything else should be a program.
2055 esac
2056
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
2066 specialdeplibs=
2067
2068 libs=
2069 # Find all interdependent deplibs by searching for libraries
2070 # that are linked more than once (e.g. -la -lb -la)
2071 for deplib in $deplibs; do
2072 if test "X$duplicate_deps" = "Xyes" ; then
2073 case "$libs " in
2074 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2075 esac
2076 fi
2077 libs="$libs $deplib"
2078 done
2079
2080 if test "$linkmode" = lib; then
2081 libs="$predeps $libs $compiler_lib_search_path $postdeps"
2082
2083 # Compute libraries that are listed more than once in $predeps
2084 # $postdeps and mark them as special (i.e., whose duplicates are
2085 # not to be eliminated).
2086 pre_post_deps=
2087 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
2088 for pre_post_dep in $predeps $postdeps; do
2089 case "$pre_post_deps " in
2090 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
2091 esac
2092 pre_post_deps="$pre_post_deps $pre_post_dep"
2093 done
2094 fi
2095 pre_post_deps=
2096 fi
2097
2098 deplibs=
2099 newdependency_libs=
2100 newlib_search_path=
2101 need_relink=no # whether we're linking any uninstalled libtool libraries
2102 notinst_deplibs= # not-installed libtool libraries
2103 case $linkmode in
2104 lib)
2105 passes="conv link"
2106 for file in $dlfiles $dlprefiles; do
2107 case $file in
2108 *.la) ;;
2109 *)
2110 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2111 exit $EXIT_FAILURE
2112 ;;
2113 esac
2114 done
2115 ;;
2116 prog)
2117 compile_deplibs=
2118 finalize_deplibs=
2119 alldeplibs=no
2120 newdlfiles=
2121 newdlprefiles=
2122 passes="conv scan dlopen dlpreopen link"
2123 ;;
2124 *) passes="conv"
2125 ;;
2126 esac
2127 for pass in $passes; do
2128 if test "$linkmode,$pass" = "lib,link" ||
2129 test "$linkmode,$pass" = "prog,scan"; then
2130 libs="$deplibs"
2131 deplibs=
2132 fi
2133 if test "$linkmode" = prog; then
2134 case $pass in
2135 dlopen) libs="$dlfiles" ;;
2136 dlpreopen) libs="$dlprefiles" ;;
2137 link)
2138 libs="$deplibs %DEPLIBS%"
2139 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
2140 ;;
2141 esac
2142 fi
2143 if test "$pass" = dlopen; then
2144 # Collect dlpreopened libraries
2145 save_deplibs="$deplibs"
2146 deplibs=
2147 fi
2148 for deplib in $libs; do
2149 lib=
2150 found=no
2151 case $deplib in
2152 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
2153 if test "$linkmode,$pass" = "prog,link"; then
2154 compile_deplibs="$deplib $compile_deplibs"
2155 finalize_deplibs="$deplib $finalize_deplibs"
2156 else
2157 compiler_flags="$compiler_flags $deplib"
2158 fi
2159 continue
2160 ;;
2161 -l*)
2162 if test "$linkmode" != lib && test "$linkmode" != prog; then
2163 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
2164 continue
2165 fi
2166 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2167 if test "$linkmode" = lib; then
2168 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
2169 else
2170 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
2171 fi
2172 for searchdir in $searchdirs; do
2173 for search_ext in .la $std_shrext .so .a; do
2174 # Search the libtool library
2175 lib="$searchdir/lib${name}${search_ext}"
2176 if test -f "$lib"; then
2177 if test "$search_ext" = ".la"; then
2178 found=yes
2179 else
2180 found=no
2181 fi
2182 break 2
2183 fi
2184 done
2185 done
2186 if test "$found" != yes; then
2187 # deplib doesn't seem to be a libtool library
2188 if test "$linkmode,$pass" = "prog,link"; then
2189 compile_deplibs="$deplib $compile_deplibs"
2190 finalize_deplibs="$deplib $finalize_deplibs"
2191 else
2192 deplibs="$deplib $deplibs"
2193 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2194 fi
2195 continue
2196 else # deplib is a libtool library
2197 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
2198 # We need to do some special things here, and not later.
2199 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
2200 case " $predeps $postdeps " in
2201 *" $deplib "*)
2202 if (${SED} -e '2q' $lib |
2203 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
2204 library_names=
2205 old_library=
2206 case $lib in
2207 */* | *\\*) . $lib ;;
2208 *) . ./$lib ;;
2209 esac
2210 for l in $old_library $library_names; do
2211 ll="$l"
2212 done
2213 if test "X$ll" = "X$old_library" ; then # only static version available
2214 found=no
2215 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2216 test "X$ladir" = "X$lib" && ladir="."
2217 lib=$ladir/$old_library
2218 if test "$linkmode,$pass" = "prog,link"; then
2219 compile_deplibs="$deplib $compile_deplibs"
2220 finalize_deplibs="$deplib $finalize_deplibs"
2221 else
2222 deplibs="$deplib $deplibs"
2223 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2224 fi
2225 continue
2226 fi
2227 fi
2228 ;;
2229 *) ;;
2230 esac
2231 fi
2232 fi
2233 ;; # -l
2234 -L*)
2235 case $linkmode in
2236 lib)
2237 deplibs="$deplib $deplibs"
2238 test "$pass" = conv && continue
2239 newdependency_libs="$deplib $newdependency_libs"
2240 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2241 ;;
2242 prog)
2243 if test "$pass" = conv; then
2244 deplibs="$deplib $deplibs"
2245 continue
2246 fi
2247 if test "$pass" = scan; then
2248 deplibs="$deplib $deplibs"
2249 else
2250 compile_deplibs="$deplib $compile_deplibs"
2251 finalize_deplibs="$deplib $finalize_deplibs"
2252 fi
2253 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2254 ;;
2255 *)
2256 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
2257 ;;
2258 esac # linkmode
2259 continue
2260 ;; # -L
2261 -R*)
2262 if test "$pass" = link; then
2263 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
2264 # Make sure the xrpath contains only unique directories.
2265 case "$xrpath " in
2266 *" $dir "*) ;;
2267 *) xrpath="$xrpath $dir" ;;
2268 esac
2269 fi
2270 deplibs="$deplib $deplibs"
2271 continue
2272 ;;
2273 *.la) lib="$deplib" ;;
2274 *.$libext)
2275 if test "$pass" = conv; then
2276 deplibs="$deplib $deplibs"
2277 continue
2278 fi
2279 case $linkmode in
2280 lib)
2281 valid_a_lib=no
2282 case $deplibs_check_method in
2283 match_pattern*)
2284 set dummy $deplibs_check_method
2285 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2286 if eval $echo \"$deplib\" 2>/dev/null \
2287 | $SED 10q \
2288 | $EGREP "$match_pattern_regex" > /dev/null; then
2289 valid_a_lib=yes
2290 fi
2291 ;;
2292 pass_all)
2293 valid_a_lib=yes
2294 ;;
2295 esac
2296 if test "$valid_a_lib" != yes; then
2297 $echo
2298 $echo "*** Warning: Trying to link with static lib archive $deplib."
2299 $echo "*** I have the capability to make that library automatically link in when"
2300 $echo "*** you link to this library. But I can only do this if you have a"
2301 $echo "*** shared version of the library, which you do not appear to have"
2302 $echo "*** because the file extensions .$libext of this argument makes me believe"
2303 $echo "*** that it is just a static archive that I should not used here."
2304 else
2305 $echo
2306 $echo "*** Warning: Linking the shared library $output against the"
2307 $echo "*** static library $deplib is not portable!"
2308 deplibs="$deplib $deplibs"
2309 fi
2310 continue
2311 ;;
2312 prog)
2313 if test "$pass" != link; then
2314 deplibs="$deplib $deplibs"
2315 else
2316 compile_deplibs="$deplib $compile_deplibs"
2317 finalize_deplibs="$deplib $finalize_deplibs"
2318 fi
2319 continue
2320 ;;
2321 esac # linkmode
2322 ;; # *.$libext
2323 *.lo | *.$objext)
2324 if test "$pass" = conv; then
2325 deplibs="$deplib $deplibs"
2326 elif test "$linkmode" = prog; then
2327 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
2328 # If there is no dlopen support or we're linking statically,
2329 # we need to preload.
2330 newdlprefiles="$newdlprefiles $deplib"
2331 compile_deplibs="$deplib $compile_deplibs"
2332 finalize_deplibs="$deplib $finalize_deplibs"
2333 else
2334 newdlfiles="$newdlfiles $deplib"
2335 fi
2336 fi
2337 continue
2338 ;;
2339 %DEPLIBS%)
2340 alldeplibs=yes
2341 continue
2342 ;;
2343 esac # case $deplib
2344 if test "$found" = yes || test -f "$lib"; then :
2345 else
2346 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2347 exit $EXIT_FAILURE
2348 fi
2349
2350 # Check to see that this really is a libtool archive.
2351 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2352 else
2353 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2354 exit $EXIT_FAILURE
2355 fi
2356
2357 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2358 test "X$ladir" = "X$lib" && ladir="."
2359
2360 dlname=
2361 dlopen=
2362 dlpreopen=
2363 libdir=
2364 library_names=
2365 old_library=
2366 # If the library was installed with an old release of libtool,
2367 # it will not redefine variables installed, or shouldnotlink
2368 installed=yes
2369 shouldnotlink=no
2370 avoidtemprpath=
2371
2372
2373 # Read the .la file
2374 case $lib in
2375 */* | *\\*) . $lib ;;
2376 *) . ./$lib ;;
2377 esac
2378
2379 if test "$linkmode,$pass" = "lib,link" ||
2380 test "$linkmode,$pass" = "prog,scan" ||
2381 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
2382 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
2383 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
2384 fi
2385
2386 if test "$pass" = conv; then
2387 # Only check for convenience libraries
2388 deplibs="$lib $deplibs"
2389 if test -z "$libdir"; then
2390 if test -z "$old_library"; then
2391 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2392 exit $EXIT_FAILURE
2393 fi
2394 # It is a libtool convenience library, so add in its objects.
2395 convenience="$convenience $ladir/$objdir/$old_library"
2396 old_convenience="$old_convenience $ladir/$objdir/$old_library"
2397 tmp_libs=
2398 for deplib in $dependency_libs; do
2399 deplibs="$deplib $deplibs"
2400 if test "X$duplicate_deps" = "Xyes" ; then
2401 case "$tmp_libs " in
2402 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2403 esac
2404 fi
2405 tmp_libs="$tmp_libs $deplib"
2406 done
2407 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2408 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2409 exit $EXIT_FAILURE
2410 fi
2411 continue
2412 fi # $pass = conv
2413
2414
2415 # Get the name of the library we link against.
2416 linklib=
2417 for l in $old_library $library_names; do
2418 linklib="$l"
2419 done
2420 if test -z "$linklib"; then
2421 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2422 exit $EXIT_FAILURE
2423 fi
2424
2425 # This library was specified with -dlopen.
2426 if test "$pass" = dlopen; then
2427 if test -z "$libdir"; then
2428 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2429 exit $EXIT_FAILURE
2430 fi
2431 if test -z "$dlname" ||
2432 test "$dlopen_support" != yes ||
2433 test "$build_libtool_libs" = no; then
2434 # If there is no dlname, no dlopen support or we're linking
2435 # statically, we need to preload. We also need to preload any
2436 # dependent libraries so libltdl's deplib preloader doesn't
2437 # bomb out in the load deplibs phase.
2438 dlprefiles="$dlprefiles $lib $dependency_libs"
2439 else
2440 newdlfiles="$newdlfiles $lib"
2441 fi
2442 continue
2443 fi # $pass = dlopen
2444
2445 # We need an absolute path.
2446 case $ladir in
2447 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
2448 *)
2449 abs_ladir=`cd "$ladir" && pwd`
2450 if test -z "$abs_ladir"; then
2451 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2452 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
2453 abs_ladir="$ladir"
2454 fi
2455 ;;
2456 esac
2457 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
2458
2459 # Find the relevant object directory and library name.
2460 if test "X$installed" = Xyes; then
2461 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2462 $echo "$modename: warning: library \`$lib' was moved." 1>&2
2463 dir="$ladir"
2464 absdir="$abs_ladir"
2465 libdir="$abs_ladir"
2466 else
2467 dir="$libdir"
2468 absdir="$libdir"
2469 fi
2470 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
2471 else
2472 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2473 dir="$ladir"
2474 absdir="$abs_ladir"
2475 # Remove this search path later
2476 notinst_path="$notinst_path $abs_ladir"
2477 else
2478 dir="$ladir/$objdir"
2479 absdir="$abs_ladir/$objdir"
2480 # Remove this search path later
2481 notinst_path="$notinst_path $abs_ladir"
2482 fi
2483 fi # $installed = yes
2484 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2485
2486 # This library was specified with -dlpreopen.
2487 if test "$pass" = dlpreopen; then
2488 if test -z "$libdir"; then
2489 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2490 exit $EXIT_FAILURE
2491 fi
2492 # Prefer using a static library (so that no silly _DYNAMIC symbols
2493 # are required to link).
2494 if test -n "$old_library"; then
2495 newdlprefiles="$newdlprefiles $dir/$old_library"
2496 # Otherwise, use the dlname, so that lt_dlopen finds it.
2497 elif test -n "$dlname"; then
2498 newdlprefiles="$newdlprefiles $dir/$dlname"
2499 else
2500 newdlprefiles="$newdlprefiles $dir/$linklib"
2501 fi
2502 fi # $pass = dlpreopen
2503
2504 if test -z "$libdir"; then
2505 # Link the convenience library
2506 if test "$linkmode" = lib; then
2507 deplibs="$dir/$old_library $deplibs"
2508 elif test "$linkmode,$pass" = "prog,link"; then
2509 compile_deplibs="$dir/$old_library $compile_deplibs"
2510 finalize_deplibs="$dir/$old_library $finalize_deplibs"
2511 else
2512 deplibs="$lib $deplibs" # used for prog,scan pass
2513 fi
2514 continue
2515 fi
2516
2517
2518 if test "$linkmode" = prog && test "$pass" != link; then
2519 newlib_search_path="$newlib_search_path $ladir"
2520 deplibs="$lib $deplibs"
2521
2522 linkalldeplibs=no
2523 if test "$link_all_deplibs" != no || test -z "$library_names" ||
2524 test "$build_libtool_libs" = no; then
2525 linkalldeplibs=yes
2526 fi
2527
2528 tmp_libs=
2529 for deplib in $dependency_libs; do
2530 case $deplib in
2531 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
2532 esac
2533 # Need to link against all dependency_libs?
2534 if test "$linkalldeplibs" = yes; then
2535 deplibs="$deplib $deplibs"
2536 else
2537 # Need to hardcode shared library paths
2538 # or/and link against static libraries
2539 newdependency_libs="$deplib $newdependency_libs"
2540 fi
2541 if test "X$duplicate_deps" = "Xyes" ; then
2542 case "$tmp_libs " in
2543 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2544 esac
2545 fi
2546 tmp_libs="$tmp_libs $deplib"
2547 done # for deplib
2548 continue
2549 fi # $linkmode = prog...
2550
2551 if test "$linkmode,$pass" = "prog,link"; then
2552 if test -n "$library_names" &&
2553 { { test "$prefer_static_libs" = no ||
2554 test "$prefer_static_libs,$installed" = "built,yes"; } ||
2555 test -z "$old_library"; }; then
2556 # We need to hardcode the library path
2557 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2558 # Make sure the rpath contains only unique directories.
2559 case "$temp_rpath " in
2560 *" $dir "*) ;;
2561 *" $absdir "*) ;;
2562 *) temp_rpath="$temp_rpath $absdir" ;;
2563 esac
2564 fi
2565
2566 # Hardcode the library path.
2567 # Skip directories that are in the system default run-time
2568 # search path.
2569 case " $sys_lib_dlsearch_path " in
2570 *" $absdir "*) ;;
2571 *)
2572 case "$compile_rpath " in
2573 *" $absdir "*) ;;
2574 *) compile_rpath="$compile_rpath $absdir"
2575 esac
2576 ;;
2577 esac
2578 case " $sys_lib_dlsearch_path " in
2579 *" $libdir "*) ;;
2580 *)
2581 case "$finalize_rpath " in
2582 *" $libdir "*) ;;
2583 *) finalize_rpath="$finalize_rpath $libdir"
2584 esac
2585 ;;
2586 esac
2587 fi # $linkmode,$pass = prog,link...
2588
2589 if test "$alldeplibs" = yes &&
2590 { test "$deplibs_check_method" = pass_all ||
2591 { test "$build_libtool_libs" = yes &&
2592 test -n "$library_names"; }; }; then
2593 # We only need to search for static libraries
2594 continue
2595 fi
2596 fi
2597
2598 link_static=no # Whether the deplib will be linked statically
2599 use_static_libs=$prefer_static_libs
2600 if test "$use_static_libs" = built && test "$installed" = yes ; then
2601 use_static_libs=no
2602 fi
2603 if test -n "$library_names" &&
2604 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2605 if test "$installed" = no; then
2606 notinst_deplibs="$notinst_deplibs $lib"
2607 need_relink=yes
2608 fi
2609 # This is a shared library
2610
2611 # Warn about portability, can't link against -module's on
2612 # some systems (darwin)
2613 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2614 $echo
2615 if test "$linkmode" = prog; then
2616 $echo "*** Warning: Linking the executable $output against the loadable module"
2617 else
2618 $echo "*** Warning: Linking the shared library $output against the loadable module"
2619 fi
2620 $echo "*** $linklib is not portable!"
2621 fi
2622 if test "$linkmode" = lib &&
2623 test "$hardcode_into_libs" = yes; then
2624 # Hardcode the library path.
2625 # Skip directories that are in the system default run-time
2626 # search path.
2627 case " $sys_lib_dlsearch_path " in
2628 *" $absdir "*) ;;
2629 *)
2630 case "$compile_rpath " in
2631 *" $absdir "*) ;;
2632 *) compile_rpath="$compile_rpath $absdir"
2633 esac
2634 ;;
2635 esac
2636 case " $sys_lib_dlsearch_path " in
2637 *" $libdir "*) ;;
2638 *)
2639 case "$finalize_rpath " in
2640 *" $libdir "*) ;;
2641 *) finalize_rpath="$finalize_rpath $libdir"
2642 esac
2643 ;;
2644 esac
2645 fi
2646
2647 if test -n "$old_archive_from_expsyms_cmds"; then
2648 # figure out the soname
2649 set dummy $library_names
2650 realname="$2"
2651 shift; shift
2652 libname=`eval \\$echo \"$libname_spec\"`
2653 # use dlname if we got it. it's perfectly good, no?
2654 if test -n "$dlname"; then
2655 soname="$dlname"
2656 elif test -n "$soname_spec"; then
2657 # bleh windows
2658 case $host in
2659 *cygwin* | mingw*)
2660 major=`expr $current - $age`
2661 versuffix="-$major"
2662 ;;
2663 esac
2664 eval soname=\"$soname_spec\"
2665 else
2666 soname="$realname"
2667 fi
2668
2669 # Make a new name for the extract_expsyms_cmds to use
2670 soroot="$soname"
2671 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2672 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
2673
2674 # If the library has no export list, then create one now
2675 if test -f "$output_objdir/$soname-def"; then :
2676 else
2677 $show "extracting exported symbol list from \`$soname'"
2678 save_ifs="$IFS"; IFS='~'
2679 cmds=$extract_expsyms_cmds
2680 for cmd in $cmds; do
2681 IFS="$save_ifs"
2682 eval cmd=\"$cmd\"
2683 $show "$cmd"
2684 $run eval "$cmd" || exit $?
2685 done
2686 IFS="$save_ifs"
2687 fi
2688
2689 # Create $newlib
2690 if test -f "$output_objdir/$newlib"; then :; else
2691 $show "generating import library for \`$soname'"
2692 save_ifs="$IFS"; IFS='~'
2693 cmds=$old_archive_from_expsyms_cmds
2694 for cmd in $cmds; do
2695 IFS="$save_ifs"
2696 eval cmd=\"$cmd\"
2697 $show "$cmd"
2698 $run eval "$cmd" || exit $?
2699 done
2700 IFS="$save_ifs"
2701 fi
2702 # make sure the library variables are pointing to the new library
2703 dir=$output_objdir
2704 linklib=$newlib
2705 fi # test -n "$old_archive_from_expsyms_cmds"
2706
2707 if test "$linkmode" = prog || test "$mode" != relink; then
2708 add_shlibpath=
2709 add_dir=
2710 add=
2711 lib_linked=yes
2712 case $hardcode_action in
2713 immediate | unsupported)
2714 if test "$hardcode_direct" = no; then
2715 add="$dir/$linklib"
2716 case $host in
2717 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2718 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2719 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2720 *-*-unixware7*) add_dir="-L$dir" ;;
2721 *-*-darwin* )
2722 # if the lib is a module then we can not link against
2723 # it, someone is ignoring the new warnings I added
2724 if /usr/bin/file -L $add 2> /dev/null |
2725 $EGREP ": [^:]* bundle" >/dev/null ; then
2726 $echo "** Warning, lib $linklib is a module, not a shared library"
2727 if test -z "$old_library" ; then
2728 $echo
2729 $echo "** And there doesn't seem to be a static archive available"
2730 $echo "** The link will probably fail, sorry"
2731 else
2732 add="$dir/$old_library"
2733 fi
2734 fi
2735 esac
2736 elif test "$hardcode_minus_L" = no; then
2737 case $host in
2738 *-*-sunos*) add_shlibpath="$dir" ;;
2739 esac
2740 add_dir="-L$dir"
2741 add="-l$name"
2742 elif test "$hardcode_shlibpath_var" = no; then
2743 add_shlibpath="$dir"
2744 add="-l$name"
2745 else
2746 lib_linked=no
2747 fi
2748 ;;
2749 relink)
2750 if test "$hardcode_direct" = yes; then
2751 add="$dir/$linklib"
2752 elif test "$hardcode_minus_L" = yes; then
2753 add_dir="-L$dir"
2754 # Try looking first in the location we're being installed to.
2755 if test -n "$inst_prefix_dir"; then
2756 case $libdir in
2757 [\\/]*)
2758 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2759 ;;
2760 esac
2761 fi
2762 add="-l$name"
2763 elif test "$hardcode_shlibpath_var" = yes; then
2764 add_shlibpath="$dir"
2765 add="-l$name"
2766 else
2767 lib_linked=no
2768 fi
2769 ;;
2770 *) lib_linked=no ;;
2771 esac
2772
2773 if test "$lib_linked" != yes; then
2774 $echo "$modename: configuration error: unsupported hardcode properties"
2775 exit $EXIT_FAILURE
2776 fi
2777
2778 if test -n "$add_shlibpath"; then
2779 case :$compile_shlibpath: in
2780 *":$add_shlibpath:"*) ;;
2781 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
2782 esac
2783 fi
2784 if test "$linkmode" = prog; then
2785 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
2786 test -n "$add" && compile_deplibs="$add $compile_deplibs"
2787 else
2788 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2789 test -n "$add" && deplibs="$add $deplibs"
2790 if test "$hardcode_direct" != yes && \
2791 test "$hardcode_minus_L" != yes && \
2792 test "$hardcode_shlibpath_var" = yes; then
2793 case :$finalize_shlibpath: in
2794 *":$libdir:"*) ;;
2795 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2796 esac
2797 fi
2798 fi
2799 fi
2800
2801 if test "$linkmode" = prog || test "$mode" = relink; then
2802 add_shlibpath=
2803 add_dir=
2804 add=
2805 # Finalize command for both is simple: just hardcode it.
2806 if test "$hardcode_direct" = yes; then
2807 add="$libdir/$linklib"
2808 elif test "$hardcode_minus_L" = yes; then
2809 add_dir="-L$libdir"
2810 add="-l$name"
2811 elif test "$hardcode_shlibpath_var" = yes; then
2812 case :$finalize_shlibpath: in
2813 *":$libdir:"*) ;;
2814 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2815 esac
2816 add="-l$name"
2817 elif test "$hardcode_automatic" = yes; then
2818 if test -n "$inst_prefix_dir" &&
2819 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2820 add="$inst_prefix_dir$libdir/$linklib"
2821 else
2822 add="$libdir/$linklib"
2823 fi
2824 else
2825 # We cannot seem to hardcode it, guess we'll fake it.
2826 add_dir="-L$libdir"
2827 # Try looking first in the location we're being installed to.
2828 if test -n "$inst_prefix_dir"; then
2829 case $libdir in
2830 [\\/]*)
2831 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2832 ;;
2833 esac
2834 fi
2835 add="-l$name"
2836 fi
2837
2838 if test "$linkmode" = prog; then
2839 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
2840 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
2841 else
2842 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2843 test -n "$add" && deplibs="$add $deplibs"
2844 fi
2845 fi
2846 elif test "$linkmode" = prog; then
2847 # Here we assume that one of hardcode_direct or hardcode_minus_L
2848 # is not unsupported. This is valid on all known static and
2849 # shared platforms.
2850 if test "$hardcode_direct" != unsupported; then
2851 test -n "$old_library" && linklib="$old_library"
2852 compile_deplibs="$dir/$linklib $compile_deplibs"
2853 finalize_deplibs="$dir/$linklib $finalize_deplibs"
2854 else
2855 compile_deplibs="-l$name -L$dir $compile_deplibs"
2856 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
2857 fi
2858 elif test "$build_libtool_libs" = yes; then
2859 # Not a shared library
2860 if test "$deplibs_check_method" != pass_all; then
2861 # We're trying link a shared library against a static one
2862 # but the system doesn't support it.
2863
2864 # Just print a warning and add the library to dependency_libs so
2865 # that the program can be linked against the static library.
2866 $echo
2867 $echo "*** Warning: This system can not link to static lib archive $lib."
2868 $echo "*** I have the capability to make that library automatically link in when"
2869 $echo "*** you link to this library. But I can only do this if you have a"
2870 $echo "*** shared version of the library, which you do not appear to have."
2871 if test "$module" = yes; then
2872 $echo "*** But as you try to build a module library, libtool will still create "
2873 $echo "*** a static module, that should work as long as the dlopening application"
2874 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
2875 if test -z "$global_symbol_pipe"; then
2876 $echo
2877 $echo "*** However, this would only work if libtool was able to extract symbol"
2878 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2879 $echo "*** not find such a program. So, this module is probably useless."
2880 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
2881 fi
2882 if test "$build_old_libs" = no; then
2883 build_libtool_libs=module
2884 build_old_libs=yes
2885 else
2886 build_libtool_libs=no
2887 fi
2888 fi
2889 else
2890 deplibs="$dir/$old_library $deplibs"
2891 link_static=yes
2892 fi
2893 fi # link shared/static library?
2894
2895 if test "$linkmode" = lib; then
2896 if test -n "$dependency_libs" &&
2897 { test "$hardcode_into_libs" != yes ||
2898 test "$build_old_libs" = yes ||
2899 test "$link_static" = yes; }; then
2900 # Extract -R from dependency_libs
2901 temp_deplibs=
2902 for libdir in $dependency_libs; do
2903 case $libdir in
2904 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
2905 case " $xrpath " in
2906 *" $temp_xrpath "*) ;;
2907 *) xrpath="$xrpath $temp_xrpath";;
2908 esac;;
2909 *) temp_deplibs="$temp_deplibs $libdir";;
2910 esac
2911 done
2912 dependency_libs="$temp_deplibs"
2913 fi
2914
2915 newlib_search_path="$newlib_search_path $absdir"
2916 # Link against this library
2917 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
2918 # ... and its dependency_libs
2919 tmp_libs=
2920 for deplib in $dependency_libs; do
2921 newdependency_libs="$deplib $newdependency_libs"
2922 if test "X$duplicate_deps" = "Xyes" ; then
2923 case "$tmp_libs " in
2924 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2925 esac
2926 fi
2927 tmp_libs="$tmp_libs $deplib"
2928 done
2929
2930 if test "$link_all_deplibs" != no; then
2931 # Add the search paths of all dependency libraries
2932 for deplib in $dependency_libs; do
2933 case $deplib in
2934 -L*) path="$deplib" ;;
2935 *.la)
2936 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2937 test "X$dir" = "X$deplib" && dir="."
2938 # We need an absolute path.
2939 case $dir in
2940 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
2941 *)
2942 absdir=`cd "$dir" && pwd`
2943 if test -z "$absdir"; then
2944 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
2945 absdir="$dir"
2946 fi
2947 ;;
2948 esac
2949 if grep "^installed=no" $deplib > /dev/null; then
2950 path="$absdir/$objdir"
2951 else
2952 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2953 if test -z "$libdir"; then
2954 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2955 exit $EXIT_FAILURE
2956 fi
2957 if test "$absdir" != "$libdir"; then
2958 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2959 fi
2960 path="$absdir"
2961 fi
2962 depdepl=
2963 case $host in
2964 *-*-darwin*)
2965 # we do not want to link against static libs,
2966 # but need to link against shared
2967 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2968 eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2969 if test -n "$deplibrary_names" ; then
2970 for tmp in $deplibrary_names ; do
2971 depdepl=$tmp
2972 done
2973 if test -f "$deplibdir/$depdepl" ; then
2974 depdepl="$deplibdir/$depdepl"
2975 elif test -f "$path/$depdepl" ; then
2976 depdepl="$path/$depdepl"
2977 else
2978 # Can't find it, oh well...
2979 depdepl=
2980 fi
2981 # do not add paths which are already there
2982 case " $newlib_search_path " in
2983 *" $path "*) ;;
2984 *) newlib_search_path="$newlib_search_path $path";;
2985 esac
2986 fi
2987 path=""
2988 ;;
2989 *)
2990 path="-L$path"
2991 ;;
2992 esac
2993 ;;
2994 -l*)
2995 case $host in
2996 *-*-darwin*)
2997 # Again, we only want to link against shared libraries
2998 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2999 for tmp in $newlib_search_path ; do
3000 if test -f "$tmp/lib$tmp_libs.dylib" ; then
3001 eval depdepl="$tmp/lib$tmp_libs.dylib"
3002 break
3003 fi
3004 done
3005 path=""
3006 ;;
3007 *) continue ;;
3008 esac
3009 ;;
3010 *) continue ;;
3011 esac
3012 case " $deplibs " in
3013 *" $path "*) ;;
3014 *) deplibs="$path $deplibs" ;;
3015 esac
3016 case " $deplibs " in
3017 *" $depdepl "*) ;;
3018 *) deplibs="$depdepl $deplibs" ;;
3019 esac
3020 done
3021 fi # link_all_deplibs != no
3022 fi # linkmode = lib
3023 done # for deplib in $libs
3024 dependency_libs="$newdependency_libs"
3025 if test "$pass" = dlpreopen; then
3026 # Link the dlpreopened libraries before other libraries
3027 for deplib in $save_deplibs; do
3028 deplibs="$deplib $deplibs"
3029 done
3030 fi
3031 if test "$pass" != dlopen; then
3032 if test "$pass" != conv; then
3033 # Make sure lib_search_path contains only unique directories.
3034 lib_search_path=
3035 for dir in $newlib_search_path; do
3036 case "$lib_search_path " in
3037 *" $dir "*) ;;
3038 *) lib_search_path="$lib_search_path $dir" ;;
3039 esac
3040 done
3041 newlib_search_path=
3042 fi
3043
3044 if test "$linkmode,$pass" != "prog,link"; then
3045 vars="deplibs"
3046 else
3047 vars="compile_deplibs finalize_deplibs"
3048 fi
3049 for var in $vars dependency_libs; do
3050 # Add libraries to $var in reverse order
3051 eval tmp_libs=\"\$$var\"
3052 new_libs=
3053 for deplib in $tmp_libs; do
3054 # FIXME: Pedantically, this is the right thing to do, so
3055 # that some nasty dependency loop isn't accidentally
3056 # broken:
3057 #new_libs="$deplib $new_libs"
3058 # Pragmatically, this seems to cause very few problems in
3059 # practice:
3060 case $deplib in
3061 -L*) new_libs="$deplib $new_libs" ;;
3062 -R*) ;;
3063 *)
3064 # And here is the reason: when a library appears more
3065 # than once as an explicit dependence of a library, or
3066 # is implicitly linked in more than once by the
3067 # compiler, it is considered special, and multiple
3068 # occurrences thereof are not removed. Compare this
3069 # with having the same library being listed as a
3070 # dependency of multiple other libraries: in this case,
3071 # we know (pedantically, we assume) the library does not
3072 # need to be listed more than once, so we keep only the
3073 # last copy. This is not always right, but it is rare
3074 # enough that we require users that really mean to play
3075 # such unportable linking tricks to link the library
3076 # using -Wl,-lname, so that libtool does not consider it
3077 # for duplicate removal.
3078 case " $specialdeplibs " in
3079 *" $deplib "*) new_libs="$deplib $new_libs" ;;
3080 *)
3081 case " $new_libs " in
3082 *" $deplib "*) ;;
3083 *) new_libs="$deplib $new_libs" ;;
3084 esac
3085 ;;
3086 esac
3087 ;;
3088 esac
3089 done
3090 tmp_libs=
3091 for deplib in $new_libs; do
3092 case $deplib in
3093 -L*)
3094 case " $tmp_libs " in
3095 *" $deplib "*) ;;
3096 *) tmp_libs="$tmp_libs $deplib" ;;
3097 esac
3098 ;;
3099 *) tmp_libs="$tmp_libs $deplib" ;;
3100 esac
3101 done
3102 eval $var=\"$tmp_libs\"
3103 done # for var
3104 fi
3105 # Last step: remove runtime libs from dependency_libs
3106 # (they stay in deplibs)
3107 tmp_libs=
3108 for i in $dependency_libs ; do
3109 case " $predeps $postdeps $compiler_lib_search_path " in
3110 *" $i "*)
3111 i=""
3112 ;;
3113 esac
3114 if test -n "$i" ; then
3115 tmp_libs="$tmp_libs $i"
3116 fi
3117 done
3118 dependency_libs=$tmp_libs
3119 done # for pass
3120 if test "$linkmode" = prog; then
3121 dlfiles="$newdlfiles"
3122 dlprefiles="$newdlprefiles"
3123 fi
3124
3125 case $linkmode in
3126 oldlib)
3127 case " $deplibs" in
3128 *\ -l* | *\ -L*)
3129 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
3130 esac
3131
3132 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3133 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3134 fi
3135
3136 if test -n "$rpath"; then
3137 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
3138 fi
3139
3140 if test -n "$xrpath"; then
3141 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
3142 fi
3143
3144 if test -n "$vinfo"; then
3145 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
3146 fi
3147
3148 if test -n "$release"; then
3149 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
3150 fi
3151
3152 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
3153 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
3154 fi
3155
3156 # Now set the variables for building old libraries.
3157 build_libtool_libs=no
3158 oldlibs="$output"
3159 objs="$objs$old_deplibs"
3160 ;;
3161
3162 lib)
3163 # Make sure we only generate libraries of the form `libNAME.la'.
3164 case $outputname in
3165 lib*)
3166 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
3167 eval shared_ext=\"$shrext_cmds\"
3168 eval libname=\"$libname_spec\"
3169 ;;
3170 *)
3171 if test "$module" = no; then
3172 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3173 $echo "$help" 1>&2
3174 exit $EXIT_FAILURE
3175 fi
3176 if test "$need_lib_prefix" != no; then
3177 # Add the "lib" prefix for modules if required
3178 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3179 eval shared_ext=\"$shrext_cmds\"
3180 eval libname=\"$libname_spec\"
3181 else
3182 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3183 fi
3184 ;;
3185 esac
3186
3187 if test -n "$objs"; then
3188 if test "$deplibs_check_method" != pass_all; then
3189 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3190 exit $EXIT_FAILURE
3191 else
3192 $echo
3193 $echo "*** Warning: Linking the shared library $output against the non-libtool"
3194 $echo "*** objects $objs is not portable!"
3195 libobjs="$libobjs $objs"
3196 fi
3197 fi
3198
3199 if test "$dlself" != no; then
3200 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
3201 fi
3202
3203 set dummy $rpath
3204 if test "$#" -gt 2; then
3205 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
3206 fi
3207 install_libdir="$2"
3208
3209 oldlibs=
3210 if test -z "$rpath"; then
3211 if test "$build_libtool_libs" = yes; then
3212 # Building a libtool convenience library.
3213 # Some compilers have problems with a `.al' extension so
3214 # convenience libraries should have the same extension an
3215 # archive normally would.
3216 oldlibs="$output_objdir/$libname.$libext $oldlibs"
3217 build_libtool_libs=convenience
3218 build_old_libs=yes
3219 fi
3220
3221 if test -n "$vinfo"; then
3222 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
3223 fi
3224
3225 if test -n "$release"; then
3226 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
3227 fi
3228 else
3229
3230 # Parse the version information argument.
3231 save_ifs="$IFS"; IFS=':'
3232 set dummy $vinfo 0 0 0
3233 IFS="$save_ifs"
3234
3235 if test -n "$8"; then
3236 $echo "$modename: too many parameters to \`-version-info'" 1>&2
3237 $echo "$help" 1>&2
3238 exit $EXIT_FAILURE
3239 fi
3240
3241 # convert absolute version numbers to libtool ages
3242 # this retains compatibility with .la files and attempts
3243 # to make the code below a bit more comprehensible
3244
3245 case $vinfo_number in
3246 yes)
3247 number_major="$2"
3248 number_minor="$3"
3249 number_revision="$4"
3250 #
3251 # There are really only two kinds -- those that
3252 # use the current revision as the major version
3253 # and those that subtract age and use age as
3254 # a minor version. But, then there is irix
3255 # which has an extra 1 added just for fun
3256 #
3257 case $version_type in
3258 darwin|linux|osf|windows|none)
3259 current=`expr $number_major + $number_minor`
3260 age="$number_minor"
3261 revision="$number_revision"
3262 ;;
3263 freebsd-aout|freebsd-elf|sunos)
3264 current="$number_major"
3265 revision="$number_minor"
3266 age="0"
3267 ;;
3268 irix|nonstopux)
3269 current=`expr $number_major + $number_minor`
3270 age="$number_minor"
3271 revision="$number_minor"
3272 lt_irix_increment=no
3273 ;;
3274 *)
3275 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3276 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3277 exit $EXIT_FAILURE
3278 ;;
3279 esac
3280 ;;
3281 no)
3282 current="$2"
3283 revision="$3"
3284 age="$4"
3285 ;;
3286 esac
3287
3288 # Check that each of the things are valid numbers.
3289 case $current in
3290 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]) ;;
3291 *)
3292 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
3293 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3294 exit $EXIT_FAILURE
3295 ;;
3296 esac
3297
3298 case $revision in
3299 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]) ;;
3300 *)
3301 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
3302 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3303 exit $EXIT_FAILURE
3304 ;;
3305 esac
3306
3307 case $age in
3308 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]) ;;
3309 *)
3310 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
3311 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3312 exit $EXIT_FAILURE
3313 ;;
3314 esac
3315
3316 if test "$age" -gt "$current"; then
3317 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3318 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3319 exit $EXIT_FAILURE
3320 fi
3321
3322 # Calculate the version variables.
3323 major=
3324 versuffix=
3325 verstring=
3326 case $version_type in
3327 none) ;;
3328
3329 darwin)
3330 # Like Linux, but with the current version available in
3331 # verstring for coding it into the library header
3332 major=.`expr $current - $age`
3333 versuffix="$major.$age.$revision"
3334 # Darwin ld doesn't like 0 for these options...
3335 minor_current=`expr $current + 1`
3336 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3337 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
3338 ;;
3339
3340 freebsd-aout)
3341 major=".$current"
3342 versuffix=".$current.$revision";
3343 ;;
3344
3345 freebsd-elf)
3346 major=".$current"
3347 versuffix=".$current";
3348 ;;
3349
3350 irix | nonstopux)
3351 if test "X$lt_irix_increment" = "Xno"; then
3352 major=`expr $current - $age`
3353 else
3354 major=`expr $current - $age + 1`
3355 fi
3356 case $version_type in
3357 nonstopux) verstring_prefix=nonstopux ;;
3358 *) verstring_prefix=sgi ;;
3359 esac
3360 verstring="$verstring_prefix$major.$revision"
3361
3362 # Add in all the interfaces that we are compatible with.
3363 loop=$revision
3364 while test "$loop" -ne 0; do
3365 iface=`expr $revision - $loop`
3366 loop=`expr $loop - 1`
3367 verstring="$verstring_prefix$major.$iface:$verstring"
3368 done
3369
3370 # Before this point, $major must not contain `.'.
3371 major=.$major
3372 versuffix="$major.$revision"
3373 ;;
3374
3375 linux)
3376 major=.`expr $current - $age`
3377 versuffix="$major.$age.$revision"
3378 ;;
3379
3380 osf)
3381 major=.`expr $current - $age`
3382 versuffix=".$current.$age.$revision"
3383 verstring="$current.$age.$revision"
3384
3385 # Add in all the interfaces that we are compatible with.
3386 loop=$age
3387 while test "$loop" -ne 0; do
3388 iface=`expr $current - $loop`
3389 loop=`expr $loop - 1`
3390 verstring="$verstring:${iface}.0"
3391 done
3392
3393 # Make executables depend on our current version.
3394 verstring="$verstring:${current}.0"
3395 ;;
3396
3397 sunos)
3398 major=".$current"
3399 versuffix=".$current.$revision"
3400 ;;
3401
3402 windows)
3403 # Use '-' rather than '.', since we only want one
3404 # extension on DOS 8.3 filesystems.
3405 major=`expr $current - $age`
3406 versuffix="-$major"
3407 ;;
3408
3409 *)
3410 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3411 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3412 exit $EXIT_FAILURE
3413 ;;
3414 esac
3415
3416 # Clear the version info if we defaulted, and they specified a release.
3417 if test -z "$vinfo" && test -n "$release"; then
3418 major=
3419 case $version_type in
3420 darwin)
3421 # we can't check for "0.0" in archive_cmds due to quoting
3422 # problems, so we reset it completely
3423 verstring=
3424 ;;
3425 *)
3426 verstring="0.0"
3427 ;;
3428 esac
3429 if test "$need_version" = no; then
3430 versuffix=
3431 else
3432 versuffix=".0.0"
3433 fi
3434 fi
3435
3436 # Remove version info from name if versioning should be avoided
3437 if test "$avoid_version" = yes && test "$need_version" = no; then
3438 major=
3439 versuffix=
3440 verstring=""
3441 fi
3442
3443 # Check to see if the archive will have undefined symbols.
3444 if test "$allow_undefined" = yes; then
3445 if test "$allow_undefined_flag" = unsupported; then
3446 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
3447 build_libtool_libs=no
3448 build_old_libs=yes
3449 fi
3450 else
3451 # Don't allow undefined symbols.
3452 allow_undefined_flag="$no_undefined_flag"
3453 fi
3454 fi
3455
3456 if test "$mode" != relink; then
3457 # Remove our outputs, but don't remove object files since they
3458 # may have been created when compiling PIC objects.
3459 removelist=
3460 tempremovelist=`$echo "$output_objdir/*"`
3461 for p in $tempremovelist; do
3462 case $p in
3463 *.$objext)
3464 ;;
3465 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3466 if test "X$precious_files_regex" != "X"; then
3467 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3468 then
3469 continue
3470 fi
3471 fi
3472 removelist="$removelist $p"
3473 ;;
3474 *) ;;
3475 esac
3476 done
3477 if test -n "$removelist"; then
3478 $show "${rm}r $removelist"
3479 $run ${rm}r $removelist
3480 fi
3481 fi
3482
3483 # Now set the variables for building old libraries.
3484 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
3485 oldlibs="$oldlibs $output_objdir/$libname.$libext"
3486
3487 # Transform .lo files to .o files.
3488 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
3489 fi
3490
3491 # Eliminate all temporary directories.
3492 #for path in $notinst_path; do
3493 # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3494 # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3495 # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3496 #done
3497
3498 if test -n "$xrpath"; then
3499 # If the user specified any rpath flags, then add them.
3500 temp_xrpath=
3501 for libdir in $xrpath; do
3502 temp_xrpath="$temp_xrpath -R$libdir"
3503 case "$finalize_rpath " in
3504 *" $libdir "*) ;;
3505 *) finalize_rpath="$finalize_rpath $libdir" ;;
3506 esac
3507 done
3508 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
3509 dependency_libs="$temp_xrpath $dependency_libs"
3510 fi
3511 fi
3512
3513 # Make sure dlfiles contains only unique files that won't be dlpreopened
3514 old_dlfiles="$dlfiles"
3515 dlfiles=
3516 for lib in $old_dlfiles; do
3517 case " $dlprefiles $dlfiles " in
3518 *" $lib "*) ;;
3519 *) dlfiles="$dlfiles $lib" ;;
3520 esac
3521 done
3522
3523 # Make sure dlprefiles contains only unique files
3524 old_dlprefiles="$dlprefiles"
3525 dlprefiles=
3526 for lib in $old_dlprefiles; do
3527 case "$dlprefiles " in
3528 *" $lib "*) ;;
3529 *) dlprefiles="$dlprefiles $lib" ;;
3530 esac
3531 done
3532
3533 if test "$build_libtool_libs" = yes; then
3534 if test -n "$rpath"; then
3535 case $host in
3536 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
3537 # these systems don't actually have a c library (as such)!
3538 ;;
3539 *-*-rhapsody* | *-*-darwin1.[012])
3540 # Rhapsody C library is in the System framework
3541 deplibs="$deplibs -framework System"
3542 ;;
3543 *-*-netbsd*)
3544 # Don't link with libc until the a.out ld.so is fixed.
3545 ;;
3546 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3547 # Do not include libc due to us having libc/libc_r.
3548 ;;
3549 *-*-sco3.2v5* | *-*-sco5v6*)
3550 # Causes problems with __ctype
3551 ;;
3552 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3553 # Compiler inserts libc in the correct place for threads to work
3554 ;;
3555 *)
3556 # Add libc to deplibs on all other systems if necessary.
3557 if test "$build_libtool_need_lc" = "yes"; then
3558 deplibs="$deplibs -lc"
3559 fi
3560 ;;
3561 esac
3562 fi
3563
3564 # Transform deplibs into only deplibs that can be linked in shared.
3565 name_save=$name
3566 libname_save=$libname
3567 release_save=$release
3568 versuffix_save=$versuffix
3569 major_save=$major
3570 # I'm not sure if I'm treating the release correctly. I think
3571 # release should show up in the -l (ie -lgmp5) so we don't want to
3572 # add it in twice. Is that correct?
3573 release=""
3574 versuffix=""
3575 major=""
3576 newdeplibs=
3577 droppeddeps=no
3578 case $deplibs_check_method in
3579 pass_all)
3580 # Don't check for shared/static. Everything works.
3581 # This might be a little naive. We might want to check
3582 # whether the library exists or not. But this is on
3583 # osf3 & osf4 and I'm not really sure... Just
3584 # implementing what was already the behavior.
3585 newdeplibs=$deplibs
3586 ;;
3587 test_compile)
3588 # This code stresses the "libraries are programs" paradigm to its
3589 # limits. Maybe even breaks it. We compile a program, linking it
3590 # against the deplibs as a proxy for the library. Then we can check
3591 # whether they linked in statically or dynamically with ldd.
3592 $rm conftest.c
3593 cat > conftest.c <<EOF
3594 int main() { return 0; }
3595 EOF
3596 $rm conftest
3597 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3598 ldd_output=`ldd conftest`
3599 for i in $deplibs; do
3600 name=`expr $i : '-l\(.*\)'`
3601 # If $name is empty we are operating on a -L argument.
3602 if test "$name" != "" && test "$name" != "0"; then
3603 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3604 case " $predeps $postdeps " in
3605 *" $i "*)
3606 newdeplibs="$newdeplibs $i"
3607 i=""
3608 ;;
3609 esac
3610 fi
3611 if test -n "$i" ; then
3612 libname=`eval \\$echo \"$libname_spec\"`
3613 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3614 set dummy $deplib_matches
3615 deplib_match=$2
3616 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3617 newdeplibs="$newdeplibs $i"
3618 else
3619 droppeddeps=yes
3620 $echo
3621 $echo "*** Warning: dynamic linker does not accept needed library $i."
3622 $echo "*** I have the capability to make that library automatically link in when"
3623 $echo "*** you link to this library. But I can only do this if you have a"
3624 $echo "*** shared version of the library, which I believe you do not have"
3625 $echo "*** because a test_compile did reveal that the linker did not use it for"
3626 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
3627 fi
3628 fi
3629 else
3630 newdeplibs="$newdeplibs $i"
3631 fi
3632 done
3633 else
3634 # Error occurred in the first compile. Let's try to salvage
3635 # the situation: Compile a separate program for each library.
3636 for i in $deplibs; do
3637 name=`expr $i : '-l\(.*\)'`
3638 # If $name is empty we are operating on a -L argument.
3639 if test "$name" != "" && test "$name" != "0"; then
3640 $rm conftest
3641 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
3642 ldd_output=`ldd conftest`
3643 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3644 case " $predeps $postdeps " in
3645 *" $i "*)
3646 newdeplibs="$newdeplibs $i"
3647 i=""
3648 ;;
3649 esac
3650 fi
3651 if test -n "$i" ; then
3652 libname=`eval \\$echo \"$libname_spec\"`
3653 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3654 set dummy $deplib_matches
3655 deplib_match=$2
3656 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3657 newdeplibs="$newdeplibs $i"
3658 else
3659 droppeddeps=yes
3660 $echo
3661 $echo "*** Warning: dynamic linker does not accept needed library $i."
3662 $echo "*** I have the capability to make that library automatically link in when"
3663 $echo "*** you link to this library. But I can only do this if you have a"
3664 $echo "*** shared version of the library, which you do not appear to have"
3665 $echo "*** because a test_compile did reveal that the linker did not use this one"
3666 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
3667 fi
3668 fi
3669 else
3670 droppeddeps=yes
3671 $echo
3672 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3673 $echo "*** make it link in! You will probably need to install it or some"
3674 $echo "*** library that it depends on before this library will be fully"
3675 $echo "*** functional. Installing it before continuing would be even better."
3676 fi
3677 else
3678 newdeplibs="$newdeplibs $i"
3679 fi
3680 done
3681 fi
3682 ;;
3683 file_magic*)
3684 set dummy $deplibs_check_method
3685 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3686 for a_deplib in $deplibs; do
3687 name=`expr $a_deplib : '-l\(.*\)'`
3688 # If $name is empty we are operating on a -L argument.
3689 if test "$name" != "" && test "$name" != "0"; then
3690 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3691 case " $predeps $postdeps " in
3692 *" $a_deplib "*)
3693 newdeplibs="$newdeplibs $a_deplib"
3694 a_deplib=""
3695 ;;
3696 esac
3697 fi
3698 if test -n "$a_deplib" ; then
3699 libname=`eval \\$echo \"$libname_spec\"`
3700 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3701 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3702 for potent_lib in $potential_libs; do
3703 # Follow soft links.
3704 if ls -lLd "$potent_lib" 2>/dev/null \
3705 | grep " -> " >/dev/null; then
3706 continue
3707 fi
3708 # The statement above tries to avoid entering an
3709 # endless loop below, in case of cyclic links.
3710 # We might still enter an endless loop, since a link
3711 # loop can be closed while we follow links,
3712 # but so what?
3713 potlib="$potent_lib"
3714 while test -h "$potlib" 2>/dev/null; do
3715 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
3716 case $potliblink in
3717 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3718 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
3719 esac
3720 done
3721 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3722 | ${SED} 10q \
3723 | $EGREP "$file_magic_regex" > /dev/null; then
3724 newdeplibs="$newdeplibs $a_deplib"
3725 a_deplib=""
3726 break 2
3727 fi
3728 done
3729 done
3730 fi
3731 if test -n "$a_deplib" ; then
3732 droppeddeps=yes
3733 $echo
3734 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3735 $echo "*** I have the capability to make that library automatically link in when"
3736 $echo "*** you link to this library. But I can only do this if you have a"
3737 $echo "*** shared version of the library, which you do not appear to have"
3738 $echo "*** because I did check the linker path looking for a file starting"
3739 if test -z "$potlib" ; then
3740 $echo "*** with $libname but no candidates were found. (...for file magic test)"
3741 else
3742 $echo "*** with $libname and none of the candidates passed a file format test"
3743 $echo "*** using a file magic. Last file checked: $potlib"
3744 fi
3745 fi
3746 else
3747 # Add a -L argument.
3748 newdeplibs="$newdeplibs $a_deplib"
3749 fi
3750 done # Gone through all deplibs.
3751 ;;
3752 match_pattern*)
3753 set dummy $deplibs_check_method
3754 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3755 for a_deplib in $deplibs; do
3756 name=`expr $a_deplib : '-l\(.*\)'`
3757 # If $name is empty we are operating on a -L argument.
3758 if test -n "$name" && test "$name" != "0"; then
3759 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3760 case " $predeps $postdeps " in
3761 *" $a_deplib "*)
3762 newdeplibs="$newdeplibs $a_deplib"
3763 a_deplib=""
3764 ;;
3765 esac
3766 fi
3767 if test -n "$a_deplib" ; then
3768 libname=`eval \\$echo \"$libname_spec\"`
3769 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3770 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3771 for potent_lib in $potential_libs; do
3772 potlib="$potent_lib" # see symlink-check above in file_magic test
3773 if eval $echo \"$potent_lib\" 2>/dev/null \
3774 | ${SED} 10q \
3775 | $EGREP "$match_pattern_regex" > /dev/null; then
3776 newdeplibs="$newdeplibs $a_deplib"
3777 a_deplib=""
3778 break 2
3779 fi
3780 done
3781 done
3782 fi
3783 if test -n "$a_deplib" ; then
3784 droppeddeps=yes
3785 $echo
3786 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3787 $echo "*** I have the capability to make that library automatically link in when"
3788 $echo "*** you link to this library. But I can only do this if you have a"
3789 $echo "*** shared version of the library, which you do not appear to have"
3790 $echo "*** because I did check the linker path looking for a file starting"
3791 if test -z "$potlib" ; then
3792 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
3793 else
3794 $echo "*** with $libname and none of the candidates passed a file format test"
3795 $echo "*** using a regex pattern. Last file checked: $potlib"
3796 fi
3797 fi
3798 else
3799 # Add a -L argument.
3800 newdeplibs="$newdeplibs $a_deplib"
3801 fi
3802 done # Gone through all deplibs.
3803 ;;
3804 none | unknown | *)
3805 newdeplibs=""
3806 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3807 -e 's/ -[LR][^ ]*//g'`
3808 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3809 for i in $predeps $postdeps ; do
3810 # can't use Xsed below, because $i might contain '/'
3811 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
3812 done
3813 fi
3814 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3815 | grep . >/dev/null; then
3816 $echo
3817 if test "X$deplibs_check_method" = "Xnone"; then
3818 $echo "*** Warning: inter-library dependencies are not supported in this platform."
3819 else
3820 $echo "*** Warning: inter-library dependencies are not known to be supported."
3821 fi
3822 $echo "*** All declared inter-library dependencies are being dropped."
3823 droppeddeps=yes
3824 fi
3825 ;;
3826 esac
3827 versuffix=$versuffix_save
3828 major=$major_save
3829 release=$release_save
3830 libname=$libname_save
3831 name=$name_save
3832
3833 case $host in
3834 *-*-rhapsody* | *-*-darwin1.[012])
3835 # On Rhapsody replace the C library is the System framework
3836 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
3837 ;;
3838 esac
3839
3840 if test "$droppeddeps" = yes; then
3841 if test "$module" = yes; then
3842 $echo
3843 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3844 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3845 $echo "*** a static module, that should work as long as the dlopening"
3846 $echo "*** application is linked with the -dlopen flag."
3847 if test -z "$global_symbol_pipe"; then
3848 $echo
3849 $echo "*** However, this would only work if libtool was able to extract symbol"
3850 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3851 $echo "*** not find such a program. So, this module is probably useless."
3852 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
3853 fi
3854 if test "$build_old_libs" = no; then
3855 oldlibs="$output_objdir/$libname.$libext"
3856 build_libtool_libs=module
3857 build_old_libs=yes
3858 else
3859 build_libtool_libs=no
3860 fi
3861 else
3862 $echo "*** The inter-library dependencies that have been dropped here will be"
3863 $echo "*** automatically added whenever a program is linked with this library"
3864 $echo "*** or is declared to -dlopen it."
3865
3866 if test "$allow_undefined" = no; then
3867 $echo
3868 $echo "*** Since this library must not contain undefined symbols,"
3869 $echo "*** because either the platform does not support them or"
3870 $echo "*** it was explicitly requested with -no-undefined,"
3871 $echo "*** libtool will only create a static version of it."
3872 if test "$build_old_libs" = no; then
3873 oldlibs="$output_objdir/$libname.$libext"
3874 build_libtool_libs=module
3875 build_old_libs=yes
3876 else
3877 build_libtool_libs=no
3878 fi
3879 fi
3880 fi
3881 fi
3882 # Done checking deplibs!
3883 deplibs=$newdeplibs
3884 fi
3885
3886
3887 # move library search paths that coincide with paths to not yet
3888 # installed libraries to the beginning of the library search list
3889 new_libs=
3890 for path in $notinst_path; do
3891 case " $new_libs " in
3892 *" -L$path/$objdir "*) ;;
3893 *)
3894 case " $deplibs " in
3895 *" -L$path/$objdir "*)
3896 new_libs="$new_libs -L$path/$objdir" ;;
3897 esac
3898 ;;
3899 esac
3900 done
3901 for deplib in $deplibs; do
3902 case $deplib in
3903 -L*)
3904 case " $new_libs " in
3905 *" $deplib "*) ;;
3906 *) new_libs="$new_libs $deplib" ;;
3907 esac
3908 ;;
3909 *) new_libs="$new_libs $deplib" ;;
3910 esac
3911 done
3912 deplibs="$new_libs"
3913
3914
3915 # All the library-specific variables (install_libdir is set above).
3916 library_names=
3917 old_library=
3918 dlname=
3919
3920 # Test again, we may have decided not to build it any more
3921 if test "$build_libtool_libs" = yes; then
3922 if test "$hardcode_into_libs" = yes; then
3923 # Hardcode the library paths
3924 hardcode_libdirs=
3925 dep_rpath=
3926 rpath="$finalize_rpath"
3927 test "$mode" != relink && rpath="$compile_rpath$rpath"
3928 for libdir in $rpath; do
3929 if test -n "$hardcode_libdir_flag_spec"; then
3930 if test -n "$hardcode_libdir_separator"; then
3931 if test -z "$hardcode_libdirs"; then
3932 hardcode_libdirs="$libdir"
3933 else
3934 # Just accumulate the unique libdirs.
3935 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
3936 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
3937 ;;
3938 *)
3939 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
3940 ;;
3941 esac
3942 fi
3943 else
3944 eval flag=\"$hardcode_libdir_flag_spec\"
3945 dep_rpath="$dep_rpath $flag"
3946 fi
3947 elif test -n "$runpath_var"; then
3948 case "$perm_rpath " in
3949 *" $libdir "*) ;;
3950 *) perm_rpath="$perm_rpath $libdir" ;;
3951 esac
3952 fi
3953 done
3954 # Substitute the hardcoded libdirs into the rpath.
3955 if test -n "$hardcode_libdir_separator" &&
3956 test -n "$hardcode_libdirs"; then
3957 libdir="$hardcode_libdirs"
3958 if test -n "$hardcode_libdir_flag_spec_ld"; then
3959 case $archive_cmds in
3960 *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3961 *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3962 esac
3963 else
3964 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3965 fi
3966 fi
3967 if test -n "$runpath_var" && test -n "$perm_rpath"; then
3968 # We should set the runpath_var.
3969 rpath=
3970 for dir in $perm_rpath; do
3971 rpath="$rpath$dir:"
3972 done
3973 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
3974 fi
3975 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
3976 fi
3977
3978 shlibpath="$finalize_shlibpath"
3979 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
3980 if test -n "$shlibpath"; then
3981 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
3982 fi
3983
3984 # Get the real and link names of the library.
3985 eval shared_ext=\"$shrext_cmds\"
3986 eval library_names=\"$library_names_spec\"
3987 set dummy $library_names
3988 realname="$2"
3989 shift; shift
3990
3991 if test -n "$soname_spec"; then
3992 eval soname=\"$soname_spec\"
3993 else
3994 soname="$realname"
3995 fi
3996 if test -z "$dlname"; then
3997 dlname=$soname
3998 fi
3999
4000 lib="$output_objdir/$realname"
4001 linknames=
4002 for link
4003 do
4004 linknames="$linknames $link"
4005 done
4006
4007 # Use standard objects if they are pic
4008 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4009
4010 # Prepare the list of exported symbols
4011 if test -z "$export_symbols"; then
4012 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
4013 $show "generating symbol list for \`$libname.la'"
4014 export_symbols="$output_objdir/$libname.exp"
4015 $run $rm $export_symbols
4016 cmds=$export_symbols_cmds
4017 save_ifs="$IFS"; IFS='~'
4018 for cmd in $cmds; do
4019 IFS="$save_ifs"
4020 eval cmd=\"$cmd\"
4021 if len=`expr "X$cmd" : ".*"` &&
4022 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4023 $show "$cmd"
4024 $run eval "$cmd" || exit $?
4025 skipped_export=false
4026 else
4027 # The command line is too long to execute in one step.
4028 $show "using reloadable object file for export list..."
4029 skipped_export=:
4030 # Break out early, otherwise skipped_export may be
4031 # set to false by a later but shorter cmd.
4032 break
4033 fi
4034 done
4035 IFS="$save_ifs"
4036 if test -n "$export_symbols_regex"; then
4037 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
4038 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
4039 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
4040 $run eval '$mv "${export_symbols}T" "$export_symbols"'
4041 fi
4042 fi
4043 fi
4044
4045 if test -n "$export_symbols" && test -n "$include_expsyms"; then
4046 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
4047 fi
4048
4049 tmp_deplibs=
4050 for test_deplib in $deplibs; do
4051 case " $convenience " in
4052 *" $test_deplib "*) ;;
4053 *)
4054 tmp_deplibs="$tmp_deplibs $test_deplib"
4055 ;;
4056 esac
4057 done
4058 deplibs="$tmp_deplibs"
4059
4060 if test -n "$convenience"; then
4061 if test -n "$whole_archive_flag_spec"; then
4062 save_libobjs=$libobjs
4063 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4064 else
4065 gentop="$output_objdir/${outputname}x"
4066 generated="$generated $gentop"
4067
4068 func_extract_archives $gentop $convenience
4069 libobjs="$libobjs $func_extract_archives_result"
4070 fi
4071 fi
4072
4073 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
4074 eval flag=\"$thread_safe_flag_spec\"
4075 linker_flags="$linker_flags $flag"
4076 fi
4077
4078 # Make a backup of the uninstalled library when relinking
4079 if test "$mode" = relink; then
4080 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
4081 fi
4082
4083 # Do each of the archive commands.
4084 if test "$module" = yes && test -n "$module_cmds" ; then
4085 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4086 eval test_cmds=\"$module_expsym_cmds\"
4087 cmds=$module_expsym_cmds
4088 else
4089 eval test_cmds=\"$module_cmds\"
4090 cmds=$module_cmds
4091 fi
4092 else
4093 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4094 eval test_cmds=\"$archive_expsym_cmds\"
4095 cmds=$archive_expsym_cmds
4096 else
4097 eval test_cmds=\"$archive_cmds\"
4098 cmds=$archive_cmds
4099 fi
4100 fi
4101
4102 if test "X$skipped_export" != "X:" &&
4103 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4104 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4105 :
4106 else
4107 # The command line is too long to link in one step, link piecewise.
4108 $echo "creating reloadable object files..."
4109
4110 # Save the value of $output and $libobjs because we want to
4111 # use them later. If we have whole_archive_flag_spec, we
4112 # want to use save_libobjs as it was before
4113 # whole_archive_flag_spec was expanded, because we can't
4114 # assume the linker understands whole_archive_flag_spec.
4115 # This may have to be revisited, in case too many
4116 # convenience libraries get linked in and end up exceeding
4117 # the spec.
4118 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
4119 save_libobjs=$libobjs
4120 fi
4121 save_output=$output
4122 output_la=`$echo "X$output" | $Xsed -e "$basename"`
4123
4124 # Clear the reloadable object creation command queue and
4125 # initialize k to one.
4126 test_cmds=
4127 concat_cmds=
4128 objlist=
4129 delfiles=
4130 last_robj=
4131 k=1
4132 output=$output_objdir/$output_la-${k}.$objext
4133 # Loop over the list of objects to be linked.
4134 for obj in $save_libobjs
4135 do
4136 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
4137 if test "X$objlist" = X ||
4138 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4139 test "$len" -le "$max_cmd_len"; }; then
4140 objlist="$objlist $obj"
4141 else
4142 # The command $test_cmds is almost too long, add a
4143 # command to the queue.
4144 if test "$k" -eq 1 ; then
4145 # The first file doesn't have a previous command to add.
4146 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
4147 else
4148 # All subsequent reloadable object files will link in
4149 # the last one created.
4150 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
4151 fi
4152 last_robj=$output_objdir/$output_la-${k}.$objext
4153 k=`expr $k + 1`
4154 output=$output_objdir/$output_la-${k}.$objext
4155 objlist=$obj
4156 len=1
4157 fi
4158 done
4159 # Handle the remaining objects by creating one last
4160 # reloadable object file. All subsequent reloadable object
4161 # files will link in the last one created.
4162 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
4163 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
4164
4165 if ${skipped_export-false}; then
4166 $show "generating symbol list for \`$libname.la'"
4167 export_symbols="$output_objdir/$libname.exp"
4168 $run $rm $export_symbols
4169 libobjs=$output
4170 # Append the command to create the export file.
4171 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
4172 fi
4173
4174 # Set up a command to remove the reloadable object files
4175 # after they are used.
4176 i=0
4177 while test "$i" -lt "$k"
4178 do
4179 i=`expr $i + 1`
4180 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
4181 done
4182
4183 $echo "creating a temporary reloadable object file: $output"
4184
4185 # Loop through the commands generated above and execute them.
4186 save_ifs="$IFS"; IFS='~'
4187 for cmd in $concat_cmds; do
4188 IFS="$save_ifs"
4189 $show "$cmd"
4190 $run eval "$cmd" || exit $?
4191 done
4192 IFS="$save_ifs"
4193
4194 libobjs=$output
4195 # Restore the value of output.
4196 output=$save_output
4197
4198 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
4199 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4200 fi
4201 # Expand the library linking commands again to reset the
4202 # value of $libobjs for piecewise linking.
4203
4204 # Do each of the archive commands.
4205 if test "$module" = yes && test -n "$module_cmds" ; then
4206 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4207 cmds=$module_expsym_cmds
4208 else
4209 cmds=$module_cmds
4210 fi
4211 else
4212 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4213 cmds=$archive_expsym_cmds
4214 else
4215 cmds=$archive_cmds
4216 fi
4217 fi
4218
4219 # Append the command to remove the reloadable object files
4220 # to the just-reset $cmds.
4221 eval cmds=\"\$cmds~\$rm $delfiles\"
4222 fi
4223 save_ifs="$IFS"; IFS='~'
4224 for cmd in $cmds; do
4225 IFS="$save_ifs"
4226 eval cmd=\"$cmd\"
4227 $show "$cmd"
4228 $run eval "$cmd" || {
4229 lt_exit=$?
4230
4231 # Restore the uninstalled library and exit
4232 if test "$mode" = relink; then
4233 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
4234 fi
4235
4236 exit $lt_exit
4237 }
4238 done
4239 IFS="$save_ifs"
4240
4241 # Restore the uninstalled library and exit
4242 if test "$mode" = relink; then
4243 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4244
4245 if test -n "$convenience"; then
4246 if test -z "$whole_archive_flag_spec"; then
4247 $show "${rm}r $gentop"
4248 $run ${rm}r "$gentop"
4249 fi
4250 fi
4251
4252 exit $EXIT_SUCCESS
4253 fi
4254
4255 # Create links to the real library.
4256 for linkname in $linknames; do
4257 if test "$realname" != "$linkname"; then
4258 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
4259 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
4260 fi
4261 done
4262
4263 # If -module or -export-dynamic was specified, set the dlname.
4264 if test "$module" = yes || test "$export_dynamic" = yes; then
4265 # On all known operating systems, these are identical.
4266 dlname="$soname"
4267 fi
4268 fi
4269 ;;
4270
4271 obj)
4272 case " $deplibs" in
4273 *\ -l* | *\ -L*)
4274 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
4275 esac
4276
4277 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4278 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4279 fi
4280
4281 if test -n "$rpath"; then
4282 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
4283 fi
4284
4285 if test -n "$xrpath"; then
4286 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
4287 fi
4288
4289 if test -n "$vinfo"; then
4290 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
4291 fi
4292
4293 if test -n "$release"; then
4294 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
4295 fi
4296
4297 case $output in
4298 *.lo)
4299 if test -n "$objs$old_deplibs"; then
4300 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4301 exit $EXIT_FAILURE
4302 fi
4303 libobj="$output"
4304 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
4305 ;;
4306 *)
4307 libobj=
4308 obj="$output"
4309 ;;
4310 esac
4311
4312 # Delete the old objects.
4313 $run $rm $obj $libobj
4314
4315 # Objects from convenience libraries. This assumes
4316 # single-version convenience libraries. Whenever we create
4317 # different ones for PIC/non-PIC, this we'll have to duplicate
4318 # the extraction.
4319 reload_conv_objs=
4320 gentop=
4321 # reload_cmds runs $LD directly, so let us get rid of
4322 # -Wl from whole_archive_flag_spec and hope we can get by with
4323 # turning comma into space..
4324 wl=
4325
4326 if test -n "$convenience"; then
4327 if test -n "$whole_archive_flag_spec"; then
4328 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4329 reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4330 else
4331 gentop="$output_objdir/${obj}x"
4332 generated="$generated $gentop"
4333
4334 func_extract_archives $gentop $convenience
4335 reload_conv_objs="$reload_objs $func_extract_archives_result"
4336 fi
4337 fi
4338
4339 # Create the old-style object.
4340 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
4341
4342 output="$obj"
4343 cmds=$reload_cmds
4344 save_ifs="$IFS"; IFS='~'
4345 for cmd in $cmds; do
4346 IFS="$save_ifs"
4347 eval cmd=\"$cmd\"
4348 $show "$cmd"
4349 $run eval "$cmd" || exit $?
4350 done
4351 IFS="$save_ifs"
4352
4353 # Exit if we aren't doing a library object file.
4354 if test -z "$libobj"; then
4355 if test -n "$gentop"; then
4356 $show "${rm}r $gentop"
4357 $run ${rm}r $gentop
4358 fi
4359
4360 exit $EXIT_SUCCESS
4361 fi
4362
4363 if test "$build_libtool_libs" != yes; then
4364 if test -n "$gentop"; then
4365 $show "${rm}r $gentop"
4366 $run ${rm}r $gentop
4367 fi
4368
4369 # Create an invalid libtool object if no PIC, so that we don't
4370 # accidentally link it into a program.
4371 # $show "echo timestamp > $libobj"
4372 # $run eval "echo timestamp > $libobj" || exit $?
4373 exit $EXIT_SUCCESS
4374 fi
4375
4376 if test -n "$pic_flag" || test "$pic_mode" != default; then
4377 # Only do commands if we really have different PIC objects.
4378 reload_objs="$libobjs $reload_conv_objs"
4379 output="$libobj"
4380 cmds=$reload_cmds
4381 save_ifs="$IFS"; IFS='~'
4382 for cmd in $cmds; do
4383 IFS="$save_ifs"
4384 eval cmd=\"$cmd\"
4385 $show "$cmd"
4386 $run eval "$cmd" || exit $?
4387 done
4388 IFS="$save_ifs"
4389 fi
4390
4391 if test -n "$gentop"; then
4392 $show "${rm}r $gentop"
4393 $run ${rm}r $gentop
4394 fi
4395
4396 exit $EXIT_SUCCESS
4397 ;;
4398
4399 prog)
4400 case $host in
4401 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
4402 esac
4403 if test -n "$vinfo"; then
4404 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4405 fi
4406
4407 if test -n "$release"; then
4408 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4409 fi
4410
4411 if test "$preload" = yes; then
4412 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4413 test "$dlopen_self_static" = unknown; then
4414 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4415 fi
4416 fi
4417
4418 case $host in
4419 *-*-rhapsody* | *-*-darwin1.[012])
4420 # On Rhapsody replace the C library is the System framework
4421 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4422 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4423 ;;
4424 esac
4425
4426 case $host in
4427 *darwin*)
4428 # Don't allow lazy linking, it breaks C++ global constructors
4429 if test "$tagname" = CXX ; then
4430 compile_command="$compile_command ${wl}-bind_at_load"
4431 finalize_command="$finalize_command ${wl}-bind_at_load"
4432 fi
4433 ;;
4434 esac
4435
4436
4437 # move library search paths that coincide with paths to not yet
4438 # installed libraries to the beginning of the library search list
4439 new_libs=
4440 for path in $notinst_path; do
4441 case " $new_libs " in
4442 *" -L$path/$objdir "*) ;;
4443 *)
4444 case " $compile_deplibs " in
4445 *" -L$path/$objdir "*)
4446 new_libs="$new_libs -L$path/$objdir" ;;
4447 esac
4448 ;;
4449 esac
4450 done
4451 for deplib in $compile_deplibs; do
4452 case $deplib in
4453 -L*)
4454 case " $new_libs " in
4455 *" $deplib "*) ;;
4456 *) new_libs="$new_libs $deplib" ;;
4457 esac
4458 ;;
4459 *) new_libs="$new_libs $deplib" ;;
4460 esac
4461 done
4462 compile_deplibs="$new_libs"
4463
4464
4465 compile_command="$compile_command $compile_deplibs"
4466 finalize_command="$finalize_command $finalize_deplibs"
4467
4468 if test -n "$rpath$xrpath"; then
4469 # If the user specified any rpath flags, then add them.
4470 for libdir in $rpath $xrpath; do
4471 # This is the magic to use -rpath.
4472 case "$finalize_rpath " in
4473 *" $libdir "*) ;;
4474 *) finalize_rpath="$finalize_rpath $libdir" ;;
4475 esac
4476 done
4477 fi
4478
4479 # Now hardcode the library paths
4480 rpath=
4481 hardcode_libdirs=
4482 for libdir in $compile_rpath $finalize_rpath; do
4483 if test -n "$hardcode_libdir_flag_spec"; then
4484 if test -n "$hardcode_libdir_separator"; then
4485 if test -z "$hardcode_libdirs"; then
4486 hardcode_libdirs="$libdir"
4487 else
4488 # Just accumulate the unique libdirs.
4489 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4490 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4491 ;;
4492 *)
4493 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4494 ;;
4495 esac
4496 fi
4497 else
4498 eval flag=\"$hardcode_libdir_flag_spec\"
4499 rpath="$rpath $flag"
4500 fi
4501 elif test -n "$runpath_var"; then
4502 case "$perm_rpath " in
4503 *" $libdir "*) ;;
4504 *) perm_rpath="$perm_rpath $libdir" ;;
4505 esac
4506 fi
4507 case $host in
4508 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4509 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4510 case :$dllsearchpath: in
4511 *":$libdir:"*) ;;
4512 *) dllsearchpath="$dllsearchpath:$libdir";;
4513 esac
4514 case :$dllsearchpath: in
4515 *":$testbindir:"*) ;;
4516 *) dllsearchpath="$dllsearchpath:$testbindir";;
4517 esac
4518 ;;
4519 esac
4520 done
4521 # Substitute the hardcoded libdirs into the rpath.
4522 if test -n "$hardcode_libdir_separator" &&
4523 test -n "$hardcode_libdirs"; then
4524 libdir="$hardcode_libdirs"
4525 eval rpath=\" $hardcode_libdir_flag_spec\"
4526 fi
4527 compile_rpath="$rpath"
4528
4529 rpath=
4530 hardcode_libdirs=
4531 for libdir in $finalize_rpath; do
4532 if test -n "$hardcode_libdir_flag_spec"; then
4533 if test -n "$hardcode_libdir_separator"; then
4534 if test -z "$hardcode_libdirs"; then
4535 hardcode_libdirs="$libdir"
4536 else
4537 # Just accumulate the unique libdirs.
4538 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4539 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4540 ;;
4541 *)
4542 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4543 ;;
4544 esac
4545 fi
4546 else
4547 eval flag=\"$hardcode_libdir_flag_spec\"
4548 rpath="$rpath $flag"
4549 fi
4550 elif test -n "$runpath_var"; then
4551 case "$finalize_perm_rpath " in
4552 *" $libdir "*) ;;
4553 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
4554 esac
4555 fi
4556 done
4557 # Substitute the hardcoded libdirs into the rpath.
4558 if test -n "$hardcode_libdir_separator" &&
4559 test -n "$hardcode_libdirs"; then
4560 libdir="$hardcode_libdirs"
4561 eval rpath=\" $hardcode_libdir_flag_spec\"
4562 fi
4563 finalize_rpath="$rpath"
4564
4565 if test -n "$libobjs" && test "$build_old_libs" = yes; then
4566 # Transform all the library objects into standard objects.
4567 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4568 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4569 fi
4570
4571 dlsyms=
4572 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4573 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4574 dlsyms="${outputname}S.c"
4575 else
4576 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
4577 fi
4578 fi
4579
4580 if test -n "$dlsyms"; then
4581 case $dlsyms in
4582 "") ;;
4583 *.c)
4584 # Discover the nlist of each of the dlfiles.
4585 nlist="$output_objdir/${outputname}.nm"
4586
4587 $show "$rm $nlist ${nlist}S ${nlist}T"
4588 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4589
4590 # Parse the name list into a source file.
4591 $show "creating $output_objdir/$dlsyms"
4592
4593 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4594 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4595 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4596
4597 #ifdef __cplusplus
4598 extern \"C\" {
4599 #endif
4600
4601 /* Prevent the only kind of declaration conflicts we can make. */
4602 #define lt_preloaded_symbols some_other_symbol
4603
4604 /* External symbol declarations for the compiler. */\
4605 "
4606
4607 if test "$dlself" = yes; then
4608 $show "generating symbol list for \`$output'"
4609
4610 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4611
4612 # Add our own program objects to the symbol list.
4613 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4614 for arg in $progfiles; do
4615 $show "extracting global C symbols from \`$arg'"
4616 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4617 done
4618
4619 if test -n "$exclude_expsyms"; then
4620 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4621 $run eval '$mv "$nlist"T "$nlist"'
4622 fi
4623
4624 if test -n "$export_symbols_regex"; then
4625 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4626 $run eval '$mv "$nlist"T "$nlist"'
4627 fi
4628
4629 # Prepare the list of exported symbols
4630 if test -z "$export_symbols"; then
4631 export_symbols="$output_objdir/$outputname.exp"
4632 $run $rm $export_symbols
4633 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4634 case $host in
4635 *cygwin* | *mingw* )
4636 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4637 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4638 ;;
4639 esac
4640 else
4641 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4642 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4643 $run eval 'mv "$nlist"T "$nlist"'
4644 case $host in
4645 *cygwin* | *mingw* )
4646 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4647 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4648 ;;
4649 esac
4650 fi
4651 fi
4652
4653 for arg in $dlprefiles; do
4654 $show "extracting global C symbols from \`$arg'"
4655 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4656 $run eval '$echo ": $name " >> "$nlist"'
4657 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4658 done
4659
4660 if test -z "$run"; then
4661 # Make sure we have at least an empty file.
4662 test -f "$nlist" || : > "$nlist"
4663
4664 if test -n "$exclude_expsyms"; then
4665 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4666 $mv "$nlist"T "$nlist"
4667 fi
4668
4669 # Try sorting and uniquifying the output.
4670 if grep -v "^: " < "$nlist" |
4671 if sort -k 3 </dev/null >/dev/null 2>&1; then
4672 sort -k 3
4673 else
4674 sort +2
4675 fi |
4676 uniq > "$nlist"S; then
4677 :
4678 else
4679 grep -v "^: " < "$nlist" > "$nlist"S
4680 fi
4681
4682 if test -f "$nlist"S; then
4683 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4684 else
4685 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4686 fi
4687
4688 $echo >> "$output_objdir/$dlsyms" "\
4689
4690 #undef lt_preloaded_symbols
4691
4692 #if defined (__STDC__) && __STDC__
4693 # define lt_ptr void *
4694 #else
4695 # define lt_ptr char *
4696 # define const
4697 #endif
4698
4699 /* The mapping between symbol names and symbols. */
4700 "
4701
4702 case $host in
4703 *cygwin* | *mingw* )
4704 $echo >> "$output_objdir/$dlsyms" "\
4705 /* DATA imports from DLLs on WIN32 can't be const, because
4706 runtime relocations are performed -- see ld's documentation
4707 on pseudo-relocs */
4708 struct {
4709 "
4710 ;;
4711 * )
4712 $echo >> "$output_objdir/$dlsyms" "\
4713 const struct {
4714 "
4715 ;;
4716 esac
4717
4718
4719 $echo >> "$output_objdir/$dlsyms" "\
4720 const char *name;
4721 lt_ptr address;
4722 }
4723 lt_preloaded_symbols[] =
4724 {\
4725 "
4726
4727 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4728
4729 $echo >> "$output_objdir/$dlsyms" "\
4730 {0, (lt_ptr) 0}
4731 };
4732
4733 /* This works around a problem in FreeBSD linker */
4734 #ifdef FREEBSD_WORKAROUND
4735 static const void *lt_preloaded_setup() {
4736 return lt_preloaded_symbols;
4737 }
4738 #endif
4739
4740 #ifdef __cplusplus
4741 }
4742 #endif\
4743 "
4744 fi
4745
4746 pic_flag_for_symtable=
4747 case $host in
4748 # compiling the symbol table file with pic_flag works around
4749 # a FreeBSD bug that causes programs to crash when -lm is
4750 # linked before any other PIC object. But we must not use
4751 # pic_flag when linking with -static. The problem exists in
4752 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4753 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4754 case "$compile_command " in
4755 *" -static "*) ;;
4756 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4757 esac;;
4758 *-*-hpux*)
4759 case "$compile_command " in
4760 *" -static "*) ;;
4761 *) pic_flag_for_symtable=" $pic_flag";;
4762 esac
4763 esac
4764
4765 # Now compile the dynamic symbol file.
4766 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4767 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4768
4769 # Clean up the generated files.
4770 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4771 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4772
4773 # Transform the symbol file into the correct name.
4774 case $host in
4775 *cygwin* | *mingw* )
4776 if test -f "$output_objdir/${outputname}.def" ; then
4777 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4778 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4779 else
4780 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4781 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4782 fi
4783 ;;
4784 * )
4785 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4786 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4787 ;;
4788 esac
4789 ;;
4790 *)
4791 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4792 exit $EXIT_FAILURE
4793 ;;
4794 esac
4795 else
4796 # We keep going just in case the user didn't refer to
4797 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4798 # really was required.
4799
4800 # Nullify the symbol file.
4801 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4802 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4803 fi
4804
4805 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4806 # Replace the output file specification.
4807 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4808 link_command="$compile_command$compile_rpath"
4809
4810 # We have no uninstalled library dependencies, so finalize right now.
4811 $show "$link_command"
4812 $run eval "$link_command"
4813 exit_status=$?
4814
4815 # Delete the generated files.
4816 if test -n "$dlsyms"; then
4817 $show "$rm $output_objdir/${outputname}S.${objext}"
4818 $run $rm "$output_objdir/${outputname}S.${objext}"
4819 fi
4820
4821 exit $exit_status
4822 fi
4823
4824 if test -n "$shlibpath_var"; then
4825 # We should set the shlibpath_var
4826 rpath=
4827 for dir in $temp_rpath; do
4828 case $dir in
4829 [\\/]* | [A-Za-z]:[\\/]*)
4830 # Absolute path.
4831 rpath="$rpath$dir:"
4832 ;;
4833 *)
4834 # Relative path: add a thisdir entry.
4835 rpath="$rpath\$thisdir/$dir:"
4836 ;;
4837 esac
4838 done
4839 temp_rpath="$rpath"
4840 fi
4841
4842 if test -n "$compile_shlibpath$finalize_shlibpath"; then
4843 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
4844 fi
4845 if test -n "$finalize_shlibpath"; then
4846 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
4847 fi
4848
4849 compile_var=
4850 finalize_var=
4851 if test -n "$runpath_var"; then
4852 if test -n "$perm_rpath"; then
4853 # We should set the runpath_var.
4854 rpath=
4855 for dir in $perm_rpath; do
4856 rpath="$rpath$dir:"
4857 done
4858 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
4859 fi
4860 if test -n "$finalize_perm_rpath"; then
4861 # We should set the runpath_var.
4862 rpath=
4863 for dir in $finalize_perm_rpath; do
4864 rpath="$rpath$dir:"
4865 done
4866 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
4867 fi
4868 fi
4869
4870 if test "$no_install" = yes; then
4871 # We don't need to create a wrapper script.
4872 link_command="$compile_var$compile_command$compile_rpath"
4873 # Replace the output file specification.
4874 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4875 # Delete the old output file.
4876 $run $rm $output
4877 # Link the executable and exit
4878 $show "$link_command"
4879 $run eval "$link_command" || exit $?
4880 exit $EXIT_SUCCESS
4881 fi
4882
4883 if test "$hardcode_action" = relink; then
4884 # Fast installation is not supported
4885 link_command="$compile_var$compile_command$compile_rpath"
4886 relink_command="$finalize_var$finalize_command$finalize_rpath"
4887
4888 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4889 $echo "$modename: \`$output' will be relinked during installation" 1>&2
4890 else
4891 if test "$fast_install" != no; then
4892 link_command="$finalize_var$compile_command$finalize_rpath"
4893 if test "$fast_install" = yes; then
4894 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4895 else
4896 # fast_install is set to needless
4897 relink_command=
4898 fi
4899 else
4900 link_command="$compile_var$compile_command$compile_rpath"
4901 relink_command="$finalize_var$finalize_command$finalize_rpath"
4902 fi
4903 fi
4904
4905 # Replace the output file specification.
4906 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
4907
4908 # Delete the old output files.
4909 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4910
4911 $show "$link_command"
4912 $run eval "$link_command" || exit $?
4913
4914 # Now create the wrapper script.
4915 $show "creating $output"
4916
4917 # Quote the relink command for shipping.
4918 if test -n "$relink_command"; then
4919 # Preserve any variables that may affect compiler behavior
4920 for var in $variables_saved_for_relink; do
4921 if eval test -z \"\${$var+set}\"; then
4922 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
4923 elif eval var_value=\$$var; test -z "$var_value"; then
4924 relink_command="$var=; export $var; $relink_command"
4925 else
4926 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4927 relink_command="$var=\"$var_value\"; export $var; $relink_command"
4928 fi
4929 done
4930 relink_command="(cd `pwd`; $relink_command)"
4931 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4932 fi
4933
4934 # Quote $echo for shipping.
4935 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
4936 case $progpath in
4937 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
4938 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
4939 esac
4940 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4941 else
4942 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
4943 fi
4944
4945 # Only actually do things if our run command is non-null.
4946 if test -z "$run"; then
4947 # win32 will think the script is a binary if it has
4948 # a .exe suffix, so we strip it off here.
4949 case $output in
4950 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
4951 esac
4952 # test for cygwin because mv fails w/o .exe extensions
4953 case $host in
4954 *cygwin*)
4955 exeext=.exe
4956 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
4957 *) exeext= ;;
4958 esac
4959 case $host in
4960 *cygwin* | *mingw* )
4961 output_name=`basename $output`
4962 output_path=`dirname $output`
4963 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4964 cwrapper="$output_path/$output_name.exe"
4965 $rm $cwrappersource $cwrapper
4966 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4967
4968 cat > $cwrappersource <<EOF
4969
4970 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4971 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4972
4973 The $output program cannot be directly executed until all the libtool
4974 libraries that it depends on are installed.
4975
4976 This wrapper executable should never be moved out of the build directory.
4977 If it is, it will not operate correctly.
4978
4979 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4980 but could eventually absorb all of the scripts functionality and
4981 exec $objdir/$outputname directly.
4982 */
4983 EOF
4984 cat >> $cwrappersource<<"EOF"
4985 #include <stdio.h>
4986 #include <stdlib.h>
4987 #include <unistd.h>
4988 #include <malloc.h>
4989 #include <stdarg.h>
4990 #include <assert.h>
4991 #include <string.h>
4992 #include <ctype.h>
4993 #include <sys/stat.h>
4994
4995 #if defined(PATH_MAX)
4996 # define LT_PATHMAX PATH_MAX
4997 #elif defined(MAXPATHLEN)
4998 # define LT_PATHMAX MAXPATHLEN
4999 #else
5000 # define LT_PATHMAX 1024
5001 #endif
5002
5003 #ifndef DIR_SEPARATOR
5004 # define DIR_SEPARATOR '/'
5005 # define PATH_SEPARATOR ':'
5006 #endif
5007
5008 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
5009 defined (__OS2__)
5010 # define HAVE_DOS_BASED_FILE_SYSTEM
5011 # ifndef DIR_SEPARATOR_2
5012 # define DIR_SEPARATOR_2 '\\'
5013 # endif
5014 # ifndef PATH_SEPARATOR_2
5015 # define PATH_SEPARATOR_2 ';'
5016 # endif
5017 #endif
5018
5019 #ifndef DIR_SEPARATOR_2
5020 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
5021 #else /* DIR_SEPARATOR_2 */
5022 # define IS_DIR_SEPARATOR(ch) \
5023 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
5024 #endif /* DIR_SEPARATOR_2 */
5025
5026 #ifndef PATH_SEPARATOR_2
5027 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5028 #else /* PATH_SEPARATOR_2 */
5029 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5030 #endif /* PATH_SEPARATOR_2 */
5031
5032 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5033 #define XFREE(stale) do { \
5034 if (stale) { free ((void *) stale); stale = 0; } \
5035 } while (0)
5036
5037 /* -DDEBUG is fairly common in CFLAGS. */
5038 #undef DEBUG
5039 #if defined DEBUGWRAPPER
5040 # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5041 #else
5042 # define DEBUG(format, ...)
5043 #endif
5044
5045 const char *program_name = NULL;
5046
5047 void * xmalloc (size_t num);
5048 char * xstrdup (const char *string);
5049 const char * base_name (const char *name);
5050 char * find_executable(const char *wrapper);
5051 int check_executable(const char *path);
5052 char * strendzap(char *str, const char *pat);
5053 void lt_fatal (const char *message, ...);
5054
5055 int
5056 main (int argc, char *argv[])
5057 {
5058 char **newargz;
5059 int i;
5060
5061 program_name = (char *) xstrdup (base_name (argv[0]));
5062 DEBUG("(main) argv[0] : %s\n",argv[0]);
5063 DEBUG("(main) program_name : %s\n",program_name);
5064 newargz = XMALLOC(char *, argc+2);
5065 EOF
5066
5067 cat >> $cwrappersource <<EOF
5068 newargz[0] = (char *) xstrdup("$SHELL");
5069 EOF
5070
5071 cat >> $cwrappersource <<"EOF"
5072 newargz[1] = find_executable(argv[0]);
5073 if (newargz[1] == NULL)
5074 lt_fatal("Couldn't find %s", argv[0]);
5075 DEBUG("(main) found exe at : %s\n",newargz[1]);
5076 /* we know the script has the same name, without the .exe */
5077 /* so make sure newargz[1] doesn't end in .exe */
5078 strendzap(newargz[1],".exe");
5079 for (i = 1; i < argc; i++)
5080 newargz[i+1] = xstrdup(argv[i]);
5081 newargz[argc+1] = NULL;
5082
5083 for (i=0; i<argc+1; i++)
5084 {
5085 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5086 ;
5087 }
5088
5089 EOF
5090
5091 case $host_os in
5092 mingw*)
5093 cat >> $cwrappersource <<EOF
5094 execv("$SHELL",(char const **)newargz);
5095 EOF
5096 ;;
5097 *)
5098 cat >> $cwrappersource <<EOF
5099 execv("$SHELL",newargz);
5100 EOF
5101 ;;
5102 esac
5103
5104 cat >> $cwrappersource <<"EOF"
5105 return 127;
5106 }
5107
5108 void *
5109 xmalloc (size_t num)
5110 {
5111 void * p = (void *) malloc (num);
5112 if (!p)
5113 lt_fatal ("Memory exhausted");
5114
5115 return p;
5116 }
5117
5118 char *
5119 xstrdup (const char *string)
5120 {
5121 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5122 ;
5123 }
5124
5125 const char *
5126 base_name (const char *name)
5127 {
5128 const char *base;
5129
5130 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5131 /* Skip over the disk name in MSDOS pathnames. */
5132 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5133 name += 2;
5134 #endif
5135
5136 for (base = name; *name; name++)
5137 if (IS_DIR_SEPARATOR (*name))
5138 base = name + 1;
5139 return base;
5140 }
5141
5142 int
5143 check_executable(const char * path)
5144 {
5145 struct stat st;
5146
5147 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5148 if ((!path) || (!*path))
5149 return 0;
5150
5151 if ((stat (path, &st) >= 0) &&
5152 (
5153 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5154 #if defined (S_IXOTH)
5155 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5156 #endif
5157 #if defined (S_IXGRP)
5158 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5159 #endif
5160 ((st.st_mode & S_IXUSR) == S_IXUSR))
5161 )
5162 return 1;
5163 else
5164 return 0;
5165 }
5166
5167 /* Searches for the full path of the wrapper. Returns
5168 newly allocated full path name if found, NULL otherwise */
5169 char *
5170 find_executable (const char* wrapper)
5171 {
5172 int has_slash = 0;
5173 const char* p;
5174 const char* p_next;
5175 /* static buffer for getcwd */
5176 char tmp[LT_PATHMAX + 1];
5177 int tmp_len;
5178 char* concat_name;
5179
5180 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5181
5182 if ((wrapper == NULL) || (*wrapper == '\0'))
5183 return NULL;
5184
5185 /* Absolute path? */
5186 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5187 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5188 {
5189 concat_name = xstrdup (wrapper);
5190 if (check_executable(concat_name))
5191 return concat_name;
5192 XFREE(concat_name);
5193 }
5194 else
5195 {
5196 #endif
5197 if (IS_DIR_SEPARATOR (wrapper[0]))
5198 {
5199 concat_name = xstrdup (wrapper);
5200 if (check_executable(concat_name))
5201 return concat_name;
5202 XFREE(concat_name);
5203 }
5204 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5205 }
5206 #endif
5207
5208 for (p = wrapper; *p; p++)
5209 if (*p == '/')
5210 {
5211 has_slash = 1;
5212 break;
5213 }
5214 if (!has_slash)
5215 {
5216 /* no slashes; search PATH */
5217 const char* path = getenv ("PATH");
5218 if (path != NULL)
5219 {
5220 for (p = path; *p; p = p_next)
5221 {
5222 const char* q;
5223 size_t p_len;
5224 for (q = p; *q; q++)
5225 if (IS_PATH_SEPARATOR(*q))
5226 break;
5227 p_len = q - p;
5228 p_next = (*q == '\0' ? q : q + 1);
5229 if (p_len == 0)
5230 {
5231 /* empty path: current directory */
5232 if (getcwd (tmp, LT_PATHMAX) == NULL)
5233 lt_fatal ("getcwd failed");
5234 tmp_len = strlen(tmp);
5235 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5236 memcpy (concat_name, tmp, tmp_len);
5237 concat_name[tmp_len] = '/';
5238 strcpy (concat_name + tmp_len + 1, wrapper);
5239 }
5240 else
5241 {
5242 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5243 memcpy (concat_name, p, p_len);
5244 concat_name[p_len] = '/';
5245 strcpy (concat_name + p_len + 1, wrapper);
5246 }
5247 if (check_executable(concat_name))
5248 return concat_name;
5249 XFREE(concat_name);
5250 }
5251 }
5252 /* not found in PATH; assume curdir */
5253 }
5254 /* Relative path | not found in path: prepend cwd */
5255 if (getcwd (tmp, LT_PATHMAX) == NULL)
5256 lt_fatal ("getcwd failed");
5257 tmp_len = strlen(tmp);
5258 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5259 memcpy (concat_name, tmp, tmp_len);
5260 concat_name[tmp_len] = '/';
5261 strcpy (concat_name + tmp_len + 1, wrapper);
5262
5263 if (check_executable(concat_name))
5264 return concat_name;
5265 XFREE(concat_name);
5266 return NULL;
5267 }
5268
5269 char *
5270 strendzap(char *str, const char *pat)
5271 {
5272 size_t len, patlen;
5273
5274 assert(str != NULL);
5275 assert(pat != NULL);
5276
5277 len = strlen(str);
5278 patlen = strlen(pat);
5279
5280 if (patlen <= len)
5281 {
5282 str += len - patlen;
5283 if (strcmp(str, pat) == 0)
5284 *str = '\0';
5285 }
5286 return str;
5287 }
5288
5289 static void
5290 lt_error_core (int exit_status, const char * mode,
5291 const char * message, va_list ap)
5292 {
5293 fprintf (stderr, "%s: %s: ", program_name, mode);
5294 vfprintf (stderr, message, ap);
5295 fprintf (stderr, ".\n");
5296
5297 if (exit_status >= 0)
5298 exit (exit_status);
5299 }
5300
5301 void
5302 lt_fatal (const char *message, ...)
5303 {
5304 va_list ap;
5305 va_start (ap, message);
5306 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5307 va_end (ap);
5308 }
5309 EOF
5310 # we should really use a build-platform specific compiler
5311 # here, but OTOH, the wrappers (shell script and this C one)
5312 # are only useful if you want to execute the "real" binary.
5313 # Since the "real" binary is built for $host, then this
5314 # wrapper might as well be built for $host, too.
5315 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5316 ;;
5317 esac
5318 $rm $output
5319 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5320
5321 $echo > $output "\
5322 #! $SHELL
5323
5324 # $output - temporary wrapper script for $objdir/$outputname
5325 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5326 #
5327 # The $output program cannot be directly executed until all the libtool
5328 # libraries that it depends on are installed.
5329 #
5330 # This wrapper script should never be moved out of the build directory.
5331 # If it is, it will not operate correctly.
5332
5333 # Sed substitution that helps us do robust quoting. It backslashifies
5334 # metacharacters that are still active within double-quoted strings.
5335 Xsed='${SED} -e 1s/^X//'
5336 sed_quote_subst='$sed_quote_subst'
5337
5338 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5339 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5340 emulate sh
5341 NULLCMD=:
5342 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5343 # is contrary to our usage. Disable this feature.
5344 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5345 setopt NO_GLOB_SUBST
5346 else
5347 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5348 fi
5349 BIN_SH=xpg4; export BIN_SH # for Tru64
5350 DUALCASE=1; export DUALCASE # for MKS sh
5351
5352 # The HP-UX ksh and POSIX shell print the target directory to stdout
5353 # if CDPATH is set.
5354 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5355
5356 relink_command=\"$relink_command\"
5357
5358 # This environment variable determines our operation mode.
5359 if test \"\$libtool_install_magic\" = \"$magic\"; then
5360 # install mode needs the following variable:
5361 notinst_deplibs='$notinst_deplibs'
5362 else
5363 # When we are sourced in execute mode, \$file and \$echo are already set.
5364 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5365 echo=\"$qecho\"
5366 file=\"\$0\"
5367 # Make sure echo works.
5368 if test \"X\$1\" = X--no-reexec; then
5369 # Discard the --no-reexec flag, and continue.
5370 shift
5371 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
5372 # Yippee, \$echo works!
5373 :
5374 else
5375 # Restart under the correct shell, and then maybe \$echo will work.
5376 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5377 fi
5378 fi\
5379 "
5380 $echo >> $output "\
5381
5382 # Find the directory that this script lives in.
5383 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
5384 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5385
5386 # Follow symbolic links until we get to the real thisdir.
5387 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
5388 while test -n \"\$file\"; do
5389 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
5390
5391 # If there was a directory component, then change thisdir.
5392 if test \"x\$destdir\" != \"x\$file\"; then
5393 case \"\$destdir\" in
5394 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5395 *) thisdir=\"\$thisdir/\$destdir\" ;;
5396 esac
5397 fi
5398
5399 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
5400 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
5401 done
5402
5403 # Try to get the absolute directory name.
5404 absdir=\`cd \"\$thisdir\" && pwd\`
5405 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5406 "
5407
5408 if test "$fast_install" = yes; then
5409 $echo >> $output "\
5410 program=lt-'$outputname'$exeext
5411 progdir=\"\$thisdir/$objdir\"
5412
5413 if test ! -f \"\$progdir/\$program\" || \\
5414 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5415 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5416
5417 file=\"\$\$-\$program\"
5418
5419 if test ! -d \"\$progdir\"; then
5420 $mkdir \"\$progdir\"
5421 else
5422 $rm \"\$progdir/\$file\"
5423 fi"
5424
5425 $echo >> $output "\
5426
5427 # relink executable if necessary
5428 if test -n \"\$relink_command\"; then
5429 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5430 else
5431 $echo \"\$relink_command_output\" >&2
5432 $rm \"\$progdir/\$file\"
5433 exit $EXIT_FAILURE
5434 fi
5435 fi
5436
5437 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5438 { $rm \"\$progdir/\$program\";
5439 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5440 $rm \"\$progdir/\$file\"
5441 fi"
5442 else
5443 $echo >> $output "\
5444 program='$outputname'
5445 progdir=\"\$thisdir/$objdir\"
5446 "
5447 fi
5448
5449 $echo >> $output "\
5450
5451 if test -f \"\$progdir/\$program\"; then"
5452
5453 # Export our shlibpath_var if we have one.
5454 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5455 $echo >> $output "\
5456 # Add our own library path to $shlibpath_var
5457 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5458
5459 # Some systems cannot cope with colon-terminated $shlibpath_var
5460 # The second colon is a workaround for a bug in BeOS R4 sed
5461 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
5462
5463 export $shlibpath_var
5464 "
5465 fi
5466
5467 # fixup the dll searchpath if we need to.
5468 if test -n "$dllsearchpath"; then
5469 $echo >> $output "\
5470 # Add the dll search path components to the executable PATH
5471 PATH=$dllsearchpath:\$PATH
5472 "
5473 fi
5474
5475 $echo >> $output "\
5476 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5477 # Run the actual program with our arguments.
5478 "
5479 case $host in
5480 # Backslashes separate directories on plain windows
5481 *-*-mingw | *-*-os2*)
5482 $echo >> $output "\
5483 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5484 "
5485 ;;
5486
5487 *)
5488 $echo >> $output "\
5489 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5490 "
5491 ;;
5492 esac
5493 $echo >> $output "\
5494 \$echo \"\$0: cannot exec \$program \$*\"
5495 exit $EXIT_FAILURE
5496 fi
5497 else
5498 # The program doesn't exist.
5499 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5500 \$echo \"This script is just a wrapper for \$program.\" 1>&2
5501 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5502 exit $EXIT_FAILURE
5503 fi
5504 fi\
5505 "
5506 chmod +x $output
5507 fi
5508 exit $EXIT_SUCCESS
5509 ;;
5510 esac
5511
5512 # See if we need to build an old-fashioned archive.
5513 for oldlib in $oldlibs; do
5514
5515 if test "$build_libtool_libs" = convenience; then
5516 oldobjs="$libobjs_save"
5517 addlibs="$convenience"
5518 build_libtool_libs=no
5519 else
5520 if test "$build_libtool_libs" = module; then
5521 oldobjs="$libobjs_save"
5522 build_libtool_libs=no
5523 else
5524 oldobjs="$old_deplibs $non_pic_objects"
5525 fi
5526 addlibs="$old_convenience"
5527 fi
5528
5529 if test -n "$addlibs"; then
5530 gentop="$output_objdir/${outputname}x"
5531 generated="$generated $gentop"
5532
5533 func_extract_archives $gentop $addlibs
5534 oldobjs="$oldobjs $func_extract_archives_result"
5535 fi
5536
5537 # Do each command in the archive commands.
5538 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5539 cmds=$old_archive_from_new_cmds
5540 else
5541 # POSIX demands no paths to be encoded in archives. We have
5542 # to avoid creating archives with duplicate basenames if we
5543 # might have to extract them afterwards, e.g., when creating a
5544 # static archive out of a convenience library, or when linking
5545 # the entirety of a libtool archive into another (currently
5546 # not supported by libtool).
5547 if (for obj in $oldobjs
5548 do
5549 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5550 done | sort | sort -uc >/dev/null 2>&1); then
5551 :
5552 else
5553 $echo "copying selected object files to avoid basename conflicts..."
5554
5555 if test -z "$gentop"; then
5556 gentop="$output_objdir/${outputname}x"
5557 generated="$generated $gentop"
5558
5559 $show "${rm}r $gentop"
5560 $run ${rm}r "$gentop"
5561 $show "$mkdir $gentop"
5562 $run $mkdir "$gentop"
5563 exit_status=$?
5564 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5565 exit $exit_status
5566 fi
5567 fi
5568
5569 save_oldobjs=$oldobjs
5570 oldobjs=
5571 counter=1
5572 for obj in $save_oldobjs
5573 do
5574 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5575 case " $oldobjs " in
5576 " ") oldobjs=$obj ;;
5577 *[\ /]"$objbase "*)
5578 while :; do
5579 # Make sure we don't pick an alternate name that also
5580 # overlaps.
5581 newobj=lt$counter-$objbase
5582 counter=`expr $counter + 1`
5583 case " $oldobjs " in
5584 *[\ /]"$newobj "*) ;;
5585 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
5586 esac
5587 done
5588 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5589 $run ln "$obj" "$gentop/$newobj" ||
5590 $run cp "$obj" "$gentop/$newobj"
5591 oldobjs="$oldobjs $gentop/$newobj"
5592 ;;
5593 *) oldobjs="$oldobjs $obj" ;;
5594 esac
5595 done
5596 fi
5597
5598 eval cmds=\"$old_archive_cmds\"
5599
5600 if len=`expr "X$cmds" : ".*"` &&
5601 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5602 cmds=$old_archive_cmds
5603 else
5604 # the command line is too long to link in one step, link in parts
5605 $echo "using piecewise archive linking..."
5606 save_RANLIB=$RANLIB
5607 RANLIB=:
5608 objlist=
5609 concat_cmds=
5610 save_oldobjs=$oldobjs
5611
5612 # Is there a better way of finding the last object in the list?
5613 for obj in $save_oldobjs
5614 do
5615 last_oldobj=$obj
5616 done
5617 for obj in $save_oldobjs
5618 do
5619 oldobjs="$objlist $obj"
5620 objlist="$objlist $obj"
5621 eval test_cmds=\"$old_archive_cmds\"
5622 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5623 test "$len" -le "$max_cmd_len"; then
5624 :
5625 else
5626 # the above command should be used before it gets too long
5627 oldobjs=$objlist
5628 if test "$obj" = "$last_oldobj" ; then
5629 RANLIB=$save_RANLIB
5630 fi
5631 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5632 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5633 objlist=
5634 fi
5635 done
5636 RANLIB=$save_RANLIB
5637 oldobjs=$objlist
5638 if test "X$oldobjs" = "X" ; then
5639 eval cmds=\"\$concat_cmds\"
5640 else
5641 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
5642 fi
5643 fi
5644 fi
5645 save_ifs="$IFS"; IFS='~'
5646 for cmd in $cmds; do
5647 eval cmd=\"$cmd\"
5648 IFS="$save_ifs"
5649 $show "$cmd"
5650 $run eval "$cmd" || exit $?
5651 done
5652 IFS="$save_ifs"
5653 done
5654
5655 if test -n "$generated"; then
5656 $show "${rm}r$generated"
5657 $run ${rm}r$generated
5658 fi
5659
5660 # Now create the libtool archive.
5661 case $output in
5662 *.la)
5663 old_library=
5664 test "$build_old_libs" = yes && old_library="$libname.$libext"
5665 $show "creating $output"
5666
5667 # Preserve any variables that may affect compiler behavior
5668 for var in $variables_saved_for_relink; do
5669 if eval test -z \"\${$var+set}\"; then
5670 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
5671 elif eval var_value=\$$var; test -z "$var_value"; then
5672 relink_command="$var=; export $var; $relink_command"
5673 else
5674 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5675 relink_command="$var=\"$var_value\"; export $var; $relink_command"
5676 fi
5677 done
5678 # Quote the link command for shipping.
5679 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5680 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5681 if test "$hardcode_automatic" = yes ; then
5682 relink_command=
5683 fi
5684
5685
5686 # Only create the output if not a dry run.
5687 if test -z "$run"; then
5688 for installed in no yes; do
5689 if test "$installed" = yes; then
5690 if test -z "$install_libdir"; then
5691 break
5692 fi
5693 output="$output_objdir/$outputname"i
5694 # Replace all uninstalled libtool libraries with the installed ones
5695 newdependency_libs=
5696 for deplib in $dependency_libs; do
5697 case $deplib in
5698 *.la)
5699 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
5700 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5701 if test -z "$libdir"; then
5702 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5703 exit $EXIT_FAILURE
5704 fi
5705 newdependency_libs="$newdependency_libs $libdir/$name"
5706 ;;
5707 *) newdependency_libs="$newdependency_libs $deplib" ;;
5708 esac
5709 done
5710 dependency_libs="$newdependency_libs"
5711 newdlfiles=
5712 for lib in $dlfiles; do
5713 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5714 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5715 if test -z "$libdir"; then
5716 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5717 exit $EXIT_FAILURE
5718 fi
5719 newdlfiles="$newdlfiles $libdir/$name"
5720 done
5721 dlfiles="$newdlfiles"
5722 newdlprefiles=
5723 for lib in $dlprefiles; do
5724 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5725 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5726 if test -z "$libdir"; then
5727 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5728 exit $EXIT_FAILURE
5729 fi
5730 newdlprefiles="$newdlprefiles $libdir/$name"
5731 done
5732 dlprefiles="$newdlprefiles"
5733 else
5734 newdlfiles=
5735 for lib in $dlfiles; do
5736 case $lib in
5737 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5738 *) abs=`pwd`"/$lib" ;;
5739 esac
5740 newdlfiles="$newdlfiles $abs"
5741 done
5742 dlfiles="$newdlfiles"
5743 newdlprefiles=
5744 for lib in $dlprefiles; do
5745 case $lib in
5746 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5747 *) abs=`pwd`"/$lib" ;;
5748 esac
5749 newdlprefiles="$newdlprefiles $abs"
5750 done
5751 dlprefiles="$newdlprefiles"
5752 fi
5753 $rm $output
5754 # place dlname in correct position for cygwin
5755 tdlname=$dlname
5756 case $host,$output,$installed,$module,$dlname in
5757 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5758 esac
5759 $echo > $output "\
5760 # $outputname - a libtool library file
5761 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5762 #
5763 # Please DO NOT delete this file!
5764 # It is necessary for linking the library.
5765
5766 # The name that we can dlopen(3).
5767 dlname='$tdlname'
5768
5769 # Names of this library.
5770 library_names='$library_names'
5771
5772 # The name of the static archive.
5773 old_library='$old_library'
5774
5775 # Libraries that this one depends upon.
5776 dependency_libs='$dependency_libs'
5777
5778 # Version information for $libname.
5779 current=$current
5780 age=$age
5781 revision=$revision
5782
5783 # Is this an already installed library?
5784 installed=$installed
5785
5786 # Should we warn about portability when linking against -modules?
5787 shouldnotlink=$module
5788
5789 # Files to dlopen/dlpreopen
5790 dlopen='$dlfiles'
5791 dlpreopen='$dlprefiles'
5792
5793 # Directory that this library needs to be installed in:
5794 libdir='$install_libdir'"
5795 if test "$installed" = no && test "$need_relink" = yes; then
5796 $echo >> $output "\
5797 relink_command=\"$relink_command\""
5798 fi
5799 done
5800 fi
5801
5802 # Do a symbolic link so that the libtool archive can be found in
5803 # LD_LIBRARY_PATH before the program is installed.
5804 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5805 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
5806 ;;
5807 esac
5808 exit $EXIT_SUCCESS
5809 ;;
5810
5811 # libtool install mode
5812 install)
5813 modename="$modename: install"
5814
5815 # There may be an optional sh(1) argument at the beginning of
5816 # install_prog (especially on Windows NT).
5817 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5818 # Allow the use of GNU shtool's install command.
5819 $echo "X$nonopt" | grep shtool > /dev/null; then
5820 # Aesthetically quote it.
5821 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5822 case $arg in
5823 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5824 arg="\"$arg\""
5825 ;;
5826 esac
5827 install_prog="$arg "
5828 arg="$1"
5829 shift
5830 else
5831 install_prog=
5832 arg=$nonopt
5833 fi
5834
5835 # The real first argument should be the name of the installation program.
5836 # Aesthetically quote it.
5837 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5838 case $arg in
5839 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5840 arg="\"$arg\""
5841 ;;
5842 esac
5843 install_prog="$install_prog$arg"
5844
5845 # We need to accept at least all the BSD install flags.
5846 dest=
5847 files=
5848 opts=
5849 prev=
5850 install_type=
5851 isdir=no
5852 stripme=
5853 for arg
5854 do
5855 if test -n "$dest"; then
5856 files="$files $dest"
5857 dest=$arg
5858 continue
5859 fi
5860
5861 case $arg in
5862 -d) isdir=yes ;;
5863 -f)
5864 case " $install_prog " in
5865 *[\\\ /]cp\ *) ;;
5866 *) prev=$arg ;;
5867 esac
5868 ;;
5869 -g | -m | -o) prev=$arg ;;
5870 -s)
5871 stripme=" -s"
5872 continue
5873 ;;
5874 -*)
5875 ;;
5876 *)
5877 # If the previous option needed an argument, then skip it.
5878 if test -n "$prev"; then
5879 prev=
5880 else
5881 dest=$arg
5882 continue
5883 fi
5884 ;;
5885 esac
5886
5887 # Aesthetically quote the argument.
5888 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5889 case $arg in
5890 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5891 arg="\"$arg\""
5892 ;;
5893 esac
5894 install_prog="$install_prog $arg"
5895 done
5896
5897 if test -z "$install_prog"; then
5898 $echo "$modename: you must specify an install program" 1>&2
5899 $echo "$help" 1>&2
5900 exit $EXIT_FAILURE
5901 fi
5902
5903 if test -n "$prev"; then
5904 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5905 $echo "$help" 1>&2
5906 exit $EXIT_FAILURE
5907 fi
5908
5909 if test -z "$files"; then
5910 if test -z "$dest"; then
5911 $echo "$modename: no file or destination specified" 1>&2
5912 else
5913 $echo "$modename: you must specify a destination" 1>&2
5914 fi
5915 $echo "$help" 1>&2
5916 exit $EXIT_FAILURE
5917 fi
5918
5919 # Strip any trailing slash from the destination.
5920 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5921
5922 # Check to see that the destination is a directory.
5923 test -d "$dest" && isdir=yes
5924 if test "$isdir" = yes; then
5925 destdir="$dest"
5926 destname=
5927 else
5928 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5929 test "X$destdir" = "X$dest" && destdir=.
5930 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5931
5932 # Not a directory, so check to see that there is only one file specified.
5933 set dummy $files
5934 if test "$#" -gt 2; then
5935 $echo "$modename: \`$dest' is not a directory" 1>&2
5936 $echo "$help" 1>&2
5937 exit $EXIT_FAILURE
5938 fi
5939 fi
5940 case $destdir in
5941 [\\/]* | [A-Za-z]:[\\/]*) ;;
5942 *)
5943 for file in $files; do
5944 case $file in
5945 *.lo) ;;
5946 *)
5947 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5948 $echo "$help" 1>&2
5949 exit $EXIT_FAILURE
5950 ;;
5951 esac
5952 done
5953 ;;
5954 esac
5955
5956 # This variable tells wrapper scripts just to set variables rather
5957 # than running their programs.
5958 libtool_install_magic="$magic"
5959
5960 staticlibs=
5961 future_libdirs=
5962 current_libdirs=
5963 for file in $files; do
5964
5965 # Do each installation.
5966 case $file in
5967 *.$libext)
5968 # Do the static libraries later.
5969 staticlibs="$staticlibs $file"
5970 ;;
5971
5972 *.la)
5973 # Check to see that this really is a libtool archive.
5974 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5975 else
5976 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5977 $echo "$help" 1>&2
5978 exit $EXIT_FAILURE
5979 fi
5980
5981 library_names=
5982 old_library=
5983 relink_command=
5984 # If there is no directory component, then add one.
5985 case $file in
5986 */* | *\\*) . $file ;;
5987 *) . ./$file ;;
5988 esac
5989
5990 # Add the libdir to current_libdirs if it is the destination.
5991 if test "X$destdir" = "X$libdir"; then
5992 case "$current_libdirs " in
5993 *" $libdir "*) ;;
5994 *) current_libdirs="$current_libdirs $libdir" ;;
5995 esac
5996 else
5997 # Note the libdir as a future libdir.
5998 case "$future_libdirs " in
5999 *" $libdir "*) ;;
6000 *) future_libdirs="$future_libdirs $libdir" ;;
6001 esac
6002 fi
6003
6004 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
6005 test "X$dir" = "X$file/" && dir=
6006 dir="$dir$objdir"
6007
6008 if test -n "$relink_command"; then
6009 # Determine the prefix the user has applied to our future dir.
6010 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
6011
6012 # Don't allow the user to place us outside of our expected
6013 # location b/c this prevents finding dependent libraries that
6014 # are installed to the same prefix.
6015 # At present, this check doesn't affect windows .dll's that
6016 # are installed into $libdir/../bin (currently, that works fine)
6017 # but it's something to keep an eye on.
6018 if test "$inst_prefix_dir" = "$destdir"; then
6019 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
6020 exit $EXIT_FAILURE
6021 fi
6022
6023 if test -n "$inst_prefix_dir"; then
6024 # Stick the inst_prefix_dir data into the link command.
6025 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
6026 else
6027 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
6028 fi
6029
6030 $echo "$modename: warning: relinking \`$file'" 1>&2
6031 $show "$relink_command"
6032 if $run eval "$relink_command"; then :
6033 else
6034 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6035 exit $EXIT_FAILURE
6036 fi
6037 fi
6038
6039 # See the names of the shared library.
6040 set dummy $library_names
6041 if test -n "$2"; then
6042 realname="$2"
6043 shift
6044 shift
6045
6046 srcname="$realname"
6047 test -n "$relink_command" && srcname="$realname"T
6048
6049 # Install the shared library and build the symlinks.
6050 $show "$install_prog $dir/$srcname $destdir/$realname"
6051 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
6052 if test -n "$stripme" && test -n "$striplib"; then
6053 $show "$striplib $destdir/$realname"
6054 $run eval "$striplib $destdir/$realname" || exit $?
6055 fi
6056
6057 if test "$#" -gt 0; then
6058 # Delete the old symlinks, and create new ones.
6059 # Try `ln -sf' first, because the `ln' binary might depend on
6060 # the symlink we replace! Solaris /bin/ln does not understand -f,
6061 # so we also need to try rm && ln -s.
6062 for linkname
6063 do
6064 if test "$linkname" != "$realname"; then
6065 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6066 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6067 fi
6068 done
6069 fi
6070
6071 # Do each command in the postinstall commands.
6072 lib="$destdir/$realname"
6073 cmds=$postinstall_cmds
6074 save_ifs="$IFS"; IFS='~'
6075 for cmd in $cmds; do
6076 IFS="$save_ifs"
6077 eval cmd=\"$cmd\"
6078 $show "$cmd"
6079 $run eval "$cmd" || {
6080 lt_exit=$?
6081
6082 # Restore the uninstalled library and exit
6083 if test "$mode" = relink; then
6084 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
6085 fi
6086
6087 exit $lt_exit
6088 }
6089 done
6090 IFS="$save_ifs"
6091 fi
6092
6093 # Install the pseudo-library for information purposes.
6094 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6095 instname="$dir/$name"i
6096 $show "$install_prog $instname $destdir/$name"
6097 $run eval "$install_prog $instname $destdir/$name" || exit $?
6098
6099 # Maybe install the static library, too.
6100 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
6101 ;;
6102
6103 *.lo)
6104 # Install (i.e. copy) a libtool object.
6105
6106 # Figure out destination file name, if it wasn't already specified.
6107 if test -n "$destname"; then
6108 destfile="$destdir/$destname"
6109 else
6110 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6111 destfile="$destdir/$destfile"
6112 fi
6113
6114 # Deduce the name of the destination old-style object file.
6115 case $destfile in
6116 *.lo)
6117 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
6118 ;;
6119 *.$objext)
6120 staticdest="$destfile"
6121 destfile=
6122 ;;
6123 *)
6124 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
6125 $echo "$help" 1>&2
6126 exit $EXIT_FAILURE
6127 ;;
6128 esac
6129
6130 # Install the libtool object if requested.
6131 if test -n "$destfile"; then
6132 $show "$install_prog $file $destfile"
6133 $run eval "$install_prog $file $destfile" || exit $?
6134 fi
6135
6136 # Install the old object if enabled.
6137 if test "$build_old_libs" = yes; then
6138 # Deduce the name of the old-style object file.
6139 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
6140
6141 $show "$install_prog $staticobj $staticdest"
6142 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
6143 fi
6144 exit $EXIT_SUCCESS
6145 ;;
6146
6147 *)
6148 # Figure out destination file name, if it wasn't already specified.
6149 if test -n "$destname"; then
6150 destfile="$destdir/$destname"
6151 else
6152 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6153 destfile="$destdir/$destfile"
6154 fi
6155
6156 # If the file is missing, and there is a .exe on the end, strip it
6157 # because it is most likely a libtool script we actually want to
6158 # install
6159 stripped_ext=""
6160 case $file in
6161 *.exe)
6162 if test ! -f "$file"; then
6163 file=`$echo $file|${SED} 's,.exe$,,'`
6164 stripped_ext=".exe"
6165 fi
6166 ;;
6167 esac
6168
6169 # Do a test to see if this is really a libtool program.
6170 case $host in
6171 *cygwin*|*mingw*)
6172 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
6173 ;;
6174 *)
6175 wrapper=$file
6176 ;;
6177 esac
6178 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
6179 notinst_deplibs=
6180 relink_command=
6181
6182 # Note that it is not necessary on cygwin/mingw to append a dot to
6183 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6184 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6185 # `FILE.' does not work on cygwin managed mounts.
6186 #
6187 # If there is no directory component, then add one.
6188 case $wrapper in
6189 */* | *\\*) . ${wrapper} ;;
6190 *) . ./${wrapper} ;;
6191 esac
6192
6193 # Check the variables that should have been set.
6194 if test -z "$notinst_deplibs"; then
6195 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
6196 exit $EXIT_FAILURE
6197 fi
6198
6199 finalize=yes
6200 for lib in $notinst_deplibs; do
6201 # Check to see that each library is installed.
6202 libdir=
6203 if test -f "$lib"; then
6204 # If there is no directory component, then add one.
6205 case $lib in
6206 */* | *\\*) . $lib ;;
6207 *) . ./$lib ;;
6208 esac
6209 fi
6210 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6211 if test -n "$libdir" && test ! -f "$libfile"; then
6212 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
6213 finalize=no
6214 fi
6215 done
6216
6217 relink_command=
6218 # Note that it is not necessary on cygwin/mingw to append a dot to
6219 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6220 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6221 # `FILE.' does not work on cygwin managed mounts.
6222 #
6223 # If there is no directory component, then add one.
6224 case $wrapper in
6225 */* | *\\*) . ${wrapper} ;;
6226 *) . ./${wrapper} ;;
6227 esac
6228
6229 outputname=
6230 if test "$fast_install" = no && test -n "$relink_command"; then
6231 if test "$finalize" = yes && test -z "$run"; then
6232 tmpdir=`func_mktempdir`
6233 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6234 outputname="$tmpdir/$file"
6235 # Replace the output file specification.
6236 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6237
6238 $show "$relink_command"
6239 if $run eval "$relink_command"; then :
6240 else
6241 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6242 ${rm}r "$tmpdir"
6243 continue
6244 fi
6245 file="$outputname"
6246 else
6247 $echo "$modename: warning: cannot relink \`$file'" 1>&2
6248 fi
6249 else
6250 # Install the binary that we compiled earlier.
6251 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6252 fi
6253 fi
6254
6255 # remove .exe since cygwin /usr/bin/install will append another
6256 # one anyway
6257 case $install_prog,$host in
6258 */usr/bin/install*,*cygwin*)
6259 case $file:$destfile in
6260 *.exe:*.exe)
6261 # this is ok
6262 ;;
6263 *.exe:*)
6264 destfile=$destfile.exe
6265 ;;
6266 *:*.exe)
6267 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
6268 ;;
6269 esac
6270 ;;
6271 esac
6272 $show "$install_prog$stripme $file $destfile"
6273 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
6274 test -n "$outputname" && ${rm}r "$tmpdir"
6275 ;;
6276 esac
6277 done
6278
6279 for file in $staticlibs; do
6280 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6281
6282 # Set up the ranlib parameters.
6283 oldlib="$destdir/$name"
6284
6285 $show "$install_prog $file $oldlib"
6286 $run eval "$install_prog \$file \$oldlib" || exit $?
6287
6288 if test -n "$stripme" && test -n "$old_striplib"; then
6289 $show "$old_striplib $oldlib"
6290 $run eval "$old_striplib $oldlib" || exit $?
6291 fi
6292
6293 # Do each command in the postinstall commands.
6294 cmds=$old_postinstall_cmds
6295 save_ifs="$IFS"; IFS='~'
6296 for cmd in $cmds; do
6297 IFS="$save_ifs"
6298 eval cmd=\"$cmd\"
6299 $show "$cmd"
6300 $run eval "$cmd" || exit $?
6301 done
6302 IFS="$save_ifs"
6303 done
6304
6305 if test -n "$future_libdirs"; then
6306 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
6307 fi
6308
6309 if test -n "$current_libdirs"; then
6310 # Maybe just do a dry run.
6311 test -n "$run" && current_libdirs=" -n$current_libdirs"
6312 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
6313 else
6314 exit $EXIT_SUCCESS
6315 fi
6316 ;;
6317
6318 # libtool finish mode
6319 finish)
6320 modename="$modename: finish"
6321 libdirs="$nonopt"
6322 admincmds=
6323
6324 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
6325 for dir
6326 do
6327 libdirs="$libdirs $dir"
6328 done
6329
6330 for libdir in $libdirs; do
6331 if test -n "$finish_cmds"; then
6332 # Do each command in the finish commands.
6333 cmds=$finish_cmds
6334 save_ifs="$IFS"; IFS='~'
6335 for cmd in $cmds; do
6336 IFS="$save_ifs"
6337 eval cmd=\"$cmd\"
6338 $show "$cmd"
6339 $run eval "$cmd" || admincmds="$admincmds
6340 $cmd"
6341 done
6342 IFS="$save_ifs"
6343 fi
6344 if test -n "$finish_eval"; then
6345 # Do the single finish_eval.
6346 eval cmds=\"$finish_eval\"
6347 $run eval "$cmds" || admincmds="$admincmds
6348 $cmds"
6349 fi
6350 done
6351 fi
6352
6353 # Exit here if they wanted silent mode.
6354 test "$show" = : && exit $EXIT_SUCCESS
6355
6356 $echo "X----------------------------------------------------------------------" | $Xsed
6357 $echo "Libraries have been installed in:"
6358 for libdir in $libdirs; do
6359 $echo " $libdir"
6360 done
6361 $echo
6362 $echo "If you ever happen to want to link against installed libraries"
6363 $echo "in a given directory, LIBDIR, you must either use libtool, and"
6364 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6365 $echo "flag during linking and do at least one of the following:"
6366 if test -n "$shlibpath_var"; then
6367 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6368 $echo " during execution"
6369 fi
6370 if test -n "$runpath_var"; then
6371 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
6372 $echo " during linking"
6373 fi
6374 if test -n "$hardcode_libdir_flag_spec"; then
6375 libdir=LIBDIR
6376 eval flag=\"$hardcode_libdir_flag_spec\"
6377
6378 $echo " - use the \`$flag' linker flag"
6379 fi
6380 if test -n "$admincmds"; then
6381 $echo " - have your system administrator run these commands:$admincmds"
6382 fi
6383 if test -f /etc/ld.so.conf; then
6384 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6385 fi
6386 $echo
6387 $echo "See any operating system documentation about shared libraries for"
6388 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6389 $echo "X----------------------------------------------------------------------" | $Xsed
6390 exit $EXIT_SUCCESS
6391 ;;
6392
6393 # libtool execute mode
6394 execute)
6395 modename="$modename: execute"
6396
6397 # The first argument is the command name.
6398 cmd="$nonopt"
6399 if test -z "$cmd"; then
6400 $echo "$modename: you must specify a COMMAND" 1>&2
6401 $echo "$help"
6402 exit $EXIT_FAILURE
6403 fi
6404
6405 # Handle -dlopen flags immediately.
6406 for file in $execute_dlfiles; do
6407 if test ! -f "$file"; then
6408 $echo "$modename: \`$file' is not a file" 1>&2
6409 $echo "$help" 1>&2
6410 exit $EXIT_FAILURE
6411 fi
6412
6413 dir=
6414 case $file in
6415 *.la)
6416 # Check to see that this really is a libtool archive.
6417 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6418 else
6419 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6420 $echo "$help" 1>&2
6421 exit $EXIT_FAILURE
6422 fi
6423
6424 # Read the libtool library.
6425 dlname=
6426 library_names=
6427
6428 # If there is no directory component, then add one.
6429 case $file in
6430 */* | *\\*) . $file ;;
6431 *) . ./$file ;;
6432 esac
6433
6434 # Skip this library if it cannot be dlopened.
6435 if test -z "$dlname"; then
6436 # Warn if it was a shared library.
6437 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
6438 continue
6439 fi
6440
6441 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6442 test "X$dir" = "X$file" && dir=.
6443
6444 if test -f "$dir/$objdir/$dlname"; then
6445 dir="$dir/$objdir"
6446 else
6447 if test ! -f "$dir/$dlname"; then
6448 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6449 exit $EXIT_FAILURE
6450 fi
6451 fi
6452 ;;
6453
6454 *.lo)
6455 # Just add the directory containing the .lo file.
6456 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6457 test "X$dir" = "X$file" && dir=.
6458 ;;
6459
6460 *)
6461 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
6462 continue
6463 ;;
6464 esac
6465
6466 # Get the absolute pathname.
6467 absdir=`cd "$dir" && pwd`
6468 test -n "$absdir" && dir="$absdir"
6469
6470 # Now add the directory to shlibpath_var.
6471 if eval "test -z \"\$$shlibpath_var\""; then
6472 eval "$shlibpath_var=\"\$dir\""
6473 else
6474 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
6475 fi
6476 done
6477
6478 # This variable tells wrapper scripts just to set shlibpath_var
6479 # rather than running their programs.
6480 libtool_execute_magic="$magic"
6481
6482 # Check if any of the arguments is a wrapper script.
6483 args=
6484 for file
6485 do
6486 case $file in
6487 -*) ;;
6488 *)
6489 # Do a test to see if this is really a libtool program.
6490 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6491 # If there is no directory component, then add one.
6492 case $file in
6493 */* | *\\*) . $file ;;
6494 *) . ./$file ;;
6495 esac
6496
6497 # Transform arg to wrapped name.
6498 file="$progdir/$program"
6499 fi
6500 ;;
6501 esac
6502 # Quote arguments (to preserve shell metacharacters).
6503 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
6504 args="$args \"$file\""
6505 done
6506
6507 if test -z "$run"; then
6508 if test -n "$shlibpath_var"; then
6509 # Export the shlibpath_var.
6510 eval "export $shlibpath_var"
6511 fi
6512
6513 # Restore saved environment variables
6514 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6515 do
6516 eval "if test \"\${save_$lt_var+set}\" = set; then
6517 $lt_var=\$save_$lt_var; export $lt_var
6518 fi"
6519 done
6520
6521 # Now prepare to actually exec the command.
6522 exec_cmd="\$cmd$args"
6523 else
6524 # Display what would be done.
6525 if test -n "$shlibpath_var"; then
6526 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6527 $echo "export $shlibpath_var"
6528 fi
6529 $echo "$cmd$args"
6530 exit $EXIT_SUCCESS
6531 fi
6532 ;;
6533
6534 # libtool clean and uninstall mode
6535 clean | uninstall)
6536 modename="$modename: $mode"
6537 rm="$nonopt"
6538 files=
6539 rmforce=
6540 exit_status=0
6541
6542 # This variable tells wrapper scripts just to set variables rather
6543 # than running their programs.
6544 libtool_install_magic="$magic"
6545
6546 for arg
6547 do
6548 case $arg in
6549 -f) rm="$rm $arg"; rmforce=yes ;;
6550 -*) rm="$rm $arg" ;;
6551 *) files="$files $arg" ;;
6552 esac
6553 done
6554
6555 if test -z "$rm"; then
6556 $echo "$modename: you must specify an RM program" 1>&2
6557 $echo "$help" 1>&2
6558 exit $EXIT_FAILURE
6559 fi
6560
6561 rmdirs=
6562
6563 origobjdir="$objdir"
6564 for file in $files; do
6565 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6566 if test "X$dir" = "X$file"; then
6567 dir=.
6568 objdir="$origobjdir"
6569 else
6570 objdir="$dir/$origobjdir"
6571 fi
6572 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6573 test "$mode" = uninstall && objdir="$dir"
6574
6575 # Remember objdir for removal later, being careful to avoid duplicates
6576 if test "$mode" = clean; then
6577 case " $rmdirs " in
6578 *" $objdir "*) ;;
6579 *) rmdirs="$rmdirs $objdir" ;;
6580 esac
6581 fi
6582
6583 # Don't error if the file doesn't exist and rm -f was used.
6584 if (test -L "$file") >/dev/null 2>&1 \
6585 || (test -h "$file") >/dev/null 2>&1 \
6586 || test -f "$file"; then
6587 :
6588 elif test -d "$file"; then
6589 exit_status=1
6590 continue
6591 elif test "$rmforce" = yes; then
6592 continue
6593 fi
6594
6595 rmfiles="$file"
6596
6597 case $name in
6598 *.la)
6599 # Possibly a libtool archive, so verify it.
6600 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6601 . $dir/$name
6602
6603 # Delete the libtool libraries and symlinks.
6604 for n in $library_names; do
6605 rmfiles="$rmfiles $objdir/$n"
6606 done
6607 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6608
6609 case "$mode" in
6610 clean)
6611 case " $library_names " in
6612 # " " in the beginning catches empty $dlname
6613 *" $dlname "*) ;;
6614 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6615 esac
6616 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6617 ;;
6618 uninstall)
6619 if test -n "$library_names"; then
6620 # Do each command in the postuninstall commands.
6621 cmds=$postuninstall_cmds
6622 save_ifs="$IFS"; IFS='~'
6623 for cmd in $cmds; do
6624 IFS="$save_ifs"
6625 eval cmd=\"$cmd\"
6626 $show "$cmd"
6627 $run eval "$cmd"
6628 if test "$?" -ne 0 && test "$rmforce" != yes; then
6629 exit_status=1
6630 fi
6631 done
6632 IFS="$save_ifs"
6633 fi
6634
6635 if test -n "$old_library"; then
6636 # Do each command in the old_postuninstall commands.
6637 cmds=$old_postuninstall_cmds
6638 save_ifs="$IFS"; IFS='~'
6639 for cmd in $cmds; do
6640 IFS="$save_ifs"
6641 eval cmd=\"$cmd\"
6642 $show "$cmd"
6643 $run eval "$cmd"
6644 if test "$?" -ne 0 && test "$rmforce" != yes; then
6645 exit_status=1
6646 fi
6647 done
6648 IFS="$save_ifs"
6649 fi
6650 # FIXME: should reinstall the best remaining shared library.
6651 ;;
6652 esac
6653 fi
6654 ;;
6655
6656 *.lo)
6657 # Possibly a libtool object, so verify it.
6658 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6659
6660 # Read the .lo file
6661 . $dir/$name
6662
6663 # Add PIC object to the list of files to remove.
6664 if test -n "$pic_object" \
6665 && test "$pic_object" != none; then
6666 rmfiles="$rmfiles $dir/$pic_object"
6667 fi
6668
6669 # Add non-PIC object to the list of files to remove.
6670 if test -n "$non_pic_object" \
6671 && test "$non_pic_object" != none; then
6672 rmfiles="$rmfiles $dir/$non_pic_object"
6673 fi
6674 fi
6675 ;;
6676
6677 *)
6678 if test "$mode" = clean ; then
6679 noexename=$name
6680 case $file in
6681 *.exe)
6682 file=`$echo $file|${SED} 's,.exe$,,'`
6683 noexename=`$echo $name|${SED} 's,.exe$,,'`
6684 # $file with .exe has already been added to rmfiles,
6685 # add $file without .exe
6686 rmfiles="$rmfiles $file"
6687 ;;
6688 esac
6689 # Do a test to see if this is a libtool program.
6690 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6691 relink_command=
6692 . $dir/$noexename
6693
6694 # note $name still contains .exe if it was in $file originally
6695 # as does the version of $file that was added into $rmfiles
6696 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
6697 if test "$fast_install" = yes && test -n "$relink_command"; then
6698 rmfiles="$rmfiles $objdir/lt-$name"
6699 fi
6700 if test "X$noexename" != "X$name" ; then
6701 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
6702 fi
6703 fi
6704 fi
6705 ;;
6706 esac
6707 $show "$rm $rmfiles"
6708 $run $rm $rmfiles || exit_status=1
6709 done
6710 objdir="$origobjdir"
6711
6712 # Try to remove the ${objdir}s in the directories where we deleted files
6713 for dir in $rmdirs; do
6714 if test -d "$dir"; then
6715 $show "rmdir $dir"
6716 $run rmdir $dir >/dev/null 2>&1
6717 fi
6718 done
6719
6720 exit $exit_status
6721 ;;
6722
6723 "")
6724 $echo "$modename: you must specify a MODE" 1>&2
6725 $echo "$generic_help" 1>&2
6726 exit $EXIT_FAILURE
6727 ;;
6728 esac
6729
6730 if test -z "$exec_cmd"; then
6731 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6732 $echo "$generic_help" 1>&2
6733 exit $EXIT_FAILURE
6734 fi
6735 fi # test -z "$show_help"
6736
6737 if test -n "$exec_cmd"; then
6738 eval exec $exec_cmd
6739 exit $EXIT_FAILURE
6740 fi
6741
6742 # We need to display help for each of the modes.
6743 case $mode in
6744 "") $echo \
6745 "Usage: $modename [OPTION]... [MODE-ARG]...
6746
6747 Provide generalized library-building support services.
6748
6749 --config show all configuration variables
6750 --debug enable verbose shell tracing
6751 -n, --dry-run display commands without modifying any files
6752 --features display basic configuration information and exit
6753 --finish same as \`--mode=finish'
6754 --help display this help message and exit
6755 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6756 --quiet same as \`--silent'
6757 --silent don't print informational messages
6758 --tag=TAG use configuration variables from tag TAG
6759 --version print version information
6760
6761 MODE must be one of the following:
6762
6763 clean remove files from the build directory
6764 compile compile a source file into a libtool object
6765 execute automatically set library path, then run a program
6766 finish complete the installation of libtool libraries
6767 install install libraries or executables
6768 link create a library or an executable
6769 uninstall remove libraries from an installed directory
6770
6771 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6772 a more detailed description of MODE.
6773
6774 Report bugs to <bug-libtool@gnu.org>."
6775 exit $EXIT_SUCCESS
6776 ;;
6777
6778 clean)
6779 $echo \
6780 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6781
6782 Remove files from the build directory.
6783
6784 RM is the name of the program to use to delete files associated with each FILE
6785 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6786 to RM.
6787
6788 If FILE is a libtool library, object or program, all the files associated
6789 with it are deleted. Otherwise, only FILE itself is deleted using RM."
6790 ;;
6791
6792 compile)
6793 $echo \
6794 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6795
6796 Compile a source file into a libtool library object.
6797
6798 This mode accepts the following additional options:
6799
6800 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6801 -prefer-pic try to building PIC objects only
6802 -prefer-non-pic try to building non-PIC objects only
6803 -static always build a \`.o' file suitable for static linking
6804
6805 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6806 from the given SOURCEFILE.
6807
6808 The output file name is determined by removing the directory component from
6809 SOURCEFILE, then substituting the C source code suffix \`.c' with the
6810 library object suffix, \`.lo'."
6811 ;;
6812
6813 execute)
6814 $echo \
6815 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6816
6817 Automatically set library path, then run a program.
6818
6819 This mode accepts the following additional options:
6820
6821 -dlopen FILE add the directory containing FILE to the library path
6822
6823 This mode sets the library path environment variable according to \`-dlopen'
6824 flags.
6825
6826 If any of the ARGS are libtool executable wrappers, then they are translated
6827 into their corresponding uninstalled binary, and any of their required library
6828 directories are added to the library path.
6829
6830 Then, COMMAND is executed, with ARGS as arguments."
6831 ;;
6832
6833 finish)
6834 $echo \
6835 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6836
6837 Complete the installation of libtool libraries.
6838
6839 Each LIBDIR is a directory that contains libtool libraries.
6840
6841 The commands that this mode executes may require superuser privileges. Use
6842 the \`--dry-run' option if you just want to see what would be executed."
6843 ;;
6844
6845 install)
6846 $echo \
6847 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6848
6849 Install executables or libraries.
6850
6851 INSTALL-COMMAND is the installation command. The first component should be
6852 either the \`install' or \`cp' program.
6853
6854 The rest of the components are interpreted as arguments to that command (only
6855 BSD-compatible install options are recognized)."
6856 ;;
6857
6858 link)
6859 $echo \
6860 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6861
6862 Link object files or libraries together to form another library, or to
6863 create an executable program.
6864
6865 LINK-COMMAND is a command using the C compiler that you would use to create
6866 a program from several object files.
6867
6868 The following components of LINK-COMMAND are treated specially:
6869
6870 -all-static do not do any dynamic linking at all
6871 -avoid-version do not add a version suffix if possible
6872 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6873 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6874 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6875 -export-symbols SYMFILE
6876 try to export only the symbols listed in SYMFILE
6877 -export-symbols-regex REGEX
6878 try to export only the symbols matching REGEX
6879 -LLIBDIR search LIBDIR for required installed libraries
6880 -lNAME OUTPUT-FILE requires the installed library libNAME
6881 -module build a library that can dlopened
6882 -no-fast-install disable the fast-install mode
6883 -no-install link a not-installable executable
6884 -no-undefined declare that a library does not refer to external symbols
6885 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6886 -objectlist FILE Use a list of object files found in FILE to specify objects
6887 -precious-files-regex REGEX
6888 don't remove output files matching REGEX
6889 -release RELEASE specify package release information
6890 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6891 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6892 -static do not do any dynamic linking of uninstalled libtool libraries
6893 -static-libtool-libs
6894 do not do any dynamic linking of libtool libraries
6895 -version-info CURRENT[:REVISION[:AGE]]
6896 specify library version info [each variable defaults to 0]
6897
6898 All other options (arguments beginning with \`-') are ignored.
6899
6900 Every other argument is treated as a filename. Files ending in \`.la' are
6901 treated as uninstalled libtool libraries, other files are standard or library
6902 object files.
6903
6904 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6905 only library objects (\`.lo' files) may be specified, and \`-rpath' is
6906 required, except when creating a convenience library.
6907
6908 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6909 using \`ar' and \`ranlib', or on Windows using \`lib'.
6910
6911 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6912 is created, otherwise an executable program is created."
6913 ;;
6914
6915 uninstall)
6916 $echo \
6917 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6918
6919 Remove libraries from an installation directory.
6920
6921 RM is the name of the program to use to delete files associated with each FILE
6922 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6923 to RM.
6924
6925 If FILE is a libtool library, all the files associated with it are deleted.
6926 Otherwise, only FILE itself is deleted using RM."
6927 ;;
6928
6929 *)
6930 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6931 $echo "$help" 1>&2
6932 exit $EXIT_FAILURE
6933 ;;
6934 esac
6935
6936 $echo
6937 $echo "Try \`$modename --help' for more information about other modes."
6938
6939 exit $?
6940
6941 # The TAGs below are defined such that we never get into a situation
6942 # in which we disable both kinds of libraries. Given conflicting
6943 # choices, we go for a static library, that is the most portable,
6944 # since we can't tell whether shared libraries were disabled because
6945 # the user asked for that or because the platform doesn't support
6946 # them. This is particularly important on AIX, because we don't
6947 # support having both static and shared libraries enabled at the same
6948 # time on that platform, so we default to a shared-only configuration.
6949 # If a disable-shared tag is given, we'll fallback to a static-only
6950 # configuration. But we'll never go from static-only to shared-only.
6951
6952 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6953 disable_libs=shared
6954 # ### END LIBTOOL TAG CONFIG: disable-shared
6955
6956 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
6957 disable_libs=static
6958 # ### END LIBTOOL TAG CONFIG: disable-static
6959
6960 # Local Variables:
6961 # mode:shell-script
6962 # sh-indentation:2
6963 # End:
+0
-367
missing less more
0 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2006-05-10.23
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
6 # Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
23
24 # As a special exception to the GNU General Public License, if you
25 # distribute this file as part of a program that contains a
26 # configuration script generated by Autoconf, you may include it under
27 # the same distribution terms that you use for the rest of that program.
28
29 if test $# -eq 0; then
30 echo 1>&2 "Try \`$0 --help' for more information"
31 exit 1
32 fi
33
34 run=:
35 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
36 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
37
38 # In the cases where this matters, `missing' is being run in the
39 # srcdir already.
40 if test -f configure.ac; then
41 configure_ac=configure.ac
42 else
43 configure_ac=configure.in
44 fi
45
46 msg="missing on your system"
47
48 case $1 in
49 --run)
50 # Try to run requested program, and just exit if it succeeds.
51 run=
52 shift
53 "$@" && exit 0
54 # Exit code 63 means version mismatch. This often happens
55 # when the user try to use an ancient version of a tool on
56 # a file that requires a minimum version. In this case we
57 # we should proceed has if the program had been absent, or
58 # if --run hadn't been passed.
59 if test $? = 63; then
60 run=:
61 msg="probably too old"
62 fi
63 ;;
64
65 -h|--h|--he|--hel|--help)
66 echo "\
67 $0 [OPTION]... PROGRAM [ARGUMENT]...
68
69 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
70 error status if there is no known handling for PROGRAM.
71
72 Options:
73 -h, --help display this help and exit
74 -v, --version output version information and exit
75 --run try to run the given command, and emulate it if it fails
76
77 Supported PROGRAM values:
78 aclocal touch file \`aclocal.m4'
79 autoconf touch file \`configure'
80 autoheader touch file \`config.h.in'
81 autom4te touch the output file, or create a stub one
82 automake touch all \`Makefile.in' files
83 bison create \`y.tab.[ch]', if possible, from existing .[ch]
84 flex create \`lex.yy.c', if possible, from existing .c
85 help2man touch the output file
86 lex create \`lex.yy.c', if possible, from existing .c
87 makeinfo touch the output file
88 tar try tar, gnutar, gtar, then tar without non-portable flags
89 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
90
91 Send bug reports to <bug-automake@gnu.org>."
92 exit $?
93 ;;
94
95 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
96 echo "missing $scriptversion (GNU Automake)"
97 exit $?
98 ;;
99
100 -*)
101 echo 1>&2 "$0: Unknown \`$1' option"
102 echo 1>&2 "Try \`$0 --help' for more information"
103 exit 1
104 ;;
105
106 esac
107
108 # Now exit if we have it, but it failed. Also exit now if we
109 # don't have it and --version was passed (most likely to detect
110 # the program).
111 case $1 in
112 lex|yacc)
113 # Not GNU programs, they don't have --version.
114 ;;
115
116 tar)
117 if test -n "$run"; then
118 echo 1>&2 "ERROR: \`tar' requires --run"
119 exit 1
120 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
121 exit 1
122 fi
123 ;;
124
125 *)
126 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
127 # We have it, but it failed.
128 exit 1
129 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
130 # Could not run --version or --help. This is probably someone
131 # running `$TOOL --version' or `$TOOL --help' to check whether
132 # $TOOL exists and not knowing $TOOL uses missing.
133 exit 1
134 fi
135 ;;
136 esac
137
138 # If it does not exist, or fails to run (possibly an outdated version),
139 # try to emulate it.
140 case $1 in
141 aclocal*)
142 echo 1>&2 "\
143 WARNING: \`$1' is $msg. You should only need it if
144 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
145 to install the \`Automake' and \`Perl' packages. Grab them from
146 any GNU archive site."
147 touch aclocal.m4
148 ;;
149
150 autoconf)
151 echo 1>&2 "\
152 WARNING: \`$1' is $msg. You should only need it if
153 you modified \`${configure_ac}'. You might want to install the
154 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
155 archive site."
156 touch configure
157 ;;
158
159 autoheader)
160 echo 1>&2 "\
161 WARNING: \`$1' is $msg. You should only need it if
162 you modified \`acconfig.h' or \`${configure_ac}'. You might want
163 to install the \`Autoconf' and \`GNU m4' packages. Grab them
164 from any GNU archive site."
165 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
166 test -z "$files" && files="config.h"
167 touch_files=
168 for f in $files; do
169 case $f in
170 *:*) touch_files="$touch_files "`echo "$f" |
171 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
172 *) touch_files="$touch_files $f.in";;
173 esac
174 done
175 touch $touch_files
176 ;;
177
178 automake*)
179 echo 1>&2 "\
180 WARNING: \`$1' is $msg. You should only need it if
181 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
182 You might want to install the \`Automake' and \`Perl' packages.
183 Grab them from any GNU archive site."
184 find . -type f -name Makefile.am -print |
185 sed 's/\.am$/.in/' |
186 while read f; do touch "$f"; done
187 ;;
188
189 autom4te)
190 echo 1>&2 "\
191 WARNING: \`$1' is needed, but is $msg.
192 You might have modified some files without having the
193 proper tools for further handling them.
194 You can get \`$1' as part of \`Autoconf' from any GNU
195 archive site."
196
197 file=`echo "$*" | sed -n "$sed_output"`
198 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
199 if test -f "$file"; then
200 touch $file
201 else
202 test -z "$file" || exec >$file
203 echo "#! /bin/sh"
204 echo "# Created by GNU Automake missing as a replacement of"
205 echo "# $ $@"
206 echo "exit 0"
207 chmod +x $file
208 exit 1
209 fi
210 ;;
211
212 bison|yacc)
213 echo 1>&2 "\
214 WARNING: \`$1' $msg. You should only need it if
215 you modified a \`.y' file. You may need the \`Bison' package
216 in order for those modifications to take effect. You can get
217 \`Bison' from any GNU archive site."
218 rm -f y.tab.c y.tab.h
219 if test $# -ne 1; then
220 eval LASTARG="\${$#}"
221 case $LASTARG in
222 *.y)
223 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
224 if test -f "$SRCFILE"; then
225 cp "$SRCFILE" y.tab.c
226 fi
227 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
228 if test -f "$SRCFILE"; then
229 cp "$SRCFILE" y.tab.h
230 fi
231 ;;
232 esac
233 fi
234 if test ! -f y.tab.h; then
235 echo >y.tab.h
236 fi
237 if test ! -f y.tab.c; then
238 echo 'main() { return 0; }' >y.tab.c
239 fi
240 ;;
241
242 lex|flex)
243 echo 1>&2 "\
244 WARNING: \`$1' is $msg. You should only need it if
245 you modified a \`.l' file. You may need the \`Flex' package
246 in order for those modifications to take effect. You can get
247 \`Flex' from any GNU archive site."
248 rm -f lex.yy.c
249 if test $# -ne 1; then
250 eval LASTARG="\${$#}"
251 case $LASTARG in
252 *.l)
253 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
254 if test -f "$SRCFILE"; then
255 cp "$SRCFILE" lex.yy.c
256 fi
257 ;;
258 esac
259 fi
260 if test ! -f lex.yy.c; then
261 echo 'main() { return 0; }' >lex.yy.c
262 fi
263 ;;
264
265 help2man)
266 echo 1>&2 "\
267 WARNING: \`$1' is $msg. You should only need it if
268 you modified a dependency of a manual page. You may need the
269 \`Help2man' package in order for those modifications to take
270 effect. You can get \`Help2man' from any GNU archive site."
271
272 file=`echo "$*" | sed -n "$sed_output"`
273 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
274 if test -f "$file"; then
275 touch $file
276 else
277 test -z "$file" || exec >$file
278 echo ".ab help2man is required to generate this page"
279 exit 1
280 fi
281 ;;
282
283 makeinfo)
284 echo 1>&2 "\
285 WARNING: \`$1' is $msg. You should only need it if
286 you modified a \`.texi' or \`.texinfo' file, or any other file
287 indirectly affecting the aspect of the manual. The spurious
288 call might also be the consequence of using a buggy \`make' (AIX,
289 DU, IRIX). You might want to install the \`Texinfo' package or
290 the \`GNU make' package. Grab either from any GNU archive site."
291 # The file to touch is that specified with -o ...
292 file=`echo "$*" | sed -n "$sed_output"`
293 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
294 if test -z "$file"; then
295 # ... or it is the one specified with @setfilename ...
296 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
297 file=`sed -n '
298 /^@setfilename/{
299 s/.* \([^ ]*\) *$/\1/
300 p
301 q
302 }' $infile`
303 # ... or it is derived from the source name (dir/f.texi becomes f.info)
304 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
305 fi
306 # If the file does not exist, the user really needs makeinfo;
307 # let's fail without touching anything.
308 test -f $file || exit 1
309 touch $file
310 ;;
311
312 tar)
313 shift
314
315 # We have already tried tar in the generic part.
316 # Look for gnutar/gtar before invocation to avoid ugly error
317 # messages.
318 if (gnutar --version > /dev/null 2>&1); then
319 gnutar "$@" && exit 0
320 fi
321 if (gtar --version > /dev/null 2>&1); then
322 gtar "$@" && exit 0
323 fi
324 firstarg="$1"
325 if shift; then
326 case $firstarg in
327 *o*)
328 firstarg=`echo "$firstarg" | sed s/o//`
329 tar "$firstarg" "$@" && exit 0
330 ;;
331 esac
332 case $firstarg in
333 *h*)
334 firstarg=`echo "$firstarg" | sed s/h//`
335 tar "$firstarg" "$@" && exit 0
336 ;;
337 esac
338 fi
339
340 echo 1>&2 "\
341 WARNING: I can't seem to be able to run \`tar' with the given arguments.
342 You may want to install GNU tar or Free paxutils, or check the
343 command line arguments."
344 exit 1
345 ;;
346
347 *)
348 echo 1>&2 "\
349 WARNING: \`$1' is needed, and is $msg.
350 You might have modified some files without having the
351 proper tools for further handling them. Check the \`README' file,
352 it often tells you about the needed prerequisites for installing
353 this package. You may also peek at any GNU archive site, in case
354 some other package would contain this missing \`$1' program."
355 exit 1
356 ;;
357 esac
358
359 exit 0
360
361 # Local variables:
362 # eval: (add-hook 'write-file-hooks 'time-stamp)
363 # time-stamp-start: "scriptversion="
364 # time-stamp-format: "%:y-%02m-%02d.%02H"
365 # time-stamp-end: "$"
366 # End:
+0
-161
mkinstalldirs less more
0 #! /bin/sh
1 # mkinstalldirs --- make directory hierarchy
2
3 scriptversion=2006-05-11.19
4
5 # Original author: Noah Friedman <friedman@prep.ai.mit.edu>
6 # Created: 1993-05-16
7 # Public domain.
8 #
9 # This file is maintained in Automake, please report
10 # bugs to <bug-automake@gnu.org> or send patches to
11 # <automake-patches@gnu.org>.
12
13 nl='
14 '
15 IFS=" "" $nl"
16 errstatus=0
17 dirmode=
18
19 usage="\
20 Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
21
22 Create each directory DIR (with mode MODE, if specified), including all
23 leading file name components.
24
25 Report bugs to <bug-automake@gnu.org>."
26
27 # process command line arguments
28 while test $# -gt 0 ; do
29 case $1 in
30 -h | --help | --h*) # -h for help
31 echo "$usage"
32 exit $?
33 ;;
34 -m) # -m PERM arg
35 shift
36 test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
37 dirmode=$1
38 shift
39 ;;
40 --version)
41 echo "$0 $scriptversion"
42 exit $?
43 ;;
44 --) # stop option processing
45 shift
46 break
47 ;;
48 -*) # unknown option
49 echo "$usage" 1>&2
50 exit 1
51 ;;
52 *) # first non-opt arg
53 break
54 ;;
55 esac
56 done
57
58 for file
59 do
60 if test -d "$file"; then
61 shift
62 else
63 break
64 fi
65 done
66
67 case $# in
68 0) exit 0 ;;
69 esac
70
71 # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
72 # mkdir -p a/c at the same time, both will detect that a is missing,
73 # one will create a, then the other will try to create a and die with
74 # a "File exists" error. This is a problem when calling mkinstalldirs
75 # from a parallel make. We use --version in the probe to restrict
76 # ourselves to GNU mkdir, which is thread-safe.
77 case $dirmode in
78 '')
79 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
80 echo "mkdir -p -- $*"
81 exec mkdir -p -- "$@"
82 else
83 # On NextStep and OpenStep, the `mkdir' command does not
84 # recognize any option. It will interpret all options as
85 # directories to create, and then abort because `.' already
86 # exists.
87 test -d ./-p && rmdir ./-p
88 test -d ./--version && rmdir ./--version
89 fi
90 ;;
91 *)
92 if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
93 test ! -d ./--version; then
94 echo "mkdir -m $dirmode -p -- $*"
95 exec mkdir -m "$dirmode" -p -- "$@"
96 else
97 # Clean up after NextStep and OpenStep mkdir.
98 for d in ./-m ./-p ./--version "./$dirmode";
99 do
100 test -d $d && rmdir $d
101 done
102 fi
103 ;;
104 esac
105
106 for file
107 do
108 case $file in
109 /*) pathcomp=/ ;;
110 *) pathcomp= ;;
111 esac
112 oIFS=$IFS
113 IFS=/
114 set fnord $file
115 shift
116 IFS=$oIFS
117
118 for d
119 do
120 test "x$d" = x && continue
121
122 pathcomp=$pathcomp$d
123 case $pathcomp in
124 -*) pathcomp=./$pathcomp ;;
125 esac
126
127 if test ! -d "$pathcomp"; then
128 echo "mkdir $pathcomp"
129
130 mkdir "$pathcomp" || lasterr=$?
131
132 if test ! -d "$pathcomp"; then
133 errstatus=$lasterr
134 else
135 if test ! -z "$dirmode"; then
136 echo "chmod $dirmode $pathcomp"
137 lasterr=
138 chmod "$dirmode" "$pathcomp" || lasterr=$?
139
140 if test ! -z "$lasterr"; then
141 errstatus=$lasterr
142 fi
143 fi
144 fi
145 fi
146
147 pathcomp=$pathcomp/
148 done
149 done
150
151 exit $errstatus
152
153 # Local Variables:
154 # mode: shell-script
155 # sh-indentation: 2
156 # eval: (add-hook 'write-file-hooks 'time-stamp)
157 # time-stamp-start: "scriptversion="
158 # time-stamp-format: "%:y-%02m-%02d.%02H"
159 # time-stamp-end: "$"
160 # End:
0 *.gmo
1 *.mo
2 *.pot
3 Makefile
4 Makefile.in
5 Makefile.in.in
6 POTFILES
7 messages
8 missing
9 notexist
0 2009-01-15 Daniel Nylander <po@danielnylander.se>
1
2 * sv.po: Added Swedish translation.
3
04 Sa Jan 10 13:49:40 CET 2009 Guido Günther <agx@sigxcpu.org>
15
26 * de.po: Add German translation
+0
-218
po/Makefile.in.in less more
0 # Makefile for program source directory in GNU NLS utilities package.
1 # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
2 # Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns@gmail.com>
3 #
4 # This file may be copied and used freely without restrictions. It may
5 # be used in projects which are not available under a GNU Public License,
6 # but which still want to provide support for the GNU gettext functionality.
7 #
8 # - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
9 # instead of PACKAGE and to look for po2tbl in ./ not in intl/
10 #
11 # - Modified by jacob berkman <jacob@ximian.com> to install
12 # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
13 #
14 # - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool
15 #
16 # We have the following line for use by intltoolize:
17 # INTLTOOL_MAKEFILE
18
19 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
20 PACKAGE = @PACKAGE@
21 VERSION = @VERSION@
22
23 SHELL = /bin/sh
24
25 srcdir = @srcdir@
26 top_srcdir = @top_srcdir@
27 top_builddir = @top_builddir@
28 VPATH = @srcdir@
29
30 prefix = @prefix@
31 exec_prefix = @exec_prefix@
32 datadir = @datadir@
33 datarootdir = @datarootdir@
34 libdir = @libdir@
35 DATADIRNAME = @DATADIRNAME@
36 itlocaledir = $(prefix)/$(DATADIRNAME)/locale
37 subdir = po
38 install_sh = @install_sh@
39 # Automake >= 1.8 provides @mkdir_p@.
40 # Until it can be supposed, use the safe fallback:
41 mkdir_p = $(install_sh) -d
42
43 INSTALL = @INSTALL@
44 INSTALL_DATA = @INSTALL_DATA@
45
46 GMSGFMT = @GMSGFMT@
47 MSGFMT = @MSGFMT@
48 XGETTEXT = @XGETTEXT@
49 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
50 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
51 MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
52 GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
53
54 ALL_LINGUAS = @ALL_LINGUAS@
55
56 PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi)
57
58 USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS`" -o -n "`echo $$ALINGUAS|grep ' ?$$lang ?'`"; then printf "$$lang "; fi; done; fi)
59
60 USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
61
62 POFILES=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
63
64 DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(POFILES)
65 EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS
66
67 POTFILES = \
68 # This comment gets stripped out
69
70 CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
71
72 .SUFFIXES:
73 .SUFFIXES: .po .pox .gmo .mo .msg .cat
74
75 .po.pox:
76 $(MAKE) $(GETTEXT_PACKAGE).pot
77 $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
78
79 .po.mo:
80 $(MSGFMT) -o $@ $<
81
82 .po.gmo:
83 file=`echo $* | sed 's,.*/,,'`.gmo \
84 && rm -f $$file && $(GMSGFMT) -o $$file $<
85
86 .po.cat:
87 sed -f ../intl/po2msg.sed < $< > $*.msg \
88 && rm -f $@ && gencat $@ $*.msg
89
90
91 all: all-@USE_NLS@
92
93 all-yes: $(CATALOGS)
94 all-no:
95
96 $(GETTEXT_PACKAGE).pot: $(POTFILES)
97 $(GENPOT)
98
99 install: install-data
100 install-data: install-data-@USE_NLS@
101 install-data-no: all
102 install-data-yes: all
103 $(mkdir_p) $(DESTDIR)$(itlocaledir)
104 linguas="$(USE_LINGUAS)"; \
105 for lang in $$linguas; do \
106 dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
107 $(mkdir_p) $$dir; \
108 if test -r $$lang.gmo; then \
109 $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
110 echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
111 else \
112 $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
113 echo "installing $(srcdir)/$$lang.gmo as" \
114 "$$dir/$(GETTEXT_PACKAGE).mo"; \
115 fi; \
116 if test -r $$lang.gmo.m; then \
117 $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
118 echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
119 else \
120 if test -r $(srcdir)/$$lang.gmo.m ; then \
121 $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
122 $$dir/$(GETTEXT_PACKAGE).mo.m; \
123 echo "installing $(srcdir)/$$lang.gmo.m as" \
124 "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
125 else \
126 true; \
127 fi; \
128 fi; \
129 done
130
131 # Empty stubs to satisfy archaic automake needs
132 dvi info tags TAGS ID:
133
134 # Define this as empty until I found a useful application.
135 install-exec installcheck:
136
137 uninstall:
138 linguas="$(USE_LINGUAS)"; \
139 for lang in $$linguas; do \
140 rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
141 rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
142 done
143
144 check: all $(GETTEXT_PACKAGE).pot
145 rm -f missing notexist
146 srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
147 if [ -r missing -o -r notexist ]; then \
148 exit 1; \
149 fi
150
151 mostlyclean:
152 rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
153 rm -f .intltool-merge-cache
154
155 clean: mostlyclean
156
157 distclean: clean
158 rm -f Makefile Makefile.in POTFILES stamp-it
159 rm -f *.mo *.msg *.cat *.cat.m *.gmo
160
161 maintainer-clean: distclean
162 @echo "This command is intended for maintainers to use;"
163 @echo "it deletes files that may require special tools to rebuild."
164 rm -f Makefile.in.in
165
166 distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
167 dist distdir: $(DISTFILES)
168 dists="$(DISTFILES)"; \
169 extra_dists="$(EXTRA_DISTFILES)"; \
170 for file in $$extra_dists; do \
171 test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
172 done; \
173 for file in $$dists; do \
174 test -f $$file || file="$(srcdir)/$$file"; \
175 ln $$file $(distdir) 2> /dev/null \
176 || cp -p $$file $(distdir); \
177 done
178
179 update-po: Makefile
180 $(MAKE) $(GETTEXT_PACKAGE).pot
181 tmpdir=`pwd`; \
182 linguas="$(USE_LINGUAS)"; \
183 for lang in $$linguas; do \
184 echo "$$lang:"; \
185 result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
186 if $$result; then \
187 if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
188 rm -f $$tmpdir/$$lang.new.po; \
189 else \
190 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
191 :; \
192 else \
193 echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
194 rm -f $$tmpdir/$$lang.new.po; \
195 exit 1; \
196 fi; \
197 fi; \
198 else \
199 echo "msgmerge for $$lang.gmo failed!"; \
200 rm -f $$tmpdir/$$lang.new.po; \
201 fi; \
202 done
203
204 Makefile POTFILES: stamp-it
205 @if test ! -f $@; then \
206 rm -f stamp-it; \
207 $(MAKE) stamp-it; \
208 fi
209
210 stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
211 cd $(top_builddir) \
212 && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
213 $(SHELL) ./config.status
214
215 # Tell versions [3.59,3.63) of GNU make not to export all variables.
216 # Otherwise a system limit (for SysV at least) may be exceeded.
217 .NOEXPORT:
0 # SOME DESCRIPTIVE TITLE.
1 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2 # This file is distributed under the same license as the PACKAGE package.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2009-01-09 22:20+0100\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=CHARSET\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
18
19 #: ../src/krb5-auth-dialog.glade.h:1 ../src/krb5-auth-dialog.c:893
20 #: ../src/krb5-auth-dialog.desktop.in.h:2
21 msgid "Network Authentication"
22 msgstr ""
23
24 #: ../src/krb5-auth-dialog.glade.h:2
25 msgid "_Password:"
26 msgstr ""
27
28 #: ../src/krb5-auth-dialog.glade.h:3
29 msgid "_Renew Ticket"
30 msgstr ""
31
32 #: ../src/krb5-auth-dialog.c:204 ../src/krb5-auth-applet.c:53
33 #, c-format
34 msgid "Your credentials expire in %d minute"
35 msgid_plural "Your credentials expire in %d minutes"
36 msgstr[0] ""
37 msgstr[1] ""
38
39 #: ../src/krb5-auth-dialog.c:209 ../src/krb5-auth-applet.c:58
40 msgid "Your credentials have expired"
41 msgstr ""
42
43 #: ../src/krb5-auth-dialog.c:280
44 msgid "Please enter your Kerberos password."
45 msgstr ""
46
47 #: ../src/krb5-auth-dialog.c:291
48 #, c-format
49 msgid "Please enter the password for '%s'"
50 msgstr ""
51
52 #: ../src/krb5-auth-dialog.c:310
53 msgid "The password you entered is invalid"
54 msgstr ""
55
56 #: ../src/krb5-auth-dialog.c:765
57 #, c-format
58 msgid "Couldn't acquire kerberos ticket: '%s'"
59 msgstr ""
60
61 #: ../src/dummy-strings.c:13
62 msgid "Can't read ticket file"
63 msgstr ""
64
65 #. test1.et:krb:KRB_MK_AP_TKFIL
66 #: ../src/dummy-strings.c:14
67 msgid "Can't find ticket or TGT"
68 msgstr ""
69
70 #. test1.et:krb:KRB_MK_AP_NOTKT
71 #: ../src/dummy-strings.c:15
72 msgid "TGT expired"
73 msgstr ""
74
75 #. test1.et:krb:KRB_MK_AP_TGTEXP
76 #: ../src/dummy-strings.c:16
77 msgid "Can't decode authenticator"
78 msgstr ""
79
80 #. test1.et:krb:KRB_RD_AP_UNDEC
81 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BAD_INTEGRITY
82 #: ../src/dummy-strings.c:17 ../src/dummy-strings.c:176
83 msgid "Ticket expired"
84 msgstr ""
85
86 #. test1.et:krb:KRB_RD_AP_EXP
87 #: ../src/dummy-strings.c:18
88 msgid "Repeated request"
89 msgstr ""
90
91 #. test1.et:krb:KRB_RD_AP_REPEAT
92 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_REPEAT
93 #: ../src/dummy-strings.c:19 ../src/dummy-strings.c:179
94 msgid "The ticket isn't for us"
95 msgstr ""
96
97 #. test1.et:krb:KRB_RD_AP_NOT_US
98 #: ../src/dummy-strings.c:20
99 msgid "Request is inconsistent"
100 msgstr ""
101
102 #. test1.et:krb:KRB_RD_AP_INCON
103 #: ../src/dummy-strings.c:21
104 msgid "Delta-T too big"
105 msgstr ""
106
107 #. test1.et:krb:KRB_RD_AP_TIME
108 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_SKEW
109 #: ../src/dummy-strings.c:22 ../src/dummy-strings.c:182
110 msgid "Incorrect net address"
111 msgstr ""
112
113 #. test1.et:krb:KRB_RD_AP_BADD
114 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADADDR
115 #: ../src/dummy-strings.c:23 ../src/dummy-strings.c:183
116 msgid "Protocol version mismatch"
117 msgstr ""
118
119 #. test1.et:krb:KRB_RD_AP_VERSION
120 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADVERSION
121 #: ../src/dummy-strings.c:24 ../src/dummy-strings.c:184
122 msgid "Invalid message type"
123 msgstr ""
124
125 #. test1.et:krb:KRB_RD_AP_MSG_TYPE
126 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_MSG_TYPE
127 #: ../src/dummy-strings.c:25 ../src/dummy-strings.c:185
128 msgid "Message stream modified"
129 msgstr ""
130
131 #. test1.et:krb:KRB_RD_AP_MODIFIED
132 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_MODIFIED
133 #: ../src/dummy-strings.c:26 ../src/dummy-strings.c:186
134 msgid "Message out of order"
135 msgstr ""
136
137 #. test1.et:krb:KRB_RD_AP_ORDER
138 #: ../src/dummy-strings.c:27
139 msgid "Unauthorized request"
140 msgstr ""
141
142 #. test1.et:krb:KRB_RD_AP_UNAUTHOR
143 #: ../src/dummy-strings.c:28
144 msgid "Current password is null"
145 msgstr ""
146
147 #. test1.et:krb:KRB_GT_PW_NULL
148 #: ../src/dummy-strings.c:29
149 msgid "Incorrect current password"
150 msgstr ""
151
152 #. test1.et:krb:KRB_GT_PW_BADPW
153 #: ../src/dummy-strings.c:30
154 msgid "Protocol error"
155 msgstr ""
156
157 #. test1.et:krb:KRB_GT_PW_PROT
158 #: ../src/dummy-strings.c:31
159 msgid "Error returned by KDC"
160 msgstr ""
161
162 #. test1.et:krb:KRB_GT_PW_KDCERR
163 #: ../src/dummy-strings.c:32
164 msgid "Null ticket returned by KDC"
165 msgstr ""
166
167 #. test1.et:krb:KRB_GT_PW_NULLTKT
168 #: ../src/dummy-strings.c:33
169 msgid "Retry count exceeded"
170 msgstr ""
171
172 #. test1.et:krb:KRB_SKDC_RETRY
173 #: ../src/dummy-strings.c:34
174 msgid "Can't send request"
175 msgstr ""
176
177 #. test1.et:krb:KRB_SKDC_CANT
178 #: ../src/dummy-strings.c:35
179 msgid "Subsystem aborted"
180 msgstr ""
181
182 #. ss_err.et:ss:SS_ET_SUBSYSTEM_ABORTED
183 #: ../src/dummy-strings.c:36
184 msgid "Version mismatch"
185 msgstr ""
186
187 #. ss_err.et:ss:SS_ET_VERSION_MISMATCH
188 #: ../src/dummy-strings.c:37
189 msgid "No current invocation"
190 msgstr ""
191
192 #. ss_err.et:ss:SS_ET_NULL_INV
193 #: ../src/dummy-strings.c:38
194 msgid "No info directory"
195 msgstr ""
196
197 #. ss_err.et:ss:SS_ET_NO_INFO_DIR
198 #: ../src/dummy-strings.c:39
199 msgid "Command not found"
200 msgstr ""
201
202 #. ss_err.et:ss:SS_ET_COMMAND_NOT_FOUND
203 #: ../src/dummy-strings.c:40
204 msgid "Command line aborted"
205 msgstr ""
206
207 #. ss_err.et:ss:SS_ET_LINE_ABORTED
208 #: ../src/dummy-strings.c:41
209 msgid "End-of-file reached"
210 msgstr ""
211
212 #. ss_err.et:ss:SS_ET_EOF
213 #: ../src/dummy-strings.c:42
214 msgid "Permission denied"
215 msgstr ""
216
217 #. ss_err.et:ss:SS_ET_PERMISSION_DENIED
218 #: ../src/dummy-strings.c:43
219 msgid "Request table not found"
220 msgstr ""
221
222 #. ss_err.et:ss:SS_ET_TABLE_NOT_FOUND
223 #: ../src/dummy-strings.c:44
224 msgid "No info available"
225 msgstr ""
226
227 #. ss_err.et:ss:SS_ET_NO_HELP_FILE
228 #: ../src/dummy-strings.c:45
229 msgid "Shell escapes are disabled"
230 msgstr ""
231
232 #. ss_err.et:ss:SS_ET_ESCAPE_DISABLED
233 #: ../src/dummy-strings.c:46
234 msgid "Sorry, this request is not yet implemented"
235 msgstr ""
236
237 #. ss_err.et:ss:SS_ET_UNIMPLEMENTED
238 #: ../src/dummy-strings.c:47
239 msgid "Profile version 0.0"
240 msgstr ""
241
242 #. prof_err.et:prof:PROF_VERSION
243 #: ../src/dummy-strings.c:48
244 msgid "Bad magic value in profile_node"
245 msgstr ""
246
247 #. prof_err.et:prof:PROF_MAGIC_NODE
248 #: ../src/dummy-strings.c:49
249 msgid "Profile section not found"
250 msgstr ""
251
252 #. prof_err.et:prof:PROF_NO_SECTION
253 #: ../src/dummy-strings.c:50
254 msgid "Profile relation not found"
255 msgstr ""
256
257 #. prof_err.et:prof:PROF_NO_RELATION
258 #: ../src/dummy-strings.c:51
259 msgid "Attempt to add a relation to node which is not a section"
260 msgstr ""
261
262 #. prof_err.et:prof:PROF_ADD_NOT_SECTION
263 #: ../src/dummy-strings.c:52
264 msgid "A profile section header has a non-zero value"
265 msgstr ""
266
267 #. prof_err.et:prof:PROF_SECTION_WITH_VALUE
268 #: ../src/dummy-strings.c:53
269 msgid "Bad linked list in profile structures"
270 msgstr ""
271
272 #. prof_err.et:prof:PROF_BAD_LINK_LIST
273 #: ../src/dummy-strings.c:54
274 msgid "Bad group level in profile strctures"
275 msgstr ""
276
277 #. prof_err.et:prof:PROF_BAD_GROUP_LVL
278 #: ../src/dummy-strings.c:55
279 msgid "Bad parent pointer in profile strctures"
280 msgstr ""
281
282 #. prof_err.et:prof:PROF_BAD_PARENT_PTR
283 #: ../src/dummy-strings.c:56
284 msgid "Bad magic value in profile iterator"
285 msgstr ""
286
287 #. prof_err.et:prof:PROF_MAGIC_ITERATOR
288 #: ../src/dummy-strings.c:57
289 msgid "Can't set value on section node"
290 msgstr ""
291
292 #. prof_err.et:prof:PROF_SET_SECTION_VALUE
293 #: ../src/dummy-strings.c:58
294 msgid "Invalid argument passed to profile library"
295 msgstr ""
296
297 #. prof_err.et:prof:PROF_EINVAL
298 #: ../src/dummy-strings.c:59
299 msgid "Attempt to modify read-only profile"
300 msgstr ""
301
302 #. prof_err.et:prof:PROF_READ_ONLY
303 #: ../src/dummy-strings.c:60
304 msgid "Profile section header not at top level"
305 msgstr ""
306
307 #. prof_err.et:prof:PROF_SECTION_NOTOP
308 #: ../src/dummy-strings.c:61
309 msgid "Syntax error in profile section header"
310 msgstr ""
311
312 #. prof_err.et:prof:PROF_SECTION_SYNTAX
313 #: ../src/dummy-strings.c:62
314 msgid "Syntax error in profile relation"
315 msgstr ""
316
317 #. prof_err.et:prof:PROF_RELATION_SYNTAX
318 #: ../src/dummy-strings.c:63
319 msgid "Extra closing brace in profile"
320 msgstr ""
321
322 #. prof_err.et:prof:PROF_EXTRA_CBRACE
323 #: ../src/dummy-strings.c:64
324 msgid "Missing open brace in profile"
325 msgstr ""
326
327 #. prof_err.et:prof:PROF_MISSING_OBRACE
328 #: ../src/dummy-strings.c:65
329 msgid "Bad magic value in profile_t"
330 msgstr ""
331
332 #. prof_err.et:prof:PROF_MAGIC_PROFILE
333 #: ../src/dummy-strings.c:66
334 msgid "Bad magic value in profile_section_t"
335 msgstr ""
336
337 #. prof_err.et:prof:PROF_MAGIC_SECTION
338 #: ../src/dummy-strings.c:67
339 msgid "Iteration through all top level section not supported"
340 msgstr ""
341
342 #. prof_err.et:prof:PROF_TOPSECTION_ITER_NOSUPP
343 #: ../src/dummy-strings.c:68
344 msgid "Invalid profile_section object"
345 msgstr ""
346
347 #. prof_err.et:prof:PROF_INVALID_SECTION
348 #: ../src/dummy-strings.c:69
349 msgid "No more sections"
350 msgstr ""
351
352 #. prof_err.et:prof:PROF_END_OF_SECTIONS
353 #: ../src/dummy-strings.c:70
354 msgid "Bad nameset passed to query routine"
355 msgstr ""
356
357 #. prof_err.et:prof:PROF_BAD_NAMESET
358 #: ../src/dummy-strings.c:71
359 msgid "No profile file open"
360 msgstr ""
361
362 #. prof_err.et:prof:PROF_NO_PROFILE
363 #: ../src/dummy-strings.c:72
364 msgid "Bad magic value in profile_file_t"
365 msgstr ""
366
367 #. prof_err.et:prof:PROF_MAGIC_FILE
368 #: ../src/dummy-strings.c:73
369 msgid "Couldn't open profile file"
370 msgstr ""
371
372 #. prof_err.et:prof:PROF_FAIL_OPEN
373 #: ../src/dummy-strings.c:74
374 msgid "Section already exists"
375 msgstr ""
376
377 #. prof_err.et:prof:PROF_EXISTS
378 #: ../src/dummy-strings.c:75
379 msgid "Invalid boolean value"
380 msgstr ""
381
382 #. prof_err.et:prof:PROF_BAD_BOOLEAN
383 #: ../src/dummy-strings.c:76
384 msgid "Invalid integer value"
385 msgstr ""
386
387 #. prof_err.et:prof:PROF_BAD_INTEGER
388 #: ../src/dummy-strings.c:77
389 msgid "Bad magic value in profile_file_data_t"
390 msgstr ""
391
392 #. prof_err.et:prof:PROF_MAGIC_FILE_DATA
393 #: ../src/dummy-strings.c:78
394 msgid "Failed to unlock or grant streams pty."
395 msgstr ""
396
397 #. pty_err.et:pty:PTY_GETPTY_STREAMS
398 #: ../src/dummy-strings.c:79
399 msgid "fstat of master pty failed"
400 msgstr ""
401
402 #. pty_err.et:pty:PTY_GETPTY_FSTAT
403 #: ../src/dummy-strings.c:80
404 msgid "All terminal ports in use"
405 msgstr ""
406
407 #. pty_err.et:pty:PTY_GETPTY_NOPTY
408 #: ../src/dummy-strings.c:81
409 msgid "buffer to hold slave pty name is too short"
410 msgstr ""
411
412 #. pty_err.et:pty:PTY_GETPTY_SLAVE_TOOLONG
413 #: ../src/dummy-strings.c:82
414 msgid "Failed to open slave side of pty"
415 msgstr ""
416
417 #. pty_err.et:pty:PTY_OPEN_SLAVE_OPENFAIL
418 #: ../src/dummy-strings.c:83
419 msgid "Failed to chmod slave side of pty"
420 msgstr ""
421
422 #. pty_err.et:pty:PTY_OPEN_SLAVE_CHMODFAIL
423 #: ../src/dummy-strings.c:84
424 msgid "Unable to set controlling terminal"
425 msgstr ""
426
427 #. pty_err.et:pty:PTY_OPEN_SLAVE_NOCTTY
428 #: ../src/dummy-strings.c:85
429 msgid "Failed to chown slave side of pty"
430 msgstr ""
431
432 #. pty_err.et:pty:PTY_OPEN_SLAVE_CHOWNFAIL
433 #: ../src/dummy-strings.c:86
434 msgid "Call to line_push failed to push streams on slave pty"
435 msgstr ""
436
437 #. pty_err.et:pty:PTY_OPEN_SLAVE_LINE_PUSHFAIL
438 #: ../src/dummy-strings.c:87
439 msgid "Failed to push stream on slave side of pty"
440 msgstr ""
441
442 #. pty_err.et:pty:PTY_OPEN_SLAVE_PUSH_FAIL
443 #: ../src/dummy-strings.c:88
444 msgid "Failed to revoke slave side of pty"
445 msgstr ""
446
447 #. pty_err.et:pty:PTY_OPEN_SLAVE_REVOKEFAIL
448 #: ../src/dummy-strings.c:89
449 msgid "bad process type passed to pty_update_utmp"
450 msgstr ""
451
452 #. pty_err.et:pty:PTY_UPDATE_UTMP_PROCTYPE_INVALID
453 #: ../src/dummy-strings.c:90
454 msgid "Slave pty name is zero-length"
455 msgstr ""
456
457 #. pty_err.et:pty:PTY_OPEN_SLAVE_TOOSHORT
458 #: ../src/dummy-strings.c:91
459 msgid "Usage: kpasswd [principal_name]."
460 msgstr ""
461
462 #. kpasswd_strings.et:kpws:KPW_STR_USAGE
463 #: ../src/dummy-strings.c:92
464 #, c-format
465 msgid "Kerberos principal name %s is not recognized."
466 msgstr ""
467
468 #. kpasswd_strings.et:kpws:KPW_STR_PRIN_UNKNOWN
469 #: ../src/dummy-strings.c:93
470 msgid "while reading principal name from credential cache."
471 msgstr ""
472
473 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_LOOKING_AT_CC
474 #: ../src/dummy-strings.c:94
475 msgid "Old Kerberos password is incorrect. Please try again."
476 msgstr ""
477
478 #. kpasswd_strings.et:kpws:KPW_STR_OLD_PASSWORD_INCORRECT
479 #: ../src/dummy-strings.c:95
480 #, c-format
481 msgid ""
482 "Cannot establish a session with the Kerberos administrative server for\n"
483 "realm %s. %s."
484 msgstr ""
485
486 #. kpasswd_strings.et:kpws:KPW_STR_CANT_OPEN_ADMIN_SERVER
487 #. chpass_util_strings.et:ovku:CHPASS_UTIL_GET_PRINC_INFO
488 #: ../src/dummy-strings.c:97 ../src/dummy-strings.c:488
489 msgid "New passwords do not match - password not changed.\n"
490 msgstr ""
491
492 #. kpasswd_strings.et:kpws:KPW_STR_NEW_PASSWORD_MISMATCH
493 #: ../src/dummy-strings.c:98
494 msgid "Kerberos password changed.\n"
495 msgstr ""
496
497 #. kpasswd_strings.et:kpws:KPW_STR_PASSWORD_CHANGED
498 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_IN_DICTIONARY
499 #: ../src/dummy-strings.c:99 ../src/dummy-strings.c:497
500 msgid "Password not changed."
501 msgstr ""
502
503 #. kpasswd_strings.et:kpws:KPW_STR_PASSWORD_NOT_CHANGED
504 #: ../src/dummy-strings.c:100
505 #, c-format
506 msgid "when parsing name %s."
507 msgstr ""
508
509 #. kpasswd_strings.et:kpws:KPW_STR_PARSE_NAME
510 #: ../src/dummy-strings.c:101
511 msgid "when unparsing name."
512 msgstr ""
513
514 #. kpasswd_strings.et:kpws:KPW_STR_UNPARSE_NAME
515 #: ../src/dummy-strings.c:102
516 msgid "Unable to identify user from password file."
517 msgstr ""
518
519 #. kpasswd_strings.et:kpws:KPW_STR_NOT_IN_PASSWD_FILE
520 #: ../src/dummy-strings.c:103
521 #, c-format
522 msgid "Changing password for %s."
523 msgstr ""
524
525 #. kpasswd_strings.et:kpws:KPW_STR_CHANGING_PW_FOR
526 #: ../src/dummy-strings.c:104
527 msgid "Old password"
528 msgstr ""
529
530 #. kpasswd_strings.et:kpws:KPW_STR_OLD_PASSWORD_PROMPT
531 #. chpass_util_strings.et:ovku:CHPASS_UTIL_WHILE_TRYING_TO_CHANGE
532 #: ../src/dummy-strings.c:105 ../src/dummy-strings.c:514
533 msgid "while reading new password."
534 msgstr ""
535
536 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_READING_PASSWORD
537 #: ../src/dummy-strings.c:106
538 msgid ""
539 "You must type a password. Passwords must be at least one character long."
540 msgstr ""
541
542 #. kpasswd_strings.et:kpws:KPW_STR_NO_PASSWORD_READ
543 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_REUSE
544 #: ../src/dummy-strings.c:107 ../src/dummy-strings.c:513
545 msgid "while trying to change password."
546 msgstr ""
547
548 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_TRYING_TO_CHANGE
549 #: ../src/dummy-strings.c:108
550 msgid "while closing session with admin server and destroying tickets."
551 msgstr ""
552
553 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_DESTROYING_ADMIN_SESSION
554 #: ../src/dummy-strings.c:109
555 msgid "while freeing admin principal entry"
556 msgstr ""
557
558 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_FREEING_PRINCIPAL
559 #: ../src/dummy-strings.c:110
560 msgid "while freeing admin policy entry"
561 msgstr ""
562
563 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_FREEING_POLICY
564 #: ../src/dummy-strings.c:111
565 #, c-format
566 msgid "Could not get password policy information for principal %s."
567 msgstr ""
568
569 #. kpasswd_strings.et:kpws:KPW_STR_CANT_GET_POLICY_INFO
570 #: ../src/dummy-strings.c:112
571 #, c-format
572 msgid ""
573 "%s's password is controlled by the policy %s, which\n"
574 "requires a minimum of %u characters from at least %u classes (the five "
575 "classes\n"
576 "are lowercase, uppercase, numbers, punctuation, and all other characters)."
577 msgstr ""
578
579 #. kpasswd_strings.et:kpws:KPW_STR_POLICY_EXPLANATION
580 #: ../src/dummy-strings.c:113
581 #, c-format
582 msgid "Successfully imported %d record%s.\n"
583 msgstr ""
584
585 #. import_err.et:imp:IMPORT_NO_ERR
586 #: ../src/dummy-strings.c:114
587 msgid "Input not recognized as database dump"
588 msgstr ""
589
590 #. import_err.et:imp:IMPORT_BAD_FILE
591 #: ../src/dummy-strings.c:115
592 msgid "Bad token in dump file."
593 msgstr ""
594
595 #. import_err.et:imp:IMPORT_BAD_TOKEN
596 #: ../src/dummy-strings.c:116
597 msgid "Bad version in dump file"
598 msgstr ""
599
600 #. import_err.et:imp:IMPORT_BAD_VERSION
601 #: ../src/dummy-strings.c:117
602 msgid "Defective record encountered: "
603 msgstr ""
604
605 #. import_err.et:imp:IMPORT_BAD_RECORD
606 #: ../src/dummy-strings.c:118
607 msgid "Truncated input file detected."
608 msgstr ""
609
610 #. import_err.et:imp:IMPORT_BAD_FOOTER
611 #: ../src/dummy-strings.c:119
612 msgid "Import of dump failed"
613 msgstr ""
614
615 #. import_err.et:imp:IMPORT_FAILED
616 #: ../src/dummy-strings.c:120
617 #, c-format
618 msgid "Mismatched record count: %d record%s indicated, %d record%s scanned.\n"
619 msgstr ""
620
621 #. import_err.et:imp:IMPORT_COUNT_MESSAGE
622 #: ../src/dummy-strings.c:121
623 msgid "Number of records imported does not match count"
624 msgstr ""
625
626 #. import_err.et:imp:IMPORT_MISMATCH_COUNT
627 #: ../src/dummy-strings.c:122
628 msgid ""
629 "Unknown command line option.\n"
630 "Usage: ovsec_adm_import [filename]"
631 msgstr ""
632
633 #. import_err.et:imp:IMPORT_UNK_OPTION
634 #: ../src/dummy-strings.c:123
635 msgid "Warning -- continuing to import will overwrite existing databases!"
636 msgstr ""
637
638 #. import_err.et:imp:IMPORT_WARN_DB
639 #: ../src/dummy-strings.c:124
640 msgid "Database rename Failed!!"
641 msgstr ""
642
643 #. import_err.et:imp:IMPORT_RENAME_FAILED
644 #: ../src/dummy-strings.c:125
645 msgid "Extra data after footer is ignored."
646 msgstr ""
647
648 #. import_err.et:imp:IMPORT_EXTRA_DATA
649 #: ../src/dummy-strings.c:126
650 msgid "Proceed <y|n>?"
651 msgstr ""
652
653 #. import_err.et:imp:IMPORT_CONFIRM
654 #: ../src/dummy-strings.c:127
655 msgid "while opening input file"
656 msgstr ""
657
658 #. import_err.et:imp:IMPORT_OPEN_DUMP
659 #: ../src/dummy-strings.c:128
660 msgid "while importing databases"
661 msgstr ""
662
663 #. import_err.et:imp:IMPORT_IMPORT
664 #: ../src/dummy-strings.c:129
665 msgid "cannot open /dev/tty!!"
666 msgstr ""
667
668 #. import_err.et:imp:IMPORT_TTY
669 #: ../src/dummy-strings.c:130
670 msgid "while opening databases"
671 msgstr ""
672
673 #. import_err.et:imp:IMPORT_RENAME_OPEN
674 #: ../src/dummy-strings.c:131
675 msgid "while acquiring permanent lock"
676 msgstr ""
677
678 #. import_err.et:imp:IMPORT_RENAME_LOCK
679 #: ../src/dummy-strings.c:132
680 msgid "while releasing permanent lock"
681 msgstr ""
682
683 #. import_err.et:imp:IMPORT_RENAME_UNLOCK
684 #: ../src/dummy-strings.c:133
685 msgid "while closing databases"
686 msgstr ""
687
688 #. import_err.et:imp:IMPORT_RENAME_CLOSE
689 #: ../src/dummy-strings.c:134
690 msgid "while retrieving configuration parameters"
691 msgstr ""
692
693 #. import_err.et:imp:IMPORT_GET_PARAMS
694 #. kv5m_err.et:kv5m:KV5M_GSS_QUEUE
695 #: ../src/dummy-strings.c:135 ../src/dummy-strings.c:388
696 msgid "$Id: krb5-auth-dialog.pot 115 2009-01-10 13:25:51Z guidog $"
697 msgstr ""
698
699 #. kdc5_err.et:kdc5:KDC5_RCSID
700 #: ../src/dummy-strings.c:136
701 msgid "No server port found"
702 msgstr ""
703
704 #. kdc5_err.et:kdc5:KDC5_NOPORT
705 #: ../src/dummy-strings.c:137
706 msgid "Network not initialized"
707 msgstr ""
708
709 #. kdc5_err.et:kdc5:KDC5_NONET
710 #: ../src/dummy-strings.c:138
711 msgid "Short write while sending response"
712 msgstr ""
713
714 #. kdc5_err.et:kdc5:KDC5_IO_RESPONSE
715 #: ../src/dummy-strings.c:139
716 msgid "Cannot convert V5 keyblock"
717 msgstr ""
718
719 #. krb524_err.et:k524:KRB524_BADKEY
720 #: ../src/dummy-strings.c:140
721 msgid "Cannot convert V5 address information"
722 msgstr ""
723
724 #. krb524_err.et:k524:KRB524_BADADDR
725 #: ../src/dummy-strings.c:141
726 msgid "Cannot convert V5 principal"
727 msgstr ""
728
729 #. krb524_err.et:k524:KRB524_BADPRINC
730 #: ../src/dummy-strings.c:142
731 msgid "V5 realm name longer than V4 maximum"
732 msgstr ""
733
734 #. krb524_err.et:k524:KRB524_BADREALM
735 #: ../src/dummy-strings.c:143
736 msgid "Kerberos V4 error"
737 msgstr ""
738
739 #. krb524_err.et:k524:KRB524_V4ERR
740 #: ../src/dummy-strings.c:144
741 msgid "Encoding too large"
742 msgstr ""
743
744 #. krb524_err.et:k524:KRB524_ENCFULL
745 #: ../src/dummy-strings.c:145
746 msgid "Decoding out of data"
747 msgstr ""
748
749 #. krb524_err.et:k524:KRB524_DECEMPTY
750 #: ../src/dummy-strings.c:146
751 msgid "Service not responding"
752 msgstr ""
753
754 #. krb524_err.et:k524:KRB524_NOTRESP
755 #: ../src/dummy-strings.c:147
756 msgid "Kerberos version 4 support is disabled"
757 msgstr ""
758
759 #. krb524_err.et:k524:KRB524_KRB4_DISABLED
760 #: ../src/dummy-strings.c:148
761 msgid "No error"
762 msgstr ""
763
764 #. krb5_err.et:krb5:KRB5KDC_ERR_NONE
765 #: ../src/dummy-strings.c:149
766 msgid "Client's entry in database has expired"
767 msgstr ""
768
769 #. krb5_err.et:krb5:KRB5KDC_ERR_NAME_EXP
770 #: ../src/dummy-strings.c:150
771 msgid "Server's entry in database has expired"
772 msgstr ""
773
774 #. krb5_err.et:krb5:KRB5KDC_ERR_SERVICE_EXP
775 #: ../src/dummy-strings.c:151
776 msgid "Requested protocol version not supported"
777 msgstr ""
778
779 #. krb5_err.et:krb5:KRB5KDC_ERR_BAD_PVNO
780 #: ../src/dummy-strings.c:152
781 msgid "Client's key is encrypted in an old master key"
782 msgstr ""
783
784 #. krb5_err.et:krb5:KRB5KDC_ERR_C_OLD_MAST_KVNO
785 #: ../src/dummy-strings.c:153
786 msgid "Server's key is encrypted in an old master key"
787 msgstr ""
788
789 #. krb5_err.et:krb5:KRB5KDC_ERR_S_OLD_MAST_KVNO
790 #: ../src/dummy-strings.c:154
791 msgid "Client not found in Kerberos database"
792 msgstr ""
793
794 #. krb5_err.et:krb5:KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN
795 #: ../src/dummy-strings.c:155
796 msgid "Server not found in Kerberos database"
797 msgstr ""
798
799 #. krb5_err.et:krb5:KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN
800 #: ../src/dummy-strings.c:156
801 msgid "Principal has multiple entries in Kerberos database"
802 msgstr ""
803
804 #. krb5_err.et:krb5:KRB5KDC_ERR_PRINCIPAL_NOT_UNIQUE
805 #: ../src/dummy-strings.c:157
806 msgid "Client or server has a null key"
807 msgstr ""
808
809 #. krb5_err.et:krb5:KRB5KDC_ERR_NULL_KEY
810 #: ../src/dummy-strings.c:158
811 msgid "Ticket is ineligible for postdating"
812 msgstr ""
813
814 #. krb5_err.et:krb5:KRB5KDC_ERR_CANNOT_POSTDATE
815 #: ../src/dummy-strings.c:159
816 msgid "Requested effective lifetime is negative or too short"
817 msgstr ""
818
819 #. krb5_err.et:krb5:KRB5KDC_ERR_NEVER_VALID
820 #: ../src/dummy-strings.c:160
821 msgid "KDC policy rejects request"
822 msgstr ""
823
824 #. krb5_err.et:krb5:KRB5KDC_ERR_POLICY
825 #: ../src/dummy-strings.c:161
826 msgid "KDC can't fulfill requested option"
827 msgstr ""
828
829 #. krb5_err.et:krb5:KRB5KDC_ERR_BADOPTION
830 #: ../src/dummy-strings.c:162
831 msgid "KDC has no support for encryption type"
832 msgstr ""
833
834 #. krb5_err.et:krb5:KRB5KDC_ERR_ETYPE_NOSUPP
835 #: ../src/dummy-strings.c:163
836 msgid "KDC has no support for checksum type"
837 msgstr ""
838
839 #. krb5_err.et:krb5:KRB5KDC_ERR_SUMTYPE_NOSUPP
840 #: ../src/dummy-strings.c:164
841 msgid "KDC has no support for padata type"
842 msgstr ""
843
844 #. krb5_err.et:krb5:KRB5KDC_ERR_PADATA_TYPE_NOSUPP
845 #: ../src/dummy-strings.c:165
846 msgid "KDC has no support for transited type"
847 msgstr ""
848
849 #. krb5_err.et:krb5:KRB5KDC_ERR_TRTYPE_NOSUPP
850 #: ../src/dummy-strings.c:166
851 msgid "Clients credentials have been revoked"
852 msgstr ""
853
854 #. krb5_err.et:krb5:KRB5KDC_ERR_CLIENT_REVOKED
855 #: ../src/dummy-strings.c:167
856 msgid "Credentials for server have been revoked"
857 msgstr ""
858
859 #. krb5_err.et:krb5:KRB5KDC_ERR_SERVICE_REVOKED
860 #: ../src/dummy-strings.c:168
861 msgid "TGT has been revoked"
862 msgstr ""
863
864 #. krb5_err.et:krb5:KRB5KDC_ERR_TGT_REVOKED
865 #: ../src/dummy-strings.c:169
866 msgid "Client not yet valid - try again later"
867 msgstr ""
868
869 #. krb5_err.et:krb5:KRB5KDC_ERR_CLIENT_NOTYET
870 #: ../src/dummy-strings.c:170
871 msgid "Server not yet valid - try again later"
872 msgstr ""
873
874 #. krb5_err.et:krb5:KRB5KDC_ERR_SERVICE_NOTYET
875 #: ../src/dummy-strings.c:171
876 msgid "Password has expired"
877 msgstr ""
878
879 #. krb5_err.et:krb5:KRB5KDC_ERR_KEY_EXP
880 #: ../src/dummy-strings.c:172
881 msgid "Preauthentication failed"
882 msgstr ""
883
884 #. krb5_err.et:krb5:KRB5KDC_ERR_PREAUTH_FAILED
885 #: ../src/dummy-strings.c:173
886 msgid "Additional pre-authentication required"
887 msgstr ""
888
889 #. krb5_err.et:krb5:KRB5KDC_ERR_PREAUTH_REQUIRED
890 #: ../src/dummy-strings.c:174
891 msgid "Requested server and ticket don't match"
892 msgstr ""
893
894 #. krb5_err.et:krb5:KRB5KDC_ERR_SERVER_NOMATCH
895 #: ../src/dummy-strings.c:175
896 msgid "Decrypt integrity check failed"
897 msgstr ""
898
899 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_TKT_EXPIRED
900 #: ../src/dummy-strings.c:177
901 msgid "Ticket not yet valid"
902 msgstr ""
903
904 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_TKT_NYV
905 #: ../src/dummy-strings.c:178
906 msgid "Request is a replay"
907 msgstr ""
908
909 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_NOT_US
910 #: ../src/dummy-strings.c:180
911 msgid "Ticket/authenticator don't match"
912 msgstr ""
913
914 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADMATCH
915 #: ../src/dummy-strings.c:181
916 msgid "Clock skew too great"
917 msgstr ""
918
919 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADORDER
920 #: ../src/dummy-strings.c:187
921 msgid "Illegal cross-realm ticket"
922 msgstr ""
923
924 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_ILL_CR_TKT
925 #: ../src/dummy-strings.c:188
926 msgid "Key version is not available"
927 msgstr ""
928
929 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADKEYVER
930 #: ../src/dummy-strings.c:189
931 msgid "Service key not available"
932 msgstr ""
933
934 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_NOKEY
935 #. krb5_err.et:krb5:KRB5_NO_LOCALNAME
936 #: ../src/dummy-strings.c:190 ../src/dummy-strings.c:228
937 msgid "Mutual authentication failed"
938 msgstr ""
939
940 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_MUT_FAIL
941 #: ../src/dummy-strings.c:191
942 msgid "Incorrect message direction"
943 msgstr ""
944
945 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADDIRECTION
946 #: ../src/dummy-strings.c:192
947 msgid "Alternative authentication method required"
948 msgstr ""
949
950 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_METHOD
951 #: ../src/dummy-strings.c:193
952 msgid "Incorrect sequence number in message"
953 msgstr ""
954
955 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADSEQ
956 #: ../src/dummy-strings.c:194
957 msgid "Inappropriate type of checksum in message"
958 msgstr ""
959
960 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_INAPP_CKSUM
961 #: ../src/dummy-strings.c:195
962 msgid "Policy rejects transited path"
963 msgstr ""
964
965 #. krb5_err.et:krb5:KRB5KRB_AP_PATH_NOT_ACCEPTED
966 #: ../src/dummy-strings.c:196
967 msgid "Response too big for UDP, retry with TCP"
968 msgstr ""
969
970 #. krb5_err.et:krb5:KRB5KRB_ERR_RESPONSE_TOO_BIG
971 #: ../src/dummy-strings.c:197
972 msgid "Generic error (see e-text)"
973 msgstr ""
974
975 #. krb5_err.et:krb5:KRB5KRB_ERR_GENERIC
976 #: ../src/dummy-strings.c:198
977 msgid "Field is too long for this implementation"
978 msgstr ""
979
980 #. krb5_err.et:krb5:KRB5KRB_ERR_FIELD_TOOLONG
981 #: ../src/dummy-strings.c:199
982 msgid "Invalid flag for file lock mode"
983 msgstr ""
984
985 #. krb5_err.et:krb5:KRB5_LIBOS_BADLOCKFLAG
986 #: ../src/dummy-strings.c:200
987 msgid "Cannot read password"
988 msgstr ""
989
990 #. krb5_err.et:krb5:KRB5_LIBOS_CANTREADPWD
991 #: ../src/dummy-strings.c:201
992 msgid "Password mismatch"
993 msgstr ""
994
995 #. krb5_err.et:krb5:KRB5_LIBOS_BADPWDMATCH
996 #: ../src/dummy-strings.c:202
997 msgid "Password read interrupted"
998 msgstr ""
999
1000 #. krb5_err.et:krb5:KRB5_LIBOS_PWDINTR
1001 #: ../src/dummy-strings.c:203
1002 msgid "Illegal character in component name"
1003 msgstr ""
1004
1005 #. krb5_err.et:krb5:KRB5_PARSE_ILLCHAR
1006 #: ../src/dummy-strings.c:204
1007 msgid "Malformed representation of principal"
1008 msgstr ""
1009
1010 #. krb5_err.et:krb5:KRB5_PARSE_MALFORMED
1011 #: ../src/dummy-strings.c:205
1012 msgid "Can't open/find Kerberos configuration file"
1013 msgstr ""
1014
1015 #. krb5_err.et:krb5:KRB5_CONFIG_CANTOPEN
1016 #: ../src/dummy-strings.c:206
1017 msgid "Improper format of Kerberos configuration file"
1018 msgstr ""
1019
1020 #. krb5_err.et:krb5:KRB5_CONFIG_BADFORMAT
1021 #: ../src/dummy-strings.c:207
1022 msgid "Insufficient space to return complete information"
1023 msgstr ""
1024
1025 #. krb5_err.et:krb5:KRB5_CONFIG_NOTENUFSPACE
1026 #: ../src/dummy-strings.c:208
1027 msgid "Invalid message type specified for encoding"
1028 msgstr ""
1029
1030 #. krb5_err.et:krb5:KRB5_BADMSGTYPE
1031 #: ../src/dummy-strings.c:209
1032 msgid "Credential cache name malformed"
1033 msgstr ""
1034
1035 #. krb5_err.et:krb5:KRB5_CC_BADNAME
1036 #: ../src/dummy-strings.c:210
1037 msgid "Unknown credential cache type"
1038 msgstr ""
1039
1040 #. krb5_err.et:krb5:KRB5_CC_UNKNOWN_TYPE
1041 #: ../src/dummy-strings.c:211
1042 msgid "Matching credential not found"
1043 msgstr ""
1044
1045 #. krb5_err.et:krb5:KRB5_CC_NOTFOUND
1046 #: ../src/dummy-strings.c:212
1047 msgid "End of credential cache reached"
1048 msgstr ""
1049
1050 #. krb5_err.et:krb5:KRB5_CC_END
1051 #: ../src/dummy-strings.c:213
1052 msgid "Request did not supply a ticket"
1053 msgstr ""
1054
1055 #. krb5_err.et:krb5:KRB5_NO_TKT_SUPPLIED
1056 #: ../src/dummy-strings.c:214
1057 msgid "Wrong principal in request"
1058 msgstr ""
1059
1060 #. krb5_err.et:krb5:KRB5KRB_AP_WRONG_PRINC
1061 #: ../src/dummy-strings.c:215
1062 msgid "Ticket has invalid flag set"
1063 msgstr ""
1064
1065 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_TKT_INVALID
1066 #: ../src/dummy-strings.c:216
1067 msgid "Requested principal and ticket don't match"
1068 msgstr ""
1069
1070 #. krb5_err.et:krb5:KRB5_PRINC_NOMATCH
1071 #: ../src/dummy-strings.c:217
1072 msgid "KDC reply did not match expectations"
1073 msgstr ""
1074
1075 #. krb5_err.et:krb5:KRB5_KDCREP_MODIFIED
1076 #: ../src/dummy-strings.c:218
1077 msgid "Clock skew too great in KDC reply"
1078 msgstr ""
1079
1080 #. krb5_err.et:krb5:KRB5_KDCREP_SKEW
1081 #: ../src/dummy-strings.c:219
1082 msgid "Client/server realm mismatch in initial ticket request"
1083 msgstr ""
1084
1085 #. krb5_err.et:krb5:KRB5_IN_TKT_REALM_MISMATCH
1086 #: ../src/dummy-strings.c:220
1087 msgid "Program lacks support for encryption type"
1088 msgstr ""
1089
1090 #. krb5_err.et:krb5:KRB5_PROG_ETYPE_NOSUPP
1091 #: ../src/dummy-strings.c:221
1092 msgid "Program lacks support for key type"
1093 msgstr ""
1094
1095 #. krb5_err.et:krb5:KRB5_PROG_KEYTYPE_NOSUPP
1096 #: ../src/dummy-strings.c:222
1097 msgid "Requested encryption type not used in message"
1098 msgstr ""
1099
1100 #. krb5_err.et:krb5:KRB5_WRONG_ETYPE
1101 #: ../src/dummy-strings.c:223
1102 msgid "Program lacks support for checksum type"
1103 msgstr ""
1104
1105 #. krb5_err.et:krb5:KRB5_PROG_SUMTYPE_NOSUPP
1106 #: ../src/dummy-strings.c:224
1107 msgid "Cannot find KDC for requested realm"
1108 msgstr ""
1109
1110 #. krb5_err.et:krb5:KRB5_REALM_UNKNOWN
1111 #: ../src/dummy-strings.c:225
1112 msgid "Kerberos service unknown"
1113 msgstr ""
1114
1115 #. krb5_err.et:krb5:KRB5_SERVICE_UNKNOWN
1116 #: ../src/dummy-strings.c:226
1117 msgid "Cannot contact any KDC for requested realm"
1118 msgstr ""
1119
1120 #. krb5_err.et:krb5:KRB5_KDC_UNREACH
1121 #: ../src/dummy-strings.c:227
1122 msgid "No local name found for principal name"
1123 msgstr ""
1124
1125 #. krb5_err.et:krb5:KRB5_MUTUAL_FAILED
1126 #: ../src/dummy-strings.c:229
1127 msgid "Replay cache type is already registered"
1128 msgstr ""
1129
1130 #. krb5_err.et:krb5:KRB5_RC_TYPE_EXISTS
1131 #: ../src/dummy-strings.c:230
1132 msgid "No more memory to allocate (in replay cache code)"
1133 msgstr ""
1134
1135 #. krb5_err.et:krb5:KRB5_RC_MALLOC
1136 #: ../src/dummy-strings.c:231
1137 msgid "Replay cache type is unknown"
1138 msgstr ""
1139
1140 #. krb5_err.et:krb5:KRB5_RC_TYPE_NOTFOUND
1141 #: ../src/dummy-strings.c:232
1142 msgid "Generic unknown RC error"
1143 msgstr ""
1144
1145 #. krb5_err.et:krb5:KRB5_RC_UNKNOWN
1146 #: ../src/dummy-strings.c:233
1147 msgid "Message is a replay"
1148 msgstr ""
1149
1150 #. krb5_err.et:krb5:KRB5_RC_REPLAY
1151 #: ../src/dummy-strings.c:234
1152 msgid "Replay I/O operation failed XXX"
1153 msgstr ""
1154
1155 #. krb5_err.et:krb5:KRB5_RC_IO
1156 #: ../src/dummy-strings.c:235
1157 msgid "Replay cache type does not support non-volatile storage"
1158 msgstr ""
1159
1160 #. krb5_err.et:krb5:KRB5_RC_NOIO
1161 #: ../src/dummy-strings.c:236
1162 msgid "Replay cache name parse/format error"
1163 msgstr ""
1164
1165 #. krb5_err.et:krb5:KRB5_RC_PARSE
1166 #: ../src/dummy-strings.c:237
1167 msgid "End-of-file on replay cache I/O"
1168 msgstr ""
1169
1170 #. krb5_err.et:krb5:KRB5_RC_IO_EOF
1171 #: ../src/dummy-strings.c:238
1172 msgid "No more memory to allocate (in replay cache I/O code)"
1173 msgstr ""
1174
1175 #. krb5_err.et:krb5:KRB5_RC_IO_MALLOC
1176 #: ../src/dummy-strings.c:239
1177 msgid "Permission denied in replay cache code"
1178 msgstr ""
1179
1180 #. krb5_err.et:krb5:KRB5_RC_IO_PERM
1181 #: ../src/dummy-strings.c:240
1182 msgid "I/O error in replay cache i/o code"
1183 msgstr ""
1184
1185 #. krb5_err.et:krb5:KRB5_RC_IO_IO
1186 #: ../src/dummy-strings.c:241
1187 msgid "Generic unknown RC/IO error"
1188 msgstr ""
1189
1190 #. krb5_err.et:krb5:KRB5_RC_IO_UNKNOWN
1191 #: ../src/dummy-strings.c:242
1192 msgid "Insufficient system space to store replay information"
1193 msgstr ""
1194
1195 #. krb5_err.et:krb5:KRB5_RC_IO_SPACE
1196 #: ../src/dummy-strings.c:243
1197 msgid "Can't open/find realm translation file"
1198 msgstr ""
1199
1200 #. krb5_err.et:krb5:KRB5_TRANS_CANTOPEN
1201 #: ../src/dummy-strings.c:244
1202 msgid "Improper format of realm translation file"
1203 msgstr ""
1204
1205 #. krb5_err.et:krb5:KRB5_TRANS_BADFORMAT
1206 #: ../src/dummy-strings.c:245
1207 msgid "Can't open/find lname translation database"
1208 msgstr ""
1209
1210 #. krb5_err.et:krb5:KRB5_LNAME_CANTOPEN
1211 #: ../src/dummy-strings.c:246
1212 msgid "No translation available for requested principal"
1213 msgstr ""
1214
1215 #. krb5_err.et:krb5:KRB5_LNAME_NOTRANS
1216 #: ../src/dummy-strings.c:247
1217 msgid "Improper format of translation database entry"
1218 msgstr ""
1219
1220 #. krb5_err.et:krb5:KRB5_LNAME_BADFORMAT
1221 #: ../src/dummy-strings.c:248
1222 msgid "Cryptosystem internal error"
1223 msgstr ""
1224
1225 #. krb5_err.et:krb5:KRB5_CRYPTO_INTERNAL
1226 #: ../src/dummy-strings.c:249
1227 msgid "Key table name malformed"
1228 msgstr ""
1229
1230 #. krb5_err.et:krb5:KRB5_KT_BADNAME
1231 #: ../src/dummy-strings.c:250
1232 msgid "Unknown Key table type"
1233 msgstr ""
1234
1235 #. krb5_err.et:krb5:KRB5_KT_UNKNOWN_TYPE
1236 #: ../src/dummy-strings.c:251
1237 msgid "Key table entry not found"
1238 msgstr ""
1239
1240 #. krb5_err.et:krb5:KRB5_KT_NOTFOUND
1241 #: ../src/dummy-strings.c:252
1242 msgid "End of key table reached"
1243 msgstr ""
1244
1245 #. krb5_err.et:krb5:KRB5_KT_END
1246 #: ../src/dummy-strings.c:253
1247 msgid "Cannot write to specified key table"
1248 msgstr ""
1249
1250 #. krb5_err.et:krb5:KRB5_KT_NOWRITE
1251 #: ../src/dummy-strings.c:254
1252 msgid "Error writing to key table"
1253 msgstr ""
1254
1255 #. krb5_err.et:krb5:KRB5_KT_IOERR
1256 #: ../src/dummy-strings.c:255
1257 msgid "Cannot find ticket for requested realm"
1258 msgstr ""
1259
1260 #. krb5_err.et:krb5:KRB5_NO_TKT_IN_RLM
1261 #: ../src/dummy-strings.c:256
1262 msgid "DES key has bad parity"
1263 msgstr ""
1264
1265 #. krb5_err.et:krb5:KRB5DES_BAD_KEYPAR
1266 #: ../src/dummy-strings.c:257
1267 msgid "DES key is a weak key"
1268 msgstr ""
1269
1270 #. krb5_err.et:krb5:KRB5DES_WEAK_KEY
1271 #: ../src/dummy-strings.c:258
1272 msgid "Bad encryption type"
1273 msgstr ""
1274
1275 #. krb5_err.et:krb5:KRB5_BAD_ENCTYPE
1276 #: ../src/dummy-strings.c:259
1277 msgid "Key size is incompatible with encryption type"
1278 msgstr ""
1279
1280 #. krb5_err.et:krb5:KRB5_BAD_KEYSIZE
1281 #: ../src/dummy-strings.c:260
1282 msgid "Message size is incompatible with encryption type"
1283 msgstr ""
1284
1285 #. krb5_err.et:krb5:KRB5_BAD_MSIZE
1286 #: ../src/dummy-strings.c:261
1287 msgid "Credentials cache type is already registered."
1288 msgstr ""
1289
1290 #. krb5_err.et:krb5:KRB5_CC_TYPE_EXISTS
1291 #: ../src/dummy-strings.c:262
1292 msgid "Key table type is already registered."
1293 msgstr ""
1294
1295 #. krb5_err.et:krb5:KRB5_KT_TYPE_EXISTS
1296 #: ../src/dummy-strings.c:263
1297 msgid "Credentials cache I/O operation failed XXX"
1298 msgstr ""
1299
1300 #. krb5_err.et:krb5:KRB5_CC_IO
1301 #: ../src/dummy-strings.c:264
1302 msgid "Credentials cache permissions incorrect"
1303 msgstr ""
1304
1305 #. krb5_err.et:krb5:KRB5_FCC_PERM
1306 #: ../src/dummy-strings.c:265
1307 msgid "No credentials cache found"
1308 msgstr ""
1309
1310 #. krb5_err.et:krb5:KRB5_FCC_NOFILE
1311 #: ../src/dummy-strings.c:266
1312 msgid "Internal credentials cache error"
1313 msgstr ""
1314
1315 #. krb5_err.et:krb5:KRB5_FCC_INTERNAL
1316 #: ../src/dummy-strings.c:267
1317 msgid "Error writing to credentials cache"
1318 msgstr ""
1319
1320 #. krb5_err.et:krb5:KRB5_CC_WRITE
1321 #: ../src/dummy-strings.c:268
1322 msgid "No more memory to allocate (in credentials cache code)"
1323 msgstr ""
1324
1325 #. krb5_err.et:krb5:KRB5_CC_NOMEM
1326 #: ../src/dummy-strings.c:269
1327 msgid "Bad format in credentials cache"
1328 msgstr ""
1329
1330 #. krb5_err.et:krb5:KRB5_CC_FORMAT
1331 #: ../src/dummy-strings.c:270
1332 msgid "No credentials found with supported encryption types"
1333 msgstr ""
1334
1335 #. krb5_err.et:krb5:KRB5_CC_NOT_KTYPE
1336 #: ../src/dummy-strings.c:271
1337 msgid "Invalid KDC option combination (library internal error)"
1338 msgstr ""
1339
1340 #. krb5_err.et:krb5:KRB5_INVALID_FLAGS
1341 #: ../src/dummy-strings.c:272
1342 msgid "Request missing second ticket"
1343 msgstr ""
1344
1345 #. krb5_err.et:krb5:KRB5_NO_2ND_TKT
1346 #: ../src/dummy-strings.c:273
1347 msgid "No credentials supplied to library routine"
1348 msgstr ""
1349
1350 #. krb5_err.et:krb5:KRB5_NOCREDS_SUPPLIED
1351 #: ../src/dummy-strings.c:274
1352 msgid "Bad sendauth version was sent"
1353 msgstr ""
1354
1355 #. krb5_err.et:krb5:KRB5_SENDAUTH_BADAUTHVERS
1356 #: ../src/dummy-strings.c:275
1357 msgid "Bad application version was sent (via sendauth)"
1358 msgstr ""
1359
1360 #. krb5_err.et:krb5:KRB5_SENDAUTH_BADAPPLVERS
1361 #: ../src/dummy-strings.c:276
1362 msgid "Bad response (during sendauth exchange)"
1363 msgstr ""
1364
1365 #. krb5_err.et:krb5:KRB5_SENDAUTH_BADRESPONSE
1366 #: ../src/dummy-strings.c:277
1367 msgid "Server rejected authentication (during sendauth exchange)"
1368 msgstr ""
1369
1370 #. krb5_err.et:krb5:KRB5_SENDAUTH_REJECTED
1371 #: ../src/dummy-strings.c:278
1372 msgid "Unsupported preauthentication type"
1373 msgstr ""
1374
1375 #. krb5_err.et:krb5:KRB5_PREAUTH_BAD_TYPE
1376 #: ../src/dummy-strings.c:279
1377 msgid "Required preauthentication key not supplied"
1378 msgstr ""
1379
1380 #. krb5_err.et:krb5:KRB5_PREAUTH_NO_KEY
1381 #: ../src/dummy-strings.c:280
1382 msgid "Generic preauthentication failure"
1383 msgstr ""
1384
1385 #. krb5_err.et:krb5:KRB5_PREAUTH_FAILED
1386 #: ../src/dummy-strings.c:281
1387 msgid "Unsupported replay cache format version number"
1388 msgstr ""
1389
1390 #. krb5_err.et:krb5:KRB5_RCACHE_BADVNO
1391 #: ../src/dummy-strings.c:282
1392 msgid "Unsupported credentials cache format version number"
1393 msgstr ""
1394
1395 #. krb5_err.et:krb5:KRB5_CCACHE_BADVNO
1396 #: ../src/dummy-strings.c:283
1397 msgid "Unsupported key table format version number"
1398 msgstr ""
1399
1400 #. krb5_err.et:krb5:KRB5_KEYTAB_BADVNO
1401 #: ../src/dummy-strings.c:284
1402 msgid "Program lacks support for address type"
1403 msgstr ""
1404
1405 #. krb5_err.et:krb5:KRB5_PROG_ATYPE_NOSUPP
1406 #: ../src/dummy-strings.c:285
1407 msgid "Message replay detection requires rcache parameter"
1408 msgstr ""
1409
1410 #. krb5_err.et:krb5:KRB5_RC_REQUIRED
1411 #: ../src/dummy-strings.c:286
1412 msgid "Hostname cannot be canonicalized"
1413 msgstr ""
1414
1415 #. krb5_err.et:krb5:KRB5_ERR_BAD_HOSTNAME
1416 #: ../src/dummy-strings.c:287
1417 msgid "Cannot determine realm for host"
1418 msgstr ""
1419
1420 #. krb5_err.et:krb5:KRB5_ERR_HOST_REALM_UNKNOWN
1421 #: ../src/dummy-strings.c:288
1422 msgid "Conversion to service principal undefined for name type"
1423 msgstr ""
1424
1425 #. krb5_err.et:krb5:KRB5_SNAME_UNSUPP_NAMETYPE
1426 #: ../src/dummy-strings.c:289
1427 msgid "Initial Ticket response appears to be Version 4 error"
1428 msgstr ""
1429
1430 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_V4_REPLY
1431 #: ../src/dummy-strings.c:290
1432 msgid "Cannot resolve network address for KDC in requested realm"
1433 msgstr ""
1434
1435 #. krb5_err.et:krb5:KRB5_REALM_CANT_RESOLVE
1436 #: ../src/dummy-strings.c:291
1437 msgid "Requesting ticket can't get forwardable tickets"
1438 msgstr ""
1439
1440 #. krb5_err.et:krb5:KRB5_TKT_NOT_FORWARDABLE
1441 #: ../src/dummy-strings.c:292
1442 msgid "Bad principal name while trying to forward credentials"
1443 msgstr ""
1444
1445 #. krb5_err.et:krb5:KRB5_FWD_BAD_PRINCIPAL
1446 #: ../src/dummy-strings.c:293
1447 msgid "Looping detected inside krb5_get_in_tkt"
1448 msgstr ""
1449
1450 #. krb5_err.et:krb5:KRB5_GET_IN_TKT_LOOP
1451 #: ../src/dummy-strings.c:294
1452 msgid "Configuration file does not specify default realm"
1453 msgstr ""
1454
1455 #. krb5_err.et:krb5:KRB5_CONFIG_NODEFREALM
1456 #: ../src/dummy-strings.c:295
1457 msgid "Bad SAM flags in obtain_sam_padata"
1458 msgstr ""
1459
1460 #. krb5_err.et:krb5:KRB5_SAM_UNSUPPORTED
1461 #: ../src/dummy-strings.c:296
1462 msgid "Invalid encryption type in SAM challenge"
1463 msgstr ""
1464
1465 #. krb5_err.et:krb5:KRB5_SAM_INVALID_ETYPE
1466 #: ../src/dummy-strings.c:297
1467 msgid "Missing checksum in SAM challenge"
1468 msgstr ""
1469
1470 #. krb5_err.et:krb5:KRB5_SAM_NO_CHECKSUM
1471 #: ../src/dummy-strings.c:298
1472 msgid "Bad checksum in SAM challenge"
1473 msgstr ""
1474
1475 #. krb5_err.et:krb5:KRB5_SAM_BAD_CHECKSUM
1476 #: ../src/dummy-strings.c:299
1477 msgid "Keytab name too long"
1478 msgstr ""
1479
1480 #. krb5_err.et:krb5:KRB5_KT_NAME_TOOLONG
1481 #: ../src/dummy-strings.c:300
1482 msgid "Key version number for principal in key table is incorrect"
1483 msgstr ""
1484
1485 #. krb5_err.et:krb5:KRB5_KT_KVNONOTFOUND
1486 #: ../src/dummy-strings.c:301
1487 msgid "This application has expired"
1488 msgstr ""
1489
1490 #. krb5_err.et:krb5:KRB5_APPL_EXPIRED
1491 #: ../src/dummy-strings.c:302
1492 msgid "This Krb5 library has expired"
1493 msgstr ""
1494
1495 #. krb5_err.et:krb5:KRB5_LIB_EXPIRED
1496 #: ../src/dummy-strings.c:303
1497 msgid "New password cannot be zero length"
1498 msgstr ""
1499
1500 #. krb5_err.et:krb5:KRB5_CHPW_PWDNULL
1501 #: ../src/dummy-strings.c:304
1502 msgid "Password change failed"
1503 msgstr ""
1504
1505 #. krb5_err.et:krb5:KRB5_CHPW_FAIL
1506 #: ../src/dummy-strings.c:305
1507 msgid "Bad format in keytab"
1508 msgstr ""
1509
1510 #. krb5_err.et:krb5:KRB5_KT_FORMAT
1511 #: ../src/dummy-strings.c:306
1512 msgid "Encryption type not permitted"
1513 msgstr ""
1514
1515 #. krb5_err.et:krb5:KRB5_NOPERM_ETYPE
1516 #: ../src/dummy-strings.c:307
1517 msgid "No supported encryption types (config file error?)"
1518 msgstr ""
1519
1520 #. krb5_err.et:krb5:KRB5_CONFIG_ETYPE_NOSUPP
1521 #: ../src/dummy-strings.c:308
1522 msgid "Program called an obsolete, deleted function"
1523 msgstr ""
1524
1525 #. krb5_err.et:krb5:KRB5_OBSOLETE_FN
1526 #: ../src/dummy-strings.c:309
1527 msgid "unknown getaddrinfo failure"
1528 msgstr ""
1529
1530 #. krb5_err.et:krb5:KRB5_EAI_FAIL
1531 #: ../src/dummy-strings.c:310
1532 msgid "no data available for host/domain name"
1533 msgstr ""
1534
1535 #. krb5_err.et:krb5:KRB5_EAI_NODATA
1536 #: ../src/dummy-strings.c:311
1537 msgid "host/domain name not found"
1538 msgstr ""
1539
1540 #. krb5_err.et:krb5:KRB5_EAI_NONAME
1541 #: ../src/dummy-strings.c:312
1542 msgid "service name unknown"
1543 msgstr ""
1544
1545 #. krb5_err.et:krb5:KRB5_EAI_SERVICE
1546 #: ../src/dummy-strings.c:313
1547 msgid "Cannot determine realm for numeric host address"
1548 msgstr ""
1549
1550 #. krb5_err.et:krb5:KRB5_ERR_NUMERIC_REALM
1551 #: ../src/dummy-strings.c:314
1552 msgid "Invalid key generation parameters from KDC"
1553 msgstr ""
1554
1555 #. krb5_err.et:krb5:KRB5_ERR_BAD_S2K_PARAMS
1556 #: ../src/dummy-strings.c:315
1557 msgid "service not available"
1558 msgstr ""
1559
1560 #. krb5_err.et:krb5:KRB5_ERR_NO_SERVICE
1561 #: ../src/dummy-strings.c:316
1562 msgid "Ccache function not supported: read-only ccache type"
1563 msgstr ""
1564
1565 #. krb5_err.et:krb5:KRB5_CC_READONLY
1566 #: ../src/dummy-strings.c:317
1567 msgid "Ccache function not supported: not implemented"
1568 msgstr ""
1569
1570 #. krb5_err.et:krb5:KRB5_CC_NOSUPP
1571 #: ../src/dummy-strings.c:318
1572 msgid "ASN.1 failed call to system time library"
1573 msgstr ""
1574
1575 #. asn1_err.et:asn1:ASN1_BAD_TIMEFORMAT
1576 #: ../src/dummy-strings.c:319
1577 msgid "ASN.1 structure is missing a required field"
1578 msgstr ""
1579
1580 #. asn1_err.et:asn1:ASN1_MISSING_FIELD
1581 #: ../src/dummy-strings.c:320
1582 msgid "ASN.1 unexpected field number"
1583 msgstr ""
1584
1585 #. asn1_err.et:asn1:ASN1_MISPLACED_FIELD
1586 #: ../src/dummy-strings.c:321
1587 msgid "ASN.1 type numbers are inconsistent"
1588 msgstr ""
1589
1590 #. asn1_err.et:asn1:ASN1_TYPE_MISMATCH
1591 #: ../src/dummy-strings.c:322
1592 msgid "ASN.1 value too large"
1593 msgstr ""
1594
1595 #. asn1_err.et:asn1:ASN1_OVERFLOW
1596 #: ../src/dummy-strings.c:323
1597 msgid "ASN.1 encoding ended unexpectedly"
1598 msgstr ""
1599
1600 #. asn1_err.et:asn1:ASN1_OVERRUN
1601 #: ../src/dummy-strings.c:324
1602 msgid "ASN.1 identifier doesn't match expected value"
1603 msgstr ""
1604
1605 #. asn1_err.et:asn1:ASN1_BAD_ID
1606 #: ../src/dummy-strings.c:325
1607 msgid "ASN.1 length doesn't match expected value"
1608 msgstr ""
1609
1610 #. asn1_err.et:asn1:ASN1_BAD_LENGTH
1611 #: ../src/dummy-strings.c:326
1612 msgid "ASN.1 badly-formatted encoding"
1613 msgstr ""
1614
1615 #. asn1_err.et:asn1:ASN1_BAD_FORMAT
1616 #: ../src/dummy-strings.c:327
1617 msgid "ASN.1 parse error"
1618 msgstr ""
1619
1620 #. asn1_err.et:asn1:ASN1_PARSE_ERROR
1621 #: ../src/dummy-strings.c:328
1622 msgid "ASN.1 bad return from gmtime"
1623 msgstr ""
1624
1625 #. asn1_err.et:asn1:ASN1_BAD_GMTIME
1626 #: ../src/dummy-strings.c:329
1627 msgid "ASN.1 non-constructed indefinite encoding"
1628 msgstr ""
1629
1630 #. asn1_err.et:asn1:ASN1_MISMATCH_INDEF
1631 #: ../src/dummy-strings.c:330
1632 msgid "ASN.1 missing expected EOC"
1633 msgstr ""
1634
1635 #. asn1_err.et:asn1:ASN1_MISSING_EOC
1636 #: ../src/dummy-strings.c:331
1637 msgid "Kerberos V5 magic number table"
1638 msgstr ""
1639
1640 #. kv5m_err.et:kv5m:KV5M_NONE
1641 #: ../src/dummy-strings.c:332
1642 msgid "Bad magic number for krb5_principal structure"
1643 msgstr ""
1644
1645 #. kv5m_err.et:kv5m:KV5M_PRINCIPAL
1646 #: ../src/dummy-strings.c:333
1647 msgid "Bad magic number for krb5_data structure"
1648 msgstr ""
1649
1650 #. kv5m_err.et:kv5m:KV5M_DATA
1651 #: ../src/dummy-strings.c:334
1652 msgid "Bad magic number for krb5_keyblock structure"
1653 msgstr ""
1654
1655 #. kv5m_err.et:kv5m:KV5M_KEYBLOCK
1656 #: ../src/dummy-strings.c:335
1657 msgid "Bad magic number for krb5_checksum structure"
1658 msgstr ""
1659
1660 #. kv5m_err.et:kv5m:KV5M_CHECKSUM
1661 #: ../src/dummy-strings.c:336
1662 msgid "Bad magic number for krb5_encrypt_block structure"
1663 msgstr ""
1664
1665 #. kv5m_err.et:kv5m:KV5M_ENCRYPT_BLOCK
1666 #: ../src/dummy-strings.c:337
1667 msgid "Bad magic number for krb5_enc_data structure"
1668 msgstr ""
1669
1670 #. kv5m_err.et:kv5m:KV5M_ENC_DATA
1671 #: ../src/dummy-strings.c:338
1672 msgid "Bad magic number for krb5_cryptosystem_entry structure"
1673 msgstr ""
1674
1675 #. kv5m_err.et:kv5m:KV5M_CRYPTOSYSTEM_ENTRY
1676 #: ../src/dummy-strings.c:339
1677 msgid "Bad magic number for krb5_cs_table_entry structure"
1678 msgstr ""
1679
1680 #. kv5m_err.et:kv5m:KV5M_CS_TABLE_ENTRY
1681 #: ../src/dummy-strings.c:340
1682 msgid "Bad magic number for krb5_checksum_entry structure"
1683 msgstr ""
1684
1685 #. kv5m_err.et:kv5m:KV5M_CHECKSUM_ENTRY
1686 #: ../src/dummy-strings.c:341
1687 msgid "Bad magic number for krb5_authdata structure"
1688 msgstr ""
1689
1690 #. kv5m_err.et:kv5m:KV5M_AUTHDATA
1691 #: ../src/dummy-strings.c:342
1692 msgid "Bad magic number for krb5_transited structure"
1693 msgstr ""
1694
1695 #. kv5m_err.et:kv5m:KV5M_TRANSITED
1696 #: ../src/dummy-strings.c:343
1697 msgid "Bad magic number for krb5_enc_tkt_part structure"
1698 msgstr ""
1699
1700 #. kv5m_err.et:kv5m:KV5M_ENC_TKT_PART
1701 #: ../src/dummy-strings.c:344
1702 msgid "Bad magic number for krb5_ticket structure"
1703 msgstr ""
1704
1705 #. kv5m_err.et:kv5m:KV5M_TICKET
1706 #: ../src/dummy-strings.c:345
1707 msgid "Bad magic number for krb5_authenticator structure"
1708 msgstr ""
1709
1710 #. kv5m_err.et:kv5m:KV5M_AUTHENTICATOR
1711 #: ../src/dummy-strings.c:346
1712 msgid "Bad magic number for krb5_tkt_authent structure"
1713 msgstr ""
1714
1715 #. kv5m_err.et:kv5m:KV5M_TKT_AUTHENT
1716 #: ../src/dummy-strings.c:347
1717 msgid "Bad magic number for krb5_creds structure"
1718 msgstr ""
1719
1720 #. kv5m_err.et:kv5m:KV5M_CREDS
1721 #: ../src/dummy-strings.c:348
1722 msgid "Bad magic number for krb5_last_req_entry structure"
1723 msgstr ""
1724
1725 #. kv5m_err.et:kv5m:KV5M_LAST_REQ_ENTRY
1726 #: ../src/dummy-strings.c:349
1727 msgid "Bad magic number for krb5_pa_data structure"
1728 msgstr ""
1729
1730 #. kv5m_err.et:kv5m:KV5M_PA_DATA
1731 #: ../src/dummy-strings.c:350
1732 msgid "Bad magic number for krb5_kdc_req structure"
1733 msgstr ""
1734
1735 #. kv5m_err.et:kv5m:KV5M_KDC_REQ
1736 #: ../src/dummy-strings.c:351
1737 msgid "Bad magic number for krb5_enc_kdc_rep_part structure"
1738 msgstr ""
1739
1740 #. kv5m_err.et:kv5m:KV5M_ENC_KDC_REP_PART
1741 #: ../src/dummy-strings.c:352
1742 msgid "Bad magic number for krb5_kdc_rep structure"
1743 msgstr ""
1744
1745 #. kv5m_err.et:kv5m:KV5M_KDC_REP
1746 #: ../src/dummy-strings.c:353
1747 msgid "Bad magic number for krb5_error structure"
1748 msgstr ""
1749
1750 #. kv5m_err.et:kv5m:KV5M_ERROR
1751 #: ../src/dummy-strings.c:354
1752 msgid "Bad magic number for krb5_ap_req structure"
1753 msgstr ""
1754
1755 #. kv5m_err.et:kv5m:KV5M_AP_REQ
1756 #: ../src/dummy-strings.c:355
1757 msgid "Bad magic number for krb5_ap_rep structure"
1758 msgstr ""
1759
1760 #. kv5m_err.et:kv5m:KV5M_AP_REP
1761 #: ../src/dummy-strings.c:356
1762 msgid "Bad magic number for krb5_ap_rep_enc_part structure"
1763 msgstr ""
1764
1765 #. kv5m_err.et:kv5m:KV5M_AP_REP_ENC_PART
1766 #: ../src/dummy-strings.c:357
1767 msgid "Bad magic number for krb5_response structure"
1768 msgstr ""
1769
1770 #. kv5m_err.et:kv5m:KV5M_RESPONSE
1771 #: ../src/dummy-strings.c:358
1772 msgid "Bad magic number for krb5_safe structure"
1773 msgstr ""
1774
1775 #. kv5m_err.et:kv5m:KV5M_SAFE
1776 #: ../src/dummy-strings.c:359
1777 msgid "Bad magic number for krb5_priv structure"
1778 msgstr ""
1779
1780 #. kv5m_err.et:kv5m:KV5M_PRIV
1781 #: ../src/dummy-strings.c:360
1782 msgid "Bad magic number for krb5_priv_enc_part structure"
1783 msgstr ""
1784
1785 #. kv5m_err.et:kv5m:KV5M_PRIV_ENC_PART
1786 #: ../src/dummy-strings.c:361
1787 msgid "Bad magic number for krb5_cred structure"
1788 msgstr ""
1789
1790 #. kv5m_err.et:kv5m:KV5M_CRED
1791 #: ../src/dummy-strings.c:362
1792 msgid "Bad magic number for krb5_cred_info structure"
1793 msgstr ""
1794
1795 #. kv5m_err.et:kv5m:KV5M_CRED_INFO
1796 #: ../src/dummy-strings.c:363
1797 msgid "Bad magic number for krb5_cred_enc_part structure"
1798 msgstr ""
1799
1800 #. kv5m_err.et:kv5m:KV5M_CRED_ENC_PART
1801 #: ../src/dummy-strings.c:364
1802 msgid "Bad magic number for krb5_pwd_data structure"
1803 msgstr ""
1804
1805 #. kv5m_err.et:kv5m:KV5M_PWD_DATA
1806 #: ../src/dummy-strings.c:365
1807 msgid "Bad magic number for krb5_address structure"
1808 msgstr ""
1809
1810 #. kv5m_err.et:kv5m:KV5M_ADDRESS
1811 #: ../src/dummy-strings.c:366
1812 msgid "Bad magic number for krb5_keytab_entry structure"
1813 msgstr ""
1814
1815 #. kv5m_err.et:kv5m:KV5M_KEYTAB_ENTRY
1816 #: ../src/dummy-strings.c:367
1817 msgid "Bad magic number for krb5_context structure"
1818 msgstr ""
1819
1820 #. kv5m_err.et:kv5m:KV5M_CONTEXT
1821 #: ../src/dummy-strings.c:368
1822 msgid "Bad magic number for krb5_os_context structure"
1823 msgstr ""
1824
1825 #. kv5m_err.et:kv5m:KV5M_OS_CONTEXT
1826 #: ../src/dummy-strings.c:369
1827 msgid "Bad magic number for krb5_alt_method structure"
1828 msgstr ""
1829
1830 #. kv5m_err.et:kv5m:KV5M_ALT_METHOD
1831 #: ../src/dummy-strings.c:370
1832 msgid "Bad magic number for krb5_etype_info_entry structure"
1833 msgstr ""
1834
1835 #. kv5m_err.et:kv5m:KV5M_ETYPE_INFO_ENTRY
1836 #: ../src/dummy-strings.c:371
1837 msgid "Bad magic number for krb5_db_context structure"
1838 msgstr ""
1839
1840 #. kv5m_err.et:kv5m:KV5M_DB_CONTEXT
1841 #: ../src/dummy-strings.c:372
1842 msgid "Bad magic number for krb5_auth_context structure"
1843 msgstr ""
1844
1845 #. kv5m_err.et:kv5m:KV5M_AUTH_CONTEXT
1846 #: ../src/dummy-strings.c:373
1847 msgid "Bad magic number for krb5_keytab structure"
1848 msgstr ""
1849
1850 #. kv5m_err.et:kv5m:KV5M_KEYTAB
1851 #: ../src/dummy-strings.c:374
1852 msgid "Bad magic number for krb5_rcache structure"
1853 msgstr ""
1854
1855 #. kv5m_err.et:kv5m:KV5M_RCACHE
1856 #: ../src/dummy-strings.c:375
1857 msgid "Bad magic number for krb5_ccache structure"
1858 msgstr ""
1859
1860 #. kv5m_err.et:kv5m:KV5M_CCACHE
1861 #: ../src/dummy-strings.c:376
1862 msgid "Bad magic number for krb5_preauth_ops"
1863 msgstr ""
1864
1865 #. kv5m_err.et:kv5m:KV5M_PREAUTH_OPS
1866 #: ../src/dummy-strings.c:377
1867 msgid "Bad magic number for krb5_sam_challenge"
1868 msgstr ""
1869
1870 #. kv5m_err.et:kv5m:KV5M_SAM_CHALLENGE
1871 #: ../src/dummy-strings.c:378
1872 msgid "Bad magic number for krb5_sam_challenge_2"
1873 msgstr ""
1874
1875 #. kv5m_err.et:kv5m:KV5M_SAM_CHALLENGE_2
1876 #: ../src/dummy-strings.c:379
1877 msgid "Bad magic number for krb5_sam_key"
1878 msgstr ""
1879
1880 #. kv5m_err.et:kv5m:KV5M_SAM_KEY
1881 #. kv5m_err.et:kv5m:KV5M_ENC_SAM_RESPONSE_ENC
1882 #: ../src/dummy-strings.c:380 ../src/dummy-strings.c:381
1883 msgid "Bad magic number for krb5_enc_sam_response_enc"
1884 msgstr ""
1885
1886 #. kv5m_err.et:kv5m:KV5M_ENC_SAM_RESPONSE_ENC_2
1887 #: ../src/dummy-strings.c:382
1888 msgid "Bad magic number for krb5_sam_response"
1889 msgstr ""
1890
1891 #. kv5m_err.et:kv5m:KV5M_SAM_RESPONSE
1892 #: ../src/dummy-strings.c:383
1893 msgid "Bad magic number for krb5_sam_response 2"
1894 msgstr ""
1895
1896 #. kv5m_err.et:kv5m:KV5M_SAM_RESPONSE_2
1897 #: ../src/dummy-strings.c:384
1898 msgid "Bad magic number for krb5_predicted_sam_response"
1899 msgstr ""
1900
1901 #. kv5m_err.et:kv5m:KV5M_PREDICTED_SAM_RESPONSE
1902 #: ../src/dummy-strings.c:385
1903 msgid "Bad magic number for passwd_phrase_element"
1904 msgstr ""
1905
1906 #. kv5m_err.et:kv5m:KV5M_PASSWD_PHRASE_ELEMENT
1907 #: ../src/dummy-strings.c:386
1908 msgid "Bad magic number for GSSAPI OID"
1909 msgstr ""
1910
1911 #. kv5m_err.et:kv5m:KV5M_GSS_OID
1912 #: ../src/dummy-strings.c:387
1913 msgid "Bad magic number for GSSAPI QUEUE"
1914 msgstr ""
1915
1916 #. kdb5_err.et:kdb5:KRB5_KDB_RCSID
1917 #. kadm_err.et:kadm:KADM_NO_VERI
1918 #: ../src/dummy-strings.c:389 ../src/dummy-strings.c:535
1919 msgid "Entry already exists in database"
1920 msgstr ""
1921
1922 #. kdb5_err.et:kdb5:KRB5_KDB_INUSE
1923 #. kadm_err.et:kadm:KADM_INUSE
1924 #: ../src/dummy-strings.c:390 ../src/dummy-strings.c:536
1925 msgid "Database store error"
1926 msgstr ""
1927
1928 #. kdb5_err.et:kdb5:KRB5_KDB_UK_SERROR
1929 #. kadm_err.et:kadm:KADM_UK_SERROR
1930 #: ../src/dummy-strings.c:391 ../src/dummy-strings.c:537
1931 msgid "Database read error"
1932 msgstr ""
1933
1934 #. kdb5_err.et:kdb5:KRB5_KDB_UK_RERROR
1935 #. kadm_err.et:kadm:KADM_UK_RERROR
1936 #: ../src/dummy-strings.c:392 ../src/dummy-strings.c:538
1937 msgid "Insufficient access to perform requested operation"
1938 msgstr ""
1939
1940 #. kdb5_err.et:kdb5:KRB5_KDB_UNAUTH
1941 #. kadm_err.et:kadm:KADM_DATA
1942 #: ../src/dummy-strings.c:393 ../src/dummy-strings.c:540
1943 msgid "No such entry in the database"
1944 msgstr ""
1945
1946 #. kdb5_err.et:kdb5:KRB5_KDB_NOENTRY
1947 #. kadm_err.et:kadm:KADM_LENGTH_ERROR
1948 #: ../src/dummy-strings.c:394 ../src/dummy-strings.c:545
1949 msgid "Illegal use of wildcard"
1950 msgstr ""
1951
1952 #. kdb5_err.et:kdb5:KRB5_KDB_ILL_WILDCARD
1953 #: ../src/dummy-strings.c:395
1954 msgid "Database is locked or in use--try again later"
1955 msgstr ""
1956
1957 #. kdb5_err.et:kdb5:KRB5_KDB_DB_INUSE
1958 #: ../src/dummy-strings.c:396
1959 msgid "Database was modified during read"
1960 msgstr ""
1961
1962 #. kdb5_err.et:kdb5:KRB5_KDB_DB_CHANGED
1963 #: ../src/dummy-strings.c:397
1964 msgid "Database record is incomplete or corrupted"
1965 msgstr ""
1966
1967 #. kdb5_err.et:kdb5:KRB5_KDB_TRUNCATED_RECORD
1968 #: ../src/dummy-strings.c:398
1969 msgid "Attempt to lock database twice"
1970 msgstr ""
1971
1972 #. kdb5_err.et:kdb5:KRB5_KDB_RECURSIVELOCK
1973 #: ../src/dummy-strings.c:399
1974 msgid "Attempt to unlock database when not locked"
1975 msgstr ""
1976
1977 #. kdb5_err.et:kdb5:KRB5_KDB_NOTLOCKED
1978 #: ../src/dummy-strings.c:400
1979 msgid "Invalid kdb lock mode"
1980 msgstr ""
1981
1982 #. kdb5_err.et:kdb5:KRB5_KDB_BADLOCKMODE
1983 #: ../src/dummy-strings.c:401
1984 msgid "Database has not been initialized"
1985 msgstr ""
1986
1987 #. kdb5_err.et:kdb5:KRB5_KDB_DBNOTINITED
1988 #: ../src/dummy-strings.c:402
1989 msgid "Database has already been initialized"
1990 msgstr ""
1991
1992 #. kdb5_err.et:kdb5:KRB5_KDB_DBINITED
1993 #: ../src/dummy-strings.c:403
1994 msgid "Bad direction for converting keys"
1995 msgstr ""
1996
1997 #. kdb5_err.et:kdb5:KRB5_KDB_ILLDIRECTION
1998 #: ../src/dummy-strings.c:404
1999 msgid "Cannot find master key record in database"
2000 msgstr ""
2001
2002 #. kdb5_err.et:kdb5:KRB5_KDB_NOMASTERKEY
2003 #: ../src/dummy-strings.c:405
2004 msgid "Master key does not match database"
2005 msgstr ""
2006
2007 #. kdb5_err.et:kdb5:KRB5_KDB_BADMASTERKEY
2008 #: ../src/dummy-strings.c:406
2009 msgid "Key size in database is invalid"
2010 msgstr ""
2011
2012 #. kdb5_err.et:kdb5:KRB5_KDB_INVALIDKEYSIZE
2013 #: ../src/dummy-strings.c:407
2014 msgid "Cannot find/read stored master key"
2015 msgstr ""
2016
2017 #. kdb5_err.et:kdb5:KRB5_KDB_CANTREAD_STORED
2018 #: ../src/dummy-strings.c:408
2019 msgid "Stored master key is corrupted"
2020 msgstr ""
2021
2022 #. kdb5_err.et:kdb5:KRB5_KDB_BADSTORED_MKEY
2023 #: ../src/dummy-strings.c:409
2024 msgid "Insufficient access to lock database"
2025 msgstr ""
2026
2027 #. kdb5_err.et:kdb5:KRB5_KDB_CANTLOCK_DB
2028 #: ../src/dummy-strings.c:410
2029 msgid "Database format error"
2030 msgstr ""
2031
2032 #. kdb5_err.et:kdb5:KRB5_KDB_DB_CORRUPT
2033 #: ../src/dummy-strings.c:411
2034 msgid "Unsupported version in database entry"
2035 msgstr ""
2036
2037 #. kdb5_err.et:kdb5:KRB5_KDB_BAD_VERSION
2038 #: ../src/dummy-strings.c:412
2039 msgid "Unsupported salt type"
2040 msgstr ""
2041
2042 #. kdb5_err.et:kdb5:KRB5_KDB_BAD_SALTTYPE
2043 #: ../src/dummy-strings.c:413
2044 msgid "Unsupported encryption type"
2045 msgstr ""
2046
2047 #. kdb5_err.et:kdb5:KRB5_KDB_BAD_ENCTYPE
2048 #: ../src/dummy-strings.c:414
2049 msgid "Bad database creation flags"
2050 msgstr ""
2051
2052 #. kdb5_err.et:kdb5:KRB5_KDB_BAD_CREATEFLAGS
2053 #: ../src/dummy-strings.c:415
2054 msgid "No matching key in entry having a permitted enctype"
2055 msgstr ""
2056
2057 #. kdb5_err.et:kdb5:KRB5_KDB_NO_PERMITTED_KEY
2058 #: ../src/dummy-strings.c:416
2059 msgid "No matching key in entry"
2060 msgstr ""
2061
2062 #. kdb5_err.et:kdb5:KRB5_KDB_NO_MATCHING_KEY
2063 #: ../src/dummy-strings.c:417
2064 msgid "No Error"
2065 msgstr ""
2066
2067 #. adb_err.et:adb:OSA_ADB_NOERR
2068 #. kadm_err.et:ovk:KADM5_BAD_DB
2069 #: ../src/dummy-strings.c:418 ../src/dummy-strings.c:438
2070 msgid "Principal or policy already exists"
2071 msgstr ""
2072
2073 #. adb_err.et:adb:OSA_ADB_DUP
2074 #: ../src/dummy-strings.c:419
2075 msgid "Principal or policy does not exist"
2076 msgstr ""
2077
2078 #. adb_err.et:adb:OSA_ADB_NOENT
2079 #: ../src/dummy-strings.c:420
2080 msgid "Database not initialized"
2081 msgstr ""
2082
2083 #. adb_err.et:adb:OSA_ADB_DBINIT
2084 #: ../src/dummy-strings.c:421
2085 msgid "Invalid policy name"
2086 msgstr ""
2087
2088 #. adb_err.et:adb:OSA_ADB_BAD_POLICY
2089 #: ../src/dummy-strings.c:422
2090 msgid "Invalid principal name"
2091 msgstr ""
2092
2093 #. adb_err.et:adb:OSA_ADB_BAD_PRINC
2094 #. kadm_err.et:ovk:KADM5_AUTH_INSUFFICIENT
2095 #: ../src/dummy-strings.c:423 ../src/dummy-strings.c:437
2096 msgid "Database inconsistency detected"
2097 msgstr ""
2098
2099 #. adb_err.et:adb:OSA_ADB_BAD_DB
2100 #: ../src/dummy-strings.c:424
2101 msgid "XDR encoding error"
2102 msgstr ""
2103
2104 #. adb_err.et:adb:OSA_ADB_XDR_FAILURE
2105 #: ../src/dummy-strings.c:425
2106 msgid "Failure!"
2107 msgstr ""
2108
2109 #. adb_err.et:adb:OSA_ADB_FAILURE
2110 #: ../src/dummy-strings.c:426
2111 msgid "Bad lock mode"
2112 msgstr ""
2113
2114 #. adb_err.et:adb:OSA_ADB_BADLOCKMODE
2115 #: ../src/dummy-strings.c:427
2116 msgid "Cannot lock database"
2117 msgstr ""
2118
2119 #. adb_err.et:adb:OSA_ADB_CANTLOCK_DB
2120 #: ../src/dummy-strings.c:428
2121 msgid "Database not locked"
2122 msgstr ""
2123
2124 #. adb_err.et:adb:OSA_ADB_NOTLOCKED
2125 #: ../src/dummy-strings.c:429
2126 msgid "KADM5 administration database lock file missing"
2127 msgstr ""
2128
2129 #. adb_err.et:adb:OSA_ADB_NOLOCKFILE
2130 #: ../src/dummy-strings.c:430
2131 msgid "Insufficient permission to lock file"
2132 msgstr ""
2133
2134 #. adb_err.et:adb:OSA_ADB_NOEXCL_PERM
2135 #: ../src/dummy-strings.c:431
2136 msgid "Operation failed for unspecified reason"
2137 msgstr ""
2138
2139 #. kadm_err.et:ovk:KADM5_FAILURE
2140 #: ../src/dummy-strings.c:432
2141 msgid "Operation requires ``get'' privilege"
2142 msgstr ""
2143
2144 #. kadm_err.et:ovk:KADM5_AUTH_GET
2145 #: ../src/dummy-strings.c:433
2146 msgid "Operation requires ``add'' privilege"
2147 msgstr ""
2148
2149 #. kadm_err.et:ovk:KADM5_AUTH_ADD
2150 #: ../src/dummy-strings.c:434
2151 msgid "Operation requires ``modify'' privilege"
2152 msgstr ""
2153
2154 #. kadm_err.et:ovk:KADM5_AUTH_MODIFY
2155 #: ../src/dummy-strings.c:435
2156 msgid "Operation requires ``delete'' privilege"
2157 msgstr ""
2158
2159 #. kadm_err.et:ovk:KADM5_AUTH_DELETE
2160 #: ../src/dummy-strings.c:436
2161 msgid "Insufficient authorization for operation"
2162 msgstr ""
2163
2164 #. kadm_err.et:ovk:KADM5_DUP
2165 #: ../src/dummy-strings.c:439
2166 msgid "Communication failure with server"
2167 msgstr ""
2168
2169 #. kadm_err.et:ovk:KADM5_RPC_ERROR
2170 #: ../src/dummy-strings.c:440
2171 msgid "No administration server found for realm"
2172 msgstr ""
2173
2174 #. kadm_err.et:ovk:KADM5_NO_SRV
2175 #: ../src/dummy-strings.c:441
2176 msgid "Password history principal key version mismatch"
2177 msgstr ""
2178
2179 #. kadm_err.et:ovk:KADM5_BAD_HIST_KEY
2180 #: ../src/dummy-strings.c:442
2181 msgid "Connection to server not initialized"
2182 msgstr ""
2183
2184 #. kadm_err.et:ovk:KADM5_NOT_INIT
2185 #: ../src/dummy-strings.c:443
2186 msgid "Principal does not exist"
2187 msgstr ""
2188
2189 #. kadm_err.et:ovk:KADM5_UNK_PRINC
2190 #: ../src/dummy-strings.c:444
2191 msgid "Policy does not exist"
2192 msgstr ""
2193
2194 #. kadm_err.et:ovk:KADM5_UNK_POLICY
2195 #: ../src/dummy-strings.c:445
2196 msgid "Invalid field mask for operation"
2197 msgstr ""
2198
2199 #. kadm_err.et:ovk:KADM5_BAD_MASK
2200 #: ../src/dummy-strings.c:446
2201 msgid "Invalid number of character classes"
2202 msgstr ""
2203
2204 #. kadm_err.et:ovk:KADM5_BAD_CLASS
2205 #: ../src/dummy-strings.c:447
2206 msgid "Invalid password length"
2207 msgstr ""
2208
2209 #. kadm_err.et:ovk:KADM5_BAD_LENGTH
2210 #: ../src/dummy-strings.c:448
2211 msgid "Illegal policy name"
2212 msgstr ""
2213
2214 #. kadm_err.et:ovk:KADM5_BAD_POLICY
2215 #: ../src/dummy-strings.c:449
2216 msgid "Illegal principal name"
2217 msgstr ""
2218
2219 #. kadm_err.et:ovk:KADM5_BAD_PRINCIPAL
2220 #: ../src/dummy-strings.c:450
2221 msgid "Invalid auxillary attributes"
2222 msgstr ""
2223
2224 #. kadm_err.et:ovk:KADM5_BAD_AUX_ATTR
2225 #: ../src/dummy-strings.c:451
2226 msgid "Invalid password history count"
2227 msgstr ""
2228
2229 #. kadm_err.et:ovk:KADM5_BAD_HISTORY
2230 #: ../src/dummy-strings.c:452
2231 msgid "Password minimum life is greater than password maximum life"
2232 msgstr ""
2233
2234 #. kadm_err.et:ovk:KADM5_BAD_MIN_PASS_LIFE
2235 #: ../src/dummy-strings.c:453
2236 msgid "Password is too short"
2237 msgstr ""
2238
2239 #. kadm_err.et:ovk:KADM5_PASS_Q_TOOSHORT
2240 #: ../src/dummy-strings.c:454
2241 msgid "Password does not contain enough character classes"
2242 msgstr ""
2243
2244 #. kadm_err.et:ovk:KADM5_PASS_Q_CLASS
2245 #: ../src/dummy-strings.c:455
2246 msgid "Password is in the password dictionary"
2247 msgstr ""
2248
2249 #. kadm_err.et:ovk:KADM5_PASS_Q_DICT
2250 #: ../src/dummy-strings.c:456
2251 msgid "Cannot reuse password"
2252 msgstr ""
2253
2254 #. kadm_err.et:ovk:KADM5_PASS_REUSE
2255 #: ../src/dummy-strings.c:457
2256 msgid "Current password's minimum life has not expired"
2257 msgstr ""
2258
2259 #. kadm_err.et:ovk:KADM5_PASS_TOOSOON
2260 #: ../src/dummy-strings.c:458
2261 msgid "Policy is in use"
2262 msgstr ""
2263
2264 #. kadm_err.et:ovk:KADM5_POLICY_REF
2265 #: ../src/dummy-strings.c:459
2266 msgid "Connection to server already initialized"
2267 msgstr ""
2268
2269 #. kadm_err.et:ovk:KADM5_INIT
2270 #: ../src/dummy-strings.c:460
2271 msgid "Incorrect password"
2272 msgstr ""
2273
2274 #. kadm_err.et:ovk:KADM5_BAD_PASSWORD
2275 #: ../src/dummy-strings.c:461
2276 msgid "Cannot change protected principal"
2277 msgstr ""
2278
2279 #. kadm_err.et:ovk:KADM5_PROTECT_PRINCIPAL
2280 #: ../src/dummy-strings.c:462
2281 msgid "Programmer error! Bad Admin server handle"
2282 msgstr ""
2283
2284 #. kadm_err.et:ovk:KADM5_BAD_SERVER_HANDLE
2285 #: ../src/dummy-strings.c:463
2286 msgid "Programmer error! Bad API structure version"
2287 msgstr ""
2288
2289 #. kadm_err.et:ovk:KADM5_BAD_STRUCT_VERSION
2290 #: ../src/dummy-strings.c:464
2291 msgid ""
2292 "API structure version specified by application is no longer supported (to "
2293 "fix, recompile application against current KADM5 API header files and "
2294 "libraries)"
2295 msgstr ""
2296
2297 #. kadm_err.et:ovk:KADM5_OLD_STRUCT_VERSION
2298 #: ../src/dummy-strings.c:465
2299 msgid ""
2300 "API structure version specified by application is unknown to libraries (to "
2301 "fix, obtain current KADM5 API header files and libraries and recompile "
2302 "application)"
2303 msgstr ""
2304
2305 #. kadm_err.et:ovk:KADM5_NEW_STRUCT_VERSION
2306 #: ../src/dummy-strings.c:466
2307 msgid "Programmer error! Bad API version"
2308 msgstr ""
2309
2310 #. kadm_err.et:ovk:KADM5_BAD_API_VERSION
2311 #: ../src/dummy-strings.c:467
2312 msgid ""
2313 "API version specified by application is no longer supported by libraries (to "
2314 "fix, update application to adhere to current API version and recompile)"
2315 msgstr ""
2316
2317 #. kadm_err.et:ovk:KADM5_OLD_LIB_API_VERSION
2318 #: ../src/dummy-strings.c:468
2319 msgid ""
2320 "API version specified by application is no longer supported by server (to "
2321 "fix, update application to adhere to current API version and recompile)"
2322 msgstr ""
2323
2324 #. kadm_err.et:ovk:KADM5_OLD_SERVER_API_VERSION
2325 #: ../src/dummy-strings.c:469
2326 msgid ""
2327 "API version specified by application is unknown to libraries (to fix, obtain "
2328 "current KADM5 API header files and libraries and recompile application)"
2329 msgstr ""
2330
2331 #. kadm_err.et:ovk:KADM5_NEW_LIB_API_VERSION
2332 #: ../src/dummy-strings.c:470
2333 msgid ""
2334 "API version specified by application is unknown to server (to fix, obtain "
2335 "and install newest KADM5 Admin Server)"
2336 msgstr ""
2337
2338 #. kadm_err.et:ovk:KADM5_NEW_SERVER_API_VERSION
2339 #: ../src/dummy-strings.c:471
2340 msgid "Database error! Required KADM5 principal missing"
2341 msgstr ""
2342
2343 #. kadm_err.et:ovk:KADM5_SECURE_PRINC_MISSING
2344 #: ../src/dummy-strings.c:472
2345 msgid "The salt type of the specified principal does not support renaming"
2346 msgstr ""
2347
2348 #. kadm_err.et:ovk:KADM5_NO_RENAME_SALT
2349 #: ../src/dummy-strings.c:473
2350 msgid "Illegal configuration parameter for remote KADM5 client"
2351 msgstr ""
2352
2353 #. kadm_err.et:ovk:KADM5_BAD_CLIENT_PARAMS
2354 #: ../src/dummy-strings.c:474
2355 msgid "Illegal configuration parameter for local KADM5 client"
2356 msgstr ""
2357
2358 #. kadm_err.et:ovk:KADM5_BAD_SERVER_PARAMS
2359 #: ../src/dummy-strings.c:475
2360 msgid "Operation requires ``list'' privilege"
2361 msgstr ""
2362
2363 #. kadm_err.et:ovk:KADM5_AUTH_LIST
2364 #: ../src/dummy-strings.c:476
2365 msgid "Operation requires ``change-password'' privilege"
2366 msgstr ""
2367
2368 #. kadm_err.et:ovk:KADM5_AUTH_CHANGEPW
2369 #: ../src/dummy-strings.c:477
2370 msgid "GSS-API (or Kerberos) error"
2371 msgstr ""
2372
2373 #. kadm_err.et:ovk:KADM5_GSS_ERROR
2374 #: ../src/dummy-strings.c:478
2375 msgid "Programmer error! Illegal tagged data list type"
2376 msgstr ""
2377
2378 #. kadm_err.et:ovk:KADM5_BAD_TL_TYPE
2379 #: ../src/dummy-strings.c:479
2380 msgid "Required parameters in kdc.conf missing"
2381 msgstr ""
2382
2383 #. kadm_err.et:ovk:KADM5_MISSING_CONF_PARAMS
2384 #: ../src/dummy-strings.c:480
2385 msgid "Bad krb5 admin server hostname"
2386 msgstr ""
2387
2388 #. kadm_err.et:ovk:KADM5_BAD_SERVER_NAME
2389 #: ../src/dummy-strings.c:481
2390 msgid "Operation requires ``set-key'' privilege"
2391 msgstr ""
2392
2393 #. kadm_err.et:ovk:KADM5_AUTH_SETKEY
2394 #: ../src/dummy-strings.c:482
2395 msgid "Multiple values for single or folded enctype"
2396 msgstr ""
2397
2398 #. kadm_err.et:ovk:KADM5_SETKEY_DUP_ENCTYPES
2399 #: ../src/dummy-strings.c:483
2400 msgid "Invalid enctype for setv4key"
2401 msgstr ""
2402
2403 #. kadm_err.et:ovk:KADM5_SETV4KEY_INVAL_ENCTYPE
2404 #: ../src/dummy-strings.c:484
2405 msgid "Mismatched enctypes for setkey3"
2406 msgstr ""
2407
2408 #. kadm_err.et:ovk:KADM5_SETKEY3_ETYPE_MISMATCH
2409 #: ../src/dummy-strings.c:485
2410 msgid "Missing parameters in krb5.conf required for kadmin client"
2411 msgstr ""
2412
2413 #. kadm_err.et:ovk:KADM5_MISSING_KRB5_CONF_PARAMS
2414 #: ../src/dummy-strings.c:486
2415 msgid "while getting policy info."
2416 msgstr ""
2417
2418 #. chpass_util_strings.et:ovku:CHPASS_UTIL_GET_POLICY_INFO
2419 #: ../src/dummy-strings.c:487
2420 msgid "while getting principal info."
2421 msgstr ""
2422
2423 #. chpass_util_strings.et:ovku:CHPASS_UTIL_NEW_PASSWORD_MISMATCH
2424 #: ../src/dummy-strings.c:489
2425 msgid "New password"
2426 msgstr ""
2427
2428 #. chpass_util_strings.et:ovku:CHPASS_UTIL_NEW_PASSWORD_PROMPT
2429 #: ../src/dummy-strings.c:490
2430 msgid "New password (again)"
2431 msgstr ""
2432
2433 #. chpass_util_strings.et:ovku:CHPASS_UTIL_NEW_PASSWORD_AGAIN_PROMPT
2434 #: ../src/dummy-strings.c:491
2435 msgid ""
2436 "You must type a password. Passwords must be at least one character long.\n"
2437 msgstr ""
2438
2439 #. chpass_util_strings.et:ovku:CHPASS_UTIL_NO_PASSWORD_READ
2440 #: ../src/dummy-strings.c:492
2441 msgid "yet no policy set! Contact your system security administrator."
2442 msgstr ""
2443
2444 #. chpass_util_strings.et:ovku:CHPASS_UTIL_NO_POLICY_YET_Q_ERROR
2445 #: ../src/dummy-strings.c:493
2446 msgid "Password changed.\n"
2447 msgstr ""
2448
2449 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_CHANGED
2450 #: ../src/dummy-strings.c:494
2451 msgid ""
2452 "New password was found in a dictionary of possible passwords and\n"
2453 "therefore may be easily guessed. Please choose another password.\n"
2454 "See the ovpasswd man page for help in choosing a good password."
2455 msgstr ""
2456
2457 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_NOT_CHANGED
2458 #: ../src/dummy-strings.c:498
2459 #, c-format
2460 msgid ""
2461 "New password is too short.\n"
2462 "Please choose a password which is at least %d characters long."
2463 msgstr ""
2464
2465 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_TOO_SHORT
2466 #: ../src/dummy-strings.c:500
2467 #, c-format
2468 msgid ""
2469 "New password does not have enough character classes.\n"
2470 "The character classes are:\n"
2471 "\t- lower-case letters,\n"
2472 "\t- upper-case letters,\n"
2473 "\t- digits,\n"
2474 "\t- punctuation, and\n"
2475 "\t- all other characters (e.g., control characters).\n"
2476 "Please choose a password with at least %d character classes."
2477 msgstr ""
2478
2479 #. chpass_util_strings.et:ovku:CHPASS_UTIL_TOO_FEW_CLASSES
2480 #: ../src/dummy-strings.c:508
2481 #, c-format
2482 msgid ""
2483 "Password cannot be changed because it was changed too recently.\n"
2484 "Please wait until %s before you change it.\n"
2485 "If you need to change your password before then, contact your system\n"
2486 "security administrator."
2487 msgstr ""
2488
2489 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_TOO_SOON
2490 #: ../src/dummy-strings.c:512
2491 msgid "New password was used previously. Please choose a different password."
2492 msgstr ""
2493
2494 #. chpass_util_strings.et:ovku:CHPASS_UTIL_WHILE_READING_PASSWORD
2495 #: ../src/dummy-strings.c:515
2496 msgid "$Header$"
2497 msgstr ""
2498
2499 #. kadm_err.et:kadm:KADM_RCSID
2500 #: ../src/dummy-strings.c:516
2501 msgid "Cannot fetch local realm"
2502 msgstr ""
2503
2504 #. kadm_err.et:kadm:KADM_NO_REALM
2505 #: ../src/dummy-strings.c:517
2506 msgid "Unable to fetch credentials"
2507 msgstr ""
2508
2509 #. kadm_err.et:kadm:KADM_NO_CRED
2510 #: ../src/dummy-strings.c:518
2511 msgid "Bad key supplied"
2512 msgstr ""
2513
2514 #. kadm_err.et:kadm:KADM_BAD_KEY
2515 #: ../src/dummy-strings.c:519
2516 msgid "Can't encrypt data"
2517 msgstr ""
2518
2519 #. kadm_err.et:kadm:KADM_NO_ENCRYPT
2520 #: ../src/dummy-strings.c:520
2521 msgid "Cannot encode/decode authentication info"
2522 msgstr ""
2523
2524 #. kadm_err.et:kadm:KADM_NO_AUTH
2525 #: ../src/dummy-strings.c:521
2526 msgid "Principal attemping change is in wrong realm"
2527 msgstr ""
2528
2529 #. kadm_err.et:kadm:KADM_WRONG_REALM
2530 #: ../src/dummy-strings.c:522
2531 msgid "Packet is too large"
2532 msgstr ""
2533
2534 #. kadm_err.et:kadm:KADM_NO_ROOM
2535 #: ../src/dummy-strings.c:523
2536 msgid "Version number is incorrect"
2537 msgstr ""
2538
2539 #. kadm_err.et:kadm:KADM_BAD_VER
2540 #: ../src/dummy-strings.c:524
2541 msgid "Checksum does not match"
2542 msgstr ""
2543
2544 #. kadm_err.et:kadm:KADM_BAD_CHK
2545 #: ../src/dummy-strings.c:525
2546 msgid "Unsealing private data failed"
2547 msgstr ""
2548
2549 #. kadm_err.et:kadm:KADM_NO_READ
2550 #: ../src/dummy-strings.c:526
2551 msgid "Unsupported operation"
2552 msgstr ""
2553
2554 #. kadm_err.et:kadm:KADM_NO_OPCODE
2555 #: ../src/dummy-strings.c:527
2556 msgid "Could not find administrating host"
2557 msgstr ""
2558
2559 #. kadm_err.et:kadm:KADM_NO_HOST
2560 #: ../src/dummy-strings.c:528
2561 msgid "Administrating host name is unknown"
2562 msgstr ""
2563
2564 #. kadm_err.et:kadm:KADM_UNK_HOST
2565 #: ../src/dummy-strings.c:529
2566 msgid "Could not find service name in services database"
2567 msgstr ""
2568
2569 #. kadm_err.et:kadm:KADM_NO_SERV
2570 #: ../src/dummy-strings.c:530
2571 msgid "Could not create socket"
2572 msgstr ""
2573
2574 #. kadm_err.et:kadm:KADM_NO_SOCK
2575 #: ../src/dummy-strings.c:531
2576 msgid "Could not connect to server"
2577 msgstr ""
2578
2579 #. kadm_err.et:kadm:KADM_NO_CONN
2580 #: ../src/dummy-strings.c:532
2581 msgid "Could not fetch local socket address"
2582 msgstr ""
2583
2584 #. kadm_err.et:kadm:KADM_NO_HERE
2585 #: ../src/dummy-strings.c:533
2586 msgid "Could not fetch master key"
2587 msgstr ""
2588
2589 #. kadm_err.et:kadm:KADM_NO_MAST
2590 #: ../src/dummy-strings.c:534
2591 msgid "Could not verify master key"
2592 msgstr ""
2593
2594 #. kadm_err.et:kadm:KADM_UNAUTH
2595 #: ../src/dummy-strings.c:539
2596 msgid "Data is available for return to client"
2597 msgstr ""
2598
2599 #. kadm_err.et:kadm:KADM_NOENTRY
2600 #: ../src/dummy-strings.c:541
2601 msgid "Memory exhausted"
2602 msgstr ""
2603
2604 #. kadm_err.et:kadm:KADM_NOMEM
2605 #: ../src/dummy-strings.c:542
2606 msgid "Could not fetch system hostname"
2607 msgstr ""
2608
2609 #. kadm_err.et:kadm:KADM_NO_HOSTNAME
2610 #: ../src/dummy-strings.c:543
2611 msgid "Could not bind port"
2612 msgstr ""
2613
2614 #. kadm_err.et:kadm:KADM_NO_BIND
2615 #: ../src/dummy-strings.c:544
2616 msgid "Length mismatch problem"
2617 msgstr ""
2618
2619 #. kadm_err.et:kadm:KADM_ILL_WILDCARD
2620 #: ../src/dummy-strings.c:546
2621 msgid "Database locked or in use"
2622 msgstr ""
2623
2624 #. kadm_err.et:kadm:KADM_DB_INUSE
2625 #: ../src/dummy-strings.c:547
2626 msgid "Insecure password rejected"
2627 msgstr ""
2628
2629 #. kadm_err.et:kadm:KADM_INSECURE_PW
2630 #: ../src/dummy-strings.c:548
2631 msgid "Cleartext password and DES key did not match"
2632 msgstr ""
2633
2634 #. kadm_err.et:kadm:KADM_PW_MISMATCH
2635 #: ../src/dummy-strings.c:549
2636 msgid "Invalid principal for change srvtab request"
2637 msgstr ""
2638
2639 #. kadm_err.et:kadm:KADM_NOT_SERV_PRINC
2640 #: ../src/dummy-strings.c:550
2641 msgid "Realm name too long"
2642 msgstr ""
2643
2644 #. kadm_err.et:kadm:KADM_REALM_TOO_LONG
2645 #: ../src/dummy-strings.c:551
2646 msgid "Kerberos successful"
2647 msgstr ""
2648
2649 #. krb_err.et:krb:KRBET_KSUCCESS
2650 #: ../src/dummy-strings.c:552
2651 msgid "Kerberos principal expired"
2652 msgstr ""
2653
2654 #. krb_err.et:krb:KRBET_KDC_NAME_EXP
2655 #: ../src/dummy-strings.c:553
2656 msgid "Kerberos service expired"
2657 msgstr ""
2658
2659 #. krb_err.et:krb:KRBET_KDC_SERVICE_EXP
2660 #: ../src/dummy-strings.c:554
2661 msgid "Kerberos auth expired"
2662 msgstr ""
2663
2664 #. krb_err.et:krb:KRBET_KDC_AUTH_EXP
2665 #: ../src/dummy-strings.c:555
2666 msgid "Unknown kerberos protocol version"
2667 msgstr ""
2668
2669 #. krb_err.et:krb:KRBET_KDC_PKT_VER
2670 #: ../src/dummy-strings.c:556
2671 msgid "Incorrect kerberos master key version for principal"
2672 msgstr ""
2673
2674 #. krb_err.et:krb:KRBET_KDC_P_MKEY_VER
2675 #: ../src/dummy-strings.c:557
2676 msgid "Incorrect kerberos master key version for service"
2677 msgstr ""
2678
2679 #. krb_err.et:krb:KRBET_KDC_S_MKEY_VER
2680 #: ../src/dummy-strings.c:558
2681 msgid "Bad byte order (kerberos)"
2682 msgstr ""
2683
2684 #. krb_err.et:krb:KRBET_KDC_BYTE_ORDER
2685 #: ../src/dummy-strings.c:559
2686 msgid "Kerberos principal unknown"
2687 msgstr ""
2688
2689 #. krb_err.et:krb:KRBET_KDC_PR_UNKNOWN
2690 #: ../src/dummy-strings.c:560
2691 msgid "Kerberos principal not unique"
2692 msgstr ""
2693
2694 #. krb_err.et:krb:KRBET_KDC_PR_N_UNIQUE
2695 #: ../src/dummy-strings.c:561
2696 msgid "Kerberos principal has null key"
2697 msgstr ""
2698
2699 #. krb_err.et:krb:KRBET_KDC_NULL_KEY
2700 #: ../src/dummy-strings.c:562
2701 msgid "Reserved error message 11 (kerberos)"
2702 msgstr ""
2703
2704 #. krb_err.et:krb:KRBET_KRB_RES11
2705 #: ../src/dummy-strings.c:563
2706 msgid "Reserved error message 12 (kerberos)"
2707 msgstr ""
2708
2709 #. krb_err.et:krb:KRBET_KRB_RES12
2710 #: ../src/dummy-strings.c:564
2711 msgid "Reserved error message 13 (kerberos)"
2712 msgstr ""
2713
2714 #. krb_err.et:krb:KRBET_KRB_RES13
2715 #: ../src/dummy-strings.c:565
2716 msgid "Reserved error message 14 (kerberos)"
2717 msgstr ""
2718
2719 #. krb_err.et:krb:KRBET_KRB_RES14
2720 #: ../src/dummy-strings.c:566
2721 msgid "Reserved error message 15 (kerberos)"
2722 msgstr ""
2723
2724 #. krb_err.et:krb:KRBET_KRB_RES15
2725 #: ../src/dummy-strings.c:567
2726 msgid "Reserved error message 16 (kerberos)"
2727 msgstr ""
2728
2729 #. krb_err.et:krb:KRBET_KRB_RES16
2730 #: ../src/dummy-strings.c:568
2731 msgid "Reserved error message 17 (kerberos)"
2732 msgstr ""
2733
2734 #. krb_err.et:krb:KRBET_KRB_RES17
2735 #: ../src/dummy-strings.c:569
2736 msgid "Reserved error message 18 (kerberos)"
2737 msgstr ""
2738
2739 #. krb_err.et:krb:KRBET_KRB_RES18
2740 #: ../src/dummy-strings.c:570
2741 msgid "Reserved error message 19 (kerberos)"
2742 msgstr ""
2743
2744 #. krb_err.et:krb:KRBET_KRB_RES19
2745 #: ../src/dummy-strings.c:571
2746 msgid "Generic error from Kerberos KDC"
2747 msgstr ""
2748
2749 #. krb_err.et:krb:KRBET_KDC_GEN_ERR
2750 #: ../src/dummy-strings.c:572
2751 msgid "Can't read Kerberos ticket file"
2752 msgstr ""
2753
2754 #. krb_err.et:krb:KRBET_GC_TKFIL
2755 #: ../src/dummy-strings.c:573
2756 msgid "Can't find Kerberos ticket or TGT"
2757 msgstr ""
2758
2759 #. krb_err.et:krb:KRBET_GC_NOTKT
2760 #: ../src/dummy-strings.c:574
2761 msgid "Reserved error message 23 (krb_get_cred)"
2762 msgstr ""
2763
2764 #. krb_err.et:krb:KRBET_KRB_RES23
2765 #: ../src/dummy-strings.c:575
2766 msgid "Reserved error message 24 (krb_get_cred)"
2767 msgstr ""
2768
2769 #. krb_err.et:krb:KRBET_KRB_RES24
2770 #: ../src/dummy-strings.c:576
2771 msgid "Reserved error message 25 (krb_get_cred)"
2772 msgstr ""
2773
2774 #. krb_err.et:krb:KRBET_KRB_RES25
2775 #: ../src/dummy-strings.c:577
2776 msgid "Kerberos TGT Expired"
2777 msgstr ""
2778
2779 #. krb_err.et:krb:KRBET_MK_AP_TGTEXP
2780 #: ../src/dummy-strings.c:578
2781 msgid "Reserved error message 27 (krb_mk_req)"
2782 msgstr ""
2783
2784 #. krb_err.et:krb:KRBET_KRB_RES27
2785 #: ../src/dummy-strings.c:579
2786 msgid "Reserved error message 28 (krb_mk_req)"
2787 msgstr ""
2788
2789 #. krb_err.et:krb:KRBET_KRB_RES28
2790 #: ../src/dummy-strings.c:580
2791 msgid "Reserved error message 29 (krb_mk_req)"
2792 msgstr ""
2793
2794 #. krb_err.et:krb:KRBET_KRB_RES29
2795 #: ../src/dummy-strings.c:581
2796 msgid "Reserved error message 30 (krb_mk_req)"
2797 msgstr ""
2798
2799 #. krb_err.et:krb:KRBET_KRB_RES30
2800 #: ../src/dummy-strings.c:582
2801 msgid "Can't decode authenticator (krb_rd_req)"
2802 msgstr ""
2803
2804 #. krb_err.et:krb:KRBET_RD_AP_UNDEC
2805 #: ../src/dummy-strings.c:583
2806 msgid "Kerberos ticket expired (krb_rd_req)"
2807 msgstr ""
2808
2809 #. krb_err.et:krb:KRBET_RD_AP_EXP
2810 #: ../src/dummy-strings.c:584
2811 msgid "Kerberos ticket not yet valid (krb_rd_req)"
2812 msgstr ""
2813
2814 #. krb_err.et:krb:KRBET_RD_AP_NYV
2815 #: ../src/dummy-strings.c:585
2816 msgid "Repeated request (krb_rd_req)"
2817 msgstr ""
2818
2819 #. krb_err.et:krb:KRBET_RD_AP_REPEAT
2820 #: ../src/dummy-strings.c:586
2821 msgid "Kerberos ticket is for wrong server (krb_rd_req)"
2822 msgstr ""
2823
2824 #. krb_err.et:krb:KRBET_RD_AP_NOT_US
2825 #: ../src/dummy-strings.c:587
2826 msgid "Kerberos request inconsistent"
2827 msgstr ""
2828
2829 #. krb_err.et:krb:KRBET_RD_AP_INCON
2830 #: ../src/dummy-strings.c:588
2831 msgid "Time is out of bounds (krb_rd_req)"
2832 msgstr ""
2833
2834 #. krb_err.et:krb:KRBET_RD_AP_TIME
2835 #: ../src/dummy-strings.c:589
2836 msgid "Incorrect net address (krb_rd_req)"
2837 msgstr ""
2838
2839 #. krb_err.et:krb:KRBET_RD_AP_BADD
2840 #: ../src/dummy-strings.c:590
2841 msgid "Kerberos protocol version mismatch (krb_rd_req)"
2842 msgstr ""
2843
2844 #. krb_err.et:krb:KRBET_RD_AP_VERSION
2845 #: ../src/dummy-strings.c:591
2846 msgid "Invalid msg type (krb_rd_req)"
2847 msgstr ""
2848
2849 #. krb_err.et:krb:KRBET_RD_AP_MSG_TYPE
2850 #: ../src/dummy-strings.c:592
2851 msgid "Message integrity error (krb_rd_req)"
2852 msgstr ""
2853
2854 #. krb_err.et:krb:KRBET_RD_AP_MODIFIED
2855 #: ../src/dummy-strings.c:593
2856 msgid "Message out of order (krb_rd_req)"
2857 msgstr ""
2858
2859 #. krb_err.et:krb:KRBET_RD_AP_ORDER
2860 #: ../src/dummy-strings.c:594
2861 msgid "Unauthorized request (krb_rd_req)"
2862 msgstr ""
2863
2864 #. krb_err.et:krb:KRBET_RD_AP_UNAUTHOR
2865 #: ../src/dummy-strings.c:595
2866 msgid "Current password is null (get_pw_tkt)"
2867 msgstr ""
2868
2869 #. krb_err.et:krb:KRBET_GT_PW_NULL
2870 #: ../src/dummy-strings.c:596
2871 msgid "Incorrect current password (get_pw_tkt)"
2872 msgstr ""
2873
2874 #. krb_err.et:krb:KRBET_GT_PW_BADPW
2875 #: ../src/dummy-strings.c:597
2876 msgid "Protocol error (get_pw_tkt)"
2877 msgstr ""
2878
2879 #. krb_err.et:krb:KRBET_GT_PW_PROT
2880 #: ../src/dummy-strings.c:598
2881 msgid "Error returned by KDC (get_pw_tkt)"
2882 msgstr ""
2883
2884 #. krb_err.et:krb:KRBET_GT_PW_KDCERR
2885 #: ../src/dummy-strings.c:599
2886 msgid "Null Kerberos ticket returned by KDC (get_pw_tkt)"
2887 msgstr ""
2888
2889 #. krb_err.et:krb:KRBET_GT_PW_NULLTKT
2890 #: ../src/dummy-strings.c:600
2891 msgid "Retry count exceeded (send_to_kdc)"
2892 msgstr ""
2893
2894 #. krb_err.et:krb:KRBET_SKDC_RETRY
2895 #: ../src/dummy-strings.c:601
2896 msgid "Can't send request (send_to_kdc)"
2897 msgstr ""
2898
2899 #. krb_err.et:krb:KRBET_SKDC_CANT
2900 #: ../src/dummy-strings.c:602
2901 msgid "Reserved error message 58 (send_to_kdc)"
2902 msgstr ""
2903
2904 #. krb_err.et:krb:KRBET_KRB_RES58
2905 #: ../src/dummy-strings.c:603
2906 msgid "Reserved error message 59 (send_to_kdc)"
2907 msgstr ""
2908
2909 #. krb_err.et:krb:KRBET_KRB_RES59
2910 #: ../src/dummy-strings.c:604
2911 msgid "Reserved error message 60 (send_to_kdc)"
2912 msgstr ""
2913
2914 #. krb_err.et:krb:KRBET_KRB_RES60
2915 #: ../src/dummy-strings.c:605
2916 msgid "Kerberos error: not all tickets returned"
2917 msgstr ""
2918
2919 #. krb_err.et:krb:KRBET_INTK_W_NOTALL
2920 #: ../src/dummy-strings.c:606
2921 msgid "Incorrect password (get_in_tkt)"
2922 msgstr ""
2923
2924 #. krb_err.et:krb:KRBET_INTK_BADPW
2925 #: ../src/dummy-strings.c:607
2926 msgid "Protocol error (get_in_tkt)"
2927 msgstr ""
2928
2929 #. krb_err.et:krb:KRBET_INTK_PROT
2930 #: ../src/dummy-strings.c:608
2931 msgid "Other error (get_in_tkt)"
2932 msgstr ""
2933
2934 #. krb_err.et:krb:KRBET_INTK_ERR
2935 #: ../src/dummy-strings.c:609
2936 msgid "Don't have Kerberos ticket-granting ticket (get_ad_tkt)"
2937 msgstr ""
2938
2939 #. krb_err.et:krb:KRBET_AD_NOTGT
2940 #: ../src/dummy-strings.c:610
2941 msgid "You have no tickets cached"
2942 msgstr ""
2943
2944 #. krb_err.et:krb:KRBET_NO_TKT_FIL
2945 #: ../src/dummy-strings.c:611
2946 msgid "Couldn't access ticket file (tf_util)"
2947 msgstr ""
2948
2949 #. krb_err.et:krb:KRBET_TKT_FIL_ACC
2950 #: ../src/dummy-strings.c:612
2951 msgid "Couldn't lock ticket file (tf_util)"
2952 msgstr ""
2953
2954 #. krb_err.et:krb:KRBET_TKT_FIL_LCK
2955 #: ../src/dummy-strings.c:613
2956 msgid "Bad ticket file format (tf_util)"
2957 msgstr ""
2958
2959 #. krb_err.et:krb:KRBET_TKT_FIL_FMT
2960 #: ../src/dummy-strings.c:614
2961 msgid "tf_init not called before reading from ticket file (tf_util)"
2962 msgstr ""
2963
2964 #. krb_err.et:krb:KRBET_TKT_FIL_INI
2965 #: ../src/dummy-strings.c:615
2966 msgid "Bad Kerberos name format (kname_parse)"
2967 msgstr ""
2968
2969 #. krb_err.et:krb:KRBET_KNAME_FMT
2970 #: ../src/dummy-strings.c:616
2971 msgid "Generic kerberos error (kfailure)"
2972 msgstr ""
2973
2974 #. krb_err.et:krb:KRBET_KFAILURE
2975 #: ../src/dummy-strings.c:617
2976 msgid "Principal in credential cache does not match desired name"
2977 msgstr ""
2978
2979 #. gssapi_err_krb5.et:k5g:KG_CCACHE_NOMATCH
2980 #: ../src/dummy-strings.c:618
2981 msgid "No principal in keytab matches desired name"
2982 msgstr ""
2983
2984 #. gssapi_err_krb5.et:k5g:KG_KEYTAB_NOMATCH
2985 #: ../src/dummy-strings.c:619
2986 msgid "Credential cache has no TGT"
2987 msgstr ""
2988
2989 #. gssapi_err_krb5.et:k5g:KG_TGT_MISSING
2990 #: ../src/dummy-strings.c:620
2991 msgid "Authenticator has no subkey"
2992 msgstr ""
2993
2994 #. gssapi_err_krb5.et:k5g:KG_NO_SUBKEY
2995 #: ../src/dummy-strings.c:621
2996 msgid "Context is already fully established"
2997 msgstr ""
2998
2999 #. gssapi_err_krb5.et:k5g:KG_CONTEXT_ESTABLISHED
3000 #: ../src/dummy-strings.c:622
3001 msgid "Unknown signature type in token"
3002 msgstr ""
3003
3004 #. gssapi_err_krb5.et:k5g:KG_BAD_SIGN_TYPE
3005 #: ../src/dummy-strings.c:623
3006 msgid "Invalid field length in token"
3007 msgstr ""
3008
3009 #. gssapi_err_krb5.et:k5g:KG_BAD_LENGTH
3010 #: ../src/dummy-strings.c:624
3011 msgid "Attempt to use incomplete security context"
3012 msgstr ""
3013
3014 #. gssapi_err_krb5.et:k5g:KG_CTX_INCOMPLETE
3015 #: ../src/dummy-strings.c:625
3016 msgid "Bad magic number for krb5_gss_ctx_id_t"
3017 msgstr ""
3018
3019 #. gssapi_err_krb5.et:k5g:KG_CONTEXT
3020 #: ../src/dummy-strings.c:626
3021 msgid "Bad magic number for krb5_gss_cred_id_t"
3022 msgstr ""
3023
3024 #. gssapi_err_krb5.et:k5g:KG_CRED
3025 #: ../src/dummy-strings.c:627
3026 msgid "Bad magic number for krb5_gss_enc_desc"
3027 msgstr ""
3028
3029 #. gssapi_err_krb5.et:k5g:KG_ENC_DESC
3030 #: ../src/dummy-strings.c:628
3031 msgid "Sequence number in token is corrupt"
3032 msgstr ""
3033
3034 #. gssapi_err_krb5.et:k5g:KG_BAD_SEQ
3035 #: ../src/dummy-strings.c:629
3036 msgid "Credential cache is empty"
3037 msgstr ""
3038
3039 #. gssapi_err_krb5.et:k5g:KG_EMPTY_CCACHE
3040 #: ../src/dummy-strings.c:630
3041 msgid "Acceptor and Initiator share no checksum types"
3042 msgstr ""
3043
3044 #. gssapi_err_krb5.et:k5g:KG_NO_CTYPES
3045 #: ../src/dummy-strings.c:631
3046 msgid "No @ in SERVICE-NAME name string"
3047 msgstr ""
3048
3049 #. gssapi_err_generic.et:ggss:G_BAD_SERVICE_NAME
3050 #: ../src/dummy-strings.c:632
3051 msgid "STRING-UID-NAME contains nondigits"
3052 msgstr ""
3053
3054 #. gssapi_err_generic.et:ggss:G_BAD_STRING_UID
3055 #: ../src/dummy-strings.c:633
3056 msgid "UID does not resolve to username"
3057 msgstr ""
3058
3059 #. gssapi_err_generic.et:ggss:G_NOUSER
3060 #: ../src/dummy-strings.c:634
3061 msgid "Validation error"
3062 msgstr ""
3063
3064 #. gssapi_err_generic.et:ggss:G_VALIDATE_FAILED
3065 #: ../src/dummy-strings.c:635
3066 msgid "Couldn't allocate gss_buffer_t data"
3067 msgstr ""
3068
3069 #. gssapi_err_generic.et:ggss:G_BUFFER_ALLOC
3070 #: ../src/dummy-strings.c:636
3071 msgid "Message context invalid"
3072 msgstr ""
3073
3074 #. gssapi_err_generic.et:ggss:G_BAD_MSG_CTX
3075 #: ../src/dummy-strings.c:637
3076 msgid "Buffer is the wrong size"
3077 msgstr ""
3078
3079 #. gssapi_err_generic.et:ggss:G_WRONG_SIZE
3080 #: ../src/dummy-strings.c:638
3081 msgid "Credential usage type is unknown"
3082 msgstr ""
3083
3084 #. gssapi_err_generic.et:ggss:G_BAD_USAGE
3085 #: ../src/dummy-strings.c:639
3086 msgid "Unknown quality of protection specified"
3087 msgstr ""
3088
3089 #. gssapi_err_generic.et:ggss:G_UNKNOWN_QOP
3090 #: ../src/dummy-strings.c:640
3091 msgid "Local host name could not be determined"
3092 msgstr ""
3093
3094 #. gssapi_err_generic.et:ggss:G_NO_HOSTNAME
3095 #: ../src/dummy-strings.c:641
3096 msgid "Hostname in SERVICE-NAME string could not be canonicalized"
3097 msgstr ""
3098
3099 #. gssapi_err_generic.et:ggss:G_BAD_HOSTNAME
3100 #: ../src/dummy-strings.c:642
3101 msgid "Mechanism is incorrect"
3102 msgstr ""
3103
3104 #. gssapi_err_generic.et:ggss:G_WRONG_MECH
3105 #: ../src/dummy-strings.c:643
3106 msgid "Token header is malformed or corrupt"
3107 msgstr ""
3108
3109 #. gssapi_err_generic.et:ggss:G_BAD_TOK_HEADER
3110 #: ../src/dummy-strings.c:644
3111 msgid "Packet was replayed in wrong direction"
3112 msgstr ""
3113
3114 #. gssapi_err_generic.et:ggss:G_BAD_DIRECTION
3115 #: ../src/dummy-strings.c:645
3116 msgid "Token is missing data"
3117 msgstr ""
3118
3119 #. gssapi_err_generic.et:ggss:G_TOK_TRUNC
3120 #: ../src/dummy-strings.c:646
3121 msgid "Token was reflected"
3122 msgstr ""
3123
3124 #. gssapi_err_generic.et:ggss:G_REFLECT
3125 #: ../src/dummy-strings.c:647
3126 msgid "Received token ID does not match expected token ID"
3127 msgstr ""
3128
3129 #: ../src/krb5-auth-applet.c:49
3130 #, c-format
3131 msgid "Your credentials expire in %.2d:%.2dh"
3132 msgstr ""
3133
3134 #: ../src/krb5-auth-applet.c:95
3135 msgid "Network credentials valid"
3136 msgstr ""
3137
3138 #: ../src/krb5-auth-applet.c:96
3139 msgid "Your Kerberos credentials have been refreshed."
3140 msgstr ""
3141
3142 #: ../src/krb5-auth-applet.c:101
3143 msgid "Network credentials expiring"
3144 msgstr ""
3145
3146 #: ../src/krb5-auth-applet.c:108
3147 msgid "Network credentials expired"
3148 msgstr ""
3149
3150 #: ../src/krb5-auth-applet.c:109
3151 msgid "Your Kerberos credentails have expired."
3152 msgstr ""
3153
3154 #. kdestroy
3155 #: ../src/krb5-auth-applet.c:171
3156 msgid "Remove Credentials _Cache"
3157 msgstr ""
3158
3159 #. About item
3160 #: ../src/krb5-auth-applet.c:180
3161 msgid "_About"
3162 msgstr ""
3163
3164 #. Quit
3165 #: ../src/krb5-auth-applet.c:189
3166 msgid "_Quit"
3167 msgstr ""
3168
3169 #: ../src/krb5-auth-dialog.desktop.in.h:1
3170 msgid "Kerberos Network Authentication Dialog"
3171 msgstr ""
3172
3173 #: ../gtksecentry/gtksecentry.c:455
3174 msgid "Cursor Position"
3175 msgstr ""
3176
3177 #: ../gtksecentry/gtksecentry.c:457
3178 msgid "The current position of the insertion cursor in chars"
3179 msgstr ""
3180
3181 #: ../gtksecentry/gtksecentry.c:464
3182 msgid "Selection Bound"
3183 msgstr ""
3184
3185 #: ../gtksecentry/gtksecentry.c:466
3186 msgid ""
3187 "The position of the opposite end of the selection from the cursor in chars"
3188 msgstr ""
3189
3190 #: ../gtksecentry/gtksecentry.c:473
3191 msgid "Maximum length"
3192 msgstr ""
3193
3194 #: ../gtksecentry/gtksecentry.c:475
3195 msgid "Maximum number of characters for this entry. Zero if no maximum"
3196 msgstr ""
3197
3198 #: ../gtksecentry/gtksecentry.c:483
3199 msgid "Has Frame"
3200 msgstr ""
3201
3202 #: ../gtksecentry/gtksecentry.c:485
3203 msgid "FALSE removes outside bevel from entry"
3204 msgstr ""
3205
3206 #: ../gtksecentry/gtksecentry.c:494
3207 msgid "Invisible character"
3208 msgstr ""
3209
3210 #: ../gtksecentry/gtksecentry.c:496
3211 msgid "The character to use when masking entry contents (in \"password mode\")"
3212 msgstr ""
3213
3214 #: ../gtksecentry/gtksecentry.c:505
3215 msgid "Activates default"
3216 msgstr ""
3217
3218 #: ../gtksecentry/gtksecentry.c:507
3219 msgid ""
3220 "Whether to activate the default widget (such as the default button in a "
3221 "dialog) when Enter is pressed"
3222 msgstr ""
3223
3224 #: ../gtksecentry/gtksecentry.c:512
3225 msgid "Width in chars"
3226 msgstr ""
3227
3228 #: ../gtksecentry/gtksecentry.c:514
3229 msgid "Number of characters to leave space for in the entry"
3230 msgstr ""
3231
3232 #: ../gtksecentry/gtksecentry.c:522
3233 msgid "Scroll offset"
3234 msgstr ""
3235
3236 #: ../gtksecentry/gtksecentry.c:524
3237 msgid "Number of pixels of the entry scrolled off the screen to the left"
3238 msgstr ""
3239
3240 #: ../gtksecentry/gtksecentry.c:531
3241 msgid "Text"
3242 msgstr ""
3243
3244 #: ../gtksecentry/gtksecentry.c:533
3245 msgid "The contents of the entry"
3246 msgstr ""
3247
3248 #: ../gtksecentry/gtksecentry.c:690
3249 msgid "Select on focus"
3250 msgstr ""
3251
3252 #: ../gtksecentry/gtksecentry.c:692
3253 msgid "Whether to select the contents of an entry when it is focused"
3254 msgstr ""
3255
3256 #: ../secmem/util.c:106
3257 #, c-format
3258 msgid "Warning: running q-agent setuid on this system is dangerous\n"
3259 msgstr ""
3260
3261 #: ../src/krb5-auth-dialog.schemas.in.h:1
3262 msgid "Kerberos principal"
3263 msgstr ""
3264
3265 #: ../src/krb5-auth-dialog.schemas.in.h:2
3266 msgid "Pkinit identifier"
3267 msgstr ""
3268
3269 #: ../src/krb5-auth-dialog.schemas.in.h:3
3270 msgid "Prompt minutes before expiry"
3271 msgstr ""
3272
3273 #: ../src/krb5-auth-dialog.schemas.in.h:4
3274 msgid "Show a trayicon in the status area of the panel"
3275 msgstr ""
3276
3277 #: ../src/krb5-auth-dialog.schemas.in.h:5
3278 msgid "Show trayicon"
3279 msgstr ""
3280
3281 #: ../src/krb5-auth-dialog.schemas.in.h:6
3282 msgid ""
3283 "Start prompting/displaying notifications that many minutes before expiry"
3284 msgstr ""
3285
3286 #: ../src/krb5-auth-dialog.schemas.in.h:7
3287 msgid "The kerberos principal to acquire the ticket for"
3288 msgstr ""
3289
3290 #: ../src/krb5-auth-dialog.schemas.in.h:8
3291 msgid "The principal's public/private/certificate identifier when using pkinit"
3292 msgstr ""
0 # Swedish translation for krb5-auth-dialog.
1 # Copyright (C) 2009 Free Software Foundation, Inc.
2 # This file is distributed under the same license as the krb5-auth-dialog package.
3 # Daniel Nylander <po@danielnylander.se>, 2009.
4 #
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: krb5-auth-dialog\n"
8 "Report-Msgid-Bugs-To: \n"
9 "POT-Creation-Date: 2009-01-15 17:16+0100\n"
10 "PO-Revision-Date: 2009-01-15 17:19+0100\n"
11 "Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
12 "Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=utf-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
18 #: ../src/krb5-auth-dialog.glade.h:1
19 #: ../src/krb5-auth-dialog.c:894
20 #: ../src/krb5-auth-dialog.desktop.in.h:2
21 msgid "Network Authentication"
22 msgstr "Nätverksautentisering"
23
24 #: ../src/krb5-auth-dialog.glade.h:2
25 msgid "_Password:"
26 msgstr "_Lösenord:"
27
28 #: ../src/krb5-auth-dialog.glade.h:3
29 msgid "_Renew Ticket"
30 msgstr ""
31
32 #: ../src/krb5-auth-dialog.c:204
33 #: ../src/krb5-auth-applet.c:53
34 #, c-format
35 msgid "Your credentials expire in %d minute"
36 msgid_plural "Your credentials expire in %d minutes"
37 msgstr[0] ""
38 msgstr[1] ""
39
40 #: ../src/krb5-auth-dialog.c:209
41 #: ../src/krb5-auth-applet.c:58
42 msgid "Your credentials have expired"
43 msgstr ""
44
45 #: ../src/krb5-auth-dialog.c:280
46 msgid "Please enter your Kerberos password."
47 msgstr ""
48
49 #: ../src/krb5-auth-dialog.c:291
50 #, c-format
51 msgid "Please enter the password for '%s'"
52 msgstr ""
53
54 #: ../src/krb5-auth-dialog.c:310
55 msgid "The password you entered is invalid"
56 msgstr ""
57
58 #: ../src/krb5-auth-dialog.c:765
59 #, c-format
60 msgid "Couldn't acquire kerberos ticket: '%s'"
61 msgstr ""
62
63 #: ../src/dummy-strings.c:13
64 msgid "Can't read ticket file"
65 msgstr ""
66
67 #. test1.et:krb:KRB_MK_AP_TKFIL
68 #: ../src/dummy-strings.c:14
69 msgid "Can't find ticket or TGT"
70 msgstr ""
71
72 #. test1.et:krb:KRB_MK_AP_NOTKT
73 #: ../src/dummy-strings.c:15
74 msgid "TGT expired"
75 msgstr ""
76
77 #. test1.et:krb:KRB_MK_AP_TGTEXP
78 #: ../src/dummy-strings.c:16
79 msgid "Can't decode authenticator"
80 msgstr ""
81
82 #. test1.et:krb:KRB_RD_AP_UNDEC
83 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BAD_INTEGRITY
84 #: ../src/dummy-strings.c:17
85 #: ../src/dummy-strings.c:176
86 msgid "Ticket expired"
87 msgstr ""
88
89 #. test1.et:krb:KRB_RD_AP_EXP
90 #: ../src/dummy-strings.c:18
91 msgid "Repeated request"
92 msgstr ""
93
94 #. test1.et:krb:KRB_RD_AP_REPEAT
95 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_REPEAT
96 #: ../src/dummy-strings.c:19
97 #: ../src/dummy-strings.c:179
98 msgid "The ticket isn't for us"
99 msgstr ""
100
101 #. test1.et:krb:KRB_RD_AP_NOT_US
102 #: ../src/dummy-strings.c:20
103 msgid "Request is inconsistent"
104 msgstr ""
105
106 #. test1.et:krb:KRB_RD_AP_INCON
107 #: ../src/dummy-strings.c:21
108 msgid "Delta-T too big"
109 msgstr ""
110
111 #. test1.et:krb:KRB_RD_AP_TIME
112 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_SKEW
113 #: ../src/dummy-strings.c:22
114 #: ../src/dummy-strings.c:182
115 msgid "Incorrect net address"
116 msgstr ""
117
118 #. test1.et:krb:KRB_RD_AP_BADD
119 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADADDR
120 #: ../src/dummy-strings.c:23
121 #: ../src/dummy-strings.c:183
122 msgid "Protocol version mismatch"
123 msgstr ""
124
125 #. test1.et:krb:KRB_RD_AP_VERSION
126 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADVERSION
127 #: ../src/dummy-strings.c:24
128 #: ../src/dummy-strings.c:184
129 msgid "Invalid message type"
130 msgstr ""
131
132 #. test1.et:krb:KRB_RD_AP_MSG_TYPE
133 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_MSG_TYPE
134 #: ../src/dummy-strings.c:25
135 #: ../src/dummy-strings.c:185
136 msgid "Message stream modified"
137 msgstr ""
138
139 #. test1.et:krb:KRB_RD_AP_MODIFIED
140 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_MODIFIED
141 #: ../src/dummy-strings.c:26
142 #: ../src/dummy-strings.c:186
143 msgid "Message out of order"
144 msgstr ""
145
146 #. test1.et:krb:KRB_RD_AP_ORDER
147 #: ../src/dummy-strings.c:27
148 msgid "Unauthorized request"
149 msgstr ""
150
151 #. test1.et:krb:KRB_RD_AP_UNAUTHOR
152 #: ../src/dummy-strings.c:28
153 msgid "Current password is null"
154 msgstr ""
155
156 #. test1.et:krb:KRB_GT_PW_NULL
157 #: ../src/dummy-strings.c:29
158 msgid "Incorrect current password"
159 msgstr ""
160
161 #. test1.et:krb:KRB_GT_PW_BADPW
162 #: ../src/dummy-strings.c:30
163 msgid "Protocol error"
164 msgstr "Protokollfel"
165
166 #. test1.et:krb:KRB_GT_PW_PROT
167 #: ../src/dummy-strings.c:31
168 msgid "Error returned by KDC"
169 msgstr ""
170
171 #. test1.et:krb:KRB_GT_PW_KDCERR
172 #: ../src/dummy-strings.c:32
173 msgid "Null ticket returned by KDC"
174 msgstr ""
175
176 #. test1.et:krb:KRB_GT_PW_NULLTKT
177 #: ../src/dummy-strings.c:33
178 msgid "Retry count exceeded"
179 msgstr ""
180
181 #. test1.et:krb:KRB_SKDC_RETRY
182 #: ../src/dummy-strings.c:34
183 msgid "Can't send request"
184 msgstr "Kan inte skicka begäran"
185
186 #. test1.et:krb:KRB_SKDC_CANT
187 #: ../src/dummy-strings.c:35
188 msgid "Subsystem aborted"
189 msgstr ""
190
191 #. ss_err.et:ss:SS_ET_SUBSYSTEM_ABORTED
192 #: ../src/dummy-strings.c:36
193 msgid "Version mismatch"
194 msgstr "Versionen stämmer inte"
195
196 #. ss_err.et:ss:SS_ET_VERSION_MISMATCH
197 #: ../src/dummy-strings.c:37
198 msgid "No current invocation"
199 msgstr ""
200
201 #. ss_err.et:ss:SS_ET_NULL_INV
202 #: ../src/dummy-strings.c:38
203 msgid "No info directory"
204 msgstr ""
205
206 #. ss_err.et:ss:SS_ET_NO_INFO_DIR
207 #: ../src/dummy-strings.c:39
208 msgid "Command not found"
209 msgstr ""
210
211 #. ss_err.et:ss:SS_ET_COMMAND_NOT_FOUND
212 #: ../src/dummy-strings.c:40
213 msgid "Command line aborted"
214 msgstr ""
215
216 #. ss_err.et:ss:SS_ET_LINE_ABORTED
217 #: ../src/dummy-strings.c:41
218 msgid "End-of-file reached"
219 msgstr ""
220
221 #. ss_err.et:ss:SS_ET_EOF
222 #: ../src/dummy-strings.c:42
223 msgid "Permission denied"
224 msgstr ""
225
226 #. ss_err.et:ss:SS_ET_PERMISSION_DENIED
227 #: ../src/dummy-strings.c:43
228 msgid "Request table not found"
229 msgstr ""
230
231 #. ss_err.et:ss:SS_ET_TABLE_NOT_FOUND
232 #: ../src/dummy-strings.c:44
233 msgid "No info available"
234 msgstr ""
235
236 #. ss_err.et:ss:SS_ET_NO_HELP_FILE
237 #: ../src/dummy-strings.c:45
238 msgid "Shell escapes are disabled"
239 msgstr ""
240
241 #. ss_err.et:ss:SS_ET_ESCAPE_DISABLED
242 #: ../src/dummy-strings.c:46
243 msgid "Sorry, this request is not yet implemented"
244 msgstr ""
245
246 #. ss_err.et:ss:SS_ET_UNIMPLEMENTED
247 #: ../src/dummy-strings.c:47
248 msgid "Profile version 0.0"
249 msgstr ""
250
251 #. prof_err.et:prof:PROF_VERSION
252 #: ../src/dummy-strings.c:48
253 msgid "Bad magic value in profile_node"
254 msgstr ""
255
256 #. prof_err.et:prof:PROF_MAGIC_NODE
257 #: ../src/dummy-strings.c:49
258 msgid "Profile section not found"
259 msgstr ""
260
261 #. prof_err.et:prof:PROF_NO_SECTION
262 #: ../src/dummy-strings.c:50
263 msgid "Profile relation not found"
264 msgstr ""
265
266 #. prof_err.et:prof:PROF_NO_RELATION
267 #: ../src/dummy-strings.c:51
268 msgid "Attempt to add a relation to node which is not a section"
269 msgstr ""
270
271 #. prof_err.et:prof:PROF_ADD_NOT_SECTION
272 #: ../src/dummy-strings.c:52
273 msgid "A profile section header has a non-zero value"
274 msgstr ""
275
276 #. prof_err.et:prof:PROF_SECTION_WITH_VALUE
277 #: ../src/dummy-strings.c:53
278 msgid "Bad linked list in profile structures"
279 msgstr ""
280
281 #. prof_err.et:prof:PROF_BAD_LINK_LIST
282 #: ../src/dummy-strings.c:54
283 msgid "Bad group level in profile strctures"
284 msgstr ""
285
286 #. prof_err.et:prof:PROF_BAD_GROUP_LVL
287 #: ../src/dummy-strings.c:55
288 msgid "Bad parent pointer in profile strctures"
289 msgstr ""
290
291 #. prof_err.et:prof:PROF_BAD_PARENT_PTR
292 #: ../src/dummy-strings.c:56
293 msgid "Bad magic value in profile iterator"
294 msgstr ""
295
296 #. prof_err.et:prof:PROF_MAGIC_ITERATOR
297 #: ../src/dummy-strings.c:57
298 msgid "Can't set value on section node"
299 msgstr ""
300
301 #. prof_err.et:prof:PROF_SET_SECTION_VALUE
302 #: ../src/dummy-strings.c:58
303 msgid "Invalid argument passed to profile library"
304 msgstr ""
305
306 #. prof_err.et:prof:PROF_EINVAL
307 #: ../src/dummy-strings.c:59
308 msgid "Attempt to modify read-only profile"
309 msgstr ""
310
311 #. prof_err.et:prof:PROF_READ_ONLY
312 #: ../src/dummy-strings.c:60
313 msgid "Profile section header not at top level"
314 msgstr ""
315
316 #. prof_err.et:prof:PROF_SECTION_NOTOP
317 #: ../src/dummy-strings.c:61
318 msgid "Syntax error in profile section header"
319 msgstr ""
320
321 #. prof_err.et:prof:PROF_SECTION_SYNTAX
322 #: ../src/dummy-strings.c:62
323 msgid "Syntax error in profile relation"
324 msgstr ""
325
326 #. prof_err.et:prof:PROF_RELATION_SYNTAX
327 #: ../src/dummy-strings.c:63
328 msgid "Extra closing brace in profile"
329 msgstr ""
330
331 #. prof_err.et:prof:PROF_EXTRA_CBRACE
332 #: ../src/dummy-strings.c:64
333 msgid "Missing open brace in profile"
334 msgstr ""
335
336 #. prof_err.et:prof:PROF_MISSING_OBRACE
337 #: ../src/dummy-strings.c:65
338 msgid "Bad magic value in profile_t"
339 msgstr ""
340
341 #. prof_err.et:prof:PROF_MAGIC_PROFILE
342 #: ../src/dummy-strings.c:66
343 msgid "Bad magic value in profile_section_t"
344 msgstr ""
345
346 #. prof_err.et:prof:PROF_MAGIC_SECTION
347 #: ../src/dummy-strings.c:67
348 msgid "Iteration through all top level section not supported"
349 msgstr ""
350
351 #. prof_err.et:prof:PROF_TOPSECTION_ITER_NOSUPP
352 #: ../src/dummy-strings.c:68
353 msgid "Invalid profile_section object"
354 msgstr ""
355
356 #. prof_err.et:prof:PROF_INVALID_SECTION
357 #: ../src/dummy-strings.c:69
358 msgid "No more sections"
359 msgstr ""
360
361 #. prof_err.et:prof:PROF_END_OF_SECTIONS
362 #: ../src/dummy-strings.c:70
363 msgid "Bad nameset passed to query routine"
364 msgstr ""
365
366 #. prof_err.et:prof:PROF_BAD_NAMESET
367 #: ../src/dummy-strings.c:71
368 msgid "No profile file open"
369 msgstr ""
370
371 #. prof_err.et:prof:PROF_NO_PROFILE
372 #: ../src/dummy-strings.c:72
373 msgid "Bad magic value in profile_file_t"
374 msgstr ""
375
376 #. prof_err.et:prof:PROF_MAGIC_FILE
377 #: ../src/dummy-strings.c:73
378 msgid "Couldn't open profile file"
379 msgstr ""
380
381 #. prof_err.et:prof:PROF_FAIL_OPEN
382 #: ../src/dummy-strings.c:74
383 msgid "Section already exists"
384 msgstr ""
385
386 #. prof_err.et:prof:PROF_EXISTS
387 #: ../src/dummy-strings.c:75
388 msgid "Invalid boolean value"
389 msgstr ""
390
391 #. prof_err.et:prof:PROF_BAD_BOOLEAN
392 #: ../src/dummy-strings.c:76
393 msgid "Invalid integer value"
394 msgstr ""
395
396 #. prof_err.et:prof:PROF_BAD_INTEGER
397 #: ../src/dummy-strings.c:77
398 msgid "Bad magic value in profile_file_data_t"
399 msgstr ""
400
401 #. prof_err.et:prof:PROF_MAGIC_FILE_DATA
402 #: ../src/dummy-strings.c:78
403 msgid "Failed to unlock or grant streams pty."
404 msgstr ""
405
406 #. pty_err.et:pty:PTY_GETPTY_STREAMS
407 #: ../src/dummy-strings.c:79
408 msgid "fstat of master pty failed"
409 msgstr ""
410
411 #. pty_err.et:pty:PTY_GETPTY_FSTAT
412 #: ../src/dummy-strings.c:80
413 msgid "All terminal ports in use"
414 msgstr ""
415
416 #. pty_err.et:pty:PTY_GETPTY_NOPTY
417 #: ../src/dummy-strings.c:81
418 msgid "buffer to hold slave pty name is too short"
419 msgstr ""
420
421 #. pty_err.et:pty:PTY_GETPTY_SLAVE_TOOLONG
422 #: ../src/dummy-strings.c:82
423 msgid "Failed to open slave side of pty"
424 msgstr ""
425
426 #. pty_err.et:pty:PTY_OPEN_SLAVE_OPENFAIL
427 #: ../src/dummy-strings.c:83
428 msgid "Failed to chmod slave side of pty"
429 msgstr ""
430
431 #. pty_err.et:pty:PTY_OPEN_SLAVE_CHMODFAIL
432 #: ../src/dummy-strings.c:84
433 msgid "Unable to set controlling terminal"
434 msgstr ""
435
436 #. pty_err.et:pty:PTY_OPEN_SLAVE_NOCTTY
437 #: ../src/dummy-strings.c:85
438 msgid "Failed to chown slave side of pty"
439 msgstr ""
440
441 #. pty_err.et:pty:PTY_OPEN_SLAVE_CHOWNFAIL
442 #: ../src/dummy-strings.c:86
443 msgid "Call to line_push failed to push streams on slave pty"
444 msgstr ""
445
446 #. pty_err.et:pty:PTY_OPEN_SLAVE_LINE_PUSHFAIL
447 #: ../src/dummy-strings.c:87
448 msgid "Failed to push stream on slave side of pty"
449 msgstr ""
450
451 #. pty_err.et:pty:PTY_OPEN_SLAVE_PUSH_FAIL
452 #: ../src/dummy-strings.c:88
453 msgid "Failed to revoke slave side of pty"
454 msgstr ""
455
456 #. pty_err.et:pty:PTY_OPEN_SLAVE_REVOKEFAIL
457 #: ../src/dummy-strings.c:89
458 msgid "bad process type passed to pty_update_utmp"
459 msgstr ""
460
461 #. pty_err.et:pty:PTY_UPDATE_UTMP_PROCTYPE_INVALID
462 #: ../src/dummy-strings.c:90
463 msgid "Slave pty name is zero-length"
464 msgstr ""
465
466 #. pty_err.et:pty:PTY_OPEN_SLAVE_TOOSHORT
467 #: ../src/dummy-strings.c:91
468 msgid "Usage: kpasswd [principal_name]."
469 msgstr ""
470
471 #. kpasswd_strings.et:kpws:KPW_STR_USAGE
472 #: ../src/dummy-strings.c:92
473 #, c-format
474 msgid "Kerberos principal name %s is not recognized."
475 msgstr ""
476
477 #. kpasswd_strings.et:kpws:KPW_STR_PRIN_UNKNOWN
478 #: ../src/dummy-strings.c:93
479 msgid "while reading principal name from credential cache."
480 msgstr ""
481
482 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_LOOKING_AT_CC
483 #: ../src/dummy-strings.c:94
484 msgid "Old Kerberos password is incorrect. Please try again."
485 msgstr ""
486
487 #. kpasswd_strings.et:kpws:KPW_STR_OLD_PASSWORD_INCORRECT
488 #: ../src/dummy-strings.c:95
489 #, c-format
490 msgid ""
491 "Cannot establish a session with the Kerberos administrative server for\n"
492 "realm %s. %s."
493 msgstr ""
494
495 #. kpasswd_strings.et:kpws:KPW_STR_CANT_OPEN_ADMIN_SERVER
496 #. chpass_util_strings.et:ovku:CHPASS_UTIL_GET_PRINC_INFO
497 #: ../src/dummy-strings.c:97
498 #: ../src/dummy-strings.c:488
499 msgid "New passwords do not match - password not changed.\n"
500 msgstr ""
501
502 #. kpasswd_strings.et:kpws:KPW_STR_NEW_PASSWORD_MISMATCH
503 #: ../src/dummy-strings.c:98
504 msgid "Kerberos password changed.\n"
505 msgstr ""
506
507 #. kpasswd_strings.et:kpws:KPW_STR_PASSWORD_CHANGED
508 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_IN_DICTIONARY
509 #: ../src/dummy-strings.c:99
510 #: ../src/dummy-strings.c:497
511 msgid "Password not changed."
512 msgstr ""
513
514 #. kpasswd_strings.et:kpws:KPW_STR_PASSWORD_NOT_CHANGED
515 #: ../src/dummy-strings.c:100
516 #, c-format
517 msgid "when parsing name %s."
518 msgstr ""
519
520 #. kpasswd_strings.et:kpws:KPW_STR_PARSE_NAME
521 #: ../src/dummy-strings.c:101
522 msgid "when unparsing name."
523 msgstr ""
524
525 #. kpasswd_strings.et:kpws:KPW_STR_UNPARSE_NAME
526 #: ../src/dummy-strings.c:102
527 msgid "Unable to identify user from password file."
528 msgstr ""
529
530 #. kpasswd_strings.et:kpws:KPW_STR_NOT_IN_PASSWD_FILE
531 #: ../src/dummy-strings.c:103
532 #, c-format
533 msgid "Changing password for %s."
534 msgstr ""
535
536 #. kpasswd_strings.et:kpws:KPW_STR_CHANGING_PW_FOR
537 #: ../src/dummy-strings.c:104
538 msgid "Old password"
539 msgstr "Gammalt lösenord"
540
541 #. kpasswd_strings.et:kpws:KPW_STR_OLD_PASSWORD_PROMPT
542 #. chpass_util_strings.et:ovku:CHPASS_UTIL_WHILE_TRYING_TO_CHANGE
543 #: ../src/dummy-strings.c:105
544 #: ../src/dummy-strings.c:514
545 msgid "while reading new password."
546 msgstr ""
547
548 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_READING_PASSWORD
549 #: ../src/dummy-strings.c:106
550 msgid "You must type a password. Passwords must be at least one character long."
551 msgstr ""
552
553 #. kpasswd_strings.et:kpws:KPW_STR_NO_PASSWORD_READ
554 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_REUSE
555 #: ../src/dummy-strings.c:107
556 #: ../src/dummy-strings.c:513
557 msgid "while trying to change password."
558 msgstr "vid försök att ändra lösenordet."
559
560 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_TRYING_TO_CHANGE
561 #: ../src/dummy-strings.c:108
562 msgid "while closing session with admin server and destroying tickets."
563 msgstr ""
564
565 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_DESTROYING_ADMIN_SESSION
566 #: ../src/dummy-strings.c:109
567 msgid "while freeing admin principal entry"
568 msgstr ""
569
570 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_FREEING_PRINCIPAL
571 #: ../src/dummy-strings.c:110
572 msgid "while freeing admin policy entry"
573 msgstr ""
574
575 #. kpasswd_strings.et:kpws:KPW_STR_WHILE_FREEING_POLICY
576 #: ../src/dummy-strings.c:111
577 #, c-format
578 msgid "Could not get password policy information for principal %s."
579 msgstr ""
580
581 #. kpasswd_strings.et:kpws:KPW_STR_CANT_GET_POLICY_INFO
582 #: ../src/dummy-strings.c:112
583 #, c-format
584 msgid ""
585 "%s's password is controlled by the policy %s, which\n"
586 "requires a minimum of %u characters from at least %u classes (the five classes\n"
587 "are lowercase, uppercase, numbers, punctuation, and all other characters)."
588 msgstr ""
589
590 #. kpasswd_strings.et:kpws:KPW_STR_POLICY_EXPLANATION
591 #: ../src/dummy-strings.c:113
592 #, c-format
593 msgid "Successfully imported %d record%s.\n"
594 msgstr ""
595
596 #. import_err.et:imp:IMPORT_NO_ERR
597 #: ../src/dummy-strings.c:114
598 msgid "Input not recognized as database dump"
599 msgstr ""
600
601 #. import_err.et:imp:IMPORT_BAD_FILE
602 #: ../src/dummy-strings.c:115
603 msgid "Bad token in dump file."
604 msgstr ""
605
606 #. import_err.et:imp:IMPORT_BAD_TOKEN
607 #: ../src/dummy-strings.c:116
608 msgid "Bad version in dump file"
609 msgstr ""
610
611 #. import_err.et:imp:IMPORT_BAD_VERSION
612 #: ../src/dummy-strings.c:117
613 msgid "Defective record encountered: "
614 msgstr ""
615
616 #. import_err.et:imp:IMPORT_BAD_RECORD
617 #: ../src/dummy-strings.c:118
618 msgid "Truncated input file detected."
619 msgstr ""
620
621 #. import_err.et:imp:IMPORT_BAD_FOOTER
622 #: ../src/dummy-strings.c:119
623 msgid "Import of dump failed"
624 msgstr ""
625
626 #. import_err.et:imp:IMPORT_FAILED
627 #: ../src/dummy-strings.c:120
628 #, c-format
629 msgid "Mismatched record count: %d record%s indicated, %d record%s scanned.\n"
630 msgstr ""
631
632 #. import_err.et:imp:IMPORT_COUNT_MESSAGE
633 #: ../src/dummy-strings.c:121
634 msgid "Number of records imported does not match count"
635 msgstr ""
636
637 #. import_err.et:imp:IMPORT_MISMATCH_COUNT
638 #: ../src/dummy-strings.c:122
639 msgid ""
640 "Unknown command line option.\n"
641 "Usage: ovsec_adm_import [filename]"
642 msgstr ""
643
644 #. import_err.et:imp:IMPORT_UNK_OPTION
645 #: ../src/dummy-strings.c:123
646 msgid "Warning -- continuing to import will overwrite existing databases!"
647 msgstr ""
648
649 #. import_err.et:imp:IMPORT_WARN_DB
650 #: ../src/dummy-strings.c:124
651 msgid "Database rename Failed!!"
652 msgstr ""
653
654 #. import_err.et:imp:IMPORT_RENAME_FAILED
655 #: ../src/dummy-strings.c:125
656 msgid "Extra data after footer is ignored."
657 msgstr ""
658
659 # j/n??
660 #. import_err.et:imp:IMPORT_EXTRA_DATA
661 #: ../src/dummy-strings.c:126
662 msgid "Proceed <y|n>?"
663 msgstr "Fortsätt <y|n>?"
664
665 #. import_err.et:imp:IMPORT_CONFIRM
666 #: ../src/dummy-strings.c:127
667 msgid "while opening input file"
668 msgstr ""
669
670 #. import_err.et:imp:IMPORT_OPEN_DUMP
671 #: ../src/dummy-strings.c:128
672 msgid "while importing databases"
673 msgstr ""
674
675 #. import_err.et:imp:IMPORT_IMPORT
676 #: ../src/dummy-strings.c:129
677 msgid "cannot open /dev/tty!!"
678 msgstr "kan inte öppna /dev/tty!!"
679
680 #. import_err.et:imp:IMPORT_TTY
681 #: ../src/dummy-strings.c:130
682 msgid "while opening databases"
683 msgstr ""
684
685 #. import_err.et:imp:IMPORT_RENAME_OPEN
686 #: ../src/dummy-strings.c:131
687 msgid "while acquiring permanent lock"
688 msgstr ""
689
690 #. import_err.et:imp:IMPORT_RENAME_LOCK
691 #: ../src/dummy-strings.c:132
692 msgid "while releasing permanent lock"
693 msgstr ""
694
695 #. import_err.et:imp:IMPORT_RENAME_UNLOCK
696 #: ../src/dummy-strings.c:133
697 msgid "while closing databases"
698 msgstr ""
699
700 #. import_err.et:imp:IMPORT_RENAME_CLOSE
701 #: ../src/dummy-strings.c:134
702 msgid "while retrieving configuration parameters"
703 msgstr ""
704
705 #. import_err.et:imp:IMPORT_GET_PARAMS
706 #. kv5m_err.et:kv5m:KV5M_GSS_QUEUE
707 #: ../src/dummy-strings.c:135
708 #: ../src/dummy-strings.c:388
709 msgid "$Id: dummy-strings.c 35 2005-10-31 21:55:46Z caillon $"
710 msgstr ""
711
712 #. kdc5_err.et:kdc5:KDC5_RCSID
713 #: ../src/dummy-strings.c:136
714 msgid "No server port found"
715 msgstr "Ingen serverport hittades"
716
717 #. kdc5_err.et:kdc5:KDC5_NOPORT
718 #: ../src/dummy-strings.c:137
719 msgid "Network not initialized"
720 msgstr ""
721
722 #. kdc5_err.et:kdc5:KDC5_NONET
723 #: ../src/dummy-strings.c:138
724 msgid "Short write while sending response"
725 msgstr ""
726
727 #. kdc5_err.et:kdc5:KDC5_IO_RESPONSE
728 #: ../src/dummy-strings.c:139
729 msgid "Cannot convert V5 keyblock"
730 msgstr ""
731
732 #. krb524_err.et:k524:KRB524_BADKEY
733 #: ../src/dummy-strings.c:140
734 msgid "Cannot convert V5 address information"
735 msgstr ""
736
737 #. krb524_err.et:k524:KRB524_BADADDR
738 #: ../src/dummy-strings.c:141
739 msgid "Cannot convert V5 principal"
740 msgstr ""
741
742 #. krb524_err.et:k524:KRB524_BADPRINC
743 #: ../src/dummy-strings.c:142
744 msgid "V5 realm name longer than V4 maximum"
745 msgstr ""
746
747 #. krb524_err.et:k524:KRB524_BADREALM
748 #: ../src/dummy-strings.c:143
749 msgid "Kerberos V4 error"
750 msgstr ""
751
752 #. krb524_err.et:k524:KRB524_V4ERR
753 #: ../src/dummy-strings.c:144
754 msgid "Encoding too large"
755 msgstr ""
756
757 #. krb524_err.et:k524:KRB524_ENCFULL
758 #: ../src/dummy-strings.c:145
759 msgid "Decoding out of data"
760 msgstr ""
761
762 #. krb524_err.et:k524:KRB524_DECEMPTY
763 #: ../src/dummy-strings.c:146
764 msgid "Service not responding"
765 msgstr ""
766
767 #. krb524_err.et:k524:KRB524_NOTRESP
768 #: ../src/dummy-strings.c:147
769 msgid "Kerberos version 4 support is disabled"
770 msgstr ""
771
772 #. krb524_err.et:k524:KRB524_KRB4_DISABLED
773 #: ../src/dummy-strings.c:148
774 msgid "No error"
775 msgstr "Inga fel"
776
777 #. krb5_err.et:krb5:KRB5KDC_ERR_NONE
778 #: ../src/dummy-strings.c:149
779 msgid "Client's entry in database has expired"
780 msgstr ""
781
782 #. krb5_err.et:krb5:KRB5KDC_ERR_NAME_EXP
783 #: ../src/dummy-strings.c:150
784 msgid "Server's entry in database has expired"
785 msgstr ""
786
787 #. krb5_err.et:krb5:KRB5KDC_ERR_SERVICE_EXP
788 #: ../src/dummy-strings.c:151
789 msgid "Requested protocol version not supported"
790 msgstr ""
791
792 #. krb5_err.et:krb5:KRB5KDC_ERR_BAD_PVNO
793 #: ../src/dummy-strings.c:152
794 msgid "Client's key is encrypted in an old master key"
795 msgstr ""
796
797 #. krb5_err.et:krb5:KRB5KDC_ERR_C_OLD_MAST_KVNO
798 #: ../src/dummy-strings.c:153
799 msgid "Server's key is encrypted in an old master key"
800 msgstr ""
801
802 #. krb5_err.et:krb5:KRB5KDC_ERR_S_OLD_MAST_KVNO
803 #: ../src/dummy-strings.c:154
804 msgid "Client not found in Kerberos database"
805 msgstr ""
806
807 #. krb5_err.et:krb5:KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN
808 #: ../src/dummy-strings.c:155
809 msgid "Server not found in Kerberos database"
810 msgstr ""
811
812 #. krb5_err.et:krb5:KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN
813 #: ../src/dummy-strings.c:156
814 msgid "Principal has multiple entries in Kerberos database"
815 msgstr ""
816
817 #. krb5_err.et:krb5:KRB5KDC_ERR_PRINCIPAL_NOT_UNIQUE
818 #: ../src/dummy-strings.c:157
819 msgid "Client or server has a null key"
820 msgstr ""
821
822 #. krb5_err.et:krb5:KRB5KDC_ERR_NULL_KEY
823 #: ../src/dummy-strings.c:158
824 msgid "Ticket is ineligible for postdating"
825 msgstr ""
826
827 #. krb5_err.et:krb5:KRB5KDC_ERR_CANNOT_POSTDATE
828 #: ../src/dummy-strings.c:159
829 msgid "Requested effective lifetime is negative or too short"
830 msgstr ""
831
832 #. krb5_err.et:krb5:KRB5KDC_ERR_NEVER_VALID
833 #: ../src/dummy-strings.c:160
834 msgid "KDC policy rejects request"
835 msgstr ""
836
837 #. krb5_err.et:krb5:KRB5KDC_ERR_POLICY
838 #: ../src/dummy-strings.c:161
839 msgid "KDC can't fulfill requested option"
840 msgstr ""
841
842 #. krb5_err.et:krb5:KRB5KDC_ERR_BADOPTION
843 #: ../src/dummy-strings.c:162
844 msgid "KDC has no support for encryption type"
845 msgstr ""
846
847 #. krb5_err.et:krb5:KRB5KDC_ERR_ETYPE_NOSUPP
848 #: ../src/dummy-strings.c:163
849 msgid "KDC has no support for checksum type"
850 msgstr ""
851
852 #. krb5_err.et:krb5:KRB5KDC_ERR_SUMTYPE_NOSUPP
853 #: ../src/dummy-strings.c:164
854 msgid "KDC has no support for padata type"
855 msgstr ""
856
857 #. krb5_err.et:krb5:KRB5KDC_ERR_PADATA_TYPE_NOSUPP
858 #: ../src/dummy-strings.c:165
859 msgid "KDC has no support for transited type"
860 msgstr ""
861
862 #. krb5_err.et:krb5:KRB5KDC_ERR_TRTYPE_NOSUPP
863 #: ../src/dummy-strings.c:166
864 msgid "Clients credentials have been revoked"
865 msgstr ""
866
867 #. krb5_err.et:krb5:KRB5KDC_ERR_CLIENT_REVOKED
868 #: ../src/dummy-strings.c:167
869 msgid "Credentials for server have been revoked"
870 msgstr ""
871
872 #. krb5_err.et:krb5:KRB5KDC_ERR_SERVICE_REVOKED
873 #: ../src/dummy-strings.c:168
874 msgid "TGT has been revoked"
875 msgstr ""
876
877 #. krb5_err.et:krb5:KRB5KDC_ERR_TGT_REVOKED
878 #: ../src/dummy-strings.c:169
879 msgid "Client not yet valid - try again later"
880 msgstr ""
881
882 #. krb5_err.et:krb5:KRB5KDC_ERR_CLIENT_NOTYET
883 #: ../src/dummy-strings.c:170
884 msgid "Server not yet valid - try again later"
885 msgstr ""
886
887 #. krb5_err.et:krb5:KRB5KDC_ERR_SERVICE_NOTYET
888 #: ../src/dummy-strings.c:171
889 msgid "Password has expired"
890 msgstr ""
891
892 #. krb5_err.et:krb5:KRB5KDC_ERR_KEY_EXP
893 #: ../src/dummy-strings.c:172
894 msgid "Preauthentication failed"
895 msgstr ""
896
897 #. krb5_err.et:krb5:KRB5KDC_ERR_PREAUTH_FAILED
898 #: ../src/dummy-strings.c:173
899 msgid "Additional pre-authentication required"
900 msgstr ""
901
902 #. krb5_err.et:krb5:KRB5KDC_ERR_PREAUTH_REQUIRED
903 #: ../src/dummy-strings.c:174
904 msgid "Requested server and ticket don't match"
905 msgstr ""
906
907 #. krb5_err.et:krb5:KRB5KDC_ERR_SERVER_NOMATCH
908 #: ../src/dummy-strings.c:175
909 msgid "Decrypt integrity check failed"
910 msgstr ""
911
912 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_TKT_EXPIRED
913 #: ../src/dummy-strings.c:177
914 msgid "Ticket not yet valid"
915 msgstr ""
916
917 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_TKT_NYV
918 #: ../src/dummy-strings.c:178
919 msgid "Request is a replay"
920 msgstr ""
921
922 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_NOT_US
923 #: ../src/dummy-strings.c:180
924 msgid "Ticket/authenticator don't match"
925 msgstr ""
926
927 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADMATCH
928 #: ../src/dummy-strings.c:181
929 msgid "Clock skew too great"
930 msgstr ""
931
932 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADORDER
933 #: ../src/dummy-strings.c:187
934 msgid "Illegal cross-realm ticket"
935 msgstr ""
936
937 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_ILL_CR_TKT
938 #: ../src/dummy-strings.c:188
939 msgid "Key version is not available"
940 msgstr ""
941
942 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADKEYVER
943 #: ../src/dummy-strings.c:189
944 msgid "Service key not available"
945 msgstr ""
946
947 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_NOKEY
948 #. krb5_err.et:krb5:KRB5_NO_LOCALNAME
949 #: ../src/dummy-strings.c:190
950 #: ../src/dummy-strings.c:228
951 msgid "Mutual authentication failed"
952 msgstr ""
953
954 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_MUT_FAIL
955 #: ../src/dummy-strings.c:191
956 msgid "Incorrect message direction"
957 msgstr ""
958
959 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADDIRECTION
960 #: ../src/dummy-strings.c:192
961 msgid "Alternative authentication method required"
962 msgstr ""
963
964 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_METHOD
965 #: ../src/dummy-strings.c:193
966 msgid "Incorrect sequence number in message"
967 msgstr ""
968
969 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_BADSEQ
970 #: ../src/dummy-strings.c:194
971 msgid "Inappropriate type of checksum in message"
972 msgstr ""
973
974 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_INAPP_CKSUM
975 #: ../src/dummy-strings.c:195
976 msgid "Policy rejects transited path"
977 msgstr ""
978
979 #. krb5_err.et:krb5:KRB5KRB_AP_PATH_NOT_ACCEPTED
980 #: ../src/dummy-strings.c:196
981 msgid "Response too big for UDP, retry with TCP"
982 msgstr ""
983
984 #. krb5_err.et:krb5:KRB5KRB_ERR_RESPONSE_TOO_BIG
985 #: ../src/dummy-strings.c:197
986 msgid "Generic error (see e-text)"
987 msgstr ""
988
989 #. krb5_err.et:krb5:KRB5KRB_ERR_GENERIC
990 #: ../src/dummy-strings.c:198
991 msgid "Field is too long for this implementation"
992 msgstr ""
993
994 #. krb5_err.et:krb5:KRB5KRB_ERR_FIELD_TOOLONG
995 #: ../src/dummy-strings.c:199
996 msgid "Invalid flag for file lock mode"
997 msgstr ""
998
999 #. krb5_err.et:krb5:KRB5_LIBOS_BADLOCKFLAG
1000 #: ../src/dummy-strings.c:200
1001 msgid "Cannot read password"
1002 msgstr ""
1003
1004 #. krb5_err.et:krb5:KRB5_LIBOS_CANTREADPWD
1005 #: ../src/dummy-strings.c:201
1006 msgid "Password mismatch"
1007 msgstr ""
1008
1009 #. krb5_err.et:krb5:KRB5_LIBOS_BADPWDMATCH
1010 #: ../src/dummy-strings.c:202
1011 msgid "Password read interrupted"
1012 msgstr ""
1013
1014 #. krb5_err.et:krb5:KRB5_LIBOS_PWDINTR
1015 #: ../src/dummy-strings.c:203
1016 msgid "Illegal character in component name"
1017 msgstr ""
1018
1019 #. krb5_err.et:krb5:KRB5_PARSE_ILLCHAR
1020 #: ../src/dummy-strings.c:204
1021 msgid "Malformed representation of principal"
1022 msgstr ""
1023
1024 #. krb5_err.et:krb5:KRB5_PARSE_MALFORMED
1025 #: ../src/dummy-strings.c:205
1026 msgid "Can't open/find Kerberos configuration file"
1027 msgstr ""
1028
1029 #. krb5_err.et:krb5:KRB5_CONFIG_CANTOPEN
1030 #: ../src/dummy-strings.c:206
1031 msgid "Improper format of Kerberos configuration file"
1032 msgstr ""
1033
1034 #. krb5_err.et:krb5:KRB5_CONFIG_BADFORMAT
1035 #: ../src/dummy-strings.c:207
1036 msgid "Insufficient space to return complete information"
1037 msgstr ""
1038
1039 #. krb5_err.et:krb5:KRB5_CONFIG_NOTENUFSPACE
1040 #: ../src/dummy-strings.c:208
1041 msgid "Invalid message type specified for encoding"
1042 msgstr ""
1043
1044 #. krb5_err.et:krb5:KRB5_BADMSGTYPE
1045 #: ../src/dummy-strings.c:209
1046 msgid "Credential cache name malformed"
1047 msgstr ""
1048
1049 #. krb5_err.et:krb5:KRB5_CC_BADNAME
1050 #: ../src/dummy-strings.c:210
1051 msgid "Unknown credential cache type"
1052 msgstr ""
1053
1054 #. krb5_err.et:krb5:KRB5_CC_UNKNOWN_TYPE
1055 #: ../src/dummy-strings.c:211
1056 msgid "Matching credential not found"
1057 msgstr ""
1058
1059 #. krb5_err.et:krb5:KRB5_CC_NOTFOUND
1060 #: ../src/dummy-strings.c:212
1061 msgid "End of credential cache reached"
1062 msgstr ""
1063
1064 #. krb5_err.et:krb5:KRB5_CC_END
1065 #: ../src/dummy-strings.c:213
1066 msgid "Request did not supply a ticket"
1067 msgstr ""
1068
1069 #. krb5_err.et:krb5:KRB5_NO_TKT_SUPPLIED
1070 #: ../src/dummy-strings.c:214
1071 msgid "Wrong principal in request"
1072 msgstr ""
1073
1074 #. krb5_err.et:krb5:KRB5KRB_AP_WRONG_PRINC
1075 #: ../src/dummy-strings.c:215
1076 msgid "Ticket has invalid flag set"
1077 msgstr ""
1078
1079 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_TKT_INVALID
1080 #: ../src/dummy-strings.c:216
1081 msgid "Requested principal and ticket don't match"
1082 msgstr ""
1083
1084 #. krb5_err.et:krb5:KRB5_PRINC_NOMATCH
1085 #: ../src/dummy-strings.c:217
1086 msgid "KDC reply did not match expectations"
1087 msgstr ""
1088
1089 #. krb5_err.et:krb5:KRB5_KDCREP_MODIFIED
1090 #: ../src/dummy-strings.c:218
1091 msgid "Clock skew too great in KDC reply"
1092 msgstr ""
1093
1094 #. krb5_err.et:krb5:KRB5_KDCREP_SKEW
1095 #: ../src/dummy-strings.c:219
1096 msgid "Client/server realm mismatch in initial ticket request"
1097 msgstr ""
1098
1099 #. krb5_err.et:krb5:KRB5_IN_TKT_REALM_MISMATCH
1100 #: ../src/dummy-strings.c:220
1101 msgid "Program lacks support for encryption type"
1102 msgstr ""
1103
1104 #. krb5_err.et:krb5:KRB5_PROG_ETYPE_NOSUPP
1105 #: ../src/dummy-strings.c:221
1106 msgid "Program lacks support for key type"
1107 msgstr ""
1108
1109 #. krb5_err.et:krb5:KRB5_PROG_KEYTYPE_NOSUPP
1110 #: ../src/dummy-strings.c:222
1111 msgid "Requested encryption type not used in message"
1112 msgstr ""
1113
1114 #. krb5_err.et:krb5:KRB5_WRONG_ETYPE
1115 #: ../src/dummy-strings.c:223
1116 msgid "Program lacks support for checksum type"
1117 msgstr ""
1118
1119 #. krb5_err.et:krb5:KRB5_PROG_SUMTYPE_NOSUPP
1120 #: ../src/dummy-strings.c:224
1121 msgid "Cannot find KDC for requested realm"
1122 msgstr ""
1123
1124 #. krb5_err.et:krb5:KRB5_REALM_UNKNOWN
1125 #: ../src/dummy-strings.c:225
1126 msgid "Kerberos service unknown"
1127 msgstr ""
1128
1129 #. krb5_err.et:krb5:KRB5_SERVICE_UNKNOWN
1130 #: ../src/dummy-strings.c:226
1131 msgid "Cannot contact any KDC for requested realm"
1132 msgstr ""
1133
1134 #. krb5_err.et:krb5:KRB5_KDC_UNREACH
1135 #: ../src/dummy-strings.c:227
1136 msgid "No local name found for principal name"
1137 msgstr ""
1138
1139 #. krb5_err.et:krb5:KRB5_MUTUAL_FAILED
1140 #: ../src/dummy-strings.c:229
1141 msgid "Replay cache type is already registered"
1142 msgstr ""
1143
1144 #. krb5_err.et:krb5:KRB5_RC_TYPE_EXISTS
1145 #: ../src/dummy-strings.c:230
1146 msgid "No more memory to allocate (in replay cache code)"
1147 msgstr ""
1148
1149 #. krb5_err.et:krb5:KRB5_RC_MALLOC
1150 #: ../src/dummy-strings.c:231
1151 msgid "Replay cache type is unknown"
1152 msgstr ""
1153
1154 #. krb5_err.et:krb5:KRB5_RC_TYPE_NOTFOUND
1155 #: ../src/dummy-strings.c:232
1156 msgid "Generic unknown RC error"
1157 msgstr ""
1158
1159 #. krb5_err.et:krb5:KRB5_RC_UNKNOWN
1160 #: ../src/dummy-strings.c:233
1161 msgid "Message is a replay"
1162 msgstr ""
1163
1164 #. krb5_err.et:krb5:KRB5_RC_REPLAY
1165 #: ../src/dummy-strings.c:234
1166 msgid "Replay I/O operation failed XXX"
1167 msgstr ""
1168
1169 #. krb5_err.et:krb5:KRB5_RC_IO
1170 #: ../src/dummy-strings.c:235
1171 msgid "Replay cache type does not support non-volatile storage"
1172 msgstr ""
1173
1174 #. krb5_err.et:krb5:KRB5_RC_NOIO
1175 #: ../src/dummy-strings.c:236
1176 msgid "Replay cache name parse/format error"
1177 msgstr ""
1178
1179 #. krb5_err.et:krb5:KRB5_RC_PARSE
1180 #: ../src/dummy-strings.c:237
1181 msgid "End-of-file on replay cache I/O"
1182 msgstr ""
1183
1184 #. krb5_err.et:krb5:KRB5_RC_IO_EOF
1185 #: ../src/dummy-strings.c:238
1186 msgid "No more memory to allocate (in replay cache I/O code)"
1187 msgstr ""
1188
1189 #. krb5_err.et:krb5:KRB5_RC_IO_MALLOC
1190 #: ../src/dummy-strings.c:239
1191 msgid "Permission denied in replay cache code"
1192 msgstr ""
1193
1194 #. krb5_err.et:krb5:KRB5_RC_IO_PERM
1195 #: ../src/dummy-strings.c:240
1196 msgid "I/O error in replay cache i/o code"
1197 msgstr ""
1198
1199 #. krb5_err.et:krb5:KRB5_RC_IO_IO
1200 #: ../src/dummy-strings.c:241
1201 msgid "Generic unknown RC/IO error"
1202 msgstr ""
1203
1204 #. krb5_err.et:krb5:KRB5_RC_IO_UNKNOWN
1205 #: ../src/dummy-strings.c:242
1206 msgid "Insufficient system space to store replay information"
1207 msgstr ""
1208
1209 #. krb5_err.et:krb5:KRB5_RC_IO_SPACE
1210 #: ../src/dummy-strings.c:243
1211 msgid "Can't open/find realm translation file"
1212 msgstr ""
1213
1214 #. krb5_err.et:krb5:KRB5_TRANS_CANTOPEN
1215 #: ../src/dummy-strings.c:244
1216 msgid "Improper format of realm translation file"
1217 msgstr ""
1218
1219 #. krb5_err.et:krb5:KRB5_TRANS_BADFORMAT
1220 #: ../src/dummy-strings.c:245
1221 msgid "Can't open/find lname translation database"
1222 msgstr ""
1223
1224 #. krb5_err.et:krb5:KRB5_LNAME_CANTOPEN
1225 #: ../src/dummy-strings.c:246
1226 msgid "No translation available for requested principal"
1227 msgstr ""
1228
1229 #. krb5_err.et:krb5:KRB5_LNAME_NOTRANS
1230 #: ../src/dummy-strings.c:247
1231 msgid "Improper format of translation database entry"
1232 msgstr ""
1233
1234 #. krb5_err.et:krb5:KRB5_LNAME_BADFORMAT
1235 #: ../src/dummy-strings.c:248
1236 msgid "Cryptosystem internal error"
1237 msgstr ""
1238
1239 #. krb5_err.et:krb5:KRB5_CRYPTO_INTERNAL
1240 #: ../src/dummy-strings.c:249
1241 msgid "Key table name malformed"
1242 msgstr ""
1243
1244 #. krb5_err.et:krb5:KRB5_KT_BADNAME
1245 #: ../src/dummy-strings.c:250
1246 msgid "Unknown Key table type"
1247 msgstr ""
1248
1249 #. krb5_err.et:krb5:KRB5_KT_UNKNOWN_TYPE
1250 #: ../src/dummy-strings.c:251
1251 msgid "Key table entry not found"
1252 msgstr ""
1253
1254 #. krb5_err.et:krb5:KRB5_KT_NOTFOUND
1255 #: ../src/dummy-strings.c:252
1256 msgid "End of key table reached"
1257 msgstr ""
1258
1259 #. krb5_err.et:krb5:KRB5_KT_END
1260 #: ../src/dummy-strings.c:253
1261 msgid "Cannot write to specified key table"
1262 msgstr ""
1263
1264 #. krb5_err.et:krb5:KRB5_KT_NOWRITE
1265 #: ../src/dummy-strings.c:254
1266 msgid "Error writing to key table"
1267 msgstr ""
1268
1269 #. krb5_err.et:krb5:KRB5_KT_IOERR
1270 #: ../src/dummy-strings.c:255
1271 msgid "Cannot find ticket for requested realm"
1272 msgstr ""
1273
1274 #. krb5_err.et:krb5:KRB5_NO_TKT_IN_RLM
1275 #: ../src/dummy-strings.c:256
1276 msgid "DES key has bad parity"
1277 msgstr ""
1278
1279 #. krb5_err.et:krb5:KRB5DES_BAD_KEYPAR
1280 #: ../src/dummy-strings.c:257
1281 msgid "DES key is a weak key"
1282 msgstr ""
1283
1284 #. krb5_err.et:krb5:KRB5DES_WEAK_KEY
1285 #: ../src/dummy-strings.c:258
1286 msgid "Bad encryption type"
1287 msgstr ""
1288
1289 #. krb5_err.et:krb5:KRB5_BAD_ENCTYPE
1290 #: ../src/dummy-strings.c:259
1291 msgid "Key size is incompatible with encryption type"
1292 msgstr ""
1293
1294 #. krb5_err.et:krb5:KRB5_BAD_KEYSIZE
1295 #: ../src/dummy-strings.c:260
1296 msgid "Message size is incompatible with encryption type"
1297 msgstr ""
1298
1299 #. krb5_err.et:krb5:KRB5_BAD_MSIZE
1300 #: ../src/dummy-strings.c:261
1301 msgid "Credentials cache type is already registered."
1302 msgstr ""
1303
1304 #. krb5_err.et:krb5:KRB5_CC_TYPE_EXISTS
1305 #: ../src/dummy-strings.c:262
1306 msgid "Key table type is already registered."
1307 msgstr ""
1308
1309 #. krb5_err.et:krb5:KRB5_KT_TYPE_EXISTS
1310 #: ../src/dummy-strings.c:263
1311 msgid "Credentials cache I/O operation failed XXX"
1312 msgstr ""
1313
1314 #. krb5_err.et:krb5:KRB5_CC_IO
1315 #: ../src/dummy-strings.c:264
1316 msgid "Credentials cache permissions incorrect"
1317 msgstr ""
1318
1319 #. krb5_err.et:krb5:KRB5_FCC_PERM
1320 #: ../src/dummy-strings.c:265
1321 msgid "No credentials cache found"
1322 msgstr ""
1323
1324 #. krb5_err.et:krb5:KRB5_FCC_NOFILE
1325 #: ../src/dummy-strings.c:266
1326 msgid "Internal credentials cache error"
1327 msgstr ""
1328
1329 #. krb5_err.et:krb5:KRB5_FCC_INTERNAL
1330 #: ../src/dummy-strings.c:267
1331 msgid "Error writing to credentials cache"
1332 msgstr ""
1333
1334 #. krb5_err.et:krb5:KRB5_CC_WRITE
1335 #: ../src/dummy-strings.c:268
1336 msgid "No more memory to allocate (in credentials cache code)"
1337 msgstr ""
1338
1339 #. krb5_err.et:krb5:KRB5_CC_NOMEM
1340 #: ../src/dummy-strings.c:269
1341 msgid "Bad format in credentials cache"
1342 msgstr ""
1343
1344 #. krb5_err.et:krb5:KRB5_CC_FORMAT
1345 #: ../src/dummy-strings.c:270
1346 msgid "No credentials found with supported encryption types"
1347 msgstr ""
1348
1349 #. krb5_err.et:krb5:KRB5_CC_NOT_KTYPE
1350 #: ../src/dummy-strings.c:271
1351 msgid "Invalid KDC option combination (library internal error)"
1352 msgstr ""
1353
1354 #. krb5_err.et:krb5:KRB5_INVALID_FLAGS
1355 #: ../src/dummy-strings.c:272
1356 msgid "Request missing second ticket"
1357 msgstr ""
1358
1359 #. krb5_err.et:krb5:KRB5_NO_2ND_TKT
1360 #: ../src/dummy-strings.c:273
1361 msgid "No credentials supplied to library routine"
1362 msgstr ""
1363
1364 #. krb5_err.et:krb5:KRB5_NOCREDS_SUPPLIED
1365 #: ../src/dummy-strings.c:274
1366 msgid "Bad sendauth version was sent"
1367 msgstr ""
1368
1369 #. krb5_err.et:krb5:KRB5_SENDAUTH_BADAUTHVERS
1370 #: ../src/dummy-strings.c:275
1371 msgid "Bad application version was sent (via sendauth)"
1372 msgstr ""
1373
1374 #. krb5_err.et:krb5:KRB5_SENDAUTH_BADAPPLVERS
1375 #: ../src/dummy-strings.c:276
1376 msgid "Bad response (during sendauth exchange)"
1377 msgstr ""
1378
1379 #. krb5_err.et:krb5:KRB5_SENDAUTH_BADRESPONSE
1380 #: ../src/dummy-strings.c:277
1381 msgid "Server rejected authentication (during sendauth exchange)"
1382 msgstr ""
1383
1384 #. krb5_err.et:krb5:KRB5_SENDAUTH_REJECTED
1385 #: ../src/dummy-strings.c:278
1386 msgid "Unsupported preauthentication type"
1387 msgstr ""
1388
1389 #. krb5_err.et:krb5:KRB5_PREAUTH_BAD_TYPE
1390 #: ../src/dummy-strings.c:279
1391 msgid "Required preauthentication key not supplied"
1392 msgstr ""
1393
1394 #. krb5_err.et:krb5:KRB5_PREAUTH_NO_KEY
1395 #: ../src/dummy-strings.c:280
1396 msgid "Generic preauthentication failure"
1397 msgstr ""
1398
1399 #. krb5_err.et:krb5:KRB5_PREAUTH_FAILED
1400 #: ../src/dummy-strings.c:281
1401 msgid "Unsupported replay cache format version number"
1402 msgstr ""
1403
1404 #. krb5_err.et:krb5:KRB5_RCACHE_BADVNO
1405 #: ../src/dummy-strings.c:282
1406 msgid "Unsupported credentials cache format version number"
1407 msgstr ""
1408
1409 #. krb5_err.et:krb5:KRB5_CCACHE_BADVNO
1410 #: ../src/dummy-strings.c:283
1411 msgid "Unsupported key table format version number"
1412 msgstr ""
1413
1414 #. krb5_err.et:krb5:KRB5_KEYTAB_BADVNO
1415 #: ../src/dummy-strings.c:284
1416 msgid "Program lacks support for address type"
1417 msgstr ""
1418
1419 #. krb5_err.et:krb5:KRB5_PROG_ATYPE_NOSUPP
1420 #: ../src/dummy-strings.c:285
1421 msgid "Message replay detection requires rcache parameter"
1422 msgstr ""
1423
1424 #. krb5_err.et:krb5:KRB5_RC_REQUIRED
1425 #: ../src/dummy-strings.c:286
1426 msgid "Hostname cannot be canonicalized"
1427 msgstr ""
1428
1429 #. krb5_err.et:krb5:KRB5_ERR_BAD_HOSTNAME
1430 #: ../src/dummy-strings.c:287
1431 msgid "Cannot determine realm for host"
1432 msgstr ""
1433
1434 #. krb5_err.et:krb5:KRB5_ERR_HOST_REALM_UNKNOWN
1435 #: ../src/dummy-strings.c:288
1436 msgid "Conversion to service principal undefined for name type"
1437 msgstr ""
1438
1439 #. krb5_err.et:krb5:KRB5_SNAME_UNSUPP_NAMETYPE
1440 #: ../src/dummy-strings.c:289
1441 msgid "Initial Ticket response appears to be Version 4 error"
1442 msgstr ""
1443
1444 #. krb5_err.et:krb5:KRB5KRB_AP_ERR_V4_REPLY
1445 #: ../src/dummy-strings.c:290
1446 msgid "Cannot resolve network address for KDC in requested realm"
1447 msgstr ""
1448
1449 #. krb5_err.et:krb5:KRB5_REALM_CANT_RESOLVE
1450 #: ../src/dummy-strings.c:291
1451 msgid "Requesting ticket can't get forwardable tickets"
1452 msgstr ""
1453
1454 #. krb5_err.et:krb5:KRB5_TKT_NOT_FORWARDABLE
1455 #: ../src/dummy-strings.c:292
1456 msgid "Bad principal name while trying to forward credentials"
1457 msgstr ""
1458
1459 #. krb5_err.et:krb5:KRB5_FWD_BAD_PRINCIPAL
1460 #: ../src/dummy-strings.c:293
1461 msgid "Looping detected inside krb5_get_in_tkt"
1462 msgstr ""
1463
1464 #. krb5_err.et:krb5:KRB5_GET_IN_TKT_LOOP
1465 #: ../src/dummy-strings.c:294
1466 msgid "Configuration file does not specify default realm"
1467 msgstr ""
1468
1469 #. krb5_err.et:krb5:KRB5_CONFIG_NODEFREALM
1470 #: ../src/dummy-strings.c:295
1471 msgid "Bad SAM flags in obtain_sam_padata"
1472 msgstr ""
1473
1474 #. krb5_err.et:krb5:KRB5_SAM_UNSUPPORTED
1475 #: ../src/dummy-strings.c:296
1476 msgid "Invalid encryption type in SAM challenge"
1477 msgstr ""
1478
1479 #. krb5_err.et:krb5:KRB5_SAM_INVALID_ETYPE
1480 #: ../src/dummy-strings.c:297
1481 msgid "Missing checksum in SAM challenge"
1482 msgstr ""
1483
1484 #. krb5_err.et:krb5:KRB5_SAM_NO_CHECKSUM
1485 #: ../src/dummy-strings.c:298
1486 msgid "Bad checksum in SAM challenge"
1487 msgstr ""
1488
1489 #. krb5_err.et:krb5:KRB5_SAM_BAD_CHECKSUM
1490 #: ../src/dummy-strings.c:299
1491 msgid "Keytab name too long"
1492 msgstr ""
1493
1494 #. krb5_err.et:krb5:KRB5_KT_NAME_TOOLONG
1495 #: ../src/dummy-strings.c:300
1496 msgid "Key version number for principal in key table is incorrect"
1497 msgstr ""
1498
1499 #. krb5_err.et:krb5:KRB5_KT_KVNONOTFOUND
1500 #: ../src/dummy-strings.c:301
1501 msgid "This application has expired"
1502 msgstr ""
1503
1504 #. krb5_err.et:krb5:KRB5_APPL_EXPIRED
1505 #: ../src/dummy-strings.c:302
1506 msgid "This Krb5 library has expired"
1507 msgstr ""
1508
1509 #. krb5_err.et:krb5:KRB5_LIB_EXPIRED
1510 #: ../src/dummy-strings.c:303
1511 msgid "New password cannot be zero length"
1512 msgstr ""
1513
1514 #. krb5_err.et:krb5:KRB5_CHPW_PWDNULL
1515 #: ../src/dummy-strings.c:304
1516 msgid "Password change failed"
1517 msgstr ""
1518
1519 #. krb5_err.et:krb5:KRB5_CHPW_FAIL
1520 #: ../src/dummy-strings.c:305
1521 msgid "Bad format in keytab"
1522 msgstr ""
1523
1524 #. krb5_err.et:krb5:KRB5_KT_FORMAT
1525 #: ../src/dummy-strings.c:306
1526 msgid "Encryption type not permitted"
1527 msgstr ""
1528
1529 #. krb5_err.et:krb5:KRB5_NOPERM_ETYPE
1530 #: ../src/dummy-strings.c:307
1531 msgid "No supported encryption types (config file error?)"
1532 msgstr ""
1533
1534 #. krb5_err.et:krb5:KRB5_CONFIG_ETYPE_NOSUPP
1535 #: ../src/dummy-strings.c:308
1536 msgid "Program called an obsolete, deleted function"
1537 msgstr ""
1538
1539 #. krb5_err.et:krb5:KRB5_OBSOLETE_FN
1540 #: ../src/dummy-strings.c:309
1541 msgid "unknown getaddrinfo failure"
1542 msgstr ""
1543
1544 #. krb5_err.et:krb5:KRB5_EAI_FAIL
1545 #: ../src/dummy-strings.c:310
1546 msgid "no data available for host/domain name"
1547 msgstr ""
1548
1549 #. krb5_err.et:krb5:KRB5_EAI_NODATA
1550 #: ../src/dummy-strings.c:311
1551 msgid "host/domain name not found"
1552 msgstr ""
1553
1554 #. krb5_err.et:krb5:KRB5_EAI_NONAME
1555 #: ../src/dummy-strings.c:312
1556 msgid "service name unknown"
1557 msgstr ""
1558
1559 #. krb5_err.et:krb5:KRB5_EAI_SERVICE
1560 #: ../src/dummy-strings.c:313
1561 msgid "Cannot determine realm for numeric host address"
1562 msgstr ""
1563
1564 #. krb5_err.et:krb5:KRB5_ERR_NUMERIC_REALM
1565 #: ../src/dummy-strings.c:314
1566 msgid "Invalid key generation parameters from KDC"
1567 msgstr ""
1568
1569 #. krb5_err.et:krb5:KRB5_ERR_BAD_S2K_PARAMS
1570 #: ../src/dummy-strings.c:315
1571 msgid "service not available"
1572 msgstr ""
1573
1574 #. krb5_err.et:krb5:KRB5_ERR_NO_SERVICE
1575 #: ../src/dummy-strings.c:316
1576 msgid "Ccache function not supported: read-only ccache type"
1577 msgstr ""
1578
1579 #. krb5_err.et:krb5:KRB5_CC_READONLY
1580 #: ../src/dummy-strings.c:317
1581 msgid "Ccache function not supported: not implemented"
1582 msgstr ""
1583
1584 #. krb5_err.et:krb5:KRB5_CC_NOSUPP
1585 #: ../src/dummy-strings.c:318
1586 msgid "ASN.1 failed call to system time library"
1587 msgstr ""
1588
1589 #. asn1_err.et:asn1:ASN1_BAD_TIMEFORMAT
1590 #: ../src/dummy-strings.c:319
1591 msgid "ASN.1 structure is missing a required field"
1592 msgstr ""
1593
1594 #. asn1_err.et:asn1:ASN1_MISSING_FIELD
1595 #: ../src/dummy-strings.c:320
1596 msgid "ASN.1 unexpected field number"
1597 msgstr ""
1598
1599 #. asn1_err.et:asn1:ASN1_MISPLACED_FIELD
1600 #: ../src/dummy-strings.c:321
1601 msgid "ASN.1 type numbers are inconsistent"
1602 msgstr ""
1603
1604 #. asn1_err.et:asn1:ASN1_TYPE_MISMATCH
1605 #: ../src/dummy-strings.c:322
1606 msgid "ASN.1 value too large"
1607 msgstr ""
1608
1609 #. asn1_err.et:asn1:ASN1_OVERFLOW
1610 #: ../src/dummy-strings.c:323
1611 msgid "ASN.1 encoding ended unexpectedly"
1612 msgstr ""
1613
1614 #. asn1_err.et:asn1:ASN1_OVERRUN
1615 #: ../src/dummy-strings.c:324
1616 msgid "ASN.1 identifier doesn't match expected value"
1617 msgstr ""
1618
1619 #. asn1_err.et:asn1:ASN1_BAD_ID
1620 #: ../src/dummy-strings.c:325
1621 msgid "ASN.1 length doesn't match expected value"
1622 msgstr ""
1623
1624 #. asn1_err.et:asn1:ASN1_BAD_LENGTH
1625 #: ../src/dummy-strings.c:326
1626 msgid "ASN.1 badly-formatted encoding"
1627 msgstr ""
1628
1629 #. asn1_err.et:asn1:ASN1_BAD_FORMAT
1630 #: ../src/dummy-strings.c:327
1631 msgid "ASN.1 parse error"
1632 msgstr ""
1633
1634 #. asn1_err.et:asn1:ASN1_PARSE_ERROR
1635 #: ../src/dummy-strings.c:328
1636 msgid "ASN.1 bad return from gmtime"
1637 msgstr ""
1638
1639 #. asn1_err.et:asn1:ASN1_BAD_GMTIME
1640 #: ../src/dummy-strings.c:329
1641 msgid "ASN.1 non-constructed indefinite encoding"
1642 msgstr ""
1643
1644 #. asn1_err.et:asn1:ASN1_MISMATCH_INDEF
1645 #: ../src/dummy-strings.c:330
1646 msgid "ASN.1 missing expected EOC"
1647 msgstr ""
1648
1649 #. asn1_err.et:asn1:ASN1_MISSING_EOC
1650 #: ../src/dummy-strings.c:331
1651 msgid "Kerberos V5 magic number table"
1652 msgstr ""
1653
1654 #. kv5m_err.et:kv5m:KV5M_NONE
1655 #: ../src/dummy-strings.c:332
1656 msgid "Bad magic number for krb5_principal structure"
1657 msgstr ""
1658
1659 #. kv5m_err.et:kv5m:KV5M_PRINCIPAL
1660 #: ../src/dummy-strings.c:333
1661 msgid "Bad magic number for krb5_data structure"
1662 msgstr ""
1663
1664 #. kv5m_err.et:kv5m:KV5M_DATA
1665 #: ../src/dummy-strings.c:334
1666 msgid "Bad magic number for krb5_keyblock structure"
1667 msgstr ""
1668
1669 #. kv5m_err.et:kv5m:KV5M_KEYBLOCK
1670 #: ../src/dummy-strings.c:335
1671 msgid "Bad magic number for krb5_checksum structure"
1672 msgstr ""
1673
1674 #. kv5m_err.et:kv5m:KV5M_CHECKSUM
1675 #: ../src/dummy-strings.c:336
1676 msgid "Bad magic number for krb5_encrypt_block structure"
1677 msgstr ""
1678
1679 #. kv5m_err.et:kv5m:KV5M_ENCRYPT_BLOCK
1680 #: ../src/dummy-strings.c:337
1681 msgid "Bad magic number for krb5_enc_data structure"
1682 msgstr ""
1683
1684 #. kv5m_err.et:kv5m:KV5M_ENC_DATA
1685 #: ../src/dummy-strings.c:338
1686 msgid "Bad magic number for krb5_cryptosystem_entry structure"
1687 msgstr ""
1688
1689 #. kv5m_err.et:kv5m:KV5M_CRYPTOSYSTEM_ENTRY
1690 #: ../src/dummy-strings.c:339
1691 msgid "Bad magic number for krb5_cs_table_entry structure"
1692 msgstr ""
1693
1694 #. kv5m_err.et:kv5m:KV5M_CS_TABLE_ENTRY
1695 #: ../src/dummy-strings.c:340
1696 msgid "Bad magic number for krb5_checksum_entry structure"
1697 msgstr ""
1698
1699 #. kv5m_err.et:kv5m:KV5M_CHECKSUM_ENTRY
1700 #: ../src/dummy-strings.c:341
1701 msgid "Bad magic number for krb5_authdata structure"
1702 msgstr ""
1703
1704 #. kv5m_err.et:kv5m:KV5M_AUTHDATA
1705 #: ../src/dummy-strings.c:342
1706 msgid "Bad magic number for krb5_transited structure"
1707 msgstr ""
1708
1709 #. kv5m_err.et:kv5m:KV5M_TRANSITED
1710 #: ../src/dummy-strings.c:343
1711 msgid "Bad magic number for krb5_enc_tkt_part structure"
1712 msgstr ""
1713
1714 #. kv5m_err.et:kv5m:KV5M_ENC_TKT_PART
1715 #: ../src/dummy-strings.c:344
1716 msgid "Bad magic number for krb5_ticket structure"
1717 msgstr ""
1718
1719 #. kv5m_err.et:kv5m:KV5M_TICKET
1720 #: ../src/dummy-strings.c:345
1721 msgid "Bad magic number for krb5_authenticator structure"
1722 msgstr ""
1723
1724 #. kv5m_err.et:kv5m:KV5M_AUTHENTICATOR
1725 #: ../src/dummy-strings.c:346
1726 msgid "Bad magic number for krb5_tkt_authent structure"
1727 msgstr ""
1728
1729 #. kv5m_err.et:kv5m:KV5M_TKT_AUTHENT
1730 #: ../src/dummy-strings.c:347
1731 msgid "Bad magic number for krb5_creds structure"
1732 msgstr ""
1733
1734 #. kv5m_err.et:kv5m:KV5M_CREDS
1735 #: ../src/dummy-strings.c:348
1736 msgid "Bad magic number for krb5_last_req_entry structure"
1737 msgstr ""
1738
1739 #. kv5m_err.et:kv5m:KV5M_LAST_REQ_ENTRY
1740 #: ../src/dummy-strings.c:349
1741 msgid "Bad magic number for krb5_pa_data structure"
1742 msgstr ""
1743
1744 #. kv5m_err.et:kv5m:KV5M_PA_DATA
1745 #: ../src/dummy-strings.c:350
1746 msgid "Bad magic number for krb5_kdc_req structure"
1747 msgstr ""
1748
1749 #. kv5m_err.et:kv5m:KV5M_KDC_REQ
1750 #: ../src/dummy-strings.c:351
1751 msgid "Bad magic number for krb5_enc_kdc_rep_part structure"
1752 msgstr ""
1753
1754 #. kv5m_err.et:kv5m:KV5M_ENC_KDC_REP_PART
1755 #: ../src/dummy-strings.c:352
1756 msgid "Bad magic number for krb5_kdc_rep structure"
1757 msgstr ""
1758
1759 #. kv5m_err.et:kv5m:KV5M_KDC_REP
1760 #: ../src/dummy-strings.c:353
1761 msgid "Bad magic number for krb5_error structure"
1762 msgstr ""
1763
1764 #. kv5m_err.et:kv5m:KV5M_ERROR
1765 #: ../src/dummy-strings.c:354
1766 msgid "Bad magic number for krb5_ap_req structure"
1767 msgstr ""
1768
1769 #. kv5m_err.et:kv5m:KV5M_AP_REQ
1770 #: ../src/dummy-strings.c:355
1771 msgid "Bad magic number for krb5_ap_rep structure"
1772 msgstr ""
1773
1774 #. kv5m_err.et:kv5m:KV5M_AP_REP
1775 #: ../src/dummy-strings.c:356
1776 msgid "Bad magic number for krb5_ap_rep_enc_part structure"
1777 msgstr ""
1778
1779 #. kv5m_err.et:kv5m:KV5M_AP_REP_ENC_PART
1780 #: ../src/dummy-strings.c:357
1781 msgid "Bad magic number for krb5_response structure"
1782 msgstr ""
1783
1784 #. kv5m_err.et:kv5m:KV5M_RESPONSE
1785 #: ../src/dummy-strings.c:358
1786 msgid "Bad magic number for krb5_safe structure"
1787 msgstr ""
1788
1789 #. kv5m_err.et:kv5m:KV5M_SAFE
1790 #: ../src/dummy-strings.c:359
1791 msgid "Bad magic number for krb5_priv structure"
1792 msgstr ""
1793
1794 #. kv5m_err.et:kv5m:KV5M_PRIV
1795 #: ../src/dummy-strings.c:360
1796 msgid "Bad magic number for krb5_priv_enc_part structure"
1797 msgstr ""
1798
1799 #. kv5m_err.et:kv5m:KV5M_PRIV_ENC_PART
1800 #: ../src/dummy-strings.c:361
1801 msgid "Bad magic number for krb5_cred structure"
1802 msgstr ""
1803
1804 #. kv5m_err.et:kv5m:KV5M_CRED
1805 #: ../src/dummy-strings.c:362
1806 msgid "Bad magic number for krb5_cred_info structure"
1807 msgstr ""
1808
1809 #. kv5m_err.et:kv5m:KV5M_CRED_INFO
1810 #: ../src/dummy-strings.c:363
1811 msgid "Bad magic number for krb5_cred_enc_part structure"
1812 msgstr ""
1813
1814 #. kv5m_err.et:kv5m:KV5M_CRED_ENC_PART
1815 #: ../src/dummy-strings.c:364
1816 msgid "Bad magic number for krb5_pwd_data structure"
1817 msgstr ""
1818
1819 #. kv5m_err.et:kv5m:KV5M_PWD_DATA
1820 #: ../src/dummy-strings.c:365
1821 msgid "Bad magic number for krb5_address structure"
1822 msgstr ""
1823
1824 #. kv5m_err.et:kv5m:KV5M_ADDRESS
1825 #: ../src/dummy-strings.c:366
1826 msgid "Bad magic number for krb5_keytab_entry structure"
1827 msgstr ""
1828
1829 #. kv5m_err.et:kv5m:KV5M_KEYTAB_ENTRY
1830 #: ../src/dummy-strings.c:367
1831 msgid "Bad magic number for krb5_context structure"
1832 msgstr ""
1833
1834 #. kv5m_err.et:kv5m:KV5M_CONTEXT
1835 #: ../src/dummy-strings.c:368
1836 msgid "Bad magic number for krb5_os_context structure"
1837 msgstr ""
1838
1839 #. kv5m_err.et:kv5m:KV5M_OS_CONTEXT
1840 #: ../src/dummy-strings.c:369
1841 msgid "Bad magic number for krb5_alt_method structure"
1842 msgstr ""
1843
1844 #. kv5m_err.et:kv5m:KV5M_ALT_METHOD
1845 #: ../src/dummy-strings.c:370
1846 msgid "Bad magic number for krb5_etype_info_entry structure"
1847 msgstr ""
1848
1849 #. kv5m_err.et:kv5m:KV5M_ETYPE_INFO_ENTRY
1850 #: ../src/dummy-strings.c:371
1851 msgid "Bad magic number for krb5_db_context structure"
1852 msgstr ""
1853
1854 #. kv5m_err.et:kv5m:KV5M_DB_CONTEXT
1855 #: ../src/dummy-strings.c:372
1856 msgid "Bad magic number for krb5_auth_context structure"
1857 msgstr ""
1858
1859 #. kv5m_err.et:kv5m:KV5M_AUTH_CONTEXT
1860 #: ../src/dummy-strings.c:373
1861 msgid "Bad magic number for krb5_keytab structure"
1862 msgstr ""
1863
1864 #. kv5m_err.et:kv5m:KV5M_KEYTAB
1865 #: ../src/dummy-strings.c:374
1866 msgid "Bad magic number for krb5_rcache structure"
1867 msgstr ""
1868
1869 #. kv5m_err.et:kv5m:KV5M_RCACHE
1870 #: ../src/dummy-strings.c:375
1871 msgid "Bad magic number for krb5_ccache structure"
1872 msgstr ""
1873
1874 #. kv5m_err.et:kv5m:KV5M_CCACHE
1875 #: ../src/dummy-strings.c:376
1876 msgid "Bad magic number for krb5_preauth_ops"
1877 msgstr ""
1878
1879 #. kv5m_err.et:kv5m:KV5M_PREAUTH_OPS
1880 #: ../src/dummy-strings.c:377
1881 msgid "Bad magic number for krb5_sam_challenge"
1882 msgstr ""
1883
1884 #. kv5m_err.et:kv5m:KV5M_SAM_CHALLENGE
1885 #: ../src/dummy-strings.c:378
1886 msgid "Bad magic number for krb5_sam_challenge_2"
1887 msgstr ""
1888
1889 #. kv5m_err.et:kv5m:KV5M_SAM_CHALLENGE_2
1890 #: ../src/dummy-strings.c:379
1891 msgid "Bad magic number for krb5_sam_key"
1892 msgstr ""
1893
1894 #. kv5m_err.et:kv5m:KV5M_SAM_KEY
1895 #. kv5m_err.et:kv5m:KV5M_ENC_SAM_RESPONSE_ENC
1896 #: ../src/dummy-strings.c:380
1897 #: ../src/dummy-strings.c:381
1898 msgid "Bad magic number for krb5_enc_sam_response_enc"
1899 msgstr ""
1900
1901 #. kv5m_err.et:kv5m:KV5M_ENC_SAM_RESPONSE_ENC_2
1902 #: ../src/dummy-strings.c:382
1903 msgid "Bad magic number for krb5_sam_response"
1904 msgstr ""
1905
1906 #. kv5m_err.et:kv5m:KV5M_SAM_RESPONSE
1907 #: ../src/dummy-strings.c:383
1908 msgid "Bad magic number for krb5_sam_response 2"
1909 msgstr ""
1910
1911 #. kv5m_err.et:kv5m:KV5M_SAM_RESPONSE_2
1912 #: ../src/dummy-strings.c:384
1913 msgid "Bad magic number for krb5_predicted_sam_response"
1914 msgstr ""
1915
1916 #. kv5m_err.et:kv5m:KV5M_PREDICTED_SAM_RESPONSE
1917 #: ../src/dummy-strings.c:385
1918 msgid "Bad magic number for passwd_phrase_element"
1919 msgstr ""
1920
1921 #. kv5m_err.et:kv5m:KV5M_PASSWD_PHRASE_ELEMENT
1922 #: ../src/dummy-strings.c:386
1923 msgid "Bad magic number for GSSAPI OID"
1924 msgstr ""
1925
1926 #. kv5m_err.et:kv5m:KV5M_GSS_OID
1927 #: ../src/dummy-strings.c:387
1928 msgid "Bad magic number for GSSAPI QUEUE"
1929 msgstr ""
1930
1931 #. kdb5_err.et:kdb5:KRB5_KDB_RCSID
1932 #. kadm_err.et:kadm:KADM_NO_VERI
1933 #: ../src/dummy-strings.c:389
1934 #: ../src/dummy-strings.c:535
1935 msgid "Entry already exists in database"
1936 msgstr ""
1937
1938 #. kdb5_err.et:kdb5:KRB5_KDB_INUSE
1939 #. kadm_err.et:kadm:KADM_INUSE
1940 #: ../src/dummy-strings.c:390
1941 #: ../src/dummy-strings.c:536
1942 msgid "Database store error"
1943 msgstr ""
1944
1945 #. kdb5_err.et:kdb5:KRB5_KDB_UK_SERROR
1946 #. kadm_err.et:kadm:KADM_UK_SERROR
1947 #: ../src/dummy-strings.c:391
1948 #: ../src/dummy-strings.c:537
1949 msgid "Database read error"
1950 msgstr ""
1951
1952 #. kdb5_err.et:kdb5:KRB5_KDB_UK_RERROR
1953 #. kadm_err.et:kadm:KADM_UK_RERROR
1954 #: ../src/dummy-strings.c:392
1955 #: ../src/dummy-strings.c:538
1956 msgid "Insufficient access to perform requested operation"
1957 msgstr ""
1958
1959 #. kdb5_err.et:kdb5:KRB5_KDB_UNAUTH
1960 #. kadm_err.et:kadm:KADM_DATA
1961 #: ../src/dummy-strings.c:393
1962 #: ../src/dummy-strings.c:540
1963 msgid "No such entry in the database"
1964 msgstr ""
1965
1966 #. kdb5_err.et:kdb5:KRB5_KDB_NOENTRY
1967 #. kadm_err.et:kadm:KADM_LENGTH_ERROR
1968 #: ../src/dummy-strings.c:394
1969 #: ../src/dummy-strings.c:545
1970 msgid "Illegal use of wildcard"
1971 msgstr ""
1972
1973 #. kdb5_err.et:kdb5:KRB5_KDB_ILL_WILDCARD
1974 #: ../src/dummy-strings.c:395
1975 msgid "Database is locked or in use--try again later"
1976 msgstr ""
1977
1978 #. kdb5_err.et:kdb5:KRB5_KDB_DB_INUSE
1979 #: ../src/dummy-strings.c:396
1980 msgid "Database was modified during read"
1981 msgstr ""
1982
1983 #. kdb5_err.et:kdb5:KRB5_KDB_DB_CHANGED
1984 #: ../src/dummy-strings.c:397
1985 msgid "Database record is incomplete or corrupted"
1986 msgstr ""
1987
1988 #. kdb5_err.et:kdb5:KRB5_KDB_TRUNCATED_RECORD
1989 #: ../src/dummy-strings.c:398
1990 msgid "Attempt to lock database twice"
1991 msgstr ""
1992
1993 #. kdb5_err.et:kdb5:KRB5_KDB_RECURSIVELOCK
1994 #: ../src/dummy-strings.c:399
1995 msgid "Attempt to unlock database when not locked"
1996 msgstr ""
1997
1998 #. kdb5_err.et:kdb5:KRB5_KDB_NOTLOCKED
1999 #: ../src/dummy-strings.c:400
2000 msgid "Invalid kdb lock mode"
2001 msgstr ""
2002
2003 #. kdb5_err.et:kdb5:KRB5_KDB_BADLOCKMODE
2004 #: ../src/dummy-strings.c:401
2005 msgid "Database has not been initialized"
2006 msgstr ""
2007
2008 #. kdb5_err.et:kdb5:KRB5_KDB_DBNOTINITED
2009 #: ../src/dummy-strings.c:402
2010 msgid "Database has already been initialized"
2011 msgstr ""
2012
2013 #. kdb5_err.et:kdb5:KRB5_KDB_DBINITED
2014 #: ../src/dummy-strings.c:403
2015 msgid "Bad direction for converting keys"
2016 msgstr ""
2017
2018 #. kdb5_err.et:kdb5:KRB5_KDB_ILLDIRECTION
2019 #: ../src/dummy-strings.c:404
2020 msgid "Cannot find master key record in database"
2021 msgstr ""
2022
2023 #. kdb5_err.et:kdb5:KRB5_KDB_NOMASTERKEY
2024 #: ../src/dummy-strings.c:405
2025 msgid "Master key does not match database"
2026 msgstr ""
2027
2028 #. kdb5_err.et:kdb5:KRB5_KDB_BADMASTERKEY
2029 #: ../src/dummy-strings.c:406
2030 msgid "Key size in database is invalid"
2031 msgstr ""
2032
2033 #. kdb5_err.et:kdb5:KRB5_KDB_INVALIDKEYSIZE
2034 #: ../src/dummy-strings.c:407
2035 msgid "Cannot find/read stored master key"
2036 msgstr ""
2037
2038 #. kdb5_err.et:kdb5:KRB5_KDB_CANTREAD_STORED
2039 #: ../src/dummy-strings.c:408
2040 msgid "Stored master key is corrupted"
2041 msgstr ""
2042
2043 #. kdb5_err.et:kdb5:KRB5_KDB_BADSTORED_MKEY
2044 #: ../src/dummy-strings.c:409
2045 msgid "Insufficient access to lock database"
2046 msgstr ""
2047
2048 #. kdb5_err.et:kdb5:KRB5_KDB_CANTLOCK_DB
2049 #: ../src/dummy-strings.c:410
2050 msgid "Database format error"
2051 msgstr ""
2052
2053 #. kdb5_err.et:kdb5:KRB5_KDB_DB_CORRUPT
2054 #: ../src/dummy-strings.c:411
2055 msgid "Unsupported version in database entry"
2056 msgstr ""
2057
2058 #. kdb5_err.et:kdb5:KRB5_KDB_BAD_VERSION
2059 #: ../src/dummy-strings.c:412
2060 msgid "Unsupported salt type"
2061 msgstr ""
2062
2063 #. kdb5_err.et:kdb5:KRB5_KDB_BAD_SALTTYPE
2064 #: ../src/dummy-strings.c:413
2065 msgid "Unsupported encryption type"
2066 msgstr ""
2067
2068 #. kdb5_err.et:kdb5:KRB5_KDB_BAD_ENCTYPE
2069 #: ../src/dummy-strings.c:414
2070 msgid "Bad database creation flags"
2071 msgstr ""
2072
2073 #. kdb5_err.et:kdb5:KRB5_KDB_BAD_CREATEFLAGS
2074 #: ../src/dummy-strings.c:415
2075 msgid "No matching key in entry having a permitted enctype"
2076 msgstr ""
2077
2078 #. kdb5_err.et:kdb5:KRB5_KDB_NO_PERMITTED_KEY
2079 #: ../src/dummy-strings.c:416
2080 msgid "No matching key in entry"
2081 msgstr ""
2082
2083 #. kdb5_err.et:kdb5:KRB5_KDB_NO_MATCHING_KEY
2084 #: ../src/dummy-strings.c:417
2085 msgid "No Error"
2086 msgstr "Inga fel"
2087
2088 #. adb_err.et:adb:OSA_ADB_NOERR
2089 #. kadm_err.et:ovk:KADM5_BAD_DB
2090 #: ../src/dummy-strings.c:418
2091 #: ../src/dummy-strings.c:438
2092 msgid "Principal or policy already exists"
2093 msgstr ""
2094
2095 #. adb_err.et:adb:OSA_ADB_DUP
2096 #: ../src/dummy-strings.c:419
2097 msgid "Principal or policy does not exist"
2098 msgstr ""
2099
2100 #. adb_err.et:adb:OSA_ADB_NOENT
2101 #: ../src/dummy-strings.c:420
2102 msgid "Database not initialized"
2103 msgstr ""
2104
2105 #. adb_err.et:adb:OSA_ADB_DBINIT
2106 #: ../src/dummy-strings.c:421
2107 msgid "Invalid policy name"
2108 msgstr ""
2109
2110 #. adb_err.et:adb:OSA_ADB_BAD_POLICY
2111 #: ../src/dummy-strings.c:422
2112 msgid "Invalid principal name"
2113 msgstr ""
2114
2115 #. adb_err.et:adb:OSA_ADB_BAD_PRINC
2116 #. kadm_err.et:ovk:KADM5_AUTH_INSUFFICIENT
2117 #: ../src/dummy-strings.c:423
2118 #: ../src/dummy-strings.c:437
2119 msgid "Database inconsistency detected"
2120 msgstr ""
2121
2122 #. adb_err.et:adb:OSA_ADB_BAD_DB
2123 #: ../src/dummy-strings.c:424
2124 msgid "XDR encoding error"
2125 msgstr ""
2126
2127 #. adb_err.et:adb:OSA_ADB_XDR_FAILURE
2128 #: ../src/dummy-strings.c:425
2129 msgid "Failure!"
2130 msgstr ""
2131
2132 #. adb_err.et:adb:OSA_ADB_FAILURE
2133 #: ../src/dummy-strings.c:426
2134 msgid "Bad lock mode"
2135 msgstr ""
2136
2137 #. adb_err.et:adb:OSA_ADB_BADLOCKMODE
2138 #: ../src/dummy-strings.c:427
2139 msgid "Cannot lock database"
2140 msgstr ""
2141
2142 #. adb_err.et:adb:OSA_ADB_CANTLOCK_DB
2143 #: ../src/dummy-strings.c:428
2144 msgid "Database not locked"
2145 msgstr ""
2146
2147 #. adb_err.et:adb:OSA_ADB_NOTLOCKED
2148 #: ../src/dummy-strings.c:429
2149 msgid "KADM5 administration database lock file missing"
2150 msgstr ""
2151
2152 #. adb_err.et:adb:OSA_ADB_NOLOCKFILE
2153 #: ../src/dummy-strings.c:430
2154 msgid "Insufficient permission to lock file"
2155 msgstr ""
2156
2157 #. adb_err.et:adb:OSA_ADB_NOEXCL_PERM
2158 #: ../src/dummy-strings.c:431
2159 msgid "Operation failed for unspecified reason"
2160 msgstr ""
2161
2162 #. kadm_err.et:ovk:KADM5_FAILURE
2163 #: ../src/dummy-strings.c:432
2164 msgid "Operation requires ``get'' privilege"
2165 msgstr ""
2166
2167 #. kadm_err.et:ovk:KADM5_AUTH_GET
2168 #: ../src/dummy-strings.c:433
2169 msgid "Operation requires ``add'' privilege"
2170 msgstr ""
2171
2172 #. kadm_err.et:ovk:KADM5_AUTH_ADD
2173 #: ../src/dummy-strings.c:434
2174 msgid "Operation requires ``modify'' privilege"
2175 msgstr ""
2176
2177 #. kadm_err.et:ovk:KADM5_AUTH_MODIFY
2178 #: ../src/dummy-strings.c:435
2179 msgid "Operation requires ``delete'' privilege"
2180 msgstr ""
2181
2182 #. kadm_err.et:ovk:KADM5_AUTH_DELETE
2183 #: ../src/dummy-strings.c:436
2184 msgid "Insufficient authorization for operation"
2185 msgstr ""
2186
2187 #. kadm_err.et:ovk:KADM5_DUP
2188 #: ../src/dummy-strings.c:439
2189 msgid "Communication failure with server"
2190 msgstr ""
2191
2192 #. kadm_err.et:ovk:KADM5_RPC_ERROR
2193 #: ../src/dummy-strings.c:440
2194 msgid "No administration server found for realm"
2195 msgstr ""
2196
2197 #. kadm_err.et:ovk:KADM5_NO_SRV
2198 #: ../src/dummy-strings.c:441
2199 msgid "Password history principal key version mismatch"
2200 msgstr ""
2201
2202 #. kadm_err.et:ovk:KADM5_BAD_HIST_KEY
2203 #: ../src/dummy-strings.c:442
2204 msgid "Connection to server not initialized"
2205 msgstr ""
2206
2207 #. kadm_err.et:ovk:KADM5_NOT_INIT
2208 #: ../src/dummy-strings.c:443
2209 msgid "Principal does not exist"
2210 msgstr ""
2211
2212 #. kadm_err.et:ovk:KADM5_UNK_PRINC
2213 #: ../src/dummy-strings.c:444
2214 msgid "Policy does not exist"
2215 msgstr ""
2216
2217 #. kadm_err.et:ovk:KADM5_UNK_POLICY
2218 #: ../src/dummy-strings.c:445
2219 msgid "Invalid field mask for operation"
2220 msgstr ""
2221
2222 #. kadm_err.et:ovk:KADM5_BAD_MASK
2223 #: ../src/dummy-strings.c:446
2224 msgid "Invalid number of character classes"
2225 msgstr ""
2226
2227 #. kadm_err.et:ovk:KADM5_BAD_CLASS
2228 #: ../src/dummy-strings.c:447
2229 msgid "Invalid password length"
2230 msgstr ""
2231
2232 #. kadm_err.et:ovk:KADM5_BAD_LENGTH
2233 #: ../src/dummy-strings.c:448
2234 msgid "Illegal policy name"
2235 msgstr ""
2236
2237 #. kadm_err.et:ovk:KADM5_BAD_POLICY
2238 #: ../src/dummy-strings.c:449
2239 msgid "Illegal principal name"
2240 msgstr ""
2241
2242 #. kadm_err.et:ovk:KADM5_BAD_PRINCIPAL
2243 #: ../src/dummy-strings.c:450
2244 msgid "Invalid auxillary attributes"
2245 msgstr ""
2246
2247 #. kadm_err.et:ovk:KADM5_BAD_AUX_ATTR
2248 #: ../src/dummy-strings.c:451
2249 msgid "Invalid password history count"
2250 msgstr ""
2251
2252 #. kadm_err.et:ovk:KADM5_BAD_HISTORY
2253 #: ../src/dummy-strings.c:452
2254 msgid "Password minimum life is greater than password maximum life"
2255 msgstr ""
2256
2257 #. kadm_err.et:ovk:KADM5_BAD_MIN_PASS_LIFE
2258 #: ../src/dummy-strings.c:453
2259 msgid "Password is too short"
2260 msgstr ""
2261
2262 #. kadm_err.et:ovk:KADM5_PASS_Q_TOOSHORT
2263 #: ../src/dummy-strings.c:454
2264 msgid "Password does not contain enough character classes"
2265 msgstr ""
2266
2267 #. kadm_err.et:ovk:KADM5_PASS_Q_CLASS
2268 #: ../src/dummy-strings.c:455
2269 msgid "Password is in the password dictionary"
2270 msgstr ""
2271
2272 #. kadm_err.et:ovk:KADM5_PASS_Q_DICT
2273 #: ../src/dummy-strings.c:456
2274 msgid "Cannot reuse password"
2275 msgstr ""
2276
2277 #. kadm_err.et:ovk:KADM5_PASS_REUSE
2278 #: ../src/dummy-strings.c:457
2279 msgid "Current password's minimum life has not expired"
2280 msgstr ""
2281
2282 #. kadm_err.et:ovk:KADM5_PASS_TOOSOON
2283 #: ../src/dummy-strings.c:458
2284 msgid "Policy is in use"
2285 msgstr ""
2286
2287 #. kadm_err.et:ovk:KADM5_POLICY_REF
2288 #: ../src/dummy-strings.c:459
2289 msgid "Connection to server already initialized"
2290 msgstr ""
2291
2292 #. kadm_err.et:ovk:KADM5_INIT
2293 #: ../src/dummy-strings.c:460
2294 msgid "Incorrect password"
2295 msgstr "Felaktigt lösenord"
2296
2297 #. kadm_err.et:ovk:KADM5_BAD_PASSWORD
2298 #: ../src/dummy-strings.c:461
2299 msgid "Cannot change protected principal"
2300 msgstr ""
2301
2302 #. kadm_err.et:ovk:KADM5_PROTECT_PRINCIPAL
2303 #: ../src/dummy-strings.c:462
2304 msgid "Programmer error! Bad Admin server handle"
2305 msgstr ""
2306
2307 #. kadm_err.et:ovk:KADM5_BAD_SERVER_HANDLE
2308 #: ../src/dummy-strings.c:463
2309 msgid "Programmer error! Bad API structure version"
2310 msgstr ""
2311
2312 #. kadm_err.et:ovk:KADM5_BAD_STRUCT_VERSION
2313 #: ../src/dummy-strings.c:464
2314 msgid "API structure version specified by application is no longer supported (to fix, recompile application against current KADM5 API header files and libraries)"
2315 msgstr ""
2316
2317 #. kadm_err.et:ovk:KADM5_OLD_STRUCT_VERSION
2318 #: ../src/dummy-strings.c:465
2319 msgid "API structure version specified by application is unknown to libraries (to fix, obtain current KADM5 API header files and libraries and recompile application)"
2320 msgstr ""
2321
2322 #. kadm_err.et:ovk:KADM5_NEW_STRUCT_VERSION
2323 #: ../src/dummy-strings.c:466
2324 msgid "Programmer error! Bad API version"
2325 msgstr ""
2326
2327 #. kadm_err.et:ovk:KADM5_BAD_API_VERSION
2328 #: ../src/dummy-strings.c:467
2329 msgid "API version specified by application is no longer supported by libraries (to fix, update application to adhere to current API version and recompile)"
2330 msgstr ""
2331
2332 #. kadm_err.et:ovk:KADM5_OLD_LIB_API_VERSION
2333 #: ../src/dummy-strings.c:468
2334 msgid "API version specified by application is no longer supported by server (to fix, update application to adhere to current API version and recompile)"
2335 msgstr ""
2336
2337 #. kadm_err.et:ovk:KADM5_OLD_SERVER_API_VERSION
2338 #: ../src/dummy-strings.c:469
2339 msgid "API version specified by application is unknown to libraries (to fix, obtain current KADM5 API header files and libraries and recompile application)"
2340 msgstr ""
2341
2342 #. kadm_err.et:ovk:KADM5_NEW_LIB_API_VERSION
2343 #: ../src/dummy-strings.c:470
2344 msgid "API version specified by application is unknown to server (to fix, obtain and install newest KADM5 Admin Server)"
2345 msgstr ""
2346
2347 #. kadm_err.et:ovk:KADM5_NEW_SERVER_API_VERSION
2348 #: ../src/dummy-strings.c:471
2349 msgid "Database error! Required KADM5 principal missing"
2350 msgstr ""
2351
2352 #. kadm_err.et:ovk:KADM5_SECURE_PRINC_MISSING
2353 #: ../src/dummy-strings.c:472
2354 msgid "The salt type of the specified principal does not support renaming"
2355 msgstr ""
2356
2357 #. kadm_err.et:ovk:KADM5_NO_RENAME_SALT
2358 #: ../src/dummy-strings.c:473
2359 msgid "Illegal configuration parameter for remote KADM5 client"
2360 msgstr ""
2361
2362 #. kadm_err.et:ovk:KADM5_BAD_CLIENT_PARAMS
2363 #: ../src/dummy-strings.c:474
2364 msgid "Illegal configuration parameter for local KADM5 client"
2365 msgstr ""
2366
2367 #. kadm_err.et:ovk:KADM5_BAD_SERVER_PARAMS
2368 #: ../src/dummy-strings.c:475
2369 msgid "Operation requires ``list'' privilege"
2370 msgstr ""
2371
2372 #. kadm_err.et:ovk:KADM5_AUTH_LIST
2373 #: ../src/dummy-strings.c:476
2374 msgid "Operation requires ``change-password'' privilege"
2375 msgstr ""
2376
2377 #. kadm_err.et:ovk:KADM5_AUTH_CHANGEPW
2378 #: ../src/dummy-strings.c:477
2379 msgid "GSS-API (or Kerberos) error"
2380 msgstr ""
2381
2382 #. kadm_err.et:ovk:KADM5_GSS_ERROR
2383 #: ../src/dummy-strings.c:478
2384 msgid "Programmer error! Illegal tagged data list type"
2385 msgstr ""
2386
2387 #. kadm_err.et:ovk:KADM5_BAD_TL_TYPE
2388 #: ../src/dummy-strings.c:479
2389 msgid "Required parameters in kdc.conf missing"
2390 msgstr ""
2391
2392 #. kadm_err.et:ovk:KADM5_MISSING_CONF_PARAMS
2393 #: ../src/dummy-strings.c:480
2394 msgid "Bad krb5 admin server hostname"
2395 msgstr ""
2396
2397 #. kadm_err.et:ovk:KADM5_BAD_SERVER_NAME
2398 #: ../src/dummy-strings.c:481
2399 msgid "Operation requires ``set-key'' privilege"
2400 msgstr ""
2401
2402 #. kadm_err.et:ovk:KADM5_AUTH_SETKEY
2403 #: ../src/dummy-strings.c:482
2404 msgid "Multiple values for single or folded enctype"
2405 msgstr ""
2406
2407 #. kadm_err.et:ovk:KADM5_SETKEY_DUP_ENCTYPES
2408 #: ../src/dummy-strings.c:483
2409 msgid "Invalid enctype for setv4key"
2410 msgstr ""
2411
2412 #. kadm_err.et:ovk:KADM5_SETV4KEY_INVAL_ENCTYPE
2413 #: ../src/dummy-strings.c:484
2414 msgid "Mismatched enctypes for setkey3"
2415 msgstr ""
2416
2417 #. kadm_err.et:ovk:KADM5_SETKEY3_ETYPE_MISMATCH
2418 #: ../src/dummy-strings.c:485
2419 msgid "Missing parameters in krb5.conf required for kadmin client"
2420 msgstr ""
2421
2422 #. kadm_err.et:ovk:KADM5_MISSING_KRB5_CONF_PARAMS
2423 #: ../src/dummy-strings.c:486
2424 msgid "while getting policy info."
2425 msgstr ""
2426
2427 #. chpass_util_strings.et:ovku:CHPASS_UTIL_GET_POLICY_INFO
2428 #: ../src/dummy-strings.c:487
2429 msgid "while getting principal info."
2430 msgstr ""
2431
2432 #. chpass_util_strings.et:ovku:CHPASS_UTIL_NEW_PASSWORD_MISMATCH
2433 #: ../src/dummy-strings.c:489
2434 msgid "New password"
2435 msgstr "Nytt lösenord"
2436
2437 #. chpass_util_strings.et:ovku:CHPASS_UTIL_NEW_PASSWORD_PROMPT
2438 #: ../src/dummy-strings.c:490
2439 msgid "New password (again)"
2440 msgstr "Nytt lösenord (igen)"
2441
2442 #. chpass_util_strings.et:ovku:CHPASS_UTIL_NEW_PASSWORD_AGAIN_PROMPT
2443 #: ../src/dummy-strings.c:491
2444 msgid "You must type a password. Passwords must be at least one character long.\n"
2445 msgstr ""
2446
2447 #. chpass_util_strings.et:ovku:CHPASS_UTIL_NO_PASSWORD_READ
2448 #: ../src/dummy-strings.c:492
2449 msgid "yet no policy set! Contact your system security administrator."
2450 msgstr ""
2451
2452 #. chpass_util_strings.et:ovku:CHPASS_UTIL_NO_POLICY_YET_Q_ERROR
2453 #: ../src/dummy-strings.c:493
2454 msgid "Password changed.\n"
2455 msgstr "Lösenordet ändrat.\n"
2456
2457 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_CHANGED
2458 #: ../src/dummy-strings.c:494
2459 msgid ""
2460 "New password was found in a dictionary of possible passwords and\n"
2461 "therefore may be easily guessed. Please choose another password.\n"
2462 "See the ovpasswd man page for help in choosing a good password."
2463 msgstr ""
2464
2465 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_NOT_CHANGED
2466 #: ../src/dummy-strings.c:498
2467 #, c-format
2468 msgid ""
2469 "New password is too short.\n"
2470 "Please choose a password which is at least %d characters long."
2471 msgstr ""
2472
2473 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_TOO_SHORT
2474 #: ../src/dummy-strings.c:500
2475 #, c-format
2476 msgid ""
2477 "New password does not have enough character classes.\n"
2478 "The character classes are:\n"
2479 "\t- lower-case letters,\n"
2480 "\t- upper-case letters,\n"
2481 "\t- digits,\n"
2482 "\t- punctuation, and\n"
2483 "\t- all other characters (e.g., control characters).\n"
2484 "Please choose a password with at least %d character classes."
2485 msgstr ""
2486
2487 #. chpass_util_strings.et:ovku:CHPASS_UTIL_TOO_FEW_CLASSES
2488 #: ../src/dummy-strings.c:508
2489 #, c-format
2490 msgid ""
2491 "Password cannot be changed because it was changed too recently.\n"
2492 "Please wait until %s before you change it.\n"
2493 "If you need to change your password before then, contact your system\n"
2494 "security administrator."
2495 msgstr ""
2496
2497 #. chpass_util_strings.et:ovku:CHPASS_UTIL_PASSWORD_TOO_SOON
2498 #: ../src/dummy-strings.c:512
2499 msgid "New password was used previously. Please choose a different password."
2500 msgstr ""
2501
2502 #. chpass_util_strings.et:ovku:CHPASS_UTIL_WHILE_READING_PASSWORD
2503 #: ../src/dummy-strings.c:515
2504 msgid "$Header$"
2505 msgstr ""
2506
2507 #. kadm_err.et:kadm:KADM_RCSID
2508 #: ../src/dummy-strings.c:516
2509 msgid "Cannot fetch local realm"
2510 msgstr ""
2511
2512 #. kadm_err.et:kadm:KADM_NO_REALM
2513 #: ../src/dummy-strings.c:517
2514 msgid "Unable to fetch credentials"
2515 msgstr ""
2516
2517 #. kadm_err.et:kadm:KADM_NO_CRED
2518 #: ../src/dummy-strings.c:518
2519 msgid "Bad key supplied"
2520 msgstr ""
2521
2522 #. kadm_err.et:kadm:KADM_BAD_KEY
2523 #: ../src/dummy-strings.c:519
2524 msgid "Can't encrypt data"
2525 msgstr "Kan inte kryptera data"
2526
2527 #. kadm_err.et:kadm:KADM_NO_ENCRYPT
2528 #: ../src/dummy-strings.c:520
2529 msgid "Cannot encode/decode authentication info"
2530 msgstr ""
2531
2532 #. kadm_err.et:kadm:KADM_NO_AUTH
2533 #: ../src/dummy-strings.c:521
2534 msgid "Principal attemping change is in wrong realm"
2535 msgstr ""
2536
2537 #. kadm_err.et:kadm:KADM_WRONG_REALM
2538 #: ../src/dummy-strings.c:522
2539 msgid "Packet is too large"
2540 msgstr ""
2541
2542 #. kadm_err.et:kadm:KADM_NO_ROOM
2543 #: ../src/dummy-strings.c:523
2544 msgid "Version number is incorrect"
2545 msgstr ""
2546
2547 #. kadm_err.et:kadm:KADM_BAD_VER
2548 #: ../src/dummy-strings.c:524
2549 msgid "Checksum does not match"
2550 msgstr ""
2551
2552 #. kadm_err.et:kadm:KADM_BAD_CHK
2553 #: ../src/dummy-strings.c:525
2554 msgid "Unsealing private data failed"
2555 msgstr ""
2556
2557 #. kadm_err.et:kadm:KADM_NO_READ
2558 #: ../src/dummy-strings.c:526
2559 msgid "Unsupported operation"
2560 msgstr ""
2561
2562 #. kadm_err.et:kadm:KADM_NO_OPCODE
2563 #: ../src/dummy-strings.c:527
2564 msgid "Could not find administrating host"
2565 msgstr ""
2566
2567 #. kadm_err.et:kadm:KADM_NO_HOST
2568 #: ../src/dummy-strings.c:528
2569 msgid "Administrating host name is unknown"
2570 msgstr ""
2571
2572 #. kadm_err.et:kadm:KADM_UNK_HOST
2573 #: ../src/dummy-strings.c:529
2574 msgid "Could not find service name in services database"
2575 msgstr ""
2576
2577 #. kadm_err.et:kadm:KADM_NO_SERV
2578 #: ../src/dummy-strings.c:530
2579 msgid "Could not create socket"
2580 msgstr ""
2581
2582 #. kadm_err.et:kadm:KADM_NO_SOCK
2583 #: ../src/dummy-strings.c:531
2584 msgid "Could not connect to server"
2585 msgstr ""
2586
2587 #. kadm_err.et:kadm:KADM_NO_CONN
2588 #: ../src/dummy-strings.c:532
2589 msgid "Could not fetch local socket address"
2590 msgstr ""
2591
2592 #. kadm_err.et:kadm:KADM_NO_HERE
2593 #: ../src/dummy-strings.c:533
2594 msgid "Could not fetch master key"
2595 msgstr ""
2596
2597 #. kadm_err.et:kadm:KADM_NO_MAST
2598 #: ../src/dummy-strings.c:534
2599 msgid "Could not verify master key"
2600 msgstr ""
2601
2602 #. kadm_err.et:kadm:KADM_UNAUTH
2603 #: ../src/dummy-strings.c:539
2604 msgid "Data is available for return to client"
2605 msgstr ""
2606
2607 #. kadm_err.et:kadm:KADM_NOENTRY
2608 #: ../src/dummy-strings.c:541
2609 msgid "Memory exhausted"
2610 msgstr ""
2611
2612 #. kadm_err.et:kadm:KADM_NOMEM
2613 #: ../src/dummy-strings.c:542
2614 msgid "Could not fetch system hostname"
2615 msgstr ""
2616
2617 #. kadm_err.et:kadm:KADM_NO_HOSTNAME
2618 #: ../src/dummy-strings.c:543
2619 msgid "Could not bind port"
2620 msgstr ""
2621
2622 #. kadm_err.et:kadm:KADM_NO_BIND
2623 #: ../src/dummy-strings.c:544
2624 msgid "Length mismatch problem"
2625 msgstr ""
2626
2627 #. kadm_err.et:kadm:KADM_ILL_WILDCARD
2628 #: ../src/dummy-strings.c:546
2629 msgid "Database locked or in use"
2630 msgstr ""
2631
2632 #. kadm_err.et:kadm:KADM_DB_INUSE
2633 #: ../src/dummy-strings.c:547
2634 msgid "Insecure password rejected"
2635 msgstr ""
2636
2637 #. kadm_err.et:kadm:KADM_INSECURE_PW
2638 #: ../src/dummy-strings.c:548
2639 msgid "Cleartext password and DES key did not match"
2640 msgstr ""
2641
2642 #. kadm_err.et:kadm:KADM_PW_MISMATCH
2643 #: ../src/dummy-strings.c:549
2644 msgid "Invalid principal for change srvtab request"
2645 msgstr ""
2646
2647 #. kadm_err.et:kadm:KADM_NOT_SERV_PRINC
2648 #: ../src/dummy-strings.c:550
2649 msgid "Realm name too long"
2650 msgstr ""
2651
2652 #. kadm_err.et:kadm:KADM_REALM_TOO_LONG
2653 #: ../src/dummy-strings.c:551
2654 msgid "Kerberos successful"
2655 msgstr ""
2656
2657 #. krb_err.et:krb:KRBET_KSUCCESS
2658 #: ../src/dummy-strings.c:552
2659 msgid "Kerberos principal expired"
2660 msgstr ""
2661
2662 #. krb_err.et:krb:KRBET_KDC_NAME_EXP
2663 #: ../src/dummy-strings.c:553
2664 msgid "Kerberos service expired"
2665 msgstr ""
2666
2667 #. krb_err.et:krb:KRBET_KDC_SERVICE_EXP
2668 #: ../src/dummy-strings.c:554
2669 msgid "Kerberos auth expired"
2670 msgstr ""
2671
2672 #. krb_err.et:krb:KRBET_KDC_AUTH_EXP
2673 #: ../src/dummy-strings.c:555
2674 msgid "Unknown kerberos protocol version"
2675 msgstr ""
2676
2677 #. krb_err.et:krb:KRBET_KDC_PKT_VER
2678 #: ../src/dummy-strings.c:556
2679 msgid "Incorrect kerberos master key version for principal"
2680 msgstr ""
2681
2682 #. krb_err.et:krb:KRBET_KDC_P_MKEY_VER
2683 #: ../src/dummy-strings.c:557
2684 msgid "Incorrect kerberos master key version for service"
2685 msgstr ""
2686
2687 #. krb_err.et:krb:KRBET_KDC_S_MKEY_VER
2688 #: ../src/dummy-strings.c:558
2689 msgid "Bad byte order (kerberos)"
2690 msgstr ""
2691
2692 #. krb_err.et:krb:KRBET_KDC_BYTE_ORDER
2693 #: ../src/dummy-strings.c:559
2694 msgid "Kerberos principal unknown"
2695 msgstr ""
2696
2697 #. krb_err.et:krb:KRBET_KDC_PR_UNKNOWN
2698 #: ../src/dummy-strings.c:560
2699 msgid "Kerberos principal not unique"
2700 msgstr ""
2701
2702 #. krb_err.et:krb:KRBET_KDC_PR_N_UNIQUE
2703 #: ../src/dummy-strings.c:561
2704 msgid "Kerberos principal has null key"
2705 msgstr ""
2706
2707 #. krb_err.et:krb:KRBET_KDC_NULL_KEY
2708 #: ../src/dummy-strings.c:562
2709 msgid "Reserved error message 11 (kerberos)"
2710 msgstr ""
2711
2712 #. krb_err.et:krb:KRBET_KRB_RES11
2713 #: ../src/dummy-strings.c:563
2714 msgid "Reserved error message 12 (kerberos)"
2715 msgstr ""
2716
2717 #. krb_err.et:krb:KRBET_KRB_RES12
2718 #: ../src/dummy-strings.c:564
2719 msgid "Reserved error message 13 (kerberos)"
2720 msgstr ""
2721
2722 #. krb_err.et:krb:KRBET_KRB_RES13
2723 #: ../src/dummy-strings.c:565
2724 msgid "Reserved error message 14 (kerberos)"
2725 msgstr ""
2726
2727 #. krb_err.et:krb:KRBET_KRB_RES14
2728 #: ../src/dummy-strings.c:566
2729 msgid "Reserved error message 15 (kerberos)"
2730 msgstr ""
2731
2732 #. krb_err.et:krb:KRBET_KRB_RES15
2733 #: ../src/dummy-strings.c:567
2734 msgid "Reserved error message 16 (kerberos)"
2735 msgstr ""
2736
2737 #. krb_err.et:krb:KRBET_KRB_RES16
2738 #: ../src/dummy-strings.c:568
2739 msgid "Reserved error message 17 (kerberos)"
2740 msgstr ""
2741
2742 #. krb_err.et:krb:KRBET_KRB_RES17
2743 #: ../src/dummy-strings.c:569
2744 msgid "Reserved error message 18 (kerberos)"
2745 msgstr ""
2746
2747 #. krb_err.et:krb:KRBET_KRB_RES18
2748 #: ../src/dummy-strings.c:570
2749 msgid "Reserved error message 19 (kerberos)"
2750 msgstr ""
2751
2752 #. krb_err.et:krb:KRBET_KRB_RES19
2753 #: ../src/dummy-strings.c:571
2754 msgid "Generic error from Kerberos KDC"
2755 msgstr ""
2756
2757 #. krb_err.et:krb:KRBET_KDC_GEN_ERR
2758 #: ../src/dummy-strings.c:572
2759 msgid "Can't read Kerberos ticket file"
2760 msgstr ""
2761
2762 #. krb_err.et:krb:KRBET_GC_TKFIL
2763 #: ../src/dummy-strings.c:573
2764 msgid "Can't find Kerberos ticket or TGT"
2765 msgstr ""
2766
2767 #. krb_err.et:krb:KRBET_GC_NOTKT
2768 #: ../src/dummy-strings.c:574
2769 msgid "Reserved error message 23 (krb_get_cred)"
2770 msgstr ""
2771
2772 #. krb_err.et:krb:KRBET_KRB_RES23
2773 #: ../src/dummy-strings.c:575
2774 msgid "Reserved error message 24 (krb_get_cred)"
2775 msgstr ""
2776
2777 #. krb_err.et:krb:KRBET_KRB_RES24
2778 #: ../src/dummy-strings.c:576
2779 msgid "Reserved error message 25 (krb_get_cred)"
2780 msgstr ""
2781
2782 #. krb_err.et:krb:KRBET_KRB_RES25
2783 #: ../src/dummy-strings.c:577
2784 msgid "Kerberos TGT Expired"
2785 msgstr ""
2786
2787 #. krb_err.et:krb:KRBET_MK_AP_TGTEXP
2788 #: ../src/dummy-strings.c:578
2789 msgid "Reserved error message 27 (krb_mk_req)"
2790 msgstr ""
2791
2792 #. krb_err.et:krb:KRBET_KRB_RES27
2793 #: ../src/dummy-strings.c:579
2794 msgid "Reserved error message 28 (krb_mk_req)"
2795 msgstr ""
2796
2797 #. krb_err.et:krb:KRBET_KRB_RES28
2798 #: ../src/dummy-strings.c:580
2799 msgid "Reserved error message 29 (krb_mk_req)"
2800 msgstr ""
2801
2802 #. krb_err.et:krb:KRBET_KRB_RES29
2803 #: ../src/dummy-strings.c:581
2804 msgid "Reserved error message 30 (krb_mk_req)"
2805 msgstr ""
2806
2807 #. krb_err.et:krb:KRBET_KRB_RES30
2808 #: ../src/dummy-strings.c:582
2809 msgid "Can't decode authenticator (krb_rd_req)"
2810 msgstr ""
2811
2812 #. krb_err.et:krb:KRBET_RD_AP_UNDEC
2813 #: ../src/dummy-strings.c:583
2814 msgid "Kerberos ticket expired (krb_rd_req)"
2815 msgstr ""
2816
2817 #. krb_err.et:krb:KRBET_RD_AP_EXP
2818 #: ../src/dummy-strings.c:584
2819 msgid "Kerberos ticket not yet valid (krb_rd_req)"
2820 msgstr ""
2821
2822 #. krb_err.et:krb:KRBET_RD_AP_NYV
2823 #: ../src/dummy-strings.c:585
2824 msgid "Repeated request (krb_rd_req)"
2825 msgstr ""
2826
2827 #. krb_err.et:krb:KRBET_RD_AP_REPEAT
2828 #: ../src/dummy-strings.c:586
2829 msgid "Kerberos ticket is for wrong server (krb_rd_req)"
2830 msgstr ""
2831
2832 #. krb_err.et:krb:KRBET_RD_AP_NOT_US
2833 #: ../src/dummy-strings.c:587
2834 msgid "Kerberos request inconsistent"
2835 msgstr ""
2836
2837 #. krb_err.et:krb:KRBET_RD_AP_INCON
2838 #: ../src/dummy-strings.c:588
2839 msgid "Time is out of bounds (krb_rd_req)"
2840 msgstr ""
2841
2842 #. krb_err.et:krb:KRBET_RD_AP_TIME
2843 #: ../src/dummy-strings.c:589
2844 msgid "Incorrect net address (krb_rd_req)"
2845 msgstr ""
2846
2847 #. krb_err.et:krb:KRBET_RD_AP_BADD
2848 #: ../src/dummy-strings.c:590
2849 msgid "Kerberos protocol version mismatch (krb_rd_req)"
2850 msgstr ""
2851
2852 #. krb_err.et:krb:KRBET_RD_AP_VERSION
2853 #: ../src/dummy-strings.c:591
2854 msgid "Invalid msg type (krb_rd_req)"
2855 msgstr ""
2856
2857 #. krb_err.et:krb:KRBET_RD_AP_MSG_TYPE
2858 #: ../src/dummy-strings.c:592
2859 msgid "Message integrity error (krb_rd_req)"
2860 msgstr ""
2861
2862 #. krb_err.et:krb:KRBET_RD_AP_MODIFIED
2863 #: ../src/dummy-strings.c:593
2864 msgid "Message out of order (krb_rd_req)"
2865 msgstr ""
2866
2867 #. krb_err.et:krb:KRBET_RD_AP_ORDER
2868 #: ../src/dummy-strings.c:594
2869 msgid "Unauthorized request (krb_rd_req)"
2870 msgstr ""
2871
2872 #. krb_err.et:krb:KRBET_RD_AP_UNAUTHOR
2873 #: ../src/dummy-strings.c:595
2874 msgid "Current password is null (get_pw_tkt)"
2875 msgstr ""
2876
2877 #. krb_err.et:krb:KRBET_GT_PW_NULL
2878 #: ../src/dummy-strings.c:596
2879 msgid "Incorrect current password (get_pw_tkt)"
2880 msgstr ""
2881
2882 #. krb_err.et:krb:KRBET_GT_PW_BADPW
2883 #: ../src/dummy-strings.c:597
2884 msgid "Protocol error (get_pw_tkt)"
2885 msgstr ""
2886
2887 #. krb_err.et:krb:KRBET_GT_PW_PROT
2888 #: ../src/dummy-strings.c:598
2889 msgid "Error returned by KDC (get_pw_tkt)"
2890 msgstr ""
2891
2892 #. krb_err.et:krb:KRBET_GT_PW_KDCERR
2893 #: ../src/dummy-strings.c:599
2894 msgid "Null Kerberos ticket returned by KDC (get_pw_tkt)"
2895 msgstr ""
2896
2897 #. krb_err.et:krb:KRBET_GT_PW_NULLTKT
2898 #: ../src/dummy-strings.c:600
2899 msgid "Retry count exceeded (send_to_kdc)"
2900 msgstr ""
2901
2902 #. krb_err.et:krb:KRBET_SKDC_RETRY
2903 #: ../src/dummy-strings.c:601
2904 msgid "Can't send request (send_to_kdc)"
2905 msgstr ""
2906
2907 #. krb_err.et:krb:KRBET_SKDC_CANT
2908 #: ../src/dummy-strings.c:602
2909 msgid "Reserved error message 58 (send_to_kdc)"
2910 msgstr ""
2911
2912 #. krb_err.et:krb:KRBET_KRB_RES58
2913 #: ../src/dummy-strings.c:603
2914 msgid "Reserved error message 59 (send_to_kdc)"
2915 msgstr ""
2916
2917 #. krb_err.et:krb:KRBET_KRB_RES59
2918 #: ../src/dummy-strings.c:604
2919 msgid "Reserved error message 60 (send_to_kdc)"
2920 msgstr ""
2921
2922 #. krb_err.et:krb:KRBET_KRB_RES60
2923 #: ../src/dummy-strings.c:605
2924 msgid "Kerberos error: not all tickets returned"
2925 msgstr ""
2926
2927 #. krb_err.et:krb:KRBET_INTK_W_NOTALL
2928 #: ../src/dummy-strings.c:606
2929 msgid "Incorrect password (get_in_tkt)"
2930 msgstr ""
2931
2932 #. krb_err.et:krb:KRBET_INTK_BADPW
2933 #: ../src/dummy-strings.c:607
2934 msgid "Protocol error (get_in_tkt)"
2935 msgstr ""
2936
2937 #. krb_err.et:krb:KRBET_INTK_PROT
2938 #: ../src/dummy-strings.c:608
2939 msgid "Other error (get_in_tkt)"
2940 msgstr ""
2941
2942 #. krb_err.et:krb:KRBET_INTK_ERR
2943 #: ../src/dummy-strings.c:609
2944 msgid "Don't have Kerberos ticket-granting ticket (get_ad_tkt)"
2945 msgstr ""
2946
2947 #. krb_err.et:krb:KRBET_AD_NOTGT
2948 #: ../src/dummy-strings.c:610
2949 msgid "You have no tickets cached"
2950 msgstr ""
2951
2952 #. krb_err.et:krb:KRBET_NO_TKT_FIL
2953 #: ../src/dummy-strings.c:611
2954 msgid "Couldn't access ticket file (tf_util)"
2955 msgstr ""
2956
2957 #. krb_err.et:krb:KRBET_TKT_FIL_ACC
2958 #: ../src/dummy-strings.c:612
2959 msgid "Couldn't lock ticket file (tf_util)"
2960 msgstr ""
2961
2962 #. krb_err.et:krb:KRBET_TKT_FIL_LCK
2963 #: ../src/dummy-strings.c:613
2964 msgid "Bad ticket file format (tf_util)"
2965 msgstr ""
2966
2967 #. krb_err.et:krb:KRBET_TKT_FIL_FMT
2968 #: ../src/dummy-strings.c:614
2969 msgid "tf_init not called before reading from ticket file (tf_util)"
2970 msgstr ""
2971
2972 #. krb_err.et:krb:KRBET_TKT_FIL_INI
2973 #: ../src/dummy-strings.c:615
2974 msgid "Bad Kerberos name format (kname_parse)"
2975 msgstr ""
2976
2977 #. krb_err.et:krb:KRBET_KNAME_FMT
2978 #: ../src/dummy-strings.c:616
2979 msgid "Generic kerberos error (kfailure)"
2980 msgstr ""
2981
2982 #. krb_err.et:krb:KRBET_KFAILURE
2983 #: ../src/dummy-strings.c:617
2984 msgid "Principal in credential cache does not match desired name"
2985 msgstr ""
2986
2987 #. gssapi_err_krb5.et:k5g:KG_CCACHE_NOMATCH
2988 #: ../src/dummy-strings.c:618
2989 msgid "No principal in keytab matches desired name"
2990 msgstr ""
2991
2992 #. gssapi_err_krb5.et:k5g:KG_KEYTAB_NOMATCH
2993 #: ../src/dummy-strings.c:619
2994 msgid "Credential cache has no TGT"
2995 msgstr ""
2996
2997 #. gssapi_err_krb5.et:k5g:KG_TGT_MISSING
2998 #: ../src/dummy-strings.c:620
2999 msgid "Authenticator has no subkey"
3000 msgstr ""
3001
3002 #. gssapi_err_krb5.et:k5g:KG_NO_SUBKEY
3003 #: ../src/dummy-strings.c:621
3004 msgid "Context is already fully established"
3005 msgstr ""
3006
3007 #. gssapi_err_krb5.et:k5g:KG_CONTEXT_ESTABLISHED
3008 #: ../src/dummy-strings.c:622
3009 msgid "Unknown signature type in token"
3010 msgstr ""
3011
3012 #. gssapi_err_krb5.et:k5g:KG_BAD_SIGN_TYPE
3013 #: ../src/dummy-strings.c:623
3014 msgid "Invalid field length in token"
3015 msgstr ""
3016
3017 #. gssapi_err_krb5.et:k5g:KG_BAD_LENGTH
3018 #: ../src/dummy-strings.c:624
3019 msgid "Attempt to use incomplete security context"
3020 msgstr ""
3021
3022 #. gssapi_err_krb5.et:k5g:KG_CTX_INCOMPLETE
3023 #: ../src/dummy-strings.c:625
3024 msgid "Bad magic number for krb5_gss_ctx_id_t"
3025 msgstr ""
3026
3027 #. gssapi_err_krb5.et:k5g:KG_CONTEXT
3028 #: ../src/dummy-strings.c:626
3029 msgid "Bad magic number for krb5_gss_cred_id_t"
3030 msgstr ""
3031
3032 #. gssapi_err_krb5.et:k5g:KG_CRED
3033 #: ../src/dummy-strings.c:627
3034 msgid "Bad magic number for krb5_gss_enc_desc"
3035 msgstr ""
3036
3037 #. gssapi_err_krb5.et:k5g:KG_ENC_DESC
3038 #: ../src/dummy-strings.c:628
3039 msgid "Sequence number in token is corrupt"
3040 msgstr ""
3041
3042 #. gssapi_err_krb5.et:k5g:KG_BAD_SEQ
3043 #: ../src/dummy-strings.c:629
3044 msgid "Credential cache is empty"
3045 msgstr ""
3046
3047 #. gssapi_err_krb5.et:k5g:KG_EMPTY_CCACHE
3048 #: ../src/dummy-strings.c:630
3049 msgid "Acceptor and Initiator share no checksum types"
3050 msgstr ""
3051
3052 #. gssapi_err_krb5.et:k5g:KG_NO_CTYPES
3053 #: ../src/dummy-strings.c:631
3054 msgid "No @ in SERVICE-NAME name string"
3055 msgstr ""
3056
3057 #. gssapi_err_generic.et:ggss:G_BAD_SERVICE_NAME
3058 #: ../src/dummy-strings.c:632
3059 msgid "STRING-UID-NAME contains nondigits"
3060 msgstr ""
3061
3062 #. gssapi_err_generic.et:ggss:G_BAD_STRING_UID
3063 #: ../src/dummy-strings.c:633
3064 msgid "UID does not resolve to username"
3065 msgstr ""
3066
3067 #. gssapi_err_generic.et:ggss:G_NOUSER
3068 #: ../src/dummy-strings.c:634
3069 msgid "Validation error"
3070 msgstr ""
3071
3072 #. gssapi_err_generic.et:ggss:G_VALIDATE_FAILED
3073 #: ../src/dummy-strings.c:635
3074 msgid "Couldn't allocate gss_buffer_t data"
3075 msgstr ""
3076
3077 #. gssapi_err_generic.et:ggss:G_BUFFER_ALLOC
3078 #: ../src/dummy-strings.c:636
3079 msgid "Message context invalid"
3080 msgstr ""
3081
3082 #. gssapi_err_generic.et:ggss:G_BAD_MSG_CTX
3083 #: ../src/dummy-strings.c:637
3084 msgid "Buffer is the wrong size"
3085 msgstr ""
3086
3087 #. gssapi_err_generic.et:ggss:G_WRONG_SIZE
3088 #: ../src/dummy-strings.c:638
3089 msgid "Credential usage type is unknown"
3090 msgstr ""
3091
3092 #. gssapi_err_generic.et:ggss:G_BAD_USAGE
3093 #: ../src/dummy-strings.c:639
3094 msgid "Unknown quality of protection specified"
3095 msgstr ""
3096
3097 #. gssapi_err_generic.et:ggss:G_UNKNOWN_QOP
3098 #: ../src/dummy-strings.c:640
3099 msgid "Local host name could not be determined"
3100 msgstr ""
3101
3102 #. gssapi_err_generic.et:ggss:G_NO_HOSTNAME
3103 #: ../src/dummy-strings.c:641
3104 msgid "Hostname in SERVICE-NAME string could not be canonicalized"
3105 msgstr ""
3106
3107 #. gssapi_err_generic.et:ggss:G_BAD_HOSTNAME
3108 #: ../src/dummy-strings.c:642
3109 msgid "Mechanism is incorrect"
3110 msgstr ""
3111
3112 #. gssapi_err_generic.et:ggss:G_WRONG_MECH
3113 #: ../src/dummy-strings.c:643
3114 msgid "Token header is malformed or corrupt"
3115 msgstr ""
3116
3117 #. gssapi_err_generic.et:ggss:G_BAD_TOK_HEADER
3118 #: ../src/dummy-strings.c:644
3119 msgid "Packet was replayed in wrong direction"
3120 msgstr ""
3121
3122 #. gssapi_err_generic.et:ggss:G_BAD_DIRECTION
3123 #: ../src/dummy-strings.c:645
3124 msgid "Token is missing data"
3125 msgstr ""
3126
3127 #. gssapi_err_generic.et:ggss:G_TOK_TRUNC
3128 #: ../src/dummy-strings.c:646
3129 msgid "Token was reflected"
3130 msgstr ""
3131
3132 #. gssapi_err_generic.et:ggss:G_REFLECT
3133 #: ../src/dummy-strings.c:647
3134 msgid "Received token ID does not match expected token ID"
3135 msgstr ""
3136
3137 #: ../src/krb5-auth-applet.c:49
3138 #, c-format
3139 msgid "Your credentials expire in %.2d:%.2dh"
3140 msgstr ""
3141
3142 #: ../src/krb5-auth-applet.c:95
3143 msgid "Network credentials valid"
3144 msgstr ""
3145
3146 #: ../src/krb5-auth-applet.c:96
3147 msgid "Your Kerberos credentials have been refreshed."
3148 msgstr ""
3149
3150 #: ../src/krb5-auth-applet.c:101
3151 msgid "Network credentials expiring"
3152 msgstr ""
3153
3154 #: ../src/krb5-auth-applet.c:108
3155 msgid "Network credentials expired"
3156 msgstr ""
3157
3158 #: ../src/krb5-auth-applet.c:109
3159 msgid "Your Kerberos credentails have expired."
3160 msgstr ""
3161
3162 #. kdestroy
3163 #: ../src/krb5-auth-applet.c:171
3164 msgid "Remove Credentials _Cache"
3165 msgstr ""
3166
3167 #. About item
3168 #: ../src/krb5-auth-applet.c:180
3169 msgid "_About"
3170 msgstr "_Om"
3171
3172 #. Quit
3173 #: ../src/krb5-auth-applet.c:189
3174 msgid "_Quit"
3175 msgstr "A_vsluta"
3176
3177 #: ../src/krb5-auth-dialog.desktop.in.h:1
3178 msgid "Kerberos Network Authentication Dialog"
3179 msgstr ""
3180
3181 #: ../gtksecentry/gtksecentry.c:455
3182 msgid "Cursor Position"
3183 msgstr ""
3184
3185 #: ../gtksecentry/gtksecentry.c:457
3186 msgid "The current position of the insertion cursor in chars"
3187 msgstr ""
3188
3189 #: ../gtksecentry/gtksecentry.c:464
3190 msgid "Selection Bound"
3191 msgstr ""
3192
3193 #: ../gtksecentry/gtksecentry.c:466
3194 msgid "The position of the opposite end of the selection from the cursor in chars"
3195 msgstr ""
3196
3197 #: ../gtksecentry/gtksecentry.c:473
3198 msgid "Maximum length"
3199 msgstr ""
3200
3201 #: ../gtksecentry/gtksecentry.c:475
3202 msgid "Maximum number of characters for this entry. Zero if no maximum"
3203 msgstr ""
3204
3205 #: ../gtksecentry/gtksecentry.c:483
3206 msgid "Has Frame"
3207 msgstr ""
3208
3209 #: ../gtksecentry/gtksecentry.c:485
3210 msgid "FALSE removes outside bevel from entry"
3211 msgstr ""
3212
3213 #: ../gtksecentry/gtksecentry.c:494
3214 msgid "Invisible character"
3215 msgstr ""
3216
3217 #: ../gtksecentry/gtksecentry.c:496
3218 msgid "The character to use when masking entry contents (in \"password mode\")"
3219 msgstr ""
3220
3221 #: ../gtksecentry/gtksecentry.c:505
3222 msgid "Activates default"
3223 msgstr ""
3224
3225 #: ../gtksecentry/gtksecentry.c:507
3226 msgid "Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed"
3227 msgstr ""
3228
3229 #: ../gtksecentry/gtksecentry.c:512
3230 msgid "Width in chars"
3231 msgstr ""
3232
3233 #: ../gtksecentry/gtksecentry.c:514
3234 msgid "Number of characters to leave space for in the entry"
3235 msgstr ""
3236
3237 #: ../gtksecentry/gtksecentry.c:522
3238 msgid "Scroll offset"
3239 msgstr ""
3240
3241 #: ../gtksecentry/gtksecentry.c:524
3242 msgid "Number of pixels of the entry scrolled off the screen to the left"
3243 msgstr ""
3244
3245 #: ../gtksecentry/gtksecentry.c:531
3246 msgid "Text"
3247 msgstr "Text"
3248
3249 #: ../gtksecentry/gtksecentry.c:533
3250 msgid "The contents of the entry"
3251 msgstr ""
3252
3253 #: ../gtksecentry/gtksecentry.c:690
3254 msgid "Select on focus"
3255 msgstr ""
3256
3257 #: ../gtksecentry/gtksecentry.c:692
3258 msgid "Whether to select the contents of an entry when it is focused"
3259 msgstr ""
3260
3261 #: ../secmem/util.c:106
3262 #, c-format
3263 msgid "Warning: running q-agent setuid on this system is dangerous\n"
3264 msgstr ""
3265
3266 #: ../src/krb5-auth-dialog.schemas.in.h:1
3267 msgid "Kerberos principal"
3268 msgstr ""
3269
3270 #: ../src/krb5-auth-dialog.schemas.in.h:2
3271 msgid "Pkinit identifier"
3272 msgstr ""
3273
3274 #: ../src/krb5-auth-dialog.schemas.in.h:3
3275 msgid "Prompt minutes before expiry"
3276 msgstr ""
3277
3278 #: ../src/krb5-auth-dialog.schemas.in.h:4
3279 msgid "Show a trayicon in the status area of the panel"
3280 msgstr ""
3281
3282 #: ../src/krb5-auth-dialog.schemas.in.h:5
3283 msgid "Show trayicon"
3284 msgstr ""
3285
3286 #: ../src/krb5-auth-dialog.schemas.in.h:6
3287 msgid "Start prompting/displaying notifications that many minutes before expiry"
3288 msgstr ""
3289
3290 #: ../src/krb5-auth-dialog.schemas.in.h:7
3291 msgid "The kerberos principal to acquire the ticket for"
3292 msgstr ""
3293
3294 #: ../src/krb5-auth-dialog.schemas.in.h:8
3295 msgid "The principal's public/private/certificate identifier when using pkinit"
3296 msgstr ""
3297
+0
-526
secmem/Makefile.in less more
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Secure Memory Makefile
17 # Copyright (C) 2002 g10 Code GmbH
18 #
19 # This file is part of PINENTRY.
20 #
21 # PINENTRY is free software; you can redistribute it and/or modify
22 # it under the terms of the GNU General Public License as published by
23 # the Free Software Foundation; either version 2 of the License, or
24 # (at your option) any later version.
25 #
26 # PINENTRY is distributed in the hope that it will be useful,
27 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 # GNU General Public License for more details.
30 #
31 # You should have received a copy of the GNU General Public License
32 # along with this program; if not, write to the Free Software
33 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
34
35 VPATH = @srcdir@
36 pkgdatadir = $(datadir)/@PACKAGE@
37 pkglibdir = $(libdir)/@PACKAGE@
38 pkgincludedir = $(includedir)/@PACKAGE@
39 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
40 install_sh_DATA = $(install_sh) -c -m 644
41 install_sh_PROGRAM = $(install_sh) -c
42 install_sh_SCRIPT = $(install_sh) -c
43 INSTALL_HEADER = $(INSTALL_DATA)
44 transform = $(program_transform_name)
45 NORMAL_INSTALL = :
46 PRE_INSTALL = :
47 POST_INSTALL = :
48 NORMAL_UNINSTALL = :
49 PRE_UNINSTALL = :
50 POST_UNINSTALL = :
51 build_triplet = @build@
52 host_triplet = @host@
53 subdir = secmem
54 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
55 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
56 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
57 $(top_srcdir)/configure.ac
58 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
59 $(ACLOCAL_M4)
60 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
61 CONFIG_HEADER = $(top_builddir)/config.h
62 CONFIG_CLEAN_FILES =
63 LIBRARIES = $(noinst_LIBRARIES)
64 ARFLAGS = cru
65 libsecmem_a_AR = $(AR) $(ARFLAGS)
66 libsecmem_a_LIBADD =
67 am_libsecmem_a_OBJECTS = secmem.$(OBJEXT) util.$(OBJEXT)
68 libsecmem_a_OBJECTS = $(am_libsecmem_a_OBJECTS)
69 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
70 depcomp = $(SHELL) $(top_srcdir)/depcomp
71 am__depfiles_maybe = depfiles
72 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
73 $(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)
77 CCLD = $(CC)
78 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
79 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
80 $(LDFLAGS) -o $@
81 SOURCES = $(libsecmem_a_SOURCES)
82 DIST_SOURCES = $(libsecmem_a_SOURCES)
83 ETAGS = etags
84 CTAGS = ctags
85 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
86 ACLOCAL = @ACLOCAL@
87 ALL_LINGUAS = @ALL_LINGUAS@
88 AMTAR = @AMTAR@
89 AR = @AR@
90 AUTOCONF = @AUTOCONF@
91 AUTOHEADER = @AUTOHEADER@
92 AUTOMAKE = @AUTOMAKE@
93 AWK = @AWK@
94 CATALOGS = @CATALOGS@
95 CATOBJEXT = @CATOBJEXT@
96 CC = @CC@
97 CCDEPMODE = @CCDEPMODE@
98 CFLAGS = @CFLAGS@
99 CPP = @CPP@
100 CPPFLAGS = @CPPFLAGS@
101 CXX = @CXX@
102 CXXCPP = @CXXCPP@
103 CXXDEPMODE = @CXXDEPMODE@
104 CXXFLAGS = @CXXFLAGS@
105 CYGPATH_W = @CYGPATH_W@
106 DATADIRNAME = @DATADIRNAME@
107 DBUS_CFLAGS = @DBUS_CFLAGS@
108 DBUS_LIBS = @DBUS_LIBS@
109 DEFS = @DEFS@
110 DEPDIR = @DEPDIR@
111 DSYMUTIL = @DSYMUTIL@
112 ECHO = @ECHO@
113 ECHO_C = @ECHO_C@
114 ECHO_N = @ECHO_N@
115 ECHO_T = @ECHO_T@
116 EGREP = @EGREP@
117 EXEEXT = @EXEEXT@
118 F77 = @F77@
119 FFLAGS = @FFLAGS@
120 GCONF_CFLAGS = @GCONF_CFLAGS@
121 GCONF_LIBS = @GCONF_LIBS@
122 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
123 GLADE_CFLAGS = @GLADE_CFLAGS@
124 GLADE_LIBS = @GLADE_LIBS@
125 GMOFILES = @GMOFILES@
126 GMSGFMT = @GMSGFMT@
127 GREP = @GREP@
128 GTK_CFLAGS = @GTK_CFLAGS@
129 GTK_LIBS = @GTK_LIBS@
130 INSTALL = @INSTALL@
131 INSTALL_DATA = @INSTALL_DATA@
132 INSTALL_PROGRAM = @INSTALL_PROGRAM@
133 INSTALL_SCRIPT = @INSTALL_SCRIPT@
134 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
135 INSTOBJEXT = @INSTOBJEXT@
136 INTLLIBS = @INTLLIBS@
137 INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
138 INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
139 INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
140 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
141 INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
142 INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
143 INTLTOOL_MERGE = @INTLTOOL_MERGE@
144 INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
145 INTLTOOL_PERL = @INTLTOOL_PERL@
146 INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
147 INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
148 INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
149 INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
150 INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
151 INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
152 INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
153 INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
154 INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
155 INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
156 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
157 INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
158 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
159 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
160 KRB5_CFLAGS = @KRB5_CFLAGS@
161 KRB5_CONFIG = @KRB5_CONFIG@
162 KRB5_LIBS = @KRB5_LIBS@
163 LDFLAGS = @LDFLAGS@
164 LEX = @LEX@
165 LEXLIB = @LEXLIB@
166 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
167 LIBCAP = @LIBCAP@
168 LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@
169 LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@
170 LIBOBJS = @LIBOBJS@
171 LIBS = @LIBS@
172 LIBTOOL = @LIBTOOL@
173 LN_S = @LN_S@
174 LTLIBOBJS = @LTLIBOBJS@
175 MAINT = @MAINT@
176 MAKEINFO = @MAKEINFO@
177 MKDIR_P = @MKDIR_P@
178 MKINSTALLDIRS = @MKINSTALLDIRS@
179 MSGFMT = @MSGFMT@
180 MSGFMT_OPTS = @MSGFMT_OPTS@
181 MSGMERGE = @MSGMERGE@
182 NETWORK_MANAGER_CFLAGS = @NETWORK_MANAGER_CFLAGS@
183 NETWORK_MANAGER_LIBS = @NETWORK_MANAGER_LIBS@
184 NMEDIT = @NMEDIT@
185 OBJEXT = @OBJEXT@
186 PACKAGE = @PACKAGE@
187 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
188 PACKAGE_NAME = @PACKAGE_NAME@
189 PACKAGE_STRING = @PACKAGE_STRING@
190 PACKAGE_TARNAME = @PACKAGE_TARNAME@
191 PACKAGE_VERSION = @PACKAGE_VERSION@
192 PATH_SEPARATOR = @PATH_SEPARATOR@
193 PKG_CONFIG = @PKG_CONFIG@
194 POFILES = @POFILES@
195 POSUB = @POSUB@
196 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
197 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
198 RANLIB = @RANLIB@
199 SED = @SED@
200 SETCAP = @SETCAP@
201 SET_MAKE = @SET_MAKE@
202 SHELL = @SHELL@
203 STRIP = @STRIP@
204 USE_NLS = @USE_NLS@
205 VERSION = @VERSION@
206 XGETTEXT = @XGETTEXT@
207 YACC = @YACC@
208 YFLAGS = @YFLAGS@
209 abs_builddir = @abs_builddir@
210 abs_srcdir = @abs_srcdir@
211 abs_top_builddir = @abs_top_builddir@
212 abs_top_srcdir = @abs_top_srcdir@
213 ac_ct_CC = @ac_ct_CC@
214 ac_ct_CXX = @ac_ct_CXX@
215 ac_ct_F77 = @ac_ct_F77@
216 am__include = @am__include@
217 am__leading_dot = @am__leading_dot@
218 am__quote = @am__quote@
219 am__tar = @am__tar@
220 am__untar = @am__untar@
221 bindir = @bindir@
222 build = @build@
223 build_alias = @build_alias@
224 build_cpu = @build_cpu@
225 build_os = @build_os@
226 build_vendor = @build_vendor@
227 builddir = @builddir@
228 check_interval = @check_interval@
229 datadir = @datadir@
230 datarootdir = @datarootdir@
231 docdir = @docdir@
232 dvidir = @dvidir@
233 exec_prefix = @exec_prefix@
234 host = @host@
235 host_alias = @host_alias@
236 host_cpu = @host_cpu@
237 host_os = @host_os@
238 host_vendor = @host_vendor@
239 htmldir = @htmldir@
240 includedir = @includedir@
241 infodir = @infodir@
242 install_sh = @install_sh@
243 libdir = @libdir@
244 libexecdir = @libexecdir@
245 localedir = @localedir@
246 localstatedir = @localstatedir@
247 mandir = @mandir@
248 minimum_lifetime = @minimum_lifetime@
249 mkdir_p = @mkdir_p@
250 oldincludedir = @oldincludedir@
251 pdfdir = @pdfdir@
252 prefix = @prefix@
253 program_transform_name = @program_transform_name@
254 psdir = @psdir@
255 sbindir = @sbindir@
256 sharedstatedir = @sharedstatedir@
257 srcdir = @srcdir@
258 sysconfdir = @sysconfdir@
259 target_alias = @target_alias@
260 top_builddir = @top_builddir@
261 top_srcdir = @top_srcdir@
262 EXTRA_DIST = Manifest
263 noinst_LIBRARIES = libsecmem.a
264 libsecmem_a_SOURCES = \
265 memory.h \
266 secmem-util.h \
267 util.h \
268 secmem.c \
269 util.c
270
271 all: all-am
272
273 .SUFFIXES:
274 .SUFFIXES: .c .lo .o .obj
275 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
276 @for dep in $?; do \
277 case '$(am__configure_deps)' in \
278 *$$dep*) \
279 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
280 && exit 0; \
281 exit 1;; \
282 esac; \
283 done; \
284 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu secmem/Makefile'; \
285 cd $(top_srcdir) && \
286 $(AUTOMAKE) --gnu secmem/Makefile
287 .PRECIOUS: Makefile
288 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
289 @case '$?' in \
290 *config.status*) \
291 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
292 *) \
293 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
294 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
295 esac;
296
297 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
298 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
299
300 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
301 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
302 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
303 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
304
305 clean-noinstLIBRARIES:
306 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
307 libsecmem.a: $(libsecmem_a_OBJECTS) $(libsecmem_a_DEPENDENCIES)
308 -rm -f libsecmem.a
309 $(libsecmem_a_AR) libsecmem.a $(libsecmem_a_OBJECTS) $(libsecmem_a_LIBADD)
310 $(RANLIB) libsecmem.a
311
312 mostlyclean-compile:
313 -rm -f *.$(OBJEXT)
314
315 distclean-compile:
316 -rm -f *.tab.c
317
318 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/secmem.Po@am__quote@
319 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@
320
321 .c.o:
322 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
323 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
324 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
325 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
326 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
327
328 .c.obj:
329 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
330 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
331 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
332 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
333 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
334
335 .c.lo:
336 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
337 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
338 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
339 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
340 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
341
342 mostlyclean-libtool:
343 -rm -f *.lo
344
345 clean-libtool:
346 -rm -rf .libs _libs
347
348 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
349 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
350 unique=`for i in $$list; do \
351 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
352 done | \
353 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
354 END { if (nonempty) { for (i in files) print i; }; }'`; \
355 mkid -fID $$unique
356 tags: TAGS
357
358 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 here=`pwd`; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
369 test -n "$$unique" || unique=$$empty_fix; \
370 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
371 $$tags $$unique; \
372 fi
373 ctags: CTAGS
374 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
375 $(TAGS_FILES) $(LISP)
376 tags=; \
377 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
378 unique=`for i in $$list; do \
379 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
380 done | \
381 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
382 END { if (nonempty) { for (i in files) print i; }; }'`; \
383 test -z "$(CTAGS_ARGS)$$tags$$unique" \
384 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
385 $$tags $$unique
386
387 GTAGS:
388 here=`$(am__cd) $(top_builddir) && pwd` \
389 && cd $(top_srcdir) \
390 && gtags -i $(GTAGS_ARGS) $$here
391
392 distclean-tags:
393 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
394
395 distdir: $(DISTFILES)
396 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
397 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
398 list='$(DISTFILES)'; \
399 dist_files=`for file in $$list; do echo $$file; done | \
400 sed -e "s|^$$srcdirstrip/||;t" \
401 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
402 case $$dist_files in \
403 */*) $(MKDIR_P) `echo "$$dist_files" | \
404 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
405 sort -u` ;; \
406 esac; \
407 for file in $$dist_files; do \
408 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
409 if test -d $$d/$$file; then \
410 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
411 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
412 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
413 fi; \
414 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
415 else \
416 test -f $(distdir)/$$file \
417 || cp -p $$d/$$file $(distdir)/$$file \
418 || exit 1; \
419 fi; \
420 done
421 check-am: all-am
422 check: check-am
423 all-am: Makefile $(LIBRARIES)
424 installdirs:
425 install: install-am
426 install-exec: install-exec-am
427 install-data: install-data-am
428 uninstall: uninstall-am
429
430 install-am: all-am
431 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
432
433 installcheck: installcheck-am
434 install-strip:
435 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
436 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
437 `test -z '$(STRIP)' || \
438 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
439 mostlyclean-generic:
440
441 clean-generic:
442
443 distclean-generic:
444 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
445
446 maintainer-clean-generic:
447 @echo "This command is intended for maintainers to use"
448 @echo "it deletes files that may require special tools to rebuild."
449 clean: clean-am
450
451 clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
452 mostlyclean-am
453
454 distclean: distclean-am
455 -rm -rf ./$(DEPDIR)
456 -rm -f Makefile
457 distclean-am: clean-am distclean-compile distclean-generic \
458 distclean-tags
459
460 dvi: dvi-am
461
462 dvi-am:
463
464 html: html-am
465
466 info: info-am
467
468 info-am:
469
470 install-data-am:
471
472 install-dvi: install-dvi-am
473
474 install-exec-am:
475
476 install-html: install-html-am
477
478 install-info: install-info-am
479
480 install-man:
481
482 install-pdf: install-pdf-am
483
484 install-ps: install-ps-am
485
486 installcheck-am:
487
488 maintainer-clean: maintainer-clean-am
489 -rm -rf ./$(DEPDIR)
490 -rm -f Makefile
491 maintainer-clean-am: distclean-am maintainer-clean-generic
492
493 mostlyclean: mostlyclean-am
494
495 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
496 mostlyclean-libtool
497
498 pdf: pdf-am
499
500 pdf-am:
501
502 ps: ps-am
503
504 ps-am:
505
506 uninstall-am:
507
508 .MAKE: install-am install-strip
509
510 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
511 clean-libtool clean-noinstLIBRARIES ctags distclean \
512 distclean-compile distclean-generic distclean-libtool \
513 distclean-tags distdir dvi dvi-am html html-am info info-am \
514 install install-am install-data install-data-am install-dvi \
515 install-dvi-am install-exec install-exec-am install-html \
516 install-html-am install-info install-info-am install-man \
517 install-pdf install-pdf-am install-ps install-ps-am \
518 install-strip installcheck installcheck-am installdirs \
519 maintainer-clean maintainer-clean-generic mostlyclean \
520 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
521 pdf pdf-am ps ps-am tags uninstall uninstall-am
522
523 # Tell versions [3.59,3.63) of GNU make to not export all variables.
524 # Otherwise a system limit (for SysV at least) may be exceeded.
525 .NOEXPORT:
0 Makefile
1 Makefile.in
2 krb5-auth-dialog
3 krb5-auth-dialog.1
4 krb5-auth-dialog.desktop
00 INCLUDES = \
1 -DGLADEDIR=\""$(gladedir)/"\" \
1 -DKA_DATA_DIR=\""$(pkgdatadir)"\" \
22 -DLOCALE_DIR=\""$(localedir)/"\"
33
44 bin_PROGRAMS = krb5-auth-dialog
2323 krb5-auth-applet.h \
2424 krb5-auth-gconf.c \
2525 krb5-auth-gconf.h \
26 krb5-auth-notify.c \
27 krb5-auth-notify.h \
2826 krb5-auth-dbus.c \
2927 krb5-auth-dbus.h \
3028 dummy-strings.c
4038 @GLADE_LIBS@ \
4139 @GTK_LIBS@
4240
41 BUILT_SOURCES = \
42 krb5-auth-applet-dbus-glue.h
43
44 krb5-auth-applet-dbus-glue.h: $(srcdir)/krb5-auth-applet-dbus.xml
45 dbus-binding-tool \
46 --mode=glib-server \
47 --prefix=krb5_auth_dialog \
48 $< > $@
49
4350 AM_CPPFLAGS = -I $(top_srcdir)/gtksecentry/ -I $(top_srcdir)/secmem/
4451
45 gladedir = $(datadir)/krb5-auth-dialog
46 glade_DATA = \
52 pkgdatadir = $(datadir)/krb5-auth-dialog
53 pkgdata_DATA = \
4754 krb5-auth-dialog.glade
4855
4956 EXTRA_DIST = \
50 $(glade_DATA) \
57 $(pkgdata_DATA) \
5158 $(schema_in_files) \
5259 $(autostart_in_files) \
5360 krb5-auth-dialog.1.in
5461
5562 CLEANFILES = $(schema_DATA)
56 DISTCLEANFILES = krb5-auth-dialog.desktop
63 DISTCLEANFILES = \
64 krb5-auth-dialog.desktop \
65 krb5-auth-applet-dbus-glue.h
+0
-710
src/Makefile.in less more
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 bin_PROGRAMS = krb5-auth-dialog$(EXEEXT)
36 subdir = src
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
38 $(srcdir)/krb5-auth-dialog.1.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
41 $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES = krb5-auth-dialog.1
47 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \
48 "$(DESTDIR)$(autostartdir)" "$(DESTDIR)$(gladedir)" \
49 "$(DESTDIR)$(schemadir)"
50 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
51 PROGRAMS = $(bin_PROGRAMS)
52 am_krb5_auth_dialog_OBJECTS = krb5-auth-dialog.$(OBJEXT) \
53 krb5-auth-applet.$(OBJEXT) krb5-auth-gconf.$(OBJEXT) \
54 krb5-auth-notify.$(OBJEXT) krb5-auth-dbus.$(OBJEXT) \
55 dummy-strings.$(OBJEXT)
56 krb5_auth_dialog_OBJECTS = $(am_krb5_auth_dialog_OBJECTS)
57 krb5_auth_dialog_DEPENDENCIES = ../gtksecentry/libgtksecentry.a \
58 ../secmem/libsecmem.a
59 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
60 depcomp = $(SHELL) $(top_srcdir)/depcomp
61 am__depfiles_maybe = depfiles
62 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
63 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
64 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
65 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
66 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67 CCLD = $(CC)
68 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
69 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
70 $(LDFLAGS) -o $@
71 SOURCES = $(krb5_auth_dialog_SOURCES)
72 DIST_SOURCES = $(krb5_auth_dialog_SOURCES)
73 man1dir = $(mandir)/man1
74 NROFF = nroff
75 MANS = $(man_MANS)
76 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
77 am__vpath_adj = case $$p in \
78 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
79 *) f=$$p;; \
80 esac;
81 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
82 autostartDATA_INSTALL = $(INSTALL_DATA)
83 gladeDATA_INSTALL = $(INSTALL_DATA)
84 schemaDATA_INSTALL = $(INSTALL_DATA)
85 DATA = $(autostart_DATA) $(glade_DATA) $(schema_DATA)
86 ETAGS = etags
87 CTAGS = ctags
88 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
89 ACLOCAL = @ACLOCAL@
90 ALL_LINGUAS = @ALL_LINGUAS@
91 AMTAR = @AMTAR@
92 AR = @AR@
93 AUTOCONF = @AUTOCONF@
94 AUTOHEADER = @AUTOHEADER@
95 AUTOMAKE = @AUTOMAKE@
96 AWK = @AWK@
97 CATALOGS = @CATALOGS@
98 CATOBJEXT = @CATOBJEXT@
99 CC = @CC@
100 CCDEPMODE = @CCDEPMODE@
101 CFLAGS = @CFLAGS@
102 CPP = @CPP@
103 CPPFLAGS = @CPPFLAGS@
104 CXX = @CXX@
105 CXXCPP = @CXXCPP@
106 CXXDEPMODE = @CXXDEPMODE@
107 CXXFLAGS = @CXXFLAGS@
108 CYGPATH_W = @CYGPATH_W@
109 DATADIRNAME = @DATADIRNAME@
110 DBUS_CFLAGS = @DBUS_CFLAGS@
111 DBUS_LIBS = @DBUS_LIBS@
112 DEFS = @DEFS@
113 DEPDIR = @DEPDIR@
114 DSYMUTIL = @DSYMUTIL@
115 ECHO = @ECHO@
116 ECHO_C = @ECHO_C@
117 ECHO_N = @ECHO_N@
118 ECHO_T = @ECHO_T@
119 EGREP = @EGREP@
120 EXEEXT = @EXEEXT@
121 F77 = @F77@
122 FFLAGS = @FFLAGS@
123 GCONF_CFLAGS = @GCONF_CFLAGS@
124 GCONF_LIBS = @GCONF_LIBS@
125 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
126 GLADE_CFLAGS = @GLADE_CFLAGS@
127 GLADE_LIBS = @GLADE_LIBS@
128 GMOFILES = @GMOFILES@
129 GMSGFMT = @GMSGFMT@
130 GREP = @GREP@
131 GTK_CFLAGS = @GTK_CFLAGS@
132 GTK_LIBS = @GTK_LIBS@
133 INSTALL = @INSTALL@
134 INSTALL_DATA = @INSTALL_DATA@
135 INSTALL_PROGRAM = @INSTALL_PROGRAM@
136 INSTALL_SCRIPT = @INSTALL_SCRIPT@
137 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
138 INSTOBJEXT = @INSTOBJEXT@
139 INTLLIBS = @INTLLIBS@
140 INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
141 INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
142 INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
143 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
144 INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
145 INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
146 INTLTOOL_MERGE = @INTLTOOL_MERGE@
147 INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
148 INTLTOOL_PERL = @INTLTOOL_PERL@
149 INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
150 INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
151 INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
152 INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
153 INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
154 INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
155 INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
156 INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
157 INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
158 INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
159 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
160 INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
161 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
162 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
163 KRB5_CFLAGS = @KRB5_CFLAGS@
164 KRB5_CONFIG = @KRB5_CONFIG@
165 KRB5_LIBS = @KRB5_LIBS@
166 LDFLAGS = @LDFLAGS@
167 LEX = @LEX@
168 LEXLIB = @LEXLIB@
169 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
170 LIBCAP = @LIBCAP@
171 LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@
172 LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@
173 LIBOBJS = @LIBOBJS@
174 LIBS = @LIBS@
175 LIBTOOL = @LIBTOOL@
176 LN_S = @LN_S@
177 LTLIBOBJS = @LTLIBOBJS@
178 MAINT = @MAINT@
179 MAKEINFO = @MAKEINFO@
180 MKDIR_P = @MKDIR_P@
181 MKINSTALLDIRS = @MKINSTALLDIRS@
182 MSGFMT = @MSGFMT@
183 MSGFMT_OPTS = @MSGFMT_OPTS@
184 MSGMERGE = @MSGMERGE@
185 NETWORK_MANAGER_CFLAGS = @NETWORK_MANAGER_CFLAGS@
186 NETWORK_MANAGER_LIBS = @NETWORK_MANAGER_LIBS@
187 NMEDIT = @NMEDIT@
188 OBJEXT = @OBJEXT@
189 PACKAGE = @PACKAGE@
190 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
191 PACKAGE_NAME = @PACKAGE_NAME@
192 PACKAGE_STRING = @PACKAGE_STRING@
193 PACKAGE_TARNAME = @PACKAGE_TARNAME@
194 PACKAGE_VERSION = @PACKAGE_VERSION@
195 PATH_SEPARATOR = @PATH_SEPARATOR@
196 PKG_CONFIG = @PKG_CONFIG@
197 POFILES = @POFILES@
198 POSUB = @POSUB@
199 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
200 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
201 RANLIB = @RANLIB@
202 SED = @SED@
203 SETCAP = @SETCAP@
204 SET_MAKE = @SET_MAKE@
205 SHELL = @SHELL@
206 STRIP = @STRIP@
207 USE_NLS = @USE_NLS@
208 VERSION = @VERSION@
209 XGETTEXT = @XGETTEXT@
210 YACC = @YACC@
211 YFLAGS = @YFLAGS@
212 abs_builddir = @abs_builddir@
213 abs_srcdir = @abs_srcdir@
214 abs_top_builddir = @abs_top_builddir@
215 abs_top_srcdir = @abs_top_srcdir@
216 ac_ct_CC = @ac_ct_CC@
217 ac_ct_CXX = @ac_ct_CXX@
218 ac_ct_F77 = @ac_ct_F77@
219 am__include = @am__include@
220 am__leading_dot = @am__leading_dot@
221 am__quote = @am__quote@
222 am__tar = @am__tar@
223 am__untar = @am__untar@
224 bindir = @bindir@
225 build = @build@
226 build_alias = @build_alias@
227 build_cpu = @build_cpu@
228 build_os = @build_os@
229 build_vendor = @build_vendor@
230 builddir = @builddir@
231 check_interval = @check_interval@
232 datadir = @datadir@
233 datarootdir = @datarootdir@
234 docdir = @docdir@
235 dvidir = @dvidir@
236 exec_prefix = @exec_prefix@
237 host = @host@
238 host_alias = @host_alias@
239 host_cpu = @host_cpu@
240 host_os = @host_os@
241 host_vendor = @host_vendor@
242 htmldir = @htmldir@
243 includedir = @includedir@
244 infodir = @infodir@
245 install_sh = @install_sh@
246 libdir = @libdir@
247 libexecdir = @libexecdir@
248 localedir = @localedir@
249 localstatedir = @localstatedir@
250 mandir = @mandir@
251 minimum_lifetime = @minimum_lifetime@
252 mkdir_p = @mkdir_p@
253 oldincludedir = @oldincludedir@
254 pdfdir = @pdfdir@
255 prefix = @prefix@
256 program_transform_name = @program_transform_name@
257 psdir = @psdir@
258 sbindir = @sbindir@
259 sharedstatedir = @sharedstatedir@
260 srcdir = @srcdir@
261 sysconfdir = @sysconfdir@
262 target_alias = @target_alias@
263 top_builddir = @top_builddir@
264 top_srcdir = @top_srcdir@
265 INCLUDES = \
266 -DGLADEDIR=\""$(gladedir)/"\" \
267 -DLOCALE_DIR=\""$(localedir)/"\"
268
269 man_MANS = krb5-auth-dialog.1
270 autostartdir = $(sysconfdir)/xdg/autostart
271 autostart_in_files = krb5-auth-dialog.desktop.in
272 autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
273 schemadir = $(sysconfdir)/gconf/schemas
274 schema_in_files = $(PACKAGE).schemas.in
275 schema_DATA = $(PACKAGE).schemas
276 krb5_auth_dialog_SOURCES = \
277 krb5-auth-dialog.c \
278 krb5-auth-dialog.h \
279 krb5-auth-applet.c \
280 krb5-auth-applet.h \
281 krb5-auth-gconf.c \
282 krb5-auth-gconf.h \
283 krb5-auth-notify.c \
284 krb5-auth-notify.h \
285 krb5-auth-dbus.c \
286 krb5-auth-dbus.h \
287 dummy-strings.c
288
289 krb5_auth_dialog_LDADD = \
290 ../gtksecentry/libgtksecentry.a \
291 ../secmem/libsecmem.a \
292 @NETWORK_MANAGER_LIBS@ \
293 @KRB5_LIBS@ \
294 @LIBNOTIFY_LIBS@ \
295 @DBUS_LIBS@ \
296 @GCONF_LIBS@ \
297 @GLADE_LIBS@ \
298 @GTK_LIBS@
299
300 AM_CPPFLAGS = -I $(top_srcdir)/gtksecentry/ -I $(top_srcdir)/secmem/
301 gladedir = $(datadir)/krb5-auth-dialog
302 glade_DATA = \
303 krb5-auth-dialog.glade
304
305 EXTRA_DIST = \
306 $(glade_DATA) \
307 $(schema_in_files) \
308 $(autostart_in_files) \
309 krb5-auth-dialog.1.in
310
311 CLEANFILES = $(schema_DATA)
312 DISTCLEANFILES = krb5-auth-dialog.desktop
313 all: all-am
314
315 .SUFFIXES:
316 .SUFFIXES: .c .lo .o .obj
317 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
318 @for dep in $?; do \
319 case '$(am__configure_deps)' in \
320 *$$dep*) \
321 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
322 && exit 0; \
323 exit 1;; \
324 esac; \
325 done; \
326 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
327 cd $(top_srcdir) && \
328 $(AUTOMAKE) --gnu src/Makefile
329 .PRECIOUS: Makefile
330 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
331 @case '$?' in \
332 *config.status*) \
333 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
334 *) \
335 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
336 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
337 esac;
338
339 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
340 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
341
342 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
343 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
344 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
345 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
346 krb5-auth-dialog.1: $(top_builddir)/config.status $(srcdir)/krb5-auth-dialog.1.in
347 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
348 install-binPROGRAMS: $(bin_PROGRAMS)
349 @$(NORMAL_INSTALL)
350 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
351 @list='$(bin_PROGRAMS)'; for p in $$list; do \
352 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
353 if test -f $$p \
354 || test -f $$p1 \
355 ; then \
356 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
357 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
358 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
359 else :; fi; \
360 done
361
362 uninstall-binPROGRAMS:
363 @$(NORMAL_UNINSTALL)
364 @list='$(bin_PROGRAMS)'; for p in $$list; do \
365 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
366 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
367 rm -f "$(DESTDIR)$(bindir)/$$f"; \
368 done
369
370 clean-binPROGRAMS:
371 @list='$(bin_PROGRAMS)'; for p in $$list; do \
372 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
373 echo " rm -f $$p $$f"; \
374 rm -f $$p $$f ; \
375 done
376 krb5-auth-dialog$(EXEEXT): $(krb5_auth_dialog_OBJECTS) $(krb5_auth_dialog_DEPENDENCIES)
377 @rm -f krb5-auth-dialog$(EXEEXT)
378 $(LINK) $(krb5_auth_dialog_OBJECTS) $(krb5_auth_dialog_LDADD) $(LIBS)
379
380 mostlyclean-compile:
381 -rm -f *.$(OBJEXT)
382
383 distclean-compile:
384 -rm -f *.tab.c
385
386 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy-strings.Po@am__quote@
387 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/krb5-auth-applet.Po@am__quote@
388 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/krb5-auth-dbus.Po@am__quote@
389 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/krb5-auth-dialog.Po@am__quote@
390 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/krb5-auth-gconf.Po@am__quote@
391 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/krb5-auth-notify.Po@am__quote@
392
393 .c.o:
394 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
395 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
396 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
397 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
398 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
399
400 .c.obj:
401 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
402 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
403 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
404 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
405 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
406
407 .c.lo:
408 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
409 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
410 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
411 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
412 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
413
414 mostlyclean-libtool:
415 -rm -f *.lo
416
417 clean-libtool:
418 -rm -rf .libs _libs
419 install-man1: $(man1_MANS) $(man_MANS)
420 @$(NORMAL_INSTALL)
421 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
422 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
423 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
424 for i in $$l2; do \
425 case "$$i" in \
426 *.1*) list="$$list $$i" ;; \
427 esac; \
428 done; \
429 for i in $$list; do \
430 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
431 else file=$$i; fi; \
432 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
433 case "$$ext" in \
434 1*) ;; \
435 *) ext='1' ;; \
436 esac; \
437 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
438 inst=`echo $$inst | sed -e 's/^.*\///'`; \
439 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
440 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
441 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
442 done
443 uninstall-man1:
444 @$(NORMAL_UNINSTALL)
445 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
446 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
447 for i in $$l2; do \
448 case "$$i" in \
449 *.1*) list="$$list $$i" ;; \
450 esac; \
451 done; \
452 for i in $$list; do \
453 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
454 case "$$ext" in \
455 1*) ;; \
456 *) ext='1' ;; \
457 esac; \
458 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
459 inst=`echo $$inst | sed -e 's/^.*\///'`; \
460 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
461 echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
462 rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
463 done
464 install-autostartDATA: $(autostart_DATA)
465 @$(NORMAL_INSTALL)
466 test -z "$(autostartdir)" || $(MKDIR_P) "$(DESTDIR)$(autostartdir)"
467 @list='$(autostart_DATA)'; for p in $$list; do \
468 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
469 f=$(am__strip_dir) \
470 echo " $(autostartDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(autostartdir)/$$f'"; \
471 $(autostartDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(autostartdir)/$$f"; \
472 done
473
474 uninstall-autostartDATA:
475 @$(NORMAL_UNINSTALL)
476 @list='$(autostart_DATA)'; for p in $$list; do \
477 f=$(am__strip_dir) \
478 echo " rm -f '$(DESTDIR)$(autostartdir)/$$f'"; \
479 rm -f "$(DESTDIR)$(autostartdir)/$$f"; \
480 done
481 install-gladeDATA: $(glade_DATA)
482 @$(NORMAL_INSTALL)
483 test -z "$(gladedir)" || $(MKDIR_P) "$(DESTDIR)$(gladedir)"
484 @list='$(glade_DATA)'; for p in $$list; do \
485 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
486 f=$(am__strip_dir) \
487 echo " $(gladeDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(gladedir)/$$f'"; \
488 $(gladeDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(gladedir)/$$f"; \
489 done
490
491 uninstall-gladeDATA:
492 @$(NORMAL_UNINSTALL)
493 @list='$(glade_DATA)'; for p in $$list; do \
494 f=$(am__strip_dir) \
495 echo " rm -f '$(DESTDIR)$(gladedir)/$$f'"; \
496 rm -f "$(DESTDIR)$(gladedir)/$$f"; \
497 done
498 install-schemaDATA: $(schema_DATA)
499 @$(NORMAL_INSTALL)
500 test -z "$(schemadir)" || $(MKDIR_P) "$(DESTDIR)$(schemadir)"
501 @list='$(schema_DATA)'; for p in $$list; do \
502 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
503 f=$(am__strip_dir) \
504 echo " $(schemaDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(schemadir)/$$f'"; \
505 $(schemaDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(schemadir)/$$f"; \
506 done
507
508 uninstall-schemaDATA:
509 @$(NORMAL_UNINSTALL)
510 @list='$(schema_DATA)'; for p in $$list; do \
511 f=$(am__strip_dir) \
512 echo " rm -f '$(DESTDIR)$(schemadir)/$$f'"; \
513 rm -f "$(DESTDIR)$(schemadir)/$$f"; \
514 done
515
516 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
517 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
518 unique=`for i in $$list; do \
519 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
520 done | \
521 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
522 END { if (nonempty) { for (i in files) print i; }; }'`; \
523 mkid -fID $$unique
524 tags: TAGS
525
526 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
527 $(TAGS_FILES) $(LISP)
528 tags=; \
529 here=`pwd`; \
530 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
531 unique=`for i in $$list; do \
532 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
533 done | \
534 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
535 END { if (nonempty) { for (i in files) print i; }; }'`; \
536 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
537 test -n "$$unique" || unique=$$empty_fix; \
538 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
539 $$tags $$unique; \
540 fi
541 ctags: CTAGS
542 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
543 $(TAGS_FILES) $(LISP)
544 tags=; \
545 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
546 unique=`for i in $$list; do \
547 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
548 done | \
549 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
550 END { if (nonempty) { for (i in files) print i; }; }'`; \
551 test -z "$(CTAGS_ARGS)$$tags$$unique" \
552 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
553 $$tags $$unique
554
555 GTAGS:
556 here=`$(am__cd) $(top_builddir) && pwd` \
557 && cd $(top_srcdir) \
558 && gtags -i $(GTAGS_ARGS) $$here
559
560 distclean-tags:
561 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
562
563 distdir: $(DISTFILES)
564 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
565 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
566 list='$(DISTFILES)'; \
567 dist_files=`for file in $$list; do echo $$file; done | \
568 sed -e "s|^$$srcdirstrip/||;t" \
569 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
570 case $$dist_files in \
571 */*) $(MKDIR_P) `echo "$$dist_files" | \
572 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
573 sort -u` ;; \
574 esac; \
575 for file in $$dist_files; do \
576 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
577 if test -d $$d/$$file; then \
578 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
579 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
580 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
581 fi; \
582 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
583 else \
584 test -f $(distdir)/$$file \
585 || cp -p $$d/$$file $(distdir)/$$file \
586 || exit 1; \
587 fi; \
588 done
589 check-am: all-am
590 check: check-am
591 all-am: Makefile $(PROGRAMS) $(MANS) $(DATA)
592 installdirs:
593 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(autostartdir)" "$(DESTDIR)$(gladedir)" "$(DESTDIR)$(schemadir)"; do \
594 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
595 done
596 install: install-am
597 install-exec: install-exec-am
598 install-data: install-data-am
599 uninstall: uninstall-am
600
601 install-am: all-am
602 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
603
604 installcheck: installcheck-am
605 install-strip:
606 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
607 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
608 `test -z '$(STRIP)' || \
609 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
610 mostlyclean-generic:
611
612 clean-generic:
613 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
614
615 distclean-generic:
616 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
617 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
618
619 maintainer-clean-generic:
620 @echo "This command is intended for maintainers to use"
621 @echo "it deletes files that may require special tools to rebuild."
622 clean: clean-am
623
624 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
625
626 distclean: distclean-am
627 -rm -rf ./$(DEPDIR)
628 -rm -f Makefile
629 distclean-am: clean-am distclean-compile distclean-generic \
630 distclean-tags
631
632 dvi: dvi-am
633
634 dvi-am:
635
636 html: html-am
637
638 info: info-am
639
640 info-am:
641
642 install-data-am: install-autostartDATA install-gladeDATA install-man \
643 install-schemaDATA
644
645 install-dvi: install-dvi-am
646
647 install-exec-am: install-binPROGRAMS
648
649 install-html: install-html-am
650
651 install-info: install-info-am
652
653 install-man: install-man1
654
655 install-pdf: install-pdf-am
656
657 install-ps: install-ps-am
658
659 installcheck-am:
660
661 maintainer-clean: maintainer-clean-am
662 -rm -rf ./$(DEPDIR)
663 -rm -f Makefile
664 maintainer-clean-am: distclean-am maintainer-clean-generic
665
666 mostlyclean: mostlyclean-am
667
668 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
669 mostlyclean-libtool
670
671 pdf: pdf-am
672
673 pdf-am:
674
675 ps: ps-am
676
677 ps-am:
678
679 uninstall-am: uninstall-autostartDATA uninstall-binPROGRAMS \
680 uninstall-gladeDATA uninstall-man uninstall-schemaDATA
681
682 uninstall-man: uninstall-man1
683
684 .MAKE: install-am install-strip
685
686 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
687 clean-generic clean-libtool ctags distclean distclean-compile \
688 distclean-generic distclean-libtool distclean-tags distdir dvi \
689 dvi-am html html-am info info-am install install-am \
690 install-autostartDATA install-binPROGRAMS install-data \
691 install-data-am install-dvi install-dvi-am install-exec \
692 install-exec-am install-gladeDATA install-html install-html-am \
693 install-info install-info-am install-man install-man1 \
694 install-pdf install-pdf-am install-ps install-ps-am \
695 install-schemaDATA install-strip installcheck installcheck-am \
696 installdirs maintainer-clean maintainer-clean-generic \
697 mostlyclean mostlyclean-compile mostlyclean-generic \
698 mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
699 uninstall-am uninstall-autostartDATA uninstall-binPROGRAMS \
700 uninstall-gladeDATA uninstall-man uninstall-man1 \
701 uninstall-schemaDATA
702
703 @INTLTOOL_DESKTOP_RULE@
704
705 %.schemas: $(srcdir)/%.schemas.in
706 sed -e "s,::PACKAGE::,$(PACKAGE)," < $< > $@
707 # Tell versions [3.59,3.63) of GNU make to not export all variables.
708 # Otherwise a system limit (for SysV at least) may be exceeded.
709 .NOEXPORT:
131131 N_("while releasing permanent lock"), /* import_err.et:imp:IMPORT_RENAME_UNLOCK */
132132 N_("while closing databases"), /* import_err.et:imp:IMPORT_RENAME_CLOSE */
133133 N_("while retrieving configuration parameters"), /* import_err.et:imp:IMPORT_GET_PARAMS */
134 N_("$Id$"), /* kdc5_err.et:kdc5:KDC5_RCSID */
134 N_("$Id: dummy-strings.c 35 2005-10-31 21:55:46Z caillon $"), /* kdc5_err.et:kdc5:KDC5_RCSID */
135135 N_("No server port found"), /* kdc5_err.et:kdc5:KDC5_NOPORT */
136136 N_("Network not initialized"), /* kdc5_err.et:kdc5:KDC5_NONET */
137137 N_("Short write while sending response"), /* kdc5_err.et:kdc5:KDC5_IO_RESPONSE */
384384 N_("Bad magic number for passwd_phrase_element"), /* kv5m_err.et:kv5m:KV5M_PASSWD_PHRASE_ELEMENT */
385385 N_("Bad magic number for GSSAPI OID"), /* kv5m_err.et:kv5m:KV5M_GSS_OID */
386386 N_("Bad magic number for GSSAPI QUEUE"), /* kv5m_err.et:kv5m:KV5M_GSS_QUEUE */
387 N_("$Id$"), /* kdb5_err.et:kdb5:KRB5_KDB_RCSID */
387 N_("$Id: dummy-strings.c 35 2005-10-31 21:55:46Z caillon $"), /* kdb5_err.et:kdb5:KRB5_KDB_RCSID */
388388 N_("Entry already exists in database"), /* kdb5_err.et:kdb5:KRB5_KDB_INUSE */
389389 N_("Database store error"), /* kdb5_err.et:kdb5:KRB5_KDB_UK_SERROR */
390390 N_("Database read error"), /* kdb5_err.et:kdb5:KRB5_KDB_UK_RERROR */
0 <?xml version="1.0" encoding="UTF-8" ?>
1
2 <node name="/org/gnome/KrbAuthDialog">
3 <interface name="org.gnome.KrbAuthDialog">
4 <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="KaApplet"/>
5 <method name="acquireTgt">
6 <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="ka_dbus_acquire_tgt"/>
7 <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
8 <arg type="s" name="principal" direction="in" />
9 <arg type="b" name="success" direction="out"/>
10 </method>
11 </interface>
12 </node>
13
00 /* Krb5 Auth Applet -- Acquire and release kerberos tickets
11 *
2 * (C) 2008 Guido Guenther <agx@sigxcpu.org>
2 * (C) 2008,2009 Guido Guenther <agx@sigxcpu.org>
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
2323
2424 #include "krb5-auth-applet.h"
2525 #include "krb5-auth-dialog.h"
26 #include "krb5-auth-notify.h"
26 #ifdef HAVE_LIBNOTIFY
27 #include <libnotify/notify.h>
28 #endif
2729
2830 #define NOTIFY_SECONDS 300
2931
3335 val_icon,
3436 };
3537
38 enum
39 {
40 KA_PROP_0 = 0,
41 KA_PROP_PRINCIPAL,
42 KA_PROP_PK_USERID,
43 KA_PROP_TRAYICON,
44 KA_PROP_PW_PROMPT_MINS,
45 };
46
47 struct _KaApplet {
48 GObject parent;
49
50 KaAppletPrivate *priv;
51 };
52
53 struct _KaAppletClass {
54 GObjectClass parent;
55 };
56
57 G_DEFINE_TYPE(KaApplet, ka_applet, G_TYPE_OBJECT);
58
59 struct _KaAppletPrivate
60 {
61 GtkStatusIcon* tray_icon; /* the tray icon */
62 GtkWidget* context_menu; /* the tray icon's context menu */
63 const char* icons[3]; /* for invalid, expiring and valid tickts */
64 gboolean show_trayicon; /* show the trayicon */
65
66 /* The password dialog */
67 GtkWidget* pw_dialog; /* the password dialog itself */
68 GladeXML* pw_xml; /* the dialog's glade xml */
69 GtkWidget* pw_label; /* the wrong password/timeout label */
70 int pw_prompt_secs; /* when to start prompting for a password */
71 gboolean pw_dialog_persist; /* don't hide the dialog when creds are still valid */
72
73 #ifdef HAVE_LIBNOTIFY
74 NotifyNotification* notification;/* notification messages */
75 #endif /* HAVE_LIBNOTIFY */
76 char* principal; /* the principal to request */
77 gboolean renewable; /* credentials renewable? */
78 char* pk_userid; /* "userid" for pkint */
79 };
80
81 static void
82 ka_applet_set_property (GObject *object,
83 guint property_id,
84 const GValue *value,
85 GParamSpec *pspec)
86 {
87 KaApplet* self = KA_APPLET (object);
88
89 switch (property_id) {
90 case KA_PROP_PRINCIPAL:
91 g_free (self->priv->principal);
92 self->priv->principal = g_value_dup_string (value);
93 KA_DEBUG ("%s: %s", pspec->name, self->priv->principal);
94 break;
95
96 case KA_PROP_PK_USERID:
97 g_free (self->priv->pk_userid);
98 self->priv->pk_userid = g_value_dup_string (value);
99 KA_DEBUG ("%s: %s", pspec->name, self->priv->pk_userid);
100 break;
101
102 case KA_PROP_TRAYICON:
103 self->priv->show_trayicon = g_value_get_boolean (value);
104 KA_DEBUG ("%s: %s", pspec->name, self->priv->show_trayicon ? "True" : "False");
105 break;
106
107 case KA_PROP_PW_PROMPT_MINS:
108 self->priv->pw_prompt_secs = g_value_get_uint (value) * 60;
109 KA_DEBUG ("%s: %d", pspec->name, self->priv->pw_prompt_secs/60);
110 break;
111
112 default:
113 /* We don't have any other property... */
114 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
115 break;
116 }
117 }
118
119 static void
120 ka_applet_get_property (GObject *object,
121 guint property_id,
122 GValue *value,
123 GParamSpec *pspec)
124 {
125 KaApplet *self = KA_APPLET (object);
126
127 switch (property_id)
128 {
129 case KA_PROP_PRINCIPAL:
130 g_value_set_string (value, self->priv->principal);
131 break;
132
133 case KA_PROP_PK_USERID:
134 g_value_set_string (value, self->priv->pk_userid);
135 break;
136
137 case KA_PROP_TRAYICON:
138 g_value_set_boolean (value, self->priv->show_trayicon);
139 break;
140
141 case KA_PROP_PW_PROMPT_MINS:
142 g_value_set_uint (value, self->priv->pw_prompt_secs / 60);
143 break;
144
145 default:
146 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
147 break;
148 }
149 }
150
151
152 static void
153 ka_applet_dispose(GObject* object)
154 {
155 KaApplet* applet = KA_APPLET(object);
156 GObjectClass *parent_class = G_OBJECT_CLASS (ka_applet_parent_class);
157
158 if (applet->priv->tray_icon) {
159 g_object_unref(applet->priv->tray_icon);
160 applet->priv->tray_icon = NULL;
161 }
162 if (applet->priv->pw_xml) {
163 g_object_unref(applet->priv->pw_xml);
164 applet->priv->pw_xml = NULL;
165 }
166
167 if (parent_class->dispose != NULL)
168 parent_class->dispose (object);
169 }
170
171
172 static void
173 ka_applet_finalize(GObject *object)
174 {
175 KaApplet* applet = KA_APPLET(object);
176 GObjectClass *parent_class = G_OBJECT_CLASS (ka_applet_parent_class);
177
178 g_free (applet->priv->principal);
179 g_free (applet->priv->pk_userid);
180 /* no need to free applet->priv */
181
182 if (parent_class->finalize != NULL)
183 parent_class->finalize (object);
184 }
185
186 static void
187 ka_applet_init(KaApplet *applet)
188 {
189 applet->priv = G_TYPE_INSTANCE_GET_PRIVATE(applet,
190 KA_TYPE_APPLET,
191 KaAppletPrivate);
192 }
193
194 static void
195 ka_applet_class_init(KaAppletClass *klass)
196 {
197 GObjectClass *object_class = G_OBJECT_CLASS(klass);
198 GParamSpec *pspec;
199
200 object_class->dispose = ka_applet_dispose;
201 object_class->finalize = ka_applet_finalize;
202 g_type_class_add_private(klass, sizeof(KaAppletPrivate));
203
204 object_class->set_property = ka_applet_set_property;
205 object_class->get_property = ka_applet_get_property;
206
207 pspec = g_param_spec_string ("principal",
208 "Principal",
209 "Get/Set Kerberos Principal",
210 "",
211 G_PARAM_CONSTRUCT | G_PARAM_READWRITE);
212 g_object_class_install_property (object_class,
213 KA_PROP_PRINCIPAL,
214 pspec);
215
216 pspec = g_param_spec_string ("pk-userid",
217 "PKinit Identifier",
218 "Get/Set Pkinit identifier",
219 "",
220 G_PARAM_CONSTRUCT | G_PARAM_READWRITE);
221 g_object_class_install_property (object_class,
222 KA_PROP_PK_USERID,
223 pspec);
224
225 pspec = g_param_spec_boolean("show-trayicon",
226 "Show tray icon",
227 "Show/Hide the tray icon",
228 TRUE,
229 G_PARAM_CONSTRUCT | G_PARAM_READWRITE);
230 g_object_class_install_property (object_class,
231 KA_PROP_TRAYICON,
232 pspec);
233
234 pspec = g_param_spec_uint ("pw-prompt-mins",
235 "Password Prompting Interval",
236 "Password Prompting Interval in Minutes",
237 0, G_MAXUINT, MINUTES_BEFORE_PROMPTING,
238 G_PARAM_CONSTRUCT | G_PARAM_READWRITE);
239 g_object_class_install_property (object_class,
240 KA_PROP_PW_PROMPT_MINS,
241 pspec);
242 }
243
244
245 KaApplet *ka_applet_new(void)
246 {
247 return g_object_new (KA_TYPE_APPLET, NULL);
248 }
249
36250
37251 /* determine the new tooltip text */
38252 static char*
39 ka_tooltip_text(Krb5AuthApplet* applet, int remaining)
253 ka_applet_tooltip_text(KaApplet* applet, int remaining)
40254 {
41255 int hours, minutes;
42256 gchar* tooltip_text;
61275
62276 /* determine the current icon */
63277 static const char*
64 ka_select_icon(Krb5AuthApplet* applet, int remaining)
278 ka_applet_select_icon(KaApplet* applet, int remaining)
65279 {
66280 enum ka_icon tray_icon = inv_icon;
67281
68282 if (remaining > 0) {
69 if (remaining < applet->pw_prompt_secs &&
70 !applet->renewable)
283 if (remaining < applet->priv->pw_prompt_secs &&
284 !applet->priv->renewable)
71285 tray_icon = exp_icon;
72286 else
73287 tray_icon = val_icon;
74288 }
75289
76 return applet->icons[tray_icon];
290 return applet->priv->icons[tray_icon];
291 }
292
293
294 void
295 ka_send_event_notification (KaApplet *applet __attribute__((__unused__)),
296 const char *summary __attribute__((__unused__)),
297 const char *message __attribute__((__unused__)),
298 const char *icon __attribute__((__unused__)))
299 {
300 #ifdef HAVE_LIBNOTIFY
301 const char *notify_icon;
302
303 g_return_if_fail (applet != NULL);
304 g_return_if_fail (summary != NULL);
305 g_return_if_fail (message != NULL);
306
307 if (!notify_is_initted ())
308 notify_init (PACKAGE);
309
310 if (applet->priv->notification != NULL) {
311 notify_notification_close (applet->priv->notification, NULL);
312 g_object_unref (applet->priv->notification);
313 }
314
315 notify_icon = icon ? icon : "gtk-dialog-authentication";
316
317 applet->priv->notification = \
318 notify_notification_new_with_status_icon(summary, message, notify_icon, applet->priv->tray_icon);
319
320 notify_notification_set_urgency (applet->priv->notification, NOTIFY_URGENCY_NORMAL);
321 notify_notification_show (applet->priv->notification, NULL);
322 #endif /* HAVE_LIBNOTIFY */
77323 }
78324
79325
80326 /* update the tray icon's tooltip and icon */
81327 int
82 ka_update_status(Krb5AuthApplet* applet, krb5_timestamp expiry)
328 ka_applet_update_status(KaApplet* applet, krb5_timestamp expiry)
83329 {
84330 int now = time(0);
85331 int remaining = expiry - now;
86332 static int last_warn = 0;
87333 static gboolean expiry_notified = FALSE;
88 const char* tray_icon = ka_select_icon (applet, remaining);
89 char* tooltip_text = ka_tooltip_text (applet, remaining);
334 const char* tray_icon = ka_applet_select_icon (applet, remaining);
335 char* tooltip_text = ka_applet_tooltip_text (applet, remaining);
90336
91337 if (remaining > 0) {
92338 if (expiry_notified) {
94340 _("Network credentials valid"),
95341 _("Your Kerberos credentials have been refreshed."), NULL);
96342 expiry_notified = FALSE;
97 } else if (remaining < applet->pw_prompt_secs && (now - last_warn) > NOTIFY_SECONDS &&
98 !applet->renewable) {
343 } else if (remaining < applet->priv->pw_prompt_secs && (now - last_warn) > NOTIFY_SECONDS &&
344 !applet->priv->renewable) {
99345 ka_send_event_notification (applet,
100346 _("Network credentials expiring"),
101347 tooltip_text, NULL);
111357 }
112358 }
113359
114 gtk_status_icon_set_from_icon_name (applet->tray_icon, tray_icon);
115 gtk_status_icon_set_tooltip (applet->tray_icon, tooltip_text);
360 gtk_status_icon_set_from_icon_name (applet->priv->tray_icon, tray_icon);
361 gtk_status_icon_set_tooltip (applet->priv->tray_icon, tooltip_text);
116362 g_free(tooltip_text);
117363 return 0;
118364 }
119365
120366
121367 static void
122 ka_menu_add_separator_item (GtkWidget* menu)
123 {
124 GtkWidget* menu_item;
125
126 menu_item = gtk_separator_menu_item_new ();
127 gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
128 gtk_widget_show (menu_item);
368 ka_applet_menu_add_separator_item (GtkWidget* menu)
369 {
370 GtkWidget* menu_item;
371
372 menu_item = gtk_separator_menu_item_new ();
373 gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
374 gtk_widget_show (menu_item);
129375 }
130376
131377
132378 /* Free all resources and quit */
133379 static void
134 ka_quit_applet (GtkMenuItem* menuitem, gpointer user_data)
135 {
136 Krb5AuthApplet* applet = (Krb5AuthApplet*) user_data;
137
138 g_free (applet->principal);
139 g_free (applet);
380 ka_applet_cb_quit (GtkMenuItem* menuitem, gpointer user_data)
381 {
382 KaApplet* applet = KA_APPLET(user_data);
383
384 g_object_unref (applet);
140385 gtk_main_quit ();
141386 }
142387
143388
144389 static void
145 ka_about_dialog (GtkMenuItem* menuitem, gpointer user_data)
390 ka_applet_cb_about_dialog (GtkMenuItem* menuitem, gpointer user_data)
146391 {
147392 gchar* authors[] = { "Christopher Aillon <caillon@redhat.com>",
148393 "Colin Walters <walters@verbum.org>",
149 "Guido Günther <agx@sigxpcu.org>",
394 "Guido Günther <agx@sigxpcu.org>",
150395 NULL };
151396 gtk_show_about_dialog (NULL,
152 "authors", authors,
153 "version", VERSION,
154 "copyright", "Copyright (C) 2004,2005,2006 Red Hat, Inc.,\n2008 Guido Günther",
155 NULL);
397 "authors", authors,
398 "version", VERSION,
399 "copyright", "Copyright (C) 2004,2005,2006 Red Hat, Inc.,\n2008,2009 Guido Günther",
400 NULL);
156401 }
157402
158403
159404 /* The tray icon's context menu */
160 static GtkWidget*
161 ka_create_context_menu (Krb5AuthApplet* applet)
405 static gboolean
406 ka_applet_create_context_menu (KaApplet* applet)
162407 {
163408 GtkWidget* menu;
164409 GtkWidget* menu_item;
169414 /* kdestroy */
170415 menu_item = gtk_image_menu_item_new_with_mnemonic (_("Remove Credentials _Cache"));
171416 g_signal_connect (G_OBJECT (menu_item), "activate", G_CALLBACK (ka_destroy_cache), applet);
172 image = gtk_image_new_from_stock (GTK_STOCK_CANCEL, GTK_ICON_SIZE_MENU);
173 gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item), image);
417 image = gtk_image_new_from_stock (GTK_STOCK_CANCEL, GTK_ICON_SIZE_MENU);
418 gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item), image);
174419 gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
175420
176 ka_menu_add_separator_item (menu);
421 ka_applet_menu_add_separator_item (menu);
177422
178423 /* About item */
179424 menu_item = gtk_image_menu_item_new_with_mnemonic (_("_About"));
180 g_signal_connect (G_OBJECT (menu_item), "activate", G_CALLBACK (ka_about_dialog), applet);
425 g_signal_connect (G_OBJECT (menu_item), "activate", G_CALLBACK (ka_applet_cb_about_dialog), applet);
181426 image = gtk_image_new_from_stock (GTK_STOCK_ABOUT, GTK_ICON_SIZE_MENU);
182427 gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item), image);
183428 gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
184429
185 ka_menu_add_separator_item (menu);
430 ka_applet_menu_add_separator_item (menu);
186431
187432 /* Quit */
188433 menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Quit"));
189 g_signal_connect (G_OBJECT (menu_item), "activate", G_CALLBACK (ka_quit_applet), applet);
190 image = gtk_image_new_from_stock (GTK_STOCK_QUIT, GTK_ICON_SIZE_MENU);
191 gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item), image);
434 g_signal_connect (G_OBJECT (menu_item), "activate", G_CALLBACK (ka_applet_cb_quit), applet);
435 image = gtk_image_new_from_stock (GTK_STOCK_QUIT, GTK_ICON_SIZE_MENU);
436 gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item), image);
192437 gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
193438
194439 gtk_widget_show_all (menu);
195
196 return menu;
440 applet->priv->context_menu = menu;
441
442 return TRUE;
197443 }
198444
199445
200446 static void
201447 ka_tray_icon_on_menu (GtkStatusIcon* status_icon, guint button,
202 guint activate_time, gpointer user_data)
203 {
204 Krb5AuthApplet* applet = (Krb5AuthApplet*) user_data;
205
206 KA_DEBUG("Trayicon right clicked: %d", applet->pw_prompt_secs);
207 gtk_menu_popup (GTK_MENU (applet->context_menu), NULL, NULL,
208 gtk_status_icon_position_menu, applet->tray_icon,
448 guint activate_time, gpointer user_data)
449 {
450 KaApplet *applet = KA_APPLET(user_data);
451
452 KA_DEBUG("Trayicon right clicked: %d", applet->priv->pw_prompt_secs);
453 gtk_menu_popup (GTK_MENU (applet->priv->context_menu), NULL, NULL,
454 gtk_status_icon_position_menu, applet->priv->tray_icon,
209455 button, activate_time);
210456 }
211457
213459 static gboolean
214460 ka_tray_icon_on_click (GtkStatusIcon* status_icon, gpointer data)
215461 {
216 Krb5AuthApplet* applet = (Krb5AuthApplet*) data;
217 g_return_val_if_fail (applet != NULL, FALSE);
218
219 KA_DEBUG("Trayicon clicked: %d", applet->pw_prompt_secs);
462 KaApplet *applet = KA_APPLET(data);
463
464 KA_DEBUG("Trayicon clicked: %d", applet->priv->pw_prompt_secs);
220465 ka_grab_credentials (applet);
221466 return TRUE;
222467 }
223468
224469
225 gboolean
226 ka_show_tray_icon (Krb5AuthApplet* applet)
470 static gboolean
471 ka_applet_cb_show_trayicon (KaApplet* applet, GParamSpec* property, gpointer data)
227472 {
228473 g_return_val_if_fail (applet != NULL, FALSE);
229 g_return_val_if_fail (applet->tray_icon != NULL, FALSE);
230
231 gtk_status_icon_set_visible (applet->tray_icon, applet->show_trayicon);
474 g_return_val_if_fail (applet->priv->tray_icon != NULL, FALSE);
475
476 gtk_status_icon_set_visible (applet->priv->tray_icon, applet->priv->show_trayicon);
232477 return TRUE;
233478 }
234479
235480
236 static GtkStatusIcon*
237 ka_create_tray_icon (Krb5AuthApplet* applet)
481 static gboolean
482 ka_applet_create_tray_icon (KaApplet* applet)
238483 {
239484 GtkStatusIcon* tray_icon;
240485
241486 tray_icon = gtk_status_icon_new ();
487
242488 g_signal_connect (G_OBJECT(tray_icon), "activate",
243 G_CALLBACK(ka_tray_icon_on_click), applet);
489 G_CALLBACK(ka_tray_icon_on_click), applet);
244490 g_signal_connect (G_OBJECT(tray_icon),
245491 "popup-menu",
246492 G_CALLBACK(ka_tray_icon_on_menu), applet);
247 gtk_status_icon_set_from_icon_name (tray_icon, applet->icons[exp_icon]);
248 gtk_status_icon_set_tooltip (tray_icon, PACKAGE);
249 return tray_icon;
250 }
251
252
253 int
254 ka_setup_icons (Krb5AuthApplet* applet)
255 {
256 applet->icons[val_icon] = "krb-valid-ticket";
257 applet->icons[exp_icon] = "krb-expiring-ticket";
258 applet->icons[inv_icon] = "krb-no-valid-ticket";
493 gtk_status_icon_set_from_icon_name (tray_icon, applet->priv->icons[exp_icon]);
494 gtk_status_icon_set_tooltip (tray_icon, PACKAGE);
495 applet->priv->tray_icon = tray_icon;
259496 return TRUE;
260497 }
261498
262499
500 static int
501 ka_applet_setup_icons (KaApplet* applet)
502 {
503 /* Add application specific icons to search path */
504 gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
505 KA_DATA_DIR G_DIR_SEPARATOR_S "icons");
506 applet->priv->icons[val_icon] = "krb-valid-ticket";
507 applet->priv->icons[exp_icon] = "krb-expiring-ticket";
508 applet->priv->icons[inv_icon] = "krb-no-valid-ticket";
509 return TRUE;
510 }
511
512
513 static gboolean
514 ka_applet_glade_init(KaApplet *applet)
515 {
516 KaAppletPrivate *priv = applet->priv;
517
518 priv->pw_xml = glade_xml_new (KA_DATA_DIR G_DIR_SEPARATOR_S
519 PACKAGE ".glade", NULL, NULL);
520 priv->pw_label = glade_xml_get_widget (priv->pw_xml, "krb5_wrong_label");
521 priv->pw_dialog = glade_xml_get_widget (priv->pw_xml, "krb5_dialog");
522
523 return TRUE;
524 }
525
526
527 GladeXML*
528 ka_applet_get_pwdialog_xml(const KaApplet* applet)
529 {
530 return applet->priv->pw_xml;
531 }
532
533 guint
534 ka_applet_get_pw_prompt_secs(const KaApplet* applet)
535 {
536 return applet->priv->pw_prompt_secs;
537 }
538
539 gboolean
540 ka_applet_get_show_trayicon(const KaApplet* applet)
541 {
542 return applet->priv->show_trayicon;
543 }
544
545 void
546 ka_applet_set_tgt_renewable(KaApplet* applet, gboolean renewable)
547 {
548 applet->priv->renewable = renewable;
549 }
550
551 gboolean
552 ka_applet_get_tgt_renewable(const KaApplet* applet)
553 {
554 return applet->priv->renewable;
555 }
556
557 gint ka_applet_run_pw_dialog(const KaApplet* applet)
558 {
559 return gtk_dialog_run (GTK_DIALOG (applet->priv->pw_dialog));
560 }
561
562 void
563 ka_applet_hide_pw_dialog(KaApplet* applet, gboolean force)
564 {
565 KA_DEBUG("PW Dialog persist: %d", applet->priv->pw_dialog_persist);
566 if (!applet->priv->pw_dialog_persist || force)
567 gtk_widget_hide(applet->priv->pw_dialog);
568 }
569
570 void
571 ka_applet_set_pw_dialog_persist(KaApplet* applet, gboolean persist)
572 {
573 applet->priv->pw_dialog_persist = persist;
574 }
575
576 GtkWidget*
577 ka_applet_get_pw_label(const KaApplet* applet)
578 {
579 return applet->priv->pw_label;
580 }
581
263582 /* create the tray icon applet */
264 Krb5AuthApplet*
265 ka_create_applet()
266 {
267 Krb5AuthApplet* applet = g_malloc0 (sizeof(Krb5AuthApplet));
268
269 if (!(ka_setup_icons (applet)))
583 KaApplet*
584 ka_applet_create()
585 {
586 KaApplet* applet = ka_applet_new();
587
588 ka_applet_glade_init(applet);
589
590 if (!(ka_applet_setup_icons (applet)))
270591 g_error ("Failure to setup icons");
271 if (!(applet->tray_icon = ka_create_tray_icon (applet)))
592 if (!ka_applet_create_tray_icon (applet))
272593 g_error ("Failure to create tray icon");
273 if (!(applet->context_menu = ka_create_context_menu (applet)))
594 if (!ka_applet_create_context_menu (applet))
274595 g_error ("Failure to create context menu");
275 gtk_window_set_default_icon_name (applet->icons[val_icon]);
276 ka_show_tray_icon (applet);
596 gtk_window_set_default_icon_name (applet->priv->icons[val_icon]);
597 g_signal_connect (applet, "notify::show-trayicon",
598 G_CALLBACK (ka_applet_cb_show_trayicon), NULL);
277599
278600 return applet;
279601 }
2121 #define KRB5_AUTH_APPLET_H
2222
2323 #include <glib.h>
24 #include <glib-object.h>
2425 #include <glib/gprintf.h>
2526 #include <gtk/gtk.h>
2627 #include <glade/glade.h>
3132
3233 #include "config.h"
3334
34 typedef struct {
35 GtkStatusIcon* tray_icon; /* the tray icon */
36 GtkWidget* context_menu; /* the tray icon's context menu */
37 const char* icons[3]; /* for invalid, expiring and valid tickts */
38 gboolean show_trayicon; /* show the trayicon */
35 G_BEGIN_DECLS
3936
40 /* The password dialog */
41 GtkWidget* pw_dialog; /* the password dialog itself */
42 GladeXML* pw_xml; /* the dialog's glade xml */
43 GtkWidget* pw_wrong_label; /* the wrong password/timeout label */
44 int pw_prompt_secs; /* when to start prompting for a password */
45 gboolean pw_dialog_persist; /* don't hide the dialog when creds are still valid */
37 #define KA_TYPE_APPLET (ka_applet_get_type ())
38 #define KA_APPLET(obj) \
39 (G_TYPE_CHECK_INSTANCE_CAST ((obj), KA_TYPE_APPLET, KaApplet))
40 #define KA_APPLET_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_CAST ((klass), KA_TYPE_APPLET, KaAppletClass))
42 #define KA_IS_APPLET(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), KA_TYPE_APPLET))
44 #define KA_IS_APPLET_CLASS(klass) \
45 (G_TYPE_CHECK_CLASS_TYPE ((klass), KA_TYPE_APPLET))
46 #define KA_APPLET_GET_CLASS(obj) \
47 (G_TYPE_INSTANCE_GET_CLASS ((obj), KA_TYPE_APPLET, KaAppletClass))
4648
47 #ifdef HAVE_LIBNOTIFY
48 NotifyNotification* notification;/* notification messages */
49 #endif /* HAVE_LIBNOTIFY */
50 char* principal; /* the principal to request */
51 gboolean renewable; /* credentials renewable? */
52 char* pk_userid; /* "userid" for pkint */
53 } Krb5AuthApplet;
49 typedef struct _KaApplet KaApplet;
50 typedef struct _KaAppletClass KaAppletClass;
51 typedef struct _KaAppletPrivate KaAppletPrivate;
5452
55 Krb5AuthApplet* ka_create_applet();
53 GType ka_applet_get_type (void);
54 KaApplet* ka_applet_new(void) G_GNUC_MALLOC;
55
56 /* public functions */
57 gboolean ka_applet_get_show_trayicon(const KaApplet* applet);
58 void ka_applet_set_tgt_renewable(KaApplet* applet, gboolean renewable);
59 gboolean ka_applet_get_tgt_renewable(const KaApplet* applet);
60 guint ka_applet_get_pw_prompt_secs(const KaApplet* applet);
61
62 /* password dialog */
63 gint ka_applet_run_pw_dialog(const KaApplet* applet);
64 GladeXML* ka_applet_get_pwdialog_xml(const KaApplet* applet);
65 void ka_applet_hide_pw_dialog(KaApplet* applet, gboolean force);
66 GtkWidget* ka_applet_get_pw_label(const KaApplet* applet);
67 void ka_applet_set_pw_dialog_persist(KaApplet* applet, gboolean persist);
68
69 G_END_DECLS
70
71 /* create the applet */
72 KaApplet* ka_applet_create();
5673 /* update tooltip and icon */
57 int ka_update_status(Krb5AuthApplet* applet, krb5_timestamp expiry);
58 /* show or hide the tray icon */
59 gboolean ka_show_tray_icon(Krb5AuthApplet* applet);
74 int ka_applet_update_status(KaApplet* applet, krb5_timestamp expiry);
6075
6176 #ifdef ENABLE_DEBUG
6277 #define KA_DEBUG(fmt,...) \
00 /* Krb5 Auth Applet -- Acquire and release kerberos tickets
11 *
2 * (C) 2008 Guido Guenther <agx@sigxcpu.org>
2 * (C) 2008,2009 Guido Guenther <agx@sigxcpu.org>
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
2222 #include <dbus/dbus-glib.h>
2323 #include "krb5-auth-applet.h"
2424 #include "krb5-auth-dbus.h"
25 #include "krb5-auth-applet-dbus-glue.h"
26
27 static DBusGConnection *session;
28
29 gboolean
30 ka_dbus_acquire_tgt (KaApplet *applet,
31 const gchar *principal, DBusGMethodInvocation *context)
32 {
33 gboolean success;
34
35 KA_DEBUG("Getting TGT for '%s'", principal);
36 success = ka_check_credentials(applet, principal);
37 dbus_g_method_return(context, success);
38 return TRUE;
39 }
40
41
42 gboolean
43 ka_dbus_service(KaApplet* applet)
44 {
45 dbus_g_connection_register_g_object (session,
46 "/org/gnome/KrbAuthDialog",
47 G_OBJECT(applet));
48 return TRUE;
49 }
50
2551
2652 gboolean
2753 ka_dbus_connect(unsigned int* status)
2854 {
2955 guint request_name_reply;
3056 unsigned int flags;
31 DBusGConnection *session;
3257 DBusGProxy *bus_proxy;
3358 GError* error = NULL;
3459
4469 "org.freedesktop.DBus",
4570 "/org/freedesktop/DBus",
4671 "org.freedesktop.DBus");
72
73 dbus_g_object_type_install_info(KA_TYPE_APPLET,
74 &dbus_glib_krb5_auth_dialog_object_info);
4775
4876 if (!dbus_g_proxy_call (bus_proxy,
4977 "RequestName",
2121 #define KRB5_AUTH_DBUS_H
2222
2323 #include <glib.h>
24 #include <dbus/dbus-glib.h>
25 #include <dbus/dbus-glib-lowlevel.h>
26 #include "krb5-auth-applet.h"
2427
2528 gboolean ka_dbus_connect(unsigned int* status);
29 gboolean ka_dbus_service(KaApplet* applet);
30 gboolean ka_dbus_acquire_tgt (KaApplet *applet,
31 const gchar *principal,
32 DBusGMethodInvocation *context);
2633
2734 #endif /* KRB5_AUTH_DBUS_H */
00 /*
11 * Copyright (C) 2004,2005,2006 Red Hat, Inc.
22 * Authored by Christopher Aillon <caillon@redhat.com>
3 *
4 * Copyright (C) 2008,2009 Guido Guenther <agx@sigxcup.org>
35 *
46 * This program is free software; you can redistribute it and/or modify
57 * it under the terms of the GNU General Public License as published by
5456 static gboolean invalid_auth;
5557 static gboolean always_run;
5658
57 static int grab_credentials (Krb5AuthApplet* applet);
58 static int ka_renew_credentials (Krb5AuthApplet* applet);
59 static int grab_credentials (KaApplet* applet);
60 static int ka_renew_credentials (KaApplet* applet);
5961 static gboolean ka_get_tgt_from_ccache (krb5_context context, krb5_creds *creds);
6062
6163 /* YAY for different Kerberos implementations */
159161 /* ***************************************************************** */
160162
161163 static gboolean
162 credentials_expiring_real (Krb5AuthApplet* applet)
164 credentials_expiring_real (KaApplet* applet)
163165 {
164166 krb5_creds my_creds;
165167 krb5_timestamp now;
166168 gboolean retval = FALSE;
167 applet->renewable = FALSE;
168
169
170 ka_applet_set_tgt_renewable(applet, FALSE);
169171 if (!ka_get_tgt_from_ccache (kcontext, &my_creds)) {
170172 creds_expiry = 0;
171173 retval = TRUE;
178180 }
179181 creds_expiry = my_creds.times.endtime;
180182 if ((krb5_timeofday(kcontext, &now) == 0) &&
181 (now + applet->pw_prompt_secs > my_creds.times.endtime))
183 (now + ka_applet_get_pw_prompt_secs(applet) > my_creds.times.endtime))
182184 retval = TRUE;
183185
184186 /* If our creds are expiring, determine whether they are renewable */
185187 if (retval && get_cred_renewable(&my_creds) && my_creds.times.renew_till > now) {
186 applet->renewable = TRUE;
188 ka_applet_set_tgt_renewable(applet, TRUE);
187189 }
188190
189191 krb5_free_cred_contents (kcontext, &my_creds);
190192
191193 out:
192 ka_update_status(applet, creds_expiry);
194 ka_applet_update_status(applet, creds_expiry);
193195 return retval;
194196 }
195197
245247 static gboolean
246248 krb5_auth_dialog_do_updates (gpointer data)
247249 {
248 Krb5AuthApplet* applet = (Krb5AuthApplet*)data;
250 KaApplet* applet = KA_APPLET(data);
249251
250252 g_return_val_if_fail (applet != NULL, FALSE);
251
252253 /* Update creds_expiry and close the applet if we got the creds by other means (e.g. kinit) */
253 if (!credentials_expiring_real(applet)) {
254 KA_DEBUG("PW Dialog persist: %d", applet->pw_dialog_persist);
255 if (!applet->pw_dialog_persist)
256 gtk_widget_hide(applet->pw_dialog);
257 }
254 if (!credentials_expiring_real(applet))
255 ka_applet_hide_pw_dialog(applet, FALSE);
258256
259257 /* Update the expiry information in the dialog */
260 krb5_auth_dialog_wrong_label_update_expiry (applet->pw_wrong_label);
258 krb5_auth_dialog_wrong_label_update_expiry (ka_applet_get_pw_label(applet));
261259 return TRUE;
262260 }
263261
264262
265263 static void
266 krb5_auth_dialog_setup (Krb5AuthApplet *applet,
264 krb5_auth_dialog_setup (KaApplet *applet,
267265 const gchar *krb5prompt,
268266 gboolean hide_password)
269267 {
273271 gchar *wrong_markup;
274272 gchar *prompt;
275273 int pw4len;
276
277274
278275 if (krb5prompt == NULL) {
279276 prompt = g_strdup (_("Please enter your Kerberos password."));
294291 }
295292
296293 /* Clear the password entry field */
297 entry = glade_xml_get_widget (applet->pw_xml, "krb5_entry");
294 entry = glade_xml_get_widget (ka_applet_get_pwdialog_xml(applet),
295 "krb5_entry");
298296 gtk_secure_entry_set_text (GTK_SECURE_ENTRY (entry), "");
299297
300298 /* Use the prompt label that krb5 provides us */
301 label = glade_xml_get_widget (applet->pw_xml, "krb5_message_label");
299 label = glade_xml_get_widget (ka_applet_get_pwdialog_xml(applet),
300 "krb5_message_label");
302301 gtk_label_set_text (GTK_LABEL (label), prompt);
303302
304303 /* Add our extra message hints, if any */
305304 wrong_text = NULL;
306305
307 if (applet->pw_wrong_label) {
306 if (ka_applet_get_pw_label(applet)) {
308307 if (invalid_auth) {
309308 wrong_text = g_strdup (_("The password you entered is invalid"));
310309 } else {
321320
322321 if (wrong_text) {
323322 wrong_markup = g_strdup_printf ("<span size=\"smaller\" style=\"italic\">%s</span>", wrong_text);
324 gtk_label_set_markup (GTK_LABEL (applet->pw_wrong_label), wrong_markup);
323 gtk_label_set_markup (GTK_LABEL (ka_applet_get_pw_label(applet)), wrong_markup);
325324 g_free(wrong_text);
326325 g_free(wrong_markup);
327326 } else {
328 gtk_label_set_text (GTK_LABEL (applet->pw_wrong_label), "");
327 gtk_label_set_text (GTK_LABEL (ka_applet_get_pw_label(applet)), "");
329328 }
330329 g_free (prompt);
331330 }
339338 int num_prompts,
340339 krb5_prompt prompts[])
341340 {
342 Krb5AuthApplet* applet = (Krb5AuthApplet*)data;
341 KaApplet* applet = KA_APPLET(data);
343342 krb5_error_code errcode;
344343 int i;
345344
358357 errcode = KRB5_LIBOS_CANTREADPWD;
359358
360359 krb5_auth_dialog_setup (applet, (gchar *) prompts[i].prompt, prompts[i].hidden);
361 entry = glade_xml_get_widget (applet->pw_xml, "krb5_entry");
360 entry = glade_xml_get_widget (ka_applet_get_pwdialog_xml(applet), "krb5_entry");
362361 gtk_widget_grab_focus (entry);
363362
364363 source_id = g_timeout_add_seconds (5, (GSourceFunc)krb5_auth_dialog_do_updates, applet);
365 response = gtk_dialog_run (GTK_DIALOG (applet->pw_dialog));
364 response = ka_applet_run_pw_dialog (applet);
366365 switch (response)
367366 {
368367 case GTK_RESPONSE_OK:
393392 errcode = 0;
394393 }
395394 cleanup:
395 ka_applet_hide_pw_dialog (applet, TRUE);
396396 /* Reset this, so we know the next time we get a TRUE value, it is accurate. */
397 gtk_widget_hide (applet->pw_dialog);
398397 invalid_auth = FALSE;
399398
400399 return errcode;
430429 }
431430 #endif
432431
432 /* credentials expiring timer */
433433 static gboolean
434434 credentials_expiring (gpointer *data)
435435 {
436436 int retval;
437437 gboolean give_up;
438 Krb5AuthApplet* applet = (Krb5AuthApplet*) data;
439
440 KA_DEBUG("Checking expiry <%ds", applet->pw_prompt_secs);
438 KaApplet* applet = KA_APPLET(data);
439
440 KA_DEBUG("Checking expiry <%ds", ka_applet_get_pw_prompt_secs(applet));
441441 if (credentials_expiring_real (applet) && is_online) {
442442 KA_DEBUG("Expiry @ %ld", creds_expiry);
443443
447447 }
448448
449449 /* no popup when using a trayicon */
450 if (applet->show_trayicon)
450 if (ka_applet_get_show_trayicon(applet))
451451 goto out;
452452
453453 give_up = canceled && (creds_expiry == canceled_creds_expiry);
464464 }
465465 }
466466 out:
467 ka_update_status(applet, creds_expiry);
467 ka_applet_update_status(applet, creds_expiry);
468468 return TRUE;
469469 }
470470
471471
472472 static void
473 set_options_from_creds(const Krb5AuthApplet* applet,
473 set_options_from_creds(const KaApplet* applet,
474474 krb5_context context,
475475 krb5_creds *in,
476476 krb5_get_init_creds_opt *out)
495495 renew_lifetime);
496496 }
497497 if (in->times.endtime >
498 in->times.starttime + applet->pw_prompt_secs) {
498 in->times.starttime + ka_applet_get_pw_prompt_secs(applet)) {
499499 krb5_get_init_creds_opt_set_tkt_life(out,
500500 in->times.endtime -
501501 in->times.starttime);
506506
507507
508508 static krb5_error_code
509 ka_auth_pkinit(Krb5AuthApplet* applet, krb5_creds* creds)
509 ka_auth_pkinit(KaApplet* applet, krb5_creds* creds, const char* pk_userid)
510510 {
511511 #ifdef ENABLE_PKINIT
512512 krb5_get_init_creds_opt *opts = NULL;
513513 krb5_error_code retval;
514514
515 KA_DEBUG("pkinit with %s", applet->pk_userid);
516
517 if (!applet->pk_userid)
518 return 0;
515 KA_DEBUG("pkinit with '%s'", pk_userid);
519516
520517 retval = krb5_get_init_creds_opt_alloc (kcontext, &opts);
521518 if (retval)
524521
525522 retval = krb5_get_init_creds_opt_set_pkinit(kcontext, opts,
526523 kprincipal,
527 applet->pk_userid,
524 pk_userid,
528525 NULL, /* x509 anchors */
529526 NULL,
530527 NULL,
548545 }
549546
550547
548 krb5_error_code
549 ka_parse_name(KaApplet* applet, krb5_context kcontext, krb5_principal* kprinc)
550 {
551 krb5_error_code ret;
552 gchar *principal = NULL;
553
554 g_object_get(applet, "principal", &principal,
555 NULL);
556
557 ret = krb5_parse_name(kcontext, principal,
558 kprinc);
559
560 g_free(principal);
561 return ret;
562 }
563
564
551565 /* grab credentials interactively */
552566 static int
553 grab_credentials (Krb5AuthApplet* applet)
567 grab_credentials (KaApplet* applet)
554568 {
555569 krb5_error_code retval;
556570 krb5_creds my_creds;
557571 krb5_ccache ccache;
558572 krb5_get_init_creds_opt *opt = NULL;
573 gchar *pk_userid = NULL;
574
575 g_object_get(applet, "pk-userid", &pk_userid,
576 NULL);
559577
560578 memset(&my_creds, 0, sizeof(my_creds));
561579
562580 if (kprincipal == NULL) {
563 retval = krb5_parse_name(kcontext, applet->principal,
564 &kprincipal);
565 if (retval) {
566 return retval;
567 }
581 retval = ka_parse_name(applet, kcontext, &kprincipal);
582 if (retval)
583 goto out2;
568584 }
569585
570586 retval = krb5_cc_default (kcontext, &ccache);
571587 if (retval)
572 return retval;
588 goto out2;
573589
574590 #if ENABLE_PKINIT
575 if (applet->pk_userid) { /* try pkinit */
591 if (pk_userid && strlen(pk_userid)) { /* try pkinit */
576592 #else
577593 if (0) {
578594 #endif
579 retval = ka_auth_pkinit(applet, &my_creds);
595 retval = ka_auth_pkinit(applet, &my_creds, pk_userid);
580596 } else {
581597 retval = krb5_get_init_creds_opt_alloc (kcontext, &opt);
582598 if (retval)
619635 krb5_get_init_creds_opt_free(kcontext, opt);
620636 krb5_free_cred_contents (kcontext, &my_creds);
621637 krb5_cc_close (kcontext, ccache);
638 out2:
639 g_free(pk_userid);
622640
623641 return retval;
624642 }
625643
626644 /* try to renew the credentials noninteractively */
627645 static int
628 ka_renew_credentials (Krb5AuthApplet* applet)
646 ka_renew_credentials (KaApplet* applet)
629647 {
630648 krb5_error_code retval;
631649 krb5_creds my_creds;
633651 krb5_get_init_creds_opt opts;
634652
635653 if (kprincipal == NULL) {
636 retval = krb5_parse_name(kcontext, applet->principal,
637 &kprincipal);
654 retval = ka_parse_name(applet, kcontext, &kprincipal);
638655 if (retval)
639656 return retval;
640657 }
652669 krb5_get_init_creds_opt_init (&opts);
653670 set_options_from_creds (applet, kcontext, &my_creds, &opts);
654671
655 if (applet->renewable) {
672 if (ka_applet_get_tgt_renewable(applet)) {
656673 retval = get_renewed_creds (kcontext, &my_creds, kprincipal, ccache, NULL);
657674 if (retval)
658675 goto out;
740757 void
741758 ka_destroy_cache (GtkMenuItem *menuitem, gpointer data)
742759 {
743 Krb5AuthApplet* applet = (Krb5AuthApplet*) data;
760 KaApplet *applet = KA_APPLET(data);
744761 krb5_ccache ccache;
745762 const char* cache;
746763 krb5_error_code ret;
767784 }
768785
769786
770 /* this is done on leftclick, update the tooltip immediately */
771 void
772 ka_grab_credentials (Krb5AuthApplet* applet)
787 /*
788 * check if we have valid credentials for the requested principal - if not, grab them
789 * principal: requested principal - if empty use default
790 */
791 gboolean
792 ka_check_credentials (KaApplet *applet, const char* newprincipal)
793 {
794 gboolean renewable;
795 gboolean success = FALSE;
796 int retval;
797 char* principal;
798
799 g_object_get(applet, "principal", &principal,
800 NULL);
801
802 if (strlen(newprincipal)) {
803 krb5_principal knewprinc;
804
805 /* no ticket cache: is requested princ the one from our config? */
806 if (!kprincipal && g_strcmp0(principal, newprincipal)) {
807 KA_DEBUG("Requested principal %s not %s", principal, newprincipal);
808 goto out;
809 }
810
811 /* ticket cache: check if the requested principal is the one we have */
812 retval = krb5_parse_name(kcontext, newprincipal, &knewprinc);
813 if (retval) {
814 g_warning ("Cannot parse principal '%s'", newprincipal);
815 goto out;
816 }
817 if (kprincipal && !krb5_principal_compare (kcontext, kprincipal, knewprinc)) {
818 KA_DEBUG("Current Principal '%s' not '%s'", principal, newprincipal);
819 krb5_free_principal(kcontext, knewprinc);
820 goto out;
821 }
822 krb5_free_principal(kcontext, knewprinc);
823 }
824
825 if (credentials_expiring_real (applet)) {
826 if (!is_online)
827 success = FALSE;
828 else
829 success = ka_grab_credentials (applet);
830 } else
831 success = TRUE;
832 out:
833 g_free (principal);
834 return success;
835 }
836
837
838 /* initiate grabbing of credentials (e.g. on leftclick of tray icon) */
839 gboolean
840 ka_grab_credentials (KaApplet* applet)
773841 {
774842 int retval;
775843 gboolean retry;
776
777 applet->pw_dialog_persist = TRUE;
844 int success = FALSE;
845
846 ka_applet_set_pw_dialog_persist(applet, TRUE);
778847 do {
779848 retry = TRUE;
780849 retval = grab_credentials (applet);
782851 continue;
783852 switch (retval) {
784853 case 0: /* success */
854 success = TRUE;
785855 case KRB5_LIBOS_PWDINTR: /* canceled (heimdal) */
786856 case KRB5_LIBOS_CANTREADPWD: /* canceled (mit) */
787857 retry = FALSE;
794864 }
795865 } while(retry);
796866
797 applet->pw_dialog_persist = FALSE;
867 ka_applet_set_pw_dialog_persist(applet, FALSE);
798868 credentials_expiring_real(applet);
869
870 return success;
799871 }
800872
801873
834906 int
835907 main (int argc, char *argv[])
836908 {
837 Krb5AuthApplet *applet;
909 KaApplet *applet;
838910 GOptionContext *context;
839911 GError *error = NULL;
840912
877949 always_run = TRUE;
878950 }
879951 if (using_krb5 () || always_run) {
880 applet = ka_create_applet ();
952 g_set_application_name (_("Network Authentication"));
953 glade_set_custom_handler (&ka_create_gtk_secure_entry, NULL);
954
955 applet = ka_applet_create ();
881956 if (!applet)
882957 return 1;
883958 if (!ka_gconf_init (applet, argc, argv))
884959 return 1;
885
886 /* setup the pw dialog */
887 glade_set_custom_handler (&ka_create_gtk_secure_entry, NULL);
888 applet->pw_xml = glade_xml_new (GLADEDIR "krb5-auth-dialog.glade", NULL, NULL);
889 applet->pw_wrong_label = glade_xml_get_widget (applet->pw_xml, "krb5_wrong_label");
890 applet->pw_dialog = glade_xml_get_widget (applet->pw_xml, "krb5_dialog");
891
892 g_set_application_name (_("Network Authentication"));
893960
894961 #ifdef ENABLE_NETWORK_MANAGER
895962 nm_context = libnm_glib_init ();
909976 if (credentials_expiring ((gpointer)applet)) {
910977 g_timeout_add_seconds (CREDENTIAL_CHECK_INTERVAL, (GSourceFunc)credentials_expiring, applet);
911978 }
979 ka_dbus_service(applet);
912980 gtk_main ();
913981 }
914982
2323 #include "krb5-auth-applet.h"
2424
2525 void ka_destroy_cache (GtkMenuItem *menuitem, gpointer user_data);
26 void ka_grab_credentials(Krb5AuthApplet* applet);
27
26 gboolean ka_grab_credentials(KaApplet* applet);
27 gboolean ka_check_credentials (KaApplet *applet, const char* principal);
2828 #endif
2929
00 /* Krb5 Auth Applet -- Acquire and release kerberos tickets
11 *
2 * (C) 2008 Guido Guenther <agx@sigxcpu.org>
2 * (C) 2008,2009 Guido Guenther <agx@sigxcpu.org>
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
110110
111111
112112 static gboolean
113 ka_gconf_set_principal (GConfClient* client, Krb5AuthApplet* applet)
114 {
115 g_free (applet->principal);
116 applet->principal = NULL;
117 if(!ka_gconf_get_string (client, KA_GCONF_KEY_PRINCIPAL, &applet->principal)) {
118 applet->principal = g_strdup (g_get_user_name());
119 }
120 KA_DEBUG("Setting principal to %s", applet->principal);
121 // FIXME: need to send set-principal signal
122 return TRUE;
123 }
124
125
126 static gboolean
127 ka_gconf_set_pk_userid (GConfClient* client, Krb5AuthApplet* applet)
128 {
129 g_free (applet->pk_userid);
130 if(!ka_gconf_get_string (client, KA_GCONF_KEY_PK_USERID, &applet->pk_userid)) {
131 applet->pk_userid = NULL;
132 }
133 KA_DEBUG("Setting pk_userid to %s", applet->pk_userid ? applet->pk_userid : "<disabled>");
134 return TRUE;
135 }
136
137
138 static gboolean
139 ka_gconf_set_prompt_mins (GConfClient* client, Krb5AuthApplet* applet)
140 {
141 if(!ka_gconf_get_int (client, KA_GCONF_KEY_PROMPT_MINS, &applet->pw_prompt_secs)) {
142 applet->pw_prompt_secs = MINUTES_BEFORE_PROMPTING;
143 }
144 applet->pw_prompt_secs *= 60;
145 KA_DEBUG("Setting prompting timer to %d seconds", applet->pw_prompt_secs);
146 return TRUE;
147 }
148
149
150 static gboolean
151 ka_gconf_set_show_trayicon (GConfClient* client, Krb5AuthApplet* applet)
152 {
153 if(!ka_gconf_get_bool(client, KA_GCONF_KEY_SHOW_TRAYICON, &applet->show_trayicon)) {
154 applet->show_trayicon = TRUE;
155 }
156 KA_DEBUG("Show trayicon: %s", (applet->show_trayicon ? "yes" : "no" ));
157 // FIXME: send show trayicon signal
158 ka_show_tray_icon(applet);
113 ka_gconf_set_principal (GConfClient* client, KaApplet* applet)
114 {
115 gchar* principal = NULL;
116
117 if(!ka_gconf_get_string (client, KA_GCONF_KEY_PRINCIPAL, &principal)) {
118 principal = g_strdup (g_get_user_name());
119 }
120 g_object_set(applet, "principal", principal, NULL);
121 g_free (principal);
122 return TRUE;
123 }
124
125
126 static gboolean
127 ka_gconf_set_pk_userid (GConfClient* client, KaApplet* applet)
128 {
129 gchar* pk_userid = NULL;
130
131 if(!ka_gconf_get_string (client, KA_GCONF_KEY_PK_USERID, &pk_userid)) {
132 pk_userid = g_strdup ("");
133 }
134 g_object_set(applet, "pk_userid", pk_userid, NULL);
135 g_free (pk_userid);
136 return TRUE;
137 }
138
139
140 static gboolean
141 ka_gconf_set_prompt_mins (GConfClient* client, KaApplet* applet)
142 {
143 gint prompt_mins = 0;
144
145 if(!ka_gconf_get_int (client, KA_GCONF_KEY_PROMPT_MINS, &prompt_mins)) {
146 prompt_mins = MINUTES_BEFORE_PROMPTING;
147 }
148 g_object_set(applet, "pw-prompt-mins", prompt_mins, NULL);
149 return TRUE;
150 }
151
152
153 static gboolean
154 ka_gconf_set_show_trayicon (GConfClient* client, KaApplet* applet)
155 {
156 gboolean show_trayicon = FALSE;
157
158 if(!ka_gconf_get_bool(client, KA_GCONF_KEY_SHOW_TRAYICON, &show_trayicon)) {
159 show_trayicon = TRUE;
160 }
161 g_object_set(applet, "show-trayicon", show_trayicon, NULL);
159162 return TRUE;
160163 }
161164
168171 {
169172 const char* key;
170173
171 Krb5AuthApplet* applet = (Krb5AuthApplet*)user_data;
174 KaApplet* applet = KA_APPLET(user_data);
172175 key = gconf_entry_get_key (entry);
173176 if (!key)
174177 return;
189192
190193
191194 gboolean
192 ka_gconf_init (Krb5AuthApplet* applet, int argc, char* argv[])
195 ka_gconf_init (KaApplet* applet, int argc, char* argv[])
193196 {
194197 GError *error = NULL;
195198 GConfClient* client;
2222
2323 #include "krb5-auth-applet.h"
2424
25 gboolean ka_gconf_init (Krb5AuthApplet* applet, int argc, char* argv[]);
25 gboolean ka_gconf_init (KaApplet* applet, int argc, char* argv[]);
2626
2727 #endif
+0
-66
src/krb5-auth-notify.c less more
0 /* Krb5 Auth Applet -- Acquire and release kerberos tickets
1 *
2 * (C) 2008 Guido Guenther <agx@sigxcpu.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
19 #include "config.h"
20 #include "krb5-auth-applet.h"
21 #include "krb5-auth-notify.h"
22
23 #ifdef HAVE_LIBNOTIFY
24 #include <libnotify/notify.h>
25
26 void
27 ka_send_event_notification (Krb5AuthApplet *applet,
28 const char *summary,
29 const char *message,
30 const char *icon)
31 {
32 const char *notify_icon;
33
34 g_return_if_fail (applet != NULL);
35 g_return_if_fail (summary != NULL);
36 g_return_if_fail (message != NULL);
37
38 if (!notify_is_initted ())
39 notify_init (PACKAGE);
40
41 if (applet->notification != NULL) {
42 notify_notification_close (applet->notification, NULL);
43 g_object_unref (applet->notification);
44 }
45
46 notify_icon = icon ? icon : "gtk-dialog-authentication";
47
48 applet->notification = \
49 notify_notification_new_with_status_icon(summary, message, notify_icon, applet->tray_icon);
50
51 notify_notification_set_urgency (applet->notification, NOTIFY_URGENCY_NORMAL);
52 notify_notification_show (applet->notification, NULL);
53 }
54
55 #else /* HAVE_LIBNOTIFY */
56
57 void
58 ka_send_event_notification (Krb5AuthApplet *applet __attribute__((__unused__)),
59 const char *summary __attribute__((__unused__)),
60 const char *message __attribute__((__unused__)),
61 const char *icon __attribute__((__unused__)))
62 {
63 }
64
65 #endif /* HAVE_LIBNOTIFY */
+0
-28
src/krb5-auth-notify.h less more
0 /* Krb5 Auth Applet -- Acquire and release kerberos tickets
1 *
2 * (C) 2008 Guido Guenther <agx@sigxcpu.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 *
18 */
19
20 #ifndef KRB5_AUTH_NOTIFY_H
21 #define KRB5_AUTH_NOTIFY_H
22
23 void ka_send_event_notification (Krb5AuthApplet *applet,
24 const char *summary,
25 const char *message,
26 const char *icon);
27 #endif
+0
-223
ylwrap less more
0 #! /bin/sh
1 # ylwrap - wrapper for lex/yacc invocations.
2
3 scriptversion=2007-11-22.22
4
5 # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
6 # 2007 Free Software Foundation, Inc.
7 #
8 # Written by Tom Tromey <tromey@cygnus.com>.
9 #
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 2, or (at your option)
13 # any later version.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 # 02110-1301, USA.
24
25 # As a special exception to the GNU General Public License, if you
26 # distribute this file as part of a program that contains a
27 # configuration script generated by Autoconf, you may include it under
28 # the same distribution terms that you use for the rest of that program.
29
30 # This file is maintained in Automake, please report
31 # bugs to <bug-automake@gnu.org> or send patches to
32 # <automake-patches@gnu.org>.
33
34 case "$1" in
35 '')
36 echo "$0: No files given. Try \`$0 --help' for more information." 1>&2
37 exit 1
38 ;;
39 --basedir)
40 basedir=$2
41 shift 2
42 ;;
43 -h|--h*)
44 cat <<\EOF
45 Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
46
47 Wrapper for lex/yacc invocations, renaming files as desired.
48
49 INPUT is the input file
50 OUTPUT is one file PROG generates
51 DESIRED is the file we actually want instead of OUTPUT
52 PROGRAM is program to run
53 ARGS are passed to PROG
54
55 Any number of OUTPUT,DESIRED pairs may be used.
56
57 Report bugs to <bug-automake@gnu.org>.
58 EOF
59 exit $?
60 ;;
61 -v|--v*)
62 echo "ylwrap $scriptversion"
63 exit $?
64 ;;
65 esac
66
67
68 # The input.
69 input="$1"
70 shift
71 case "$input" in
72 [\\/]* | ?:[\\/]*)
73 # Absolute path; do nothing.
74 ;;
75 *)
76 # Relative path. Make it absolute.
77 input="`pwd`/$input"
78 ;;
79 esac
80
81 pairlist=
82 while test "$#" -ne 0; do
83 if test "$1" = "--"; then
84 shift
85 break
86 fi
87 pairlist="$pairlist $1"
88 shift
89 done
90
91 # The program to run.
92 prog="$1"
93 shift
94 # Make any relative path in $prog absolute.
95 case "$prog" in
96 [\\/]* | ?:[\\/]*) ;;
97 *[\\/]*) prog="`pwd`/$prog" ;;
98 esac
99
100 # FIXME: add hostname here for parallel makes that run commands on
101 # other machines. But that might take us over the 14-char limit.
102 dirname=ylwrap$$
103 trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15
104 mkdir $dirname || exit 1
105
106 cd $dirname
107
108 case $# in
109 0) "$prog" "$input" ;;
110 *) "$prog" "$@" "$input" ;;
111 esac
112 ret=$?
113
114 if test $ret -eq 0; then
115 set X $pairlist
116 shift
117 first=yes
118 # Since DOS filename conventions don't allow two dots,
119 # the DOS version of Bison writes out y_tab.c instead of y.tab.c
120 # and y_tab.h instead of y.tab.h. Test to see if this is the case.
121 y_tab_nodot="no"
122 if test -f y_tab.c || test -f y_tab.h; then
123 y_tab_nodot="yes"
124 fi
125
126 # The directory holding the input.
127 input_dir=`echo "$input" | sed -e 's,\([\\/]\)[^\\/]*$,\1,'`
128 # Quote $INPUT_DIR so we can use it in a regexp.
129 # FIXME: really we should care about more than `.' and `\'.
130 input_rx=`echo "$input_dir" | sed 's,\\\\,\\\\\\\\,g;s,\\.,\\\\.,g'`
131
132 while test "$#" -ne 0; do
133 from="$1"
134 # Handle y_tab.c and y_tab.h output by DOS
135 if test $y_tab_nodot = "yes"; then
136 if test $from = "y.tab.c"; then
137 from="y_tab.c"
138 else
139 if test $from = "y.tab.h"; then
140 from="y_tab.h"
141 fi
142 fi
143 fi
144 if test -f "$from"; then
145 # If $2 is an absolute path name, then just use that,
146 # otherwise prepend `../'.
147 case "$2" in
148 [\\/]* | ?:[\\/]*) target="$2";;
149 *) target="../$2";;
150 esac
151
152 # We do not want to overwrite a header file if it hasn't
153 # changed. This avoid useless recompilations. However the
154 # parser itself (the first file) should always be updated,
155 # because it is the destination of the .y.c rule in the
156 # Makefile. Divert the output of all other files to a temporary
157 # file so we can compare them to existing versions.
158 if test $first = no; then
159 realtarget="$target"
160 target="tmp-`echo $target | sed s/.*[\\/]//g`"
161 fi
162 # Edit out `#line' or `#' directives.
163 #
164 # We don't want the resulting debug information to point at
165 # an absolute srcdir; it is better for it to just mention the
166 # .y file with no path.
167 #
168 # We want to use the real output file name, not yy.lex.c for
169 # instance.
170 #
171 # We want the include guards to be adjusted too.
172 FROM=`echo "$from" | sed \
173 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
174 -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
175 TARGET=`echo "$2" | sed \
176 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
177 -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`
178
179 sed -e "/^#/!b" -e "s,$input_rx,," -e "s,$from,$2," \
180 -e "s,$FROM,$TARGET," "$from" >"$target" || ret=$?
181
182 # Check whether header files must be updated.
183 if test $first = no; then
184 if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
185 echo "$2" is unchanged
186 rm -f "$target"
187 else
188 echo updating "$2"
189 mv -f "$target" "$realtarget"
190 fi
191 fi
192 else
193 # A missing file is only an error for the first file. This
194 # is a blatant hack to let us support using "yacc -d". If -d
195 # is not specified, we don't want an error when the header
196 # file is "missing".
197 if test $first = yes; then
198 ret=1
199 fi
200 fi
201 shift
202 shift
203 first=no
204 done
205 else
206 ret=$?
207 fi
208
209 # Remove the directory.
210 cd ..
211 rm -rf $dirname
212
213 exit $ret
214
215 # Local Variables:
216 # mode: shell-script
217 # sh-indentation: 2
218 # eval: (add-hook 'write-file-hooks 'time-stamp)
219 # time-stamp-start: "scriptversion="
220 # time-stamp-format: "%:y-%02m-%02d.%02H"
221 # time-stamp-end: "$"
222 # End: