Codebase list libhdate / bcfa2a5
[svn-upgrade] Tagging new upstream version, libhdate (1.4.10) Baruch Even 16 years ago
106 changed file(s) with 67407 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 1 Notes on the Free Translation Project
1 ***************************************
2
3 Free software is going international! The Free Translation Project is
4 a way to get maintainers of free software, translators, and users all
5 together, so that free software will gradually become able to speak many
6 languages. A few packages already provide translations for their
7 messages.
8
9 If you found this `ABOUT-NLS' file inside a distribution, you may
10 assume that the distributed package does use GNU `gettext' internally,
11 itself available at your nearest GNU archive site. But you do _not_
12 need to install GNU `gettext' prior to configuring, installing or using
13 this package with messages translated.
14
15 Installers will find here some useful hints. These notes also
16 explain how users should proceed for getting the programs to use the
17 available translations. They tell how people wanting to contribute and
18 work on translations can contact the appropriate team.
19
20 When reporting bugs in the `intl/' directory or bugs which may be
21 related to internationalization, you should tell about the version of
22 `gettext' which is used. The information can be found in the
23 `intl/VERSION' file, in internationalized packages.
24
25 1.1 Quick configuration advice
26 ==============================
27
28 If you want to exploit the full power of internationalization, you
29 should configure it using
30
31 ./configure --with-included-gettext
32
33 to force usage of internationalizing routines provided within this
34 package, despite the existence of internationalizing capabilities in the
35 operating system where this package is being installed. So far, only
36 the `gettext' implementation in the GNU C library version 2 provides as
37 many features (such as locale alias, message inheritance, automatic
38 charset conversion or plural form handling) as the implementation here.
39 It is also not possible to offer this additional functionality on top
40 of a `catgets' implementation. Future versions of GNU `gettext' will
41 very likely convey even more functionality. So it might be a good idea
42 to change to GNU `gettext' as soon as possible.
43
44 So you need _not_ provide this option if you are using GNU libc 2 or
45 you have installed a recent copy of the GNU gettext package with the
46 included `libintl'.
47
48 1.2 INSTALL Matters
49 ===================
50
51 Some packages are "localizable" when properly installed; the programs
52 they contain can be made to speak your own native language. Most such
53 packages use GNU `gettext'. Other packages have their own ways to
54 internationalization, predating GNU `gettext'.
55
56 By default, this package will be installed to allow translation of
57 messages. It will automatically detect whether the system already
58 provides the GNU `gettext' functions. If not, the included GNU
59 `gettext' library will be used. This library is wholly contained
60 within this package, usually in the `intl/' subdirectory, so prior
61 installation of the GNU `gettext' package is _not_ required.
62 Installers may use special options at configuration time for changing
63 the default behaviour. The commands:
64
65 ./configure --with-included-gettext
66 ./configure --disable-nls
67
68 will, respectively, bypass any pre-existing `gettext' to use the
69 internationalizing routines provided within this package, or else,
70 _totally_ disable translation of messages.
71
72 When you already have GNU `gettext' installed on your system and run
73 configure without an option for your new package, `configure' will
74 probably detect the previously built and installed `libintl.a' file and
75 will decide to use this. This might not be desirable. You should use
76 the more recent version of the GNU `gettext' library. I.e. if the file
77 `intl/VERSION' shows that the library which comes with this package is
78 more recent, you should use
79
80 ./configure --with-included-gettext
81
82 to prevent auto-detection.
83
84 The configuration process will not test for the `catgets' function
85 and therefore it will not be used. The reason is that even an
86 emulation of `gettext' on top of `catgets' could not provide all the
87 extensions of the GNU `gettext' library.
88
89 Internationalized packages usually have many `po/LL.po' files, where
90 LL gives an ISO 639 two-letter code identifying the language. Unless
91 translations have been forbidden at `configure' time by using the
92 `--disable-nls' switch, all available translations are installed
93 together with the package. However, the environment variable `LINGUAS'
94 may be set, prior to configuration, to limit the installed set.
95 `LINGUAS' should then contain a space separated list of two-letter
96 codes, stating which languages are allowed.
97
98 1.3 Using This Package
99 ======================
100
101 As a user, if your language has been installed for this package, you
102 only have to set the `LANG' environment variable to the appropriate
103 `LL_CC' combination. If you happen to have the `LC_ALL' or some other
104 `LC_xxx' environment variables set, you should unset them before
105 setting `LANG', otherwise the setting of `LANG' will not have the
106 desired effect. Here `LL' is an ISO 639 two-letter language code, and
107 `CC' is an ISO 3166 two-letter country code. For example, let's
108 suppose that you speak German and live in Germany. At the shell
109 prompt, merely execute `setenv LANG de_DE' (in `csh'),
110 `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash').
111 This can be done from your `.login' or `.profile' file, once and for
112 all.
113
114 You might think that the country code specification is redundant.
115 But in fact, some languages have dialects in different countries. For
116 example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The
117 country code serves to distinguish the dialects.
118
119 The locale naming convention of `LL_CC', with `LL' denoting the
120 language and `CC' denoting the country, is the one use on systems based
121 on GNU libc. On other systems, some variations of this scheme are
122 used, such as `LL' or `LL_CC.ENCODING'. You can get the list of
123 locales supported by your system for your language by running the
124 command `locale -a | grep '^LL''.
125
126 Not all programs have translations for all languages. By default, an
127 English message is shown in place of a nonexistent translation. If you
128 understand other languages, you can set up a priority list of languages.
129 This is done through a different environment variable, called
130 `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG'
131 for the purpose of message handling, but you still need to have `LANG'
132 set to the primary language; this is required by other parts of the
133 system libraries. For example, some Swedish users who would rather
134 read translations in German than English for when Swedish is not
135 available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.
136
137 Special advice for Norwegian users: The language code for Norwegian
138 bokma*l changed from `no' to `nb' recently (in 2003). During the
139 transition period, while some message catalogs for this language are
140 installed under `nb' and some older ones under `no', it's recommended
141 for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and
142 older translations are used.
143
144 In the `LANGUAGE' environment variable, but not in the `LANG'
145 environment variable, `LL_CC' combinations can be abbreviated as `LL'
146 to denote the language's main dialect. For example, `de' is equivalent
147 to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
148 (Portuguese as spoken in Portugal) in this context.
149
150 1.4 Translating Teams
151 =====================
152
153 For the Free Translation Project to be a success, we need interested
154 people who like their own language and write it well, and who are also
155 able to synergize with other translators speaking the same language.
156 Each translation team has its own mailing list. The up-to-date list of
157 teams can be found at the Free Translation Project's homepage,
158 `http://translationproject.org/', in the "Teams" area.
159
160 If you'd like to volunteer to _work_ at translating messages, you
161 should become a member of the translating team for your own language.
162 The subscribing address is _not_ the same as the list itself, it has
163 `-request' appended. For example, speakers of Swedish can send a
164 message to `sv-request@li.org', having this message body:
165
166 subscribe
167
168 Keep in mind that team members are expected to participate
169 _actively_ in translations, or at solving translational difficulties,
170 rather than merely lurking around. If your team does not exist yet and
171 you want to start one, or if you are unsure about what to do or how to
172 get started, please write to `coordinator@translationproject.org' to
173 reach the coordinator for all translator teams.
174
175 The English team is special. It works at improving and uniformizing
176 the terminology in use. Proven linguistic skills are praised more than
177 programming skills, here.
178
179 1.5 Available Packages
180 ======================
181
182 Languages are not equally supported in all packages. The following
183 matrix shows the current state of internationalization, as of November
184 2007. The matrix shows, in regard of each package, for which languages
185 PO files have been submitted to translation coordination, with a
186 translation percentage of at least 50%.
187
188 Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB eo
189 +----------------------------------------------------+
190 Compendium | [] [] [] [] |
191 a2ps | [] [] [] [] [] |
192 aegis | () |
193 ant-phone | () |
194 anubis | [] |
195 ap-utils | |
196 aspell | [] [] [] [] [] |
197 bash | [] |
198 bfd | |
199 bibshelf | [] |
200 binutils | |
201 bison | [] [] |
202 bison-runtime | [] |
203 bluez-pin | [] [] [] [] [] |
204 cflow | [] |
205 clisp | [] [] [] |
206 console-tools | [] [] |
207 coreutils | [] [] [] [] |
208 cpio | |
209 cpplib | [] [] [] |
210 cryptonit | [] |
211 dialog | |
212 diffutils | [] [] [] [] [] [] |
213 doodle | [] |
214 e2fsprogs | [] [] |
215 enscript | [] [] [] [] |
216 fetchmail | [] [] () [] [] |
217 findutils | [] |
218 findutils_stable | [] [] [] |
219 flex | [] [] [] |
220 fslint | |
221 gas | |
222 gawk | [] [] [] |
223 gcal | [] |
224 gcc | [] |
225 gettext-examples | [] [] [] [] [] |
226 gettext-runtime | [] [] [] [] [] |
227 gettext-tools | [] [] |
228 gip | [] |
229 gliv | [] [] |
230 glunarclock | [] |
231 gmult | [] [] |
232 gnubiff | () |
233 gnucash | [] [] () () [] |
234 gnuedu | |
235 gnulib | [] |
236 gnunet | |
237 gnunet-gtk | |
238 gnutls | [] |
239 gpe-aerial | [] [] |
240 gpe-beam | [] [] |
241 gpe-calendar | |
242 gpe-clock | [] [] |
243 gpe-conf | [] [] |
244 gpe-contacts | |
245 gpe-edit | [] |
246 gpe-filemanager | |
247 gpe-go | [] |
248 gpe-login | [] [] |
249 gpe-ownerinfo | [] [] |
250 gpe-package | |
251 gpe-sketchbook | [] [] |
252 gpe-su | [] [] |
253 gpe-taskmanager | [] [] |
254 gpe-timesheet | [] |
255 gpe-today | [] [] |
256 gpe-todo | |
257 gphoto2 | [] [] [] [] |
258 gprof | [] [] |
259 gpsdrive | |
260 gramadoir | [] [] |
261 grep | [] [] |
262 gretl | () |
263 gsasl | |
264 gss | |
265 gst-plugins-bad | [] [] |
266 gst-plugins-base | [] [] |
267 gst-plugins-good | [] [] [] |
268 gst-plugins-ugly | [] [] |
269 gstreamer | [] [] [] [] [] [] [] |
270 gtick | () |
271 gtkam | [] [] [] [] |
272 gtkorphan | [] [] |
273 gtkspell | [] [] [] [] |
274 gutenprint | [] |
275 hello | [] [] [] [] [] |
276 herrie | [] |
277 hylafax | |
278 idutils | [] [] |
279 indent | [] [] [] [] |
280 iso_15924 | |
281 iso_3166 | [] [] [] [] [] [] [] [] [] [] [] |
282 iso_3166_2 | |
283 iso_4217 | [] [] [] |
284 iso_639 | [] [] [] [] |
285 jpilot | [] |
286 jtag | |
287 jwhois | |
288 kbd | [] [] [] [] |
289 keytouch | [] [] |
290 keytouch-editor | [] |
291 keytouch-keyboa... | [] |
292 latrine | () |
293 ld | [] |
294 leafpad | [] [] [] [] [] |
295 libc | [] [] [] [] |
296 libexif | [] |
297 libextractor | [] |
298 libgpewidget | [] [] [] |
299 libgpg-error | [] |
300 libgphoto2 | [] [] |
301 libgphoto2_port | [] [] |
302 libgsasl | |
303 libiconv | [] [] |
304 libidn | [] [] [] |
305 lifelines | [] () |
306 lilypond | [] |
307 lingoteach | |
308 lprng | |
309 lynx | [] [] [] [] |
310 m4 | [] [] [] [] |
311 mailfromd | |
312 mailutils | [] |
313 make | [] [] |
314 man-db | [] [] [] |
315 minicom | [] [] [] |
316 nano | [] [] [] |
317 opcodes | [] |
318 parted | [] [] |
319 pilot-qof | |
320 popt | [] [] [] |
321 psmisc | [] |
322 pwdutils | |
323 qof | |
324 radius | [] |
325 recode | [] [] [] [] [] [] |
326 rpm | [] |
327 screem | |
328 scrollkeeper | [] [] [] [] [] [] [] [] |
329 sed | [] [] [] |
330 shared-mime-info | [] [] [] [] () [] [] [] |
331 sharutils | [] [] [] [] [] [] |
332 shishi | |
333 skencil | [] () |
334 solfege | |
335 soundtracker | [] [] |
336 sp | [] |
337 system-tools-ba... | [] [] [] [] [] [] [] [] [] |
338 tar | [] [] |
339 texinfo | [] [] [] |
340 tin | () () |
341 tuxpaint | [] [] [] [] [] [] |
342 unicode-han-tra... | |
343 unicode-transla... | |
344 util-linux | [] [] [] [] |
345 util-linux-ng | [] [] [] [] |
346 vorbis-tools | [] |
347 wastesedge | () |
348 wdiff | [] [] [] [] |
349 wget | [] [] [] |
350 xchat | [] [] [] [] [] [] [] |
351 xkeyboard-config | [] |
352 xpad | [] [] [] |
353 +----------------------------------------------------+
354 af am ar az be bg bs ca cs cy da de el en en_GB eo
355 6 0 2 1 8 26 2 40 48 2 56 88 15 1 15 18
356
357 es et eu fa fi fr ga gl gu he hi hr hu id is it
358 +--------------------------------------------------+
359 Compendium | [] [] [] [] [] |
360 a2ps | [] [] [] () |
361 aegis | |
362 ant-phone | [] |
363 anubis | [] |
364 ap-utils | [] [] |
365 aspell | [] [] [] |
366 bash | [] |
367 bfd | [] [] |
368 bibshelf | [] [] [] |
369 binutils | [] [] [] |
370 bison | [] [] [] [] [] [] |
371 bison-runtime | [] [] [] [] [] |
372 bluez-pin | [] [] [] [] [] |
373 cflow | [] |
374 clisp | [] [] |
375 console-tools | |
376 coreutils | [] [] [] [] [] [] |
377 cpio | [] [] [] |
378 cpplib | [] [] |
379 cryptonit | [] |
380 dialog | [] [] [] |
381 diffutils | [] [] [] [] [] [] [] [] [] |
382 doodle | [] [] |
383 e2fsprogs | [] [] [] |
384 enscript | [] [] [] |
385 fetchmail | [] |
386 findutils | [] [] [] |
387 findutils_stable | [] [] [] [] |
388 flex | [] [] [] |
389 fslint | |
390 gas | [] [] |
391 gawk | [] [] [] [] () |
392 gcal | [] [] |
393 gcc | [] |
394 gettext-examples | [] [] [] [] [] [] [] |
395 gettext-runtime | [] [] [] [] [] [] |
396 gettext-tools | [] [] [] [] |
397 gip | [] [] [] [] |
398 gliv | () |
399 glunarclock | [] [] [] |
400 gmult | [] [] [] |
401 gnubiff | () () |
402 gnucash | () () () |
403 gnuedu | [] |
404 gnulib | [] [] [] |
405 gnunet | |
406 gnunet-gtk | |
407 gnutls | |
408 gpe-aerial | [] [] |
409 gpe-beam | [] [] |
410 gpe-calendar | |
411 gpe-clock | [] [] [] [] |
412 gpe-conf | [] |
413 gpe-contacts | [] [] |
414 gpe-edit | [] [] [] [] |
415 gpe-filemanager | [] |
416 gpe-go | [] [] [] |
417 gpe-login | [] [] [] |
418 gpe-ownerinfo | [] [] [] [] [] |
419 gpe-package | [] |
420 gpe-sketchbook | [] [] |
421 gpe-su | [] [] [] [] |
422 gpe-taskmanager | [] [] [] |
423 gpe-timesheet | [] [] [] [] |
424 gpe-today | [] [] [] [] |
425 gpe-todo | [] |
426 gphoto2 | [] [] [] [] [] |
427 gprof | [] [] [] [] [] |
428 gpsdrive | [] |
429 gramadoir | [] [] |
430 grep | [] [] [] |
431 gretl | [] [] [] () |
432 gsasl | [] [] |
433 gss | [] [] |
434 gst-plugins-bad | [] [] [] [] |
435 gst-plugins-base | [] [] [] [] |
436 gst-plugins-good | [] [] [] [] [] |
437 gst-plugins-ugly | [] [] [] [] |
438 gstreamer | [] [] [] |
439 gtick | [] [] [] |
440 gtkam | [] [] [] [] |
441 gtkorphan | [] [] |
442 gtkspell | [] [] [] [] [] [] [] |
443 gutenprint | [] |
444 hello | [] [] [] [] [] [] [] [] [] [] [] [] [] |
445 herrie | [] |
446 hylafax | |
447 idutils | [] [] [] [] [] |
448 indent | [] [] [] [] [] [] [] [] [] [] |
449 iso_15924 | [] |
450 iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] |
451 iso_3166_2 | [] |
452 iso_4217 | [] [] [] [] [] [] |
453 iso_639 | [] [] [] [] [] [] |
454 jpilot | [] [] |
455 jtag | [] |
456 jwhois | [] [] [] [] [] |
457 kbd | [] [] |
458 keytouch | [] [] [] |
459 keytouch-editor | [] |
460 keytouch-keyboa... | [] [] |
461 latrine | [] [] |
462 ld | [] [] [] [] |
463 leafpad | [] [] [] [] [] [] |
464 libc | [] [] [] [] [] |
465 libexif | [] |
466 libextractor | [] |
467 libgpewidget | [] [] [] [] [] |
468 libgpg-error | [] |
469 libgphoto2 | [] [] [] |
470 libgphoto2_port | [] [] |
471 libgsasl | [] [] |
472 libiconv | [] [] [] |
473 libidn | [] [] |
474 lifelines | () |
475 lilypond | [] [] [] |
476 lingoteach | [] [] [] |
477 lprng | |
478 lynx | [] [] [] |
479 m4 | [] [] [] [] |
480 mailfromd | |
481 mailutils | [] [] |
482 make | [] [] [] [] [] [] [] [] |
483 man-db | [] |
484 minicom | [] [] [] [] |
485 nano | [] [] [] [] [] [] [] |
486 opcodes | [] [] [] [] |
487 parted | [] [] [] |
488 pilot-qof | |
489 popt | [] [] [] [] |
490 psmisc | [] [] |
491 pwdutils | |
492 qof | [] |
493 radius | [] [] |
494 recode | [] [] [] [] [] [] [] [] |
495 rpm | [] [] |
496 screem | |
497 scrollkeeper | [] [] [] |
498 sed | [] [] [] [] [] |
499 shared-mime-info | [] [] [] [] [] [] |
500 sharutils | [] [] [] [] [] [] [] [] |
501 shishi | [] |
502 skencil | [] [] |
503 solfege | [] |
504 soundtracker | [] [] [] |
505 sp | [] |
506 system-tools-ba... | [] [] [] [] [] [] [] [] [] |
507 tar | [] [] [] [] [] |
508 texinfo | [] [] [] |
509 tin | [] () |
510 tuxpaint | [] [] |
511 unicode-han-tra... | |
512 unicode-transla... | [] [] |
513 util-linux | [] [] [] [] [] [] [] |
514 util-linux-ng | [] [] [] [] [] [] [] |
515 vorbis-tools | |
516 wastesedge | () |
517 wdiff | [] [] [] [] [] [] [] [] |
518 wget | [] [] [] [] [] [] [] [] |
519 xchat | [] [] [] [] [] [] [] |
520 xkeyboard-config | [] [] [] [] |
521 xpad | [] [] [] |
522 +--------------------------------------------------+
523 es et eu fa fi fr ga gl gu he hi hr hu id is it
524 85 22 14 2 48 101 61 12 2 8 2 6 53 29 1 52
525
526 ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn
527 +--------------------------------------------------+
528 Compendium | [] |
529 a2ps | () [] [] |
530 aegis | () |
531 ant-phone | [] |
532 anubis | [] [] [] |
533 ap-utils | [] |
534 aspell | [] [] |
535 bash | [] |
536 bfd | |
537 bibshelf | [] |
538 binutils | |
539 bison | [] [] [] |
540 bison-runtime | [] [] [] |
541 bluez-pin | [] [] [] |
542 cflow | |
543 clisp | [] |
544 console-tools | |
545 coreutils | [] |
546 cpio | [] |
547 cpplib | [] |
548 cryptonit | [] |
549 dialog | [] [] |
550 diffutils | [] [] [] |
551 doodle | |
552 e2fsprogs | [] |
553 enscript | [] |
554 fetchmail | [] [] |
555 findutils | [] |
556 findutils_stable | [] |
557 flex | [] [] |
558 fslint | |
559 gas | |
560 gawk | [] [] |
561 gcal | |
562 gcc | |
563 gettext-examples | [] [] [] |
564 gettext-runtime | [] [] [] |
565 gettext-tools | [] [] |
566 gip | [] [] |
567 gliv | [] |
568 glunarclock | [] [] |
569 gmult | [] [] [] |
570 gnubiff | |
571 gnucash | () () () |
572 gnuedu | |
573 gnulib | [] [] |
574 gnunet | |
575 gnunet-gtk | |
576 gnutls | [] |
577 gpe-aerial | [] |
578 gpe-beam | [] |
579 gpe-calendar | [] |
580 gpe-clock | [] [] [] |
581 gpe-conf | [] [] [] |
582 gpe-contacts | [] |
583 gpe-edit | [] [] [] |
584 gpe-filemanager | [] [] |
585 gpe-go | [] [] [] |
586 gpe-login | [] [] [] |
587 gpe-ownerinfo | [] [] |
588 gpe-package | [] [] |
589 gpe-sketchbook | [] [] |
590 gpe-su | [] [] [] |
591 gpe-taskmanager | [] [] [] [] |
592 gpe-timesheet | [] |
593 gpe-today | [] [] |
594 gpe-todo | [] |
595 gphoto2 | [] [] |
596 gprof | [] |
597 gpsdrive | [] |
598 gramadoir | () |
599 grep | [] [] |
600 gretl | |
601 gsasl | [] |
602 gss | |
603 gst-plugins-bad | [] |
604 gst-plugins-base | [] |
605 gst-plugins-good | [] |
606 gst-plugins-ugly | [] |
607 gstreamer | [] |
608 gtick | [] |
609 gtkam | [] [] |
610 gtkorphan | [] |
611 gtkspell | [] [] |
612 gutenprint | [] |
613 hello | [] [] [] [] [] [] [] |
614 herrie | [] |
615 hylafax | |
616 idutils | [] |
617 indent | [] [] |
618 iso_15924 | [] |
619 iso_3166 | [] [] [] [] [] [] [] [] |
620 iso_3166_2 | [] |
621 iso_4217 | [] [] [] |
622 iso_639 | [] [] [] [] |
623 jpilot | () () |
624 jtag | |
625 jwhois | [] |
626 kbd | [] |
627 keytouch | [] |
628 keytouch-editor | [] |
629 keytouch-keyboa... | |
630 latrine | [] |
631 ld | |
632 leafpad | [] [] |
633 libc | [] [] [] |
634 libexif | |
635 libextractor | |
636 libgpewidget | [] |
637 libgpg-error | |
638 libgphoto2 | [] |
639 libgphoto2_port | [] |
640 libgsasl | [] |
641 libiconv | [] |
642 libidn | [] [] |
643 lifelines | [] |
644 lilypond | [] |
645 lingoteach | [] |
646 lprng | |
647 lynx | [] [] |
648 m4 | [] [] |
649 mailfromd | |
650 mailutils | |
651 make | [] [] [] |
652 man-db | |
653 minicom | [] |
654 nano | [] [] [] |
655 opcodes | [] |
656 parted | [] [] |
657 pilot-qof | |
658 popt | [] [] [] |
659 psmisc | [] [] [] |
660 pwdutils | |
661 qof | |
662 radius | |
663 recode | [] |
664 rpm | [] [] |
665 screem | [] |
666 scrollkeeper | [] [] [] [] |
667 sed | [] [] |
668 shared-mime-info | [] [] [] [] [] [] [] |
669 sharutils | [] [] |
670 shishi | |
671 skencil | |
672 solfege | () () |
673 soundtracker | |
674 sp | () |
675 system-tools-ba... | [] [] [] [] |
676 tar | [] [] [] |
677 texinfo | [] [] |
678 tin | |
679 tuxpaint | () [] [] |
680 unicode-han-tra... | |
681 unicode-transla... | |
682 util-linux | [] [] |
683 util-linux-ng | [] [] |
684 vorbis-tools | |
685 wastesedge | [] |
686 wdiff | [] [] |
687 wget | [] [] |
688 xchat | [] [] [] [] |
689 xkeyboard-config | [] [] [] |
690 xpad | [] [] [] |
691 +--------------------------------------------------+
692 ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn
693 51 2 25 3 2 0 6 0 2 2 20 0 11 1 103 6
694
695 or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta
696 +--------------------------------------------------+
697 Compendium | [] [] [] [] [] |
698 a2ps | () [] [] [] [] [] [] |
699 aegis | () () |
700 ant-phone | [] [] |
701 anubis | [] [] [] |
702 ap-utils | () |
703 aspell | [] [] [] |
704 bash | [] [] |
705 bfd | |
706 bibshelf | [] |
707 binutils | [] [] |
708 bison | [] [] [] [] [] |
709 bison-runtime | [] [] [] [] [] |
710 bluez-pin | [] [] [] [] [] [] [] [] [] |
711 cflow | [] |
712 clisp | [] |
713 console-tools | [] |
714 coreutils | [] [] [] [] |
715 cpio | [] [] [] |
716 cpplib | [] |
717 cryptonit | [] [] |
718 dialog | [] |
719 diffutils | [] [] [] [] [] [] |
720 doodle | [] [] |
721 e2fsprogs | [] [] |
722 enscript | [] [] [] [] [] |
723 fetchmail | [] [] [] |
724 findutils | [] [] [] |
725 findutils_stable | [] [] [] [] [] [] |
726 flex | [] [] [] [] [] |
727 fslint | [] |
728 gas | |
729 gawk | [] [] [] [] |
730 gcal | [] |
731 gcc | [] [] |
732 gettext-examples | [] [] [] [] [] [] [] [] |
733 gettext-runtime | [] [] [] [] [] [] [] [] |
734 gettext-tools | [] [] [] [] [] [] [] |
735 gip | [] [] [] [] |
736 gliv | [] [] [] [] [] [] |
737 glunarclock | [] [] [] [] [] [] |
738 gmult | [] [] [] [] |
739 gnubiff | () [] |
740 gnucash | () [] |
741 gnuedu | |
742 gnulib | [] [] [] |
743 gnunet | |
744 gnunet-gtk | [] |
745 gnutls | [] [] |
746 gpe-aerial | [] [] [] [] [] [] [] |
747 gpe-beam | [] [] [] [] [] [] [] |
748 gpe-calendar | [] [] [] [] |
749 gpe-clock | [] [] [] [] [] [] [] [] |
750 gpe-conf | [] [] [] [] [] [] [] |
751 gpe-contacts | [] [] [] [] [] |
752 gpe-edit | [] [] [] [] [] [] [] [] [] |
753 gpe-filemanager | [] [] |
754 gpe-go | [] [] [] [] [] [] [] [] |
755 gpe-login | [] [] [] [] [] [] [] [] |
756 gpe-ownerinfo | [] [] [] [] [] [] [] [] |
757 gpe-package | [] [] |
758 gpe-sketchbook | [] [] [] [] [] [] [] [] |
759 gpe-su | [] [] [] [] [] [] [] [] |
760 gpe-taskmanager | [] [] [] [] [] [] [] [] |
761 gpe-timesheet | [] [] [] [] [] [] [] [] |
762 gpe-today | [] [] [] [] [] [] [] [] |
763 gpe-todo | [] [] [] [] |
764 gphoto2 | [] [] [] [] [] [] |
765 gprof | [] [] [] |
766 gpsdrive | [] [] |
767 gramadoir | [] [] |
768 grep | [] [] [] [] |
769 gretl | [] [] [] |
770 gsasl | [] [] [] |
771 gss | [] [] [] [] |
772 gst-plugins-bad | [] [] [] |
773 gst-plugins-base | [] [] |
774 gst-plugins-good | [] [] |
775 gst-plugins-ugly | [] [] [] |
776 gstreamer | [] [] [] [] |
777 gtick | [] |
778 gtkam | [] [] [] [] [] |
779 gtkorphan | [] |
780 gtkspell | [] [] [] [] [] [] [] [] |
781 gutenprint | [] |
782 hello | [] [] [] [] [] [] [] [] |
783 herrie | [] [] [] |
784 hylafax | |
785 idutils | [] [] [] [] [] |
786 indent | [] [] [] [] [] [] [] |
787 iso_15924 | |
788 iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] |
789 iso_3166_2 | |
790 iso_4217 | [] [] [] [] [] [] [] |
791 iso_639 | [] [] [] [] [] [] [] |
792 jpilot | |
793 jtag | [] |
794 jwhois | [] [] [] [] |
795 kbd | [] [] [] |
796 keytouch | [] |
797 keytouch-editor | [] |
798 keytouch-keyboa... | [] |
799 latrine | |
800 ld | [] |
801 leafpad | [] [] [] [] [] [] |
802 libc | [] [] [] [] |
803 libexif | [] [] |
804 libextractor | [] [] |
805 libgpewidget | [] [] [] [] [] [] [] [] |
806 libgpg-error | [] [] [] |
807 libgphoto2 | [] |
808 libgphoto2_port | [] [] [] |
809 libgsasl | [] [] [] [] |
810 libiconv | [] [] [] |
811 libidn | [] [] () |
812 lifelines | [] [] |
813 lilypond | |
814 lingoteach | [] |
815 lprng | [] |
816 lynx | [] [] [] |
817 m4 | [] [] [] [] [] |
818 mailfromd | [] |
819 mailutils | [] [] [] |
820 make | [] [] [] [] |
821 man-db | [] [] [] [] |
822 minicom | [] [] [] [] [] |
823 nano | [] [] [] [] |
824 opcodes | [] [] |
825 parted | [] |
826 pilot-qof | |
827 popt | [] [] [] [] |
828 psmisc | [] [] |
829 pwdutils | [] [] |
830 qof | [] [] |
831 radius | [] [] |
832 recode | [] [] [] [] [] [] [] |
833 rpm | [] [] [] [] |
834 screem | |
835 scrollkeeper | [] [] [] [] [] [] [] |
836 sed | [] [] [] [] [] [] [] [] [] |
837 shared-mime-info | [] [] [] [] [] [] |
838 sharutils | [] [] [] [] |
839 shishi | [] |
840 skencil | [] [] [] |
841 solfege | [] |
842 soundtracker | [] [] |
843 sp | |
844 system-tools-ba... | [] [] [] [] [] [] [] [] [] |
845 tar | [] [] [] [] |
846 texinfo | [] [] [] [] |
847 tin | () |
848 tuxpaint | [] [] [] [] [] [] |
849 unicode-han-tra... | |
850 unicode-transla... | |
851 util-linux | [] [] [] [] |
852 util-linux-ng | [] [] [] [] |
853 vorbis-tools | [] |
854 wastesedge | |
855 wdiff | [] [] [] [] [] [] [] |
856 wget | [] [] [] [] |
857 xchat | [] [] [] [] [] [] [] |
858 xkeyboard-config | [] [] [] |
859 xpad | [] [] [] |
860 +--------------------------------------------------+
861 or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta
862 0 5 77 31 53 4 58 72 3 45 46 9 45 122 3
863
864 tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu
865 +---------------------------------------------------+
866 Compendium | [] [] [] [] | 19
867 a2ps | [] [] [] | 19
868 aegis | [] | 1
869 ant-phone | [] [] | 6
870 anubis | [] [] [] | 11
871 ap-utils | () [] | 4
872 aspell | [] [] [] | 16
873 bash | [] | 6
874 bfd | | 2
875 bibshelf | [] | 7
876 binutils | [] [] [] [] | 9
877 bison | [] [] [] [] | 20
878 bison-runtime | [] [] [] [] | 18
879 bluez-pin | [] [] [] [] [] [] | 28
880 cflow | [] [] | 5
881 clisp | | 9
882 console-tools | [] [] | 5
883 coreutils | [] [] [] | 18
884 cpio | [] [] [] [] | 11
885 cpplib | [] [] [] [] [] | 12
886 cryptonit | [] | 6
887 dialog | [] [] [] | 9
888 diffutils | [] [] [] [] [] | 29
889 doodle | [] | 6
890 e2fsprogs | [] [] | 10
891 enscript | [] [] [] | 16
892 fetchmail | [] [] | 12
893 findutils | [] [] [] | 11
894 findutils_stable | [] [] [] [] | 18
895 flex | [] [] | 15
896 fslint | [] | 2
897 gas | [] | 3
898 gawk | [] [] [] | 16
899 gcal | [] | 5
900 gcc | [] [] [] | 7
901 gettext-examples | [] [] [] [] [] [] | 29
902 gettext-runtime | [] [] [] [] [] [] | 28
903 gettext-tools | [] [] [] [] [] | 20
904 gip | [] [] | 13
905 gliv | [] [] | 11
906 glunarclock | [] [] [] | 15
907 gmult | [] [] [] [] | 16
908 gnubiff | [] | 2
909 gnucash | () [] | 5
910 gnuedu | [] | 2
911 gnulib | [] | 10
912 gnunet | | 0
913 gnunet-gtk | [] [] | 3
914 gnutls | | 4
915 gpe-aerial | [] [] | 14
916 gpe-beam | [] [] | 14
917 gpe-calendar | [] [] | 7
918 gpe-clock | [] [] [] [] | 21
919 gpe-conf | [] [] [] | 16
920 gpe-contacts | [] [] | 10
921 gpe-edit | [] [] [] [] [] | 22
922 gpe-filemanager | [] [] | 7
923 gpe-go | [] [] [] [] | 19
924 gpe-login | [] [] [] [] [] | 21
925 gpe-ownerinfo | [] [] [] [] | 21
926 gpe-package | [] | 6
927 gpe-sketchbook | [] [] | 16
928 gpe-su | [] [] [] [] | 21
929 gpe-taskmanager | [] [] [] [] | 21
930 gpe-timesheet | [] [] [] [] | 18
931 gpe-today | [] [] [] [] [] | 21
932 gpe-todo | [] [] | 8
933 gphoto2 | [] [] [] [] | 21
934 gprof | [] [] | 13
935 gpsdrive | [] | 5
936 gramadoir | [] | 7
937 grep | [] | 12
938 gretl | | 6
939 gsasl | [] [] [] | 9
940 gss | [] | 7
941 gst-plugins-bad | [] [] [] | 13
942 gst-plugins-base | [] [] | 11
943 gst-plugins-good | [] [] [] [] [] | 16
944 gst-plugins-ugly | [] [] [] | 13
945 gstreamer | [] [] [] | 18
946 gtick | [] [] | 7
947 gtkam | [] | 16
948 gtkorphan | [] | 7
949 gtkspell | [] [] [] [] [] [] | 27
950 gutenprint | | 4
951 hello | [] [] [] [] [] | 38
952 herrie | [] [] | 8
953 hylafax | | 0
954 idutils | [] [] | 15
955 indent | [] [] [] [] [] | 28
956 iso_15924 | [] [] | 4
957 iso_3166 | [] [] [] [] [] [] [] [] [] | 54
958 iso_3166_2 | [] [] | 4
959 iso_4217 | [] [] [] [] [] | 24
960 iso_639 | [] [] [] [] [] | 26
961 jpilot | [] [] [] [] | 7
962 jtag | [] | 3
963 jwhois | [] [] [] | 13
964 kbd | [] [] [] | 13
965 keytouch | [] | 8
966 keytouch-editor | [] | 5
967 keytouch-keyboa... | [] | 5
968 latrine | [] [] | 5
969 ld | [] [] [] [] | 10
970 leafpad | [] [] [] [] [] | 24
971 libc | [] [] [] | 19
972 libexif | [] | 5
973 libextractor | [] | 5
974 libgpewidget | [] [] [] | 20
975 libgpg-error | [] | 6
976 libgphoto2 | [] [] | 9
977 libgphoto2_port | [] [] [] | 11
978 libgsasl | [] | 8
979 libiconv | [] [] | 11
980 libidn | [] [] | 11
981 lifelines | | 4
982 lilypond | [] | 6
983 lingoteach | [] | 6
984 lprng | [] | 2
985 lynx | [] [] [] | 15
986 m4 | [] [] [] | 18
987 mailfromd | [] [] | 3
988 mailutils | [] [] | 8
989 make | [] [] [] | 20
990 man-db | [] | 9
991 minicom | [] | 14
992 nano | [] [] [] | 20
993 opcodes | [] [] | 10
994 parted | [] [] [] | 11
995 pilot-qof | [] | 1
996 popt | [] [] [] [] | 18
997 psmisc | [] [] | 10
998 pwdutils | [] | 3
999 qof | [] | 4
1000 radius | [] [] | 7
1001 recode | [] [] [] | 25
1002 rpm | [] [] [] [] | 13
1003 screem | [] | 2
1004 scrollkeeper | [] [] [] [] | 26
1005 sed | [] [] [] [] | 23
1006 shared-mime-info | [] [] [] | 29
1007 sharutils | [] [] [] | 23
1008 shishi | [] | 3
1009 skencil | [] | 7
1010 solfege | [] | 3
1011 soundtracker | [] [] | 9
1012 sp | [] | 3
1013 system-tools-ba... | [] [] [] [] [] [] [] | 38
1014 tar | [] [] [] | 17
1015 texinfo | [] [] [] | 15
1016 tin | | 1
1017 tuxpaint | [] [] [] | 19
1018 unicode-han-tra... | | 0
1019 unicode-transla... | | 2
1020 util-linux | [] [] [] | 20
1021 util-linux-ng | [] [] [] | 20
1022 vorbis-tools | [] [] | 4
1023 wastesedge | | 1
1024 wdiff | [] [] | 23
1025 wget | [] [] [] | 20
1026 xchat | [] [] [] [] | 29
1027 xkeyboard-config | [] [] [] | 14
1028 xpad | [] [] [] | 15
1029 +---------------------------------------------------+
1030 76 teams tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu
1031 163 domains 0 3 1 74 51 0 143 21 1 57 7 45 0 2036
1032
1033 Some counters in the preceding matrix are higher than the number of
1034 visible blocks let us expect. This is because a few extra PO files are
1035 used for implementing regional variants of languages, or language
1036 dialects.
1037
1038 For a PO file in the matrix above to be effective, the package to
1039 which it applies should also have been internationalized and
1040 distributed as such by its maintainer. There might be an observable
1041 lag between the mere existence a PO file and its wide availability in a
1042 distribution.
1043
1044 If November 2007 seems to be old, you may fetch a more recent copy
1045 of this `ABOUT-NLS' file on most GNU archive sites. The most
1046 up-to-date matrix with full percentage details can be found at
1047 `http://translationproject.org/extra/matrix.html'.
1048
1049 1.6 Using `gettext' in new packages
1050 ===================================
1051
1052 If you are writing a freely available program and want to
1053 internationalize it you are welcome to use GNU `gettext' in your
1054 package. Of course you have to respect the GNU Library General Public
1055 License which covers the use of the GNU `gettext' library. This means
1056 in particular that even non-free programs can use `libintl' as a shared
1057 library, whereas only free software can use `libintl' as a static
1058 library or use modified versions of `libintl'.
1059
1060 Once the sources are changed appropriately and the setup can handle
1061 the use of `gettext' the only thing missing are the translations. The
1062 Free Translation Project is also available for packages which are not
1063 developed inside the GNU project. Therefore the information given above
1064 applies also for every other Free Software Project. Contact
1065 `coordinator@translationproject.org' to make the `.pot' files available
1066 to the translation teams.
1067
0 (C) Yaacov Zamir <kzamir@walla.co.il> 2003-2008.
1 (C) Amos Shapir <amos083@hotmail.com> 1984-2003.
2
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 libhdate (1.4.10)
1
2 * Move to GPL3 (COPYING, AUTHORS)
3 - Add Amos Shapir as author in Authors file
4 - Update Amos's email
5 * Change defult config options (configure.in)
6 - Gettext version used now is 0.17
7 - Python, Perl, Pascal bindings now built by default
8 * Update the man files (docs/man)
9 - add man files for c++ language
10 - move all man files to docs/man directory
11 * Bug fixes
12 - Fix Kislev Hebrew translation misspell (Bug report: Ariel Galola)
13 - Fix Julian day calculation (Bug report: Afonso Arantes)
14 * Add new events
15 - 30 shvat : Family day
16 - 12 heshvan : rabin memorial day
17 - 29 tamuz : zhabotinsky day
18
19 * Changes to hdate command line utility
20 - flag -j print the Julian day number
21 - if argument is greater than 100000 it is asumed as Julian day number
22 - "hdate -S YEAR" now print out same format as "hebcal -d -h -e YEAR"
23
24 -- Yaacov Zamir <kzamir@wall.co.il> Thusday, 3 January 2008 22:00
25
26 libhdate (1.4.9)
27
28 * Fix endianess bug in big endian machins (/examples/hcal/hcal.c and hdate.c)
29
30 -- Yaacov Zamir <kzamir@wall.co.il> Saturday, 7 April 2007 22:00
31
32 libhdate (1.4.8)
33
34 * Fix help printing bug: Add new line at the end of hdate help text.
35 * Add two new functios to the time of day section:
36 hdate_get_utc_sun_time_full - gets the time of first light,
37 talit, sunris, sunset, first stars and three stars.
38 hdate_get_utc_sun_time_deg - gets the time the sun is on
39 some known altitude.
40 * Add Times of day to hdate command line tool.
41 supported times: first-light, talit, sunrise, mid-day, sunset, first-stars
42 and three-stars
43 * Add Times of Shabat enter/leave to hdate command line tool.
44 Shabat starts 20 min before sunset, and leave at three stars.
45 * Add new oprions in hdate command line tool to it's man page
46
47 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 8 Jun 2006 12:13
48
49 libhdate (1.4.7)
50
51 * Fix pesach II in hebrew po file.
52 * hcal utility export strict html 4.01.
53 * hcal utility can export diaspora holidays
54 * Update hcal utility man file.
55
56 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 18 Apr 2006 12:13
57
58 libhdate (1.4.3)
59
60 * Fix header of spanish po file.
61 * Daniel Nylander: Swedish translation.
62
63 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 10 Apr 2006 12:13
64
65 libhdate (1.4.2)
66
67 * Ido Kanner <idokan@gmail.com> - Update free pascal bindings.
68 * Update address of Free Software Foundation in COPYING file.
69 * make the spec.in file more configurable.
70
71 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Nov 2005 12:13
72
73 libhdate (1.4.0)
74
75 * Michael Kaminsky - libhdate now reports the 2nd day of yom
76 tov on Sukkot and Peseach as Yom Tov and not Chol Hamoed.
77 * Cange C++ API - insert the location and diaspora flag as
78 part of the hdate object.
79 * Docomentation - separate the c and the cpp docs, more readable.
80 * hdate example can now export iCal formated output.
81
82 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 8 Aug 2005 22:13
83
84 libhdate (1.3.1)
85
86 * Add "const correctness" patch from Markus Elfring (elfring).
87 * Manual page seems to contain a hyphen where a minus sign was
88 intended, patch by Lior Kaplan.
89 * Remove the debian directory from the ziped package.
90
91 -- Yaacov Zamir <kzamir@wall.co.il> Sat, 30 Jul 2005 22:13
92
93 libhdate (1.3.0)
94
95 * Add examples to the doc directory
96 * doc directory is now /usr/doc/libhdate0 and no /usr/doc/hdate
97 * make int_to_string aware of LANGUAGE system variable, make it more gettext compatible
98
99 -- Yaacov Zamir <kzamir@wall.co.il> Wed, 27 Jul 2005 18:13
100
101 libhdate (1.0.1)
102
103 * first major reales number.
104 * start to number the shared library.
105 * stable api.
106 * updated utility programs hdate/hcal.
107 * added man files for library and utility programs.
108 * python and perl bindings.
109 * free pascal binding by Ido Kanner <idokan@gmail.com>
110 * ru, fr, he, es translations, thanks to Peled Esti and Boris Peterberg.
111 * added debian dir and RH spec file for easy packing, thanks to Oron Peled.
112
113 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 08 March 2005 18:13
114
115 libhdate (0.30.0)
116
117 * add es_MX translation by Peled Esti <esti@actcom.co.il>
118 * initial russian translation by Boris Peterberg
119
120 -- Yaacov Zamir <kzamir@wall.co.il> Tue, 08 March 2005 18:13
121
122 libhdate (0.30.0)
123
124 * cpp, python and perl bindings
125 * examples for the new libhdate bindings
126
127 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 04 March 2005 15:19:29
128
129 libhdate (0.22.0)
130
131 * Michael Kaminsky's patch to Shavot II on diaspora reading.
132
133 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 28 Feb 2005 08:12:31
134
135 libhdate (0.22.0)
136
137 * New hebcal examples
138
139 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Feb 2005 11:15:18
140
141 libhdate (0.21.0)
142
143 * New spec file by Oron Peled
144 * Diaspora holydays/readings
145 * New sunrise sunset functions
146 * New html examples
147 * New configure options to build / not build the examples
148
149 -- Yaacov Zamir <kzamir@wall.co.il> Fri, 25 Feb 2005 11:15:18
150
151 libhdate (0.17.0)
152
153 * API chages.
154 * base struct change.
155
156 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 22 Feb 2005 19:34:22
157
158 libhdate (0.16.3)
159
160 * Try to fix date conversion bug, thanks Michael Kaminsky.
161
162 -- Yaacov Zamir <kzamir@wall.co.il> Mon, 21 Feb 2005 09:03:12
163
164 libhdate (0.16.2)
165
166 * Syntax error, and weeks calculation bug fixed by Michael Kaminsky.
167
168 -- Yaacov Zamir <kzamir@wall.co.il> Sun, 20 Feb 2005 06:53:12
169
170 libhdate (0.16.1)
171
172 * Fix locale bug in int_to_string.
173 * Add examples directory.
174 * Minor bug fixes.
175
176 -- Yaacov Zamir <kzamir@wall.co.il> Sat, 19 Feb 2005 20:07:19
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
4 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 These are generic installation instructions.
13
14 The `configure' shell script attempts to guess correct values for
15 various system-dependent variables used during compilation. It uses
16 those values to create a `Makefile' in each directory of the package.
17 It may also create one or more `.h' files containing system-dependent
18 definitions. Finally, it creates a shell script `config.status' that
19 you can run in the future to recreate the current configuration, and a
20 file `config.log' containing compiler output (useful mainly for
21 debugging `configure').
22
23 It can also use an optional file (typically called `config.cache'
24 and enabled with `--cache-file=config.cache' or simply `-C') that saves
25 the results of its tests to speed up reconfiguring. (Caching is
26 disabled by default to prevent problems with accidental use of stale
27 cache files.)
28
29 If you need to do unusual things to compile the package, please try
30 to figure out how `configure' could check whether to do them, and mail
31 diffs or instructions to the address given in the `README' so they can
32 be considered for the next release. If you are using the cache, and at
33 some point `config.cache' contains results you don't want to keep, you
34 may remove or edit it.
35
36 The file `configure.ac' (or `configure.in') is used to create
37 `configure' by a program called `autoconf'. You only need
38 `configure.ac' if you want to change it or regenerate `configure' using
39 a newer version of `autoconf'.
40
41 The simplest way to compile this package is:
42
43 1. `cd' to the directory containing the package's source code and type
44 `./configure' to configure the package for your system. If you're
45 using `csh' on an old version of System V, you might need to type
46 `sh ./configure' instead to prevent `csh' from trying to execute
47 `configure' itself.
48
49 Running `configure' takes awhile. While running, it prints some
50 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 Compilers and Options
70 =====================
71
72 Some systems require unusual options for compilation or linking that the
73 `configure' script does not know about. Run `./configure --help' for
74 details on some of the pertinent environment variables.
75
76 You can give `configure' initial values for configuration parameters
77 by setting variables in the command line or in the environment. Here
78 is an example:
79
80 ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
81
82 *Note Defining Variables::, for more details.
83
84 Compiling For Multiple Architectures
85 ====================================
86
87 You can compile the package for more than one kind of computer at the
88 same time, by placing the object files for each architecture in their
89 own directory. To do this, you must use a version of `make' that
90 supports the `VPATH' variable, such as GNU `make'. `cd' to the
91 directory where you want the object files and executables to go and run
92 the `configure' script. `configure' automatically checks for the
93 source code in the directory that `configure' is in and in `..'.
94
95 If you have to use a `make' that does not support the `VPATH'
96 variable, you have to compile the package for one architecture at a
97 time in the source code directory. After you have installed the
98 package for one architecture, use `make distclean' before reconfiguring
99 for another architecture.
100
101 Installation Names
102 ==================
103
104 By default, `make install' installs the package's commands under
105 `/usr/local/bin', include files under `/usr/local/include', etc. You
106 can specify an installation prefix other than `/usr/local' by giving
107 `configure' the option `--prefix=PREFIX'.
108
109 You can specify separate installation prefixes for
110 architecture-specific files and architecture-independent files. If you
111 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
112 PREFIX as the prefix for installing programs and libraries.
113 Documentation and other data files still use the regular prefix.
114
115 In addition, if you use an unusual directory layout you can give
116 options like `--bindir=DIR' to specify different values for particular
117 kinds of files. Run `configure --help' for a list of the directories
118 you can set and what kinds of files go in them.
119
120 If the package supports it, you can cause programs to be installed
121 with an extra prefix or suffix on their names by giving `configure' the
122 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
123
124 Optional Features
125 =================
126
127 Some packages pay attention to `--enable-FEATURE' options to
128 `configure', where FEATURE indicates an optional part of the package.
129 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
130 is something like `gnu-as' or `x' (for the X Window System). The
131 `README' should mention any `--enable-' and `--with-' options that the
132 package recognizes.
133
134 For packages that use the X Window System, `configure' can usually
135 find the X include and library files automatically, but if it doesn't,
136 you can use the `configure' options `--x-includes=DIR' and
137 `--x-libraries=DIR' to specify their locations.
138
139 Specifying the System Type
140 ==========================
141
142 There may be some features `configure' cannot figure out automatically,
143 but needs to determine by the type of machine the package will run on.
144 Usually, assuming the package is built to be run on the _same_
145 architectures, `configure' can figure that out, but if it prints a
146 message saying it cannot guess the machine type, give it the
147 `--build=TYPE' option. TYPE can either be a short name for the system
148 type, such as `sun4', or a canonical name which has the form:
149
150 CPU-COMPANY-SYSTEM
151
152 where SYSTEM can have one of these forms:
153
154 OS KERNEL-OS
155
156 See the file `config.sub' for the possible values of each field. If
157 `config.sub' isn't included in this package, then this package doesn't
158 need to know the machine type.
159
160 If you are _building_ compiler tools for cross-compiling, you should
161 use the option `--target=TYPE' to select the type of system they will
162 produce code for.
163
164 If you want to _use_ a cross compiler, that generates code for a
165 platform different from the build platform, you should specify the
166 "host" platform (i.e., that on which the generated programs will
167 eventually be run) with `--host=TYPE'.
168
169 Sharing Defaults
170 ================
171
172 If you want to set default values for `configure' scripts to share, you
173 can create a site shell script called `config.site' that gives default
174 values for variables like `CC', `cache_file', and `prefix'.
175 `configure' looks for `PREFIX/share/config.site' if it exists, then
176 `PREFIX/etc/config.site' if it exists. Or, you can set the
177 `CONFIG_SITE' environment variable to the location of the site script.
178 A warning: not all `configure' scripts look for a site script.
179
180 Defining Variables
181 ==================
182
183 Variables not defined in a site shell script can be set in the
184 environment passed to `configure'. However, some packages may run
185 configure again during the build, and the customized values of these
186 variables may be lost. In order to avoid this problem, you should set
187 them in the `configure' command line, using `VAR=value'. For example:
188
189 ./configure CC=/usr/local2/bin/gcc
190
191 causes the specified `gcc' to be used as the C compiler (unless it is
192 overridden in the site shell script). Here is a another example:
193
194 /bin/bash ./configure CONFIG_SHELL=/bin/bash
195
196 Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
197 configuration-related scripts to be executed by `/bin/bash'.
198
199 `configure' Invocation
200 ======================
201
202 `configure' recognizes the following options to control how it operates.
203
204 `--help'
205 `-h'
206 Print a summary of the options to `configure', and exit.
207
208 `--version'
209 `-V'
210 Print the version of Autoconf used to generate the `configure'
211 script, and exit.
212
213 `--cache-file=FILE'
214 Enable the cache: use and save the results of the tests in FILE,
215 traditionally `config.cache'. FILE defaults to `/dev/null' to
216 disable caching.
217
218 `--config-cache'
219 `-C'
220 Alias for `--cache-file=config.cache'.
221
222 `--quiet'
223 `--silent'
224 `-q'
225 Do not print messages saying which checks are being made. To
226 suppress all normal output, redirect it to `/dev/null' (any error
227 messages will still be shown).
228
229 `--srcdir=DIR'
230 Look for the package's source code in directory DIR. Usually
231 `configure' can determine that directory automatically.
232
233 `configure' also accepts some other, not widely useful, options. Run
234 `configure --help' for more details.
235
0 ## Process this file with automake to produce Makefile.in
1
2 SUBDIRS = po docs src examples bindings
3
4 pkgconfigdir = $(libdir)/pkgconfig
5 pkgconfig_DATA = libhdate.pc
6
7 libhdatedocdir = ${prefix}/share/doc/libhdate
8 libhdatedoc_DATA = \
9 README\
10 COPYING\
11 AUTHORS\
12 ChangeLog\
13 INSTALL\
14 NEWS\
15 USE \
16 ABOUT-NLS
17
18 EXTRA_DIST = $(libhdatedoc_DATA) libhdate.pc.in
19
20 ACLOCAL_AMFLAGS = -I m4
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = .
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
39 $(srcdir)/Makefile.in $(srcdir)/libhdate.pc.in \
40 $(top_srcdir)/configure ABOUT-NLS AUTHORS COPYING ChangeLog \
41 INSTALL NEWS compile config.guess config.rpath config.sub \
42 depcomp install-sh ltmain.sh missing
43 subdir = .
44 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
45 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
46 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
47 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
48 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
49 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
50 $(top_srcdir)/configure.in
51 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
52 $(ACLOCAL_M4)
53 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
54 configure.lineno configure.status.lineno
55 mkinstalldirs = $(install_sh) -d
56 CONFIG_CLEAN_FILES = libhdate.pc
57 SOURCES =
58 DIST_SOURCES =
59 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
60 html-recursive info-recursive install-data-recursive \
61 install-exec-recursive install-info-recursive \
62 install-recursive installcheck-recursive installdirs-recursive \
63 pdf-recursive ps-recursive uninstall-info-recursive \
64 uninstall-recursive
65 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
66 am__vpath_adj = case $$p in \
67 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
68 *) f=$$p;; \
69 esac;
70 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
71 am__installdirs = "$(DESTDIR)$(libhdatedocdir)" \
72 "$(DESTDIR)$(pkgconfigdir)"
73 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
74 pkgconfigDATA_INSTALL = $(INSTALL_DATA)
75 DATA = $(libhdatedoc_DATA) $(pkgconfig_DATA)
76 ETAGS = etags
77 CTAGS = ctags
78 DIST_SUBDIRS = $(SUBDIRS)
79 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
80 distdir = $(PACKAGE)-$(VERSION)
81 top_distdir = $(distdir)
82 am__remove_distdir = \
83 { test ! -d $(distdir) \
84 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
85 && rm -fr $(distdir); }; }
86 DIST_ARCHIVES = $(distdir).tar.gz
87 GZIP_ENV = --best
88 distuninstallcheck_listfiles = find . -type f -print
89 distcleancheck_listfiles = find . -type f -print
90 ACLOCAL = @ACLOCAL@
91 AMDEP_FALSE = @AMDEP_FALSE@
92 AMDEP_TRUE = @AMDEP_TRUE@
93 AMTAR = @AMTAR@
94 AR = @AR@
95 AUTOCONF = @AUTOCONF@
96 AUTOHEADER = @AUTOHEADER@
97 AUTOMAKE = @AUTOMAKE@
98 AWK = @AWK@
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 DEFS = @DEFS@
111 DEPDIR = @DEPDIR@
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 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
121 GMSGFMT = @GMSGFMT@
122 GMSGFMT_015 = @GMSGFMT_015@
123 GREP = @GREP@
124 INSTALL_DATA = @INSTALL_DATA@
125 INSTALL_PROGRAM = @INSTALL_PROGRAM@
126 INSTALL_SCRIPT = @INSTALL_SCRIPT@
127 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
128 INTLLIBS = @INTLLIBS@
129 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
130 LDFLAGS = @LDFLAGS@
131 LIBICONV = @LIBICONV@
132 LIBINTL = @LIBINTL@
133 LIBOBJS = @LIBOBJS@
134 LIBS = @LIBS@
135 LIBTOOL = @LIBTOOL@
136 LN_S = @LN_S@
137 LTLIBICONV = @LTLIBICONV@
138 LTLIBINTL = @LTLIBINTL@
139 LTLIBOBJS = @LTLIBOBJS@
140 MAINT = @MAINT@
141 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
142 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
143 MAKEINFO = @MAKEINFO@
144 MSGFMT = @MSGFMT@
145 MSGFMT_015 = @MSGFMT_015@
146 MSGMERGE = @MSGMERGE@
147 OBJEXT = @OBJEXT@
148 PACKAGE = @PACKAGE@
149 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
150 PACKAGE_NAME = @PACKAGE_NAME@
151 PACKAGE_STRING = @PACKAGE_STRING@
152 PACKAGE_TARNAME = @PACKAGE_TARNAME@
153 PACKAGE_VERSION = @PACKAGE_VERSION@
154 PATH_SEPARATOR = @PATH_SEPARATOR@
155 PA_MODULES_PATH = @PA_MODULES_PATH@
156 PA_VERSION = @PA_VERSION@
157 PE_CFLAGS = @PE_CFLAGS@
158 PE_MODULES_PATH = @PE_MODULES_PATH@
159 PKG_CONFIG = @PKG_CONFIG@
160 POSUB = @POSUB@
161 PY_CFLAGS = @PY_CFLAGS@
162 PY_MODULES_PATH = @PY_MODULES_PATH@
163 PY_VERSION = @PY_VERSION@
164 RANLIB = @RANLIB@
165 SED = @SED@
166 SET_MAKE = @SET_MAKE@
167 SHELL = @SHELL@
168 STRIP = @STRIP@
169 USE_NLS = @USE_NLS@
170 VERSION = @VERSION@
171 VERSION_INFO = @VERSION_INFO@
172 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
173 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
174 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
175 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
176 WITH_PERL_FALSE = @WITH_PERL_FALSE@
177 WITH_PERL_TRUE = @WITH_PERL_TRUE@
178 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
179 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
180 XGETTEXT = @XGETTEXT@
181 XGETTEXT_015 = @XGETTEXT_015@
182 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
183 ac_ct_CC = @ac_ct_CC@
184 ac_ct_CXX = @ac_ct_CXX@
185 ac_ct_F77 = @ac_ct_F77@
186 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
187 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
188 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
189 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
190 am__include = @am__include@
191 am__leading_dot = @am__leading_dot@
192 am__quote = @am__quote@
193 am__tar = @am__tar@
194 am__untar = @am__untar@
195 bindir = @bindir@
196 build = @build@
197 build_alias = @build_alias@
198 build_cpu = @build_cpu@
199 build_os = @build_os@
200 build_vendor = @build_vendor@
201 datadir = @datadir@
202 datarootdir = @datarootdir@
203 docdir = @docdir@
204 dvidir = @dvidir@
205 exec_prefix = @exec_prefix@
206 have_pascal = @have_pascal@
207 have_perl = @have_perl@
208 have_python = @have_python@
209 have_swig = @have_swig@
210 host = @host@
211 host_alias = @host_alias@
212 host_cpu = @host_cpu@
213 host_os = @host_os@
214 host_vendor = @host_vendor@
215 htmldir = @htmldir@
216 includedir = @includedir@
217 infodir = @infodir@
218 install_sh = @install_sh@
219 libdir = @libdir@
220 libexecdir = @libexecdir@
221 localedir = @localedir@
222 localstatedir = @localstatedir@
223 mandir = @mandir@
224 mkdir_p = @mkdir_p@
225 oldincludedir = @oldincludedir@
226 pdfdir = @pdfdir@
227 prefix = @prefix@
228 program_transform_name = @program_transform_name@
229 psdir = @psdir@
230 sbindir = @sbindir@
231 sharedstatedir = @sharedstatedir@
232 sysconfdir = @sysconfdir@
233 target_alias = @target_alias@
234 SUBDIRS = po docs src examples bindings
235 pkgconfigdir = $(libdir)/pkgconfig
236 pkgconfig_DATA = libhdate.pc
237 libhdatedocdir = ${prefix}/share/doc/libhdate
238 libhdatedoc_DATA = \
239 README\
240 COPYING\
241 AUTHORS\
242 ChangeLog\
243 INSTALL\
244 NEWS\
245 USE \
246 ABOUT-NLS
247
248 EXTRA_DIST = $(libhdatedoc_DATA) libhdate.pc.in
249 ACLOCAL_AMFLAGS = -I m4
250 all: all-recursive
251
252 .SUFFIXES:
253 am--refresh:
254 @:
255 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
256 @for dep in $?; do \
257 case '$(am__configure_deps)' in \
258 *$$dep*) \
259 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
260 cd $(srcdir) && $(AUTOMAKE) --gnu \
261 && exit 0; \
262 exit 1;; \
263 esac; \
264 done; \
265 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
266 cd $(top_srcdir) && \
267 $(AUTOMAKE) --gnu Makefile
268 .PRECIOUS: Makefile
269 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
270 @case '$?' in \
271 *config.status*) \
272 echo ' $(SHELL) ./config.status'; \
273 $(SHELL) ./config.status;; \
274 *) \
275 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
276 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
277 esac;
278
279 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
280 $(SHELL) ./config.status --recheck
281
282 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
283 cd $(srcdir) && $(AUTOCONF)
284 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
285 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
286 libhdate.pc: $(top_builddir)/config.status $(srcdir)/libhdate.pc.in
287 cd $(top_builddir) && $(SHELL) ./config.status $@
288
289 mostlyclean-libtool:
290 -rm -f *.lo
291
292 clean-libtool:
293 -rm -rf .libs _libs
294
295 distclean-libtool:
296 -rm -f libtool
297 uninstall-info-am:
298 install-libhdatedocDATA: $(libhdatedoc_DATA)
299 @$(NORMAL_INSTALL)
300 test -z "$(libhdatedocdir)" || $(mkdir_p) "$(DESTDIR)$(libhdatedocdir)"
301 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
302 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
303 f=$(am__strip_dir) \
304 echo " $(libhdatedocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
305 $(libhdatedocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(libhdatedocdir)/$$f"; \
306 done
307
308 uninstall-libhdatedocDATA:
309 @$(NORMAL_UNINSTALL)
310 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
311 f=$(am__strip_dir) \
312 echo " rm -f '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
313 rm -f "$(DESTDIR)$(libhdatedocdir)/$$f"; \
314 done
315 install-pkgconfigDATA: $(pkgconfig_DATA)
316 @$(NORMAL_INSTALL)
317 test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
318 @list='$(pkgconfig_DATA)'; for p in $$list; do \
319 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
320 f=$(am__strip_dir) \
321 echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
322 $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
323 done
324
325 uninstall-pkgconfigDATA:
326 @$(NORMAL_UNINSTALL)
327 @list='$(pkgconfig_DATA)'; for p in $$list; do \
328 f=$(am__strip_dir) \
329 echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
330 rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
331 done
332
333 # This directory's subdirectories are mostly independent; you can cd
334 # into them and run `make' without going through this Makefile.
335 # To change the values of `make' variables: instead of editing Makefiles,
336 # (1) if the variable is set in `config.status', edit `config.status'
337 # (which will cause the Makefiles to be regenerated when you run `make');
338 # (2) otherwise, pass the desired values on the `make' command line.
339 $(RECURSIVE_TARGETS):
340 @failcom='exit 1'; \
341 for f in x $$MAKEFLAGS; do \
342 case $$f in \
343 *=* | --[!k]*);; \
344 *k*) failcom='fail=yes';; \
345 esac; \
346 done; \
347 dot_seen=no; \
348 target=`echo $@ | sed s/-recursive//`; \
349 list='$(SUBDIRS)'; for subdir in $$list; do \
350 echo "Making $$target in $$subdir"; \
351 if test "$$subdir" = "."; then \
352 dot_seen=yes; \
353 local_target="$$target-am"; \
354 else \
355 local_target="$$target"; \
356 fi; \
357 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
358 || eval $$failcom; \
359 done; \
360 if test "$$dot_seen" = "no"; then \
361 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
362 fi; test -z "$$fail"
363
364 mostlyclean-recursive clean-recursive distclean-recursive \
365 maintainer-clean-recursive:
366 @failcom='exit 1'; \
367 for f in x $$MAKEFLAGS; do \
368 case $$f in \
369 *=* | --[!k]*);; \
370 *k*) failcom='fail=yes';; \
371 esac; \
372 done; \
373 dot_seen=no; \
374 case "$@" in \
375 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
376 *) list='$(SUBDIRS)' ;; \
377 esac; \
378 rev=''; for subdir in $$list; do \
379 if test "$$subdir" = "."; then :; else \
380 rev="$$subdir $$rev"; \
381 fi; \
382 done; \
383 rev="$$rev ."; \
384 target=`echo $@ | sed s/-recursive//`; \
385 for subdir in $$rev; do \
386 echo "Making $$target in $$subdir"; \
387 if test "$$subdir" = "."; then \
388 local_target="$$target-am"; \
389 else \
390 local_target="$$target"; \
391 fi; \
392 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
393 || eval $$failcom; \
394 done && test -z "$$fail"
395 tags-recursive:
396 list='$(SUBDIRS)'; for subdir in $$list; do \
397 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
398 done
399 ctags-recursive:
400 list='$(SUBDIRS)'; for subdir in $$list; do \
401 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
402 done
403
404 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
405 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
406 unique=`for i in $$list; do \
407 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
408 done | \
409 $(AWK) ' { files[$$0] = 1; } \
410 END { for (i in files) print i; }'`; \
411 mkid -fID $$unique
412 tags: TAGS
413
414 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
415 $(TAGS_FILES) $(LISP)
416 tags=; \
417 here=`pwd`; \
418 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
419 include_option=--etags-include; \
420 empty_fix=.; \
421 else \
422 include_option=--include; \
423 empty_fix=; \
424 fi; \
425 list='$(SUBDIRS)'; for subdir in $$list; do \
426 if test "$$subdir" = .; then :; else \
427 test ! -f $$subdir/TAGS || \
428 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
429 fi; \
430 done; \
431 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
432 unique=`for i in $$list; do \
433 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
434 done | \
435 $(AWK) ' { files[$$0] = 1; } \
436 END { for (i in files) print i; }'`; \
437 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
438 test -n "$$unique" || unique=$$empty_fix; \
439 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
440 $$tags $$unique; \
441 fi
442 ctags: CTAGS
443 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
444 $(TAGS_FILES) $(LISP)
445 tags=; \
446 here=`pwd`; \
447 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
448 unique=`for i in $$list; do \
449 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
450 done | \
451 $(AWK) ' { files[$$0] = 1; } \
452 END { for (i in files) print i; }'`; \
453 test -z "$(CTAGS_ARGS)$$tags$$unique" \
454 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
455 $$tags $$unique
456
457 GTAGS:
458 here=`$(am__cd) $(top_builddir) && pwd` \
459 && cd $(top_srcdir) \
460 && gtags -i $(GTAGS_ARGS) $$here
461
462 distclean-tags:
463 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
464
465 distdir: $(DISTFILES)
466 $(am__remove_distdir)
467 mkdir $(distdir)
468 $(mkdir_p) $(distdir)/. $(distdir)/m4 $(distdir)/po
469 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
470 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
471 list='$(DISTFILES)'; for file in $$list; do \
472 case $$file in \
473 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
474 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
475 esac; \
476 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
477 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
478 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
479 dir="/$$dir"; \
480 $(mkdir_p) "$(distdir)$$dir"; \
481 else \
482 dir=''; \
483 fi; \
484 if test -d $$d/$$file; then \
485 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
486 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
487 fi; \
488 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
489 else \
490 test -f $(distdir)/$$file \
491 || cp -p $$d/$$file $(distdir)/$$file \
492 || exit 1; \
493 fi; \
494 done
495 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
496 if test "$$subdir" = .; then :; else \
497 test -d "$(distdir)/$$subdir" \
498 || $(mkdir_p) "$(distdir)/$$subdir" \
499 || exit 1; \
500 distdir=`$(am__cd) $(distdir) && pwd`; \
501 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
502 (cd $$subdir && \
503 $(MAKE) $(AM_MAKEFLAGS) \
504 top_distdir="$$top_distdir" \
505 distdir="$$distdir/$$subdir" \
506 distdir) \
507 || exit 1; \
508 fi; \
509 done
510 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
511 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
512 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
513 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
514 || chmod -R a+r $(distdir)
515 dist-gzip: distdir
516 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
517 $(am__remove_distdir)
518
519 dist-bzip2: distdir
520 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
521 $(am__remove_distdir)
522
523 dist-tarZ: distdir
524 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
525 $(am__remove_distdir)
526
527 dist-shar: distdir
528 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
529 $(am__remove_distdir)
530
531 dist-zip: distdir
532 -rm -f $(distdir).zip
533 zip -rq $(distdir).zip $(distdir)
534 $(am__remove_distdir)
535
536 dist dist-all: distdir
537 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
538 $(am__remove_distdir)
539
540 # This target untars the dist file and tries a VPATH configuration. Then
541 # it guarantees that the distribution is self-contained by making another
542 # tarfile.
543 distcheck: dist
544 case '$(DIST_ARCHIVES)' in \
545 *.tar.gz*) \
546 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
547 *.tar.bz2*) \
548 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
549 *.tar.Z*) \
550 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
551 *.shar.gz*) \
552 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
553 *.zip*) \
554 unzip $(distdir).zip ;;\
555 esac
556 chmod -R a-w $(distdir); chmod a+w $(distdir)
557 mkdir $(distdir)/_build
558 mkdir $(distdir)/_inst
559 chmod a-w $(distdir)
560 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
561 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
562 && cd $(distdir)/_build \
563 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
564 $(DISTCHECK_CONFIGURE_FLAGS) \
565 && $(MAKE) $(AM_MAKEFLAGS) \
566 && $(MAKE) $(AM_MAKEFLAGS) dvi \
567 && $(MAKE) $(AM_MAKEFLAGS) check \
568 && $(MAKE) $(AM_MAKEFLAGS) install \
569 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
570 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
571 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
572 distuninstallcheck \
573 && chmod -R a-w "$$dc_install_base" \
574 && ({ \
575 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
576 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
577 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
578 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
579 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
580 } || { rm -rf "$$dc_destdir"; exit 1; }) \
581 && rm -rf "$$dc_destdir" \
582 && $(MAKE) $(AM_MAKEFLAGS) dist \
583 && rm -rf $(DIST_ARCHIVES) \
584 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
585 $(am__remove_distdir)
586 @(echo "$(distdir) archives ready for distribution: "; \
587 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
588 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
589 distuninstallcheck:
590 @cd $(distuninstallcheck_dir) \
591 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
592 || { echo "ERROR: files left after uninstall:" ; \
593 if test -n "$(DESTDIR)"; then \
594 echo " (check DESTDIR support)"; \
595 fi ; \
596 $(distuninstallcheck_listfiles) ; \
597 exit 1; } >&2
598 distcleancheck: distclean
599 @if test '$(srcdir)' = . ; then \
600 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
601 exit 1 ; \
602 fi
603 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
604 || { echo "ERROR: files left in build directory after distclean:" ; \
605 $(distcleancheck_listfiles) ; \
606 exit 1; } >&2
607 check-am: all-am
608 check: check-recursive
609 all-am: Makefile $(DATA)
610 installdirs: installdirs-recursive
611 installdirs-am:
612 for dir in "$(DESTDIR)$(libhdatedocdir)" "$(DESTDIR)$(pkgconfigdir)"; do \
613 test -z "$$dir" || $(mkdir_p) "$$dir"; \
614 done
615 install: install-recursive
616 install-exec: install-exec-recursive
617 install-data: install-data-recursive
618 uninstall: uninstall-recursive
619
620 install-am: all-am
621 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
622
623 installcheck: installcheck-recursive
624 install-strip:
625 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
626 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
627 `test -z '$(STRIP)' || \
628 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
629 mostlyclean-generic:
630
631 clean-generic:
632
633 distclean-generic:
634 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
635
636 maintainer-clean-generic:
637 @echo "This command is intended for maintainers to use"
638 @echo "it deletes files that may require special tools to rebuild."
639 clean: clean-recursive
640
641 clean-am: clean-generic clean-libtool mostlyclean-am
642
643 distclean: distclean-recursive
644 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
645 -rm -f Makefile
646 distclean-am: clean-am distclean-generic distclean-libtool \
647 distclean-tags
648
649 dvi: dvi-recursive
650
651 dvi-am:
652
653 html: html-recursive
654
655 info: info-recursive
656
657 info-am:
658
659 install-data-am: install-libhdatedocDATA install-pkgconfigDATA
660
661 install-exec-am:
662
663 install-info: install-info-recursive
664
665 install-man:
666
667 installcheck-am:
668
669 maintainer-clean: maintainer-clean-recursive
670 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
671 -rm -rf $(top_srcdir)/autom4te.cache
672 -rm -f Makefile
673 maintainer-clean-am: distclean-am maintainer-clean-generic
674
675 mostlyclean: mostlyclean-recursive
676
677 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
678
679 pdf: pdf-recursive
680
681 pdf-am:
682
683 ps: ps-recursive
684
685 ps-am:
686
687 uninstall-am: uninstall-info-am uninstall-libhdatedocDATA \
688 uninstall-pkgconfigDATA
689
690 uninstall-info: uninstall-info-recursive
691
692 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
693 check-am clean clean-generic clean-libtool clean-recursive \
694 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
695 dist-shar dist-tarZ dist-zip distcheck distclean \
696 distclean-generic distclean-libtool distclean-recursive \
697 distclean-tags distcleancheck distdir distuninstallcheck dvi \
698 dvi-am html html-am info info-am install install-am \
699 install-data install-data-am install-exec install-exec-am \
700 install-info install-info-am install-libhdatedocDATA \
701 install-man install-pkgconfigDATA install-strip installcheck \
702 installcheck-am installdirs installdirs-am maintainer-clean \
703 maintainer-clean-generic maintainer-clean-recursive \
704 mostlyclean mostlyclean-generic mostlyclean-libtool \
705 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
706 uninstall uninstall-am uninstall-info-am \
707 uninstall-libhdatedocDATA uninstall-pkgconfigDATA
708
709 # Tell versions [3.59,3.63) of GNU make to not export all variables.
710 # Otherwise a system limit (for SysV at least) may be exceeded.
711 .NOEXPORT:
(New empty file)
0 Libhdate -
1
2 LibHdate is a small C,C++ library for Hebrew calendar, dates, holidays, and reading sequence
3
4 This library of functions are using the sorce code from
5 Amos Shapir's "hdate" package fixed and patched by Nadav Har'El.
6 See the original package's README (hdate_README)
7
8 LibHdate is a small C,C++ library for Hebrew dates,
9 holidays, and reading sequence (parasha). It is using
10 the sorce code from Amos Shapir's "hdate" package fixed and
11 patched by Nadav Har'El. The Torah reading sequence
12 is from tables by Zvi Har'El.
13
14 15 Adar II 5763 Shusan Purim, 19 March 2003
15 kobi zamir <kzamir@walla.co.il>
16 -------------------------------------
17
18 see USE file for usage.
19
20 -------------------------------------
21 -------------------------------------
22
23 Below is the original README file from hdate 0.5p by Amos Shapir.
24
25 --------------------------------------
26
27 This is Amos Shapir's "hdate" package fixed and patched by Nadav Har'El.
28 Below is the original package's README - see NEWS for what changed.
29
30 ------------------------------------------------------------------------------
31 This is the 5th distribution of hdate/hcal. It should be portable
32 anywhere, but for machines which have sizeof(int) != sizeof(long), you
33 may have to change a few 'int's to 'long', and suffix 'L' to some
34 constants; sorry, I have no way to tell which. It also expects the UNIX
35 "time.h" structures, but that shouldn't be hard to change to fit other
36 systems. If you port the code to any other system, please send the
37 diffs to the author for inclusion in the next release.
38
39 The files included herein are:
40 README - this file.
41 explain - an explanation of the algorithm.
42 hdate.6 - the man page (nroff/troff source).
43 Makefile
44 hdate.h - common definitions.
45 hdate.c - main source file for hdate.
46 hcal.c - main source file for hcal.
47 hcom.c - code common to both hdate & hcal.
48
49 Compilation options:
50
51 HEBREW - make a version that prints on a Hebrew printer/terminal, given
52 the "-h" flag. All Hebrew words are initialized in left-to-right
53 lower-case letters, and passed through the function rev() for
54 conversion. I have included a function which reverses them to
55 right-to-left order, and optionally converts to the ISO-8859/8 standard
56 or IBM representation. You may need to write your own rev() function to
57 convert to what your printer expects, or else delete it and pipe the
58 output through "rev", "tr" or "sed".
59
60 USA_DATE - make hdate accept the arguments as "month day year" instead
61 of the default "day month year" (note that hdate.6 has to be changed to
62 document this order).
63
64 Good Luck,
65 Amos Shapir
66 July 1992 - Tamuz 5752
67
68 Net: amos@cs.cs.huji.ac.il
69 Paper: The Hebrew Univ. of Jerusalem, Dept. of Comp. Science.
70 Givat-Ram, Jerusalem 91904, Israel
71 Tel: +972 2 585706 GEO: 35 11 46 E / 31 46 21 N
72
0 use:
1 ----
2 gcc -c `pkg-config --cflags libhdate` <your code>.c
3 gcc `pkg-config --libs libhdate` <your code>.o -o <program name>
4
5
6 if you dont have pkg-config:
7 ----------------------------
8
9 gcc -c <your code>.c
10 gcc -lm -lhdate <your code>.o -o <program name>
11
12
13 kobi zamir <kzamir@walla.co.il>
14 -------------------------------------
15
16 -------------------------------
17 example code:
18 file: test.c
19 -------------------------------
20
21 #include <stdio.h>
22 #include <hdate.h>
23
24 #define TRUE 1
25 #define FALSE 0
26
27 int
28 main()
29 {
30 hdate_struct *h;
31
32 h = hdate_hdate( 0,0,0);
33
34 printf ("%s\n", hdate_get_format_date (h, FALSE) );
35
36 return 0;
37 }
38
39 --------------------------------
40 compile:
41 --------------------------------
42
43 gcc -lm -lhdate test.c -o test
44
45 --------------------------------
46 run:
47 --------------------------------
48
49 ./test
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 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 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
14
15 # serial 51 Debian 1.5.24-2 AC_PROG_LIBTOOL
16
17
18 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
19 # -----------------------------------------------------------
20 # If this macro is not defined by Autoconf, define it here.
21 m4_ifdef([AC_PROVIDE_IFELSE],
22 [],
23 [m4_define([AC_PROVIDE_IFELSE],
24 [m4_ifdef([AC_PROVIDE_$1],
25 [$2], [$3])])])
26
27
28 # AC_PROG_LIBTOOL
29 # ---------------
30 AC_DEFUN([AC_PROG_LIBTOOL],
31 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
32 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
33 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
34 AC_PROVIDE_IFELSE([AC_PROG_CXX],
35 [AC_LIBTOOL_CXX],
36 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
37 ])])
38 dnl And a similar setup for Fortran 77 support
39 AC_PROVIDE_IFELSE([AC_PROG_F77],
40 [AC_LIBTOOL_F77],
41 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
42 ])])
43
44 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
45 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
46 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
47 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
48 [AC_LIBTOOL_GCJ],
49 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
50 [AC_LIBTOOL_GCJ],
51 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
52 [AC_LIBTOOL_GCJ],
53 [ifdef([AC_PROG_GCJ],
54 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
55 ifdef([A][M_PROG_GCJ],
56 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
57 ifdef([LT_AC_PROG_GCJ],
58 [define([LT_AC_PROG_GCJ],
59 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
60 ])])# AC_PROG_LIBTOOL
61
62
63 # _AC_PROG_LIBTOOL
64 # ----------------
65 AC_DEFUN([_AC_PROG_LIBTOOL],
66 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
67 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
68 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
69 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
70
71 # This can be used to rebuild libtool when needed
72 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
73
74 # Always use our own libtool.
75 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
76 AC_SUBST(LIBTOOL)dnl
77
78 # Prevent multiple expansion
79 define([AC_PROG_LIBTOOL], [])
80 ])# _AC_PROG_LIBTOOL
81
82
83 # AC_LIBTOOL_SETUP
84 # ----------------
85 AC_DEFUN([AC_LIBTOOL_SETUP],
86 [AC_PREREQ(2.50)dnl
87 AC_REQUIRE([AC_ENABLE_SHARED])dnl
88 AC_REQUIRE([AC_ENABLE_STATIC])dnl
89 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
90 AC_REQUIRE([AC_CANONICAL_HOST])dnl
91 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
92 AC_REQUIRE([AC_PROG_CC])dnl
93 AC_REQUIRE([AC_PROG_LD])dnl
94 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
95 AC_REQUIRE([AC_PROG_NM])dnl
96
97 AC_REQUIRE([AC_PROG_LN_S])dnl
98 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
99 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
100 AC_REQUIRE([AC_OBJEXT])dnl
101 AC_REQUIRE([AC_EXEEXT])dnl
102 dnl
103
104 AC_LIBTOOL_SYS_MAX_CMD_LEN
105 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
106 AC_LIBTOOL_OBJDIR
107
108 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
109 _LT_AC_PROG_ECHO_BACKSLASH
110
111 case $host_os in
112 aix3*)
113 # AIX sometimes has problems with the GCC collect2 program. For some
114 # reason, if we set the COLLECT_NAMES environment variable, the problems
115 # vanish in a puff of smoke.
116 if test "X${COLLECT_NAMES+set}" != Xset; then
117 COLLECT_NAMES=
118 export COLLECT_NAMES
119 fi
120 ;;
121 esac
122
123 # Sed substitution that helps us do robust quoting. It backslashifies
124 # metacharacters that are still active within double-quoted strings.
125 Xsed='sed -e 1s/^X//'
126 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
127
128 # Same as above, but do not quote variable references.
129 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
130
131 # Sed substitution to delay expansion of an escaped shell variable in a
132 # double_quote_subst'ed string.
133 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
134
135 # Sed substitution to avoid accidental globbing in evaled expressions
136 no_glob_subst='s/\*/\\\*/g'
137
138 # Constants:
139 rm="rm -f"
140
141 # Global variables:
142 default_ofile=libtool
143 can_build_shared=yes
144
145 # All known linkers require a `.a' archive for static linking (except MSVC,
146 # which needs '.lib').
147 libext=a
148 ltmain="$ac_aux_dir/ltmain.sh"
149 ofile="$default_ofile"
150 with_gnu_ld="$lt_cv_prog_gnu_ld"
151
152 AC_CHECK_TOOL(AR, ar, false)
153 AC_CHECK_TOOL(RANLIB, ranlib, :)
154 AC_CHECK_TOOL(STRIP, strip, :)
155
156 old_CC="$CC"
157 old_CFLAGS="$CFLAGS"
158
159 # Set sane defaults for various variables
160 test -z "$AR" && AR=ar
161 test -z "$AR_FLAGS" && AR_FLAGS=cru
162 test -z "$AS" && AS=as
163 test -z "$CC" && CC=cc
164 test -z "$LTCC" && LTCC=$CC
165 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
166 test -z "$DLLTOOL" && DLLTOOL=dlltool
167 test -z "$LD" && LD=ld
168 test -z "$LN_S" && LN_S="ln -s"
169 test -z "$MAGIC_CMD" && MAGIC_CMD=file
170 test -z "$NM" && NM=nm
171 test -z "$SED" && SED=sed
172 test -z "$OBJDUMP" && OBJDUMP=objdump
173 test -z "$RANLIB" && RANLIB=:
174 test -z "$STRIP" && STRIP=:
175 test -z "$ac_objext" && ac_objext=o
176
177 # Determine commands to create old-style static archives.
178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
179 old_postinstall_cmds='chmod 644 $oldlib'
180 old_postuninstall_cmds=
181
182 if test -n "$RANLIB"; then
183 case $host_os in
184 openbsd*)
185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
186 ;;
187 *)
188 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
189 ;;
190 esac
191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
192 fi
193
194 _LT_CC_BASENAME([$compiler])
195
196 # Only perform the check for file, if the check method requires it
197 case $deplibs_check_method in
198 file_magic*)
199 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
200 AC_PATH_MAGIC
201 fi
202 ;;
203 esac
204
205 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
206 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
207 enable_win32_dll=yes, enable_win32_dll=no)
208
209 AC_ARG_ENABLE([libtool-lock],
210 [AC_HELP_STRING([--disable-libtool-lock],
211 [avoid locking (might break parallel builds)])])
212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
213
214 AC_ARG_WITH([pic],
215 [AC_HELP_STRING([--with-pic],
216 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
217 [pic_mode="$withval"],
218 [pic_mode=default])
219 test -z "$pic_mode" && pic_mode=default
220
221 # Use C for the default configuration in the libtool script
222 tagname=
223 AC_LIBTOOL_LANG_C_CONFIG
224 _LT_AC_TAGCONFIG
225 ])# AC_LIBTOOL_SETUP
226
227
228 # _LT_AC_SYS_COMPILER
229 # -------------------
230 AC_DEFUN([_LT_AC_SYS_COMPILER],
231 [AC_REQUIRE([AC_PROG_CC])dnl
232
233 # If no C compiler was specified, use CC.
234 LTCC=${LTCC-"$CC"}
235
236 # If no C compiler flags were specified, use CFLAGS.
237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
238
239 # Allow CC to be a program name with arguments.
240 compiler=$CC
241 ])# _LT_AC_SYS_COMPILER
242
243
244 # _LT_CC_BASENAME(CC)
245 # -------------------
246 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
247 AC_DEFUN([_LT_CC_BASENAME],
248 [for cc_temp in $1""; do
249 case $cc_temp in
250 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
251 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
252 \-*) ;;
253 *) break;;
254 esac
255 done
256 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
257 ])
258
259
260 # _LT_COMPILER_BOILERPLATE
261 # ------------------------
262 # Check for compiler boilerplate output or warnings with
263 # the simple compiler test code.
264 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
265 [AC_REQUIRE([LT_AC_PROG_SED])dnl
266 ac_outfile=conftest.$ac_objext
267 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
268 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269 _lt_compiler_boilerplate=`cat conftest.err`
270 $rm conftest*
271 ])# _LT_COMPILER_BOILERPLATE
272
273
274 # _LT_LINKER_BOILERPLATE
275 # ----------------------
276 # Check for linker boilerplate output or warnings with
277 # the simple link test code.
278 AC_DEFUN([_LT_LINKER_BOILERPLATE],
279 [AC_REQUIRE([LT_AC_PROG_SED])dnl
280 ac_outfile=conftest.$ac_objext
281 echo "$lt_simple_link_test_code" >conftest.$ac_ext
282 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
283 _lt_linker_boilerplate=`cat conftest.err`
284 $rm conftest*
285 ])# _LT_LINKER_BOILERPLATE
286
287
288 # _LT_AC_SYS_LIBPATH_AIX
289 # ----------------------
290 # Links a minimal program and checks the executable
291 # for the system default hardcoded library path. In most cases,
292 # this is /usr/lib:/lib, but when the MPI compilers are used
293 # the location of the communication and MPI libs are included too.
294 # If we don't find anything, use the default library path according
295 # to the aix ld manual.
296 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
297 [AC_REQUIRE([LT_AC_PROG_SED])dnl
298 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
299 lt_aix_libpath_sed='
300 /Import File Strings/,/^$/ {
301 /^0/ {
302 s/^0 *\(.*\)$/\1/
303 p
304 }
305 }'
306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
307 # Check for a 64-bit object if we didn't find anything.
308 if test -z "$aix_libpath"; then
309 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
310 fi],[])
311 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
312 ])# _LT_AC_SYS_LIBPATH_AIX
313
314
315 # _LT_AC_SHELL_INIT(ARG)
316 # ----------------------
317 AC_DEFUN([_LT_AC_SHELL_INIT],
318 [ifdef([AC_DIVERSION_NOTICE],
319 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
320 [AC_DIVERT_PUSH(NOTICE)])
321 $1
322 AC_DIVERT_POP
323 ])# _LT_AC_SHELL_INIT
324
325
326 # _LT_AC_PROG_ECHO_BACKSLASH
327 # --------------------------
328 # Add some code to the start of the generated configure script which
329 # will find an echo command which doesn't interpret backslashes.
330 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
331 [_LT_AC_SHELL_INIT([
332 # Check that we are running under the correct shell.
333 SHELL=${CONFIG_SHELL-/bin/sh}
334
335 case X$ECHO in
336 X*--fallback-echo)
337 # Remove one level of quotation (which was required for Make).
338 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
339 ;;
340 esac
341
342 echo=${ECHO-echo}
343 if test "X[$]1" = X--no-reexec; then
344 # Discard the --no-reexec flag, and continue.
345 shift
346 elif test "X[$]1" = X--fallback-echo; then
347 # Avoid inline document here, it may be left over
348 :
349 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
350 # Yippee, $echo works!
351 :
352 else
353 # Restart under the correct shell.
354 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
355 fi
356
357 if test "X[$]1" = X--fallback-echo; then
358 # used as fallback echo
359 shift
360 cat <<EOF
361 [$]*
362 EOF
363 exit 0
364 fi
365
366 # The HP-UX ksh and POSIX shell print the target directory to stdout
367 # if CDPATH is set.
368 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
369
370 if test -z "$ECHO"; then
371 if test "X${echo_test_string+set}" != Xset; then
372 # find a string as large as possible, as long as the shell can cope with it
373 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
374 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
375 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
376 echo_test_string=`eval $cmd` &&
377 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
378 then
379 break
380 fi
381 done
382 fi
383
384 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
385 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
386 test "X$echo_testing_string" = "X$echo_test_string"; then
387 :
388 else
389 # The Solaris, AIX, and Digital Unix default echo programs unquote
390 # backslashes. This makes it impossible to quote backslashes using
391 # echo "$something" | sed 's/\\/\\\\/g'
392 #
393 # So, first we look for a working echo in the user's PATH.
394
395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
396 for dir in $PATH /usr/ucb; do
397 IFS="$lt_save_ifs"
398 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
399 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
400 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
401 test "X$echo_testing_string" = "X$echo_test_string"; then
402 echo="$dir/echo"
403 break
404 fi
405 done
406 IFS="$lt_save_ifs"
407
408 if test "X$echo" = Xecho; then
409 # We didn't find a better echo, so look for alternatives.
410 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
411 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
412 test "X$echo_testing_string" = "X$echo_test_string"; then
413 # This shell has a builtin print -r that does the trick.
414 echo='print -r'
415 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
416 test "X$CONFIG_SHELL" != X/bin/ksh; then
417 # If we have ksh, try running configure again with it.
418 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
419 export ORIGINAL_CONFIG_SHELL
420 CONFIG_SHELL=/bin/ksh
421 export CONFIG_SHELL
422 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
423 else
424 # Try using printf.
425 echo='printf %s\n'
426 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
427 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
428 test "X$echo_testing_string" = "X$echo_test_string"; then
429 # Cool, printf works
430 :
431 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
432 test "X$echo_testing_string" = 'X\t' &&
433 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
434 test "X$echo_testing_string" = "X$echo_test_string"; then
435 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
436 export CONFIG_SHELL
437 SHELL="$CONFIG_SHELL"
438 export SHELL
439 echo="$CONFIG_SHELL [$]0 --fallback-echo"
440 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
441 test "X$echo_testing_string" = 'X\t' &&
442 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
443 test "X$echo_testing_string" = "X$echo_test_string"; then
444 echo="$CONFIG_SHELL [$]0 --fallback-echo"
445 else
446 # maybe with a smaller string...
447 prev=:
448
449 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
450 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
451 then
452 break
453 fi
454 prev="$cmd"
455 done
456
457 if test "$prev" != 'sed 50q "[$]0"'; then
458 echo_test_string=`eval $prev`
459 export echo_test_string
460 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
461 else
462 # Oops. We lost completely, so just stick with echo.
463 echo=echo
464 fi
465 fi
466 fi
467 fi
468 fi
469 fi
470
471 # Copy echo and quote the copy suitably for passing to libtool from
472 # the Makefile, instead of quoting the original, which is used later.
473 ECHO=$echo
474 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
475 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
476 fi
477
478 AC_SUBST(ECHO)
479 ])])# _LT_AC_PROG_ECHO_BACKSLASH
480
481
482 # _LT_AC_LOCK
483 # -----------
484 AC_DEFUN([_LT_AC_LOCK],
485 [AC_ARG_ENABLE([libtool-lock],
486 [AC_HELP_STRING([--disable-libtool-lock],
487 [avoid locking (might break parallel builds)])])
488 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
489
490 # Some flags need to be propagated to the compiler or linker for good
491 # libtool support.
492 case $host in
493 ia64-*-hpux*)
494 # Find out which ABI we are using.
495 echo 'int i;' > conftest.$ac_ext
496 if AC_TRY_EVAL(ac_compile); then
497 case `/usr/bin/file conftest.$ac_objext` in
498 *ELF-32*)
499 HPUX_IA64_MODE="32"
500 ;;
501 *ELF-64*)
502 HPUX_IA64_MODE="64"
503 ;;
504 esac
505 fi
506 rm -rf conftest*
507 ;;
508 *-*-irix6*)
509 # Find out which ABI we are using.
510 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
511 if AC_TRY_EVAL(ac_compile); then
512 if test "$lt_cv_prog_gnu_ld" = yes; then
513 case `/usr/bin/file conftest.$ac_objext` in
514 *32-bit*)
515 LD="${LD-ld} -melf32bsmip"
516 ;;
517 *N32*)
518 LD="${LD-ld} -melf32bmipn32"
519 ;;
520 *64-bit*)
521 LD="${LD-ld} -melf64bmip"
522 ;;
523 esac
524 else
525 case `/usr/bin/file conftest.$ac_objext` in
526 *32-bit*)
527 LD="${LD-ld} -32"
528 ;;
529 *N32*)
530 LD="${LD-ld} -n32"
531 ;;
532 *64-bit*)
533 LD="${LD-ld} -64"
534 ;;
535 esac
536 fi
537 fi
538 rm -rf conftest*
539 ;;
540
541 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
542 s390*-*linux*|sparc*-*linux*)
543 # Find out which ABI we are using.
544 echo 'int i;' > conftest.$ac_ext
545 if AC_TRY_EVAL(ac_compile); then
546 case `/usr/bin/file conftest.o` in
547 *32-bit*)
548 case $host in
549 x86_64-*kfreebsd*-gnu)
550 LD="${LD-ld} -m elf_i386_fbsd"
551 ;;
552 x86_64-*linux*)
553 LD="${LD-ld} -m elf_i386"
554 ;;
555 ppc64-*linux*|powerpc64-*linux*)
556 LD="${LD-ld} -m elf32ppclinux"
557 ;;
558 s390x-*linux*)
559 LD="${LD-ld} -m elf_s390"
560 ;;
561 sparc64-*linux*)
562 LD="${LD-ld} -m elf32_sparc"
563 ;;
564 esac
565 ;;
566 *64-bit*)
567 case $host in
568 x86_64-*kfreebsd*-gnu)
569 LD="${LD-ld} -m elf_x86_64_fbsd"
570 ;;
571 x86_64-*linux*)
572 LD="${LD-ld} -m elf_x86_64"
573 ;;
574 ppc*-*linux*|powerpc*-*linux*)
575 LD="${LD-ld} -m elf64ppc"
576 ;;
577 s390*-*linux*)
578 LD="${LD-ld} -m elf64_s390"
579 ;;
580 sparc*-*linux*)
581 LD="${LD-ld} -m elf64_sparc"
582 ;;
583 esac
584 ;;
585 esac
586 fi
587 rm -rf conftest*
588 ;;
589
590 *-*-sco3.2v5*)
591 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
592 SAVE_CFLAGS="$CFLAGS"
593 CFLAGS="$CFLAGS -belf"
594 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
595 [AC_LANG_PUSH(C)
596 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
597 AC_LANG_POP])
598 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
599 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
600 CFLAGS="$SAVE_CFLAGS"
601 fi
602 ;;
603 sparc*-*solaris*)
604 # Find out which ABI we are using.
605 echo 'int i;' > conftest.$ac_ext
606 if AC_TRY_EVAL(ac_compile); then
607 case `/usr/bin/file conftest.o` in
608 *64-bit*)
609 case $lt_cv_prog_gnu_ld in
610 yes*) LD="${LD-ld} -m elf64_sparc" ;;
611 *) LD="${LD-ld} -64" ;;
612 esac
613 ;;
614 esac
615 fi
616 rm -rf conftest*
617 ;;
618
619 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
620 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
621 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
622 AC_CHECK_TOOL(AS, as, false)
623 AC_CHECK_TOOL(OBJDUMP, objdump, false)
624 ;;
625 ])
626 esac
627
628 need_locks="$enable_libtool_lock"
629
630 ])# _LT_AC_LOCK
631
632
633 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
634 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
635 # ----------------------------------------------------------------
636 # Check whether the given compiler option works
637 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
638 [AC_REQUIRE([LT_AC_PROG_SED])
639 AC_CACHE_CHECK([$1], [$2],
640 [$2=no
641 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
643 lt_compiler_flag="$3"
644 # Insert the option either (1) after the last *FLAGS variable, or
645 # (2) before a word containing "conftest.", or (3) at the end.
646 # Note that $ac_compile itself does not contain backslashes and begins
647 # with a dollar sign (not a hyphen), so the echo should work correctly.
648 # The option is referenced via a variable to avoid confusing sed.
649 lt_compile=`echo "$ac_compile" | $SED \
650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
651 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
652 -e 's:$: $lt_compiler_flag:'`
653 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
654 (eval "$lt_compile" 2>conftest.err)
655 ac_status=$?
656 cat conftest.err >&AS_MESSAGE_LOG_FD
657 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
658 if (exit $ac_status) && test -s "$ac_outfile"; then
659 # The compiler can only warn and ignore the option if not recognized
660 # So say no if there are warnings other than the usual output.
661 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
664 $2=yes
665 fi
666 fi
667 $rm conftest*
668 ])
669
670 if test x"[$]$2" = xyes; then
671 ifelse([$5], , :, [$5])
672 else
673 ifelse([$6], , :, [$6])
674 fi
675 ])# AC_LIBTOOL_COMPILER_OPTION
676
677
678 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
679 # [ACTION-SUCCESS], [ACTION-FAILURE])
680 # ------------------------------------------------------------
681 # Check whether the given compiler option works
682 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
683 [AC_REQUIRE([LT_AC_PROG_SED])dnl
684 AC_CACHE_CHECK([$1], [$2],
685 [$2=no
686 save_LDFLAGS="$LDFLAGS"
687 LDFLAGS="$LDFLAGS $3"
688 echo "$lt_simple_link_test_code" > conftest.$ac_ext
689 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
690 # The linker can only warn and ignore the option if not recognized
691 # So say no if there are warnings
692 if test -s conftest.err; then
693 # Append any errors to the config.log.
694 cat conftest.err 1>&AS_MESSAGE_LOG_FD
695 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
697 if diff conftest.exp conftest.er2 >/dev/null; then
698 $2=yes
699 fi
700 else
701 $2=yes
702 fi
703 fi
704 $rm conftest*
705 LDFLAGS="$save_LDFLAGS"
706 ])
707
708 if test x"[$]$2" = xyes; then
709 ifelse([$4], , :, [$4])
710 else
711 ifelse([$5], , :, [$5])
712 fi
713 ])# AC_LIBTOOL_LINKER_OPTION
714
715
716 # AC_LIBTOOL_SYS_MAX_CMD_LEN
717 # --------------------------
718 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
719 [# find the maximum length of command line arguments
720 AC_MSG_CHECKING([the maximum length of command line arguments])
721 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
722 i=0
723 teststring="ABCD"
724
725 case $build_os in
726 msdosdjgpp*)
727 # On DJGPP, this test can blow up pretty badly due to problems in libc
728 # (any single argument exceeding 2000 bytes causes a buffer overrun
729 # during glob expansion). Even if it were fixed, the result of this
730 # check would be larger than it should be.
731 lt_cv_sys_max_cmd_len=12288; # 12K is about right
732 ;;
733
734 gnu*)
735 # Under GNU Hurd, this test is not required because there is
736 # no limit to the length of command line arguments.
737 # Libtool will interpret -1 as no limit whatsoever
738 lt_cv_sys_max_cmd_len=-1;
739 ;;
740
741 cygwin* | mingw*)
742 # On Win9x/ME, this test blows up -- it succeeds, but takes
743 # about 5 minutes as the teststring grows exponentially.
744 # Worse, since 9x/ME are not pre-emptively multitasking,
745 # you end up with a "frozen" computer, even though with patience
746 # the test eventually succeeds (with a max line length of 256k).
747 # Instead, let's just punt: use the minimum linelength reported by
748 # all of the supported platforms: 8192 (on NT/2K/XP).
749 lt_cv_sys_max_cmd_len=8192;
750 ;;
751
752 amigaos*)
753 # On AmigaOS with pdksh, this test takes hours, literally.
754 # So we just punt and use a minimum line length of 8192.
755 lt_cv_sys_max_cmd_len=8192;
756 ;;
757
758 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
759 # This has been around since 386BSD, at least. Likely further.
760 if test -x /sbin/sysctl; then
761 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
762 elif test -x /usr/sbin/sysctl; then
763 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
764 else
765 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
766 fi
767 # And add a safety zone
768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
770 ;;
771
772 interix*)
773 # We know the value 262144 and hardcode it with a safety zone (like BSD)
774 lt_cv_sys_max_cmd_len=196608
775 ;;
776
777 osf*)
778 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
779 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
780 # nice to cause kernel panics so lets avoid the loop below.
781 # First set a reasonable default.
782 lt_cv_sys_max_cmd_len=16384
783 #
784 if test -x /sbin/sysconfig; then
785 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
786 *1*) lt_cv_sys_max_cmd_len=-1 ;;
787 esac
788 fi
789 ;;
790 sco3.2v5*)
791 lt_cv_sys_max_cmd_len=102400
792 ;;
793 sysv5* | sco5v6* | sysv4.2uw2*)
794 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
795 if test -n "$kargmax"; then
796 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
797 else
798 lt_cv_sys_max_cmd_len=32768
799 fi
800 ;;
801 *)
802 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
803 if test -n "$lt_cv_sys_max_cmd_len"; then
804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
806 else
807 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
808 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
809 = "XX$teststring") >/dev/null 2>&1 &&
810 new_result=`expr "X$teststring" : ".*" 2>&1` &&
811 lt_cv_sys_max_cmd_len=$new_result &&
812 test $i != 17 # 1/2 MB should be enough
813 do
814 i=`expr $i + 1`
815 teststring=$teststring$teststring
816 done
817 teststring=
818 # Add a significant safety factor because C++ compilers can tack on massive
819 # amounts of additional arguments before passing them to the linker.
820 # It appears as though 1/2 is a usable value.
821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
822 fi
823 ;;
824 esac
825 ])
826 if test -n $lt_cv_sys_max_cmd_len ; then
827 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
828 else
829 AC_MSG_RESULT(none)
830 fi
831 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
832
833
834 # _LT_AC_CHECK_DLFCN
835 # ------------------
836 AC_DEFUN([_LT_AC_CHECK_DLFCN],
837 [AC_CHECK_HEADERS(dlfcn.h)dnl
838 ])# _LT_AC_CHECK_DLFCN
839
840
841 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
842 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
843 # ---------------------------------------------------------------------
844 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
845 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
846 if test "$cross_compiling" = yes; then :
847 [$4]
848 else
849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
850 lt_status=$lt_dlunknown
851 cat > conftest.$ac_ext <<EOF
852 [#line __oline__ "configure"
853 #include "confdefs.h"
854
855 #if HAVE_DLFCN_H
856 #include <dlfcn.h>
857 #endif
858
859 #include <stdio.h>
860
861 #ifdef RTLD_GLOBAL
862 # define LT_DLGLOBAL RTLD_GLOBAL
863 #else
864 # ifdef DL_GLOBAL
865 # define LT_DLGLOBAL DL_GLOBAL
866 # else
867 # define LT_DLGLOBAL 0
868 # endif
869 #endif
870
871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
872 find out it does not work in some platform. */
873 #ifndef LT_DLLAZY_OR_NOW
874 # ifdef RTLD_LAZY
875 # define LT_DLLAZY_OR_NOW RTLD_LAZY
876 # else
877 # ifdef DL_LAZY
878 # define LT_DLLAZY_OR_NOW DL_LAZY
879 # else
880 # ifdef RTLD_NOW
881 # define LT_DLLAZY_OR_NOW RTLD_NOW
882 # else
883 # ifdef DL_NOW
884 # define LT_DLLAZY_OR_NOW DL_NOW
885 # else
886 # define LT_DLLAZY_OR_NOW 0
887 # endif
888 # endif
889 # endif
890 # endif
891 #endif
892
893 #ifdef __cplusplus
894 extern "C" void exit (int);
895 #endif
896
897 void fnord() { int i=42;}
898 int main ()
899 {
900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
901 int status = $lt_dlunknown;
902
903 if (self)
904 {
905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
906 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
907 /* dlclose (self); */
908 }
909 else
910 puts (dlerror ());
911
912 exit (status);
913 }]
914 EOF
915 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
916 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
917 lt_status=$?
918 case x$lt_status in
919 x$lt_dlno_uscore) $1 ;;
920 x$lt_dlneed_uscore) $2 ;;
921 x$lt_dlunknown|x*) $3 ;;
922 esac
923 else :
924 # compilation failed
925 $3
926 fi
927 fi
928 rm -fr conftest*
929 ])# _LT_AC_TRY_DLOPEN_SELF
930
931
932 # AC_LIBTOOL_DLOPEN_SELF
933 # ----------------------
934 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
935 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
936 if test "x$enable_dlopen" != xyes; then
937 enable_dlopen=unknown
938 enable_dlopen_self=unknown
939 enable_dlopen_self_static=unknown
940 else
941 lt_cv_dlopen=no
942 lt_cv_dlopen_libs=
943
944 case $host_os in
945 beos*)
946 lt_cv_dlopen="load_add_on"
947 lt_cv_dlopen_libs=
948 lt_cv_dlopen_self=yes
949 ;;
950
951 mingw* | pw32*)
952 lt_cv_dlopen="LoadLibrary"
953 lt_cv_dlopen_libs=
954 ;;
955
956 cygwin*)
957 lt_cv_dlopen="dlopen"
958 lt_cv_dlopen_libs=
959 ;;
960
961 darwin*)
962 # if libdl is installed we need to link against it
963 AC_CHECK_LIB([dl], [dlopen],
964 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
965 lt_cv_dlopen="dyld"
966 lt_cv_dlopen_libs=
967 lt_cv_dlopen_self=yes
968 ])
969 ;;
970
971 *)
972 AC_CHECK_FUNC([shl_load],
973 [lt_cv_dlopen="shl_load"],
974 [AC_CHECK_LIB([dld], [shl_load],
975 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
976 [AC_CHECK_FUNC([dlopen],
977 [lt_cv_dlopen="dlopen"],
978 [AC_CHECK_LIB([dl], [dlopen],
979 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
980 [AC_CHECK_LIB([svld], [dlopen],
981 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
982 [AC_CHECK_LIB([dld], [dld_link],
983 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
984 ])
985 ])
986 ])
987 ])
988 ])
989 ;;
990 esac
991
992 if test "x$lt_cv_dlopen" != xno; then
993 enable_dlopen=yes
994 else
995 enable_dlopen=no
996 fi
997
998 case $lt_cv_dlopen in
999 dlopen)
1000 save_CPPFLAGS="$CPPFLAGS"
1001 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1002
1003 save_LDFLAGS="$LDFLAGS"
1004 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1005
1006 save_LIBS="$LIBS"
1007 LIBS="$lt_cv_dlopen_libs $LIBS"
1008
1009 AC_CACHE_CHECK([whether a program can dlopen itself],
1010 lt_cv_dlopen_self, [dnl
1011 _LT_AC_TRY_DLOPEN_SELF(
1012 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1013 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1014 ])
1015
1016 if test "x$lt_cv_dlopen_self" = xyes; then
1017 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1018 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1019 lt_cv_dlopen_self_static, [dnl
1020 _LT_AC_TRY_DLOPEN_SELF(
1021 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1022 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1023 ])
1024 fi
1025
1026 CPPFLAGS="$save_CPPFLAGS"
1027 LDFLAGS="$save_LDFLAGS"
1028 LIBS="$save_LIBS"
1029 ;;
1030 esac
1031
1032 case $lt_cv_dlopen_self in
1033 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1034 *) enable_dlopen_self=unknown ;;
1035 esac
1036
1037 case $lt_cv_dlopen_self_static in
1038 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1039 *) enable_dlopen_self_static=unknown ;;
1040 esac
1041 fi
1042 ])# AC_LIBTOOL_DLOPEN_SELF
1043
1044
1045 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1046 # ---------------------------------
1047 # Check to see if options -c and -o are simultaneously supported by compiler
1048 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1049 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1050 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1051 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1052 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1053 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1054 $rm -r conftest 2>/dev/null
1055 mkdir conftest
1056 cd conftest
1057 mkdir out
1058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1059
1060 lt_compiler_flag="-o out/conftest2.$ac_objext"
1061 # Insert the option either (1) after the last *FLAGS variable, or
1062 # (2) before a word containing "conftest.", or (3) at the end.
1063 # Note that $ac_compile itself does not contain backslashes and begins
1064 # with a dollar sign (not a hyphen), so the echo should work correctly.
1065 lt_compile=`echo "$ac_compile" | $SED \
1066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1067 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1068 -e 's:$: $lt_compiler_flag:'`
1069 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1070 (eval "$lt_compile" 2>out/conftest.err)
1071 ac_status=$?
1072 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1073 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1075 then
1076 # The compiler can only warn and ignore the option if not recognized
1077 # So say no if there are warnings
1078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1081 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1082 fi
1083 fi
1084 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1085 $rm conftest*
1086 # SGI C++ compiler will create directory out/ii_files/ for
1087 # template instantiation
1088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1089 $rm out/* && rmdir out
1090 cd ..
1091 rmdir conftest
1092 $rm conftest*
1093 ])
1094 ])# AC_LIBTOOL_PROG_CC_C_O
1095
1096
1097 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1098 # -----------------------------------------
1099 # Check to see if we can do hard links to lock some files if needed
1100 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1101 [AC_REQUIRE([_LT_AC_LOCK])dnl
1102
1103 hard_links="nottested"
1104 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1105 # do not overwrite the value of need_locks provided by the user
1106 AC_MSG_CHECKING([if we can lock with hard links])
1107 hard_links=yes
1108 $rm conftest*
1109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1110 touch conftest.a
1111 ln conftest.a conftest.b 2>&5 || hard_links=no
1112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1113 AC_MSG_RESULT([$hard_links])
1114 if test "$hard_links" = no; then
1115 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1116 need_locks=warn
1117 fi
1118 else
1119 need_locks=no
1120 fi
1121 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1122
1123
1124 # AC_LIBTOOL_OBJDIR
1125 # -----------------
1126 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1127 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1128 [rm -f .libs 2>/dev/null
1129 mkdir .libs 2>/dev/null
1130 if test -d .libs; then
1131 lt_cv_objdir=.libs
1132 else
1133 # MS-DOS does not allow filenames that begin with a dot.
1134 lt_cv_objdir=_libs
1135 fi
1136 rmdir .libs 2>/dev/null])
1137 objdir=$lt_cv_objdir
1138 ])# AC_LIBTOOL_OBJDIR
1139
1140
1141 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1142 # ----------------------------------------------
1143 # Check hardcoding attributes.
1144 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1145 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1146 _LT_AC_TAGVAR(hardcode_action, $1)=
1147 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1148 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1149 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1150
1151 # We can hardcode non-existant directories.
1152 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1153 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1154 # have to relink, otherwise we might link with an installed library
1155 # when we should be linking with a yet-to-be-installed one
1156 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1157 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1158 # Linking always hardcodes the temporary library directory.
1159 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1160 else
1161 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1162 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1163 fi
1164 else
1165 # We cannot hardcode anything, or else we can only hardcode existing
1166 # directories.
1167 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1168 fi
1169 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1170
1171 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1172 # Fast installation is not supported
1173 enable_fast_install=no
1174 elif test "$shlibpath_overrides_runpath" = yes ||
1175 test "$enable_shared" = no; then
1176 # Fast installation is not necessary
1177 enable_fast_install=needless
1178 fi
1179 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1180
1181
1182 # AC_LIBTOOL_SYS_LIB_STRIP
1183 # ------------------------
1184 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1185 [striplib=
1186 old_striplib=
1187 AC_MSG_CHECKING([whether stripping libraries is possible])
1188 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1189 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1190 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1191 AC_MSG_RESULT([yes])
1192 else
1193 # FIXME - insert some real tests, host_os isn't really good enough
1194 case $host_os in
1195 darwin*)
1196 if test -n "$STRIP" ; then
1197 striplib="$STRIP -x"
1198 old_striplib="$STRIP -S"
1199 AC_MSG_RESULT([yes])
1200 else
1201 AC_MSG_RESULT([no])
1202 fi
1203 ;;
1204 *)
1205 AC_MSG_RESULT([no])
1206 ;;
1207 esac
1208 fi
1209 ])# AC_LIBTOOL_SYS_LIB_STRIP
1210
1211
1212 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1213 # -----------------------------
1214 # PORTME Fill in your ld.so characteristics
1215 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1216 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1217 AC_MSG_CHECKING([dynamic linker characteristics])
1218 library_names_spec=
1219 libname_spec='lib$name'
1220 soname_spec=
1221 shrext_cmds=".so"
1222 postinstall_cmds=
1223 postuninstall_cmds=
1224 finish_cmds=
1225 finish_eval=
1226 shlibpath_var=
1227 shlibpath_overrides_runpath=unknown
1228 version_type=none
1229 dynamic_linker="$host_os ld.so"
1230 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1231 m4_if($1,[],[
1232 if test "$GCC" = yes; then
1233 case $host_os in
1234 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1235 *) lt_awk_arg="/^libraries:/" ;;
1236 esac
1237 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1238 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1239 # if the path contains ";" then we assume it to be the separator
1240 # otherwise default to the standard path separator (i.e. ":") - it is
1241 # assumed that no part of a normal pathname contains ";" but that should
1242 # okay in the real world where ";" in dirpaths is itself problematic.
1243 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1244 else
1245 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1246 fi
1247 # Ok, now we have the path, separated by spaces, we can step through it
1248 # and add multilib dir if necessary.
1249 lt_tmp_lt_search_path_spec=
1250 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1251 for lt_sys_path in $lt_search_path_spec; do
1252 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1253 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1254 else
1255 test -d "$lt_sys_path" && \
1256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1257 fi
1258 done
1259 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1260 BEGIN {RS=" "; FS="/|\n";} {
1261 lt_foo="";
1262 lt_count=0;
1263 for (lt_i = NF; lt_i > 0; lt_i--) {
1264 if ($lt_i != "" && $lt_i != ".") {
1265 if ($lt_i == "..") {
1266 lt_count++;
1267 } else {
1268 if (lt_count == 0) {
1269 lt_foo="/" $lt_i lt_foo;
1270 } else {
1271 lt_count--;
1272 }
1273 }
1274 }
1275 }
1276 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1277 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1278 }'`
1279 sys_lib_search_path_spec=`echo $lt_search_path_spec`
1280 else
1281 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1282 fi])
1283 need_lib_prefix=unknown
1284 hardcode_into_libs=no
1285
1286 # when you set need_version to no, make sure it does not cause -set_version
1287 # flags to be left without arguments
1288 need_version=unknown
1289
1290 case $host_os in
1291 aix3*)
1292 version_type=linux
1293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1294 shlibpath_var=LIBPATH
1295
1296 # AIX 3 has no versioning support, so we append a major version to the name.
1297 soname_spec='${libname}${release}${shared_ext}$major'
1298 ;;
1299
1300 aix4* | aix5*)
1301 version_type=linux
1302 need_lib_prefix=no
1303 need_version=no
1304 hardcode_into_libs=yes
1305 if test "$host_cpu" = ia64; then
1306 # AIX 5 supports IA64
1307 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1308 shlibpath_var=LD_LIBRARY_PATH
1309 else
1310 # With GCC up to 2.95.x, collect2 would create an import file
1311 # for dependence libraries. The import file would start with
1312 # the line `#! .'. This would cause the generated library to
1313 # depend on `.', always an invalid library. This was fixed in
1314 # development snapshots of GCC prior to 3.0.
1315 case $host_os in
1316 aix4 | aix4.[[01]] | aix4.[[01]].*)
1317 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1318 echo ' yes '
1319 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1320 :
1321 else
1322 can_build_shared=no
1323 fi
1324 ;;
1325 esac
1326 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1327 # soname into executable. Probably we can add versioning support to
1328 # collect2, so additional links can be useful in future.
1329 if test "$aix_use_runtimelinking" = yes; then
1330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1331 # instead of lib<name>.a to let people know that these are not
1332 # typical AIX shared libraries.
1333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1334 else
1335 # We preserve .a as extension for shared libraries through AIX4.2
1336 # and later when we are not doing run time linking.
1337 library_names_spec='${libname}${release}.a $libname.a'
1338 soname_spec='${libname}${release}${shared_ext}$major'
1339 fi
1340 shlibpath_var=LIBPATH
1341 fi
1342 ;;
1343
1344 amigaos*)
1345 library_names_spec='$libname.ixlibrary $libname.a'
1346 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1347 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'
1348 ;;
1349
1350 beos*)
1351 library_names_spec='${libname}${shared_ext}'
1352 dynamic_linker="$host_os ld.so"
1353 shlibpath_var=LIBRARY_PATH
1354 ;;
1355
1356 bsdi[[45]]*)
1357 version_type=linux
1358 need_version=no
1359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1360 soname_spec='${libname}${release}${shared_ext}$major'
1361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1362 shlibpath_var=LD_LIBRARY_PATH
1363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1365 # the default ld.so.conf also contains /usr/contrib/lib and
1366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1367 # libtool to hard-code these into programs
1368 ;;
1369
1370 cygwin* | mingw* | pw32*)
1371 version_type=windows
1372 shrext_cmds=".dll"
1373 need_version=no
1374 need_lib_prefix=no
1375
1376 case $GCC,$host_os in
1377 yes,cygwin* | yes,mingw* | yes,pw32*)
1378 library_names_spec='$libname.dll.a'
1379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1380 postinstall_cmds='base_file=`basename \${file}`~
1381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1382 dldir=$destdir/`dirname \$dlpath`~
1383 test -d \$dldir || mkdir -p \$dldir~
1384 $install_prog $dir/$dlname \$dldir/$dlname~
1385 chmod a+x \$dldir/$dlname'
1386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1387 dlpath=$dir/\$dldll~
1388 $rm \$dlpath'
1389 shlibpath_overrides_runpath=yes
1390
1391 case $host_os in
1392 cygwin*)
1393 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1394 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1395 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1396 ;;
1397 mingw*)
1398 # MinGW DLLs use traditional 'lib' prefix
1399 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1400 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1401 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1402 # It is most probably a Windows format PATH printed by
1403 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1404 # path with ; separators, and with drive letters. We can handle the
1405 # drive letters (cygwin fileutils understands them), so leave them,
1406 # especially as we might pass files found there to a mingw objdump,
1407 # which wouldn't understand a cygwinified path. Ahh.
1408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1409 else
1410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1411 fi
1412 ;;
1413 pw32*)
1414 # pw32 DLLs use 'pw' prefix rather than 'lib'
1415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1416 ;;
1417 esac
1418 ;;
1419
1420 *)
1421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1422 ;;
1423 esac
1424 dynamic_linker='Win32 ld.exe'
1425 # FIXME: first we should search . and the directory the executable is in
1426 shlibpath_var=PATH
1427 ;;
1428
1429 darwin* | rhapsody*)
1430 dynamic_linker="$host_os dyld"
1431 version_type=darwin
1432 need_lib_prefix=no
1433 need_version=no
1434 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1435 soname_spec='${libname}${release}${major}$shared_ext'
1436 shlibpath_overrides_runpath=yes
1437 shlibpath_var=DYLD_LIBRARY_PATH
1438 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1439 m4_if([$1], [],[
1440 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1441 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1442 ;;
1443
1444 dgux*)
1445 version_type=linux
1446 need_lib_prefix=no
1447 need_version=no
1448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1449 soname_spec='${libname}${release}${shared_ext}$major'
1450 shlibpath_var=LD_LIBRARY_PATH
1451 ;;
1452
1453 freebsd1*)
1454 dynamic_linker=no
1455 ;;
1456
1457 freebsd* | dragonfly*)
1458 # DragonFly does not have aout. When/if they implement a new
1459 # versioning mechanism, adjust this.
1460 if test -x /usr/bin/objformat; then
1461 objformat=`/usr/bin/objformat`
1462 else
1463 case $host_os in
1464 freebsd[[123]]*) objformat=aout ;;
1465 *) objformat=elf ;;
1466 esac
1467 fi
1468 version_type=freebsd-$objformat
1469 case $version_type in
1470 freebsd-elf*)
1471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1472 need_version=no
1473 need_lib_prefix=no
1474 ;;
1475 freebsd-*)
1476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1477 need_version=yes
1478 ;;
1479 esac
1480 shlibpath_var=LD_LIBRARY_PATH
1481 case $host_os in
1482 freebsd2*)
1483 shlibpath_overrides_runpath=yes
1484 ;;
1485 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1486 shlibpath_overrides_runpath=yes
1487 hardcode_into_libs=yes
1488 ;;
1489 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1490 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1491 shlibpath_overrides_runpath=no
1492 hardcode_into_libs=yes
1493 ;;
1494 *) # from 4.6 on, and DragonFly
1495 shlibpath_overrides_runpath=yes
1496 hardcode_into_libs=yes
1497 ;;
1498 esac
1499 ;;
1500
1501 gnu*)
1502 version_type=linux
1503 need_lib_prefix=no
1504 need_version=no
1505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1506 soname_spec='${libname}${release}${shared_ext}$major'
1507 shlibpath_var=LD_LIBRARY_PATH
1508 hardcode_into_libs=yes
1509 ;;
1510
1511 hpux9* | hpux10* | hpux11*)
1512 # Give a soname corresponding to the major version so that dld.sl refuses to
1513 # link against other versions.
1514 version_type=sunos
1515 need_lib_prefix=no
1516 need_version=no
1517 case $host_cpu in
1518 ia64*)
1519 shrext_cmds='.so'
1520 hardcode_into_libs=yes
1521 dynamic_linker="$host_os dld.so"
1522 shlibpath_var=LD_LIBRARY_PATH
1523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1525 soname_spec='${libname}${release}${shared_ext}$major'
1526 if test "X$HPUX_IA64_MODE" = X32; then
1527 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1528 else
1529 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1530 fi
1531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1532 ;;
1533 hppa*64*)
1534 shrext_cmds='.sl'
1535 hardcode_into_libs=yes
1536 dynamic_linker="$host_os dld.sl"
1537 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1540 soname_spec='${libname}${release}${shared_ext}$major'
1541 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1543 ;;
1544 *)
1545 shrext_cmds='.sl'
1546 dynamic_linker="$host_os dld.sl"
1547 shlibpath_var=SHLIB_PATH
1548 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1550 soname_spec='${libname}${release}${shared_ext}$major'
1551 ;;
1552 esac
1553 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1554 postinstall_cmds='chmod 555 $lib'
1555 ;;
1556
1557 interix[[3-9]]*)
1558 version_type=linux
1559 need_lib_prefix=no
1560 need_version=no
1561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1562 soname_spec='${libname}${release}${shared_ext}$major'
1563 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1564 shlibpath_var=LD_LIBRARY_PATH
1565 shlibpath_overrides_runpath=no
1566 hardcode_into_libs=yes
1567 ;;
1568
1569 irix5* | irix6* | nonstopux*)
1570 case $host_os in
1571 nonstopux*) version_type=nonstopux ;;
1572 *)
1573 if test "$lt_cv_prog_gnu_ld" = yes; then
1574 version_type=linux
1575 else
1576 version_type=irix
1577 fi ;;
1578 esac
1579 need_lib_prefix=no
1580 need_version=no
1581 soname_spec='${libname}${release}${shared_ext}$major'
1582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1583 case $host_os in
1584 irix5* | nonstopux*)
1585 libsuff= shlibsuff=
1586 ;;
1587 *)
1588 case $LD in # libtool.m4 will add one of these switches to LD
1589 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1590 libsuff= shlibsuff= libmagic=32-bit;;
1591 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1592 libsuff=32 shlibsuff=N32 libmagic=N32;;
1593 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1594 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1595 *) libsuff= shlibsuff= libmagic=never-match;;
1596 esac
1597 ;;
1598 esac
1599 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1600 shlibpath_overrides_runpath=no
1601 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1602 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1603 hardcode_into_libs=yes
1604 ;;
1605
1606 # No shared lib support for Linux oldld, aout, or coff.
1607 linux*oldld* | linux*aout* | linux*coff*)
1608 dynamic_linker=no
1609 ;;
1610
1611 # This must be Linux ELF.
1612 linux* | k*bsd*-gnu)
1613 version_type=linux
1614 need_lib_prefix=no
1615 need_version=no
1616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1617 soname_spec='${libname}${release}${shared_ext}$major'
1618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1619 shlibpath_var=LD_LIBRARY_PATH
1620 shlibpath_overrides_runpath=no
1621 # This implies no fast_install, which is unacceptable.
1622 # Some rework will be needed to allow for fast_install
1623 # before this can be enabled.
1624 hardcode_into_libs=yes
1625
1626 # Append ld.so.conf contents to the search path
1627 if test -f /etc/ld.so.conf; then
1628 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' ' '`
1629 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1630 fi
1631
1632 # We used to test for /lib/ld.so.1 and disable shared libraries on
1633 # powerpc, because MkLinux only supported shared libraries with the
1634 # GNU dynamic linker. Since this was broken with cross compilers,
1635 # most powerpc-linux boxes support dynamic linking these days and
1636 # people can always --disable-shared, the test was removed, and we
1637 # assume the GNU/Linux dynamic linker is in use.
1638 dynamic_linker='GNU/Linux ld.so'
1639 ;;
1640
1641 netbsdelf*-gnu)
1642 version_type=linux
1643 need_lib_prefix=no
1644 need_version=no
1645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1646 soname_spec='${libname}${release}${shared_ext}$major'
1647 shlibpath_var=LD_LIBRARY_PATH
1648 shlibpath_overrides_runpath=no
1649 hardcode_into_libs=yes
1650 dynamic_linker='NetBSD ld.elf_so'
1651 ;;
1652
1653 netbsd*)
1654 version_type=sunos
1655 need_lib_prefix=no
1656 need_version=no
1657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1660 dynamic_linker='NetBSD (a.out) ld.so'
1661 else
1662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1663 soname_spec='${libname}${release}${shared_ext}$major'
1664 dynamic_linker='NetBSD ld.elf_so'
1665 fi
1666 shlibpath_var=LD_LIBRARY_PATH
1667 shlibpath_overrides_runpath=yes
1668 hardcode_into_libs=yes
1669 ;;
1670
1671 newsos6)
1672 version_type=linux
1673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1674 shlibpath_var=LD_LIBRARY_PATH
1675 shlibpath_overrides_runpath=yes
1676 ;;
1677
1678 nto-qnx*)
1679 version_type=linux
1680 need_lib_prefix=no
1681 need_version=no
1682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1683 soname_spec='${libname}${release}${shared_ext}$major'
1684 shlibpath_var=LD_LIBRARY_PATH
1685 shlibpath_overrides_runpath=yes
1686 ;;
1687
1688 openbsd*)
1689 version_type=sunos
1690 sys_lib_dlsearch_path_spec="/usr/lib"
1691 need_lib_prefix=no
1692 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1693 case $host_os in
1694 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1695 *) need_version=no ;;
1696 esac
1697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1699 shlibpath_var=LD_LIBRARY_PATH
1700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1701 case $host_os in
1702 openbsd2.[[89]] | openbsd2.[[89]].*)
1703 shlibpath_overrides_runpath=no
1704 ;;
1705 *)
1706 shlibpath_overrides_runpath=yes
1707 ;;
1708 esac
1709 else
1710 shlibpath_overrides_runpath=yes
1711 fi
1712 ;;
1713
1714 os2*)
1715 libname_spec='$name'
1716 shrext_cmds=".dll"
1717 need_lib_prefix=no
1718 library_names_spec='$libname${shared_ext} $libname.a'
1719 dynamic_linker='OS/2 ld.exe'
1720 shlibpath_var=LIBPATH
1721 ;;
1722
1723 osf3* | osf4* | osf5*)
1724 version_type=osf
1725 need_lib_prefix=no
1726 need_version=no
1727 soname_spec='${libname}${release}${shared_ext}$major'
1728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1729 shlibpath_var=LD_LIBRARY_PATH
1730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1732 ;;
1733
1734 rdos*)
1735 dynamic_linker=no
1736 ;;
1737
1738 solaris*)
1739 version_type=linux
1740 need_lib_prefix=no
1741 need_version=no
1742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1743 soname_spec='${libname}${release}${shared_ext}$major'
1744 shlibpath_var=LD_LIBRARY_PATH
1745 shlibpath_overrides_runpath=yes
1746 hardcode_into_libs=yes
1747 # ldd complains unless libraries are executable
1748 postinstall_cmds='chmod +x $lib'
1749 ;;
1750
1751 sunos4*)
1752 version_type=sunos
1753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1755 shlibpath_var=LD_LIBRARY_PATH
1756 shlibpath_overrides_runpath=yes
1757 if test "$with_gnu_ld" = yes; then
1758 need_lib_prefix=no
1759 fi
1760 need_version=yes
1761 ;;
1762
1763 sysv4 | sysv4.3*)
1764 version_type=linux
1765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1766 soname_spec='${libname}${release}${shared_ext}$major'
1767 shlibpath_var=LD_LIBRARY_PATH
1768 case $host_vendor in
1769 sni)
1770 shlibpath_overrides_runpath=no
1771 need_lib_prefix=no
1772 export_dynamic_flag_spec='${wl}-Blargedynsym'
1773 runpath_var=LD_RUN_PATH
1774 ;;
1775 siemens)
1776 need_lib_prefix=no
1777 ;;
1778 motorola)
1779 need_lib_prefix=no
1780 need_version=no
1781 shlibpath_overrides_runpath=no
1782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1783 ;;
1784 esac
1785 ;;
1786
1787 sysv4*MP*)
1788 if test -d /usr/nec ;then
1789 version_type=linux
1790 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1791 soname_spec='$libname${shared_ext}.$major'
1792 shlibpath_var=LD_LIBRARY_PATH
1793 fi
1794 ;;
1795
1796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1797 version_type=freebsd-elf
1798 need_lib_prefix=no
1799 need_version=no
1800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1801 soname_spec='${libname}${release}${shared_ext}$major'
1802 shlibpath_var=LD_LIBRARY_PATH
1803 hardcode_into_libs=yes
1804 if test "$with_gnu_ld" = yes; then
1805 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1806 shlibpath_overrides_runpath=no
1807 else
1808 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1809 shlibpath_overrides_runpath=yes
1810 case $host_os in
1811 sco3.2v5*)
1812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1813 ;;
1814 esac
1815 fi
1816 sys_lib_dlsearch_path_spec='/usr/lib'
1817 ;;
1818
1819 uts4*)
1820 version_type=linux
1821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1822 soname_spec='${libname}${release}${shared_ext}$major'
1823 shlibpath_var=LD_LIBRARY_PATH
1824 ;;
1825
1826 *)
1827 dynamic_linker=no
1828 ;;
1829 esac
1830 AC_MSG_RESULT([$dynamic_linker])
1831 test "$dynamic_linker" = no && can_build_shared=no
1832
1833 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1834 if test "$GCC" = yes; then
1835 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1836 fi
1837 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1838
1839
1840 # _LT_AC_TAGCONFIG
1841 # ----------------
1842 AC_DEFUN([_LT_AC_TAGCONFIG],
1843 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1844 AC_ARG_WITH([tags],
1845 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1846 [include additional configurations @<:@automatic@:>@])],
1847 [tagnames="$withval"])
1848
1849 if test -f "$ltmain" && test -n "$tagnames"; then
1850 if test ! -f "${ofile}"; then
1851 AC_MSG_WARN([output file `$ofile' does not exist])
1852 fi
1853
1854 if test -z "$LTCC"; then
1855 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1856 if test -z "$LTCC"; then
1857 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1858 else
1859 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1860 fi
1861 fi
1862 if test -z "$LTCFLAGS"; then
1863 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1864 fi
1865
1866 # Extract list of available tagged configurations in $ofile.
1867 # Note that this assumes the entire list is on one line.
1868 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1869
1870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1871 for tagname in $tagnames; do
1872 IFS="$lt_save_ifs"
1873 # Check whether tagname contains only valid characters
1874 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1875 "") ;;
1876 *) AC_MSG_ERROR([invalid tag name: $tagname])
1877 ;;
1878 esac
1879
1880 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1881 then
1882 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1883 fi
1884
1885 # Update the list of available tags.
1886 if test -n "$tagname"; then
1887 echo appending configuration tag \"$tagname\" to $ofile
1888
1889 case $tagname in
1890 CXX)
1891 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1892 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1893 (test "X$CXX" != "Xg++"))) ; then
1894 AC_LIBTOOL_LANG_CXX_CONFIG
1895 else
1896 tagname=""
1897 fi
1898 ;;
1899
1900 F77)
1901 if test -n "$F77" && test "X$F77" != "Xno"; then
1902 AC_LIBTOOL_LANG_F77_CONFIG
1903 else
1904 tagname=""
1905 fi
1906 ;;
1907
1908 GCJ)
1909 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1910 AC_LIBTOOL_LANG_GCJ_CONFIG
1911 else
1912 tagname=""
1913 fi
1914 ;;
1915
1916 RC)
1917 AC_LIBTOOL_LANG_RC_CONFIG
1918 ;;
1919
1920 *)
1921 AC_MSG_ERROR([Unsupported tag name: $tagname])
1922 ;;
1923 esac
1924
1925 # Append the new tag name to the list of available tags.
1926 if test -n "$tagname" ; then
1927 available_tags="$available_tags $tagname"
1928 fi
1929 fi
1930 done
1931 IFS="$lt_save_ifs"
1932
1933 # Now substitute the updated list of available tags.
1934 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1935 mv "${ofile}T" "$ofile"
1936 chmod +x "$ofile"
1937 else
1938 rm -f "${ofile}T"
1939 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1940 fi
1941 fi
1942 ])# _LT_AC_TAGCONFIG
1943
1944
1945 # AC_LIBTOOL_DLOPEN
1946 # -----------------
1947 # enable checks for dlopen support
1948 AC_DEFUN([AC_LIBTOOL_DLOPEN],
1949 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1950 ])# AC_LIBTOOL_DLOPEN
1951
1952
1953 # AC_LIBTOOL_WIN32_DLL
1954 # --------------------
1955 # declare package support for building win32 DLLs
1956 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1957 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1958 ])# AC_LIBTOOL_WIN32_DLL
1959
1960
1961 # AC_ENABLE_SHARED([DEFAULT])
1962 # ---------------------------
1963 # implement the --enable-shared flag
1964 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1965 AC_DEFUN([AC_ENABLE_SHARED],
1966 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1967 AC_ARG_ENABLE([shared],
1968 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1969 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1970 [p=${PACKAGE-default}
1971 case $enableval in
1972 yes) enable_shared=yes ;;
1973 no) enable_shared=no ;;
1974 *)
1975 enable_shared=no
1976 # Look at the argument we got. We use all the common list separators.
1977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1978 for pkg in $enableval; do
1979 IFS="$lt_save_ifs"
1980 if test "X$pkg" = "X$p"; then
1981 enable_shared=yes
1982 fi
1983 done
1984 IFS="$lt_save_ifs"
1985 ;;
1986 esac],
1987 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1988 ])# AC_ENABLE_SHARED
1989
1990
1991 # AC_DISABLE_SHARED
1992 # -----------------
1993 # set the default shared flag to --disable-shared
1994 AC_DEFUN([AC_DISABLE_SHARED],
1995 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1996 AC_ENABLE_SHARED(no)
1997 ])# AC_DISABLE_SHARED
1998
1999
2000 # AC_ENABLE_STATIC([DEFAULT])
2001 # ---------------------------
2002 # implement the --enable-static flag
2003 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2004 AC_DEFUN([AC_ENABLE_STATIC],
2005 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2006 AC_ARG_ENABLE([static],
2007 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2008 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2009 [p=${PACKAGE-default}
2010 case $enableval in
2011 yes) enable_static=yes ;;
2012 no) enable_static=no ;;
2013 *)
2014 enable_static=no
2015 # Look at the argument we got. We use all the common list separators.
2016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2017 for pkg in $enableval; do
2018 IFS="$lt_save_ifs"
2019 if test "X$pkg" = "X$p"; then
2020 enable_static=yes
2021 fi
2022 done
2023 IFS="$lt_save_ifs"
2024 ;;
2025 esac],
2026 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2027 ])# AC_ENABLE_STATIC
2028
2029
2030 # AC_DISABLE_STATIC
2031 # -----------------
2032 # set the default static flag to --disable-static
2033 AC_DEFUN([AC_DISABLE_STATIC],
2034 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2035 AC_ENABLE_STATIC(no)
2036 ])# AC_DISABLE_STATIC
2037
2038
2039 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2040 # ---------------------------------
2041 # implement the --enable-fast-install flag
2042 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2043 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2044 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2045 AC_ARG_ENABLE([fast-install],
2046 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2047 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2048 [p=${PACKAGE-default}
2049 case $enableval in
2050 yes) enable_fast_install=yes ;;
2051 no) enable_fast_install=no ;;
2052 *)
2053 enable_fast_install=no
2054 # Look at the argument we got. We use all the common list separators.
2055 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2056 for pkg in $enableval; do
2057 IFS="$lt_save_ifs"
2058 if test "X$pkg" = "X$p"; then
2059 enable_fast_install=yes
2060 fi
2061 done
2062 IFS="$lt_save_ifs"
2063 ;;
2064 esac],
2065 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2066 ])# AC_ENABLE_FAST_INSTALL
2067
2068
2069 # AC_DISABLE_FAST_INSTALL
2070 # -----------------------
2071 # set the default to --disable-fast-install
2072 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2073 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2074 AC_ENABLE_FAST_INSTALL(no)
2075 ])# AC_DISABLE_FAST_INSTALL
2076
2077
2078 # AC_LIBTOOL_PICMODE([MODE])
2079 # --------------------------
2080 # implement the --with-pic flag
2081 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2082 AC_DEFUN([AC_LIBTOOL_PICMODE],
2083 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2084 pic_mode=ifelse($#,1,$1,default)
2085 ])# AC_LIBTOOL_PICMODE
2086
2087
2088 # AC_PROG_EGREP
2089 # -------------
2090 # This is predefined starting with Autoconf 2.54, so this conditional
2091 # definition can be removed once we require Autoconf 2.54 or later.
2092 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2093 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2094 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2095 then ac_cv_prog_egrep='grep -E'
2096 else ac_cv_prog_egrep='egrep'
2097 fi])
2098 EGREP=$ac_cv_prog_egrep
2099 AC_SUBST([EGREP])
2100 ])])
2101
2102
2103 # AC_PATH_TOOL_PREFIX
2104 # -------------------
2105 # find a file program which can recognize shared library
2106 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2107 [AC_REQUIRE([AC_PROG_EGREP])dnl
2108 AC_MSG_CHECKING([for $1])
2109 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2110 [case $MAGIC_CMD in
2111 [[\\/*] | ?:[\\/]*])
2112 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2113 ;;
2114 *)
2115 lt_save_MAGIC_CMD="$MAGIC_CMD"
2116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2117 dnl $ac_dummy forces splitting on constant user-supplied paths.
2118 dnl POSIX.2 word splitting is done only on the output of word expansions,
2119 dnl not every word. This closes a longstanding sh security hole.
2120 ac_dummy="ifelse([$2], , $PATH, [$2])"
2121 for ac_dir in $ac_dummy; do
2122 IFS="$lt_save_ifs"
2123 test -z "$ac_dir" && ac_dir=.
2124 if test -f $ac_dir/$1; then
2125 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2126 if test -n "$file_magic_test_file"; then
2127 case $deplibs_check_method in
2128 "file_magic "*)
2129 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2130 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2131 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2132 $EGREP "$file_magic_regex" > /dev/null; then
2133 :
2134 else
2135 cat <<EOF 1>&2
2136
2137 *** Warning: the command libtool uses to detect shared libraries,
2138 *** $file_magic_cmd, produces output that libtool cannot recognize.
2139 *** The result is that libtool may fail to recognize shared libraries
2140 *** as such. This will affect the creation of libtool libraries that
2141 *** depend on shared libraries, but programs linked with such libtool
2142 *** libraries will work regardless of this problem. Nevertheless, you
2143 *** may want to report the problem to your system manager and/or to
2144 *** bug-libtool@gnu.org
2145
2146 EOF
2147 fi ;;
2148 esac
2149 fi
2150 break
2151 fi
2152 done
2153 IFS="$lt_save_ifs"
2154 MAGIC_CMD="$lt_save_MAGIC_CMD"
2155 ;;
2156 esac])
2157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2158 if test -n "$MAGIC_CMD"; then
2159 AC_MSG_RESULT($MAGIC_CMD)
2160 else
2161 AC_MSG_RESULT(no)
2162 fi
2163 ])# AC_PATH_TOOL_PREFIX
2164
2165
2166 # AC_PATH_MAGIC
2167 # -------------
2168 # find a file program which can recognize a shared library
2169 AC_DEFUN([AC_PATH_MAGIC],
2170 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2171 if test -z "$lt_cv_path_MAGIC_CMD"; then
2172 if test -n "$ac_tool_prefix"; then
2173 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2174 else
2175 MAGIC_CMD=:
2176 fi
2177 fi
2178 ])# AC_PATH_MAGIC
2179
2180
2181 # AC_PROG_LD
2182 # ----------
2183 # find the pathname to the GNU or non-GNU linker
2184 AC_DEFUN([AC_PROG_LD],
2185 [AC_ARG_WITH([gnu-ld],
2186 [AC_HELP_STRING([--with-gnu-ld],
2187 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2188 [test "$withval" = no || with_gnu_ld=yes],
2189 [with_gnu_ld=no])
2190 AC_REQUIRE([LT_AC_PROG_SED])dnl
2191 AC_REQUIRE([AC_PROG_CC])dnl
2192 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2193 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2194 ac_prog=ld
2195 if test "$GCC" = yes; then
2196 # Check if gcc -print-prog-name=ld gives a path.
2197 AC_MSG_CHECKING([for ld used by $CC])
2198 case $host in
2199 *-*-mingw*)
2200 # gcc leaves a trailing carriage return which upsets mingw
2201 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2202 *)
2203 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2204 esac
2205 case $ac_prog in
2206 # Accept absolute paths.
2207 [[\\/]]* | ?:[[\\/]]*)
2208 re_direlt='/[[^/]][[^/]]*/\.\./'
2209 # Canonicalize the pathname of ld
2210 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2211 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2212 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2213 done
2214 test -z "$LD" && LD="$ac_prog"
2215 ;;
2216 "")
2217 # If it fails, then pretend we aren't using GCC.
2218 ac_prog=ld
2219 ;;
2220 *)
2221 # If it is relative, then search for the first ld in PATH.
2222 with_gnu_ld=unknown
2223 ;;
2224 esac
2225 elif test "$with_gnu_ld" = yes; then
2226 AC_MSG_CHECKING([for GNU ld])
2227 else
2228 AC_MSG_CHECKING([for non-GNU ld])
2229 fi
2230 AC_CACHE_VAL(lt_cv_path_LD,
2231 [if test -z "$LD"; then
2232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2233 for ac_dir in $PATH; do
2234 IFS="$lt_save_ifs"
2235 test -z "$ac_dir" && ac_dir=.
2236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2237 lt_cv_path_LD="$ac_dir/$ac_prog"
2238 # Check to see if the program is GNU ld. I'd rather use --version,
2239 # but apparently some variants of GNU ld only accept -v.
2240 # Break only if it was the GNU/non-GNU ld that we prefer.
2241 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2242 *GNU* | *'with BFD'*)
2243 test "$with_gnu_ld" != no && break
2244 ;;
2245 *)
2246 test "$with_gnu_ld" != yes && break
2247 ;;
2248 esac
2249 fi
2250 done
2251 IFS="$lt_save_ifs"
2252 else
2253 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2254 fi])
2255 LD="$lt_cv_path_LD"
2256 if test -n "$LD"; then
2257 AC_MSG_RESULT($LD)
2258 else
2259 AC_MSG_RESULT(no)
2260 fi
2261 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2262 AC_PROG_LD_GNU
2263 ])# AC_PROG_LD
2264
2265
2266 # AC_PROG_LD_GNU
2267 # --------------
2268 AC_DEFUN([AC_PROG_LD_GNU],
2269 [AC_REQUIRE([AC_PROG_EGREP])dnl
2270 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2271 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2272 case `$LD -v 2>&1 </dev/null` in
2273 *GNU* | *'with BFD'*)
2274 lt_cv_prog_gnu_ld=yes
2275 ;;
2276 *)
2277 lt_cv_prog_gnu_ld=no
2278 ;;
2279 esac])
2280 with_gnu_ld=$lt_cv_prog_gnu_ld
2281 ])# AC_PROG_LD_GNU
2282
2283
2284 # AC_PROG_LD_RELOAD_FLAG
2285 # ----------------------
2286 # find reload flag for linker
2287 # -- PORTME Some linkers may need a different reload flag.
2288 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2289 [AC_CACHE_CHECK([for $LD option to reload object files],
2290 lt_cv_ld_reload_flag,
2291 [lt_cv_ld_reload_flag='-r'])
2292 reload_flag=$lt_cv_ld_reload_flag
2293 case $reload_flag in
2294 "" | " "*) ;;
2295 *) reload_flag=" $reload_flag" ;;
2296 esac
2297 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2298 case $host_os in
2299 darwin*)
2300 if test "$GCC" = yes; then
2301 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2302 else
2303 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2304 fi
2305 ;;
2306 esac
2307 ])# AC_PROG_LD_RELOAD_FLAG
2308
2309
2310 # AC_DEPLIBS_CHECK_METHOD
2311 # -----------------------
2312 # how to check for library dependencies
2313 # -- PORTME fill in with the dynamic library characteristics
2314 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2315 [AC_CACHE_CHECK([how to recognize dependent libraries],
2316 lt_cv_deplibs_check_method,
2317 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2318 lt_cv_file_magic_test_file=
2319 lt_cv_deplibs_check_method='unknown'
2320 # Need to set the preceding variable on all platforms that support
2321 # interlibrary dependencies.
2322 # 'none' -- dependencies not supported.
2323 # `unknown' -- same as none, but documents that we really don't know.
2324 # 'pass_all' -- all dependencies passed with no checks.
2325 # 'test_compile' -- check by making test program.
2326 # 'file_magic [[regex]]' -- check by looking for files in library path
2327 # which responds to the $file_magic_cmd with a given extended regex.
2328 # If you have `file' or equivalent on your system and you're not sure
2329 # whether `pass_all' will *always* work, you probably want this one.
2330
2331 case $host_os in
2332 aix4* | aix5*)
2333 lt_cv_deplibs_check_method=pass_all
2334 ;;
2335
2336 beos*)
2337 lt_cv_deplibs_check_method=pass_all
2338 ;;
2339
2340 bsdi[[45]]*)
2341 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2342 lt_cv_file_magic_cmd='/usr/bin/file -L'
2343 lt_cv_file_magic_test_file=/shlib/libc.so
2344 ;;
2345
2346 cygwin*)
2347 # func_win32_libid is a shell function defined in ltmain.sh
2348 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2349 lt_cv_file_magic_cmd='func_win32_libid'
2350 ;;
2351
2352 mingw* | pw32*)
2353 # Base MSYS/MinGW do not provide the 'file' command needed by
2354 # func_win32_libid shell function, so use a weaker test based on 'objdump',
2355 # unless we find 'file', for example because we are cross-compiling.
2356 if ( file / ) >/dev/null 2>&1; then
2357 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2358 lt_cv_file_magic_cmd='func_win32_libid'
2359 else
2360 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2361 lt_cv_file_magic_cmd='$OBJDUMP -f'
2362 fi
2363 ;;
2364
2365 darwin* | rhapsody*)
2366 lt_cv_deplibs_check_method=pass_all
2367 ;;
2368
2369 freebsd* | dragonfly*)
2370 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2371 case $host_cpu in
2372 i*86 )
2373 # Not sure whether the presence of OpenBSD here was a mistake.
2374 # Let's accept both of them until this is cleared up.
2375 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2376 lt_cv_file_magic_cmd=/usr/bin/file
2377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2378 ;;
2379 esac
2380 else
2381 lt_cv_deplibs_check_method=pass_all
2382 fi
2383 ;;
2384
2385 gnu*)
2386 lt_cv_deplibs_check_method=pass_all
2387 ;;
2388
2389 hpux10.20* | hpux11*)
2390 lt_cv_file_magic_cmd=/usr/bin/file
2391 case $host_cpu in
2392 ia64*)
2393 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2394 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2395 ;;
2396 hppa*64*)
2397 [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]']
2398 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2399 ;;
2400 *)
2401 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2402 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2403 ;;
2404 esac
2405 ;;
2406
2407 interix[[3-9]]*)
2408 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2409 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2410 ;;
2411
2412 irix5* | irix6* | nonstopux*)
2413 case $LD in
2414 *-32|*"-32 ") libmagic=32-bit;;
2415 *-n32|*"-n32 ") libmagic=N32;;
2416 *-64|*"-64 ") libmagic=64-bit;;
2417 *) libmagic=never-match;;
2418 esac
2419 lt_cv_deplibs_check_method=pass_all
2420 ;;
2421
2422 # This must be Linux ELF.
2423 linux* | k*bsd*-gnu)
2424 lt_cv_deplibs_check_method=pass_all
2425 ;;
2426
2427 netbsd* | netbsdelf*-gnu)
2428 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2429 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2430 else
2431 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2432 fi
2433 ;;
2434
2435 newos6*)
2436 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2437 lt_cv_file_magic_cmd=/usr/bin/file
2438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2439 ;;
2440
2441 nto-qnx*)
2442 lt_cv_deplibs_check_method=unknown
2443 ;;
2444
2445 openbsd*)
2446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2447 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2448 else
2449 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2450 fi
2451 ;;
2452
2453 osf3* | osf4* | osf5*)
2454 lt_cv_deplibs_check_method=pass_all
2455 ;;
2456
2457 rdos*)
2458 lt_cv_deplibs_check_method=pass_all
2459 ;;
2460
2461 solaris*)
2462 lt_cv_deplibs_check_method=pass_all
2463 ;;
2464
2465 sysv4 | sysv4.3*)
2466 case $host_vendor in
2467 motorola)
2468 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]]'
2469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2470 ;;
2471 ncr)
2472 lt_cv_deplibs_check_method=pass_all
2473 ;;
2474 sequent)
2475 lt_cv_file_magic_cmd='/bin/file'
2476 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2477 ;;
2478 sni)
2479 lt_cv_file_magic_cmd='/bin/file'
2480 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2481 lt_cv_file_magic_test_file=/lib/libc.so
2482 ;;
2483 siemens)
2484 lt_cv_deplibs_check_method=pass_all
2485 ;;
2486 pc)
2487 lt_cv_deplibs_check_method=pass_all
2488 ;;
2489 esac
2490 ;;
2491
2492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2493 lt_cv_deplibs_check_method=pass_all
2494 ;;
2495 esac
2496 ])
2497 file_magic_cmd=$lt_cv_file_magic_cmd
2498 deplibs_check_method=$lt_cv_deplibs_check_method
2499 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2500 ])# AC_DEPLIBS_CHECK_METHOD
2501
2502
2503 # AC_PROG_NM
2504 # ----------
2505 # find the pathname to a BSD-compatible name lister
2506 AC_DEFUN([AC_PROG_NM],
2507 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2508 [if test -n "$NM"; then
2509 # Let the user override the test.
2510 lt_cv_path_NM="$NM"
2511 else
2512 lt_nm_to_check="${ac_tool_prefix}nm"
2513 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2514 lt_nm_to_check="$lt_nm_to_check nm"
2515 fi
2516 for lt_tmp_nm in $lt_nm_to_check; do
2517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2518 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2519 IFS="$lt_save_ifs"
2520 test -z "$ac_dir" && ac_dir=.
2521 tmp_nm="$ac_dir/$lt_tmp_nm"
2522 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2523 # Check to see if the nm accepts a BSD-compat flag.
2524 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2525 # nm: unknown option "B" ignored
2526 # Tru64's nm complains that /dev/null is an invalid object file
2527 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2528 */dev/null* | *'Invalid file or object type'*)
2529 lt_cv_path_NM="$tmp_nm -B"
2530 break
2531 ;;
2532 *)
2533 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2534 */dev/null*)
2535 lt_cv_path_NM="$tmp_nm -p"
2536 break
2537 ;;
2538 *)
2539 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2540 continue # so that we can try to find one that supports BSD flags
2541 ;;
2542 esac
2543 ;;
2544 esac
2545 fi
2546 done
2547 IFS="$lt_save_ifs"
2548 done
2549 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2550 fi])
2551 NM="$lt_cv_path_NM"
2552 ])# AC_PROG_NM
2553
2554
2555 # AC_CHECK_LIBM
2556 # -------------
2557 # check for math library
2558 AC_DEFUN([AC_CHECK_LIBM],
2559 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2560 LIBM=
2561 case $host in
2562 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2563 # These system don't have libm, or don't need it
2564 ;;
2565 *-ncr-sysv4.3*)
2566 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2567 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2568 ;;
2569 *)
2570 AC_CHECK_LIB(m, cos, LIBM="-lm")
2571 ;;
2572 esac
2573 ])# AC_CHECK_LIBM
2574
2575
2576 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2577 # -----------------------------------
2578 # sets LIBLTDL to the link flags for the libltdl convenience library and
2579 # LTDLINCL to the include flags for the libltdl header and adds
2580 # --enable-ltdl-convenience to the configure arguments. Note that
2581 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2582 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2583 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2584 # (note the single quotes!). If your package is not flat and you're not
2585 # using automake, define top_builddir and top_srcdir appropriately in
2586 # the Makefiles.
2587 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2588 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2589 case $enable_ltdl_convenience in
2590 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2591 "") enable_ltdl_convenience=yes
2592 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2593 esac
2594 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2595 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2596 # For backwards non-gettext consistent compatibility...
2597 INCLTDL="$LTDLINCL"
2598 ])# AC_LIBLTDL_CONVENIENCE
2599
2600
2601 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2602 # -----------------------------------
2603 # sets LIBLTDL to the link flags for the libltdl installable library and
2604 # LTDLINCL to the include flags for the libltdl header and adds
2605 # --enable-ltdl-install to the configure arguments. Note that
2606 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2607 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2608 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2609 # '${top_srcdir}/' (note the single quotes!). If your package is not
2610 # flat and you're not using automake, define top_builddir and top_srcdir
2611 # appropriately in the Makefiles.
2612 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2613 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2614 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2615 AC_CHECK_LIB(ltdl, lt_dlinit,
2616 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2617 [if test x"$enable_ltdl_install" = xno; then
2618 AC_MSG_WARN([libltdl not installed, but installation disabled])
2619 else
2620 enable_ltdl_install=yes
2621 fi
2622 ])
2623 if test x"$enable_ltdl_install" = x"yes"; then
2624 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2625 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2626 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2627 else
2628 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2629 LIBLTDL="-lltdl"
2630 LTDLINCL=
2631 fi
2632 # For backwards non-gettext consistent compatibility...
2633 INCLTDL="$LTDLINCL"
2634 ])# AC_LIBLTDL_INSTALLABLE
2635
2636
2637 # AC_LIBTOOL_CXX
2638 # --------------
2639 # enable support for C++ libraries
2640 AC_DEFUN([AC_LIBTOOL_CXX],
2641 [AC_REQUIRE([_LT_AC_LANG_CXX])
2642 ])# AC_LIBTOOL_CXX
2643
2644
2645 # _LT_AC_LANG_CXX
2646 # ---------------
2647 AC_DEFUN([_LT_AC_LANG_CXX],
2648 [AC_REQUIRE([AC_PROG_CXX])
2649 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2650 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2651 ])# _LT_AC_LANG_CXX
2652
2653 # _LT_AC_PROG_CXXCPP
2654 # ------------------
2655 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2656 [
2657 AC_REQUIRE([AC_PROG_CXX])
2658 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2659 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2660 (test "X$CXX" != "Xg++"))) ; then
2661 AC_PROG_CXXCPP
2662 fi
2663 ])# _LT_AC_PROG_CXXCPP
2664
2665 # AC_LIBTOOL_F77
2666 # --------------
2667 # enable support for Fortran 77 libraries
2668 AC_DEFUN([AC_LIBTOOL_F77],
2669 [AC_REQUIRE([_LT_AC_LANG_F77])
2670 ])# AC_LIBTOOL_F77
2671
2672
2673 # _LT_AC_LANG_F77
2674 # ---------------
2675 AC_DEFUN([_LT_AC_LANG_F77],
2676 [AC_REQUIRE([AC_PROG_F77])
2677 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2678 ])# _LT_AC_LANG_F77
2679
2680
2681 # AC_LIBTOOL_GCJ
2682 # --------------
2683 # enable support for GCJ libraries
2684 AC_DEFUN([AC_LIBTOOL_GCJ],
2685 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2686 ])# AC_LIBTOOL_GCJ
2687
2688
2689 # _LT_AC_LANG_GCJ
2690 # ---------------
2691 AC_DEFUN([_LT_AC_LANG_GCJ],
2692 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2693 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2694 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2695 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2696 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2697 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2698 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2699 ])# _LT_AC_LANG_GCJ
2700
2701
2702 # AC_LIBTOOL_RC
2703 # -------------
2704 # enable support for Windows resource files
2705 AC_DEFUN([AC_LIBTOOL_RC],
2706 [AC_REQUIRE([LT_AC_PROG_RC])
2707 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2708 ])# AC_LIBTOOL_RC
2709
2710
2711 # AC_LIBTOOL_LANG_C_CONFIG
2712 # ------------------------
2713 # Ensure that the configuration vars for the C compiler are
2714 # suitably defined. Those variables are subsequently used by
2715 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2716 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2717 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2718 [lt_save_CC="$CC"
2719 AC_LANG_PUSH(C)
2720
2721 # Source file extension for C test sources.
2722 ac_ext=c
2723
2724 # Object file extension for compiled C test sources.
2725 objext=o
2726 _LT_AC_TAGVAR(objext, $1)=$objext
2727
2728 # Code to be used in simple compile tests
2729 lt_simple_compile_test_code="int some_variable = 0;"
2730
2731 # Code to be used in simple link tests
2732 lt_simple_link_test_code='int main(){return(0);}'
2733
2734 _LT_AC_SYS_COMPILER
2735
2736 # save warnings/boilerplate of simple test code
2737 _LT_COMPILER_BOILERPLATE
2738 _LT_LINKER_BOILERPLATE
2739
2740 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2741 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2742 AC_LIBTOOL_PROG_CC_C_O($1)
2743 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2744 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2745 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2746 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2747 AC_LIBTOOL_SYS_LIB_STRIP
2748 AC_LIBTOOL_DLOPEN_SELF
2749
2750 # Report which library types will actually be built
2751 AC_MSG_CHECKING([if libtool supports shared libraries])
2752 AC_MSG_RESULT([$can_build_shared])
2753
2754 AC_MSG_CHECKING([whether to build shared libraries])
2755 test "$can_build_shared" = "no" && enable_shared=no
2756
2757 # On AIX, shared libraries and static libraries use the same namespace, and
2758 # are all built from PIC.
2759 case $host_os in
2760 aix3*)
2761 test "$enable_shared" = yes && enable_static=no
2762 if test -n "$RANLIB"; then
2763 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2764 postinstall_cmds='$RANLIB $lib'
2765 fi
2766 ;;
2767
2768 aix4* | aix5*)
2769 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2770 test "$enable_shared" = yes && enable_static=no
2771 fi
2772 ;;
2773 esac
2774 AC_MSG_RESULT([$enable_shared])
2775
2776 AC_MSG_CHECKING([whether to build static libraries])
2777 # Make sure either enable_shared or enable_static is yes.
2778 test "$enable_shared" = yes || enable_static=yes
2779 AC_MSG_RESULT([$enable_static])
2780
2781 AC_LIBTOOL_CONFIG($1)
2782
2783 AC_LANG_POP
2784 CC="$lt_save_CC"
2785 ])# AC_LIBTOOL_LANG_C_CONFIG
2786
2787
2788 # AC_LIBTOOL_LANG_CXX_CONFIG
2789 # --------------------------
2790 # Ensure that the configuration vars for the C compiler are
2791 # suitably defined. Those variables are subsequently used by
2792 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2793 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2794 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2795 [AC_LANG_PUSH(C++)
2796 AC_REQUIRE([AC_PROG_CXX])
2797 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2798
2799 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2800 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2801 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2802 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2803 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2804 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2805 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2806 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2807 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2808 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2809 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2810 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2811 _LT_AC_TAGVAR(module_cmds, $1)=
2812 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2813 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2814 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2815 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2816 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2817 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2818
2819 # Dependencies to place before and after the object being linked:
2820 _LT_AC_TAGVAR(predep_objects, $1)=
2821 _LT_AC_TAGVAR(postdep_objects, $1)=
2822 _LT_AC_TAGVAR(predeps, $1)=
2823 _LT_AC_TAGVAR(postdeps, $1)=
2824 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2825
2826 # Source file extension for C++ test sources.
2827 ac_ext=cpp
2828
2829 # Object file extension for compiled C++ test sources.
2830 objext=o
2831 _LT_AC_TAGVAR(objext, $1)=$objext
2832
2833 # Code to be used in simple compile tests
2834 lt_simple_compile_test_code="int some_variable = 0;"
2835
2836 # Code to be used in simple link tests
2837 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2838
2839 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2840 _LT_AC_SYS_COMPILER
2841
2842 # save warnings/boilerplate of simple test code
2843 _LT_COMPILER_BOILERPLATE
2844 _LT_LINKER_BOILERPLATE
2845
2846 # Allow CC to be a program name with arguments.
2847 lt_save_CC=$CC
2848 lt_save_LD=$LD
2849 lt_save_GCC=$GCC
2850 GCC=$GXX
2851 lt_save_with_gnu_ld=$with_gnu_ld
2852 lt_save_path_LD=$lt_cv_path_LD
2853 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2854 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2855 else
2856 $as_unset lt_cv_prog_gnu_ld
2857 fi
2858 if test -n "${lt_cv_path_LDCXX+set}"; then
2859 lt_cv_path_LD=$lt_cv_path_LDCXX
2860 else
2861 $as_unset lt_cv_path_LD
2862 fi
2863 test -z "${LDCXX+set}" || LD=$LDCXX
2864 CC=${CXX-"c++"}
2865 compiler=$CC
2866 _LT_AC_TAGVAR(compiler, $1)=$CC
2867 _LT_CC_BASENAME([$compiler])
2868
2869 # We don't want -fno-exception wen compiling C++ code, so set the
2870 # no_builtin_flag separately
2871 if test "$GXX" = yes; then
2872 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2873 else
2874 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2875 fi
2876
2877 if test "$GXX" = yes; then
2878 # Set up default GNU C++ configuration
2879
2880 AC_PROG_LD
2881
2882 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2883 # archiving commands below assume that GNU ld is being used.
2884 if test "$with_gnu_ld" = yes; then
2885 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2886 _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'
2887
2888 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2889 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2890
2891 # If archive_cmds runs LD, not CC, wlarc should be empty
2892 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2893 # investigate it a little bit more. (MM)
2894 wlarc='${wl}'
2895
2896 # ancient GNU ld didn't support --whole-archive et. al.
2897 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2898 grep 'no-whole-archive' > /dev/null; then
2899 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2900 else
2901 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2902 fi
2903 else
2904 with_gnu_ld=no
2905 wlarc=
2906
2907 # A generic and very simple default shared library creation
2908 # command for GNU C++ for the case where it uses the native
2909 # linker, instead of GNU ld. If possible, this setting should
2910 # overridden to take advantage of the native linker features on
2911 # the platform it is being used on.
2912 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2913 fi
2914
2915 # Commands to make compiler produce verbose output that lists
2916 # what "hidden" libraries, object files and flags are used when
2917 # linking a shared library.
2918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2919
2920 else
2921 GXX=no
2922 with_gnu_ld=no
2923 wlarc=
2924 fi
2925
2926 # PORTME: fill in a description of your system's C++ link characteristics
2927 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2928 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2929 case $host_os in
2930 aix3*)
2931 # FIXME: insert proper C++ library support
2932 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2933 ;;
2934 aix4* | aix5*)
2935 if test "$host_cpu" = ia64; then
2936 # On IA64, the linker does run time linking by default, so we don't
2937 # have to do anything special.
2938 aix_use_runtimelinking=no
2939 exp_sym_flag='-Bexport'
2940 no_entry_flag=""
2941 else
2942 aix_use_runtimelinking=no
2943
2944 # Test if we are trying to use run time linking or normal
2945 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2946 # need to do runtime linking.
2947 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2948 for ld_flag in $LDFLAGS; do
2949 case $ld_flag in
2950 *-brtl*)
2951 aix_use_runtimelinking=yes
2952 break
2953 ;;
2954 esac
2955 done
2956 ;;
2957 esac
2958
2959 exp_sym_flag='-bexport'
2960 no_entry_flag='-bnoentry'
2961 fi
2962
2963 # When large executables or shared objects are built, AIX ld can
2964 # have problems creating the table of contents. If linking a library
2965 # or program results in "error TOC overflow" add -mminimal-toc to
2966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2968
2969 _LT_AC_TAGVAR(archive_cmds, $1)=''
2970 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2971 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2972 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2973
2974 if test "$GXX" = yes; then
2975 case $host_os in aix4.[[012]]|aix4.[[012]].*)
2976 # We only want to do this on AIX 4.2 and lower, the check
2977 # below for broken collect2 doesn't work under 4.3+
2978 collect2name=`${CC} -print-prog-name=collect2`
2979 if test -f "$collect2name" && \
2980 strings "$collect2name" | grep resolve_lib_name >/dev/null
2981 then
2982 # We have reworked collect2
2983 :
2984 else
2985 # We have old collect2
2986 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2987 # It fails to find uninstalled libraries when the uninstalled
2988 # path is not listed in the libpath. Setting hardcode_minus_L
2989 # to unsupported forces relinking
2990 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2991 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2992 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2993 fi
2994 ;;
2995 esac
2996 shared_flag='-shared'
2997 if test "$aix_use_runtimelinking" = yes; then
2998 shared_flag="$shared_flag "'${wl}-G'
2999 fi
3000 else
3001 # not using gcc
3002 if test "$host_cpu" = ia64; then
3003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3004 # chokes on -Wl,-G. The following line is correct:
3005 shared_flag='-G'
3006 else
3007 if test "$aix_use_runtimelinking" = yes; then
3008 shared_flag='${wl}-G'
3009 else
3010 shared_flag='${wl}-bM:SRE'
3011 fi
3012 fi
3013 fi
3014
3015 # It seems that -bexpall does not export symbols beginning with
3016 # underscore (_), so it is better to generate a list of symbols to export.
3017 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3018 if test "$aix_use_runtimelinking" = yes; then
3019 # Warning - without using the other runtime loading flags (-brtl),
3020 # -berok will link without error, but may produce a broken library.
3021 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3022 # Determine the default libpath from the value encoded in an empty executable.
3023 _LT_AC_SYS_LIBPATH_AIX
3024 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3025
3026 _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"
3027 else
3028 if test "$host_cpu" = ia64; then
3029 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3030 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3031 _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"
3032 else
3033 # Determine the default libpath from the value encoded in an empty executable.
3034 _LT_AC_SYS_LIBPATH_AIX
3035 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3036 # Warning - without using the other run time loading flags,
3037 # -berok will link without error, but may produce a broken library.
3038 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3039 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3040 # Exported symbols can be pulled into shared objects from archives
3041 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3042 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3043 # This is similar to how AIX traditionally builds its shared libraries.
3044 _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'
3045 fi
3046 fi
3047 ;;
3048
3049 beos*)
3050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3051 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3053 # support --undefined. This deserves some investigation. FIXME
3054 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3055 else
3056 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3057 fi
3058 ;;
3059
3060 chorus*)
3061 case $cc_basename in
3062 *)
3063 # FIXME: insert proper C++ library support
3064 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3065 ;;
3066 esac
3067 ;;
3068
3069 cygwin* | mingw* | pw32*)
3070 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3071 # as there is no search path for DLLs.
3072 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3073 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3074 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3075 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3076
3077 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3078 _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'
3079 # If the export-symbols file already is a .def file (1st line
3080 # is EXPORTS), use it as is; otherwise, prepend...
3081 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3082 cp $export_symbols $output_objdir/$soname.def;
3083 else
3084 echo EXPORTS > $output_objdir/$soname.def;
3085 cat $export_symbols >> $output_objdir/$soname.def;
3086 fi~
3087 $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'
3088 else
3089 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3090 fi
3091 ;;
3092 darwin* | rhapsody*)
3093 case $host_os in
3094 rhapsody* | darwin1.[[012]])
3095 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3096 ;;
3097 *) # Darwin 1.3 on
3098 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3099 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3100 else
3101 case ${MACOSX_DEPLOYMENT_TARGET} in
3102 10.[[012]])
3103 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3104 ;;
3105 10.*)
3106 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3107 ;;
3108 esac
3109 fi
3110 ;;
3111 esac
3112 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3113 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3114 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3115 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3116 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3117 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3118
3119 if test "$GXX" = yes ; then
3120 lt_int_apple_cc_single_mod=no
3121 output_verbose_link_cmd='echo'
3122 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3123 lt_int_apple_cc_single_mod=yes
3124 fi
3125 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3126 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3127 else
3128 _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'
3129 fi
3130 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3132 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3133 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3134 else
3135 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3136 fi
3137 _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}'
3138 else
3139 case $cc_basename in
3140 xlc*)
3141 output_verbose_link_cmd='echo'
3142 _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'
3143 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3144 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3145 _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}'
3146 _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}'
3147 ;;
3148 *)
3149 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3150 ;;
3151 esac
3152 fi
3153 ;;
3154
3155 dgux*)
3156 case $cc_basename in
3157 ec++*)
3158 # FIXME: insert proper C++ library support
3159 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3160 ;;
3161 ghcx*)
3162 # Green Hills C++ Compiler
3163 # FIXME: insert proper C++ library support
3164 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3165 ;;
3166 *)
3167 # FIXME: insert proper C++ library support
3168 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3169 ;;
3170 esac
3171 ;;
3172 freebsd[[12]]*)
3173 # C++ shared libraries reported to be fairly broken before switch to ELF
3174 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3175 ;;
3176 freebsd-elf*)
3177 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3178 ;;
3179 freebsd* | dragonfly*)
3180 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3181 # conventions
3182 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3183 ;;
3184 gnu*)
3185 ;;
3186 hpux9*)
3187 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3188 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3189 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3190 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3191 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3192 # but as the default
3193 # location of the library.
3194
3195 case $cc_basename in
3196 CC*)
3197 # FIXME: insert proper C++ library support
3198 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3199 ;;
3200 aCC*)
3201 _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'
3202 # Commands to make compiler produce verbose output that lists
3203 # what "hidden" libraries, object files and flags are used when
3204 # linking a shared library.
3205 #
3206 # There doesn't appear to be a way to prevent this compiler from
3207 # explicitly linking system object files so we need to strip them
3208 # from the output so that they don't get included in the library
3209 # dependencies.
3210 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'
3211 ;;
3212 *)
3213 if test "$GXX" = yes; then
3214 _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'
3215 else
3216 # FIXME: insert proper C++ library support
3217 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3218 fi
3219 ;;
3220 esac
3221 ;;
3222 hpux10*|hpux11*)
3223 if test $with_gnu_ld = no; then
3224 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3225 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3226
3227 case $host_cpu in
3228 hppa*64*|ia64*) ;;
3229 *)
3230 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3231 ;;
3232 esac
3233 fi
3234 case $host_cpu in
3235 hppa*64*|ia64*)
3236 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3237 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3238 ;;
3239 *)
3240 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3241 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3242 # but as the default
3243 # location of the library.
3244 ;;
3245 esac
3246
3247 case $cc_basename in
3248 CC*)
3249 # FIXME: insert proper C++ library support
3250 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3251 ;;
3252 aCC*)
3253 case $host_cpu in
3254 hppa*64*)
3255 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3256 ;;
3257 ia64*)
3258 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3259 ;;
3260 *)
3261 _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'
3262 ;;
3263 esac
3264 # Commands to make compiler produce verbose output that lists
3265 # what "hidden" libraries, object files and flags are used when
3266 # linking a shared library.
3267 #
3268 # There doesn't appear to be a way to prevent this compiler from
3269 # explicitly linking system object files so we need to strip them
3270 # from the output so that they don't get included in the library
3271 # dependencies.
3272 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'
3273 ;;
3274 *)
3275 if test "$GXX" = yes; then
3276 if test $with_gnu_ld = no; then
3277 case $host_cpu in
3278 hppa*64*)
3279 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3280 ;;
3281 ia64*)
3282 _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'
3283 ;;
3284 *)
3285 _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'
3286 ;;
3287 esac
3288 fi
3289 else
3290 # FIXME: insert proper C++ library support
3291 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3292 fi
3293 ;;
3294 esac
3295 ;;
3296 interix[[3-9]]*)
3297 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3298 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3299 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3300 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3301 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3302 # Instead, shared libraries are loaded at an image base (0x10000000 by
3303 # default) and relocated if they conflict, which is a slow very memory
3304 # consuming and fragmenting process. To avoid this, we pick a random,
3305 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3306 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3307 _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'
3308 _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'
3309 ;;
3310 irix5* | irix6*)
3311 case $cc_basename in
3312 CC*)
3313 # SGI C++
3314 _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'
3315
3316 # Archives containing C++ object files must be created using
3317 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3318 # necessary to make sure instantiated templates are included
3319 # in the archive.
3320 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3321 ;;
3322 *)
3323 if test "$GXX" = yes; then
3324 if test "$with_gnu_ld" = no; then
3325 _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'
3326 else
3327 _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'
3328 fi
3329 fi
3330 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3331 ;;
3332 esac
3333 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3334 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3335 ;;
3336 linux* | k*bsd*-gnu)
3337 case $cc_basename in
3338 KCC*)
3339 # Kuck and Associates, Inc. (KAI) C++ Compiler
3340
3341 # KCC will only create a shared library if the output file
3342 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3343 # to its proper name (with version) after linking.
3344 _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'
3345 _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'
3346 # Commands to make compiler produce verbose output that lists
3347 # what "hidden" libraries, object files and flags are used when
3348 # linking a shared library.
3349 #
3350 # There doesn't appear to be a way to prevent this compiler from
3351 # explicitly linking system object files so we need to strip them
3352 # from the output so that they don't get included in the library
3353 # dependencies.
3354 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'
3355
3356 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3357 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3358
3359 # Archives containing C++ object files must be created using
3360 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3361 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3362 ;;
3363 icpc*)
3364 # Intel C++
3365 with_gnu_ld=yes
3366 # version 8.0 and above of icpc choke on multiply defined symbols
3367 # if we add $predep_objects and $postdep_objects, however 7.1 and
3368 # earlier do not add the objects themselves.
3369 case `$CC -V 2>&1` in
3370 *"Version 7."*)
3371 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3372 _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'
3373 ;;
3374 *) # Version 8.0 or newer
3375 tmp_idyn=
3376 case $host_cpu in
3377 ia64*) tmp_idyn=' -i_dynamic';;
3378 esac
3379 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3380 _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'
3381 ;;
3382 esac
3383 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3384 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3385 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3386 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3387 ;;
3388 pgCC*)
3389 # Portland Group C++ compiler
3390 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3391 _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'
3392
3393 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3394 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3395 _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'
3396 ;;
3397 cxx*)
3398 # Compaq C++
3399 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3400 _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'
3401
3402 runpath_var=LD_RUN_PATH
3403 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3404 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3405
3406 # Commands to make compiler produce verbose output that lists
3407 # what "hidden" libraries, object files and flags are used when
3408 # linking a shared library.
3409 #
3410 # There doesn't appear to be a way to prevent this compiler from
3411 # explicitly linking system object files so we need to strip them
3412 # from the output so that they don't get included in the library
3413 # dependencies.
3414 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'
3415 ;;
3416 *)
3417 case `$CC -V 2>&1 | sed 5q` in
3418 *Sun\ C*)
3419 # Sun C++ 5.9
3420 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3421 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3422 _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'
3423 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3424 _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'
3425
3426 # Not sure whether something based on
3427 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3428 # would be better.
3429 output_verbose_link_cmd='echo'
3430
3431 # Archives containing C++ object files must be created using
3432 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3433 # necessary to make sure instantiated templates are included
3434 # in the archive.
3435 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3436 ;;
3437 esac
3438 ;;
3439 esac
3440 ;;
3441 lynxos*)
3442 # FIXME: insert proper C++ library support
3443 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3444 ;;
3445 m88k*)
3446 # FIXME: insert proper C++ library support
3447 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3448 ;;
3449 mvs*)
3450 case $cc_basename in
3451 cxx*)
3452 # FIXME: insert proper C++ library support
3453 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3454 ;;
3455 *)
3456 # FIXME: insert proper C++ library support
3457 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3458 ;;
3459 esac
3460 ;;
3461 netbsd* | netbsdelf*-gnu)
3462 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3463 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3464 wlarc=
3465 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3466 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3467 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3468 fi
3469 # Workaround some broken pre-1.5 toolchains
3470 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3471 ;;
3472 openbsd2*)
3473 # C++ shared libraries are fairly broken
3474 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3475 ;;
3476 openbsd*)
3477 if test -f /usr/libexec/ld.so; then
3478 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3479 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3480 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3481 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3482 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3483 _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'
3484 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3485 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3486 fi
3487 output_verbose_link_cmd='echo'
3488 else
3489 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3490 fi
3491 ;;
3492 osf3*)
3493 case $cc_basename in
3494 KCC*)
3495 # Kuck and Associates, Inc. (KAI) C++ Compiler
3496
3497 # KCC will only create a shared library if the output file
3498 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3499 # to its proper name (with version) after linking.
3500 _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'
3501
3502 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3503 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3504
3505 # Archives containing C++ object files must be created using
3506 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3507 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3508
3509 ;;
3510 RCC*)
3511 # Rational C++ 2.4.1
3512 # FIXME: insert proper C++ library support
3513 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3514 ;;
3515 cxx*)
3516 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3517 _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'
3518
3519 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3520 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3521
3522 # Commands to make compiler produce verbose output that lists
3523 # what "hidden" libraries, object files and flags are used when
3524 # linking a shared library.
3525 #
3526 # There doesn't appear to be a way to prevent this compiler from
3527 # explicitly linking system object files so we need to strip them
3528 # from the output so that they don't get included in the library
3529 # dependencies.
3530 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'
3531 ;;
3532 *)
3533 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3534 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3535 _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'
3536
3537 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3538 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3539
3540 # Commands to make compiler produce verbose output that lists
3541 # what "hidden" libraries, object files and flags are used when
3542 # linking a shared library.
3543 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3544
3545 else
3546 # FIXME: insert proper C++ library support
3547 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3548 fi
3549 ;;
3550 esac
3551 ;;
3552 osf4* | osf5*)
3553 case $cc_basename in
3554 KCC*)
3555 # Kuck and Associates, Inc. (KAI) C++ Compiler
3556
3557 # KCC will only create a shared library if the output file
3558 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3559 # to its proper name (with version) after linking.
3560 _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'
3561
3562 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3563 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3564
3565 # Archives containing C++ object files must be created using
3566 # the KAI C++ compiler.
3567 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3568 ;;
3569 RCC*)
3570 # Rational C++ 2.4.1
3571 # FIXME: insert proper C++ library support
3572 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3573 ;;
3574 cxx*)
3575 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3576 _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'
3577 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3578 echo "-hidden">> $lib.exp~
3579 $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~
3580 $rm $lib.exp'
3581
3582 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3583 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3584
3585 # Commands to make compiler produce verbose output that lists
3586 # what "hidden" libraries, object files and flags are used when
3587 # linking a shared library.
3588 #
3589 # There doesn't appear to be a way to prevent this compiler from
3590 # explicitly linking system object files so we need to strip them
3591 # from the output so that they don't get included in the library
3592 # dependencies.
3593 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'
3594 ;;
3595 *)
3596 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3597 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3598 _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'
3599
3600 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3601 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3602
3603 # Commands to make compiler produce verbose output that lists
3604 # what "hidden" libraries, object files and flags are used when
3605 # linking a shared library.
3606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3607
3608 else
3609 # FIXME: insert proper C++ library support
3610 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3611 fi
3612 ;;
3613 esac
3614 ;;
3615 psos*)
3616 # FIXME: insert proper C++ library support
3617 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3618 ;;
3619 sunos4*)
3620 case $cc_basename in
3621 CC*)
3622 # Sun C++ 4.x
3623 # FIXME: insert proper C++ library support
3624 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3625 ;;
3626 lcc*)
3627 # Lucid
3628 # FIXME: insert proper C++ library support
3629 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3630 ;;
3631 *)
3632 # FIXME: insert proper C++ library support
3633 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3634 ;;
3635 esac
3636 ;;
3637 solaris*)
3638 case $cc_basename in
3639 CC*)
3640 # Sun C++ 4.2, 5.x and Centerline C++
3641 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3642 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3643 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3644 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3645 $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'
3646
3647 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3648 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3649 case $host_os in
3650 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3651 *)
3652 # The compiler driver will combine and reorder linker options,
3653 # but understands `-z linker_flag'.
3654 # Supported since Solaris 2.6 (maybe 2.5.1?)
3655 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3656 ;;
3657 esac
3658 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3659
3660 output_verbose_link_cmd='echo'
3661
3662 # Archives containing C++ object files must be created using
3663 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3664 # necessary to make sure instantiated templates are included
3665 # in the archive.
3666 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3667 ;;
3668 gcx*)
3669 # Green Hills C++ Compiler
3670 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3671
3672 # The C++ compiler must be used to create the archive.
3673 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3674 ;;
3675 *)
3676 # GNU C++ compiler with Solaris linker
3677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3678 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3679 if $CC --version | grep -v '^2\.7' > /dev/null; then
3680 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3681 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3682 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3683
3684 # Commands to make compiler produce verbose output that lists
3685 # what "hidden" libraries, object files and flags are used when
3686 # linking a shared library.
3687 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3688 else
3689 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3690 # platform.
3691 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3692 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3693 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3694
3695 # Commands to make compiler produce verbose output that lists
3696 # what "hidden" libraries, object files and flags are used when
3697 # linking a shared library.
3698 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3699 fi
3700
3701 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3702 case $host_os in
3703 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3704 *)
3705 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3706 ;;
3707 esac
3708 fi
3709 ;;
3710 esac
3711 ;;
3712 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3713 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3714 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3715 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3716 runpath_var='LD_RUN_PATH'
3717
3718 case $cc_basename in
3719 CC*)
3720 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3721 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3722 ;;
3723 *)
3724 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3725 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3726 ;;
3727 esac
3728 ;;
3729 sysv5* | sco3.2v5* | sco5v6*)
3730 # Note: We can NOT use -z defs as we might desire, because we do not
3731 # link with -lc, and that would cause any symbols used from libc to
3732 # always be unresolved, which means just about no library would
3733 # ever link correctly. If we're not using GNU ld we use -z text
3734 # though, which does catch some bad symbols but isn't as heavy-handed
3735 # as -z defs.
3736 # For security reasons, it is highly recommended that you always
3737 # use absolute paths for naming shared libraries, and exclude the
3738 # DT_RUNPATH tag from executables and libraries. But doing so
3739 # requires that you compile everything twice, which is a pain.
3740 # So that behaviour is only enabled if SCOABSPATH is set to a
3741 # non-empty value in the environment. Most likely only useful for
3742 # creating official distributions of packages.
3743 # This is a hack until libtool officially supports absolute path
3744 # names for shared libraries.
3745 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3746 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3747 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3748 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3749 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3750 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3751 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3752 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3753 runpath_var='LD_RUN_PATH'
3754
3755 case $cc_basename in
3756 CC*)
3757 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3758 _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'
3759 ;;
3760 *)
3761 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3762 _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'
3763 ;;
3764 esac
3765 ;;
3766 tandem*)
3767 case $cc_basename in
3768 NCC*)
3769 # NonStop-UX NCC 3.20
3770 # FIXME: insert proper C++ library support
3771 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3772 ;;
3773 *)
3774 # FIXME: insert proper C++ library support
3775 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3776 ;;
3777 esac
3778 ;;
3779 vxworks*)
3780 # FIXME: insert proper C++ library support
3781 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3782 ;;
3783 *)
3784 # FIXME: insert proper C++ library support
3785 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3786 ;;
3787 esac
3788 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3789 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3790
3791 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3792 _LT_AC_TAGVAR(LD, $1)="$LD"
3793
3794 AC_LIBTOOL_POSTDEP_PREDEP($1)
3795 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3796 AC_LIBTOOL_PROG_CC_C_O($1)
3797 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3798 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3799 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3800 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3801
3802 AC_LIBTOOL_CONFIG($1)
3803
3804 AC_LANG_POP
3805 CC=$lt_save_CC
3806 LDCXX=$LD
3807 LD=$lt_save_LD
3808 GCC=$lt_save_GCC
3809 with_gnu_ldcxx=$with_gnu_ld
3810 with_gnu_ld=$lt_save_with_gnu_ld
3811 lt_cv_path_LDCXX=$lt_cv_path_LD
3812 lt_cv_path_LD=$lt_save_path_LD
3813 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3814 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3815 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3816
3817 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3818 # ------------------------------------
3819 # Figure out "hidden" library dependencies from verbose
3820 # compiler output when linking a shared library.
3821 # Parse the compiler output and extract the necessary
3822 # objects, libraries and library flags.
3823 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3824 dnl we can't use the lt_simple_compile_test_code here,
3825 dnl because it contains code intended for an executable,
3826 dnl not a library. It's possible we should let each
3827 dnl tag define a new lt_????_link_test_code variable,
3828 dnl but it's only used here...
3829 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3830 int a;
3831 void foo (void) { a = 0; }
3832 EOF
3833 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3834 class Foo
3835 {
3836 public:
3837 Foo (void) { a = 0; }
3838 private:
3839 int a;
3840 };
3841 EOF
3842 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3843 subroutine foo
3844 implicit none
3845 integer*4 a
3846 a=0
3847 return
3848 end
3849 EOF
3850 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3851 public class foo {
3852 private int a;
3853 public void bar (void) {
3854 a = 0;
3855 }
3856 };
3857 EOF
3858 ])
3859 dnl Parse the compiler output and extract the necessary
3860 dnl objects, libraries and library flags.
3861 if AC_TRY_EVAL(ac_compile); then
3862 # Parse the compiler output and extract the necessary
3863 # objects, libraries and library flags.
3864
3865 # Sentinel used to keep track of whether or not we are before
3866 # the conftest object file.
3867 pre_test_object_deps_done=no
3868
3869 # The `*' in the case matches for architectures that use `case' in
3870 # $output_verbose_cmd can trigger glob expansion during the loop
3871 # eval without this substitution.
3872 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3873
3874 for p in `eval $output_verbose_link_cmd`; do
3875 case $p in
3876
3877 -L* | -R* | -l*)
3878 # Some compilers place space between "-{L,R}" and the path.
3879 # Remove the space.
3880 if test $p = "-L" \
3881 || test $p = "-R"; then
3882 prev=$p
3883 continue
3884 else
3885 prev=
3886 fi
3887
3888 if test "$pre_test_object_deps_done" = no; then
3889 case $p in
3890 -L* | -R*)
3891 # Internal compiler library paths should come after those
3892 # provided the user. The postdeps already come after the
3893 # user supplied libs so there is no need to process them.
3894 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3895 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3896 else
3897 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3898 fi
3899 ;;
3900 # The "-l" case would never come before the object being
3901 # linked, so don't bother handling this case.
3902 esac
3903 else
3904 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3905 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3906 else
3907 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3908 fi
3909 fi
3910 ;;
3911
3912 *.$objext)
3913 # This assumes that the test object file only shows up
3914 # once in the compiler output.
3915 if test "$p" = "conftest.$objext"; then
3916 pre_test_object_deps_done=yes
3917 continue
3918 fi
3919
3920 if test "$pre_test_object_deps_done" = no; then
3921 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3922 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3923 else
3924 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3925 fi
3926 else
3927 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3928 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3929 else
3930 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3931 fi
3932 fi
3933 ;;
3934
3935 *) ;; # Ignore the rest.
3936
3937 esac
3938 done
3939
3940 # Clean up.
3941 rm -f a.out a.exe
3942 else
3943 echo "libtool.m4: error: problem compiling $1 test program"
3944 fi
3945
3946 $rm -f confest.$objext
3947
3948 # PORTME: override above test on systems where it is broken
3949 ifelse([$1],[CXX],
3950 [case $host_os in
3951 interix[[3-9]]*)
3952 # Interix 3.5 installs completely hosed .la files for C++, so rather than
3953 # hack all around it, let's just trust "g++" to DTRT.
3954 _LT_AC_TAGVAR(predep_objects,$1)=
3955 _LT_AC_TAGVAR(postdep_objects,$1)=
3956 _LT_AC_TAGVAR(postdeps,$1)=
3957 ;;
3958
3959 linux*)
3960 case `$CC -V 2>&1 | sed 5q` in
3961 *Sun\ C*)
3962 # Sun C++ 5.9
3963 #
3964 # The more standards-conforming stlport4 library is
3965 # incompatible with the Cstd library. Avoid specifying
3966 # it if it's in CXXFLAGS. Ignore libCrun as
3967 # -library=stlport4 depends on it.
3968 case " $CXX $CXXFLAGS " in
3969 *" -library=stlport4 "*)
3970 solaris_use_stlport4=yes
3971 ;;
3972 esac
3973 if test "$solaris_use_stlport4" != yes; then
3974 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3975 fi
3976 ;;
3977 esac
3978 ;;
3979
3980 solaris*)
3981 case $cc_basename in
3982 CC*)
3983 # The more standards-conforming stlport4 library is
3984 # incompatible with the Cstd library. Avoid specifying
3985 # it if it's in CXXFLAGS. Ignore libCrun as
3986 # -library=stlport4 depends on it.
3987 case " $CXX $CXXFLAGS " in
3988 *" -library=stlport4 "*)
3989 solaris_use_stlport4=yes
3990 ;;
3991 esac
3992
3993 # Adding this requires a known-good setup of shared libraries for
3994 # Sun compiler versions before 5.6, else PIC objects from an old
3995 # archive will be linked into the output, leading to subtle bugs.
3996 if test "$solaris_use_stlport4" != yes; then
3997 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3998 fi
3999 ;;
4000 esac
4001 ;;
4002 esac
4003 ])
4004
4005 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4006 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4007 esac
4008 ])# AC_LIBTOOL_POSTDEP_PREDEP
4009
4010 # AC_LIBTOOL_LANG_F77_CONFIG
4011 # --------------------------
4012 # Ensure that the configuration vars for the C compiler are
4013 # suitably defined. Those variables are subsequently used by
4014 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4015 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4016 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4017 [AC_REQUIRE([AC_PROG_F77])
4018 AC_LANG_PUSH(Fortran 77)
4019
4020 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4021 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4022 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4023 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4024 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4025 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4026 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4027 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4028 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4029 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4030 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4031 _LT_AC_TAGVAR(module_cmds, $1)=
4032 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4033 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4034 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4035 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4036 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4037 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4038
4039 # Source file extension for f77 test sources.
4040 ac_ext=f
4041
4042 # Object file extension for compiled f77 test sources.
4043 objext=o
4044 _LT_AC_TAGVAR(objext, $1)=$objext
4045
4046 # Code to be used in simple compile tests
4047 lt_simple_compile_test_code="\
4048 subroutine t
4049 return
4050 end
4051 "
4052
4053 # Code to be used in simple link tests
4054 lt_simple_link_test_code="\
4055 program t
4056 end
4057 "
4058
4059 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4060 _LT_AC_SYS_COMPILER
4061
4062 # save warnings/boilerplate of simple test code
4063 _LT_COMPILER_BOILERPLATE
4064 _LT_LINKER_BOILERPLATE
4065
4066 # Allow CC to be a program name with arguments.
4067 lt_save_CC="$CC"
4068 CC=${F77-"f77"}
4069 compiler=$CC
4070 _LT_AC_TAGVAR(compiler, $1)=$CC
4071 _LT_CC_BASENAME([$compiler])
4072
4073 AC_MSG_CHECKING([if libtool supports shared libraries])
4074 AC_MSG_RESULT([$can_build_shared])
4075
4076 AC_MSG_CHECKING([whether to build shared libraries])
4077 test "$can_build_shared" = "no" && enable_shared=no
4078
4079 # On AIX, shared libraries and static libraries use the same namespace, and
4080 # are all built from PIC.
4081 case $host_os in
4082 aix3*)
4083 test "$enable_shared" = yes && enable_static=no
4084 if test -n "$RANLIB"; then
4085 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4086 postinstall_cmds='$RANLIB $lib'
4087 fi
4088 ;;
4089 aix4* | aix5*)
4090 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4091 test "$enable_shared" = yes && enable_static=no
4092 fi
4093 ;;
4094 esac
4095 AC_MSG_RESULT([$enable_shared])
4096
4097 AC_MSG_CHECKING([whether to build static libraries])
4098 # Make sure either enable_shared or enable_static is yes.
4099 test "$enable_shared" = yes || enable_static=yes
4100 AC_MSG_RESULT([$enable_static])
4101
4102 _LT_AC_TAGVAR(GCC, $1)="$G77"
4103 _LT_AC_TAGVAR(LD, $1)="$LD"
4104
4105 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4106 AC_LIBTOOL_PROG_CC_C_O($1)
4107 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4108 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4109 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4110 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4111
4112 AC_LIBTOOL_CONFIG($1)
4113
4114 AC_LANG_POP
4115 CC="$lt_save_CC"
4116 ])# AC_LIBTOOL_LANG_F77_CONFIG
4117
4118
4119 # AC_LIBTOOL_LANG_GCJ_CONFIG
4120 # --------------------------
4121 # Ensure that the configuration vars for the C compiler are
4122 # suitably defined. Those variables are subsequently used by
4123 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4124 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4125 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4126 [AC_LANG_SAVE
4127
4128 # Source file extension for Java test sources.
4129 ac_ext=java
4130
4131 # Object file extension for compiled Java test sources.
4132 objext=o
4133 _LT_AC_TAGVAR(objext, $1)=$objext
4134
4135 # Code to be used in simple compile tests
4136 lt_simple_compile_test_code="class foo {}"
4137
4138 # Code to be used in simple link tests
4139 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4140
4141 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4142 _LT_AC_SYS_COMPILER
4143
4144 # save warnings/boilerplate of simple test code
4145 _LT_COMPILER_BOILERPLATE
4146 _LT_LINKER_BOILERPLATE
4147
4148 # Allow CC to be a program name with arguments.
4149 lt_save_CC="$CC"
4150 CC=${GCJ-"gcj"}
4151 compiler=$CC
4152 _LT_AC_TAGVAR(compiler, $1)=$CC
4153 _LT_CC_BASENAME([$compiler])
4154
4155 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4156 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4157
4158 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4159
4160 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4161 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4162 AC_LIBTOOL_PROG_CC_C_O($1)
4163 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4164 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4165 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4166 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4167
4168 AC_LIBTOOL_CONFIG($1)
4169
4170 AC_LANG_RESTORE
4171 CC="$lt_save_CC"
4172 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4173
4174
4175 # AC_LIBTOOL_LANG_RC_CONFIG
4176 # -------------------------
4177 # Ensure that the configuration vars for the Windows resource compiler are
4178 # suitably defined. Those variables are subsequently used by
4179 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4180 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4181 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4182 [AC_LANG_SAVE
4183
4184 # Source file extension for RC test sources.
4185 ac_ext=rc
4186
4187 # Object file extension for compiled RC test sources.
4188 objext=o
4189 _LT_AC_TAGVAR(objext, $1)=$objext
4190
4191 # Code to be used in simple compile tests
4192 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4193
4194 # Code to be used in simple link tests
4195 lt_simple_link_test_code="$lt_simple_compile_test_code"
4196
4197 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4198 _LT_AC_SYS_COMPILER
4199
4200 # save warnings/boilerplate of simple test code
4201 _LT_COMPILER_BOILERPLATE
4202 _LT_LINKER_BOILERPLATE
4203
4204 # Allow CC to be a program name with arguments.
4205 lt_save_CC="$CC"
4206 CC=${RC-"windres"}
4207 compiler=$CC
4208 _LT_AC_TAGVAR(compiler, $1)=$CC
4209 _LT_CC_BASENAME([$compiler])
4210 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4211
4212 AC_LIBTOOL_CONFIG($1)
4213
4214 AC_LANG_RESTORE
4215 CC="$lt_save_CC"
4216 ])# AC_LIBTOOL_LANG_RC_CONFIG
4217
4218
4219 # AC_LIBTOOL_CONFIG([TAGNAME])
4220 # ----------------------------
4221 # If TAGNAME is not passed, then create an initial libtool script
4222 # with a default configuration from the untagged config vars. Otherwise
4223 # add code to config.status for appending the configuration named by
4224 # TAGNAME from the matching tagged config vars.
4225 AC_DEFUN([AC_LIBTOOL_CONFIG],
4226 [# The else clause should only fire when bootstrapping the
4227 # libtool distribution, otherwise you forgot to ship ltmain.sh
4228 # with your package, and you will get complaints that there are
4229 # no rules to generate ltmain.sh.
4230 if test -f "$ltmain"; then
4231 # See if we are running on zsh, and set the options which allow our commands through
4232 # without removal of \ escapes.
4233 if test -n "${ZSH_VERSION+set}" ; then
4234 setopt NO_GLOB_SUBST
4235 fi
4236 # Now quote all the things that may contain metacharacters while being
4237 # careful not to overquote the AC_SUBSTed values. We take copies of the
4238 # variables and quote the copies for generation of the libtool script.
4239 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4240 SED SHELL STRIP \
4241 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4242 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4243 deplibs_check_method reload_flag reload_cmds need_locks \
4244 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4245 lt_cv_sys_global_symbol_to_c_name_address \
4246 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4247 old_postinstall_cmds old_postuninstall_cmds \
4248 _LT_AC_TAGVAR(compiler, $1) \
4249 _LT_AC_TAGVAR(CC, $1) \
4250 _LT_AC_TAGVAR(LD, $1) \
4251 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4252 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4253 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4254 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4255 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4256 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4257 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4258 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4259 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4260 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4261 _LT_AC_TAGVAR(predep_objects, $1) \
4262 _LT_AC_TAGVAR(postdep_objects, $1) \
4263 _LT_AC_TAGVAR(predeps, $1) \
4264 _LT_AC_TAGVAR(postdeps, $1) \
4265 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4266 _LT_AC_TAGVAR(archive_cmds, $1) \
4267 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4268 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4269 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4270 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4271 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4272 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4273 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4274 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4275 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4276 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4277 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4278 _LT_AC_TAGVAR(module_cmds, $1) \
4279 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4280 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4281 _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4282 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4283 _LT_AC_TAGVAR(include_expsyms, $1); do
4284
4285 case $var in
4286 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4287 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4288 _LT_AC_TAGVAR(archive_cmds, $1) | \
4289 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4290 _LT_AC_TAGVAR(module_cmds, $1) | \
4291 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4292 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4293 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4294 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4295 postinstall_cmds | postuninstall_cmds | \
4296 old_postinstall_cmds | old_postuninstall_cmds | \
4297 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4298 # Double-quote double-evaled strings.
4299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4300 ;;
4301 *)
4302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4303 ;;
4304 esac
4305 done
4306
4307 case $lt_echo in
4308 *'\[$]0 --fallback-echo"')
4309 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4310 ;;
4311 esac
4312
4313 ifelse([$1], [],
4314 [cfgfile="${ofile}T"
4315 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4316 $rm -f "$cfgfile"
4317 AC_MSG_NOTICE([creating $ofile])],
4318 [cfgfile="$ofile"])
4319
4320 cat <<__EOF__ >> "$cfgfile"
4321 ifelse([$1], [],
4322 [#! $SHELL
4323
4324 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4325 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4326 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4327 #
4328 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4329 # Free Software Foundation, Inc.
4330 #
4331 # This file is part of GNU Libtool:
4332 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4333 #
4334 # This program is free software; you can redistribute it and/or modify
4335 # it under the terms of the GNU General Public License as published by
4336 # the Free Software Foundation; either version 2 of the License, or
4337 # (at your option) any later version.
4338 #
4339 # This program is distributed in the hope that it will be useful, but
4340 # WITHOUT ANY WARRANTY; without even the implied warranty of
4341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4342 # General Public License for more details.
4343 #
4344 # You should have received a copy of the GNU General Public License
4345 # along with this program; if not, write to the Free Software
4346 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4347 #
4348 # As a special exception to the GNU General Public License, if you
4349 # distribute this file as part of a program that contains a
4350 # configuration script generated by Autoconf, you may include it under
4351 # the same distribution terms that you use for the rest of that program.
4352
4353 # A sed program that does not truncate output.
4354 SED=$lt_SED
4355
4356 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4357 Xsed="$SED -e 1s/^X//"
4358
4359 # The HP-UX ksh and POSIX shell print the target directory to stdout
4360 # if CDPATH is set.
4361 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4362
4363 # The names of the tagged configurations supported by this script.
4364 available_tags=
4365
4366 # ### BEGIN LIBTOOL CONFIG],
4367 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4368
4369 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4370
4371 # Shell to use when invoking shell scripts.
4372 SHELL=$lt_SHELL
4373
4374 # Whether or not to build shared libraries.
4375 build_libtool_libs=$enable_shared
4376
4377 # Whether or not to build static libraries.
4378 build_old_libs=$enable_static
4379
4380 # Whether or not to add -lc for building shared libraries.
4381 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4382
4383 # Whether or not to disallow shared libs when runtime libs are static
4384 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4385
4386 # Whether or not to optimize for fast installation.
4387 fast_install=$enable_fast_install
4388
4389 # The host system.
4390 host_alias=$host_alias
4391 host=$host
4392 host_os=$host_os
4393
4394 # The build system.
4395 build_alias=$build_alias
4396 build=$build
4397 build_os=$build_os
4398
4399 # An echo program that does not interpret backslashes.
4400 echo=$lt_echo
4401
4402 # The archiver.
4403 AR=$lt_AR
4404 AR_FLAGS=$lt_AR_FLAGS
4405
4406 # A C compiler.
4407 LTCC=$lt_LTCC
4408
4409 # LTCC compiler flags.
4410 LTCFLAGS=$lt_LTCFLAGS
4411
4412 # A language-specific compiler.
4413 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4414
4415 # Is the compiler the GNU C compiler?
4416 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4417
4418 # An ERE matcher.
4419 EGREP=$lt_EGREP
4420
4421 # The linker used to build libraries.
4422 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4423
4424 # Whether we need hard or soft links.
4425 LN_S=$lt_LN_S
4426
4427 # A BSD-compatible nm program.
4428 NM=$lt_NM
4429
4430 # A symbol stripping program
4431 STRIP=$lt_STRIP
4432
4433 # Used to examine libraries when file_magic_cmd begins "file"
4434 MAGIC_CMD=$MAGIC_CMD
4435
4436 # Used on cygwin: DLL creation program.
4437 DLLTOOL="$DLLTOOL"
4438
4439 # Used on cygwin: object dumper.
4440 OBJDUMP="$OBJDUMP"
4441
4442 # Used on cygwin: assembler.
4443 AS="$AS"
4444
4445 # The name of the directory that contains temporary libtool files.
4446 objdir=$objdir
4447
4448 # How to create reloadable object files.
4449 reload_flag=$lt_reload_flag
4450 reload_cmds=$lt_reload_cmds
4451
4452 # How to pass a linker flag through the compiler.
4453 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4454
4455 # Object file suffix (normally "o").
4456 objext="$ac_objext"
4457
4458 # Old archive suffix (normally "a").
4459 libext="$libext"
4460
4461 # Shared library suffix (normally ".so").
4462 shrext_cmds='$shrext_cmds'
4463
4464 # Executable file suffix (normally "").
4465 exeext="$exeext"
4466
4467 # Additional compiler flags for building library objects.
4468 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4469 pic_mode=$pic_mode
4470
4471 # What is the maximum length of a command?
4472 max_cmd_len=$lt_cv_sys_max_cmd_len
4473
4474 # Does compiler simultaneously support -c and -o options?
4475 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4476
4477 # Must we lock files when doing compilation?
4478 need_locks=$lt_need_locks
4479
4480 # Do we need the lib prefix for modules?
4481 need_lib_prefix=$need_lib_prefix
4482
4483 # Do we need a version for libraries?
4484 need_version=$need_version
4485
4486 # Whether dlopen is supported.
4487 dlopen_support=$enable_dlopen
4488
4489 # Whether dlopen of programs is supported.
4490 dlopen_self=$enable_dlopen_self
4491
4492 # Whether dlopen of statically linked programs is supported.
4493 dlopen_self_static=$enable_dlopen_self_static
4494
4495 # Compiler flag to prevent dynamic linking.
4496 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4497
4498 # Compiler flag to turn off builtin functions.
4499 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4500
4501 # Compiler flag to allow reflexive dlopens.
4502 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4503
4504 # Compiler flag to generate shared objects directly from archives.
4505 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4506
4507 # Compiler flag to generate thread-safe objects.
4508 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4509
4510 # Library versioning type.
4511 version_type=$version_type
4512
4513 # Format of library name prefix.
4514 libname_spec=$lt_libname_spec
4515
4516 # List of archive names. First name is the real one, the rest are links.
4517 # The last name is the one that the linker finds with -lNAME.
4518 library_names_spec=$lt_library_names_spec
4519
4520 # The coded name of the library, if different from the real name.
4521 soname_spec=$lt_soname_spec
4522
4523 # Commands used to build and install an old-style archive.
4524 RANLIB=$lt_RANLIB
4525 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4526 old_postinstall_cmds=$lt_old_postinstall_cmds
4527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4528
4529 # Create an old-style archive from a shared archive.
4530 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4531
4532 # Create a temporary old-style archive to link instead of a shared archive.
4533 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4534
4535 # Commands used to build and install a shared archive.
4536 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4537 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4538 postinstall_cmds=$lt_postinstall_cmds
4539 postuninstall_cmds=$lt_postuninstall_cmds
4540
4541 # Commands used to build a loadable module (assumed same as above if empty)
4542 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4543 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4544
4545 # Commands to strip libraries.
4546 old_striplib=$lt_old_striplib
4547 striplib=$lt_striplib
4548
4549 # Dependencies to place before the objects being linked to create a
4550 # shared library.
4551 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4552
4553 # Dependencies to place after the objects being linked to create a
4554 # shared library.
4555 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4556
4557 # Dependencies to place before the objects being linked to create a
4558 # shared library.
4559 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4560
4561 # Dependencies to place after the objects being linked to create a
4562 # shared library.
4563 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4564
4565 # The library search path used internally by the compiler when linking
4566 # a shared library.
4567 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4568
4569 # Method to check whether dependent libraries are shared objects.
4570 deplibs_check_method=$lt_deplibs_check_method
4571
4572 # Command to use when deplibs_check_method == file_magic.
4573 file_magic_cmd=$lt_file_magic_cmd
4574
4575 # Flag that allows shared libraries with undefined symbols to be built.
4576 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4577
4578 # Flag that forces no undefined symbols.
4579 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4580
4581 # Commands used to finish a libtool library installation in a directory.
4582 finish_cmds=$lt_finish_cmds
4583
4584 # Same as above, but a single script fragment to be evaled but not shown.
4585 finish_eval=$lt_finish_eval
4586
4587 # Take the output of nm and produce a listing of raw symbols and C names.
4588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4589
4590 # Transform the output of nm in a proper C declaration
4591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4592
4593 # Transform the output of nm in a C name address pair
4594 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4595
4596 # This is the shared library runtime path variable.
4597 runpath_var=$runpath_var
4598
4599 # This is the shared library path variable.
4600 shlibpath_var=$shlibpath_var
4601
4602 # Is shlibpath searched before the hard-coded library search path?
4603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4604
4605 # How to hardcode a shared library path into an executable.
4606 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4607
4608 # Whether we should hardcode library paths into libraries.
4609 hardcode_into_libs=$hardcode_into_libs
4610
4611 # Flag to hardcode \$libdir into a binary during linking.
4612 # This must work even if \$libdir does not exist.
4613 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4614
4615 # If ld is used when linking, flag to hardcode \$libdir into
4616 # a binary during linking. This must work even if \$libdir does
4617 # not exist.
4618 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4619
4620 # Whether we need a single -rpath flag with a separated argument.
4621 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4622
4623 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4624 # resulting binary.
4625 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4626
4627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4628 # resulting binary.
4629 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4630
4631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4632 # the resulting binary.
4633 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4634
4635 # Set to yes if building a shared library automatically hardcodes DIR into the library
4636 # and all subsequent libraries and executables linked against it.
4637 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4638
4639 # Variables whose values should be saved in libtool wrapper scripts and
4640 # restored at relink time.
4641 variables_saved_for_relink="$variables_saved_for_relink"
4642
4643 # Whether libtool must link a program against all its dependency libraries.
4644 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4645
4646 # Compile-time system search path for libraries
4647 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4648
4649 # Run-time system search path for libraries
4650 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4651
4652 # Fix the shell variable \$srcfile for the compiler.
4653 fix_srcfile_path=$lt_fix_srcfile_path
4654
4655 # Set to yes if exported symbols are required.
4656 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4657
4658 # The commands to list exported symbols.
4659 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4660
4661 # The commands to extract the exported symbol list from a shared archive.
4662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4663
4664 # Symbols that should not be listed in the preloaded symbols.
4665 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4666
4667 # Symbols that must always be exported.
4668 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4669
4670 ifelse([$1],[],
4671 [# ### END LIBTOOL CONFIG],
4672 [# ### END LIBTOOL TAG CONFIG: $tagname])
4673
4674 __EOF__
4675
4676 ifelse([$1],[], [
4677 case $host_os in
4678 aix3*)
4679 cat <<\EOF >> "$cfgfile"
4680
4681 # AIX sometimes has problems with the GCC collect2 program. For some
4682 # reason, if we set the COLLECT_NAMES environment variable, the problems
4683 # vanish in a puff of smoke.
4684 if test "X${COLLECT_NAMES+set}" != Xset; then
4685 COLLECT_NAMES=
4686 export COLLECT_NAMES
4687 fi
4688 EOF
4689 ;;
4690 esac
4691
4692 # We use sed instead of cat because bash on DJGPP gets confused if
4693 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4694 # text mode, it properly converts lines to CR/LF. This bash problem
4695 # is reportedly fixed, but why not run on old versions too?
4696 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4697
4698 mv -f "$cfgfile" "$ofile" || \
4699 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4700 chmod +x "$ofile"
4701 ])
4702 else
4703 # If there is no Makefile yet, we rely on a make rule to execute
4704 # `config.status --recheck' to rerun these tests and create the
4705 # libtool script then.
4706 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4707 if test -f "$ltmain_in"; then
4708 test -f Makefile && make "$ltmain"
4709 fi
4710 fi
4711 ])# AC_LIBTOOL_CONFIG
4712
4713
4714 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4715 # -------------------------------------------
4716 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4717 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4718
4719 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4720
4721 if test "$GCC" = yes; then
4722 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4723
4724 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4725 lt_cv_prog_compiler_rtti_exceptions,
4726 [-fno-rtti -fno-exceptions], [],
4727 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4728 fi
4729 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4730
4731
4732 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4733 # ---------------------------------
4734 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4735 [AC_REQUIRE([AC_CANONICAL_HOST])
4736 AC_REQUIRE([LT_AC_PROG_SED])
4737 AC_REQUIRE([AC_PROG_NM])
4738 AC_REQUIRE([AC_OBJEXT])
4739 # Check for command to grab the raw symbol name followed by C symbol from nm.
4740 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4741 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4742 [
4743 # These are sane defaults that work on at least a few old systems.
4744 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4745
4746 # Character class describing NM global symbol codes.
4747 symcode='[[BCDEGRST]]'
4748
4749 # Regexp to match symbols that can be accessed directly from C.
4750 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4751
4752 # Transform an extracted symbol line into a proper C declaration
4753 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4754
4755 # Transform an extracted symbol line into symbol name and symbol address
4756 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'"
4757
4758 # Define system-specific variables.
4759 case $host_os in
4760 aix*)
4761 symcode='[[BCDT]]'
4762 ;;
4763 cygwin* | mingw* | pw32*)
4764 symcode='[[ABCDGISTW]]'
4765 ;;
4766 hpux*) # Its linker distinguishes data from code symbols
4767 if test "$host_cpu" = ia64; then
4768 symcode='[[ABCDEGRST]]'
4769 fi
4770 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4771 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'"
4772 ;;
4773 linux* | k*bsd*-gnu)
4774 if test "$host_cpu" = ia64; then
4775 symcode='[[ABCDGIRSTW]]'
4776 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4777 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'"
4778 fi
4779 ;;
4780 irix* | nonstopux*)
4781 symcode='[[BCDEGRST]]'
4782 ;;
4783 osf*)
4784 symcode='[[BCDEGQRST]]'
4785 ;;
4786 solaris*)
4787 symcode='[[BDRT]]'
4788 ;;
4789 sco3.2v5*)
4790 symcode='[[DT]]'
4791 ;;
4792 sysv4.2uw2*)
4793 symcode='[[DT]]'
4794 ;;
4795 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4796 symcode='[[ABDT]]'
4797 ;;
4798 sysv4)
4799 symcode='[[DFNSTU]]'
4800 ;;
4801 esac
4802
4803 # Handle CRLF in mingw tool chain
4804 opt_cr=
4805 case $build_os in
4806 mingw*)
4807 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4808 ;;
4809 esac
4810
4811 # If we're using GNU nm, then use its standard symbol codes.
4812 case `$NM -V 2>&1` in
4813 *GNU* | *'with BFD'*)
4814 symcode='[[ABCDGIRSTW]]' ;;
4815 esac
4816
4817 # Try without a prefix undercore, then with it.
4818 for ac_symprfx in "" "_"; do
4819
4820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4821 symxfrm="\\1 $ac_symprfx\\2 \\2"
4822
4823 # Write the raw and C identifiers.
4824 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4825
4826 # Check to see that the pipe works correctly.
4827 pipe_works=no
4828
4829 rm -f conftest*
4830 cat > conftest.$ac_ext <<EOF
4831 #ifdef __cplusplus
4832 extern "C" {
4833 #endif
4834 char nm_test_var;
4835 void nm_test_func(){}
4836 #ifdef __cplusplus
4837 }
4838 #endif
4839 int main(){nm_test_var='a';nm_test_func();return(0);}
4840 EOF
4841
4842 if AC_TRY_EVAL(ac_compile); then
4843 # Now try to grab the symbols.
4844 nlist=conftest.nm
4845 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4846 # Try sorting and uniquifying the output.
4847 if sort "$nlist" | uniq > "$nlist"T; then
4848 mv -f "$nlist"T "$nlist"
4849 else
4850 rm -f "$nlist"T
4851 fi
4852
4853 # Make sure that we snagged all the symbols we need.
4854 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4855 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4856 cat <<EOF > conftest.$ac_ext
4857 #ifdef __cplusplus
4858 extern "C" {
4859 #endif
4860
4861 EOF
4862 # Now generate the symbol file.
4863 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4864
4865 cat <<EOF >> conftest.$ac_ext
4866 #if defined (__STDC__) && __STDC__
4867 # define lt_ptr_t void *
4868 #else
4869 # define lt_ptr_t char *
4870 # define const
4871 #endif
4872
4873 /* The mapping between symbol names and symbols. */
4874 const struct {
4875 const char *name;
4876 lt_ptr_t address;
4877 }
4878 lt_preloaded_symbols[[]] =
4879 {
4880 EOF
4881 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4882 cat <<\EOF >> conftest.$ac_ext
4883 {0, (lt_ptr_t) 0}
4884 };
4885
4886 #ifdef __cplusplus
4887 }
4888 #endif
4889 EOF
4890 # Now try linking the two files.
4891 mv conftest.$ac_objext conftstm.$ac_objext
4892 lt_save_LIBS="$LIBS"
4893 lt_save_CFLAGS="$CFLAGS"
4894 LIBS="conftstm.$ac_objext"
4895 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4896 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4897 pipe_works=yes
4898 fi
4899 LIBS="$lt_save_LIBS"
4900 CFLAGS="$lt_save_CFLAGS"
4901 else
4902 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4903 fi
4904 else
4905 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4906 fi
4907 else
4908 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4909 fi
4910 else
4911 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4912 cat conftest.$ac_ext >&5
4913 fi
4914 rm -f conftest* conftst*
4915
4916 # Do not use the global_symbol_pipe unless it works.
4917 if test "$pipe_works" = yes; then
4918 break
4919 else
4920 lt_cv_sys_global_symbol_pipe=
4921 fi
4922 done
4923 ])
4924 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4925 lt_cv_sys_global_symbol_to_cdecl=
4926 fi
4927 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4928 AC_MSG_RESULT(failed)
4929 else
4930 AC_MSG_RESULT(ok)
4931 fi
4932 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4933
4934
4935 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4936 # ---------------------------------------
4937 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4938 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4939 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4940 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4941
4942 AC_MSG_CHECKING([for $compiler option to produce PIC])
4943 ifelse([$1],[CXX],[
4944 # C++ specific cases for pic, static, wl, etc.
4945 if test "$GXX" = yes; then
4946 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4947 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4948
4949 case $host_os in
4950 aix*)
4951 # All AIX code is PIC.
4952 if test "$host_cpu" = ia64; then
4953 # AIX 5 now supports IA64 processor
4954 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4955 fi
4956 ;;
4957 amigaos*)
4958 # FIXME: we need at least 68020 code to build shared libraries, but
4959 # adding the `-m68020' flag to GCC prevents building anything better,
4960 # like `-m68040'.
4961 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4962 ;;
4963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4964 # PIC is the default for these OSes.
4965 ;;
4966 mingw* | cygwin* | os2* | pw32*)
4967 # This hack is so that the source file can tell whether it is being
4968 # built for inclusion in a dll (and should export symbols for example).
4969 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4970 # (--disable-auto-import) libraries
4971 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4972 ;;
4973 darwin* | rhapsody*)
4974 # PIC is the default on this platform
4975 # Common symbols not allowed in MH_DYLIB files
4976 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4977 ;;
4978 *djgpp*)
4979 # DJGPP does not support shared libraries at all
4980 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4981 ;;
4982 interix[[3-9]]*)
4983 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4984 # Instead, we relocate shared libraries at runtime.
4985 ;;
4986 sysv4*MP*)
4987 if test -d /usr/nec; then
4988 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4989 fi
4990 ;;
4991 hpux*)
4992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4993 # not for PA HP-UX.
4994 case $host_cpu in
4995 hppa*64*|ia64*)
4996 ;;
4997 *)
4998 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4999 ;;
5000 esac
5001 ;;
5002 *)
5003 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5004 ;;
5005 esac
5006 else
5007 case $host_os in
5008 aix4* | aix5*)
5009 # All AIX code is PIC.
5010 if test "$host_cpu" = ia64; then
5011 # AIX 5 now supports IA64 processor
5012 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5013 else
5014 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5015 fi
5016 ;;
5017 chorus*)
5018 case $cc_basename in
5019 cxch68*)
5020 # Green Hills C++ Compiler
5021 # _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"
5022 ;;
5023 esac
5024 ;;
5025 darwin*)
5026 # PIC is the default on this platform
5027 # Common symbols not allowed in MH_DYLIB files
5028 case $cc_basename in
5029 xlc*)
5030 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5031 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5032 ;;
5033 esac
5034 ;;
5035 dgux*)
5036 case $cc_basename in
5037 ec++*)
5038 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5039 ;;
5040 ghcx*)
5041 # Green Hills C++ Compiler
5042 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5043 ;;
5044 *)
5045 ;;
5046 esac
5047 ;;
5048 freebsd* | dragonfly*)
5049 # FreeBSD uses GNU C++
5050 ;;
5051 hpux9* | hpux10* | hpux11*)
5052 case $cc_basename in
5053 CC*)
5054 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5055 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5056 if test "$host_cpu" != ia64; then
5057 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5058 fi
5059 ;;
5060 aCC*)
5061 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5062 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5063 case $host_cpu in
5064 hppa*64*|ia64*)
5065 # +Z the default
5066 ;;
5067 *)
5068 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5069 ;;
5070 esac
5071 ;;
5072 *)
5073 ;;
5074 esac
5075 ;;
5076 interix*)
5077 # This is c89, which is MS Visual C++ (no shared libs)
5078 # Anyone wants to do a port?
5079 ;;
5080 irix5* | irix6* | nonstopux*)
5081 case $cc_basename in
5082 CC*)
5083 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5084 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5085 # CC pic flag -KPIC is the default.
5086 ;;
5087 *)
5088 ;;
5089 esac
5090 ;;
5091 linux* | k*bsd*-gnu)
5092 case $cc_basename in
5093 KCC*)
5094 # KAI C++ Compiler
5095 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5096 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5097 ;;
5098 icpc* | ecpc*)
5099 # Intel C++
5100 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5101 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5102 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5103 ;;
5104 pgCC*)
5105 # Portland Group C++ compiler.
5106 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5107 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5108 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5109 ;;
5110 cxx*)
5111 # Compaq C++
5112 # Make sure the PIC flag is empty. It appears that all Alpha
5113 # Linux and Compaq Tru64 Unix objects are PIC.
5114 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5115 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5116 ;;
5117 *)
5118 case `$CC -V 2>&1 | sed 5q` in
5119 *Sun\ C*)
5120 # Sun C++ 5.9
5121 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5122 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5123 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5124 ;;
5125 esac
5126 ;;
5127 esac
5128 ;;
5129 lynxos*)
5130 ;;
5131 m88k*)
5132 ;;
5133 mvs*)
5134 case $cc_basename in
5135 cxx*)
5136 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5137 ;;
5138 *)
5139 ;;
5140 esac
5141 ;;
5142 netbsd* | netbsdelf*-gnu)
5143 ;;
5144 osf3* | osf4* | osf5*)
5145 case $cc_basename in
5146 KCC*)
5147 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5148 ;;
5149 RCC*)
5150 # Rational C++ 2.4.1
5151 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5152 ;;
5153 cxx*)
5154 # Digital/Compaq C++
5155 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5156 # Make sure the PIC flag is empty. It appears that all Alpha
5157 # Linux and Compaq Tru64 Unix objects are PIC.
5158 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5159 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5160 ;;
5161 *)
5162 ;;
5163 esac
5164 ;;
5165 psos*)
5166 ;;
5167 solaris*)
5168 case $cc_basename in
5169 CC*)
5170 # Sun C++ 4.2, 5.x and Centerline C++
5171 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5172 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5173 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5174 ;;
5175 gcx*)
5176 # Green Hills C++ Compiler
5177 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5178 ;;
5179 *)
5180 ;;
5181 esac
5182 ;;
5183 sunos4*)
5184 case $cc_basename in
5185 CC*)
5186 # Sun C++ 4.x
5187 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5188 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5189 ;;
5190 lcc*)
5191 # Lucid
5192 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5193 ;;
5194 *)
5195 ;;
5196 esac
5197 ;;
5198 tandem*)
5199 case $cc_basename in
5200 NCC*)
5201 # NonStop-UX NCC 3.20
5202 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5203 ;;
5204 *)
5205 ;;
5206 esac
5207 ;;
5208 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5209 case $cc_basename in
5210 CC*)
5211 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5212 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5213 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5214 ;;
5215 esac
5216 ;;
5217 vxworks*)
5218 ;;
5219 *)
5220 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5221 ;;
5222 esac
5223 fi
5224 ],
5225 [
5226 if test "$GCC" = yes; then
5227 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5228 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5229
5230 case $host_os in
5231 aix*)
5232 # All AIX code is PIC.
5233 if test "$host_cpu" = ia64; then
5234 # AIX 5 now supports IA64 processor
5235 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5236 fi
5237 ;;
5238
5239 amigaos*)
5240 # FIXME: we need at least 68020 code to build shared libraries, but
5241 # adding the `-m68020' flag to GCC prevents building anything better,
5242 # like `-m68040'.
5243 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5244 ;;
5245
5246 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5247 # PIC is the default for these OSes.
5248 ;;
5249
5250 mingw* | cygwin* | pw32* | os2*)
5251 # This hack is so that the source file can tell whether it is being
5252 # built for inclusion in a dll (and should export symbols for example).
5253 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5254 # (--disable-auto-import) libraries
5255 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5256 ;;
5257
5258 darwin* | rhapsody*)
5259 # PIC is the default on this platform
5260 # Common symbols not allowed in MH_DYLIB files
5261 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5262 ;;
5263
5264 interix[[3-9]]*)
5265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5266 # Instead, we relocate shared libraries at runtime.
5267 ;;
5268
5269 msdosdjgpp*)
5270 # Just because we use GCC doesn't mean we suddenly get shared libraries
5271 # on systems that don't support them.
5272 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5273 enable_shared=no
5274 ;;
5275
5276 sysv4*MP*)
5277 if test -d /usr/nec; then
5278 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5279 fi
5280 ;;
5281
5282 hpux*)
5283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5284 # not for PA HP-UX.
5285 case $host_cpu in
5286 hppa*64*|ia64*)
5287 # +Z the default
5288 ;;
5289 *)
5290 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5291 ;;
5292 esac
5293 ;;
5294
5295 *)
5296 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5297 ;;
5298 esac
5299 else
5300 # PORTME Check for flag to pass linker flags through the system compiler.
5301 case $host_os in
5302 aix*)
5303 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5304 if test "$host_cpu" = ia64; then
5305 # AIX 5 now supports IA64 processor
5306 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5307 else
5308 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5309 fi
5310 ;;
5311 darwin*)
5312 # PIC is the default on this platform
5313 # Common symbols not allowed in MH_DYLIB files
5314 case $cc_basename in
5315 xlc*)
5316 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5317 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5318 ;;
5319 esac
5320 ;;
5321
5322 mingw* | cygwin* | pw32* | os2*)
5323 # This hack is so that the source file can tell whether it is being
5324 # built for inclusion in a dll (and should export symbols for example).
5325 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5326 ;;
5327
5328 hpux9* | hpux10* | hpux11*)
5329 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5331 # not for PA HP-UX.
5332 case $host_cpu in
5333 hppa*64*|ia64*)
5334 # +Z the default
5335 ;;
5336 *)
5337 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5338 ;;
5339 esac
5340 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5341 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5342 ;;
5343
5344 irix5* | irix6* | nonstopux*)
5345 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5346 # PIC (with -KPIC) is the default.
5347 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5348 ;;
5349
5350 newsos6)
5351 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5352 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5353 ;;
5354
5355 linux* | k*bsd*-gnu)
5356 case $cc_basename in
5357 icc* | ecc*)
5358 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5359 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5360 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5361 ;;
5362 pgcc* | pgf77* | pgf90* | pgf95*)
5363 # Portland Group compilers (*not* the Pentium gcc compiler,
5364 # which looks to be a dead project)
5365 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5366 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5367 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5368 ;;
5369 ccc*)
5370 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5371 # All Alpha code is PIC.
5372 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5373 ;;
5374 *)
5375 case `$CC -V 2>&1 | sed 5q` in
5376 *Sun\ C*)
5377 # Sun C 5.9
5378 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5379 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5380 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5381 ;;
5382 *Sun\ F*)
5383 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5384 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5385 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5386 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5387 ;;
5388 esac
5389 ;;
5390 esac
5391 ;;
5392
5393 osf3* | osf4* | osf5*)
5394 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5395 # All OSF/1 code is PIC.
5396 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5397 ;;
5398
5399 rdos*)
5400 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5401 ;;
5402
5403 solaris*)
5404 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5405 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5406 case $cc_basename in
5407 f77* | f90* | f95*)
5408 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5409 *)
5410 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5411 esac
5412 ;;
5413
5414 sunos4*)
5415 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5416 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5417 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5418 ;;
5419
5420 sysv4 | sysv4.2uw2* | sysv4.3*)
5421 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5422 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5423 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5424 ;;
5425
5426 sysv4*MP*)
5427 if test -d /usr/nec ;then
5428 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5429 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5430 fi
5431 ;;
5432
5433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5434 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5435 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5436 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5437 ;;
5438
5439 unicos*)
5440 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5441 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5442 ;;
5443
5444 uts4*)
5445 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5446 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5447 ;;
5448
5449 *)
5450 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5451 ;;
5452 esac
5453 fi
5454 ])
5455 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5456
5457 #
5458 # Check to make sure the PIC flag actually works.
5459 #
5460 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5461 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5462 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5463 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5464 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5465 "" | " "*) ;;
5466 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5467 esac],
5468 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5469 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5470 fi
5471 case $host_os in
5472 # For platforms which do not support PIC, -DPIC is meaningless:
5473 *djgpp*)
5474 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5475 ;;
5476 *)
5477 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5478 ;;
5479 esac
5480
5481 #
5482 # Check to make sure the static flag actually works.
5483 #
5484 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5485 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5486 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5487 $lt_tmp_static_flag,
5488 [],
5489 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5490 ])
5491
5492
5493 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5494 # ------------------------------------
5495 # See if the linker supports building shared libraries.
5496 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5497 [AC_REQUIRE([LT_AC_PROG_SED])dnl
5498 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5499 ifelse([$1],[CXX],[
5500 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5501 case $host_os in
5502 aix4* | aix5*)
5503 # If we're using GNU nm, then we don't want the "-C" option.
5504 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5505 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5506 _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'
5507 else
5508 _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'
5509 fi
5510 ;;
5511 pw32*)
5512 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5513 ;;
5514 cygwin* | mingw*)
5515 _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'
5516 ;;
5517 linux* | k*bsd*-gnu)
5518 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5519 ;;
5520 *)
5521 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5522 ;;
5523 esac
5524 ],[
5525 runpath_var=
5526 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5527 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5528 _LT_AC_TAGVAR(archive_cmds, $1)=
5529 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5530 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5531 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5532 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5533 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5534 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5535 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5536 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5537 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5538 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5539 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5540 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5541 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5542 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5543 _LT_AC_TAGVAR(module_cmds, $1)=
5544 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5545 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5546 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5547 # include_expsyms should be a list of space-separated symbols to be *always*
5548 # included in the symbol list
5549 _LT_AC_TAGVAR(include_expsyms, $1)=
5550 # exclude_expsyms can be an extended regexp of symbols to exclude
5551 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5552 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5553 # as well as any symbol that contains `d'.
5554 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5555 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5556 # platforms (ab)use it in PIC code, but their linkers get confused if
5557 # the symbol is explicitly referenced. Since portable code cannot
5558 # rely on this symbol name, it's probably fine to never include it in
5559 # preloaded symbol tables.
5560 extract_expsyms_cmds=
5561 # Just being paranoid about ensuring that cc_basename is set.
5562 _LT_CC_BASENAME([$compiler])
5563 case $host_os in
5564 cygwin* | mingw* | pw32*)
5565 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5566 # When not using gcc, we currently assume that we are using
5567 # Microsoft Visual C++.
5568 if test "$GCC" != yes; then
5569 with_gnu_ld=no
5570 fi
5571 ;;
5572 interix*)
5573 # we just hope/assume this is gcc and not c89 (= MSVC++)
5574 with_gnu_ld=yes
5575 ;;
5576 openbsd*)
5577 with_gnu_ld=no
5578 ;;
5579 esac
5580
5581 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5582 if test "$with_gnu_ld" = yes; then
5583 # If archive_cmds runs LD, not CC, wlarc should be empty
5584 wlarc='${wl}'
5585
5586 # Set some defaults for GNU ld with shared library support. These
5587 # are reset later if shared libraries are not supported. Putting them
5588 # here allows them to be overridden if necessary.
5589 runpath_var=LD_RUN_PATH
5590 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5591 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5592 # ancient GNU ld didn't support --whole-archive et. al.
5593 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5594 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5595 else
5596 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5597 fi
5598 supports_anon_versioning=no
5599 case `$LD -v 2>/dev/null` in
5600 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5603 *\ 2.11.*) ;; # other 2.11 versions
5604 *) supports_anon_versioning=yes ;;
5605 esac
5606
5607 # See if GNU ld supports shared libraries.
5608 case $host_os in
5609 aix3* | aix4* | aix5*)
5610 # On AIX/PPC, the GNU linker is very broken
5611 if test "$host_cpu" != ia64; then
5612 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5613 cat <<EOF 1>&2
5614
5615 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5616 *** to be unable to reliably create shared libraries on AIX.
5617 *** Therefore, libtool is disabling shared libraries support. If you
5618 *** really care for shared libraries, you may want to modify your PATH
5619 *** so that a non-GNU linker is found, and then restart.
5620
5621 EOF
5622 fi
5623 ;;
5624
5625 amigaos*)
5626 _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)'
5627 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5628 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5629
5630 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5631 # that the semantics of dynamic libraries on AmigaOS, at least up
5632 # to version 4, is to share data among multiple programs linked
5633 # with the same dynamic library. Since this doesn't match the
5634 # behavior of shared libraries on other platforms, we can't use
5635 # them.
5636 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5637 ;;
5638
5639 beos*)
5640 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5641 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5643 # support --undefined. This deserves some investigation. FIXME
5644 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5645 else
5646 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5647 fi
5648 ;;
5649
5650 cygwin* | mingw* | pw32*)
5651 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5652 # as there is no search path for DLLs.
5653 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5654 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5655 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5656 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5657 _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'
5658
5659 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5660 _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'
5661 # If the export-symbols file already is a .def file (1st line
5662 # is EXPORTS), use it as is; otherwise, prepend...
5663 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5664 cp $export_symbols $output_objdir/$soname.def;
5665 else
5666 echo EXPORTS > $output_objdir/$soname.def;
5667 cat $export_symbols >> $output_objdir/$soname.def;
5668 fi~
5669 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5670 else
5671 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5672 fi
5673 ;;
5674
5675 interix[[3-9]]*)
5676 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5677 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5678 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5679 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5680 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5681 # Instead, shared libraries are loaded at an image base (0x10000000 by
5682 # default) and relocated if they conflict, which is a slow very memory
5683 # consuming and fragmenting process. To avoid this, we pick a random,
5684 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5685 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5686 _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'
5687 _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'
5688 ;;
5689
5690 gnu* | linux* | k*bsd*-gnu)
5691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5692 tmp_addflag=
5693 case $cc_basename,$host_cpu in
5694 pgcc*) # Portland Group C compiler
5695 _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'
5696 tmp_addflag=' $pic_flag'
5697 ;;
5698 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5699 _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'
5700 tmp_addflag=' $pic_flag -Mnomain' ;;
5701 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5702 tmp_addflag=' -i_dynamic' ;;
5703 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5704 tmp_addflag=' -i_dynamic -nofor_main' ;;
5705 ifc* | ifort*) # Intel Fortran compiler
5706 tmp_addflag=' -nofor_main' ;;
5707 esac
5708 case `$CC -V 2>&1 | sed 5q` in
5709 *Sun\ C*) # Sun C 5.9
5710 _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'
5711 tmp_sharedflag='-G' ;;
5712 *Sun\ F*) # Sun Fortran 8.3
5713 tmp_sharedflag='-G' ;;
5714 *)
5715 tmp_sharedflag='-shared' ;;
5716 esac
5717 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5718
5719 if test $supports_anon_versioning = yes; then
5720 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5721 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5722 $echo "local: *; };" >> $output_objdir/$libname.ver~
5723 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5724 fi
5725 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5726 else
5727 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5728 fi
5729 ;;
5730
5731 netbsd* | netbsdelf*-gnu)
5732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5733 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5734 wlarc=
5735 else
5736 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5737 _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'
5738 fi
5739 ;;
5740
5741 solaris*)
5742 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5743 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5744 cat <<EOF 1>&2
5745
5746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5747 *** create shared libraries on Solaris systems. Therefore, libtool
5748 *** is disabling shared libraries support. We urge you to upgrade GNU
5749 *** binutils to release 2.9.1 or newer. Another option is to modify
5750 *** your PATH or compiler configuration so that the native linker is
5751 *** used, and then restart.
5752
5753 EOF
5754 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5755 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5756 _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'
5757 else
5758 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5759 fi
5760 ;;
5761
5762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5763 case `$LD -v 2>&1` in
5764 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5765 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5766 cat <<_LT_EOF 1>&2
5767
5768 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5769 *** reliably create shared libraries on SCO systems. Therefore, libtool
5770 *** is disabling shared libraries support. We urge you to upgrade GNU
5771 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5772 *** your PATH or compiler configuration so that the native linker is
5773 *** used, and then restart.
5774
5775 _LT_EOF
5776 ;;
5777 *)
5778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5779 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5780 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5781 _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'
5782 else
5783 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5784 fi
5785 ;;
5786 esac
5787 ;;
5788
5789 sunos4*)
5790 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5791 wlarc=
5792 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5793 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5794 ;;
5795
5796 *)
5797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5798 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5799 _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'
5800 else
5801 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5802 fi
5803 ;;
5804 esac
5805
5806 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5807 runpath_var=
5808 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5809 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5810 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5811 fi
5812 else
5813 # PORTME fill in a description of your system's linker (not GNU ld)
5814 case $host_os in
5815 aix3*)
5816 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5817 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5818 _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'
5819 # Note: this linker hardcodes the directories in LIBPATH if there
5820 # are no directories specified by -L.
5821 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5822 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5823 # Neither direct hardcoding nor static linking is supported with a
5824 # broken collect2.
5825 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5826 fi
5827 ;;
5828
5829 aix4* | aix5*)
5830 if test "$host_cpu" = ia64; then
5831 # On IA64, the linker does run time linking by default, so we don't
5832 # have to do anything special.
5833 aix_use_runtimelinking=no
5834 exp_sym_flag='-Bexport'
5835 no_entry_flag=""
5836 else
5837 # If we're using GNU nm, then we don't want the "-C" option.
5838 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5839 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5840 _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'
5841 else
5842 _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'
5843 fi
5844 aix_use_runtimelinking=no
5845
5846 # Test if we are trying to use run time linking or normal
5847 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5848 # need to do runtime linking.
5849 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5850 for ld_flag in $LDFLAGS; do
5851 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5852 aix_use_runtimelinking=yes
5853 break
5854 fi
5855 done
5856 ;;
5857 esac
5858
5859 exp_sym_flag='-bexport'
5860 no_entry_flag='-bnoentry'
5861 fi
5862
5863 # When large executables or shared objects are built, AIX ld can
5864 # have problems creating the table of contents. If linking a library
5865 # or program results in "error TOC overflow" add -mminimal-toc to
5866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5868
5869 _LT_AC_TAGVAR(archive_cmds, $1)=''
5870 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5871 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5872 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5873
5874 if test "$GCC" = yes; then
5875 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5876 # We only want to do this on AIX 4.2 and lower, the check
5877 # below for broken collect2 doesn't work under 4.3+
5878 collect2name=`${CC} -print-prog-name=collect2`
5879 if test -f "$collect2name" && \
5880 strings "$collect2name" | grep resolve_lib_name >/dev/null
5881 then
5882 # We have reworked collect2
5883 :
5884 else
5885 # We have old collect2
5886 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5887 # It fails to find uninstalled libraries when the uninstalled
5888 # path is not listed in the libpath. Setting hardcode_minus_L
5889 # to unsupported forces relinking
5890 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5891 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5892 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5893 fi
5894 ;;
5895 esac
5896 shared_flag='-shared'
5897 if test "$aix_use_runtimelinking" = yes; then
5898 shared_flag="$shared_flag "'${wl}-G'
5899 fi
5900 else
5901 # not using gcc
5902 if test "$host_cpu" = ia64; then
5903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5904 # chokes on -Wl,-G. The following line is correct:
5905 shared_flag='-G'
5906 else
5907 if test "$aix_use_runtimelinking" = yes; then
5908 shared_flag='${wl}-G'
5909 else
5910 shared_flag='${wl}-bM:SRE'
5911 fi
5912 fi
5913 fi
5914
5915 # It seems that -bexpall does not export symbols beginning with
5916 # underscore (_), so it is better to generate a list of symbols to export.
5917 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5918 if test "$aix_use_runtimelinking" = yes; then
5919 # Warning - without using the other runtime loading flags (-brtl),
5920 # -berok will link without error, but may produce a broken library.
5921 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5922 # Determine the default libpath from the value encoded in an empty executable.
5923 _LT_AC_SYS_LIBPATH_AIX
5924 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5925 _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"
5926 else
5927 if test "$host_cpu" = ia64; then
5928 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5929 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5930 _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"
5931 else
5932 # Determine the default libpath from the value encoded in an empty executable.
5933 _LT_AC_SYS_LIBPATH_AIX
5934 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5935 # Warning - without using the other run time loading flags,
5936 # -berok will link without error, but may produce a broken library.
5937 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5938 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5939 # Exported symbols can be pulled into shared objects from archives
5940 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5941 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5942 # This is similar to how AIX traditionally builds its shared libraries.
5943 _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'
5944 fi
5945 fi
5946 ;;
5947
5948 amigaos*)
5949 _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)'
5950 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5951 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5952 # see comment about different semantics on the GNU ld section
5953 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5954 ;;
5955
5956 bsdi[[45]]*)
5957 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5958 ;;
5959
5960 cygwin* | mingw* | pw32*)
5961 # When not using gcc, we currently assume that we are using
5962 # Microsoft Visual C++.
5963 # hardcode_libdir_flag_spec is actually meaningless, as there is
5964 # no search path for DLLs.
5965 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5966 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5967 # Tell ltmain to make .lib files, not .a files.
5968 libext=lib
5969 # Tell ltmain to make .dll files, not .so files.
5970 shrext_cmds=".dll"
5971 # FIXME: Setting linknames here is a bad hack.
5972 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5973 # The linker will automatically build a .lib file if we build a DLL.
5974 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5975 # FIXME: Should let the user specify the lib program.
5976 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5977 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5978 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5979 ;;
5980
5981 darwin* | rhapsody*)
5982 case $host_os in
5983 rhapsody* | darwin1.[[012]])
5984 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5985 ;;
5986 *) # Darwin 1.3 on
5987 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5988 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5989 else
5990 case ${MACOSX_DEPLOYMENT_TARGET} in
5991 10.[[012]])
5992 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5993 ;;
5994 10.*)
5995 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5996 ;;
5997 esac
5998 fi
5999 ;;
6000 esac
6001 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6002 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6003 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6004 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6005 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6006 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6007 if test "$GCC" = yes ; then
6008 output_verbose_link_cmd='echo'
6009 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6010 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6011 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6012 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6013 _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}'
6014 else
6015 case $cc_basename in
6016 xlc*)
6017 output_verbose_link_cmd='echo'
6018 _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'
6019 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6020 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6021 _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}'
6022 _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}'
6023 ;;
6024 *)
6025 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6026 ;;
6027 esac
6028 fi
6029 ;;
6030
6031 dgux*)
6032 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6033 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6034 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6035 ;;
6036
6037 freebsd1*)
6038 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6039 ;;
6040
6041 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6042 # support. Future versions do this automatically, but an explicit c++rt0.o
6043 # does not break anything, and helps significantly (at the cost of a little
6044 # extra space).
6045 freebsd2.2*)
6046 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6047 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6048 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6049 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6050 ;;
6051
6052 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6053 freebsd2*)
6054 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6055 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6056 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6057 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6058 ;;
6059
6060 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6061 freebsd* | dragonfly*)
6062 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6063 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6064 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6065 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6066 ;;
6067
6068 hpux9*)
6069 if test "$GCC" = yes; then
6070 _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'
6071 else
6072 _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'
6073 fi
6074 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6075 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6076 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6077
6078 # hardcode_minus_L: Not really in the search PATH,
6079 # but as the default location of the library.
6080 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6081 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6082 ;;
6083
6084 hpux10*)
6085 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6086 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6087 else
6088 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6089 fi
6090 if test "$with_gnu_ld" = no; then
6091 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6092 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6093
6094 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6095 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6096
6097 # hardcode_minus_L: Not really in the search PATH,
6098 # but as the default location of the library.
6099 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6100 fi
6101 ;;
6102
6103 hpux11*)
6104 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6105 case $host_cpu in
6106 hppa*64*)
6107 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6108 ;;
6109 ia64*)
6110 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6111 ;;
6112 *)
6113 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6114 ;;
6115 esac
6116 else
6117 case $host_cpu in
6118 hppa*64*)
6119 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6120 ;;
6121 ia64*)
6122 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6123 ;;
6124 *)
6125 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6126 ;;
6127 esac
6128 fi
6129 if test "$with_gnu_ld" = no; then
6130 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6131 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6132
6133 case $host_cpu in
6134 hppa*64*|ia64*)
6135 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6136 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6137 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6138 ;;
6139 *)
6140 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6141 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6142
6143 # hardcode_minus_L: Not really in the search PATH,
6144 # but as the default location of the library.
6145 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6146 ;;
6147 esac
6148 fi
6149 ;;
6150
6151 irix5* | irix6* | nonstopux*)
6152 if test "$GCC" = yes; then
6153 _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'
6154 else
6155 _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'
6156 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6157 fi
6158 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6159 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6160 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6161 ;;
6162
6163 netbsd* | netbsdelf*-gnu)
6164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6165 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6166 else
6167 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6168 fi
6169 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6170 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6171 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6172 ;;
6173
6174 newsos6)
6175 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6176 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6177 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6178 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6179 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6180 ;;
6181
6182 openbsd*)
6183 if test -f /usr/libexec/ld.so; then
6184 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6185 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6187 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6188 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6189 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6190 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6191 else
6192 case $host_os in
6193 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6194 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6195 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6196 ;;
6197 *)
6198 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6199 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6200 ;;
6201 esac
6202 fi
6203 else
6204 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6205 fi
6206 ;;
6207
6208 os2*)
6209 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6210 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6211 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6212 _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'
6213 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6214 ;;
6215
6216 osf3*)
6217 if test "$GCC" = yes; then
6218 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6219 _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'
6220 else
6221 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6222 _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'
6223 fi
6224 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6225 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6226 ;;
6227
6228 osf4* | osf5*) # as osf3* with the addition of -msym flag
6229 if test "$GCC" = yes; then
6230 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6231 _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'
6232 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6233 else
6234 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6235 _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'
6236 _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~
6237 $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'
6238
6239 # Both c and cxx compiler support -rpath directly
6240 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6241 fi
6242 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6243 ;;
6244
6245 solaris*)
6246 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6247 if test "$GCC" = yes; then
6248 wlarc='${wl}'
6249 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6250 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6251 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6252 else
6253 wlarc=''
6254 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6255 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6256 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6257 fi
6258 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6259 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6260 case $host_os in
6261 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6262 *)
6263 # The compiler driver will combine and reorder linker options,
6264 # but understands `-z linker_flag'. GCC discards it without `$wl',
6265 # but is careful enough not to reorder.
6266 # Supported since Solaris 2.6 (maybe 2.5.1?)
6267 if test "$GCC" = yes; then
6268 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6269 else
6270 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6271 fi
6272 ;;
6273 esac
6274 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6275 ;;
6276
6277 sunos4*)
6278 if test "x$host_vendor" = xsequent; then
6279 # Use $CC to link under sequent, because it throws in some extra .o
6280 # files that make .init and .fini sections work.
6281 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6282 else
6283 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6284 fi
6285 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6286 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6287 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6288 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6289 ;;
6290
6291 sysv4)
6292 case $host_vendor in
6293 sni)
6294 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6295 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6296 ;;
6297 siemens)
6298 ## LD is ld it makes a PLAMLIB
6299 ## CC just makes a GrossModule.
6300 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6301 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6302 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6303 ;;
6304 motorola)
6305 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6306 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6307 ;;
6308 esac
6309 runpath_var='LD_RUN_PATH'
6310 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6311 ;;
6312
6313 sysv4.3*)
6314 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6315 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6316 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6317 ;;
6318
6319 sysv4*MP*)
6320 if test -d /usr/nec; then
6321 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6322 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6323 runpath_var=LD_RUN_PATH
6324 hardcode_runpath_var=yes
6325 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6326 fi
6327 ;;
6328
6329 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6330 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6331 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6332 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6333 runpath_var='LD_RUN_PATH'
6334
6335 if test "$GCC" = yes; then
6336 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6337 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6338 else
6339 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6340 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6341 fi
6342 ;;
6343
6344 sysv5* | sco3.2v5* | sco5v6*)
6345 # Note: We can NOT use -z defs as we might desire, because we do not
6346 # link with -lc, and that would cause any symbols used from libc to
6347 # always be unresolved, which means just about no library would
6348 # ever link correctly. If we're not using GNU ld we use -z text
6349 # though, which does catch some bad symbols but isn't as heavy-handed
6350 # as -z defs.
6351 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6352 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6353 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6354 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6355 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6356 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6357 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6358 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6359 runpath_var='LD_RUN_PATH'
6360
6361 if test "$GCC" = yes; then
6362 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6363 _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'
6364 else
6365 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6366 _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'
6367 fi
6368 ;;
6369
6370 uts4*)
6371 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6372 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6373 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6374 ;;
6375
6376 *)
6377 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6378 ;;
6379 esac
6380 fi
6381 ])
6382 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6383 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6384
6385 #
6386 # Do we need to explicitly link libc?
6387 #
6388 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6389 x|xyes)
6390 # Assume -lc should be added
6391 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6392
6393 if test "$enable_shared" = yes && test "$GCC" = yes; then
6394 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6395 *'~'*)
6396 # FIXME: we may have to deal with multi-command sequences.
6397 ;;
6398 '$CC '*)
6399 # Test whether the compiler implicitly links with -lc since on some
6400 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6401 # to ld, don't add -lc before -lgcc.
6402 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6403 $rm conftest*
6404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6405
6406 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6407 soname=conftest
6408 lib=conftest
6409 libobjs=conftest.$ac_objext
6410 deplibs=
6411 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6412 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6413 compiler_flags=-v
6414 linker_flags=-v
6415 verstring=
6416 output_objdir=.
6417 libname=conftest
6418 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6419 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6420 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6421 then
6422 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6423 else
6424 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6425 fi
6426 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6427 else
6428 cat conftest.err 1>&5
6429 fi
6430 $rm conftest*
6431 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6432 ;;
6433 esac
6434 fi
6435 ;;
6436 esac
6437 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6438
6439
6440 # _LT_AC_FILE_LTDLL_C
6441 # -------------------
6442 # Be careful that the start marker always follows a newline.
6443 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6444 # /* ltdll.c starts here */
6445 # #define WIN32_LEAN_AND_MEAN
6446 # #include <windows.h>
6447 # #undef WIN32_LEAN_AND_MEAN
6448 # #include <stdio.h>
6449 #
6450 # #ifndef __CYGWIN__
6451 # # ifdef __CYGWIN32__
6452 # # define __CYGWIN__ __CYGWIN32__
6453 # # endif
6454 # #endif
6455 #
6456 # #ifdef __cplusplus
6457 # extern "C" {
6458 # #endif
6459 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6460 # #ifdef __cplusplus
6461 # }
6462 # #endif
6463 #
6464 # #ifdef __CYGWIN__
6465 # #include <cygwin/cygwin_dll.h>
6466 # DECLARE_CYGWIN_DLL( DllMain );
6467 # #endif
6468 # HINSTANCE __hDllInstance_base;
6469 #
6470 # BOOL APIENTRY
6471 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6472 # {
6473 # __hDllInstance_base = hInst;
6474 # return TRUE;
6475 # }
6476 # /* ltdll.c ends here */
6477 ])# _LT_AC_FILE_LTDLL_C
6478
6479
6480 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6481 # ---------------------------------
6482 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6483
6484
6485 # old names
6486 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6487 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6488 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6489 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6490 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6491 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6492 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6493
6494 # This is just to silence aclocal about the macro not being used
6495 ifelse([AC_DISABLE_FAST_INSTALL])
6496
6497 AC_DEFUN([LT_AC_PROG_GCJ],
6498 [AC_CHECK_TOOL(GCJ, gcj, no)
6499 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6500 AC_SUBST(GCJFLAGS)
6501 ])
6502
6503 AC_DEFUN([LT_AC_PROG_RC],
6504 [AC_CHECK_TOOL(RC, windres, no)
6505 ])
6506
6507
6508 # Cheap backport of AS_EXECUTABLE_P and required macros
6509 # from Autoconf 2.59; we should not use $as_executable_p directly.
6510
6511 # _AS_TEST_PREPARE
6512 # ----------------
6513 m4_ifndef([_AS_TEST_PREPARE],
6514 [m4_defun([_AS_TEST_PREPARE],
6515 [if test -x / >/dev/null 2>&1; then
6516 as_executable_p='test -x'
6517 else
6518 as_executable_p='test -f'
6519 fi
6520 ])])# _AS_TEST_PREPARE
6521
6522 # AS_EXECUTABLE_P
6523 # ---------------
6524 # Check whether a file is executable.
6525 m4_ifndef([AS_EXECUTABLE_P],
6526 [m4_defun([AS_EXECUTABLE_P],
6527 [AS_REQUIRE([_AS_TEST_PREPARE])dnl
6528 $as_executable_p $1[]dnl
6529 ])])# AS_EXECUTABLE_P
6530
6531 # NOTE: This macro has been submitted for inclusion into #
6532 # GNU Autoconf as AC_PROG_SED. When it is available in #
6533 # a released version of Autoconf we should remove this #
6534 # macro and use it instead. #
6535 # LT_AC_PROG_SED
6536 # --------------
6537 # Check for a fully-functional sed program, that truncates
6538 # as few characters as possible. Prefer GNU sed if found.
6539 AC_DEFUN([LT_AC_PROG_SED],
6540 [AC_MSG_CHECKING([for a sed that does not truncate output])
6541 AC_CACHE_VAL(lt_cv_path_SED,
6542 [# Loop through the user's path and test for sed and gsed.
6543 # Then use that list of sed's as ones to test for truncation.
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for lt_ac_prog in sed gsed; do
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6552 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6553 fi
6554 done
6555 done
6556 done
6557 IFS=$as_save_IFS
6558 lt_ac_max=0
6559 lt_ac_count=0
6560 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6561 # along with /bin/sed that truncates output.
6562 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6563 test ! -f $lt_ac_sed && continue
6564 cat /dev/null > conftest.in
6565 lt_ac_count=0
6566 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6567 # Check for GNU sed and select it if it is found.
6568 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6569 lt_cv_path_SED=$lt_ac_sed
6570 break
6571 fi
6572 while true; do
6573 cat conftest.in conftest.in >conftest.tmp
6574 mv conftest.tmp conftest.in
6575 cp conftest.in conftest.nl
6576 echo >>conftest.nl
6577 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6578 cmp -s conftest.out conftest.nl || break
6579 # 10000 chars as input seems more than enough
6580 test $lt_ac_count -gt 10 && break
6581 lt_ac_count=`expr $lt_ac_count + 1`
6582 if test $lt_ac_count -gt $lt_ac_max; then
6583 lt_ac_max=$lt_ac_count
6584 lt_cv_path_SED=$lt_ac_sed
6585 fi
6586 done
6587 done
6588 ])
6589 SED=$lt_cv_path_SED
6590 AC_SUBST([SED])
6591 AC_MSG_RESULT([$SED])
6592 ])
6593
6594 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6595 #
6596 # This file is free software; the Free Software Foundation
6597 # gives unlimited permission to copy and/or distribute it,
6598 # with or without modifications, as long as this notice is preserved.
6599
6600 # AM_AUTOMAKE_VERSION(VERSION)
6601 # ----------------------------
6602 # Automake X.Y traces this macro to ensure aclocal.m4 has been
6603 # generated from the m4 files accompanying Automake X.Y.
6604 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6605
6606 # AM_SET_CURRENT_AUTOMAKE_VERSION
6607 # -------------------------------
6608 # Call AM_AUTOMAKE_VERSION so it can be traced.
6609 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6610 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6611 [AM_AUTOMAKE_VERSION([1.9.6])])
6612
6613 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
6614
6615 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6616 #
6617 # This file is free software; the Free Software Foundation
6618 # gives unlimited permission to copy and/or distribute it,
6619 # with or without modifications, as long as this notice is preserved.
6620
6621 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6622 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6623 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6624 #
6625 # Of course, Automake must honor this variable whenever it calls a
6626 # tool from the auxiliary directory. The problem is that $srcdir (and
6627 # therefore $ac_aux_dir as well) can be either absolute or relative,
6628 # depending on how configure is run. This is pretty annoying, since
6629 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
6630 # source directory, any form will work fine, but in subdirectories a
6631 # relative path needs to be adjusted first.
6632 #
6633 # $ac_aux_dir/missing
6634 # fails when called from a subdirectory if $ac_aux_dir is relative
6635 # $top_srcdir/$ac_aux_dir/missing
6636 # fails if $ac_aux_dir is absolute,
6637 # fails when called from a subdirectory in a VPATH build with
6638 # a relative $ac_aux_dir
6639 #
6640 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6641 # are both prefixed by $srcdir. In an in-source build this is usually
6642 # harmless because $srcdir is `.', but things will broke when you
6643 # start a VPATH build or use an absolute $srcdir.
6644 #
6645 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6646 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6647 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6648 # and then we would define $MISSING as
6649 # MISSING="\${SHELL} $am_aux_dir/missing"
6650 # This will work as long as MISSING is not called from configure, because
6651 # unfortunately $(top_srcdir) has no meaning in configure.
6652 # However there are other variables, like CC, which are often used in
6653 # configure, and could therefore not use this "fixed" $ac_aux_dir.
6654 #
6655 # Another solution, used here, is to always expand $ac_aux_dir to an
6656 # absolute PATH. The drawback is that using absolute paths prevent a
6657 # configured tree to be moved without reconfiguration.
6658
6659 AC_DEFUN([AM_AUX_DIR_EXPAND],
6660 [dnl Rely on autoconf to set up CDPATH properly.
6661 AC_PREREQ([2.50])dnl
6662 # expand $ac_aux_dir to an absolute path
6663 am_aux_dir=`cd $ac_aux_dir && pwd`
6664 ])
6665
6666 # AM_CONDITIONAL -*- Autoconf -*-
6667
6668 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6669 # Free Software Foundation, Inc.
6670 #
6671 # This file is free software; the Free Software Foundation
6672 # gives unlimited permission to copy and/or distribute it,
6673 # with or without modifications, as long as this notice is preserved.
6674
6675 # serial 7
6676
6677 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
6678 # -------------------------------------
6679 # Define a conditional.
6680 AC_DEFUN([AM_CONDITIONAL],
6681 [AC_PREREQ(2.52)dnl
6682 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6683 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6684 AC_SUBST([$1_TRUE])
6685 AC_SUBST([$1_FALSE])
6686 if $2; then
6687 $1_TRUE=
6688 $1_FALSE='#'
6689 else
6690 $1_TRUE='#'
6691 $1_FALSE=
6692 fi
6693 AC_CONFIG_COMMANDS_PRE(
6694 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6695 AC_MSG_ERROR([[conditional "$1" was never defined.
6696 Usually this means the macro was only invoked conditionally.]])
6697 fi])])
6698
6699
6700 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6701 # Free Software Foundation, Inc.
6702 #
6703 # This file is free software; the Free Software Foundation
6704 # gives unlimited permission to copy and/or distribute it,
6705 # with or without modifications, as long as this notice is preserved.
6706
6707 # serial 8
6708
6709 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6710 # written in clear, in which case automake, when reading aclocal.m4,
6711 # will think it sees a *use*, and therefore will trigger all it's
6712 # C support machinery. Also note that it means that autoscan, seeing
6713 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6714
6715
6716 # _AM_DEPENDENCIES(NAME)
6717 # ----------------------
6718 # See how the compiler implements dependency checking.
6719 # NAME is "CC", "CXX", "GCJ", or "OBJC".
6720 # We try a few techniques and use that to set a single cache variable.
6721 #
6722 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6723 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6724 # dependency, and given that the user is not expected to run this macro,
6725 # just rely on AC_PROG_CC.
6726 AC_DEFUN([_AM_DEPENDENCIES],
6727 [AC_REQUIRE([AM_SET_DEPDIR])dnl
6728 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6729 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6730 AC_REQUIRE([AM_DEP_TRACK])dnl
6731
6732 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6733 [$1], CXX, [depcc="$CXX" am_compiler_list=],
6734 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6735 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6736 [depcc="$$1" am_compiler_list=])
6737
6738 AC_CACHE_CHECK([dependency style of $depcc],
6739 [am_cv_$1_dependencies_compiler_type],
6740 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6741 # We make a subdir and do the tests there. Otherwise we can end up
6742 # making bogus files that we don't know about and never remove. For
6743 # instance it was reported that on HP-UX the gcc test will end up
6744 # making a dummy file named `D' -- because `-MD' means `put the output
6745 # in D'.
6746 mkdir conftest.dir
6747 # Copy depcomp to subdir because otherwise we won't find it if we're
6748 # using a relative directory.
6749 cp "$am_depcomp" conftest.dir
6750 cd conftest.dir
6751 # We will build objects and dependencies in a subdirectory because
6752 # it helps to detect inapplicable dependency modes. For instance
6753 # both Tru64's cc and ICC support -MD to output dependencies as a
6754 # side effect of compilation, but ICC will put the dependencies in
6755 # the current directory while Tru64 will put them in the object
6756 # directory.
6757 mkdir sub
6758
6759 am_cv_$1_dependencies_compiler_type=none
6760 if test "$am_compiler_list" = ""; then
6761 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6762 fi
6763 for depmode in $am_compiler_list; do
6764 # Setup a source with many dependencies, because some compilers
6765 # like to wrap large dependency lists on column 80 (with \), and
6766 # we should not choose a depcomp mode which is confused by this.
6767 #
6768 # We need to recreate these files for each test, as the compiler may
6769 # overwrite some of them when testing with obscure command lines.
6770 # This happens at least with the AIX C compiler.
6771 : > sub/conftest.c
6772 for i in 1 2 3 4 5 6; do
6773 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6774 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6775 # Solaris 8's {/usr,}/bin/sh.
6776 touch sub/conftst$i.h
6777 done
6778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6779
6780 case $depmode in
6781 nosideeffect)
6782 # after this tag, mechanisms are not by side-effect, so they'll
6783 # only be used when explicitly requested
6784 if test "x$enable_dependency_tracking" = xyes; then
6785 continue
6786 else
6787 break
6788 fi
6789 ;;
6790 none) break ;;
6791 esac
6792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6793 # mode. It turns out that the SunPro C++ compiler does not properly
6794 # handle `-M -o', and we need to detect this.
6795 if depmode=$depmode \
6796 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6798 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6799 >/dev/null 2>conftest.err &&
6800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6801 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6803 # icc doesn't choke on unknown options, it will just issue warnings
6804 # or remarks (even with -Werror). So we grep stderr for any message
6805 # that says an option was ignored or not supported.
6806 # When given -MP, icc 7.0 and 7.1 complain thusly:
6807 # icc: Command line warning: ignoring option '-M'; no argument required
6808 # The diagnosis changed in icc 8.0:
6809 # icc: Command line remark: option '-MP' not supported
6810 if (grep 'ignoring option' conftest.err ||
6811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6812 am_cv_$1_dependencies_compiler_type=$depmode
6813 break
6814 fi
6815 fi
6816 done
6817
6818 cd ..
6819 rm -rf conftest.dir
6820 else
6821 am_cv_$1_dependencies_compiler_type=none
6822 fi
6823 ])
6824 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6825 AM_CONDITIONAL([am__fastdep$1], [
6826 test "x$enable_dependency_tracking" != xno \
6827 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6828 ])
6829
6830
6831 # AM_SET_DEPDIR
6832 # -------------
6833 # Choose a directory name for dependency files.
6834 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
6835 AC_DEFUN([AM_SET_DEPDIR],
6836 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6837 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6838 ])
6839
6840
6841 # AM_DEP_TRACK
6842 # ------------
6843 AC_DEFUN([AM_DEP_TRACK],
6844 [AC_ARG_ENABLE(dependency-tracking,
6845 [ --disable-dependency-tracking speeds up one-time build
6846 --enable-dependency-tracking do not reject slow dependency extractors])
6847 if test "x$enable_dependency_tracking" != xno; then
6848 am_depcomp="$ac_aux_dir/depcomp"
6849 AMDEPBACKSLASH='\'
6850 fi
6851 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6852 AC_SUBST([AMDEPBACKSLASH])
6853 ])
6854
6855 # Generate code to set up dependency tracking. -*- Autoconf -*-
6856
6857 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6858 # Free Software Foundation, Inc.
6859 #
6860 # This file is free software; the Free Software Foundation
6861 # gives unlimited permission to copy and/or distribute it,
6862 # with or without modifications, as long as this notice is preserved.
6863
6864 #serial 3
6865
6866 # _AM_OUTPUT_DEPENDENCY_COMMANDS
6867 # ------------------------------
6868 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6869 [for mf in $CONFIG_FILES; do
6870 # Strip MF so we end up with the name of the file.
6871 mf=`echo "$mf" | sed -e 's/:.*$//'`
6872 # Check whether this is an Automake generated Makefile or not.
6873 # We used to match only the files named `Makefile.in', but
6874 # some people rename them; so instead we look at the file content.
6875 # Grep'ing the first line is not enough: some people post-process
6876 # each Makefile.in and add a new line on top of each file to say so.
6877 # So let's grep whole file.
6878 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6879 dirpart=`AS_DIRNAME("$mf")`
6880 else
6881 continue
6882 fi
6883 # Extract the definition of DEPDIR, am__include, and am__quote
6884 # from the Makefile without running `make'.
6885 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6886 test -z "$DEPDIR" && continue
6887 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6888 test -z "am__include" && continue
6889 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6890 # When using ansi2knr, U may be empty or an underscore; expand it
6891 U=`sed -n 's/^U = //p' < "$mf"`
6892 # Find all dependency output files, they are included files with
6893 # $(DEPDIR) in their names. We invoke sed twice because it is the
6894 # simplest approach to changing $(DEPDIR) to its actual value in the
6895 # expansion.
6896 for file in `sed -n "
6897 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6898 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6899 # Make sure the directory exists.
6900 test -f "$dirpart/$file" && continue
6901 fdir=`AS_DIRNAME(["$file"])`
6902 AS_MKDIR_P([$dirpart/$fdir])
6903 # echo "creating $dirpart/$file"
6904 echo '# dummy' > "$dirpart/$file"
6905 done
6906 done
6907 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6908
6909
6910 # AM_OUTPUT_DEPENDENCY_COMMANDS
6911 # -----------------------------
6912 # This macro should only be invoked once -- use via AC_REQUIRE.
6913 #
6914 # This code is only required when automatic dependency tracking
6915 # is enabled. FIXME. This creates each `.P' file that we will
6916 # need in order to bootstrap the dependency handling code.
6917 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6918 [AC_CONFIG_COMMANDS([depfiles],
6919 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6920 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6921 ])
6922
6923 # Do all the work for Automake. -*- Autoconf -*-
6924
6925 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6926 # Free Software Foundation, Inc.
6927 #
6928 # This file is free software; the Free Software Foundation
6929 # gives unlimited permission to copy and/or distribute it,
6930 # with or without modifications, as long as this notice is preserved.
6931
6932 # serial 12
6933
6934 # This macro actually does too much. Some checks are only needed if
6935 # your package does certain things. But this isn't really a big deal.
6936
6937 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6938 # AM_INIT_AUTOMAKE([OPTIONS])
6939 # -----------------------------------------------
6940 # The call with PACKAGE and VERSION arguments is the old style
6941 # call (pre autoconf-2.50), which is being phased out. PACKAGE
6942 # and VERSION should now be passed to AC_INIT and removed from
6943 # the call to AM_INIT_AUTOMAKE.
6944 # We support both call styles for the transition. After
6945 # the next Automake release, Autoconf can make the AC_INIT
6946 # arguments mandatory, and then we can depend on a new Autoconf
6947 # release and drop the old call support.
6948 AC_DEFUN([AM_INIT_AUTOMAKE],
6949 [AC_PREREQ([2.58])dnl
6950 dnl Autoconf wants to disallow AM_ names. We explicitly allow
6951 dnl the ones we care about.
6952 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6953 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6954 AC_REQUIRE([AC_PROG_INSTALL])dnl
6955 # test to see if srcdir already configured
6956 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6957 test -f $srcdir/config.status; then
6958 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6959 fi
6960
6961 # test whether we have cygpath
6962 if test -z "$CYGPATH_W"; then
6963 if (cygpath --version) >/dev/null 2>/dev/null; then
6964 CYGPATH_W='cygpath -w'
6965 else
6966 CYGPATH_W=echo
6967 fi
6968 fi
6969 AC_SUBST([CYGPATH_W])
6970
6971 # Define the identity of the package.
6972 dnl Distinguish between old-style and new-style calls.
6973 m4_ifval([$2],
6974 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6975 AC_SUBST([PACKAGE], [$1])dnl
6976 AC_SUBST([VERSION], [$2])],
6977 [_AM_SET_OPTIONS([$1])dnl
6978 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6979 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6980
6981 _AM_IF_OPTION([no-define],,
6982 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6983 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6984
6985 # Some tools Automake needs.
6986 AC_REQUIRE([AM_SANITY_CHECK])dnl
6987 AC_REQUIRE([AC_ARG_PROGRAM])dnl
6988 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6989 AM_MISSING_PROG(AUTOCONF, autoconf)
6990 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6991 AM_MISSING_PROG(AUTOHEADER, autoheader)
6992 AM_MISSING_PROG(MAKEINFO, makeinfo)
6993 AM_PROG_INSTALL_SH
6994 AM_PROG_INSTALL_STRIP
6995 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6996 # We need awk for the "check" target. The system "awk" is bad on
6997 # some platforms.
6998 AC_REQUIRE([AC_PROG_AWK])dnl
6999 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7000 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7001 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7002 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7003 [_AM_PROG_TAR([v7])])])
7004 _AM_IF_OPTION([no-dependencies],,
7005 [AC_PROVIDE_IFELSE([AC_PROG_CC],
7006 [_AM_DEPENDENCIES(CC)],
7007 [define([AC_PROG_CC],
7008 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7009 AC_PROVIDE_IFELSE([AC_PROG_CXX],
7010 [_AM_DEPENDENCIES(CXX)],
7011 [define([AC_PROG_CXX],
7012 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7013 ])
7014 ])
7015
7016
7017 # When config.status generates a header, we must update the stamp-h file.
7018 # This file resides in the same directory as the config header
7019 # that is generated. The stamp files are numbered to have different names.
7020
7021 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7022 # loop where config.status creates the headers, so we can generate
7023 # our stamp files there.
7024 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7025 [# Compute $1's index in $config_headers.
7026 _am_stamp_count=1
7027 for _am_header in $config_headers :; do
7028 case $_am_header in
7029 $1 | $1:* )
7030 break ;;
7031 * )
7032 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7033 esac
7034 done
7035 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7036
7037 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7038 #
7039 # This file is free software; the Free Software Foundation
7040 # gives unlimited permission to copy and/or distribute it,
7041 # with or without modifications, as long as this notice is preserved.
7042
7043 # AM_PROG_INSTALL_SH
7044 # ------------------
7045 # Define $install_sh.
7046 AC_DEFUN([AM_PROG_INSTALL_SH],
7047 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7048 install_sh=${install_sh-"$am_aux_dir/install-sh"}
7049 AC_SUBST(install_sh)])
7050
7051 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7052 #
7053 # This file is free software; the Free Software Foundation
7054 # gives unlimited permission to copy and/or distribute it,
7055 # with or without modifications, as long as this notice is preserved.
7056
7057 # serial 2
7058
7059 # Check whether the underlying file-system supports filenames
7060 # with a leading dot. For instance MS-DOS doesn't.
7061 AC_DEFUN([AM_SET_LEADING_DOT],
7062 [rm -rf .tst 2>/dev/null
7063 mkdir .tst 2>/dev/null
7064 if test -d .tst; then
7065 am__leading_dot=.
7066 else
7067 am__leading_dot=_
7068 fi
7069 rmdir .tst 2>/dev/null
7070 AC_SUBST([am__leading_dot])])
7071
7072 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
7073 # From Jim Meyering
7074
7075 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
7076 # Free Software Foundation, Inc.
7077 #
7078 # This file is free software; the Free Software Foundation
7079 # gives unlimited permission to copy and/or distribute it,
7080 # with or without modifications, as long as this notice is preserved.
7081
7082 # serial 4
7083
7084 AC_DEFUN([AM_MAINTAINER_MODE],
7085 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7086 dnl maintainer-mode is disabled by default
7087 AC_ARG_ENABLE(maintainer-mode,
7088 [ --enable-maintainer-mode enable make rules and dependencies not useful
7089 (and sometimes confusing) to the casual installer],
7090 USE_MAINTAINER_MODE=$enableval,
7091 USE_MAINTAINER_MODE=no)
7092 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7093 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7094 MAINT=$MAINTAINER_MODE_TRUE
7095 AC_SUBST(MAINT)dnl
7096 ]
7097 )
7098
7099 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
7100
7101 # Check to see how 'make' treats includes. -*- Autoconf -*-
7102
7103 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7104 #
7105 # This file is free software; the Free Software Foundation
7106 # gives unlimited permission to copy and/or distribute it,
7107 # with or without modifications, as long as this notice is preserved.
7108
7109 # serial 3
7110
7111 # AM_MAKE_INCLUDE()
7112 # -----------------
7113 # Check to see how make treats includes.
7114 AC_DEFUN([AM_MAKE_INCLUDE],
7115 [am_make=${MAKE-make}
7116 cat > confinc << 'END'
7117 am__doit:
7118 @echo done
7119 .PHONY: am__doit
7120 END
7121 # If we don't find an include directive, just comment out the code.
7122 AC_MSG_CHECKING([for style of include used by $am_make])
7123 am__include="#"
7124 am__quote=
7125 _am_result=none
7126 # First try GNU make style include.
7127 echo "include confinc" > confmf
7128 # We grep out `Entering directory' and `Leaving directory'
7129 # messages which can occur if `w' ends up in MAKEFLAGS.
7130 # In particular we don't look at `^make:' because GNU make might
7131 # be invoked under some other name (usually "gmake"), in which
7132 # case it prints its new name instead of `make'.
7133 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7134 am__include=include
7135 am__quote=
7136 _am_result=GNU
7137 fi
7138 # Now try BSD make style include.
7139 if test "$am__include" = "#"; then
7140 echo '.include "confinc"' > confmf
7141 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7142 am__include=.include
7143 am__quote="\""
7144 _am_result=BSD
7145 fi
7146 fi
7147 AC_SUBST([am__include])
7148 AC_SUBST([am__quote])
7149 AC_MSG_RESULT([$_am_result])
7150 rm -f confinc confmf
7151 ])
7152
7153 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7154
7155 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7156 # Free Software Foundation, Inc.
7157 #
7158 # This file is free software; the Free Software Foundation
7159 # gives unlimited permission to copy and/or distribute it,
7160 # with or without modifications, as long as this notice is preserved.
7161
7162 # serial 4
7163
7164 # AM_MISSING_PROG(NAME, PROGRAM)
7165 # ------------------------------
7166 AC_DEFUN([AM_MISSING_PROG],
7167 [AC_REQUIRE([AM_MISSING_HAS_RUN])
7168 $1=${$1-"${am_missing_run}$2"}
7169 AC_SUBST($1)])
7170
7171
7172 # AM_MISSING_HAS_RUN
7173 # ------------------
7174 # Define MISSING if not defined so far and test if it supports --run.
7175 # If it does, set am_missing_run to use it, otherwise, to nothing.
7176 AC_DEFUN([AM_MISSING_HAS_RUN],
7177 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7178 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7179 # Use eval to expand $SHELL
7180 if eval "$MISSING --run true"; then
7181 am_missing_run="$MISSING --run "
7182 else
7183 am_missing_run=
7184 AC_MSG_WARN([`missing' script is too old or missing])
7185 fi
7186 ])
7187
7188 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7189 #
7190 # This file is free software; the Free Software Foundation
7191 # gives unlimited permission to copy and/or distribute it,
7192 # with or without modifications, as long as this notice is preserved.
7193
7194 # AM_PROG_MKDIR_P
7195 # ---------------
7196 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7197 #
7198 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7199 # created by `make install' are always world readable, even if the
7200 # installer happens to have an overly restrictive umask (e.g. 077).
7201 # This was a mistake. There are at least two reasons why we must not
7202 # use `-m 0755':
7203 # - it causes special bits like SGID to be ignored,
7204 # - it may be too restrictive (some setups expect 775 directories).
7205 #
7206 # Do not use -m 0755 and let people choose whatever they expect by
7207 # setting umask.
7208 #
7209 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
7210 # Some implementations (such as Solaris 8's) are not thread-safe: if a
7211 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7212 # concurrently, both version can detect that a/ is missing, but only
7213 # one can create it and the other will error out. Consequently we
7214 # restrict ourselves to GNU make (using the --version option ensures
7215 # this.)
7216 AC_DEFUN([AM_PROG_MKDIR_P],
7217 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7218 # We used to keeping the `.' as first argument, in order to
7219 # allow $(mkdir_p) to be used without argument. As in
7220 # $(mkdir_p) $(somedir)
7221 # where $(somedir) is conditionally defined. However this is wrong
7222 # for two reasons:
7223 # 1. if the package is installed by a user who cannot write `.'
7224 # make install will fail,
7225 # 2. the above comment should most certainly read
7226 # $(mkdir_p) $(DESTDIR)$(somedir)
7227 # so it does not work when $(somedir) is undefined and
7228 # $(DESTDIR) is not.
7229 # To support the latter case, we have to write
7230 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7231 # so the `.' trick is pointless.
7232 mkdir_p='mkdir -p --'
7233 else
7234 # On NextStep and OpenStep, the `mkdir' command does not
7235 # recognize any option. It will interpret all options as
7236 # directories to create, and then abort because `.' already
7237 # exists.
7238 for d in ./-p ./--version;
7239 do
7240 test -d $d && rmdir $d
7241 done
7242 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7243 if test -f "$ac_aux_dir/mkinstalldirs"; then
7244 mkdir_p='$(mkinstalldirs)'
7245 else
7246 mkdir_p='$(install_sh) -d'
7247 fi
7248 fi
7249 AC_SUBST([mkdir_p])])
7250
7251 # Helper functions for option handling. -*- Autoconf -*-
7252
7253 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7254 #
7255 # This file is free software; the Free Software Foundation
7256 # gives unlimited permission to copy and/or distribute it,
7257 # with or without modifications, as long as this notice is preserved.
7258
7259 # serial 3
7260
7261 # _AM_MANGLE_OPTION(NAME)
7262 # -----------------------
7263 AC_DEFUN([_AM_MANGLE_OPTION],
7264 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7265
7266 # _AM_SET_OPTION(NAME)
7267 # ------------------------------
7268 # Set option NAME. Presently that only means defining a flag for this option.
7269 AC_DEFUN([_AM_SET_OPTION],
7270 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7271
7272 # _AM_SET_OPTIONS(OPTIONS)
7273 # ----------------------------------
7274 # OPTIONS is a space-separated list of Automake options.
7275 AC_DEFUN([_AM_SET_OPTIONS],
7276 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7277
7278 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7279 # -------------------------------------------
7280 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7281 AC_DEFUN([_AM_IF_OPTION],
7282 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7283
7284 # Check to make sure that the build environment is sane. -*- Autoconf -*-
7285
7286 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7287 # Free Software Foundation, Inc.
7288 #
7289 # This file is free software; the Free Software Foundation
7290 # gives unlimited permission to copy and/or distribute it,
7291 # with or without modifications, as long as this notice is preserved.
7292
7293 # serial 4
7294
7295 # AM_SANITY_CHECK
7296 # ---------------
7297 AC_DEFUN([AM_SANITY_CHECK],
7298 [AC_MSG_CHECKING([whether build environment is sane])
7299 # Just in case
7300 sleep 1
7301 echo timestamp > conftest.file
7302 # Do `set' in a subshell so we don't clobber the current shell's
7303 # arguments. Must try -L first in case configure is actually a
7304 # symlink; some systems play weird games with the mod time of symlinks
7305 # (eg FreeBSD returns the mod time of the symlink's containing
7306 # directory).
7307 if (
7308 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7309 if test "$[*]" = "X"; then
7310 # -L didn't work.
7311 set X `ls -t $srcdir/configure conftest.file`
7312 fi
7313 rm -f conftest.file
7314 if test "$[*]" != "X $srcdir/configure conftest.file" \
7315 && test "$[*]" != "X conftest.file $srcdir/configure"; then
7316
7317 # If neither matched, then we have a broken ls. This can happen
7318 # if, for instance, CONFIG_SHELL is bash and it inherits a
7319 # broken ls alias from the environment. This has actually
7320 # happened. Such a system could not be considered "sane".
7321 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7322 alias in your environment])
7323 fi
7324
7325 test "$[2]" = conftest.file
7326 )
7327 then
7328 # Ok.
7329 :
7330 else
7331 AC_MSG_ERROR([newly created file is older than distributed files!
7332 Check your system clock])
7333 fi
7334 AC_MSG_RESULT(yes)])
7335
7336 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7337 #
7338 # This file is free software; the Free Software Foundation
7339 # gives unlimited permission to copy and/or distribute it,
7340 # with or without modifications, as long as this notice is preserved.
7341
7342 # AM_PROG_INSTALL_STRIP
7343 # ---------------------
7344 # One issue with vendor `install' (even GNU) is that you can't
7345 # specify the program used to strip binaries. This is especially
7346 # annoying in cross-compiling environments, where the build's strip
7347 # is unlikely to handle the host's binaries.
7348 # Fortunately install-sh will honor a STRIPPROG variable, so we
7349 # always use install-sh in `make install-strip', and initialize
7350 # STRIPPROG with the value of the STRIP variable (set by the user).
7351 AC_DEFUN([AM_PROG_INSTALL_STRIP],
7352 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7353 # Installed binaries are usually stripped using `strip' when the user
7354 # run `make install-strip'. However `strip' might not be the right
7355 # tool to use in cross-compilation environments, therefore Automake
7356 # will honor the `STRIP' environment variable to overrule this program.
7357 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7358 if test "$cross_compiling" != no; then
7359 AC_CHECK_TOOL([STRIP], [strip], :)
7360 fi
7361 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7362 AC_SUBST([INSTALL_STRIP_PROGRAM])])
7363
7364 # Check how to create a tarball. -*- Autoconf -*-
7365
7366 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7367 #
7368 # This file is free software; the Free Software Foundation
7369 # gives unlimited permission to copy and/or distribute it,
7370 # with or without modifications, as long as this notice is preserved.
7371
7372 # serial 2
7373
7374 # _AM_PROG_TAR(FORMAT)
7375 # --------------------
7376 # Check how to create a tarball in format FORMAT.
7377 # FORMAT should be one of `v7', `ustar', or `pax'.
7378 #
7379 # Substitute a variable $(am__tar) that is a command
7380 # writing to stdout a FORMAT-tarball containing the directory
7381 # $tardir.
7382 # tardir=directory && $(am__tar) > result.tar
7383 #
7384 # Substitute a variable $(am__untar) that extract such
7385 # a tarball read from stdin.
7386 # $(am__untar) < result.tar
7387 AC_DEFUN([_AM_PROG_TAR],
7388 [# Always define AMTAR for backward compatibility.
7389 AM_MISSING_PROG([AMTAR], [tar])
7390 m4_if([$1], [v7],
7391 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7392 [m4_case([$1], [ustar],, [pax],,
7393 [m4_fatal([Unknown tar format])])
7394 AC_MSG_CHECKING([how to create a $1 tar archive])
7395 # Loop over all known methods to create a tar archive until one works.
7396 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7397 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
7398 # Do not fold the above two line into one, because Tru64 sh and
7399 # Solaris sh will not grok spaces in the rhs of `-'.
7400 for _am_tool in $_am_tools
7401 do
7402 case $_am_tool in
7403 gnutar)
7404 for _am_tar in tar gnutar gtar;
7405 do
7406 AM_RUN_LOG([$_am_tar --version]) && break
7407 done
7408 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7409 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7410 am__untar="$_am_tar -xf -"
7411 ;;
7412 plaintar)
7413 # Must skip GNU tar: if it does not support --format= it doesn't create
7414 # ustar tarball either.
7415 (tar --version) >/dev/null 2>&1 && continue
7416 am__tar='tar chf - "$$tardir"'
7417 am__tar_='tar chf - "$tardir"'
7418 am__untar='tar xf -'
7419 ;;
7420 pax)
7421 am__tar='pax -L -x $1 -w "$$tardir"'
7422 am__tar_='pax -L -x $1 -w "$tardir"'
7423 am__untar='pax -r'
7424 ;;
7425 cpio)
7426 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7427 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7428 am__untar='cpio -i -H $1 -d'
7429 ;;
7430 none)
7431 am__tar=false
7432 am__tar_=false
7433 am__untar=false
7434 ;;
7435 esac
7436
7437 # If the value was cached, stop now. We just wanted to have am__tar
7438 # and am__untar set.
7439 test -n "${am_cv_prog_tar_$1}" && break
7440
7441 # tar/untar a dummy directory, and stop if the command works
7442 rm -rf conftest.dir
7443 mkdir conftest.dir
7444 echo GrepMe > conftest.dir/file
7445 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7446 rm -rf conftest.dir
7447 if test -s conftest.tar; then
7448 AM_RUN_LOG([$am__untar <conftest.tar])
7449 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7450 fi
7451 done
7452 rm -rf conftest.dir
7453
7454 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7455 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7456 AC_SUBST([am__tar])
7457 AC_SUBST([am__untar])
7458 ]) # _AM_PROG_TAR
7459
7460 m4_include([m4/gettext.m4])
7461 m4_include([m4/iconv.m4])
7462 m4_include([m4/intlmacosx.m4])
7463 m4_include([m4/lib-ld.m4])
7464 m4_include([m4/lib-link.m4])
7465 m4_include([m4/lib-prefix.m4])
7466 m4_include([m4/nls.m4])
7467 m4_include([m4/po.m4])
7468 m4_include([m4/progtest.m4])
0 SUBDIRS = python perl pascal
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = bindings
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
53 html-recursive info-recursive install-data-recursive \
54 install-exec-recursive install-info-recursive \
55 install-recursive installcheck-recursive installdirs-recursive \
56 pdf-recursive ps-recursive uninstall-info-recursive \
57 uninstall-recursive
58 ETAGS = etags
59 CTAGS = ctags
60 DIST_SUBDIRS = $(SUBDIRS)
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMDEP_FALSE = @AMDEP_FALSE@
64 AMDEP_TRUE = @AMDEP_TRUE@
65 AMTAR = @AMTAR@
66 AR = @AR@
67 AUTOCONF = @AUTOCONF@
68 AUTOHEADER = @AUTOHEADER@
69 AUTOMAKE = @AUTOMAKE@
70 AWK = @AWK@
71 CC = @CC@
72 CCDEPMODE = @CCDEPMODE@
73 CFLAGS = @CFLAGS@
74 CPP = @CPP@
75 CPPFLAGS = @CPPFLAGS@
76 CXX = @CXX@
77 CXXCPP = @CXXCPP@
78 CXXDEPMODE = @CXXDEPMODE@
79 CXXFLAGS = @CXXFLAGS@
80 CYGPATH_W = @CYGPATH_W@
81 DATADIRNAME = @DATADIRNAME@
82 DEFS = @DEFS@
83 DEPDIR = @DEPDIR@
84 ECHO = @ECHO@
85 ECHO_C = @ECHO_C@
86 ECHO_N = @ECHO_N@
87 ECHO_T = @ECHO_T@
88 EGREP = @EGREP@
89 EXEEXT = @EXEEXT@
90 F77 = @F77@
91 FFLAGS = @FFLAGS@
92 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
93 GMSGFMT = @GMSGFMT@
94 GMSGFMT_015 = @GMSGFMT_015@
95 GREP = @GREP@
96 INSTALL_DATA = @INSTALL_DATA@
97 INSTALL_PROGRAM = @INSTALL_PROGRAM@
98 INSTALL_SCRIPT = @INSTALL_SCRIPT@
99 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
100 INTLLIBS = @INTLLIBS@
101 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
102 LDFLAGS = @LDFLAGS@
103 LIBICONV = @LIBICONV@
104 LIBINTL = @LIBINTL@
105 LIBOBJS = @LIBOBJS@
106 LIBS = @LIBS@
107 LIBTOOL = @LIBTOOL@
108 LN_S = @LN_S@
109 LTLIBICONV = @LTLIBICONV@
110 LTLIBINTL = @LTLIBINTL@
111 LTLIBOBJS = @LTLIBOBJS@
112 MAINT = @MAINT@
113 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
114 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
115 MAKEINFO = @MAKEINFO@
116 MSGFMT = @MSGFMT@
117 MSGFMT_015 = @MSGFMT_015@
118 MSGMERGE = @MSGMERGE@
119 OBJEXT = @OBJEXT@
120 PACKAGE = @PACKAGE@
121 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
122 PACKAGE_NAME = @PACKAGE_NAME@
123 PACKAGE_STRING = @PACKAGE_STRING@
124 PACKAGE_TARNAME = @PACKAGE_TARNAME@
125 PACKAGE_VERSION = @PACKAGE_VERSION@
126 PATH_SEPARATOR = @PATH_SEPARATOR@
127 PA_MODULES_PATH = @PA_MODULES_PATH@
128 PA_VERSION = @PA_VERSION@
129 PE_CFLAGS = @PE_CFLAGS@
130 PE_MODULES_PATH = @PE_MODULES_PATH@
131 PKG_CONFIG = @PKG_CONFIG@
132 POSUB = @POSUB@
133 PY_CFLAGS = @PY_CFLAGS@
134 PY_MODULES_PATH = @PY_MODULES_PATH@
135 PY_VERSION = @PY_VERSION@
136 RANLIB = @RANLIB@
137 SED = @SED@
138 SET_MAKE = @SET_MAKE@
139 SHELL = @SHELL@
140 STRIP = @STRIP@
141 USE_NLS = @USE_NLS@
142 VERSION = @VERSION@
143 VERSION_INFO = @VERSION_INFO@
144 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
145 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
146 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
147 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
148 WITH_PERL_FALSE = @WITH_PERL_FALSE@
149 WITH_PERL_TRUE = @WITH_PERL_TRUE@
150 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
151 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
152 XGETTEXT = @XGETTEXT@
153 XGETTEXT_015 = @XGETTEXT_015@
154 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_CXX = @ac_ct_CXX@
157 ac_ct_F77 = @ac_ct_F77@
158 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
159 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
160 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
161 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
162 am__include = @am__include@
163 am__leading_dot = @am__leading_dot@
164 am__quote = @am__quote@
165 am__tar = @am__tar@
166 am__untar = @am__untar@
167 bindir = @bindir@
168 build = @build@
169 build_alias = @build_alias@
170 build_cpu = @build_cpu@
171 build_os = @build_os@
172 build_vendor = @build_vendor@
173 datadir = @datadir@
174 datarootdir = @datarootdir@
175 docdir = @docdir@
176 dvidir = @dvidir@
177 exec_prefix = @exec_prefix@
178 have_pascal = @have_pascal@
179 have_perl = @have_perl@
180 have_python = @have_python@
181 have_swig = @have_swig@
182 host = @host@
183 host_alias = @host_alias@
184 host_cpu = @host_cpu@
185 host_os = @host_os@
186 host_vendor = @host_vendor@
187 htmldir = @htmldir@
188 includedir = @includedir@
189 infodir = @infodir@
190 install_sh = @install_sh@
191 libdir = @libdir@
192 libexecdir = @libexecdir@
193 localedir = @localedir@
194 localstatedir = @localstatedir@
195 mandir = @mandir@
196 mkdir_p = @mkdir_p@
197 oldincludedir = @oldincludedir@
198 pdfdir = @pdfdir@
199 prefix = @prefix@
200 program_transform_name = @program_transform_name@
201 psdir = @psdir@
202 sbindir = @sbindir@
203 sharedstatedir = @sharedstatedir@
204 sysconfdir = @sysconfdir@
205 target_alias = @target_alias@
206 SUBDIRS = python perl pascal
207 all: all-recursive
208
209 .SUFFIXES:
210 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
211 @for dep in $?; do \
212 case '$(am__configure_deps)' in \
213 *$$dep*) \
214 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
215 && exit 0; \
216 exit 1;; \
217 esac; \
218 done; \
219 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/Makefile'; \
220 cd $(top_srcdir) && \
221 $(AUTOMAKE) --gnu bindings/Makefile
222 .PRECIOUS: Makefile
223 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
224 @case '$?' in \
225 *config.status*) \
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
227 *) \
228 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
229 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
230 esac;
231
232 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
233 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
234
235 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
236 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
237 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
239
240 mostlyclean-libtool:
241 -rm -f *.lo
242
243 clean-libtool:
244 -rm -rf .libs _libs
245
246 distclean-libtool:
247 -rm -f libtool
248 uninstall-info-am:
249
250 # This directory's subdirectories are mostly independent; you can cd
251 # into them and run `make' without going through this Makefile.
252 # To change the values of `make' variables: instead of editing Makefiles,
253 # (1) if the variable is set in `config.status', edit `config.status'
254 # (which will cause the Makefiles to be regenerated when you run `make');
255 # (2) otherwise, pass the desired values on the `make' command line.
256 $(RECURSIVE_TARGETS):
257 @failcom='exit 1'; \
258 for f in x $$MAKEFLAGS; do \
259 case $$f in \
260 *=* | --[!k]*);; \
261 *k*) failcom='fail=yes';; \
262 esac; \
263 done; \
264 dot_seen=no; \
265 target=`echo $@ | sed s/-recursive//`; \
266 list='$(SUBDIRS)'; for subdir in $$list; do \
267 echo "Making $$target in $$subdir"; \
268 if test "$$subdir" = "."; then \
269 dot_seen=yes; \
270 local_target="$$target-am"; \
271 else \
272 local_target="$$target"; \
273 fi; \
274 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
275 || eval $$failcom; \
276 done; \
277 if test "$$dot_seen" = "no"; then \
278 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
279 fi; test -z "$$fail"
280
281 mostlyclean-recursive clean-recursive distclean-recursive \
282 maintainer-clean-recursive:
283 @failcom='exit 1'; \
284 for f in x $$MAKEFLAGS; do \
285 case $$f in \
286 *=* | --[!k]*);; \
287 *k*) failcom='fail=yes';; \
288 esac; \
289 done; \
290 dot_seen=no; \
291 case "$@" in \
292 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
293 *) list='$(SUBDIRS)' ;; \
294 esac; \
295 rev=''; for subdir in $$list; do \
296 if test "$$subdir" = "."; then :; else \
297 rev="$$subdir $$rev"; \
298 fi; \
299 done; \
300 rev="$$rev ."; \
301 target=`echo $@ | sed s/-recursive//`; \
302 for subdir in $$rev; do \
303 echo "Making $$target in $$subdir"; \
304 if test "$$subdir" = "."; then \
305 local_target="$$target-am"; \
306 else \
307 local_target="$$target"; \
308 fi; \
309 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
310 || eval $$failcom; \
311 done && test -z "$$fail"
312 tags-recursive:
313 list='$(SUBDIRS)'; for subdir in $$list; do \
314 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
315 done
316 ctags-recursive:
317 list='$(SUBDIRS)'; for subdir in $$list; do \
318 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
319 done
320
321 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
322 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
323 unique=`for i in $$list; do \
324 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
325 done | \
326 $(AWK) ' { files[$$0] = 1; } \
327 END { for (i in files) print i; }'`; \
328 mkid -fID $$unique
329 tags: TAGS
330
331 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
332 $(TAGS_FILES) $(LISP)
333 tags=; \
334 here=`pwd`; \
335 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
336 include_option=--etags-include; \
337 empty_fix=.; \
338 else \
339 include_option=--include; \
340 empty_fix=; \
341 fi; \
342 list='$(SUBDIRS)'; for subdir in $$list; do \
343 if test "$$subdir" = .; then :; else \
344 test ! -f $$subdir/TAGS || \
345 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
346 fi; \
347 done; \
348 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
349 unique=`for i in $$list; do \
350 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
351 done | \
352 $(AWK) ' { files[$$0] = 1; } \
353 END { for (i in files) print i; }'`; \
354 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
355 test -n "$$unique" || unique=$$empty_fix; \
356 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
357 $$tags $$unique; \
358 fi
359 ctags: CTAGS
360 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
361 $(TAGS_FILES) $(LISP)
362 tags=; \
363 here=`pwd`; \
364 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) ' { files[$$0] = 1; } \
369 END { for (i in files) print i; }'`; \
370 test -z "$(CTAGS_ARGS)$$tags$$unique" \
371 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
372 $$tags $$unique
373
374 GTAGS:
375 here=`$(am__cd) $(top_builddir) && pwd` \
376 && cd $(top_srcdir) \
377 && gtags -i $(GTAGS_ARGS) $$here
378
379 distclean-tags:
380 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
381
382 distdir: $(DISTFILES)
383 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
384 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
385 list='$(DISTFILES)'; for file in $$list; do \
386 case $$file in \
387 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
388 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
389 esac; \
390 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
391 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
393 dir="/$$dir"; \
394 $(mkdir_p) "$(distdir)$$dir"; \
395 else \
396 dir=''; \
397 fi; \
398 if test -d $$d/$$file; then \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
410 if test "$$subdir" = .; then :; else \
411 test -d "$(distdir)/$$subdir" \
412 || $(mkdir_p) "$(distdir)/$$subdir" \
413 || exit 1; \
414 distdir=`$(am__cd) $(distdir) && pwd`; \
415 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
416 (cd $$subdir && \
417 $(MAKE) $(AM_MAKEFLAGS) \
418 top_distdir="$$top_distdir" \
419 distdir="$$distdir/$$subdir" \
420 distdir) \
421 || exit 1; \
422 fi; \
423 done
424 check-am: all-am
425 check: check-recursive
426 all-am: Makefile
427 installdirs: installdirs-recursive
428 installdirs-am:
429 install: install-recursive
430 install-exec: install-exec-recursive
431 install-data: install-data-recursive
432 uninstall: uninstall-recursive
433
434 install-am: all-am
435 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
436
437 installcheck: installcheck-recursive
438 install-strip:
439 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
440 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
441 `test -z '$(STRIP)' || \
442 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
443 mostlyclean-generic:
444
445 clean-generic:
446
447 distclean-generic:
448 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
449
450 maintainer-clean-generic:
451 @echo "This command is intended for maintainers to use"
452 @echo "it deletes files that may require special tools to rebuild."
453 clean: clean-recursive
454
455 clean-am: clean-generic clean-libtool mostlyclean-am
456
457 distclean: distclean-recursive
458 -rm -f Makefile
459 distclean-am: clean-am distclean-generic distclean-libtool \
460 distclean-tags
461
462 dvi: dvi-recursive
463
464 dvi-am:
465
466 html: html-recursive
467
468 info: info-recursive
469
470 info-am:
471
472 install-data-am:
473
474 install-exec-am:
475
476 install-info: install-info-recursive
477
478 install-man:
479
480 installcheck-am:
481
482 maintainer-clean: maintainer-clean-recursive
483 -rm -f Makefile
484 maintainer-clean-am: distclean-am maintainer-clean-generic
485
486 mostlyclean: mostlyclean-recursive
487
488 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
489
490 pdf: pdf-recursive
491
492 pdf-am:
493
494 ps: ps-recursive
495
496 ps-am:
497
498 uninstall-am: uninstall-info-am
499
500 uninstall-info: uninstall-info-recursive
501
502 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
503 clean clean-generic clean-libtool clean-recursive ctags \
504 ctags-recursive distclean distclean-generic distclean-libtool \
505 distclean-recursive distclean-tags distdir dvi dvi-am html \
506 html-am info info-am install install-am install-data \
507 install-data-am install-exec install-exec-am install-info \
508 install-info-am install-man install-strip installcheck \
509 installcheck-am installdirs installdirs-am maintainer-clean \
510 maintainer-clean-generic maintainer-clean-recursive \
511 mostlyclean mostlyclean-generic mostlyclean-libtool \
512 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
513 uninstall uninstall-am uninstall-info-am
514
515 # Tell versions [3.59,3.63) of GNU make to not export all variables.
516 # Otherwise a system limit (for SysV at least) may be exceeded.
517 .NOEXPORT:
0
1 EXTRA_DIST = Package.fpc hdate.pp hdate_class.pp fpc_README changelog
2
3 if WITH_PASCAL
4
5 DEPS= $(top_builddir)/src/libhdate.la
6
7 CLEANFILES = *.o *.ppu
8
9 all-am: hdate.o hdate_class.o
10
11 hdate.o: hdate.pp
12 fpc hdate.pp
13
14 hdate_class.o: hdate_class.pp hdate.o
15 fpc hdate_class.pp
16
17 install-data-local:hdate_class.o hdate.o Package.fpc
18 $(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
19 $(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
20 $(INSTALL_DATA) hdate_class.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.o
21 $(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
22 $(INSTALL_DATA) hdate_class.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.ppu
23 $(INSTALL_DATA) fpc_README $(DESTDIR)$(PA_MODULES_PATH)/hdate/fpc_README
24 $(INSTALL_DATA) Package.fpc $(DESTDIR)$(PA_MODULES_PATH)/hdate/Package.fpc
25 endif
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = bindings/pascal
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
53 ACLOCAL = @ACLOCAL@
54 AMDEP_FALSE = @AMDEP_FALSE@
55 AMDEP_TRUE = @AMDEP_TRUE@
56 AMTAR = @AMTAR@
57 AR = @AR@
58 AUTOCONF = @AUTOCONF@
59 AUTOHEADER = @AUTOHEADER@
60 AUTOMAKE = @AUTOMAKE@
61 AWK = @AWK@
62 CC = @CC@
63 CCDEPMODE = @CCDEPMODE@
64 CFLAGS = @CFLAGS@
65 CPP = @CPP@
66 CPPFLAGS = @CPPFLAGS@
67 CXX = @CXX@
68 CXXCPP = @CXXCPP@
69 CXXDEPMODE = @CXXDEPMODE@
70 CXXFLAGS = @CXXFLAGS@
71 CYGPATH_W = @CYGPATH_W@
72 DATADIRNAME = @DATADIRNAME@
73 DEFS = @DEFS@
74 DEPDIR = @DEPDIR@
75 ECHO = @ECHO@
76 ECHO_C = @ECHO_C@
77 ECHO_N = @ECHO_N@
78 ECHO_T = @ECHO_T@
79 EGREP = @EGREP@
80 EXEEXT = @EXEEXT@
81 F77 = @F77@
82 FFLAGS = @FFLAGS@
83 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
84 GMSGFMT = @GMSGFMT@
85 GMSGFMT_015 = @GMSGFMT_015@
86 GREP = @GREP@
87 INSTALL_DATA = @INSTALL_DATA@
88 INSTALL_PROGRAM = @INSTALL_PROGRAM@
89 INSTALL_SCRIPT = @INSTALL_SCRIPT@
90 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
91 INTLLIBS = @INTLLIBS@
92 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
93 LDFLAGS = @LDFLAGS@
94 LIBICONV = @LIBICONV@
95 LIBINTL = @LIBINTL@
96 LIBOBJS = @LIBOBJS@
97 LIBS = @LIBS@
98 LIBTOOL = @LIBTOOL@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
105 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
106 MAKEINFO = @MAKEINFO@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 OBJEXT = @OBJEXT@
111 PACKAGE = @PACKAGE@
112 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113 PACKAGE_NAME = @PACKAGE_NAME@
114 PACKAGE_STRING = @PACKAGE_STRING@
115 PACKAGE_TARNAME = @PACKAGE_TARNAME@
116 PACKAGE_VERSION = @PACKAGE_VERSION@
117 PATH_SEPARATOR = @PATH_SEPARATOR@
118 PA_MODULES_PATH = @PA_MODULES_PATH@
119 PA_VERSION = @PA_VERSION@
120 PE_CFLAGS = @PE_CFLAGS@
121 PE_MODULES_PATH = @PE_MODULES_PATH@
122 PKG_CONFIG = @PKG_CONFIG@
123 POSUB = @POSUB@
124 PY_CFLAGS = @PY_CFLAGS@
125 PY_MODULES_PATH = @PY_MODULES_PATH@
126 PY_VERSION = @PY_VERSION@
127 RANLIB = @RANLIB@
128 SED = @SED@
129 SET_MAKE = @SET_MAKE@
130 SHELL = @SHELL@
131 STRIP = @STRIP@
132 USE_NLS = @USE_NLS@
133 VERSION = @VERSION@
134 VERSION_INFO = @VERSION_INFO@
135 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
136 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
137 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
138 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
139 WITH_PERL_FALSE = @WITH_PERL_FALSE@
140 WITH_PERL_TRUE = @WITH_PERL_TRUE@
141 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
142 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
143 XGETTEXT = @XGETTEXT@
144 XGETTEXT_015 = @XGETTEXT_015@
145 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
146 ac_ct_CC = @ac_ct_CC@
147 ac_ct_CXX = @ac_ct_CXX@
148 ac_ct_F77 = @ac_ct_F77@
149 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
150 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
151 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
152 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
153 am__include = @am__include@
154 am__leading_dot = @am__leading_dot@
155 am__quote = @am__quote@
156 am__tar = @am__tar@
157 am__untar = @am__untar@
158 bindir = @bindir@
159 build = @build@
160 build_alias = @build_alias@
161 build_cpu = @build_cpu@
162 build_os = @build_os@
163 build_vendor = @build_vendor@
164 datadir = @datadir@
165 datarootdir = @datarootdir@
166 docdir = @docdir@
167 dvidir = @dvidir@
168 exec_prefix = @exec_prefix@
169 have_pascal = @have_pascal@
170 have_perl = @have_perl@
171 have_python = @have_python@
172 have_swig = @have_swig@
173 host = @host@
174 host_alias = @host_alias@
175 host_cpu = @host_cpu@
176 host_os = @host_os@
177 host_vendor = @host_vendor@
178 htmldir = @htmldir@
179 includedir = @includedir@
180 infodir = @infodir@
181 install_sh = @install_sh@
182 libdir = @libdir@
183 libexecdir = @libexecdir@
184 localedir = @localedir@
185 localstatedir = @localstatedir@
186 mandir = @mandir@
187 mkdir_p = @mkdir_p@
188 oldincludedir = @oldincludedir@
189 pdfdir = @pdfdir@
190 prefix = @prefix@
191 program_transform_name = @program_transform_name@
192 psdir = @psdir@
193 sbindir = @sbindir@
194 sharedstatedir = @sharedstatedir@
195 sysconfdir = @sysconfdir@
196 target_alias = @target_alias@
197 EXTRA_DIST = Package.fpc hdate.pp hdate_class.pp fpc_README changelog
198 @WITH_PASCAL_TRUE@DEPS = $(top_builddir)/src/libhdate.la
199 @WITH_PASCAL_TRUE@CLEANFILES = *.o *.ppu
200 all: all-am
201
202 .SUFFIXES:
203 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
204 @for dep in $?; do \
205 case '$(am__configure_deps)' in \
206 *$$dep*) \
207 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
208 && exit 0; \
209 exit 1;; \
210 esac; \
211 done; \
212 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/pascal/Makefile'; \
213 cd $(top_srcdir) && \
214 $(AUTOMAKE) --gnu bindings/pascal/Makefile
215 .PRECIOUS: Makefile
216 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
217 @case '$?' in \
218 *config.status*) \
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
220 *) \
221 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
222 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
223 esac;
224
225 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
227
228 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
232
233 mostlyclean-libtool:
234 -rm -f *.lo
235
236 clean-libtool:
237 -rm -rf .libs _libs
238
239 distclean-libtool:
240 -rm -f libtool
241 uninstall-info-am:
242 tags: TAGS
243 TAGS:
244
245 ctags: CTAGS
246 CTAGS:
247
248
249 distdir: $(DISTFILES)
250 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
251 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
252 list='$(DISTFILES)'; for file in $$list; do \
253 case $$file in \
254 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
255 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
256 esac; \
257 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
258 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
259 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
260 dir="/$$dir"; \
261 $(mkdir_p) "$(distdir)$$dir"; \
262 else \
263 dir=''; \
264 fi; \
265 if test -d $$d/$$file; then \
266 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
267 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
268 fi; \
269 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
270 else \
271 test -f $(distdir)/$$file \
272 || cp -p $$d/$$file $(distdir)/$$file \
273 || exit 1; \
274 fi; \
275 done
276 check-am: all-am
277 check: check-am
278 all-am: Makefile
279 installdirs:
280 install: install-am
281 install-exec: install-exec-am
282 install-data: install-data-am
283 uninstall: uninstall-am
284
285 install-am: all-am
286 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
287
288 installcheck: installcheck-am
289 install-strip:
290 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
291 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
292 `test -z '$(STRIP)' || \
293 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
294 mostlyclean-generic:
295
296 clean-generic:
297 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
298
299 distclean-generic:
300 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
301
302 maintainer-clean-generic:
303 @echo "This command is intended for maintainers to use"
304 @echo "it deletes files that may require special tools to rebuild."
305 @WITH_PASCAL_FALSE@install-data-local:
306 clean: clean-am
307
308 clean-am: clean-generic clean-libtool mostlyclean-am
309
310 distclean: distclean-am
311 -rm -f Makefile
312 distclean-am: clean-am distclean-generic distclean-libtool
313
314 dvi: dvi-am
315
316 dvi-am:
317
318 html: html-am
319
320 info: info-am
321
322 info-am:
323
324 install-data-am: install-data-local
325
326 install-exec-am:
327
328 install-info: install-info-am
329
330 install-man:
331
332 installcheck-am:
333
334 maintainer-clean: maintainer-clean-am
335 -rm -f Makefile
336 maintainer-clean-am: distclean-am maintainer-clean-generic
337
338 mostlyclean: mostlyclean-am
339
340 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
341
342 pdf: pdf-am
343
344 pdf-am:
345
346 ps: ps-am
347
348 ps-am:
349
350 uninstall-am: uninstall-info-am
351
352 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
353 distclean distclean-generic distclean-libtool distdir dvi \
354 dvi-am html html-am info info-am install install-am \
355 install-data install-data-am install-data-local install-exec \
356 install-exec-am install-info install-info-am install-man \
357 install-strip installcheck installcheck-am installdirs \
358 maintainer-clean maintainer-clean-generic mostlyclean \
359 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
360 uninstall uninstall-am uninstall-info-am
361
362
363 @WITH_PASCAL_TRUE@all-am: hdate.o hdate_class.o
364
365 @WITH_PASCAL_TRUE@hdate.o: hdate.pp
366 @WITH_PASCAL_TRUE@ fpc hdate.pp
367
368 @WITH_PASCAL_TRUE@hdate_class.o: hdate_class.pp hdate.o
369 @WITH_PASCAL_TRUE@ fpc hdate_class.pp
370
371 @WITH_PASCAL_TRUE@install-data-local:hdate_class.o hdate.o Package.fpc
372 @WITH_PASCAL_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PA_MODULES_PATH)/hdate
373 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.o
374 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate_class.o $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.o
375 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate.ppu
376 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) hdate_class.ppu $(DESTDIR)$(PA_MODULES_PATH)/hdate/hdate_class.ppu
377 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) fpc_README $(DESTDIR)$(PA_MODULES_PATH)/hdate/fpc_README
378 @WITH_PASCAL_TRUE@ $(INSTALL_DATA) Package.fpc $(DESTDIR)$(PA_MODULES_PATH)/hdate/Package.fpc
379 # Tell versions [3.59,3.63) of GNU make to not export all variables.
380 # Otherwise a system limit (for SysV at least) may be exceeded.
381 .NOEXPORT:
0 [package]
1 name=hdate
2 version=1.0.0
3 [require]
4 libc=y
5 packages_linux_m68k=
6 packages_linux_powerpc=
7 packages=rtl
8 packages_linux_i386=
9 packages_linux_sparc=
10 packages_linux_x86_64=
11 packages_linux_arm=
0 25/11/2005
1 - Added some constants and fixed comments according the orginal API file
2
3 27/05/2005
4 - Created a Changelog.
5
6 19-21/05/2005
7 - hdate_class.pp was created.
8 - Made changes for Free Pascal 2 support on with the units.
9
10 13/03/2005
11 - Bug fix in hdate.pp - Added {$PACKRECORDS C}
12
13 10-11/03/2005
14 - hdate.pp was created.
15 - hdate_obj.pp was created.
0 About
1 =====
2
3 LibHdate is a small C,C++ library for Hebrew calendar and dates, holidays, and reading sequence (parasha).
4 It is using the source code from Amos Shapir's hdate package fixed and patched by Nadav Har'El.
5 The Torah reading sequence is from tables by Zvi Har'El.
6
7 The LibHdate is GPL library written by Kobi Zamir <kobi_zamir@yahoo.com> and can be found at http://libhdate.sourceforge.net/ .
8
9 The current version of LibHDate is 1.2.1 and contains a Free Pascal binding only that was written by Ido Kanner <idokan@gmail.com>.
10
11 Existed Files:
12 README - This file.
13 licence - A copy of the GPL license.
14 src/ctypes.pp - A unit for making C like integer and floating points variable type.
15 src/hdate.pp - The main low level API of LibHdate binding.
16 src/hdate_obj.pp - An Object Oriented implementation for the hdate.pp API.
17 src/hdate_obj_demo.pp - An example for the use of the Object Oriented unit.
18 src/hdate_class.pp - A self made Object Oriented implementation for the LibHdate API.
19
20 Compiling
21 =========
22
23 The ctypes.pp unit was taken from FPC 1.9.8 version and was modified to contain also some floating point C equivalent.
24 The FPC version 2.0 have the floating points definition. If you are using FPC version 2.0 or above please remove the unit.
25
26 Add the hdate.pp and the hdate_obj.pp (or thier .ppu files after compilation) to the path of fpc.cfg in order to use
27 the units globally with all of your applications.
28
29 =========================================================================
30 the old README from version 1.1.1
31 =========================================================================
32
33 About
34 =====
35
36 LibHdate is a small C,C++ library for Hebrew calendar and dates, holidays, and reading sequence (parasha).
37 It is using the sorce code from Amos Shapir's hdate package fixed and patched by Nadav Har'El.
38 The Torah reading sequence is from tables by Zvi Har'El.
39
40 The LibHdate is GPL library written by Kobi Zamir <kzamir@walla.co.il> and can be found at http://libhdate.sourceforge.net/ .
41
42 This version of LibHDate contains a FreePascal binding that was written by Ido Kanner <idokan@gmail.com>.
43
44 Existed Files:
45 fpc_README - This file.
46 src/ctypes.pp - A unit for making C like integer and floating points variable type.
47 src/hdate.pp - The main low level API of LibHdate binding.
48 src/hdate_obj.pp - An Object Oriented implementation for the hdate.pp API.
49 src/hdate_obj_demo.pp - An example for the use of the Object Oriented unit.
50 src/hcal.pp - An example for the use of the low level API.
51
52 Compiling
53 =========
54
55 The ctypes.pp unit was taken from FPC 1.9.8 version and was modified to contain also some floating point C equivalent.
56 I hope that version 2.0 will contains them as well, if not please keep this unit, otherwise feel free to remove it.
57
58 Add the hdate.pp and the hdate_obj.pp (or thier .ppu files after compilation) to the path of fpc.cfg in order to use
59 the units globally with all of your applications.
60
61
0 (* libhdate
1 Copyright 2004-2005 Yaacov Zamir <kzamir@walla.co.il>
2 Copyright 2005 Ido Kanner <idokan@gmail.com>
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 Library 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 History:
19 25/11/2005 - Added some constants and fixed comments according the orginal API file
20 13/03/2005 - Bug Fixed Added {$PACKRECORDS C}
21 10-11/03/2005 - Initial Translation of version 0.31.0
22 *)
23 {$MODE OBJFPC}{$PACKRECORDS C}
24
25 unit hdate;
26
27 interface
28 uses cTypes;
29
30 const
31 LIBHDATE_LIBRARY_NAME = 'hdate';
32
33 (** @def HDATE_DIASPORA_FLAG
34 @brief use diaspora dates and holydays flag
35 *)
36 HDATE_DIASPORA_FLAG = -1;
37
38 (** @def HDATE_ISRAEL_FLAG
39 @brief use israel dates and holydays flag
40 *)
41 HDATE_ISRAEL_FLAG = 0;
42
43 (** @def HDATE_SHORT_FLAG
44 @brief use short strings flag
45 *)
46 HDATE_SHORT_FLAG = -1;
47
48 (** @def HDATE_LONG_FLAG
49 @brief use long strings flag
50 *)
51 HDATE_LONG_FLAG = 0;
52
53
54 { Base structore for hebrew dates }
55
56 type
57 Phdate_struct = ^Thdate_struct;
58 Thdate_struct = record
59 hd_day : cInt; //The number of day in the hebrew month (1..31).
60 hd_mon : cInt; //The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
61 hd_year : cInt; //The number of the hebrew year.
62 gd_day : cInt; //The number of the day in the month. (1..31)
63 gd_mon : cInt; //The number of the month 1..12 (1 - jan).
64 gd_year : cInt; //The number of the year.
65 hd_dw : cInt; //The day of the week 1..7 (1 - sunday).
66 hd_size_of_year : cInt; //The length of the year in days.
67 hd_new_year_dw : cInt; //The week day of Hebrew new year.
68 hd_year_type : cInt; //The number type of year.
69 hd_jd : cInt; //The Julian day number
70 hd_days : cInt; //The number of days passed since 1 tishrey
71 hd_weeks : cInt; //The number of weeks passed since 1 tishrey
72 end;
73 (********************************************************************************)
74 (********************************************************************************)
75
76 (**
77 @brief compute date structure from the Gregorian date
78
79 @param h pointer this hdate struct.
80 @param d Day of month 1..31
81 @param m Month 1..12
82 @param y Year in 4 digits e.g. 2001
83 @return pointer to this hdate struct
84 *)
85
86 function hdate_set_gdate (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
87 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_set_gdate';
88
89 (**
90 @brief compute date structure from the Hebrew date
91
92 @param h pointer this hdate struct.
93 @param d Day of month 1..31
94 @param m Month 1..14 , (13 - Adar 1, 14 - Adar 2)
95 @param y Year in 4 digits e.g. 5731
96 @return pointer to this hdate struct
97 *)
98
99 function hdate_set_hdate (h : Phdate_struct; d, m, y : cInt) : Phdate_struct;
100 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_set_hdate';
101
102 (**
103 @brief compute date structure from the Julian day
104
105 @param h pointer this hdate struct.
106 @param jd the julian day number.
107 @return pointer to this hdate struct
108 *)
109 function hdate_set_jd (h : Phdate_struct; jd : cInt) : Phdate_struct;
110 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_set_jd';
111
112 (*************************************************************)
113 (*************************************************************)
114
115 (**
116 @brief get formated hebrew date.
117
118 return the short ( e.g. "1 Tishrey" ) or
119 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
120
121 @param h pointer this hdate struct.
122 @param diaspora if true give diaspora holydays.
123 @param s short flag.
124 @return a static string of foramted date
125 *)
126 function hdate_get_format_date (h : Phdate_struct; diaspora, s : cInt) : PChar;
127 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_format_date';
128
129 (**
130 @brief get the number of hebrew parasha.
131
132 @param h pointer this hdate struct.
133 @param diaspora if true give diaspora readings
134 @return the number of parasha 1. Bereshit etc..
135 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
136 *)
137 function hdate_get_parasha (h : Phdate_struct; diaspora : cInt) : cInt;
138 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_parasha';
139
140 (**
141 @brief get the number of hebrew holyday.
142
143 @param h pointer this hdate struct.
144 @param diaspora if true give diaspora holydays
145 @return the number of holyday.
146 *)
147 function hdate_get_holyday (h : Phdate_struct; diaspora : cInt) : cInt;
148 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_holyday';
149
150 (*************************************************************)
151 (*************************************************************)
152
153 (**
154 @brief convert an integer to hebrew string.
155
156 @param n The int to convert
157 @return a static string of the hebrew number UTF-8 (logical)
158 @attention ( 0 < n < 10000)
159 *)
160 function hdate_get_int_string (n : cInt) : PChar;
161 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_int_string';
162
163 (**
164 @brief get name of week day.
165
166 @param day The number of the day 1..7 (1 - sun).
167 @param s short flag
168 true - returns a short string: sun, false returns: sunday.
169 @return a static string of the day of the week
170 *)
171 function hdate_get_day_string (day : cInt; s : cInt) : PChar;
172 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_day_string';
173
174 (**
175 @brief name of month.
176
177 @param month the number of the month 1..12 (1 - jan).
178 @param s short flag.
179 @return a static string of month name
180 *)
181 function hdate_get_month_string (month : cInt; s : cInt) : PChar;
182 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_month_string';
183
184 (**
185 @brief name of hebrew month.
186
187 @param month the number of the month 1..14
188 (1 - tishre, 13 - adar 1, 14 - adar 2).
189 @param s short flag.
190 @return a static string of month name
191 *)
192 function hdate_get_hebrew_month_string (month : cInt; s : cInt) : PChar;
193 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hebrew_month_string';
194
195 (**
196 @brief name of hebrew holyday.
197
198 @param holyday the holyday number.
199 @param s short flag.
200 @return a static string of holyday name
201 *)
202 function hdate_get_holyday_string (holyday, s : cInt) : PChar;
203 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_holyday_string';
204
205 (**
206 @brief name of parasha
207
208 @param parasha the number of parasha 1-Bereshit
209 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
210 @param s short flag.
211 @return a static string of parasha name
212 *)
213 function hdate_get_parasha_string (parasha, s : cInt) : PChar;
214 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_parasha_string';
215
216 (*************************************************************)
217 (*************************************************************)
218
219 (**
220 @brief get the hebrew holyday type.
221
222 @param holyday the holyday number.
223 @return the number of holyday type.
224 *)
225 function hdate_get_holyday_type (holyday : cInt) : cInt;
226 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_holyday_type';
227
228 (**
229 @brief size of hebrew year in days.
230
231 @param hebrew_year the hebrew year.
232 @return size of Hebrew year
233 *)
234 function hdate_get_size_of_hebrew_year (hebrew_year : cInt) : cInt;
235 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_size_of_hebrew_year';
236
237 (*************************************************************)
238 (*************************************************************)
239
240 (**
241 @brief Days since Tishrey 3744
242
243 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
244
245 @param hebrew_year The Hebrew year
246 @return Number of days since 3,1,3744
247 *)
248 function hdate_days_from_3744 (hebrew_year : cInt) : cInt;
249 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_days_from_3744';
250
251 (**
252 @brief Return Hebrew year type based on size and first week day of year.
253
254 @param size_of_year Length of year in days
255 @param new_year_dw First week day of year
256 @return the number for year type (1..14)
257 *)
258 function hdate_get_year_type (size_of_year, new_year_dw : cInt) : cInt;
259 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_year_type';
260
261 (**
262 @brief Compute Julian day from Gregorian date
263
264 @author Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
265
266 @param day Day of month 1..31
267 @param month Month 1..12
268 @param year Year in 4 digits e.g. 2001
269 @return the julian day number
270 *)
271 function hdate_gdate_to_jd (day, month, year : cInt) : cInt;
272 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_gdate_to_jd';
273
274 (**
275 @brief Compute Julian day from Hebrew day, month and year
276
277 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
278
279 @param day Day of month 1..31
280 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
281 @param year Hebrew year in 4 digits e.g. 5753
282 @param jd_tishrey1 return the julian number of 1 Tishrey this year
283 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
284 @return the julian day number
285 *)
286 function hdate_hdate_to_jd (day, month, year : cInt; jd_tishrey1, jd_tishrey1_next_year : pcInt) : cInt;
287 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_hdate_to_jd';
288
289 (**
290 @brief Converting from the Julian day to the Gregorian date
291
292 @author Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
293
294 @param jd Julian day
295 @param day return Day of month 1..31
296 @param month return Month 1..12
297 @param year return Year in 4 digits e.g. 2001
298 *)
299 procedure hdate_jd_to_gdate (jd : cInt; day, month, year : pcInt);
300 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_jd_to_gdate';
301
302 (**
303 @brief Converting from the Julian day to the Hebrew day
304
305 @author Yaacov Zamir 2005
306
307 @param jd Julian day
308 @param day return Day of month 1..31
309 @param month return Month 1..14 (13 - Adar 1, 14 - Adar 2)
310 @param year return Year in 4 digits e.g. 2001
311 @param jd_tishrey1 return the julian number of 1 Tishrey this year
312 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
313 *)
314 procedure hdate_jd_to_hdate (jd : cInt; day, month, year, jd_tishrey1, jd_tishrey1_next_year : pcInt);
315 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_jd_to_hdate';
316
317 (*************************************************************)
318 (*************************************************************)
319
320 (**
321 @brief days from 1 january
322
323 @param day this day of month
324 @param month this month
325 @param year this year
326 @return the days from 1 jan
327 *)
328 function hdate_get_day_of_year (day, month, year : cInt) : cInt;
329 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_day_of_year';
330
331 (**
332 @brief utc sunrise/set time for a gregorian date
333
334 @param day this day of month
335 @param month this month
336 @param year this year
337 @param longitude longitude to use in calculations
338 degrees, negative values are east
339 @param latitude latitude to use in calculations
340 degrees, negative values are south
341 @param sunrise return the utc sunrise in minutes after midnight (00:00)
342 @param sunset return the utc sunset in minutes after midnight (00:00)
343 *)
344 procedure hdate_get_utc_sun_time (day, month, year : cInt; latitude, longitude : cDouble; sunrise, sunset : pcInt);
345 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_utc_sun_time';
346
347 (*************************************************************)
348 (*************************************************************)
349
350 (**
351 @brief get the Gregorian day of the month
352
353 @param h pointer this hdate struct.
354 @return the Gregorian day of the month, 1..31.
355 *)
356 function hdate_get_gday (h : Phdate_struct) : cInt;
357 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_gday';
358
359 (**
360 @brief get the Gregorian month
361
362 @param h pointer this hdate struct.
363 @return the Gregorian month, jan = 1.
364 *)
365 function hdate_get_gmonth (h : Phdate_struct) : cInt;
366 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_gmonth';
367
368 (**
369 @brief get the Gregorian year
370
371 @param h pointer this hdate struct.
372 @return the Gregorian year.
373 *)
374 function hdate_get_gyear (h : Phdate_struct) : cInt;
375 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_gyear';
376
377 (**
378 @brief get the Hebrew day of the month
379
380 @param h pointer this hdate struct.
381 @return the Hebrew day of the month, 1..30.
382 *)
383 function hdate_get_hday (h : Phdate_struct) : cInt;
384 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hday';
385
386 (**
387 @brief get the Hebrew month
388
389 @param h pointer this hdate struct.
390 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
391 *)
392 function hdate_get_hmonth (h : Phdate_struct) : cInt;
393 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hmonth';
394
395 (**
396 @brief get the Hebrew year
397
398 @param h pointer this hdate struct.
399 @return the Hebrew year.
400 *)
401 function hdate_get_hyear (h : Phdate_struct) : cInt;
402 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_hyear';
403
404 (**
405 @brief get the day of the week
406
407 @param h pointer this hdate struct.
408 @return the the day of the week.
409 *)
410 function hdate_get_day_of_the_week (h : Phdate_struct) : cInt;
411 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_day_of_the_week';
412
413 (**
414 @brief get the size of the hebrew year
415
416 @param h pointer this hdate struct.
417 @return the the size of the hebrew year.
418 *)
419 function hdate_get_size_of_year (h : Phdate_struct) : cInt;
420 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_size_of_year';
421
422 (**
423 @brief get the new year day of the week
424
425 @param h pointer this hdate struct.
426 @return the the new year day of the week.
427 *)
428 function hdate_get_new_year_day_of_the_week (h : Phdate_struct) : cInt;
429 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_new_year_day_of_the_week';
430
431 (**
432 @brief get the Julian day number
433
434 @param h pointer this hdate struct.
435 @return the Julian day number.
436 *)
437 function hdate_get_julian (h : Phdate_struct) : cInt;
438 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_julian';
439
440 (**
441 @brief get the number of days passed since 1 tishrey
442
443 @param h pointer this hdate struct.
444 @return the number of days passed since 1 tishrey.
445 *)
446 function hdate_get_days (h : Phdate_struct) : cInt;
447 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_days';
448
449 (**
450 @brief get the number of weeks passed since 1 tishrey
451
452 @param h pointer this hdate struct.
453 @return the number of weeks passed since 1 tishrey.
454 *)
455 function hdate_get_weeks (h : Phdate_struct) : cInt;
456 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_weeks';
457
458 (*************************************************************)
459 (*************************************************************)
460
461 (**
462 @brief creat a new hdate struct object, must be deleted using delete_hdate.
463
464 @return a new hdate object
465 *)
466 function new_hdate : Phdate_struct;
467 cdecl external LIBHDATE_LIBRARY_NAME name 'new_hdate';
468
469 (**
470 @brief delete an hdate struct object.
471
472 @param h pointer this hdate struct.
473 *)
474 function delete_hdate (h : Phdate_struct) : Phdate_struct;
475 cdecl external LIBHDATE_LIBRARY_NAME name 'delete_hdate';
476
477 (*************************************************************)
478 (*************************************************************)
479
480 (**
481 @brief Return a static string, with the package name and version
482
483 @return a a static string, with the package name and version
484 *)
485 function hdate_get_version_string : PChar;
486 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_version_string';
487
488 (**
489 @brief Return a static string, with the name of translator
490
491 @return a a static string, with the name of translator
492 *)
493 function hdate_get_translator_string : PChar;
494 cdecl external LIBHDATE_LIBRARY_NAME name 'hdate_get_translator_string';
495
496 implementation
497
498 end.
0 {
1 This unit create a Pascal object oriented class for libhdate.
2 This unit is created as a true object oriented class.
3
4 Copyright 2005 Ido Kanner <idokan@gmail.com>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Library General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20 History:
21 19-21/05/2005 - Initial creation
22 }
23 {$IFDEF FPC}
24 {$MODE OBJFPC} {$H+}
25 {$ELSE}
26 {$Warning 'This code was tested with Free Pascal Only.'}
27 {$ENDIF}
28 unit hdate_class;
29
30 interface
31 uses hdate, SysUtils;
32
33 type
34 THdateClass = class
35 private
36 fh : Phdate_struct;
37 FToDestroy : Boolean;
38 fJulianDay : LongInt;
39 fDiaspora : Boolean;
40 fHolyday,
41 fHolydayType : LongInt;
42 fParasha : LongInt;
43 fHebrewDay,
44 fHebrewYear : String;
45
46 procedure InitValue;
47
48 procedure SetHebDay (Value : LongInt);
49 procedure SetGregDay (Value : LongInt);
50 procedure SetJulianDay (Value : LongInt);
51 procedure SetHebMonth (Value : LongInt);
52 procedure SetGregMonth (Value : LongInt);
53 procedure SetGregYear (Value : LongInt);
54 procedure SetHebYear (Value : LongInt);
55 procedure SetDiaspora (Value : Boolean);
56
57 function GetGregDay : LongInt;
58 function GetGregMonth : LongInt;
59 function GetGregYear : LongInt;
60 function GetHebDay : LongInt;
61 function GetHebMonth : LongInt;
62 function GetHebYear : LongInt;
63 public
64 constructor Create; virtual; overload;
65 constructor Create (hDateRec : Phdate_struct); virtual; overload;
66 destructor Destroy; override;
67
68 procedure Assign (Source : THdateClass); virtual;
69
70 function get_format_date (s : LongInt) : String;
71 function get_day_of_week_string (s : LongInt) : String;
72 function get_month_string (s : LongInt) : String;
73 function get_hebrew_month_string (s : LongInt) : String;
74 function get_holyday_string (s : LongInt) : String;
75 function get_parasha_string (s : LongInt) : String;
76 function GetDayOfWeek : LongInt;
77 function get_size_of_year : LongInt;
78 function get_new_year_day_of_the_week : LongInt;
79 function get_days : LongInt;
80 function get_weeks : LongInt;
81 function get_sunrise (latitude, longitude : Double; tz : LongInt) : LongInt;
82 function get_sunset (latitude, longitude : Double; tz : LongInt) : LongInt;
83
84 property Days : LongInt read get_days;
85 property DayOfWeek : LongInt read GetDayOfWeek;
86 property HebrewDay : String read fHebrewDay;
87 property HebrewYear : String read fHebrewYear;
88 property Holyday : LongInt read fHolyday;
89 property HolydayType : LongInt read fHolydayType;
90 property NewYearDayOfWeek : LongInt read get_new_year_day_of_the_week;
91 property Parasha : LongInt read fParasha;
92 property Weeks : LongInt read get_weeks;
93 property YearSize : Longint read get_size_of_year;
94 published
95 property HebDay : LongInt read GetHebDay write SetHebDay;
96 property GregDay : LongInt read GetGregDay write SetGregDay;
97 property Diaspora : Boolean read fDiaspora write SetDiaspora default True;
98 property JulianDay : LongInt read fJulianDay write SetJulianDay;
99 property HebMonth : LongInt read GetHebMonth write SetHebMonth;
100 property GregMonth : LongInt read GetGregMonth write SetGregMonth;
101 property ToDestroy : Boolean read FToDestroy write fToDestroy default True;
102 property GregYear : LongInt read GetGregYear write SetGregYear;
103 property HebYear : LongInt read GetHebYear write SetHebYear;
104 end;
105
106 implementation
107 uses DateUtils, cTypes;
108
109 procedure THdateClass.InitValue;
110 var
111 ADay, AMonth, AYear : Word;
112 begin
113 DecodeDate(SysUtils.Now, AYear, AMonth, ADay);
114
115 hdate_set_gdate (Fh, ADay, AMonth, AYear);
116
117 hdate_set_hdate (fh, hdate_get_hday (fh), hdate_get_hmonth (fh), hdate_get_hyear (fh));
118
119 fHebrewDay := StrPas (hdate_get_int_string (fh^.hd_day));
120 fHebrewYear := StrPas (hdate_get_int_string (fh^.hd_year));
121
122 SetJulianDay (hdate_gdate_to_jd (ADay, AMonth, AYear));
123 SetDiaspora (True);
124 end;
125
126 constructor THdateClass.Create;
127 begin
128 fh := nil;
129 fh := new_hdate;
130 fToDestroy := True;
131 InitValue;
132 end;
133
134 constructor THdateClass.Create (hDateRec : Phdate_struct);
135 begin
136 fh := hDateRec;
137 fToDestroy := False;
138 InitValue;
139 end;
140
141 destructor THdateClass.Destroy;
142 begin
143 if fToDestroy then
144 delete_hdate (fh);
145
146 inherited;
147 end;
148
149 procedure THdateClass.SetHebDay (Value : LongInt);
150 begin
151 hdate_set_hdate (Fh, Value, GetHebMonth, GetHebYear);
152 fHebrewDay := StrPas (hdate_get_int_string (fh^.hd_day));
153 end;
154
155 procedure THdateClass.SetGregDay (Value : LongInt);
156 begin
157 hdate_set_gdate (fh, Value, GetGregMonth, GetGregYear);
158 end;
159
160 procedure THdateClass.SetJulianDay (Value : LongInt);
161 begin
162 fJulianDay := Value;
163 hdate_set_jd (fh, fJulianDay);
164 end;
165
166 procedure THdateClass.SetHebMonth (Value : LongInt);
167 begin
168 hdate_set_hdate (Fh, GetHebDay, Value, GetHebYear);
169 end;
170
171 procedure THdateClass.SetGregMonth (Value : LongInt);
172 begin
173 hdate_set_gdate (fh, GetGregDay, Value, GetGregYear);
174 end;
175
176 procedure THdateClass.SetHebYear (Value : LongInt);
177 begin
178 hdate_set_hdate (fh, GetHebDay, GetGregMonth, Value);
179 fHebrewYear := StrPas (hdate_get_int_string (fh^.hd_year));
180 end;
181
182 procedure THdateClass.SetGregYear (Value : LongInt);
183 begin
184 hdate_set_gdate (fh, GetGregDay, GetGregMonth, Value);
185 end;
186
187 procedure THdateClass.SetDiaspora (Value : Boolean);
188 begin
189 fDiaspora := Value;
190 fHolyday := hdate_get_holyday (fh, cInt(FDiaspora));
191 fHolydayType := hdate_get_holyday_type (fHolyday);
192 fParasha := hdate_get_parasha (fh, cInt(fDiaspora));
193 end;
194
195 function THdateClass.GetGregDay : LongInt;
196 begin
197 Result := hdate_get_gday (fh);
198 end;
199
200 function THdateClass.GetGregMonth : LongInt;
201 begin
202 Result := hdate_get_gmonth (fh);
203 end;
204
205 function THdateClass.GetGregYear : LongInt;
206 begin
207 Result := hdate_get_gyear (fh);
208 end;
209
210 function THdateClass.GetHebDay : LongInt;
211 begin
212 Result := hdate_get_hday (fh);
213 end;
214
215 function THdateClass.GetHebMonth : LongInt;
216 begin
217 Result := hdate_get_hmonth (fh);
218 end;
219
220 function THdateClass.GetHebYear : LongInt;
221 begin
222 Result :=hdate_get_hyear (fh);
223 end;
224
225 procedure THdateClass.Assign (Source : THdateClass);
226 begin
227 if (not Assigned(Source)) then
228 begin
229 raise Exception.Create ('Source is not allocated.');
230 end;
231
232 Assert (Assigned(Source), 'Source is not allocated.'); // Should never happned ... but just in case...
233
234 fToDestroy := Source.ToDestroy;
235
236 HebDay := Source.HebDay;
237 GregDay := Source.GregDay;
238 HebMonth := Source.HebMonth;
239 GregMonth := Source.GregMonth;
240 HebYear := Source.HebYear;
241 GregYear := Source.GregYear;
242
243 SetJulianDay (Source.JulianDay);
244 SetDiaspora (Source.Diaspora);
245 end;
246
247 function THdateClass.get_format_date (s : LongInt) : String;
248 begin
249 Result := StrPas (hdate_get_format_date (fh, cInt(fDiaspora), s));
250 end;
251
252 function THdateClass.get_day_of_week_string (s : LongInt) : String;
253 begin
254 Result := StrPas (hdate_get_day_string (fh^.hd_dw, s));
255 end;
256
257 function THdateClass.get_month_string (s : LongInt) : String;
258 begin
259 Result := StrPas (hdate_get_month_string (fh^.gd_mon, s));
260 end;
261
262 function THdateClass.get_hebrew_month_string (s : LongInt) : String;
263 begin
264 Result := StrPas (hdate_get_hebrew_month_string (fh^.hd_mon, s));
265 end;
266
267 function THdateClass.get_holyday_string (s : LongInt) : String;
268 begin
269 Result := StrPas (hdate_get_holyday_string (fHolyday, s));
270 end;
271
272 function THdateClass.get_parasha_string (s : LongInt) : String;
273 begin
274 Result := StrPas (hdate_get_parasha_string (fParasha, s));
275 end;
276
277 function THdateClass.GetDayOfWeek : LongInt;
278 begin
279 Result := hdate_get_day_of_the_week (fh);
280 end;
281
282 function THdateClass.get_size_of_year : LongInt;
283 begin
284 Result := hdate_get_size_of_year (fh);
285 end;
286
287 function THdateClass.get_new_year_day_of_the_week : LongInt;
288 begin
289 Result := hdate_get_new_year_day_of_the_week (fh);
290 end;
291
292 function THdateClass.get_days : LongInt;
293 begin
294 Result := hdate_get_days (fh);
295 end;
296
297 function THdateClass.get_weeks : LongInt;
298 begin
299 Result := hdate_get_weeks (fh);
300 end;
301
302 function THdateClass.get_sunrise (latitude, longitude : Double; tz : LongInt) : LongInt;
303 var
304 sunrise,
305 sunset : cInt;
306 begin
307 hdate_get_utc_sun_time (fh^.gd_day, fh^.gd_mon, fh^.gd_year, latitude, longitude, @sunrise, @sunset);
308 Result := sunrise + tz * 60;
309 end;
310
311 function THdateClass.get_sunset (latitude, longitude : Double; tz : LongInt) : LongInt;
312 var
313 sunrise,
314 sunset : cInt;
315 begin
316 hdate_get_utc_sun_time (fh^.gd_day, fh^.gd_mon, fh^.gd_year, latitude, longitude, @sunrise, @sunset);
317 Result := sunset + tz * 60;
318 end;
319
320 end.
0
1 EXTRA_DIST = hdate.i
2
3 if WITH_PERL
4
5 DEPS= $(top_builddir)/src/libhdate.la
6
7 CLEANFILES = *.o *.cxx *.so *wrap* *.pm
8
9 all-am: hdate.so
10
11
12 hdate.so: hdate_wrap.cxx
13 g++ -fpic -c hdate_wrap.cxx $(PE_CFLAGS) -I$(top_srcdir)/src
14 g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o hdate.so
15
16 hdate_wrap.cxx: hdate.i
17 swig -perl -c++ hdate.i
18
19 install-data-local: hdate.so
20 $(mkinstalldirs) $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/
21 $(INSTALL_DATA) hdate.so $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/hdate.so
22 $(INSTALL_DATA) hdate.pm $(DESTDIR)$(PE_MODULES_PATH)/hdate.pm
23
24 endif
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = bindings/perl
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
53 ACLOCAL = @ACLOCAL@
54 AMDEP_FALSE = @AMDEP_FALSE@
55 AMDEP_TRUE = @AMDEP_TRUE@
56 AMTAR = @AMTAR@
57 AR = @AR@
58 AUTOCONF = @AUTOCONF@
59 AUTOHEADER = @AUTOHEADER@
60 AUTOMAKE = @AUTOMAKE@
61 AWK = @AWK@
62 CC = @CC@
63 CCDEPMODE = @CCDEPMODE@
64 CFLAGS = @CFLAGS@
65 CPP = @CPP@
66 CPPFLAGS = @CPPFLAGS@
67 CXX = @CXX@
68 CXXCPP = @CXXCPP@
69 CXXDEPMODE = @CXXDEPMODE@
70 CXXFLAGS = @CXXFLAGS@
71 CYGPATH_W = @CYGPATH_W@
72 DATADIRNAME = @DATADIRNAME@
73 DEFS = @DEFS@
74 DEPDIR = @DEPDIR@
75 ECHO = @ECHO@
76 ECHO_C = @ECHO_C@
77 ECHO_N = @ECHO_N@
78 ECHO_T = @ECHO_T@
79 EGREP = @EGREP@
80 EXEEXT = @EXEEXT@
81 F77 = @F77@
82 FFLAGS = @FFLAGS@
83 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
84 GMSGFMT = @GMSGFMT@
85 GMSGFMT_015 = @GMSGFMT_015@
86 GREP = @GREP@
87 INSTALL_DATA = @INSTALL_DATA@
88 INSTALL_PROGRAM = @INSTALL_PROGRAM@
89 INSTALL_SCRIPT = @INSTALL_SCRIPT@
90 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
91 INTLLIBS = @INTLLIBS@
92 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
93 LDFLAGS = @LDFLAGS@
94 LIBICONV = @LIBICONV@
95 LIBINTL = @LIBINTL@
96 LIBOBJS = @LIBOBJS@
97 LIBS = @LIBS@
98 LIBTOOL = @LIBTOOL@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
105 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
106 MAKEINFO = @MAKEINFO@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 OBJEXT = @OBJEXT@
111 PACKAGE = @PACKAGE@
112 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113 PACKAGE_NAME = @PACKAGE_NAME@
114 PACKAGE_STRING = @PACKAGE_STRING@
115 PACKAGE_TARNAME = @PACKAGE_TARNAME@
116 PACKAGE_VERSION = @PACKAGE_VERSION@
117 PATH_SEPARATOR = @PATH_SEPARATOR@
118 PA_MODULES_PATH = @PA_MODULES_PATH@
119 PA_VERSION = @PA_VERSION@
120 PE_CFLAGS = @PE_CFLAGS@
121 PE_MODULES_PATH = @PE_MODULES_PATH@
122 PKG_CONFIG = @PKG_CONFIG@
123 POSUB = @POSUB@
124 PY_CFLAGS = @PY_CFLAGS@
125 PY_MODULES_PATH = @PY_MODULES_PATH@
126 PY_VERSION = @PY_VERSION@
127 RANLIB = @RANLIB@
128 SED = @SED@
129 SET_MAKE = @SET_MAKE@
130 SHELL = @SHELL@
131 STRIP = @STRIP@
132 USE_NLS = @USE_NLS@
133 VERSION = @VERSION@
134 VERSION_INFO = @VERSION_INFO@
135 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
136 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
137 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
138 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
139 WITH_PERL_FALSE = @WITH_PERL_FALSE@
140 WITH_PERL_TRUE = @WITH_PERL_TRUE@
141 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
142 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
143 XGETTEXT = @XGETTEXT@
144 XGETTEXT_015 = @XGETTEXT_015@
145 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
146 ac_ct_CC = @ac_ct_CC@
147 ac_ct_CXX = @ac_ct_CXX@
148 ac_ct_F77 = @ac_ct_F77@
149 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
150 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
151 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
152 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
153 am__include = @am__include@
154 am__leading_dot = @am__leading_dot@
155 am__quote = @am__quote@
156 am__tar = @am__tar@
157 am__untar = @am__untar@
158 bindir = @bindir@
159 build = @build@
160 build_alias = @build_alias@
161 build_cpu = @build_cpu@
162 build_os = @build_os@
163 build_vendor = @build_vendor@
164 datadir = @datadir@
165 datarootdir = @datarootdir@
166 docdir = @docdir@
167 dvidir = @dvidir@
168 exec_prefix = @exec_prefix@
169 have_pascal = @have_pascal@
170 have_perl = @have_perl@
171 have_python = @have_python@
172 have_swig = @have_swig@
173 host = @host@
174 host_alias = @host_alias@
175 host_cpu = @host_cpu@
176 host_os = @host_os@
177 host_vendor = @host_vendor@
178 htmldir = @htmldir@
179 includedir = @includedir@
180 infodir = @infodir@
181 install_sh = @install_sh@
182 libdir = @libdir@
183 libexecdir = @libexecdir@
184 localedir = @localedir@
185 localstatedir = @localstatedir@
186 mandir = @mandir@
187 mkdir_p = @mkdir_p@
188 oldincludedir = @oldincludedir@
189 pdfdir = @pdfdir@
190 prefix = @prefix@
191 program_transform_name = @program_transform_name@
192 psdir = @psdir@
193 sbindir = @sbindir@
194 sharedstatedir = @sharedstatedir@
195 sysconfdir = @sysconfdir@
196 target_alias = @target_alias@
197 EXTRA_DIST = hdate.i
198 @WITH_PERL_TRUE@DEPS = $(top_builddir)/src/libhdate.la
199 @WITH_PERL_TRUE@CLEANFILES = *.o *.cxx *.so *wrap* *.pm
200 all: all-am
201
202 .SUFFIXES:
203 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
204 @for dep in $?; do \
205 case '$(am__configure_deps)' in \
206 *$$dep*) \
207 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
208 && exit 0; \
209 exit 1;; \
210 esac; \
211 done; \
212 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/perl/Makefile'; \
213 cd $(top_srcdir) && \
214 $(AUTOMAKE) --gnu bindings/perl/Makefile
215 .PRECIOUS: Makefile
216 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
217 @case '$?' in \
218 *config.status*) \
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
220 *) \
221 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
222 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
223 esac;
224
225 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
227
228 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
232
233 mostlyclean-libtool:
234 -rm -f *.lo
235
236 clean-libtool:
237 -rm -rf .libs _libs
238
239 distclean-libtool:
240 -rm -f libtool
241 uninstall-info-am:
242 tags: TAGS
243 TAGS:
244
245 ctags: CTAGS
246 CTAGS:
247
248
249 distdir: $(DISTFILES)
250 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
251 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
252 list='$(DISTFILES)'; for file in $$list; do \
253 case $$file in \
254 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
255 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
256 esac; \
257 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
258 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
259 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
260 dir="/$$dir"; \
261 $(mkdir_p) "$(distdir)$$dir"; \
262 else \
263 dir=''; \
264 fi; \
265 if test -d $$d/$$file; then \
266 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
267 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
268 fi; \
269 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
270 else \
271 test -f $(distdir)/$$file \
272 || cp -p $$d/$$file $(distdir)/$$file \
273 || exit 1; \
274 fi; \
275 done
276 check-am: all-am
277 check: check-am
278 all-am: Makefile
279 installdirs:
280 install: install-am
281 install-exec: install-exec-am
282 install-data: install-data-am
283 uninstall: uninstall-am
284
285 install-am: all-am
286 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
287
288 installcheck: installcheck-am
289 install-strip:
290 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
291 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
292 `test -z '$(STRIP)' || \
293 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
294 mostlyclean-generic:
295
296 clean-generic:
297 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
298
299 distclean-generic:
300 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
301
302 maintainer-clean-generic:
303 @echo "This command is intended for maintainers to use"
304 @echo "it deletes files that may require special tools to rebuild."
305 @WITH_PERL_FALSE@install-data-local:
306 clean: clean-am
307
308 clean-am: clean-generic clean-libtool mostlyclean-am
309
310 distclean: distclean-am
311 -rm -f Makefile
312 distclean-am: clean-am distclean-generic distclean-libtool
313
314 dvi: dvi-am
315
316 dvi-am:
317
318 html: html-am
319
320 info: info-am
321
322 info-am:
323
324 install-data-am: install-data-local
325
326 install-exec-am:
327
328 install-info: install-info-am
329
330 install-man:
331
332 installcheck-am:
333
334 maintainer-clean: maintainer-clean-am
335 -rm -f Makefile
336 maintainer-clean-am: distclean-am maintainer-clean-generic
337
338 mostlyclean: mostlyclean-am
339
340 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
341
342 pdf: pdf-am
343
344 pdf-am:
345
346 ps: ps-am
347
348 ps-am:
349
350 uninstall-am: uninstall-info-am
351
352 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
353 distclean distclean-generic distclean-libtool distdir dvi \
354 dvi-am html html-am info info-am install install-am \
355 install-data install-data-am install-data-local install-exec \
356 install-exec-am install-info install-info-am install-man \
357 install-strip installcheck installcheck-am installdirs \
358 maintainer-clean maintainer-clean-generic mostlyclean \
359 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
360 uninstall uninstall-am uninstall-info-am
361
362
363 @WITH_PERL_TRUE@all-am: hdate.so
364
365 @WITH_PERL_TRUE@hdate.so: hdate_wrap.cxx
366 @WITH_PERL_TRUE@ g++ -fpic -c hdate_wrap.cxx $(PE_CFLAGS) -I$(top_srcdir)/src
367 @WITH_PERL_TRUE@ g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o hdate.so
368
369 @WITH_PERL_TRUE@hdate_wrap.cxx: hdate.i
370 @WITH_PERL_TRUE@ swig -perl -c++ hdate.i
371
372 @WITH_PERL_TRUE@install-data-local: hdate.so
373 @WITH_PERL_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/
374 @WITH_PERL_TRUE@ $(INSTALL_DATA) hdate.so $(DESTDIR)$(PE_MODULES_PATH)/auto/hdate/hdate.so
375 @WITH_PERL_TRUE@ $(INSTALL_DATA) hdate.pm $(DESTDIR)$(PE_MODULES_PATH)/hdate.pm
376 # Tell versions [3.59,3.63) of GNU make to not export all variables.
377 # Otherwise a system limit (for SysV at least) may be exceeded.
378 .NOEXPORT:
0 // file : hdate.i
1 %module hdate
2 %{
3 #include "../../src/hdatepp.h"
4 %}
5
6 %include ../../src/hdatepp.h
7
8 // on linux do:
9 // swig -perl hdate.i
10 // g++ -fpic -c hdate_wrap.cxx -I/usr/lib/perl5/5.8.6/i686-linux/CORE/
11 // g++ -shared ../../src/*.o hdate_wrap.o -o _hdate.so
0
1 EXTRA_DIST = hdate.i
2
3 if WITH_PYTHON
4
5 DEPS= $(top_builddir)/src/libhdate.la
6
7 CLEANFILES = *.o *.cxx *.so *wrap* *.py
8
9 all-am: _hdate.so
10
11
12 _hdate.so: hdate_wrap.cxx
13 g++ -fpic -c hdate_wrap.cxx $(PY_CFLAGS) -I$(top_srcdir)/src
14 g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o _hdate.so
15
16 hdate_wrap.cxx: hdate.i
17 swig -python -c++ hdate.i
18
19 install-data-local: _hdate.so
20 $(mkinstalldirs) $(DESTDIR)$(PY_MODULES_PATH)
21 $(INSTALL_DATA) _hdate.so $(DESTDIR)$(PY_MODULES_PATH)/_hdate.so
22 $(INSTALL_DATA) hdate.py $(DESTDIR)$(PY_MODULES_PATH)/hdate.py
23
24 endif
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = bindings/python
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
53 ACLOCAL = @ACLOCAL@
54 AMDEP_FALSE = @AMDEP_FALSE@
55 AMDEP_TRUE = @AMDEP_TRUE@
56 AMTAR = @AMTAR@
57 AR = @AR@
58 AUTOCONF = @AUTOCONF@
59 AUTOHEADER = @AUTOHEADER@
60 AUTOMAKE = @AUTOMAKE@
61 AWK = @AWK@
62 CC = @CC@
63 CCDEPMODE = @CCDEPMODE@
64 CFLAGS = @CFLAGS@
65 CPP = @CPP@
66 CPPFLAGS = @CPPFLAGS@
67 CXX = @CXX@
68 CXXCPP = @CXXCPP@
69 CXXDEPMODE = @CXXDEPMODE@
70 CXXFLAGS = @CXXFLAGS@
71 CYGPATH_W = @CYGPATH_W@
72 DATADIRNAME = @DATADIRNAME@
73 DEFS = @DEFS@
74 DEPDIR = @DEPDIR@
75 ECHO = @ECHO@
76 ECHO_C = @ECHO_C@
77 ECHO_N = @ECHO_N@
78 ECHO_T = @ECHO_T@
79 EGREP = @EGREP@
80 EXEEXT = @EXEEXT@
81 F77 = @F77@
82 FFLAGS = @FFLAGS@
83 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
84 GMSGFMT = @GMSGFMT@
85 GMSGFMT_015 = @GMSGFMT_015@
86 GREP = @GREP@
87 INSTALL_DATA = @INSTALL_DATA@
88 INSTALL_PROGRAM = @INSTALL_PROGRAM@
89 INSTALL_SCRIPT = @INSTALL_SCRIPT@
90 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
91 INTLLIBS = @INTLLIBS@
92 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
93 LDFLAGS = @LDFLAGS@
94 LIBICONV = @LIBICONV@
95 LIBINTL = @LIBINTL@
96 LIBOBJS = @LIBOBJS@
97 LIBS = @LIBS@
98 LIBTOOL = @LIBTOOL@
99 LN_S = @LN_S@
100 LTLIBICONV = @LTLIBICONV@
101 LTLIBINTL = @LTLIBINTL@
102 LTLIBOBJS = @LTLIBOBJS@
103 MAINT = @MAINT@
104 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
105 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
106 MAKEINFO = @MAKEINFO@
107 MSGFMT = @MSGFMT@
108 MSGFMT_015 = @MSGFMT_015@
109 MSGMERGE = @MSGMERGE@
110 OBJEXT = @OBJEXT@
111 PACKAGE = @PACKAGE@
112 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113 PACKAGE_NAME = @PACKAGE_NAME@
114 PACKAGE_STRING = @PACKAGE_STRING@
115 PACKAGE_TARNAME = @PACKAGE_TARNAME@
116 PACKAGE_VERSION = @PACKAGE_VERSION@
117 PATH_SEPARATOR = @PATH_SEPARATOR@
118 PA_MODULES_PATH = @PA_MODULES_PATH@
119 PA_VERSION = @PA_VERSION@
120 PE_CFLAGS = @PE_CFLAGS@
121 PE_MODULES_PATH = @PE_MODULES_PATH@
122 PKG_CONFIG = @PKG_CONFIG@
123 POSUB = @POSUB@
124 PY_CFLAGS = @PY_CFLAGS@
125 PY_MODULES_PATH = @PY_MODULES_PATH@
126 PY_VERSION = @PY_VERSION@
127 RANLIB = @RANLIB@
128 SED = @SED@
129 SET_MAKE = @SET_MAKE@
130 SHELL = @SHELL@
131 STRIP = @STRIP@
132 USE_NLS = @USE_NLS@
133 VERSION = @VERSION@
134 VERSION_INFO = @VERSION_INFO@
135 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
136 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
137 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
138 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
139 WITH_PERL_FALSE = @WITH_PERL_FALSE@
140 WITH_PERL_TRUE = @WITH_PERL_TRUE@
141 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
142 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
143 XGETTEXT = @XGETTEXT@
144 XGETTEXT_015 = @XGETTEXT_015@
145 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
146 ac_ct_CC = @ac_ct_CC@
147 ac_ct_CXX = @ac_ct_CXX@
148 ac_ct_F77 = @ac_ct_F77@
149 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
150 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
151 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
152 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
153 am__include = @am__include@
154 am__leading_dot = @am__leading_dot@
155 am__quote = @am__quote@
156 am__tar = @am__tar@
157 am__untar = @am__untar@
158 bindir = @bindir@
159 build = @build@
160 build_alias = @build_alias@
161 build_cpu = @build_cpu@
162 build_os = @build_os@
163 build_vendor = @build_vendor@
164 datadir = @datadir@
165 datarootdir = @datarootdir@
166 docdir = @docdir@
167 dvidir = @dvidir@
168 exec_prefix = @exec_prefix@
169 have_pascal = @have_pascal@
170 have_perl = @have_perl@
171 have_python = @have_python@
172 have_swig = @have_swig@
173 host = @host@
174 host_alias = @host_alias@
175 host_cpu = @host_cpu@
176 host_os = @host_os@
177 host_vendor = @host_vendor@
178 htmldir = @htmldir@
179 includedir = @includedir@
180 infodir = @infodir@
181 install_sh = @install_sh@
182 libdir = @libdir@
183 libexecdir = @libexecdir@
184 localedir = @localedir@
185 localstatedir = @localstatedir@
186 mandir = @mandir@
187 mkdir_p = @mkdir_p@
188 oldincludedir = @oldincludedir@
189 pdfdir = @pdfdir@
190 prefix = @prefix@
191 program_transform_name = @program_transform_name@
192 psdir = @psdir@
193 sbindir = @sbindir@
194 sharedstatedir = @sharedstatedir@
195 sysconfdir = @sysconfdir@
196 target_alias = @target_alias@
197 EXTRA_DIST = hdate.i
198 @WITH_PYTHON_TRUE@DEPS = $(top_builddir)/src/libhdate.la
199 @WITH_PYTHON_TRUE@CLEANFILES = *.o *.cxx *.so *wrap* *.py
200 all: all-am
201
202 .SUFFIXES:
203 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
204 @for dep in $?; do \
205 case '$(am__configure_deps)' in \
206 *$$dep*) \
207 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
208 && exit 0; \
209 exit 1;; \
210 esac; \
211 done; \
212 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu bindings/python/Makefile'; \
213 cd $(top_srcdir) && \
214 $(AUTOMAKE) --gnu bindings/python/Makefile
215 .PRECIOUS: Makefile
216 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
217 @case '$?' in \
218 *config.status*) \
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
220 *) \
221 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
222 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
223 esac;
224
225 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
227
228 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
232
233 mostlyclean-libtool:
234 -rm -f *.lo
235
236 clean-libtool:
237 -rm -rf .libs _libs
238
239 distclean-libtool:
240 -rm -f libtool
241 uninstall-info-am:
242 tags: TAGS
243 TAGS:
244
245 ctags: CTAGS
246 CTAGS:
247
248
249 distdir: $(DISTFILES)
250 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
251 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
252 list='$(DISTFILES)'; for file in $$list; do \
253 case $$file in \
254 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
255 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
256 esac; \
257 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
258 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
259 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
260 dir="/$$dir"; \
261 $(mkdir_p) "$(distdir)$$dir"; \
262 else \
263 dir=''; \
264 fi; \
265 if test -d $$d/$$file; then \
266 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
267 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
268 fi; \
269 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
270 else \
271 test -f $(distdir)/$$file \
272 || cp -p $$d/$$file $(distdir)/$$file \
273 || exit 1; \
274 fi; \
275 done
276 check-am: all-am
277 check: check-am
278 all-am: Makefile
279 installdirs:
280 install: install-am
281 install-exec: install-exec-am
282 install-data: install-data-am
283 uninstall: uninstall-am
284
285 install-am: all-am
286 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
287
288 installcheck: installcheck-am
289 install-strip:
290 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
291 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
292 `test -z '$(STRIP)' || \
293 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
294 mostlyclean-generic:
295
296 clean-generic:
297 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
298
299 distclean-generic:
300 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
301
302 maintainer-clean-generic:
303 @echo "This command is intended for maintainers to use"
304 @echo "it deletes files that may require special tools to rebuild."
305 @WITH_PYTHON_FALSE@install-data-local:
306 clean: clean-am
307
308 clean-am: clean-generic clean-libtool mostlyclean-am
309
310 distclean: distclean-am
311 -rm -f Makefile
312 distclean-am: clean-am distclean-generic distclean-libtool
313
314 dvi: dvi-am
315
316 dvi-am:
317
318 html: html-am
319
320 info: info-am
321
322 info-am:
323
324 install-data-am: install-data-local
325
326 install-exec-am:
327
328 install-info: install-info-am
329
330 install-man:
331
332 installcheck-am:
333
334 maintainer-clean: maintainer-clean-am
335 -rm -f Makefile
336 maintainer-clean-am: distclean-am maintainer-clean-generic
337
338 mostlyclean: mostlyclean-am
339
340 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
341
342 pdf: pdf-am
343
344 pdf-am:
345
346 ps: ps-am
347
348 ps-am:
349
350 uninstall-am: uninstall-info-am
351
352 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
353 distclean distclean-generic distclean-libtool distdir dvi \
354 dvi-am html html-am info info-am install install-am \
355 install-data install-data-am install-data-local install-exec \
356 install-exec-am install-info install-info-am install-man \
357 install-strip installcheck installcheck-am installdirs \
358 maintainer-clean maintainer-clean-generic mostlyclean \
359 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
360 uninstall uninstall-am uninstall-info-am
361
362
363 @WITH_PYTHON_TRUE@all-am: _hdate.so
364
365 @WITH_PYTHON_TRUE@_hdate.so: hdate_wrap.cxx
366 @WITH_PYTHON_TRUE@ g++ -fpic -c hdate_wrap.cxx $(PY_CFLAGS) -I$(top_srcdir)/src
367 @WITH_PYTHON_TRUE@ g++ -shared ../../src/.libs/libhdate.so hdate_wrap.o -o _hdate.so
368
369 @WITH_PYTHON_TRUE@hdate_wrap.cxx: hdate.i
370 @WITH_PYTHON_TRUE@ swig -python -c++ hdate.i
371
372 @WITH_PYTHON_TRUE@install-data-local: _hdate.so
373 @WITH_PYTHON_TRUE@ $(mkinstalldirs) $(DESTDIR)$(PY_MODULES_PATH)
374 @WITH_PYTHON_TRUE@ $(INSTALL_DATA) _hdate.so $(DESTDIR)$(PY_MODULES_PATH)/_hdate.so
375 @WITH_PYTHON_TRUE@ $(INSTALL_DATA) hdate.py $(DESTDIR)$(PY_MODULES_PATH)/hdate.py
376 # Tell versions [3.59,3.63) of GNU make to not export all variables.
377 # Otherwise a system limit (for SysV at least) may be exceeded.
378 .NOEXPORT:
0 // file : hdate.i
1 %module hdate
2 %{
3 #include "../../src/hdatepp.h"
4 %}
5
6 %include ../../src/hdatepp.h
7
8 // on linux do:
9 // swig -python hdate.i
10 // g++ -fpic -c hdate_wrap.cxx -I/usr/include/python2.3
11 // g++ -shared ../../src/*.o hdate_wrap.o -o _hdate.so
0 #! /bin/sh
1 # Wrapper for compilers which do not understand `-c -o'.
2
3 scriptversion=2005-05-14.22
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
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 02110-1301, USA.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # This file is maintained in Automake, please report
28 # bugs to <bug-automake@gnu.org> or send patches to
29 # <automake-patches@gnu.org>.
30
31 case $1 in
32 '')
33 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
34 exit 1;
35 ;;
36 -h | --h*)
37 cat <<\EOF
38 Usage: compile [--help] [--version] PROGRAM [ARGS]
39
40 Wrapper for compilers which do not understand `-c -o'.
41 Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
42 arguments, and rename the output as expected.
43
44 If you are trying to build a whole package this is not the
45 right script to run: please start by reading the file `INSTALL'.
46
47 Report bugs to <bug-automake@gnu.org>.
48 EOF
49 exit $?
50 ;;
51 -v | --v*)
52 echo "compile $scriptversion"
53 exit $?
54 ;;
55 esac
56
57 ofile=
58 cfile=
59 eat=
60
61 for arg
62 do
63 if test -n "$eat"; then
64 eat=
65 else
66 case $1 in
67 -o)
68 # configure might choose to run compile as `compile cc -o foo foo.c'.
69 # So we strip `-o arg' only if arg is an object.
70 eat=1
71 case $2 in
72 *.o | *.obj)
73 ofile=$2
74 ;;
75 *)
76 set x "$@" -o "$2"
77 shift
78 ;;
79 esac
80 ;;
81 *.c)
82 cfile=$1
83 set x "$@" "$1"
84 shift
85 ;;
86 *)
87 set x "$@" "$1"
88 shift
89 ;;
90 esac
91 fi
92 shift
93 done
94
95 if test -z "$ofile" || test -z "$cfile"; then
96 # If no `-o' option was seen then we might have been invoked from a
97 # pattern rule where we don't need one. That is ok -- this is a
98 # normal compilation that the losing compiler can handle. If no
99 # `.c' file was seen then we are probably linking. That is also
100 # ok.
101 exec "$@"
102 fi
103
104 # Name of file we expect compiler to create.
105 cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
106
107 # Create the lock directory.
108 # Note: use `[/.-]' here to ensure that we don't use the same name
109 # that we are using for the .o file. Also, base the name on the expected
110 # object file name, since that is what matters with a parallel build.
111 lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
112 while true; do
113 if mkdir "$lockdir" >/dev/null 2>&1; then
114 break
115 fi
116 sleep 1
117 done
118 # FIXME: race condition here if user kills between mkdir and trap.
119 trap "rmdir '$lockdir'; exit 1" 1 2 15
120
121 # Run the compile.
122 "$@"
123 ret=$?
124
125 if test -f "$cofile"; then
126 mv "$cofile" "$ofile"
127 elif test -f "${cofile}bj"; then
128 mv "${cofile}bj" "$ofile"
129 fi
130
131 rmdir "$lockdir"
132 exit $ret
133
134 # Local Variables:
135 # mode: shell-script
136 # sh-indentation: 2
137 # eval: (add-hook 'write-file-hooks 'time-stamp)
138 # time-stamp-start: "scriptversion="
139 # time-stamp-format: "%:y-%02m-%02d.%02H"
140 # time-stamp-end: "$"
141 # End:
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
4 # Inc.
5
6 timestamp='2007-07-22'
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, 2002, 2003, 2004, 2005
59 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:*:[45])
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 esac ;;
802 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
803 echo i${UNAME_MACHINE}-pc-mks
804 exit ;;
805 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
806 # How do we know it's Interix rather than the generic POSIX subsystem?
807 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
808 # UNAME_MACHINE based on the output of uname instead of i386?
809 echo i586-pc-interix
810 exit ;;
811 i*:UWIN*:*)
812 echo ${UNAME_MACHINE}-pc-uwin
813 exit ;;
814 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
815 echo x86_64-unknown-cygwin
816 exit ;;
817 p*:CYGWIN*:*)
818 echo powerpcle-unknown-cygwin
819 exit ;;
820 prep*:SunOS:5.*:*)
821 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
822 exit ;;
823 *:GNU:*:*)
824 # the GNU system
825 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
826 exit ;;
827 *:GNU/*:*:*)
828 # other systems with GNU libc and userland
829 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
830 exit ;;
831 i*86:Minix:*:*)
832 echo ${UNAME_MACHINE}-pc-minix
833 exit ;;
834 arm*:Linux:*:*)
835 echo ${UNAME_MACHINE}-unknown-linux-gnu
836 exit ;;
837 avr32*:Linux:*:*)
838 echo ${UNAME_MACHINE}-unknown-linux-gnu
839 exit ;;
840 cris:Linux:*:*)
841 echo cris-axis-linux-gnu
842 exit ;;
843 crisv32:Linux:*:*)
844 echo crisv32-axis-linux-gnu
845 exit ;;
846 frv:Linux:*:*)
847 echo frv-unknown-linux-gnu
848 exit ;;
849 ia64:Linux:*:*)
850 echo ${UNAME_MACHINE}-unknown-linux-gnu
851 exit ;;
852 m32r*:Linux:*:*)
853 echo ${UNAME_MACHINE}-unknown-linux-gnu
854 exit ;;
855 m68*:Linux:*:*)
856 echo ${UNAME_MACHINE}-unknown-linux-gnu
857 exit ;;
858 mips:Linux:*:*)
859 eval $set_cc_for_build
860 sed 's/^ //' << EOF >$dummy.c
861 #undef CPU
862 #undef mips
863 #undef mipsel
864 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
865 CPU=mipsel
866 #else
867 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
868 CPU=mips
869 #else
870 CPU=
871 #endif
872 #endif
873 EOF
874 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
875 /^CPU/{
876 s: ::g
877 p
878 }'`"
879 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
880 ;;
881 mips64:Linux:*:*)
882 eval $set_cc_for_build
883 sed 's/^ //' << EOF >$dummy.c
884 #undef CPU
885 #undef mips64
886 #undef mips64el
887 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
888 CPU=mips64el
889 #else
890 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
891 CPU=mips64
892 #else
893 CPU=
894 #endif
895 #endif
896 EOF
897 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
898 /^CPU/{
899 s: ::g
900 p
901 }'`"
902 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
903 ;;
904 or32:Linux:*:*)
905 echo or32-unknown-linux-gnu
906 exit ;;
907 ppc:Linux:*:*)
908 echo powerpc-unknown-linux-gnu
909 exit ;;
910 ppc64:Linux:*:*)
911 echo powerpc64-unknown-linux-gnu
912 exit ;;
913 alpha:Linux:*:*)
914 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
915 EV5) UNAME_MACHINE=alphaev5 ;;
916 EV56) UNAME_MACHINE=alphaev56 ;;
917 PCA56) UNAME_MACHINE=alphapca56 ;;
918 PCA57) UNAME_MACHINE=alphapca56 ;;
919 EV6) UNAME_MACHINE=alphaev6 ;;
920 EV67) UNAME_MACHINE=alphaev67 ;;
921 EV68*) UNAME_MACHINE=alphaev68 ;;
922 esac
923 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
924 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
925 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
926 exit ;;
927 parisc:Linux:*:* | hppa:Linux:*:*)
928 # Look for CPU level
929 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
930 PA7*) echo hppa1.1-unknown-linux-gnu ;;
931 PA8*) echo hppa2.0-unknown-linux-gnu ;;
932 *) echo hppa-unknown-linux-gnu ;;
933 esac
934 exit ;;
935 parisc64:Linux:*:* | hppa64:Linux:*:*)
936 echo hppa64-unknown-linux-gnu
937 exit ;;
938 s390:Linux:*:* | s390x:Linux:*:*)
939 echo ${UNAME_MACHINE}-ibm-linux
940 exit ;;
941 sh64*:Linux:*:*)
942 echo ${UNAME_MACHINE}-unknown-linux-gnu
943 exit ;;
944 sh*:Linux:*:*)
945 echo ${UNAME_MACHINE}-unknown-linux-gnu
946 exit ;;
947 sparc:Linux:*:* | sparc64:Linux:*:*)
948 echo ${UNAME_MACHINE}-unknown-linux-gnu
949 exit ;;
950 vax:Linux:*:*)
951 echo ${UNAME_MACHINE}-dec-linux-gnu
952 exit ;;
953 x86_64:Linux:*:*)
954 echo x86_64-unknown-linux-gnu
955 exit ;;
956 xtensa:Linux:*:*)
957 echo xtensa-unknown-linux-gnu
958 exit ;;
959 i*86:Linux:*:*)
960 # The BFD linker knows what the default object file format is, so
961 # first see if it will tell us. cd to the root directory to prevent
962 # problems with other programs or directories called `ld' in the path.
963 # Set LC_ALL=C to ensure ld outputs messages in English.
964 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
965 | sed -ne '/supported targets:/!d
966 s/[ ][ ]*/ /g
967 s/.*supported targets: *//
968 s/ .*//
969 p'`
970 case "$ld_supported_targets" in
971 elf32-i386)
972 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
973 ;;
974 a.out-i386-linux)
975 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
976 exit ;;
977 coff-i386)
978 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
979 exit ;;
980 "")
981 # Either a pre-BFD a.out linker (linux-gnuoldld) or
982 # one that does not give us useful --help.
983 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
984 exit ;;
985 esac
986 # Determine whether the default compiler is a.out or elf
987 eval $set_cc_for_build
988 sed 's/^ //' << EOF >$dummy.c
989 #include <features.h>
990 #ifdef __ELF__
991 # ifdef __GLIBC__
992 # if __GLIBC__ >= 2
993 LIBC=gnu
994 # else
995 LIBC=gnulibc1
996 # endif
997 # else
998 LIBC=gnulibc1
999 # endif
1000 #else
1001 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1002 LIBC=gnu
1003 #else
1004 LIBC=gnuaout
1005 #endif
1006 #endif
1007 #ifdef __dietlibc__
1008 LIBC=dietlibc
1009 #endif
1010 EOF
1011 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1012 /^LIBC/{
1013 s: ::g
1014 p
1015 }'`"
1016 test x"${LIBC}" != x && {
1017 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1018 exit
1019 }
1020 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1021 ;;
1022 i*86:DYNIX/ptx:4*:*)
1023 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1024 # earlier versions are messed up and put the nodename in both
1025 # sysname and nodename.
1026 echo i386-sequent-sysv4
1027 exit ;;
1028 i*86:UNIX_SV:4.2MP:2.*)
1029 # Unixware is an offshoot of SVR4, but it has its own version
1030 # number series starting with 2...
1031 # I am not positive that other SVR4 systems won't match this,
1032 # I just have to hope. -- rms.
1033 # Use sysv4.2uw... so that sysv4* matches it.
1034 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1035 exit ;;
1036 i*86:OS/2:*:*)
1037 # If we were able to find `uname', then EMX Unix compatibility
1038 # is probably installed.
1039 echo ${UNAME_MACHINE}-pc-os2-emx
1040 exit ;;
1041 i*86:XTS-300:*:STOP)
1042 echo ${UNAME_MACHINE}-unknown-stop
1043 exit ;;
1044 i*86:atheos:*:*)
1045 echo ${UNAME_MACHINE}-unknown-atheos
1046 exit ;;
1047 i*86:syllable:*:*)
1048 echo ${UNAME_MACHINE}-pc-syllable
1049 exit ;;
1050 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1051 echo i386-unknown-lynxos${UNAME_RELEASE}
1052 exit ;;
1053 i*86:*DOS:*:*)
1054 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1055 exit ;;
1056 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1057 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1058 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1059 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1060 else
1061 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1062 fi
1063 exit ;;
1064 i*86:*:5:[678]*)
1065 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1066 case `/bin/uname -X | grep "^Machine"` in
1067 *486*) UNAME_MACHINE=i486 ;;
1068 *Pentium) UNAME_MACHINE=i586 ;;
1069 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1070 esac
1071 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1072 exit ;;
1073 i*86:*:3.2:*)
1074 if test -f /usr/options/cb.name; then
1075 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1076 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1077 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1078 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1079 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1080 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1081 && UNAME_MACHINE=i586
1082 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1083 && UNAME_MACHINE=i686
1084 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1085 && UNAME_MACHINE=i686
1086 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1087 else
1088 echo ${UNAME_MACHINE}-pc-sysv32
1089 fi
1090 exit ;;
1091 pc:*:*:*)
1092 # Left here for compatibility:
1093 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1094 # the processor, so we play safe by assuming i386.
1095 echo i386-pc-msdosdjgpp
1096 exit ;;
1097 Intel:Mach:3*:*)
1098 echo i386-pc-mach3
1099 exit ;;
1100 paragon:*:*:*)
1101 echo i860-intel-osf1
1102 exit ;;
1103 i860:*:4.*:*) # i860-SVR4
1104 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1105 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1106 else # Add other i860-SVR4 vendors below as they are discovered.
1107 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1108 fi
1109 exit ;;
1110 mini*:CTIX:SYS*5:*)
1111 # "miniframe"
1112 echo m68010-convergent-sysv
1113 exit ;;
1114 mc68k:UNIX:SYSTEM5:3.51m)
1115 echo m68k-convergent-sysv
1116 exit ;;
1117 M680?0:D-NIX:5.3:*)
1118 echo m68k-diab-dnix
1119 exit ;;
1120 M68*:*:R3V[5678]*:*)
1121 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1122 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)
1123 OS_REL=''
1124 test -r /etc/.relid \
1125 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1126 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1127 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1128 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1129 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1130 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1131 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1132 && { echo i486-ncr-sysv4; exit; } ;;
1133 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1134 echo m68k-unknown-lynxos${UNAME_RELEASE}
1135 exit ;;
1136 mc68030:UNIX_System_V:4.*:*)
1137 echo m68k-atari-sysv4
1138 exit ;;
1139 TSUNAMI:LynxOS:2.*:*)
1140 echo sparc-unknown-lynxos${UNAME_RELEASE}
1141 exit ;;
1142 rs6000:LynxOS:2.*:*)
1143 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1144 exit ;;
1145 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1146 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1147 exit ;;
1148 SM[BE]S:UNIX_SV:*:*)
1149 echo mips-dde-sysv${UNAME_RELEASE}
1150 exit ;;
1151 RM*:ReliantUNIX-*:*:*)
1152 echo mips-sni-sysv4
1153 exit ;;
1154 RM*:SINIX-*:*:*)
1155 echo mips-sni-sysv4
1156 exit ;;
1157 *:SINIX-*:*:*)
1158 if uname -p 2>/dev/null >/dev/null ; then
1159 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1160 echo ${UNAME_MACHINE}-sni-sysv4
1161 else
1162 echo ns32k-sni-sysv
1163 fi
1164 exit ;;
1165 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1166 # says <Richard.M.Bartel@ccMail.Census.GOV>
1167 echo i586-unisys-sysv4
1168 exit ;;
1169 *:UNIX_System_V:4*:FTX*)
1170 # From Gerald Hewes <hewes@openmarket.com>.
1171 # How about differentiating between stratus architectures? -djm
1172 echo hppa1.1-stratus-sysv4
1173 exit ;;
1174 *:*:*:FTX*)
1175 # From seanf@swdc.stratus.com.
1176 echo i860-stratus-sysv4
1177 exit ;;
1178 i*86:VOS:*:*)
1179 # From Paul.Green@stratus.com.
1180 echo ${UNAME_MACHINE}-stratus-vos
1181 exit ;;
1182 *:VOS:*:*)
1183 # From Paul.Green@stratus.com.
1184 echo hppa1.1-stratus-vos
1185 exit ;;
1186 mc68*:A/UX:*:*)
1187 echo m68k-apple-aux${UNAME_RELEASE}
1188 exit ;;
1189 news*:NEWS-OS:6*:*)
1190 echo mips-sony-newsos6
1191 exit ;;
1192 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1193 if [ -d /usr/nec ]; then
1194 echo mips-nec-sysv${UNAME_RELEASE}
1195 else
1196 echo mips-unknown-sysv${UNAME_RELEASE}
1197 fi
1198 exit ;;
1199 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1200 echo powerpc-be-beos
1201 exit ;;
1202 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1203 echo powerpc-apple-beos
1204 exit ;;
1205 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1206 echo i586-pc-beos
1207 exit ;;
1208 SX-4:SUPER-UX:*:*)
1209 echo sx4-nec-superux${UNAME_RELEASE}
1210 exit ;;
1211 SX-5:SUPER-UX:*:*)
1212 echo sx5-nec-superux${UNAME_RELEASE}
1213 exit ;;
1214 SX-6:SUPER-UX:*:*)
1215 echo sx6-nec-superux${UNAME_RELEASE}
1216 exit ;;
1217 SX-7:SUPER-UX:*:*)
1218 echo sx7-nec-superux${UNAME_RELEASE}
1219 exit ;;
1220 SX-8:SUPER-UX:*:*)
1221 echo sx8-nec-superux${UNAME_RELEASE}
1222 exit ;;
1223 SX-8R:SUPER-UX:*:*)
1224 echo sx8r-nec-superux${UNAME_RELEASE}
1225 exit ;;
1226 Power*:Rhapsody:*:*)
1227 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1228 exit ;;
1229 *:Rhapsody:*:*)
1230 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1231 exit ;;
1232 *:Darwin:*:*)
1233 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1234 case $UNAME_PROCESSOR in
1235 unknown) UNAME_PROCESSOR=powerpc ;;
1236 esac
1237 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1238 exit ;;
1239 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1240 UNAME_PROCESSOR=`uname -p`
1241 if test "$UNAME_PROCESSOR" = "x86"; then
1242 UNAME_PROCESSOR=i386
1243 UNAME_MACHINE=pc
1244 fi
1245 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1246 exit ;;
1247 *:QNX:*:4*)
1248 echo i386-pc-qnx
1249 exit ;;
1250 NSE-?:NONSTOP_KERNEL:*:*)
1251 echo nse-tandem-nsk${UNAME_RELEASE}
1252 exit ;;
1253 NSR-?:NONSTOP_KERNEL:*:*)
1254 echo nsr-tandem-nsk${UNAME_RELEASE}
1255 exit ;;
1256 *:NonStop-UX:*:*)
1257 echo mips-compaq-nonstopux
1258 exit ;;
1259 BS2000:POSIX*:*:*)
1260 echo bs2000-siemens-sysv
1261 exit ;;
1262 DS/*:UNIX_System_V:*:*)
1263 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1264 exit ;;
1265 *:Plan9:*:*)
1266 # "uname -m" is not consistent, so use $cputype instead. 386
1267 # is converted to i386 for consistency with other x86
1268 # operating systems.
1269 if test "$cputype" = "386"; then
1270 UNAME_MACHINE=i386
1271 else
1272 UNAME_MACHINE="$cputype"
1273 fi
1274 echo ${UNAME_MACHINE}-unknown-plan9
1275 exit ;;
1276 *:TOPS-10:*:*)
1277 echo pdp10-unknown-tops10
1278 exit ;;
1279 *:TENEX:*:*)
1280 echo pdp10-unknown-tenex
1281 exit ;;
1282 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1283 echo pdp10-dec-tops20
1284 exit ;;
1285 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1286 echo pdp10-xkl-tops20
1287 exit ;;
1288 *:TOPS-20:*:*)
1289 echo pdp10-unknown-tops20
1290 exit ;;
1291 *:ITS:*:*)
1292 echo pdp10-unknown-its
1293 exit ;;
1294 SEI:*:*:SEIUX)
1295 echo mips-sei-seiux${UNAME_RELEASE}
1296 exit ;;
1297 *:DragonFly:*:*)
1298 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1299 exit ;;
1300 *:*VMS:*:*)
1301 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1302 case "${UNAME_MACHINE}" in
1303 A*) echo alpha-dec-vms ; exit ;;
1304 I*) echo ia64-dec-vms ; exit ;;
1305 V*) echo vax-dec-vms ; exit ;;
1306 esac ;;
1307 *:XENIX:*:SysV)
1308 echo i386-pc-xenix
1309 exit ;;
1310 i*86:skyos:*:*)
1311 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1312 exit ;;
1313 i*86:rdos:*:*)
1314 echo ${UNAME_MACHINE}-pc-rdos
1315 exit ;;
1316 esac
1317
1318 #echo '(No uname command or uname output not recognized.)' 1>&2
1319 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1320
1321 eval $set_cc_for_build
1322 cat >$dummy.c <<EOF
1323 #ifdef _SEQUENT_
1324 # include <sys/types.h>
1325 # include <sys/utsname.h>
1326 #endif
1327 main ()
1328 {
1329 #if defined (sony)
1330 #if defined (MIPSEB)
1331 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1332 I don't know.... */
1333 printf ("mips-sony-bsd\n"); exit (0);
1334 #else
1335 #include <sys/param.h>
1336 printf ("m68k-sony-newsos%s\n",
1337 #ifdef NEWSOS4
1338 "4"
1339 #else
1340 ""
1341 #endif
1342 ); exit (0);
1343 #endif
1344 #endif
1345
1346 #if defined (__arm) && defined (__acorn) && defined (__unix)
1347 printf ("arm-acorn-riscix\n"); exit (0);
1348 #endif
1349
1350 #if defined (hp300) && !defined (hpux)
1351 printf ("m68k-hp-bsd\n"); exit (0);
1352 #endif
1353
1354 #if defined (NeXT)
1355 #if !defined (__ARCHITECTURE__)
1356 #define __ARCHITECTURE__ "m68k"
1357 #endif
1358 int version;
1359 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1360 if (version < 4)
1361 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1362 else
1363 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1364 exit (0);
1365 #endif
1366
1367 #if defined (MULTIMAX) || defined (n16)
1368 #if defined (UMAXV)
1369 printf ("ns32k-encore-sysv\n"); exit (0);
1370 #else
1371 #if defined (CMU)
1372 printf ("ns32k-encore-mach\n"); exit (0);
1373 #else
1374 printf ("ns32k-encore-bsd\n"); exit (0);
1375 #endif
1376 #endif
1377 #endif
1378
1379 #if defined (__386BSD__)
1380 printf ("i386-pc-bsd\n"); exit (0);
1381 #endif
1382
1383 #if defined (sequent)
1384 #if defined (i386)
1385 printf ("i386-sequent-dynix\n"); exit (0);
1386 #endif
1387 #if defined (ns32000)
1388 printf ("ns32k-sequent-dynix\n"); exit (0);
1389 #endif
1390 #endif
1391
1392 #if defined (_SEQUENT_)
1393 struct utsname un;
1394
1395 uname(&un);
1396
1397 if (strncmp(un.version, "V2", 2) == 0) {
1398 printf ("i386-sequent-ptx2\n"); exit (0);
1399 }
1400 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1401 printf ("i386-sequent-ptx1\n"); exit (0);
1402 }
1403 printf ("i386-sequent-ptx\n"); exit (0);
1404
1405 #endif
1406
1407 #if defined (vax)
1408 # if !defined (ultrix)
1409 # include <sys/param.h>
1410 # if defined (BSD)
1411 # if BSD == 43
1412 printf ("vax-dec-bsd4.3\n"); exit (0);
1413 # else
1414 # if BSD == 199006
1415 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1416 # else
1417 printf ("vax-dec-bsd\n"); exit (0);
1418 # endif
1419 # endif
1420 # else
1421 printf ("vax-dec-bsd\n"); exit (0);
1422 # endif
1423 # else
1424 printf ("vax-dec-ultrix\n"); exit (0);
1425 # endif
1426 #endif
1427
1428 #if defined (alliant) && defined (i860)
1429 printf ("i860-alliant-bsd\n"); exit (0);
1430 #endif
1431
1432 exit (1);
1433 }
1434 EOF
1435
1436 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1437 { echo "$SYSTEM_NAME"; exit; }
1438
1439 # Apollos put the system type in the environment.
1440
1441 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1442
1443 # Convex versions that predate uname can use getsysinfo(1)
1444
1445 if [ -x /usr/convex/getsysinfo ]
1446 then
1447 case `getsysinfo -f cpu_type` in
1448 c1*)
1449 echo c1-convex-bsd
1450 exit ;;
1451 c2*)
1452 if getsysinfo -f scalar_acc
1453 then echo c32-convex-bsd
1454 else echo c2-convex-bsd
1455 fi
1456 exit ;;
1457 c34*)
1458 echo c34-convex-bsd
1459 exit ;;
1460 c38*)
1461 echo c38-convex-bsd
1462 exit ;;
1463 c4*)
1464 echo c4-convex-bsd
1465 exit ;;
1466 esac
1467 fi
1468
1469 cat >&2 <<EOF
1470 $0: unable to guess system type
1471
1472 This script, last modified $timestamp, has failed to recognize
1473 the operating system you are using. It is advised that you
1474 download the most up to date version of the config scripts from
1475
1476 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1477 and
1478 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1479
1480 If the version you run ($0) is already up to date, please
1481 send the following data and any information you think might be
1482 pertinent to <config-patches@gnu.org> in order to provide the needed
1483 information to handle your system.
1484
1485 config.guess timestamp = $timestamp
1486
1487 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1488 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1489 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1490 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1491
1492 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1493 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1494
1495 hostinfo = `(hostinfo) 2>/dev/null`
1496 /bin/universe = `(/bin/universe) 2>/dev/null`
1497 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1498 /bin/arch = `(/bin/arch) 2>/dev/null`
1499 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1500 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1501
1502 UNAME_MACHINE = ${UNAME_MACHINE}
1503 UNAME_RELEASE = ${UNAME_RELEASE}
1504 UNAME_SYSTEM = ${UNAME_SYSTEM}
1505 UNAME_VERSION = ${UNAME_VERSION}
1506 EOF
1507
1508 exit 1
1509
1510 # Local variables:
1511 # eval: (add-hook 'write-file-hooks 'time-stamp)
1512 # time-stamp-start: "timestamp='"
1513 # time-stamp-format: "%:y-%02m-%02d"
1514 # time-stamp-end: "'"
1515 # End:
0 #! /bin/sh
1 # Output a system dependent set of variables, describing how to set the
2 # run time search path of shared libraries in an executable.
3 #
4 # Copyright 1996-2007 Free Software Foundation, Inc.
5 # Taken from GNU libtool, 2001
6 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7 #
8 # This file is free software; the Free Software Foundation gives
9 # unlimited permission to copy and/or distribute it, with or without
10 # modifications, as long as this notice is preserved.
11 #
12 # The first argument passed to this file is the canonical host specification,
13 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
14 # or
15 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
16 # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
17 # should be set by the caller.
18 #
19 # The set of defined variables is at the end of this script.
20
21 # Known limitations:
22 # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
23 # than 256 bytes, otherwise the compiler driver will dump core. The only
24 # known workaround is to choose shorter directory names for the build
25 # directory and/or the installation directory.
26
27 # All known linkers require a `.a' archive for static linking (except MSVC,
28 # which needs '.lib').
29 libext=a
30 shrext=.so
31
32 host="$1"
33 host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
34 host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
35 host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
36
37 # Code taken from libtool.m4's _LT_CC_BASENAME.
38
39 for cc_temp in $CC""; do
40 case $cc_temp in
41 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43 \-*) ;;
44 *) break;;
45 esac
46 done
47 cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
48
49 # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
50
51 wl=
52 if test "$GCC" = yes; then
53 wl='-Wl,'
54 else
55 case "$host_os" in
56 aix*)
57 wl='-Wl,'
58 ;;
59 darwin*)
60 case $cc_basename in
61 xlc*)
62 wl='-Wl,'
63 ;;
64 esac
65 ;;
66 mingw* | cygwin* | pw32* | os2*)
67 ;;
68 hpux9* | hpux10* | hpux11*)
69 wl='-Wl,'
70 ;;
71 irix5* | irix6* | nonstopux*)
72 wl='-Wl,'
73 ;;
74 newsos6)
75 ;;
76 linux* | k*bsd*-gnu)
77 case $cc_basename in
78 icc* | ecc*)
79 wl='-Wl,'
80 ;;
81 pgcc | pgf77 | pgf90)
82 wl='-Wl,'
83 ;;
84 ccc*)
85 wl='-Wl,'
86 ;;
87 como)
88 wl='-lopt='
89 ;;
90 *)
91 case `$CC -V 2>&1 | sed 5q` in
92 *Sun\ C*)
93 wl='-Wl,'
94 ;;
95 esac
96 ;;
97 esac
98 ;;
99 osf3* | osf4* | osf5*)
100 wl='-Wl,'
101 ;;
102 rdos*)
103 ;;
104 solaris*)
105 wl='-Wl,'
106 ;;
107 sunos4*)
108 wl='-Qoption ld '
109 ;;
110 sysv4 | sysv4.2uw2* | sysv4.3*)
111 wl='-Wl,'
112 ;;
113 sysv4*MP*)
114 ;;
115 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
116 wl='-Wl,'
117 ;;
118 unicos*)
119 wl='-Wl,'
120 ;;
121 uts4*)
122 ;;
123 esac
124 fi
125
126 # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
127
128 hardcode_libdir_flag_spec=
129 hardcode_libdir_separator=
130 hardcode_direct=no
131 hardcode_minus_L=no
132
133 case "$host_os" in
134 cygwin* | mingw* | pw32*)
135 # FIXME: the MSVC++ port hasn't been tested in a loooong time
136 # When not using gcc, we currently assume that we are using
137 # Microsoft Visual C++.
138 if test "$GCC" != yes; then
139 with_gnu_ld=no
140 fi
141 ;;
142 interix*)
143 # we just hope/assume this is gcc and not c89 (= MSVC++)
144 with_gnu_ld=yes
145 ;;
146 openbsd*)
147 with_gnu_ld=no
148 ;;
149 esac
150
151 ld_shlibs=yes
152 if test "$with_gnu_ld" = yes; then
153 # Set some defaults for GNU ld with shared library support. These
154 # are reset later if shared libraries are not supported. Putting them
155 # here allows them to be overridden if necessary.
156 # Unlike libtool, we use -rpath here, not --rpath, since the documented
157 # option of GNU ld is called -rpath, not --rpath.
158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
159 case "$host_os" in
160 aix3* | aix4* | aix5*)
161 # On AIX/PPC, the GNU linker is very broken
162 if test "$host_cpu" != ia64; then
163 ld_shlibs=no
164 fi
165 ;;
166 amigaos*)
167 hardcode_libdir_flag_spec='-L$libdir'
168 hardcode_minus_L=yes
169 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
170 # that the semantics of dynamic libraries on AmigaOS, at least up
171 # to version 4, is to share data among multiple programs linked
172 # with the same dynamic library. Since this doesn't match the
173 # behavior of shared libraries on other platforms, we cannot use
174 # them.
175 ld_shlibs=no
176 ;;
177 beos*)
178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
179 :
180 else
181 ld_shlibs=no
182 fi
183 ;;
184 cygwin* | mingw* | pw32*)
185 # hardcode_libdir_flag_spec is actually meaningless, as there is
186 # no search path for DLLs.
187 hardcode_libdir_flag_spec='-L$libdir'
188 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
189 :
190 else
191 ld_shlibs=no
192 fi
193 ;;
194 interix[3-9]*)
195 hardcode_direct=no
196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
197 ;;
198 gnu* | linux* | k*bsd*-gnu)
199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
200 :
201 else
202 ld_shlibs=no
203 fi
204 ;;
205 netbsd*)
206 ;;
207 solaris*)
208 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
209 ld_shlibs=no
210 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
211 :
212 else
213 ld_shlibs=no
214 fi
215 ;;
216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
217 case `$LD -v 2>&1` in
218 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
219 ld_shlibs=no
220 ;;
221 *)
222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
223 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
224 else
225 ld_shlibs=no
226 fi
227 ;;
228 esac
229 ;;
230 sunos4*)
231 hardcode_direct=yes
232 ;;
233 *)
234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
235 :
236 else
237 ld_shlibs=no
238 fi
239 ;;
240 esac
241 if test "$ld_shlibs" = no; then
242 hardcode_libdir_flag_spec=
243 fi
244 else
245 case "$host_os" in
246 aix3*)
247 # Note: this linker hardcodes the directories in LIBPATH if there
248 # are no directories specified by -L.
249 hardcode_minus_L=yes
250 if test "$GCC" = yes; then
251 # Neither direct hardcoding nor static linking is supported with a
252 # broken collect2.
253 hardcode_direct=unsupported
254 fi
255 ;;
256 aix4* | aix5*)
257 if test "$host_cpu" = ia64; then
258 # On IA64, the linker does run time linking by default, so we don't
259 # have to do anything special.
260 aix_use_runtimelinking=no
261 else
262 aix_use_runtimelinking=no
263 # Test if we are trying to use run time linking or normal
264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
265 # need to do runtime linking.
266 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
267 for ld_flag in $LDFLAGS; do
268 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
269 aix_use_runtimelinking=yes
270 break
271 fi
272 done
273 ;;
274 esac
275 fi
276 hardcode_direct=yes
277 hardcode_libdir_separator=':'
278 if test "$GCC" = yes; then
279 case $host_os in aix4.[012]|aix4.[012].*)
280 collect2name=`${CC} -print-prog-name=collect2`
281 if test -f "$collect2name" && \
282 strings "$collect2name" | grep resolve_lib_name >/dev/null
283 then
284 # We have reworked collect2
285 :
286 else
287 # We have old collect2
288 hardcode_direct=unsupported
289 hardcode_minus_L=yes
290 hardcode_libdir_flag_spec='-L$libdir'
291 hardcode_libdir_separator=
292 fi
293 ;;
294 esac
295 fi
296 # Begin _LT_AC_SYS_LIBPATH_AIX.
297 echo 'int main () { return 0; }' > conftest.c
298 ${CC} ${LDFLAGS} conftest.c -o conftest
299 aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
300 }'`
301 if test -z "$aix_libpath"; then
302 aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
303 }'`
304 fi
305 if test -z "$aix_libpath"; then
306 aix_libpath="/usr/lib:/lib"
307 fi
308 rm -f conftest.c conftest
309 # End _LT_AC_SYS_LIBPATH_AIX.
310 if test "$aix_use_runtimelinking" = yes; then
311 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
312 else
313 if test "$host_cpu" = ia64; then
314 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
315 else
316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
317 fi
318 fi
319 ;;
320 amigaos*)
321 hardcode_libdir_flag_spec='-L$libdir'
322 hardcode_minus_L=yes
323 # see comment about different semantics on the GNU ld section
324 ld_shlibs=no
325 ;;
326 bsdi[45]*)
327 ;;
328 cygwin* | mingw* | pw32*)
329 # When not using gcc, we currently assume that we are using
330 # Microsoft Visual C++.
331 # hardcode_libdir_flag_spec is actually meaningless, as there is
332 # no search path for DLLs.
333 hardcode_libdir_flag_spec=' '
334 libext=lib
335 ;;
336 darwin* | rhapsody*)
337 hardcode_direct=no
338 if test "$GCC" = yes ; then
339 :
340 else
341 case $cc_basename in
342 xlc*)
343 ;;
344 *)
345 ld_shlibs=no
346 ;;
347 esac
348 fi
349 ;;
350 dgux*)
351 hardcode_libdir_flag_spec='-L$libdir'
352 ;;
353 freebsd1*)
354 ld_shlibs=no
355 ;;
356 freebsd2.2*)
357 hardcode_libdir_flag_spec='-R$libdir'
358 hardcode_direct=yes
359 ;;
360 freebsd2*)
361 hardcode_direct=yes
362 hardcode_minus_L=yes
363 ;;
364 freebsd* | dragonfly*)
365 hardcode_libdir_flag_spec='-R$libdir'
366 hardcode_direct=yes
367 ;;
368 hpux9*)
369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
370 hardcode_libdir_separator=:
371 hardcode_direct=yes
372 # hardcode_minus_L: Not really in the search PATH,
373 # but as the default location of the library.
374 hardcode_minus_L=yes
375 ;;
376 hpux10*)
377 if test "$with_gnu_ld" = no; then
378 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
379 hardcode_libdir_separator=:
380 hardcode_direct=yes
381 # hardcode_minus_L: Not really in the search PATH,
382 # but as the default location of the library.
383 hardcode_minus_L=yes
384 fi
385 ;;
386 hpux11*)
387 if test "$with_gnu_ld" = no; then
388 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
389 hardcode_libdir_separator=:
390 case $host_cpu in
391 hppa*64*|ia64*)
392 hardcode_direct=no
393 ;;
394 *)
395 hardcode_direct=yes
396 # hardcode_minus_L: Not really in the search PATH,
397 # but as the default location of the library.
398 hardcode_minus_L=yes
399 ;;
400 esac
401 fi
402 ;;
403 irix5* | irix6* | nonstopux*)
404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
405 hardcode_libdir_separator=:
406 ;;
407 netbsd*)
408 hardcode_libdir_flag_spec='-R$libdir'
409 hardcode_direct=yes
410 ;;
411 newsos6)
412 hardcode_direct=yes
413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
414 hardcode_libdir_separator=:
415 ;;
416 openbsd*)
417 if test -f /usr/libexec/ld.so; then
418 hardcode_direct=yes
419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
420 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
421 else
422 case "$host_os" in
423 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
424 hardcode_libdir_flag_spec='-R$libdir'
425 ;;
426 *)
427 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
428 ;;
429 esac
430 fi
431 else
432 ld_shlibs=no
433 fi
434 ;;
435 os2*)
436 hardcode_libdir_flag_spec='-L$libdir'
437 hardcode_minus_L=yes
438 ;;
439 osf3*)
440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
441 hardcode_libdir_separator=:
442 ;;
443 osf4* | osf5*)
444 if test "$GCC" = yes; then
445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
446 else
447 # Both cc and cxx compiler support -rpath directly
448 hardcode_libdir_flag_spec='-rpath $libdir'
449 fi
450 hardcode_libdir_separator=:
451 ;;
452 solaris*)
453 hardcode_libdir_flag_spec='-R$libdir'
454 ;;
455 sunos4*)
456 hardcode_libdir_flag_spec='-L$libdir'
457 hardcode_direct=yes
458 hardcode_minus_L=yes
459 ;;
460 sysv4)
461 case $host_vendor in
462 sni)
463 hardcode_direct=yes # is this really true???
464 ;;
465 siemens)
466 hardcode_direct=no
467 ;;
468 motorola)
469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
470 ;;
471 esac
472 ;;
473 sysv4.3*)
474 ;;
475 sysv4*MP*)
476 if test -d /usr/nec; then
477 ld_shlibs=yes
478 fi
479 ;;
480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
481 ;;
482 sysv5* | sco3.2v5* | sco5v6*)
483 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
484 hardcode_libdir_separator=':'
485 ;;
486 uts4*)
487 hardcode_libdir_flag_spec='-L$libdir'
488 ;;
489 *)
490 ld_shlibs=no
491 ;;
492 esac
493 fi
494
495 # Check dynamic linker characteristics
496 # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
497 # Unlike libtool.m4, here we don't care about _all_ names of the library, but
498 # only about the one the linker finds when passed -lNAME. This is the last
499 # element of library_names_spec in libtool.m4, or possibly two of them if the
500 # linker has special search rules.
501 library_names_spec= # the last element of library_names_spec in libtool.m4
502 libname_spec='lib$name'
503 case "$host_os" in
504 aix3*)
505 library_names_spec='$libname.a'
506 ;;
507 aix4* | aix5*)
508 library_names_spec='$libname$shrext'
509 ;;
510 amigaos*)
511 library_names_spec='$libname.a'
512 ;;
513 beos*)
514 library_names_spec='$libname$shrext'
515 ;;
516 bsdi[45]*)
517 library_names_spec='$libname$shrext'
518 ;;
519 cygwin* | mingw* | pw32*)
520 shrext=.dll
521 library_names_spec='$libname.dll.a $libname.lib'
522 ;;
523 darwin* | rhapsody*)
524 shrext=.dylib
525 library_names_spec='$libname$shrext'
526 ;;
527 dgux*)
528 library_names_spec='$libname$shrext'
529 ;;
530 freebsd1*)
531 ;;
532 freebsd* | dragonfly*)
533 case "$host_os" in
534 freebsd[123]*)
535 library_names_spec='$libname$shrext$versuffix' ;;
536 *)
537 library_names_spec='$libname$shrext' ;;
538 esac
539 ;;
540 gnu*)
541 library_names_spec='$libname$shrext'
542 ;;
543 hpux9* | hpux10* | hpux11*)
544 case $host_cpu in
545 ia64*)
546 shrext=.so
547 ;;
548 hppa*64*)
549 shrext=.sl
550 ;;
551 *)
552 shrext=.sl
553 ;;
554 esac
555 library_names_spec='$libname$shrext'
556 ;;
557 interix[3-9]*)
558 library_names_spec='$libname$shrext'
559 ;;
560 irix5* | irix6* | nonstopux*)
561 library_names_spec='$libname$shrext'
562 case "$host_os" in
563 irix5* | nonstopux*)
564 libsuff= shlibsuff=
565 ;;
566 *)
567 case $LD in
568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
569 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
570 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
571 *) libsuff= shlibsuff= ;;
572 esac
573 ;;
574 esac
575 ;;
576 linux*oldld* | linux*aout* | linux*coff*)
577 ;;
578 linux* | k*bsd*-gnu)
579 library_names_spec='$libname$shrext'
580 ;;
581 knetbsd*-gnu)
582 library_names_spec='$libname$shrext'
583 ;;
584 netbsd*)
585 library_names_spec='$libname$shrext'
586 ;;
587 newsos6)
588 library_names_spec='$libname$shrext'
589 ;;
590 nto-qnx*)
591 library_names_spec='$libname$shrext'
592 ;;
593 openbsd*)
594 library_names_spec='$libname$shrext$versuffix'
595 ;;
596 os2*)
597 libname_spec='$name'
598 shrext=.dll
599 library_names_spec='$libname.a'
600 ;;
601 osf3* | osf4* | osf5*)
602 library_names_spec='$libname$shrext'
603 ;;
604 rdos*)
605 ;;
606 solaris*)
607 library_names_spec='$libname$shrext'
608 ;;
609 sunos4*)
610 library_names_spec='$libname$shrext$versuffix'
611 ;;
612 sysv4 | sysv4.3*)
613 library_names_spec='$libname$shrext'
614 ;;
615 sysv4*MP*)
616 library_names_spec='$libname$shrext'
617 ;;
618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
619 library_names_spec='$libname$shrext'
620 ;;
621 uts4*)
622 library_names_spec='$libname$shrext'
623 ;;
624 esac
625
626 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
627 escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
628 shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
629 escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
630 escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
631 escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
632
633 LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
634
635 # How to pass a linker flag through the compiler.
636 wl="$escaped_wl"
637
638 # Static library suffix (normally "a").
639 libext="$libext"
640
641 # Shared library suffix (normally "so").
642 shlibext="$shlibext"
643
644 # Format of library name prefix.
645 libname_spec="$escaped_libname_spec"
646
647 # Library names that the linker finds when passed -lNAME.
648 library_names_spec="$escaped_library_names_spec"
649
650 # Flag to hardcode \$libdir into a binary during linking.
651 # This must work even if \$libdir does not exist.
652 hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
653
654 # Whether we need a single -rpath flag with a separated argument.
655 hardcode_libdir_separator="$hardcode_libdir_separator"
656
657 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
658 # resulting binary.
659 hardcode_direct="$hardcode_direct"
660
661 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
662 # resulting binary.
663 hardcode_minus_L="$hardcode_minus_L"
664
665 EOF
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 Free Software Foundation,
4 # Inc.
5
6 timestamp='2007-06-28'
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, 2002, 2003, 2004, 2005
75 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 various machine names and aliases which stand
376 # for a CPU type and a company and sometimes even an OS.
377 386bsd)
378 basic_machine=i386-unknown
379 os=-bsd
380 ;;
381 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
382 basic_machine=m68000-att
383 ;;
384 3b*)
385 basic_machine=we32k-att
386 ;;
387 a29khif)
388 basic_machine=a29k-amd
389 os=-udi
390 ;;
391 abacus)
392 basic_machine=abacus-unknown
393 ;;
394 adobe68k)
395 basic_machine=m68010-adobe
396 os=-scout
397 ;;
398 alliant | fx80)
399 basic_machine=fx80-alliant
400 ;;
401 altos | altos3068)
402 basic_machine=m68k-altos
403 ;;
404 am29k)
405 basic_machine=a29k-none
406 os=-bsd
407 ;;
408 amd64)
409 basic_machine=x86_64-pc
410 ;;
411 amd64-*)
412 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
413 ;;
414 amdahl)
415 basic_machine=580-amdahl
416 os=-sysv
417 ;;
418 amiga | amiga-*)
419 basic_machine=m68k-unknown
420 ;;
421 amigaos | amigados)
422 basic_machine=m68k-unknown
423 os=-amigaos
424 ;;
425 amigaunix | amix)
426 basic_machine=m68k-unknown
427 os=-sysv4
428 ;;
429 apollo68)
430 basic_machine=m68k-apollo
431 os=-sysv
432 ;;
433 apollo68bsd)
434 basic_machine=m68k-apollo
435 os=-bsd
436 ;;
437 aux)
438 basic_machine=m68k-apple
439 os=-aux
440 ;;
441 balance)
442 basic_machine=ns32k-sequent
443 os=-dynix
444 ;;
445 c90)
446 basic_machine=c90-cray
447 os=-unicos
448 ;;
449 convex-c1)
450 basic_machine=c1-convex
451 os=-bsd
452 ;;
453 convex-c2)
454 basic_machine=c2-convex
455 os=-bsd
456 ;;
457 convex-c32)
458 basic_machine=c32-convex
459 os=-bsd
460 ;;
461 convex-c34)
462 basic_machine=c34-convex
463 os=-bsd
464 ;;
465 convex-c38)
466 basic_machine=c38-convex
467 os=-bsd
468 ;;
469 cray | j90)
470 basic_machine=j90-cray
471 os=-unicos
472 ;;
473 craynv)
474 basic_machine=craynv-cray
475 os=-unicosmp
476 ;;
477 cr16)
478 basic_machine=cr16-unknown
479 os=-elf
480 ;;
481 crds | unos)
482 basic_machine=m68k-crds
483 ;;
484 crisv32 | crisv32-* | etraxfs*)
485 basic_machine=crisv32-axis
486 ;;
487 cris | cris-* | etrax*)
488 basic_machine=cris-axis
489 ;;
490 crx)
491 basic_machine=crx-unknown
492 os=-elf
493 ;;
494 da30 | da30-*)
495 basic_machine=m68k-da30
496 ;;
497 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
498 basic_machine=mips-dec
499 ;;
500 decsystem10* | dec10*)
501 basic_machine=pdp10-dec
502 os=-tops10
503 ;;
504 decsystem20* | dec20*)
505 basic_machine=pdp10-dec
506 os=-tops20
507 ;;
508 delta | 3300 | motorola-3300 | motorola-delta \
509 | 3300-motorola | delta-motorola)
510 basic_machine=m68k-motorola
511 ;;
512 delta88)
513 basic_machine=m88k-motorola
514 os=-sysv3
515 ;;
516 djgpp)
517 basic_machine=i586-pc
518 os=-msdosdjgpp
519 ;;
520 dpx20 | dpx20-*)
521 basic_machine=rs6000-bull
522 os=-bosx
523 ;;
524 dpx2* | dpx2*-bull)
525 basic_machine=m68k-bull
526 os=-sysv3
527 ;;
528 ebmon29k)
529 basic_machine=a29k-amd
530 os=-ebmon
531 ;;
532 elxsi)
533 basic_machine=elxsi-elxsi
534 os=-bsd
535 ;;
536 encore | umax | mmax)
537 basic_machine=ns32k-encore
538 ;;
539 es1800 | OSE68k | ose68k | ose | OSE)
540 basic_machine=m68k-ericsson
541 os=-ose
542 ;;
543 fx2800)
544 basic_machine=i860-alliant
545 ;;
546 genix)
547 basic_machine=ns32k-ns
548 ;;
549 gmicro)
550 basic_machine=tron-gmicro
551 os=-sysv
552 ;;
553 go32)
554 basic_machine=i386-pc
555 os=-go32
556 ;;
557 h3050r* | hiux*)
558 basic_machine=hppa1.1-hitachi
559 os=-hiuxwe2
560 ;;
561 h8300hms)
562 basic_machine=h8300-hitachi
563 os=-hms
564 ;;
565 h8300xray)
566 basic_machine=h8300-hitachi
567 os=-xray
568 ;;
569 h8500hms)
570 basic_machine=h8500-hitachi
571 os=-hms
572 ;;
573 harris)
574 basic_machine=m88k-harris
575 os=-sysv3
576 ;;
577 hp300-*)
578 basic_machine=m68k-hp
579 ;;
580 hp300bsd)
581 basic_machine=m68k-hp
582 os=-bsd
583 ;;
584 hp300hpux)
585 basic_machine=m68k-hp
586 os=-hpux
587 ;;
588 hp3k9[0-9][0-9] | hp9[0-9][0-9])
589 basic_machine=hppa1.0-hp
590 ;;
591 hp9k2[0-9][0-9] | hp9k31[0-9])
592 basic_machine=m68000-hp
593 ;;
594 hp9k3[2-9][0-9])
595 basic_machine=m68k-hp
596 ;;
597 hp9k6[0-9][0-9] | hp6[0-9][0-9])
598 basic_machine=hppa1.0-hp
599 ;;
600 hp9k7[0-79][0-9] | hp7[0-79][0-9])
601 basic_machine=hppa1.1-hp
602 ;;
603 hp9k78[0-9] | hp78[0-9])
604 # FIXME: really hppa2.0-hp
605 basic_machine=hppa1.1-hp
606 ;;
607 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
608 # FIXME: really hppa2.0-hp
609 basic_machine=hppa1.1-hp
610 ;;
611 hp9k8[0-9][13679] | hp8[0-9][13679])
612 basic_machine=hppa1.1-hp
613 ;;
614 hp9k8[0-9][0-9] | hp8[0-9][0-9])
615 basic_machine=hppa1.0-hp
616 ;;
617 hppa-next)
618 os=-nextstep3
619 ;;
620 hppaosf)
621 basic_machine=hppa1.1-hp
622 os=-osf
623 ;;
624 hppro)
625 basic_machine=hppa1.1-hp
626 os=-proelf
627 ;;
628 i370-ibm* | ibm*)
629 basic_machine=i370-ibm
630 ;;
631 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
632 i*86v32)
633 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
634 os=-sysv32
635 ;;
636 i*86v4*)
637 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
638 os=-sysv4
639 ;;
640 i*86v)
641 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
642 os=-sysv
643 ;;
644 i*86sol2)
645 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
646 os=-solaris2
647 ;;
648 i386mach)
649 basic_machine=i386-mach
650 os=-mach
651 ;;
652 i386-vsta | vsta)
653 basic_machine=i386-unknown
654 os=-vsta
655 ;;
656 iris | iris4d)
657 basic_machine=mips-sgi
658 case $os in
659 -irix*)
660 ;;
661 *)
662 os=-irix4
663 ;;
664 esac
665 ;;
666 isi68 | isi)
667 basic_machine=m68k-isi
668 os=-sysv
669 ;;
670 m88k-omron*)
671 basic_machine=m88k-omron
672 ;;
673 magnum | m3230)
674 basic_machine=mips-mips
675 os=-sysv
676 ;;
677 merlin)
678 basic_machine=ns32k-utek
679 os=-sysv
680 ;;
681 mingw32)
682 basic_machine=i386-pc
683 os=-mingw32
684 ;;
685 mingw32ce)
686 basic_machine=arm-unknown
687 os=-mingw32ce
688 ;;
689 miniframe)
690 basic_machine=m68000-convergent
691 ;;
692 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
693 basic_machine=m68k-atari
694 os=-mint
695 ;;
696 mips3*-*)
697 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
698 ;;
699 mips3*)
700 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
701 ;;
702 monitor)
703 basic_machine=m68k-rom68k
704 os=-coff
705 ;;
706 morphos)
707 basic_machine=powerpc-unknown
708 os=-morphos
709 ;;
710 msdos)
711 basic_machine=i386-pc
712 os=-msdos
713 ;;
714 ms1-*)
715 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
716 ;;
717 mvs)
718 basic_machine=i370-ibm
719 os=-mvs
720 ;;
721 ncr3000)
722 basic_machine=i486-ncr
723 os=-sysv4
724 ;;
725 netbsd386)
726 basic_machine=i386-unknown
727 os=-netbsd
728 ;;
729 netwinder)
730 basic_machine=armv4l-rebel
731 os=-linux
732 ;;
733 news | news700 | news800 | news900)
734 basic_machine=m68k-sony
735 os=-newsos
736 ;;
737 news1000)
738 basic_machine=m68030-sony
739 os=-newsos
740 ;;
741 news-3600 | risc-news)
742 basic_machine=mips-sony
743 os=-newsos
744 ;;
745 necv70)
746 basic_machine=v70-nec
747 os=-sysv
748 ;;
749 next | m*-next )
750 basic_machine=m68k-next
751 case $os in
752 -nextstep* )
753 ;;
754 -ns2*)
755 os=-nextstep2
756 ;;
757 *)
758 os=-nextstep3
759 ;;
760 esac
761 ;;
762 nh3000)
763 basic_machine=m68k-harris
764 os=-cxux
765 ;;
766 nh[45]000)
767 basic_machine=m88k-harris
768 os=-cxux
769 ;;
770 nindy960)
771 basic_machine=i960-intel
772 os=-nindy
773 ;;
774 mon960)
775 basic_machine=i960-intel
776 os=-mon960
777 ;;
778 nonstopux)
779 basic_machine=mips-compaq
780 os=-nonstopux
781 ;;
782 np1)
783 basic_machine=np1-gould
784 ;;
785 nsr-tandem)
786 basic_machine=nsr-tandem
787 ;;
788 op50n-* | op60c-*)
789 basic_machine=hppa1.1-oki
790 os=-proelf
791 ;;
792 openrisc | openrisc-*)
793 basic_machine=or32-unknown
794 ;;
795 os400)
796 basic_machine=powerpc-ibm
797 os=-os400
798 ;;
799 OSE68000 | ose68000)
800 basic_machine=m68000-ericsson
801 os=-ose
802 ;;
803 os68k)
804 basic_machine=m68k-none
805 os=-os68k
806 ;;
807 pa-hitachi)
808 basic_machine=hppa1.1-hitachi
809 os=-hiuxwe2
810 ;;
811 paragon)
812 basic_machine=i860-intel
813 os=-osf
814 ;;
815 pbd)
816 basic_machine=sparc-tti
817 ;;
818 pbb)
819 basic_machine=m68k-tti
820 ;;
821 pc532 | pc532-*)
822 basic_machine=ns32k-pc532
823 ;;
824 pc98)
825 basic_machine=i386-pc
826 ;;
827 pc98-*)
828 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
829 ;;
830 pentium | p5 | k5 | k6 | nexgen | viac3)
831 basic_machine=i586-pc
832 ;;
833 pentiumpro | p6 | 6x86 | athlon | athlon_*)
834 basic_machine=i686-pc
835 ;;
836 pentiumii | pentium2 | pentiumiii | pentium3)
837 basic_machine=i686-pc
838 ;;
839 pentium4)
840 basic_machine=i786-pc
841 ;;
842 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
843 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
844 ;;
845 pentiumpro-* | p6-* | 6x86-* | athlon-*)
846 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
847 ;;
848 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
849 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
850 ;;
851 pentium4-*)
852 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
853 ;;
854 pn)
855 basic_machine=pn-gould
856 ;;
857 power) basic_machine=power-ibm
858 ;;
859 ppc) basic_machine=powerpc-unknown
860 ;;
861 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
862 ;;
863 ppcle | powerpclittle | ppc-le | powerpc-little)
864 basic_machine=powerpcle-unknown
865 ;;
866 ppcle-* | powerpclittle-*)
867 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
868 ;;
869 ppc64) basic_machine=powerpc64-unknown
870 ;;
871 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
872 ;;
873 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
874 basic_machine=powerpc64le-unknown
875 ;;
876 ppc64le-* | powerpc64little-*)
877 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
878 ;;
879 ps2)
880 basic_machine=i386-ibm
881 ;;
882 pw32)
883 basic_machine=i586-unknown
884 os=-pw32
885 ;;
886 rdos)
887 basic_machine=i386-pc
888 os=-rdos
889 ;;
890 rom68k)
891 basic_machine=m68k-rom68k
892 os=-coff
893 ;;
894 rm[46]00)
895 basic_machine=mips-siemens
896 ;;
897 rtpc | rtpc-*)
898 basic_machine=romp-ibm
899 ;;
900 s390 | s390-*)
901 basic_machine=s390-ibm
902 ;;
903 s390x | s390x-*)
904 basic_machine=s390x-ibm
905 ;;
906 sa29200)
907 basic_machine=a29k-amd
908 os=-udi
909 ;;
910 sb1)
911 basic_machine=mipsisa64sb1-unknown
912 ;;
913 sb1el)
914 basic_machine=mipsisa64sb1el-unknown
915 ;;
916 sde)
917 basic_machine=mipsisa32-sde
918 os=-elf
919 ;;
920 sei)
921 basic_machine=mips-sei
922 os=-seiux
923 ;;
924 sequent)
925 basic_machine=i386-sequent
926 ;;
927 sh)
928 basic_machine=sh-hitachi
929 os=-hms
930 ;;
931 sh5el)
932 basic_machine=sh5le-unknown
933 ;;
934 sh64)
935 basic_machine=sh64-unknown
936 ;;
937 sparclite-wrs | simso-wrs)
938 basic_machine=sparclite-wrs
939 os=-vxworks
940 ;;
941 sps7)
942 basic_machine=m68k-bull
943 os=-sysv2
944 ;;
945 spur)
946 basic_machine=spur-unknown
947 ;;
948 st2000)
949 basic_machine=m68k-tandem
950 ;;
951 stratus)
952 basic_machine=i860-stratus
953 os=-sysv4
954 ;;
955 sun2)
956 basic_machine=m68000-sun
957 ;;
958 sun2os3)
959 basic_machine=m68000-sun
960 os=-sunos3
961 ;;
962 sun2os4)
963 basic_machine=m68000-sun
964 os=-sunos4
965 ;;
966 sun3os3)
967 basic_machine=m68k-sun
968 os=-sunos3
969 ;;
970 sun3os4)
971 basic_machine=m68k-sun
972 os=-sunos4
973 ;;
974 sun4os3)
975 basic_machine=sparc-sun
976 os=-sunos3
977 ;;
978 sun4os4)
979 basic_machine=sparc-sun
980 os=-sunos4
981 ;;
982 sun4sol2)
983 basic_machine=sparc-sun
984 os=-solaris2
985 ;;
986 sun3 | sun3-*)
987 basic_machine=m68k-sun
988 ;;
989 sun4)
990 basic_machine=sparc-sun
991 ;;
992 sun386 | sun386i | roadrunner)
993 basic_machine=i386-sun
994 ;;
995 sv1)
996 basic_machine=sv1-cray
997 os=-unicos
998 ;;
999 symmetry)
1000 basic_machine=i386-sequent
1001 os=-dynix
1002 ;;
1003 t3e)
1004 basic_machine=alphaev5-cray
1005 os=-unicos
1006 ;;
1007 t90)
1008 basic_machine=t90-cray
1009 os=-unicos
1010 ;;
1011 tic54x | c54x*)
1012 basic_machine=tic54x-unknown
1013 os=-coff
1014 ;;
1015 tic55x | c55x*)
1016 basic_machine=tic55x-unknown
1017 os=-coff
1018 ;;
1019 tic6x | c6x*)
1020 basic_machine=tic6x-unknown
1021 os=-coff
1022 ;;
1023 tx39)
1024 basic_machine=mipstx39-unknown
1025 ;;
1026 tx39el)
1027 basic_machine=mipstx39el-unknown
1028 ;;
1029 toad1)
1030 basic_machine=pdp10-xkl
1031 os=-tops20
1032 ;;
1033 tower | tower-32)
1034 basic_machine=m68k-ncr
1035 ;;
1036 tpf)
1037 basic_machine=s390x-ibm
1038 os=-tpf
1039 ;;
1040 udi29k)
1041 basic_machine=a29k-amd
1042 os=-udi
1043 ;;
1044 ultra3)
1045 basic_machine=a29k-nyu
1046 os=-sym1
1047 ;;
1048 v810 | necv810)
1049 basic_machine=v810-nec
1050 os=-none
1051 ;;
1052 vaxv)
1053 basic_machine=vax-dec
1054 os=-sysv
1055 ;;
1056 vms)
1057 basic_machine=vax-dec
1058 os=-vms
1059 ;;
1060 vpp*|vx|vx-*)
1061 basic_machine=f301-fujitsu
1062 ;;
1063 vxworks960)
1064 basic_machine=i960-wrs
1065 os=-vxworks
1066 ;;
1067 vxworks68)
1068 basic_machine=m68k-wrs
1069 os=-vxworks
1070 ;;
1071 vxworks29k)
1072 basic_machine=a29k-wrs
1073 os=-vxworks
1074 ;;
1075 w65*)
1076 basic_machine=w65-wdc
1077 os=-none
1078 ;;
1079 w89k-*)
1080 basic_machine=hppa1.1-winbond
1081 os=-proelf
1082 ;;
1083 xbox)
1084 basic_machine=i686-pc
1085 os=-mingw32
1086 ;;
1087 xps | xps100)
1088 basic_machine=xps100-honeywell
1089 ;;
1090 ymp)
1091 basic_machine=ymp-cray
1092 os=-unicos
1093 ;;
1094 z8k-*-coff)
1095 basic_machine=z8k-unknown
1096 os=-sim
1097 ;;
1098 none)
1099 basic_machine=none-none
1100 os=-none
1101 ;;
1102
1103 # Here we handle the default manufacturer of certain CPU types. It is in
1104 # some cases the only manufacturer, in others, it is the most popular.
1105 w89k)
1106 basic_machine=hppa1.1-winbond
1107 ;;
1108 op50n)
1109 basic_machine=hppa1.1-oki
1110 ;;
1111 op60c)
1112 basic_machine=hppa1.1-oki
1113 ;;
1114 romp)
1115 basic_machine=romp-ibm
1116 ;;
1117 mmix)
1118 basic_machine=mmix-knuth
1119 ;;
1120 rs6000)
1121 basic_machine=rs6000-ibm
1122 ;;
1123 vax)
1124 basic_machine=vax-dec
1125 ;;
1126 pdp10)
1127 # there are many clones, so DEC is not a safe bet
1128 basic_machine=pdp10-unknown
1129 ;;
1130 pdp11)
1131 basic_machine=pdp11-dec
1132 ;;
1133 we32k)
1134 basic_machine=we32k-att
1135 ;;
1136 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1137 basic_machine=sh-unknown
1138 ;;
1139 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1140 basic_machine=sparc-sun
1141 ;;
1142 cydra)
1143 basic_machine=cydra-cydrome
1144 ;;
1145 orion)
1146 basic_machine=orion-highlevel
1147 ;;
1148 orion105)
1149 basic_machine=clipper-highlevel
1150 ;;
1151 mac | mpw | mac-mpw)
1152 basic_machine=m68k-apple
1153 ;;
1154 pmac | pmac-mpw)
1155 basic_machine=powerpc-apple
1156 ;;
1157 *-unknown)
1158 # Make sure to match an already-canonicalized machine name.
1159 ;;
1160 *)
1161 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1162 exit 1
1163 ;;
1164 esac
1165
1166 # Here we canonicalize certain aliases for manufacturers.
1167 case $basic_machine in
1168 *-digital*)
1169 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1170 ;;
1171 *-commodore*)
1172 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1173 ;;
1174 *)
1175 ;;
1176 esac
1177
1178 # Decode manufacturer-specific aliases for certain operating systems.
1179
1180 if [ x"$os" != x"" ]
1181 then
1182 case $os in
1183 # First match some system type aliases
1184 # that might get confused with valid system types.
1185 # -solaris* is a basic system type, with this one exception.
1186 -solaris1 | -solaris1.*)
1187 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1188 ;;
1189 -solaris)
1190 os=-solaris2
1191 ;;
1192 -svr4*)
1193 os=-sysv4
1194 ;;
1195 -unixware*)
1196 os=-sysv4.2uw
1197 ;;
1198 -gnu/linux*)
1199 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1200 ;;
1201 # First accept the basic system types.
1202 # The portable systems comes first.
1203 # Each alternative MUST END IN A *, to match a version number.
1204 # -sysv* is not here because it comes later, after sysvr4.
1205 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1206 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1207 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1208 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1209 | -aos* \
1210 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1211 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1212 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1213 | -openbsd* | -solidbsd* \
1214 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1215 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1216 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1217 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1218 | -chorusos* | -chorusrdb* \
1219 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1220 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1221 | -uxpv* | -beos* | -mpeix* | -udk* \
1222 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1223 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1224 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1225 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1226 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1227 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1228 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1229 # Remember, each alternative MUST END IN *, to match a version number.
1230 ;;
1231 -qnx*)
1232 case $basic_machine in
1233 x86-* | i*86-*)
1234 ;;
1235 *)
1236 os=-nto$os
1237 ;;
1238 esac
1239 ;;
1240 -nto-qnx*)
1241 ;;
1242 -nto*)
1243 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1244 ;;
1245 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1246 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1247 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1248 ;;
1249 -mac*)
1250 os=`echo $os | sed -e 's|mac|macos|'`
1251 ;;
1252 -linux-dietlibc)
1253 os=-linux-dietlibc
1254 ;;
1255 -linux*)
1256 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1257 ;;
1258 -sunos5*)
1259 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1260 ;;
1261 -sunos6*)
1262 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1263 ;;
1264 -opened*)
1265 os=-openedition
1266 ;;
1267 -os400*)
1268 os=-os400
1269 ;;
1270 -wince*)
1271 os=-wince
1272 ;;
1273 -osfrose*)
1274 os=-osfrose
1275 ;;
1276 -osf*)
1277 os=-osf
1278 ;;
1279 -utek*)
1280 os=-bsd
1281 ;;
1282 -dynix*)
1283 os=-bsd
1284 ;;
1285 -acis*)
1286 os=-aos
1287 ;;
1288 -atheos*)
1289 os=-atheos
1290 ;;
1291 -syllable*)
1292 os=-syllable
1293 ;;
1294 -386bsd)
1295 os=-bsd
1296 ;;
1297 -ctix* | -uts*)
1298 os=-sysv
1299 ;;
1300 -nova*)
1301 os=-rtmk-nova
1302 ;;
1303 -ns2 )
1304 os=-nextstep2
1305 ;;
1306 -nsk*)
1307 os=-nsk
1308 ;;
1309 # Preserve the version number of sinix5.
1310 -sinix5.*)
1311 os=`echo $os | sed -e 's|sinix|sysv|'`
1312 ;;
1313 -sinix*)
1314 os=-sysv4
1315 ;;
1316 -tpf*)
1317 os=-tpf
1318 ;;
1319 -triton*)
1320 os=-sysv3
1321 ;;
1322 -oss*)
1323 os=-sysv3
1324 ;;
1325 -svr4)
1326 os=-sysv4
1327 ;;
1328 -svr3)
1329 os=-sysv3
1330 ;;
1331 -sysvr4)
1332 os=-sysv4
1333 ;;
1334 # This must come after -sysvr4.
1335 -sysv*)
1336 ;;
1337 -ose*)
1338 os=-ose
1339 ;;
1340 -es1800*)
1341 os=-ose
1342 ;;
1343 -xenix)
1344 os=-xenix
1345 ;;
1346 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1347 os=-mint
1348 ;;
1349 -aros*)
1350 os=-aros
1351 ;;
1352 -kaos*)
1353 os=-kaos
1354 ;;
1355 -zvmoe)
1356 os=-zvmoe
1357 ;;
1358 -none)
1359 ;;
1360 *)
1361 # Get rid of the `-' at the beginning of $os.
1362 os=`echo $os | sed 's/[^-]*-//'`
1363 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1364 exit 1
1365 ;;
1366 esac
1367 else
1368
1369 # Here we handle the default operating systems that come with various machines.
1370 # The value should be what the vendor currently ships out the door with their
1371 # machine or put another way, the most popular os provided with the machine.
1372
1373 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1374 # "-sun"), then you have to tell the case statement up towards the top
1375 # that MANUFACTURER isn't an operating system. Otherwise, code above
1376 # will signal an error saying that MANUFACTURER isn't an operating
1377 # system, and we'll never get to this point.
1378
1379 case $basic_machine in
1380 score-*)
1381 os=-elf
1382 ;;
1383 spu-*)
1384 os=-elf
1385 ;;
1386 *-acorn)
1387 os=-riscix1.2
1388 ;;
1389 arm*-rebel)
1390 os=-linux
1391 ;;
1392 arm*-semi)
1393 os=-aout
1394 ;;
1395 c4x-* | tic4x-*)
1396 os=-coff
1397 ;;
1398 # This must come before the *-dec entry.
1399 pdp10-*)
1400 os=-tops20
1401 ;;
1402 pdp11-*)
1403 os=-none
1404 ;;
1405 *-dec | vax-*)
1406 os=-ultrix4.2
1407 ;;
1408 m68*-apollo)
1409 os=-domain
1410 ;;
1411 i386-sun)
1412 os=-sunos4.0.2
1413 ;;
1414 m68000-sun)
1415 os=-sunos3
1416 # This also exists in the configure program, but was not the
1417 # default.
1418 # os=-sunos4
1419 ;;
1420 m68*-cisco)
1421 os=-aout
1422 ;;
1423 mep-*)
1424 os=-elf
1425 ;;
1426 mips*-cisco)
1427 os=-elf
1428 ;;
1429 mips*-*)
1430 os=-elf
1431 ;;
1432 or32-*)
1433 os=-coff
1434 ;;
1435 *-tti) # must be before sparc entry or we get the wrong os.
1436 os=-sysv3
1437 ;;
1438 sparc-* | *-sun)
1439 os=-sunos4.1.1
1440 ;;
1441 *-be)
1442 os=-beos
1443 ;;
1444 *-haiku)
1445 os=-haiku
1446 ;;
1447 *-ibm)
1448 os=-aix
1449 ;;
1450 *-knuth)
1451 os=-mmixware
1452 ;;
1453 *-wec)
1454 os=-proelf
1455 ;;
1456 *-winbond)
1457 os=-proelf
1458 ;;
1459 *-oki)
1460 os=-proelf
1461 ;;
1462 *-hp)
1463 os=-hpux
1464 ;;
1465 *-hitachi)
1466 os=-hiux
1467 ;;
1468 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1469 os=-sysv
1470 ;;
1471 *-cbm)
1472 os=-amigaos
1473 ;;
1474 *-dg)
1475 os=-dgux
1476 ;;
1477 *-dolphin)
1478 os=-sysv3
1479 ;;
1480 m68k-ccur)
1481 os=-rtu
1482 ;;
1483 m88k-omron*)
1484 os=-luna
1485 ;;
1486 *-next )
1487 os=-nextstep
1488 ;;
1489 *-sequent)
1490 os=-ptx
1491 ;;
1492 *-crds)
1493 os=-unos
1494 ;;
1495 *-ns)
1496 os=-genix
1497 ;;
1498 i370-*)
1499 os=-mvs
1500 ;;
1501 *-next)
1502 os=-nextstep3
1503 ;;
1504 *-gould)
1505 os=-sysv
1506 ;;
1507 *-highlevel)
1508 os=-bsd
1509 ;;
1510 *-encore)
1511 os=-bsd
1512 ;;
1513 *-sgi)
1514 os=-irix
1515 ;;
1516 *-siemens)
1517 os=-sysv4
1518 ;;
1519 *-masscomp)
1520 os=-rtu
1521 ;;
1522 f30[01]-fujitsu | f700-fujitsu)
1523 os=-uxpv
1524 ;;
1525 *-rom68k)
1526 os=-coff
1527 ;;
1528 *-*bug)
1529 os=-coff
1530 ;;
1531 *-apple)
1532 os=-macos
1533 ;;
1534 *-atari*)
1535 os=-mint
1536 ;;
1537 *)
1538 os=-none
1539 ;;
1540 esac
1541 fi
1542
1543 # Here we handle the case where we know the os, and the CPU type, but not the
1544 # manufacturer. We pick the logical manufacturer.
1545 vendor=unknown
1546 case $basic_machine in
1547 *-unknown)
1548 case $os in
1549 -riscix*)
1550 vendor=acorn
1551 ;;
1552 -sunos*)
1553 vendor=sun
1554 ;;
1555 -aix*)
1556 vendor=ibm
1557 ;;
1558 -beos*)
1559 vendor=be
1560 ;;
1561 -hpux*)
1562 vendor=hp
1563 ;;
1564 -mpeix*)
1565 vendor=hp
1566 ;;
1567 -hiux*)
1568 vendor=hitachi
1569 ;;
1570 -unos*)
1571 vendor=crds
1572 ;;
1573 -dgux*)
1574 vendor=dg
1575 ;;
1576 -luna*)
1577 vendor=omron
1578 ;;
1579 -genix*)
1580 vendor=ns
1581 ;;
1582 -mvs* | -opened*)
1583 vendor=ibm
1584 ;;
1585 -os400*)
1586 vendor=ibm
1587 ;;
1588 -ptx*)
1589 vendor=sequent
1590 ;;
1591 -tpf*)
1592 vendor=ibm
1593 ;;
1594 -vxsim* | -vxworks* | -windiss*)
1595 vendor=wrs
1596 ;;
1597 -aux*)
1598 vendor=apple
1599 ;;
1600 -hms*)
1601 vendor=hitachi
1602 ;;
1603 -mpw* | -macos*)
1604 vendor=apple
1605 ;;
1606 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1607 vendor=atari
1608 ;;
1609 -vos*)
1610 vendor=stratus
1611 ;;
1612 esac
1613 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1614 ;;
1615 esac
1616
1617 echo $basic_machine$os
1618 exit
1619
1620 # Local variables:
1621 # eval: (add-hook 'write-file-hooks 'time-stamp)
1622 # time-stamp-start: "timestamp='"
1623 # time-stamp-format: "%:y-%02m-%02d"
1624 # time-stamp-end: "'"
1625 # End:
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/hdate.h"
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 gt_needs=
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 VERSION_INFO
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 MAINTAINER_MODE_TRUE
830 MAINTAINER_MODE_FALSE
831 MAINT
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 LN_S
852 build
853 build_cpu
854 build_vendor
855 build_os
856 host
857 host_cpu
858 host_vendor
859 host_os
860 SED
861 ECHO
862 AR
863 RANLIB
864 CXX
865 CXXFLAGS
866 ac_ct_CXX
867 CXXDEPMODE
868 am__fastdepCXX_TRUE
869 am__fastdepCXX_FALSE
870 CXXCPP
871 F77
872 FFLAGS
873 ac_ct_F77
874 LIBTOOL
875 PKG_CONFIG
876 have_swig
877 have_pascal
878 PA_VERSION
879 PA_MODULES_PATH
880 WITH_PASCAL_TRUE
881 WITH_PASCAL_FALSE
882 have_python
883 PY_VERSION
884 PY_CFLAGS
885 PY_MODULES_PATH
886 WITH_PYTHON_TRUE
887 WITH_PYTHON_FALSE
888 have_perl
889 PE_CFLAGS
890 PE_MODULES_PATH
891 WITH_PERL_TRUE
892 WITH_PERL_FALSE
893 USE_NLS
894 GETTEXT_MACRO_VERSION
895 MSGFMT
896 GMSGFMT
897 MSGFMT_015
898 GMSGFMT_015
899 XGETTEXT
900 XGETTEXT_015
901 MSGMERGE
902 XGETTEXT_EXTRA_OPTIONS
903 INTL_MACOSX_LIBS
904 LIBICONV
905 LTLIBICONV
906 INTLLIBS
907 LIBINTL
908 LTLIBINTL
909 POSUB
910 DATADIRNAME
911 WITH_HCAL_TRUE
912 WITH_HCAL_FALSE
913 LIBOBJS
914 LTLIBOBJS'
915 ac_subst_files=''
916 ac_precious_vars='build_alias
917 host_alias
918 target_alias
919 CC
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
924 CPP
925 CXX
926 CXXFLAGS
927 CCC
928 CXXCPP
929 F77
930 FFLAGS'
931
932
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
938 cache_file=/dev/null
939 exec_prefix=NONE
940 no_create=
941 no_recursion=
942 prefix=NONE
943 program_prefix=NONE
944 program_suffix=NONE
945 program_transform_name=s,x,x,
946 silent=
947 site=
948 srcdir=
949 verbose=
950 x_includes=NONE
951 x_libraries=NONE
952
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE}'
970 infodir='${datarootdir}/info'
971 htmldir='${docdir}'
972 dvidir='${docdir}'
973 pdfdir='${docdir}'
974 psdir='${docdir}'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
978
979 ac_prev=
980 ac_dashdash=
981 for ac_option
982 do
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\$ac_option
986 ac_prev=
987 continue
988 fi
989
990 case $ac_option in
991 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 *) ac_optarg=yes ;;
993 esac
994
995 # Accept the important Cygnus configure options, so we can diagnose typos.
996
997 case $ac_dashdash$ac_option in
998 --)
999 ac_dashdash=yes ;;
1000
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002 ac_prev=bindir ;;
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1005
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1010
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1017
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1020
1021 -datadir | --datadir | --datadi | --datad)
1022 ac_prev=datadir ;;
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1025
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1032
1033 -disable-* | --disable-*)
1034 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_$ac_feature=no ;;
1041
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1046
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1051
1052 -enable-* | --enable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_$ac_feature=\$ac_optarg ;;
1060
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1069
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1073
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1080
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1085
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1091
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1098
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1103
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1108
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1115
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1120
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1127
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1132
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1136
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1140
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1144
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1153
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1158
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1165
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1172
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1189
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1194
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1199
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1203
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1209
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1220
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1225
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1230
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1237
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1242
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1245
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1248
1249 -with-* | --with-*)
1250 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=\$ac_optarg ;;
1257
1258 -without-* | --without-*)
1259 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid package name: $ac_package" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1265 eval with_$ac_package=no ;;
1266
1267 --x)
1268 # Obsolete; use --with-x.
1269 with_x=yes ;;
1270
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1277
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1284
1285 -*) { echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287 { (exit 1); exit 1; }; }
1288 ;;
1289
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295 { (exit 1); exit 1; }; }
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1298
1299 *)
1300 # FIXME: should be removed in autoconf 3.0.
1301 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1305 ;;
1306
1307 esac
1308 done
1309
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 { echo "$as_me: error: missing argument to $ac_option" >&2
1313 { (exit 1); exit 1; }; }
1314 fi
1315
1316 # Be sure to have absolute directory names.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1321 do
1322 eval ac_val=\$$ac_var
1323 case $ac_val in
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 esac
1327 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328 { (exit 1); exit 1; }; }
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used." >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1345 cross_compiling=yes
1346 fi
1347 fi
1348
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 { echo "$as_me: error: Working directory cannot be determined" >&2
1359 { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 { echo "$as_me: error: pwd does not report name of working directory" >&2
1362 { (exit 1); exit 1; }; }
1363
1364
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir=`$as_dirname -- "$0" ||
1370 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$0" : 'X\(//\)[^/]' \| \
1372 X"$0" : 'X\(//\)$' \| \
1373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1374 echo X"$0" |
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)[^/].*/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\).*/{
1388 s//\1/
1389 q
1390 }
1391 s/.*/./; q'`
1392 srcdir=$ac_confdir
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 srcdir=..
1395 fi
1396 else
1397 ac_srcdir_defaulted=no
1398 fi
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402 { (exit 1); exit 1; }; }
1403 fi
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1407 { (exit 1); exit 1; }; }
1408 pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 srcdir=.
1412 fi
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 done
1425
1426 #
1427 # Report the --help message.
1428 #
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1432 cat <<_ACEOF
1433 \`configure' configures this package to adapt to many kinds of systems.
1434
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1439
1440 Defaults for the options are specified in brackets.
1441
1442 Configuration:
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457 [PREFIX]
1458
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1463
1464 For better control, use the options below.
1465
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1486 _ACEOF
1487
1488 cat <<\_ACEOF
1489
1490 Program names:
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1494
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502
1503 cat <<\_ACEOF
1504
1505 Optional Features:
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-maintainer-mode enable make rules and dependencies not useful
1509 (and sometimes confusing) to the casual installer
1510 --disable-dependency-tracking speeds up one-time build
1511 --enable-dependency-tracking do not reject slow dependency extractors
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-static[=PKGS] build static libraries [default=yes]
1514 --enable-fast-install[=PKGS]
1515 optimize for fast installation [default=yes]
1516 --disable-libtool-lock avoid locking (might break parallel builds)
1517 --disable-pascal do not build pascal binding
1518 --disable-python do not build python binding
1519 --disable-perl do not build perl binding
1520 --disable-nls do not use Native Language Support
1521 --disable-rpath do not hardcode runtime library paths
1522 --disable-hcal do not build hcal/hdate utility programs
1523
1524 Optional Packages:
1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 --with-pic try to use only PIC/non-PIC objects [default=use
1529 both]
1530 --with-tags[=TAGS] include additional configurations [automatic]
1531 --with-python-sitelib-dir=PATH
1532 path to python site lib
1533 --with-perl-sitelib-dir=PATH
1534 path to perl site lib
1535 --with-gnu-ld assume the C compiler uses GNU ld default=no
1536 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1537 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1538 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1539 --without-libintl-prefix don't search for libintl in includedir and libdir
1540
1541 Some influential environment variables:
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
1546 LIBS libraries to pass to the linker, e.g. -l<library>
1547 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548 you have headers in a nonstandard directory <include dir>
1549 CPP C preprocessor
1550 CXX C++ compiler command
1551 CXXFLAGS C++ compiler flags
1552 CXXCPP C++ preprocessor
1553 F77 Fortran 77 compiler command
1554 FFLAGS Fortran 77 compiler flags
1555
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1558
1559 _ACEOF
1560 ac_status=$?
1561 fi
1562
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" || continue
1567 ac_builddir=.
1568
1569 case "$ac_dir" in
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *)
1572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578 esac ;;
1579 esac
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1584
1585 case $srcdir in
1586 .) # We are building in place.
1587 ac_srcdir=.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1594 *) # Relative name.
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 esac
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for guested configure.
1603 if test -f "$ac_srcdir/configure.gnu"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606 elif test -f "$ac_srcdir/configure"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure" --help=recursive
1609 else
1610 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611 fi || ac_status=$?
1612 cd "$ac_pwd" || { ac_status=$?; break; }
1613 done
1614 fi
1615
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1618 cat <<\_ACEOF
1619 configure
1620 generated by GNU Autoconf 2.61
1621
1622 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1623 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1626 _ACEOF
1627 exit
1628 fi
1629 cat >config.log <<_ACEOF
1630 This file contains any messages produced by compilers while
1631 running configure, to aid debugging if configure makes a mistake.
1632
1633 It was created by $as_me, which was
1634 generated by GNU Autoconf 2.61. Invocation command line was
1635
1636 $ $0 $@
1637
1638 _ACEOF
1639 exec 5>>config.log
1640 {
1641 cat <<_ASUNAME
1642 ## --------- ##
1643 ## Platform. ##
1644 ## --------- ##
1645
1646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1647 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1648 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1649 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1650 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1651
1652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1653 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1654
1655 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1656 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1658 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1659 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1660 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1661 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1662
1663 _ASUNAME
1664
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 echo "PATH: $as_dir"
1671 done
1672 IFS=$as_save_IFS
1673
1674 } >&5
1675
1676 cat >&5 <<_ACEOF
1677
1678
1679 ## ----------- ##
1680 ## Core tests. ##
1681 ## ----------- ##
1682
1683 _ACEOF
1684
1685
1686 # Keep a trace of the command line.
1687 # Strip out --no-create and --no-recursion so they do not pile up.
1688 # Strip out --silent because we don't want to record it for future runs.
1689 # Also quote any args containing shell meta-characters.
1690 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_configure_args=
1692 ac_configure_args0=
1693 ac_configure_args1=
1694 ac_must_keep_next=false
1695 for ac_pass in 1 2
1696 do
1697 for ac_arg
1698 do
1699 case $ac_arg in
1700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702 | -silent | --silent | --silen | --sile | --sil)
1703 continue ;;
1704 *\'*)
1705 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1706 esac
1707 case $ac_pass in
1708 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1709 2)
1710 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1711 if test $ac_must_keep_next = true; then
1712 ac_must_keep_next=false # Got value, back to normal.
1713 else
1714 case $ac_arg in
1715 *=* | --config-cache | -C | -disable-* | --disable-* \
1716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718 | -with-* | --with-* | -without-* | --without-* | --x)
1719 case "$ac_configure_args0 " in
1720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1721 esac
1722 ;;
1723 -* ) ac_must_keep_next=true ;;
1724 esac
1725 fi
1726 ac_configure_args="$ac_configure_args '$ac_arg'"
1727 ;;
1728 esac
1729 done
1730 done
1731 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1732 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1733
1734 # When interrupted or exit'd, cleanup temporary files, and complete
1735 # config.log. We remove comments because anyway the quotes in there
1736 # would cause problems or look ugly.
1737 # WARNING: Use '\'' to represent an apostrophe within the trap.
1738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1739 trap 'exit_status=$?
1740 # Save into config.log some information that might help in debugging.
1741 {
1742 echo
1743
1744 cat <<\_ASBOX
1745 ## ---------------- ##
1746 ## Cache variables. ##
1747 ## ---------------- ##
1748 _ASBOX
1749 echo
1750 # The following way of writing the cache mishandles newlines in values,
1751 (
1752 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1753 eval ac_val=\$$ac_var
1754 case $ac_val in #(
1755 *${as_nl}*)
1756 case $ac_var in #(
1757 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1758 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1759 esac
1760 case $ac_var in #(
1761 _ | IFS | as_nl) ;; #(
1762 *) $as_unset $ac_var ;;
1763 esac ;;
1764 esac
1765 done
1766 (set) 2>&1 |
1767 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1768 *${as_nl}ac_space=\ *)
1769 sed -n \
1770 "s/'\''/'\''\\\\'\'''\''/g;
1771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1772 ;; #(
1773 *)
1774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1775 ;;
1776 esac |
1777 sort
1778 )
1779 echo
1780
1781 cat <<\_ASBOX
1782 ## ----------------- ##
1783 ## Output variables. ##
1784 ## ----------------- ##
1785 _ASBOX
1786 echo
1787 for ac_var in $ac_subst_vars
1788 do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792 esac
1793 echo "$ac_var='\''$ac_val'\''"
1794 done | sort
1795 echo
1796
1797 if test -n "$ac_subst_files"; then
1798 cat <<\_ASBOX
1799 ## ------------------- ##
1800 ## File substitutions. ##
1801 ## ------------------- ##
1802 _ASBOX
1803 echo
1804 for ac_var in $ac_subst_files
1805 do
1806 eval ac_val=\$$ac_var
1807 case $ac_val in
1808 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 esac
1810 echo "$ac_var='\''$ac_val'\''"
1811 done | sort
1812 echo
1813 fi
1814
1815 if test -s confdefs.h; then
1816 cat <<\_ASBOX
1817 ## ----------- ##
1818 ## confdefs.h. ##
1819 ## ----------- ##
1820 _ASBOX
1821 echo
1822 cat confdefs.h
1823 echo
1824 fi
1825 test "$ac_signal" != 0 &&
1826 echo "$as_me: caught signal $ac_signal"
1827 echo "$as_me: exit $exit_status"
1828 } >&5
1829 rm -f core *.core core.conftest.* &&
1830 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1831 exit $exit_status
1832 ' 0
1833 for ac_signal in 1 2 13 15; do
1834 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1835 done
1836 ac_signal=0
1837
1838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1839 rm -f -r conftest* confdefs.h
1840
1841 # Predefined preprocessor variables.
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_NAME "$PACKAGE_NAME"
1845 _ACEOF
1846
1847
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1850 _ACEOF
1851
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1855 _ACEOF
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_STRING "$PACKAGE_STRING"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1865 _ACEOF
1866
1867
1868 # Let the site file select an alternate cache file if it wants to.
1869 # Prefer explicitly selected file to automatically selected ones.
1870 if test -n "$CONFIG_SITE"; then
1871 set x "$CONFIG_SITE"
1872 elif test "x$prefix" != xNONE; then
1873 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1874 else
1875 set x "$ac_default_prefix/share/config.site" \
1876 "$ac_default_prefix/etc/config.site"
1877 fi
1878 shift
1879 for ac_site_file
1880 do
1881 if test -r "$ac_site_file"; then
1882 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1883 echo "$as_me: loading site script $ac_site_file" >&6;}
1884 sed 's/^/| /' "$ac_site_file" >&5
1885 . "$ac_site_file"
1886 fi
1887 done
1888
1889 if test -r "$cache_file"; then
1890 # Some versions of bash will fail to source /dev/null (special
1891 # files actually), so we avoid doing that.
1892 if test -f "$cache_file"; then
1893 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1894 echo "$as_me: loading cache $cache_file" >&6;}
1895 case $cache_file in
1896 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1897 *) . "./$cache_file";;
1898 esac
1899 fi
1900 else
1901 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1902 echo "$as_me: creating cache $cache_file" >&6;}
1903 >$cache_file
1904 fi
1905
1906 gt_needs="$gt_needs "
1907 # Check that the precious variables saved in the cache have kept the same
1908 # value.
1909 ac_cache_corrupted=false
1910 for ac_var in $ac_precious_vars; do
1911 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1912 eval ac_new_set=\$ac_env_${ac_var}_set
1913 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1914 eval ac_new_val=\$ac_env_${ac_var}_value
1915 case $ac_old_set,$ac_new_set in
1916 set,)
1917 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1919 ac_cache_corrupted=: ;;
1920 ,set)
1921 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1922 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1923 ac_cache_corrupted=: ;;
1924 ,);;
1925 *)
1926 if test "x$ac_old_val" != "x$ac_new_val"; then
1927 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1928 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1929 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1930 echo "$as_me: former value: $ac_old_val" >&2;}
1931 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1932 echo "$as_me: current value: $ac_new_val" >&2;}
1933 ac_cache_corrupted=:
1934 fi;;
1935 esac
1936 # Pass precious variables to config.status.
1937 if test "$ac_new_set" = set; then
1938 case $ac_new_val in
1939 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 *) ac_arg=$ac_var=$ac_new_val ;;
1941 esac
1942 case " $ac_configure_args " in
1943 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1944 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1945 esac
1946 fi
1947 done
1948 if $ac_cache_corrupted; then
1949 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1953 { (exit 1); exit 1; }; }
1954 fi
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972 ac_ext=c
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1977
1978
1979
1980 PACKAGE=libhdate
1981 LIBHDATE_MAJOR_VERSION=1
1982 LIBHDATE_MINOR_VERSION=4
1983 LIBHDATE_MICRO_VERSION=10
1984
1985 VERSION=$LIBHDATE_MAJOR_VERSION.$LIBHDATE_MINOR_VERSION.$LIBHDATE_MICRO_VERSION
1986
1987 VERSION_INFO=$LIBHDATE_MAJOR_VERSION:$LIBHDATE_MINOR_VERSION:0
1988
1989
1990
1991 am__api_version="1.9"
1992 ac_aux_dir=
1993 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1994 if test -f "$ac_dir/install-sh"; then
1995 ac_aux_dir=$ac_dir
1996 ac_install_sh="$ac_aux_dir/install-sh -c"
1997 break
1998 elif test -f "$ac_dir/install.sh"; then
1999 ac_aux_dir=$ac_dir
2000 ac_install_sh="$ac_aux_dir/install.sh -c"
2001 break
2002 elif test -f "$ac_dir/shtool"; then
2003 ac_aux_dir=$ac_dir
2004 ac_install_sh="$ac_aux_dir/shtool install -c"
2005 break
2006 fi
2007 done
2008 if test -z "$ac_aux_dir"; then
2009 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2010 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2011 { (exit 1); exit 1; }; }
2012 fi
2013
2014 # These three variables are undocumented and unsupported,
2015 # and are intended to be withdrawn in a future Autoconf release.
2016 # They can cause serious problems if a builder's source tree is in a directory
2017 # whose full name contains unusual characters.
2018 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2019 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2020 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2021
2022
2023 # Find a good install program. We prefer a C program (faster),
2024 # so one script is as good as another. But avoid the broken or
2025 # incompatible versions:
2026 # SysV /etc/install, /usr/sbin/install
2027 # SunOS /usr/etc/install
2028 # IRIX /sbin/install
2029 # AIX /bin/install
2030 # AmigaOS /C/install, which installs bootblocks on floppy discs
2031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2034 # OS/2's system install, which has a completely different semantic
2035 # ./install, which can be erroneously created by make from ./install.sh.
2036 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2038 if test -z "$INSTALL"; then
2039 if test "${ac_cv_path_install+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 # Account for people who put trailing slashes in PATH elements.
2048 case $as_dir/ in
2049 ./ | .// | /cC/* | \
2050 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2051 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2052 /usr/ucb/* ) ;;
2053 *)
2054 # OSF1 and SCO ODT 3.0 have their own names for install.
2055 # Don't use installbsd from OSF since it installs stuff as root
2056 # by default.
2057 for ac_prog in ginstall scoinst install; do
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2060 if test $ac_prog = install &&
2061 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2062 # AIX install. It has an incompatible calling convention.
2063 :
2064 elif test $ac_prog = install &&
2065 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2066 # program-specific install script used by HP pwplus--don't use.
2067 :
2068 else
2069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2070 break 3
2071 fi
2072 fi
2073 done
2074 done
2075 ;;
2076 esac
2077 done
2078 IFS=$as_save_IFS
2079
2080
2081 fi
2082 if test "${ac_cv_path_install+set}" = set; then
2083 INSTALL=$ac_cv_path_install
2084 else
2085 # As a last resort, use the slow shell script. Don't cache a
2086 # value for INSTALL within a source directory, because that will
2087 # break other packages using the cache if that directory is
2088 # removed, or if the value is a relative name.
2089 INSTALL=$ac_install_sh
2090 fi
2091 fi
2092 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2093 echo "${ECHO_T}$INSTALL" >&6; }
2094
2095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2096 # It thinks the first close brace ends the variable substitution.
2097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2098
2099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2100
2101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2102
2103 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2104 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2105 # Just in case
2106 sleep 1
2107 echo timestamp > conftest.file
2108 # Do `set' in a subshell so we don't clobber the current shell's
2109 # arguments. Must try -L first in case configure is actually a
2110 # symlink; some systems play weird games with the mod time of symlinks
2111 # (eg FreeBSD returns the mod time of the symlink's containing
2112 # directory).
2113 if (
2114 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2115 if test "$*" = "X"; then
2116 # -L didn't work.
2117 set X `ls -t $srcdir/configure conftest.file`
2118 fi
2119 rm -f conftest.file
2120 if test "$*" != "X $srcdir/configure conftest.file" \
2121 && test "$*" != "X conftest.file $srcdir/configure"; then
2122
2123 # If neither matched, then we have a broken ls. This can happen
2124 # if, for instance, CONFIG_SHELL is bash and it inherits a
2125 # broken ls alias from the environment. This has actually
2126 # happened. Such a system could not be considered "sane".
2127 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2128 alias in your environment" >&5
2129 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2130 alias in your environment" >&2;}
2131 { (exit 1); exit 1; }; }
2132 fi
2133
2134 test "$2" = conftest.file
2135 )
2136 then
2137 # Ok.
2138 :
2139 else
2140 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2141 Check your system clock" >&5
2142 echo "$as_me: error: newly created file is older than distributed files!
2143 Check your system clock" >&2;}
2144 { (exit 1); exit 1; }; }
2145 fi
2146 { echo "$as_me:$LINENO: result: yes" >&5
2147 echo "${ECHO_T}yes" >&6; }
2148 test "$program_prefix" != NONE &&
2149 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2150 # Use a double $ so make ignores it.
2151 test "$program_suffix" != NONE &&
2152 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2153 # Double any \ or $. echo might interpret backslashes.
2154 # By default was `s,x,x', remove it if useless.
2155 cat <<\_ACEOF >conftest.sed
2156 s/[\\$]/&&/g;s/;s,x,x,$//
2157 _ACEOF
2158 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2159 rm -f conftest.sed
2160
2161 # expand $ac_aux_dir to an absolute path
2162 am_aux_dir=`cd $ac_aux_dir && pwd`
2163
2164 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2165 # Use eval to expand $SHELL
2166 if eval "$MISSING --run true"; then
2167 am_missing_run="$MISSING --run "
2168 else
2169 am_missing_run=
2170 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2171 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2172 fi
2173
2174 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2175 # We used to keeping the `.' as first argument, in order to
2176 # allow $(mkdir_p) to be used without argument. As in
2177 # $(mkdir_p) $(somedir)
2178 # where $(somedir) is conditionally defined. However this is wrong
2179 # for two reasons:
2180 # 1. if the package is installed by a user who cannot write `.'
2181 # make install will fail,
2182 # 2. the above comment should most certainly read
2183 # $(mkdir_p) $(DESTDIR)$(somedir)
2184 # so it does not work when $(somedir) is undefined and
2185 # $(DESTDIR) is not.
2186 # To support the latter case, we have to write
2187 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2188 # so the `.' trick is pointless.
2189 mkdir_p='mkdir -p --'
2190 else
2191 # On NextStep and OpenStep, the `mkdir' command does not
2192 # recognize any option. It will interpret all options as
2193 # directories to create, and then abort because `.' already
2194 # exists.
2195 for d in ./-p ./--version;
2196 do
2197 test -d $d && rmdir $d
2198 done
2199 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2200 if test -f "$ac_aux_dir/mkinstalldirs"; then
2201 mkdir_p='$(mkinstalldirs)'
2202 else
2203 mkdir_p='$(install_sh) -d'
2204 fi
2205 fi
2206
2207 for ac_prog in gawk mawk nawk awk
2208 do
2209 # Extract the first word of "$ac_prog", so it can be a program name with args.
2210 set dummy $ac_prog; ac_word=$2
2211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2213 if test "${ac_cv_prog_AWK+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 if test -n "$AWK"; then
2217 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2218 else
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2221 do
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226 ac_cv_prog_AWK="$ac_prog"
2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 break 2
2229 fi
2230 done
2231 done
2232 IFS=$as_save_IFS
2233
2234 fi
2235 fi
2236 AWK=$ac_cv_prog_AWK
2237 if test -n "$AWK"; then
2238 { echo "$as_me:$LINENO: result: $AWK" >&5
2239 echo "${ECHO_T}$AWK" >&6; }
2240 else
2241 { echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6; }
2243 fi
2244
2245
2246 test -n "$AWK" && break
2247 done
2248
2249 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2250 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2251 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2252 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255 cat >conftest.make <<\_ACEOF
2256 SHELL = /bin/sh
2257 all:
2258 @echo '@@@%%%=$(MAKE)=@@@%%%'
2259 _ACEOF
2260 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2261 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2262 *@@@%%%=?*=@@@%%%*)
2263 eval ac_cv_prog_make_${ac_make}_set=yes;;
2264 *)
2265 eval ac_cv_prog_make_${ac_make}_set=no;;
2266 esac
2267 rm -f conftest.make
2268 fi
2269 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2270 { echo "$as_me:$LINENO: result: yes" >&5
2271 echo "${ECHO_T}yes" >&6; }
2272 SET_MAKE=
2273 else
2274 { echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6; }
2276 SET_MAKE="MAKE=${MAKE-make}"
2277 fi
2278
2279 rm -rf .tst 2>/dev/null
2280 mkdir .tst 2>/dev/null
2281 if test -d .tst; then
2282 am__leading_dot=.
2283 else
2284 am__leading_dot=_
2285 fi
2286 rmdir .tst 2>/dev/null
2287
2288 # test to see if srcdir already configured
2289 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2290 test -f $srcdir/config.status; then
2291 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2292 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2293 { (exit 1); exit 1; }; }
2294 fi
2295
2296 # test whether we have cygpath
2297 if test -z "$CYGPATH_W"; then
2298 if (cygpath --version) >/dev/null 2>/dev/null; then
2299 CYGPATH_W='cygpath -w'
2300 else
2301 CYGPATH_W=echo
2302 fi
2303 fi
2304
2305
2306 # Define the identity of the package.
2307 PACKAGE=$PACKAGE
2308 VERSION=$VERSION
2309
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE "$PACKAGE"
2313 _ACEOF
2314
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define VERSION "$VERSION"
2318 _ACEOF
2319
2320 # Some tools Automake needs.
2321
2322 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2323
2324
2325 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2326
2327
2328 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2329
2330
2331 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2332
2333
2334 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2335
2336 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2337
2338 # Installed binaries are usually stripped using `strip' when the user
2339 # run `make install-strip'. However `strip' might not be the right
2340 # tool to use in cross-compilation environments, therefore Automake
2341 # will honor the `STRIP' environment variable to overrule this program.
2342 if test "$cross_compiling" != no; then
2343 if test -n "$ac_tool_prefix"; then
2344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2345 set dummy ${ac_tool_prefix}strip; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_STRIP+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 if test -n "$STRIP"; then
2352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365 done
2366 done
2367 IFS=$as_save_IFS
2368
2369 fi
2370 fi
2371 STRIP=$ac_cv_prog_STRIP
2372 if test -n "$STRIP"; then
2373 { echo "$as_me:$LINENO: result: $STRIP" >&5
2374 echo "${ECHO_T}$STRIP" >&6; }
2375 else
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2378 fi
2379
2380
2381 fi
2382 if test -z "$ac_cv_prog_STRIP"; then
2383 ac_ct_STRIP=$STRIP
2384 # Extract the first word of "strip", so it can be a program name with args.
2385 set dummy strip; ac_word=$2
2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391 if test -n "$ac_ct_STRIP"; then
2392 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 ac_cv_prog_ac_ct_STRIP="strip"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2404 fi
2405 done
2406 done
2407 IFS=$as_save_IFS
2408
2409 fi
2410 fi
2411 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2412 if test -n "$ac_ct_STRIP"; then
2413 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2414 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2415 else
2416 { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2418 fi
2419
2420 if test "x$ac_ct_STRIP" = x; then
2421 STRIP=":"
2422 else
2423 case $cross_compiling:$ac_tool_warned in
2424 yes:)
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2432 esac
2433 STRIP=$ac_ct_STRIP
2434 fi
2435 else
2436 STRIP="$ac_cv_prog_STRIP"
2437 fi
2438
2439 fi
2440 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2441
2442 # We need awk for the "check" target. The system "awk" is bad on
2443 # some platforms.
2444 # Always define AMTAR for backward compatibility.
2445
2446 AMTAR=${AMTAR-"${am_missing_run}tar"}
2447
2448 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2449
2450
2451
2452
2453
2454 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2455 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2456 # Check whether --enable-maintainer-mode was given.
2457 if test "${enable_maintainer_mode+set}" = set; then
2458 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2459 else
2460 USE_MAINTAINER_MODE=no
2461 fi
2462
2463 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2464 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2465
2466
2467 if test $USE_MAINTAINER_MODE = yes; then
2468 MAINTAINER_MODE_TRUE=
2469 MAINTAINER_MODE_FALSE='#'
2470 else
2471 MAINTAINER_MODE_TRUE='#'
2472 MAINTAINER_MODE_FALSE=
2473 fi
2474
2475 MAINT=$MAINTAINER_MODE_TRUE
2476
2477
2478
2479 DEPDIR="${am__leading_dot}deps"
2480
2481 ac_config_commands="$ac_config_commands depfiles"
2482
2483
2484 am_make=${MAKE-make}
2485 cat > confinc << 'END'
2486 am__doit:
2487 @echo done
2488 .PHONY: am__doit
2489 END
2490 # If we don't find an include directive, just comment out the code.
2491 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2492 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2493 am__include="#"
2494 am__quote=
2495 _am_result=none
2496 # First try GNU make style include.
2497 echo "include confinc" > confmf
2498 # We grep out `Entering directory' and `Leaving directory'
2499 # messages which can occur if `w' ends up in MAKEFLAGS.
2500 # In particular we don't look at `^make:' because GNU make might
2501 # be invoked under some other name (usually "gmake"), in which
2502 # case it prints its new name instead of `make'.
2503 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2504 am__include=include
2505 am__quote=
2506 _am_result=GNU
2507 fi
2508 # Now try BSD make style include.
2509 if test "$am__include" = "#"; then
2510 echo '.include "confinc"' > confmf
2511 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2512 am__include=.include
2513 am__quote="\""
2514 _am_result=BSD
2515 fi
2516 fi
2517
2518
2519 { echo "$as_me:$LINENO: result: $_am_result" >&5
2520 echo "${ECHO_T}$_am_result" >&6; }
2521 rm -f confinc confmf
2522
2523 # Check whether --enable-dependency-tracking was given.
2524 if test "${enable_dependency_tracking+set}" = set; then
2525 enableval=$enable_dependency_tracking;
2526 fi
2527
2528 if test "x$enable_dependency_tracking" != xno; then
2529 am_depcomp="$ac_aux_dir/depcomp"
2530 AMDEPBACKSLASH='\'
2531 fi
2532
2533
2534 if test "x$enable_dependency_tracking" != xno; then
2535 AMDEP_TRUE=
2536 AMDEP_FALSE='#'
2537 else
2538 AMDEP_TRUE='#'
2539 AMDEP_FALSE=
2540 fi
2541
2542
2543
2544 ac_ext=c
2545 ac_cpp='$CPP $CPPFLAGS'
2546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549 if test -n "$ac_tool_prefix"; then
2550 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2551 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571 done
2572 done
2573 IFS=$as_save_IFS
2574
2575 fi
2576 fi
2577 CC=$ac_cv_prog_CC
2578 if test -n "$CC"; then
2579 { echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6; }
2581 else
2582 { echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6; }
2584 fi
2585
2586
2587 fi
2588 if test -z "$ac_cv_prog_CC"; then
2589 ac_ct_CC=$CC
2590 # Extract the first word of "gcc", so it can be a program name with args.
2591 set dummy gcc; ac_word=$2
2592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597 if test -n "$ac_ct_CC"; then
2598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_ac_ct_CC="gcc"
2608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611 done
2612 done
2613 IFS=$as_save_IFS
2614
2615 fi
2616 fi
2617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2618 if test -n "$ac_ct_CC"; then
2619 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2620 echo "${ECHO_T}$ac_ct_CC" >&6; }
2621 else
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2624 fi
2625
2626 if test "x$ac_ct_CC" = x; then
2627 CC=""
2628 else
2629 case $cross_compiling:$ac_tool_warned in
2630 yes:)
2631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2632 whose name does not start with the host triplet. If you think this
2633 configuration is useful to you, please write to autoconf@gnu.org." >&5
2634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2635 whose name does not start with the host triplet. If you think this
2636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2637 ac_tool_warned=yes ;;
2638 esac
2639 CC=$ac_ct_CC
2640 fi
2641 else
2642 CC="$ac_cv_prog_CC"
2643 fi
2644
2645 if test -z "$CC"; then
2646 if test -n "$ac_tool_prefix"; then
2647 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2648 set dummy ${ac_tool_prefix}cc; ac_word=$2
2649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2651 if test "${ac_cv_prog_CC+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654 if test -n "$CC"; then
2655 ac_cv_prog_CC="$CC" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_CC="${ac_tool_prefix}cc"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 CC=$ac_cv_prog_CC
2675 if test -n "$CC"; then
2676 { echo "$as_me:$LINENO: result: $CC" >&5
2677 echo "${ECHO_T}$CC" >&6; }
2678 else
2679 { echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6; }
2681 fi
2682
2683
2684 fi
2685 fi
2686 if test -z "$CC"; then
2687 # Extract the first word of "cc", so it can be a program name with args.
2688 set dummy cc; ac_word=$2
2689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2691 if test "${ac_cv_prog_CC+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694 if test -n "$CC"; then
2695 ac_cv_prog_CC="$CC" # Let the user override the test.
2696 else
2697 ac_prog_rejected=no
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2706 ac_prog_rejected=yes
2707 continue
2708 fi
2709 ac_cv_prog_CC="cc"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 if test $ac_prog_rejected = yes; then
2718 # We found a bogon in the path, so make sure we never use it.
2719 set dummy $ac_cv_prog_CC
2720 shift
2721 if test $# != 0; then
2722 # We chose a different compiler from the bogus one.
2723 # However, it has the same basename, so the bogon will be chosen
2724 # first if we set CC to just the basename; use the full file name.
2725 shift
2726 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2727 fi
2728 fi
2729 fi
2730 fi
2731 CC=$ac_cv_prog_CC
2732 if test -n "$CC"; then
2733 { echo "$as_me:$LINENO: result: $CC" >&5
2734 echo "${ECHO_T}$CC" >&6; }
2735 else
2736 { echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6; }
2738 fi
2739
2740
2741 fi
2742 if test -z "$CC"; then
2743 if test -n "$ac_tool_prefix"; then
2744 for ac_prog in cl.exe
2745 do
2746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_CC+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775 { echo "$as_me:$LINENO: result: $CC" >&5
2776 echo "${ECHO_T}$CC" >&6; }
2777 else
2778 { echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6; }
2780 fi
2781
2782
2783 test -n "$CC" && break
2784 done
2785 fi
2786 if test -z "$CC"; then
2787 ac_ct_CC=$CC
2788 for ac_prog in cl.exe
2789 do
2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy $ac_prog; ac_word=$2
2792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_ac_ct_CC="$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818 if test -n "$ac_ct_CC"; then
2819 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2820 echo "${ECHO_T}$ac_ct_CC" >&6; }
2821 else
2822 { echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6; }
2824 fi
2825
2826
2827 test -n "$ac_ct_CC" && break
2828 done
2829
2830 if test "x$ac_ct_CC" = x; then
2831 CC=""
2832 else
2833 case $cross_compiling:$ac_tool_warned in
2834 yes:)
2835 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2836 whose name does not start with the host triplet. If you think this
2837 configuration is useful to you, please write to autoconf@gnu.org." >&5
2838 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2839 whose name does not start with the host triplet. If you think this
2840 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2841 ac_tool_warned=yes ;;
2842 esac
2843 CC=$ac_ct_CC
2844 fi
2845 fi
2846
2847 fi
2848
2849
2850 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: no acceptable C compiler found in \$PATH
2853 See \`config.log' for more details." >&2;}
2854 { (exit 1); exit 1; }; }
2855
2856 # Provide some information about the compiler.
2857 echo "$as_me:$LINENO: checking for C compiler version" >&5
2858 ac_compiler=`set X $ac_compile; echo $2`
2859 { (ac_try="$ac_compiler --version >&5"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_compiler --version >&5") 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }
2869 { (ac_try="$ac_compiler -v >&5"
2870 case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873 esac
2874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875 (eval "$ac_compiler -v >&5") 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }
2879 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }
2889
2890 cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h. */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2896
2897 int
2898 main ()
2899 {
2900
2901 ;
2902 return 0;
2903 }
2904 _ACEOF
2905 ac_clean_files_save=$ac_clean_files
2906 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2907 # Try to create an executable without -o first, disregard a.out.
2908 # It will help us diagnose broken compilers, and finding out an intuition
2909 # of exeext.
2910 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2911 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2912 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2913 #
2914 # List of possible output files, starting from the most likely.
2915 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2916 # only as a last resort. b.out is created by i960 compilers.
2917 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2918 #
2919 # The IRIX 6 linker writes into existing files which may not be
2920 # executable, retaining their permissions. Remove them first so a
2921 # subsequent execution test works.
2922 ac_rmfiles=
2923 for ac_file in $ac_files
2924 do
2925 case $ac_file in
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2927 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2928 esac
2929 done
2930 rm -f $ac_rmfiles
2931
2932 if { (ac_try="$ac_link_default"
2933 case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_link_default") 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; then
2942 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2943 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2944 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2945 # so that the user can short-circuit this test for compilers unknown to
2946 # Autoconf.
2947 for ac_file in $ac_files ''
2948 do
2949 test -f "$ac_file" || continue
2950 case $ac_file in
2951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2952 ;;
2953 [ab].out )
2954 # We found the default executable, but exeext='' is most
2955 # certainly right.
2956 break;;
2957 *.* )
2958 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2959 then :; else
2960 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2961 fi
2962 # We set ac_cv_exeext here because the later test for it is not
2963 # safe: cross compilers may not add the suffix if given an `-o'
2964 # argument, so we may need to know it at that point already.
2965 # Even if this section looks crufty: it has the advantage of
2966 # actually working.
2967 break;;
2968 * )
2969 break;;
2970 esac
2971 done
2972 test "$ac_cv_exeext" = no && ac_cv_exeext=
2973
2974 else
2975 ac_file=''
2976 fi
2977
2978 { echo "$as_me:$LINENO: result: $ac_file" >&5
2979 echo "${ECHO_T}$ac_file" >&6; }
2980 if test -z "$ac_file"; then
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2985 See \`config.log' for more details." >&5
2986 echo "$as_me: error: C compiler cannot create executables
2987 See \`config.log' for more details." >&2;}
2988 { (exit 77); exit 77; }; }
2989 fi
2990
2991 ac_exeext=$ac_cv_exeext
2992
2993 # Check that the compiler produces executables we can run. If not, either
2994 # the compiler is broken, or we cross compile.
2995 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2996 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2997 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2998 # If not cross compiling, check that we can run a simple program.
2999 if test "$cross_compiling" != yes; then
3000 if { ac_try='./$ac_file'
3001 { (case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_try") 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3010 cross_compiling=no
3011 else
3012 if test "$cross_compiling" = maybe; then
3013 cross_compiling=yes
3014 else
3015 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3016 If you meant to cross compile, use \`--host'.
3017 See \`config.log' for more details." >&5
3018 echo "$as_me: error: cannot run C compiled programs.
3019 If you meant to cross compile, use \`--host'.
3020 See \`config.log' for more details." >&2;}
3021 { (exit 1); exit 1; }; }
3022 fi
3023 fi
3024 fi
3025 { echo "$as_me:$LINENO: result: yes" >&5
3026 echo "${ECHO_T}yes" >&6; }
3027
3028 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3029 ac_clean_files=$ac_clean_files_save
3030 # Check that the compiler produces executables we can run. If not, either
3031 # the compiler is broken, or we cross compile.
3032 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3034 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3035 echo "${ECHO_T}$cross_compiling" >&6; }
3036
3037 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3039 if { (ac_try="$ac_link"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_link") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; then
3049 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3050 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3051 # work properly (i.e., refer to `conftest.exe'), while it won't with
3052 # `rm'.
3053 for ac_file in conftest.exe conftest conftest.*; do
3054 test -f "$ac_file" || continue
3055 case $ac_file in
3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3058 break;;
3059 * ) break;;
3060 esac
3061 done
3062 else
3063 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3064 See \`config.log' for more details." >&5
3065 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3066 See \`config.log' for more details." >&2;}
3067 { (exit 1); exit 1; }; }
3068 fi
3069
3070 rm -f conftest$ac_cv_exeext
3071 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3072 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3073
3074 rm -f conftest.$ac_ext
3075 EXEEXT=$ac_cv_exeext
3076 ac_exeext=$EXEEXT
3077 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3078 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3079 if test "${ac_cv_objext+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082 cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h. */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088
3089 int
3090 main ()
3091 {
3092
3093 ;
3094 return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.o conftest.obj
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; then
3108 for ac_file in conftest.o conftest.obj conftest.*; do
3109 test -f "$ac_file" || continue;
3110 case $ac_file in
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3113 break;;
3114 esac
3115 done
3116 else
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3121 See \`config.log' for more details." >&5
3122 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3123 See \`config.log' for more details." >&2;}
3124 { (exit 1); exit 1; }; }
3125 fi
3126
3127 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3128 fi
3129 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3130 echo "${ECHO_T}$ac_cv_objext" >&6; }
3131 OBJEXT=$ac_cv_objext
3132 ac_objext=$OBJEXT
3133 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3134 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3135 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138 cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h. */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3144
3145 int
3146 main ()
3147 {
3148 #ifndef __GNUC__
3149 choke me
3150 #endif
3151
3152 ;
3153 return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (ac_try="$ac_compile"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_compile") 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } && {
3170 test -z "$ac_c_werror_flag" ||
3171 test ! -s conftest.err
3172 } && test -s conftest.$ac_objext; then
3173 ac_compiler_gnu=yes
3174 else
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 ac_compiler_gnu=no
3179 fi
3180
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3183
3184 fi
3185 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3186 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3187 GCC=`test $ac_compiler_gnu = yes && echo yes`
3188 ac_test_CFLAGS=${CFLAGS+set}
3189 ac_save_CFLAGS=$CFLAGS
3190 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3191 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3192 if test "${ac_cv_prog_cc_g+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 ac_save_c_werror_flag=$ac_c_werror_flag
3196 ac_c_werror_flag=yes
3197 ac_cv_prog_cc_g=no
3198 CFLAGS="-g"
3199 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3205
3206 int
3207 main ()
3208 {
3209
3210 ;
3211 return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } && {
3228 test -z "$ac_c_werror_flag" ||
3229 test ! -s conftest.err
3230 } && test -s conftest.$ac_objext; then
3231 ac_cv_prog_cc_g=yes
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236 CFLAGS=""
3237 cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h. */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3243
3244 int
3245 main ()
3246 {
3247
3248 ;
3249 return 0;
3250 }
3251 _ACEOF
3252 rm -f conftest.$ac_objext
3253 if { (ac_try="$ac_compile"
3254 case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_compile") 2>conftest.er1
3260 ac_status=$?
3261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } && {
3266 test -z "$ac_c_werror_flag" ||
3267 test ! -s conftest.err
3268 } && test -s conftest.$ac_objext; then
3269 :
3270 else
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 ac_c_werror_flag=$ac_save_c_werror_flag
3275 CFLAGS="-g"
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282
3283 int
3284 main ()
3285 {
3286
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_compile") 2>conftest.er1
3299 ac_status=$?
3300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } && {
3305 test -z "$ac_c_werror_flag" ||
3306 test ! -s conftest.err
3307 } && test -s conftest.$ac_objext; then
3308 ac_cv_prog_cc_g=yes
3309 else
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313
3314 fi
3315
3316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317 fi
3318
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320 fi
3321
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 ac_c_werror_flag=$ac_save_c_werror_flag
3324 fi
3325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3326 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3327 if test "$ac_test_CFLAGS" = set; then
3328 CFLAGS=$ac_save_CFLAGS
3329 elif test $ac_cv_prog_cc_g = yes; then
3330 if test "$GCC" = yes; then
3331 CFLAGS="-g -O2"
3332 else
3333 CFLAGS="-g"
3334 fi
3335 else
3336 if test "$GCC" = yes; then
3337 CFLAGS="-O2"
3338 else
3339 CFLAGS=
3340 fi
3341 fi
3342 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3343 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3344 if test "${ac_cv_prog_cc_c89+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347 ac_cv_prog_cc_c89=no
3348 ac_save_CC=$CC
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355 #include <stdarg.h>
3356 #include <stdio.h>
3357 #include <sys/types.h>
3358 #include <sys/stat.h>
3359 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3360 struct buf { int x; };
3361 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3362 static char *e (p, i)
3363 char **p;
3364 int i;
3365 {
3366 return p[i];
3367 }
3368 static char *f (char * (*g) (char **, int), char **p, ...)
3369 {
3370 char *s;
3371 va_list v;
3372 va_start (v,p);
3373 s = g (p, va_arg (v,int));
3374 va_end (v);
3375 return s;
3376 }
3377
3378 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3379 function prototypes and stuff, but not '\xHH' hex character constants.
3380 These don't provoke an error unfortunately, instead are silently treated
3381 as 'x'. The following induces an error, until -std is added to get
3382 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3383 array size at least. It's necessary to write '\x00'==0 to get something
3384 that's true only with -std. */
3385 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3386
3387 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3388 inside strings and character constants. */
3389 #define FOO(x) 'x'
3390 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3391
3392 int test (int i, double x);
3393 struct s1 {int (*f) (int a);};
3394 struct s2 {int (*f) (double a);};
3395 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3396 int argc;
3397 char **argv;
3398 int
3399 main ()
3400 {
3401 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3407 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3408 do
3409 CC="$ac_save_CC $ac_arg"
3410 rm -f conftest.$ac_objext
3411 if { (ac_try="$ac_compile"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_compile") 2>conftest.er1
3418 ac_status=$?
3419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } && {
3424 test -z "$ac_c_werror_flag" ||
3425 test ! -s conftest.err
3426 } && test -s conftest.$ac_objext; then
3427 ac_cv_prog_cc_c89=$ac_arg
3428 else
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432
3433 fi
3434
3435 rm -f core conftest.err conftest.$ac_objext
3436 test "x$ac_cv_prog_cc_c89" != "xno" && break
3437 done
3438 rm -f conftest.$ac_ext
3439 CC=$ac_save_CC
3440
3441 fi
3442 # AC_CACHE_VAL
3443 case "x$ac_cv_prog_cc_c89" in
3444 x)
3445 { echo "$as_me:$LINENO: result: none needed" >&5
3446 echo "${ECHO_T}none needed" >&6; } ;;
3447 xno)
3448 { echo "$as_me:$LINENO: result: unsupported" >&5
3449 echo "${ECHO_T}unsupported" >&6; } ;;
3450 *)
3451 CC="$CC $ac_cv_prog_cc_c89"
3452 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3453 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3454 esac
3455
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463 depcc="$CC" am_compiler_list=
3464
3465 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3466 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3467 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3471 # We make a subdir and do the tests there. Otherwise we can end up
3472 # making bogus files that we don't know about and never remove. For
3473 # instance it was reported that on HP-UX the gcc test will end up
3474 # making a dummy file named `D' -- because `-MD' means `put the output
3475 # in D'.
3476 mkdir conftest.dir
3477 # Copy depcomp to subdir because otherwise we won't find it if we're
3478 # using a relative directory.
3479 cp "$am_depcomp" conftest.dir
3480 cd conftest.dir
3481 # We will build objects and dependencies in a subdirectory because
3482 # it helps to detect inapplicable dependency modes. For instance
3483 # both Tru64's cc and ICC support -MD to output dependencies as a
3484 # side effect of compilation, but ICC will put the dependencies in
3485 # the current directory while Tru64 will put them in the object
3486 # directory.
3487 mkdir sub
3488
3489 am_cv_CC_dependencies_compiler_type=none
3490 if test "$am_compiler_list" = ""; then
3491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3492 fi
3493 for depmode in $am_compiler_list; do
3494 # Setup a source with many dependencies, because some compilers
3495 # like to wrap large dependency lists on column 80 (with \), and
3496 # we should not choose a depcomp mode which is confused by this.
3497 #
3498 # We need to recreate these files for each test, as the compiler may
3499 # overwrite some of them when testing with obscure command lines.
3500 # This happens at least with the AIX C compiler.
3501 : > sub/conftest.c
3502 for i in 1 2 3 4 5 6; do
3503 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3504 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3505 # Solaris 8's {/usr,}/bin/sh.
3506 touch sub/conftst$i.h
3507 done
3508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3509
3510 case $depmode in
3511 nosideeffect)
3512 # after this tag, mechanisms are not by side-effect, so they'll
3513 # only be used when explicitly requested
3514 if test "x$enable_dependency_tracking" = xyes; then
3515 continue
3516 else
3517 break
3518 fi
3519 ;;
3520 none) break ;;
3521 esac
3522 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3523 # mode. It turns out that the SunPro C++ compiler does not properly
3524 # handle `-M -o', and we need to detect this.
3525 if depmode=$depmode \
3526 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3528 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3529 >/dev/null 2>conftest.err &&
3530 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3531 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3532 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3533 # icc doesn't choke on unknown options, it will just issue warnings
3534 # or remarks (even with -Werror). So we grep stderr for any message
3535 # that says an option was ignored or not supported.
3536 # When given -MP, icc 7.0 and 7.1 complain thusly:
3537 # icc: Command line warning: ignoring option '-M'; no argument required
3538 # The diagnosis changed in icc 8.0:
3539 # icc: Command line remark: option '-MP' not supported
3540 if (grep 'ignoring option' conftest.err ||
3541 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3542 am_cv_CC_dependencies_compiler_type=$depmode
3543 break
3544 fi
3545 fi
3546 done
3547
3548 cd ..
3549 rm -rf conftest.dir
3550 else
3551 am_cv_CC_dependencies_compiler_type=none
3552 fi
3553
3554 fi
3555 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3556 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3557 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3558
3559
3560
3561 if
3562 test "x$enable_dependency_tracking" != xno \
3563 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3564 am__fastdepCC_TRUE=
3565 am__fastdepCC_FALSE='#'
3566 else
3567 am__fastdepCC_TRUE='#'
3568 am__fastdepCC_FALSE=
3569 fi
3570
3571
3572
3573 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3574 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3575 if test "${ac_cv_search_strerror+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578 ac_func_search_save_LIBS=$LIBS
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585
3586 /* Override any GCC internal prototype to avoid an error.
3587 Use char because int might match the return type of a GCC
3588 builtin and then its argument prototype would still apply. */
3589 #ifdef __cplusplus
3590 extern "C"
3591 #endif
3592 char strerror ();
3593 int
3594 main ()
3595 {
3596 return strerror ();
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 for ac_lib in '' cposix; do
3602 if test -z "$ac_lib"; then
3603 ac_res="none required"
3604 else
3605 ac_res=-l$ac_lib
3606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3607 fi
3608 rm -f conftest.$ac_objext conftest$ac_exeext
3609 if { (ac_try="$ac_link"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_link") 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && {
3622 test -z "$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3624 } && test -s conftest$ac_exeext &&
3625 $as_test_x conftest$ac_exeext; then
3626 ac_cv_search_strerror=$ac_res
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631
3632 fi
3633
3634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3635 conftest$ac_exeext
3636 if test "${ac_cv_search_strerror+set}" = set; then
3637 break
3638 fi
3639 done
3640 if test "${ac_cv_search_strerror+set}" = set; then
3641 :
3642 else
3643 ac_cv_search_strerror=no
3644 fi
3645 rm conftest.$ac_ext
3646 LIBS=$ac_func_search_save_LIBS
3647 fi
3648 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3649 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3650 ac_res=$ac_cv_search_strerror
3651 if test "$ac_res" != no; then
3652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3653
3654 fi
3655
3656
3657 cat >>confdefs.h <<\_ACEOF
3658 #define _GNU_SOURCE 1
3659 _ACEOF
3660
3661
3662 ac_ext=c
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3668 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3669 # On Suns, sometimes $CPP names a directory.
3670 if test -n "$CPP" && test -d "$CPP"; then
3671 CPP=
3672 fi
3673 if test -z "$CPP"; then
3674 if test "${ac_cv_prog_CPP+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 # Double quotes because CPP needs to be expanded
3678 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3679 do
3680 ac_preproc_ok=false
3681 for ac_c_preproc_warn_flag in '' yes
3682 do
3683 # Use a header file that comes with gcc, so configuring glibc
3684 # with a fresh cross-compiler works.
3685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3686 # <limits.h> exists even on freestanding compilers.
3687 # On the NeXT, cc -E runs the code through the compiler's parser,
3688 # not just through cpp. "Syntax error" is here to catch this case.
3689 cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h. */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #ifdef __STDC__
3696 # include <limits.h>
3697 #else
3698 # include <assert.h>
3699 #endif
3700 Syntax error
3701 _ACEOF
3702 if { (ac_try="$ac_cpp conftest.$ac_ext"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } >/dev/null && {
3715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 }; then
3718 :
3719 else
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 # Broken: fails on valid input.
3724 continue
3725 fi
3726
3727 rm -f conftest.err conftest.$ac_ext
3728
3729 # OK, works on sane cases. Now check whether nonexistent headers
3730 # can be detected and how.
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3738 _ACEOF
3739 if { (ac_try="$ac_cpp conftest.$ac_ext"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } >/dev/null && {
3752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3753 test ! -s conftest.err
3754 }; then
3755 # Broken: success on invalid input.
3756 continue
3757 else
3758 echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 # Passes both tests.
3762 ac_preproc_ok=:
3763 break
3764 fi
3765
3766 rm -f conftest.err conftest.$ac_ext
3767
3768 done
3769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3770 rm -f conftest.err conftest.$ac_ext
3771 if $ac_preproc_ok; then
3772 break
3773 fi
3774
3775 done
3776 ac_cv_prog_CPP=$CPP
3777
3778 fi
3779 CPP=$ac_cv_prog_CPP
3780 else
3781 ac_cv_prog_CPP=$CPP
3782 fi
3783 { echo "$as_me:$LINENO: result: $CPP" >&5
3784 echo "${ECHO_T}$CPP" >&6; }
3785 ac_preproc_ok=false
3786 for ac_c_preproc_warn_flag in '' yes
3787 do
3788 # Use a header file that comes with gcc, so configuring glibc
3789 # with a fresh cross-compiler works.
3790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791 # <limits.h> exists even on freestanding compilers.
3792 # On the NeXT, cc -E runs the code through the compiler's parser,
3793 # not just through cpp. "Syntax error" is here to catch this case.
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 #ifdef __STDC__
3801 # include <limits.h>
3802 #else
3803 # include <assert.h>
3804 #endif
3805 Syntax error
3806 _ACEOF
3807 if { (ac_try="$ac_cpp conftest.$ac_ext"
3808 case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811 esac
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null && {
3820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3821 test ! -s conftest.err
3822 }; then
3823 :
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3827
3828 # Broken: fails on valid input.
3829 continue
3830 fi
3831
3832 rm -f conftest.err conftest.$ac_ext
3833
3834 # OK, works on sane cases. Now check whether nonexistent headers
3835 # can be detected and how.
3836 cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h. */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842 #include <ac_nonexistent.h>
3843 _ACEOF
3844 if { (ac_try="$ac_cpp conftest.$ac_ext"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev/null && {
3857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 }; then
3860 # Broken: success on invalid input.
3861 continue
3862 else
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866 # Passes both tests.
3867 ac_preproc_ok=:
3868 break
3869 fi
3870
3871 rm -f conftest.err conftest.$ac_ext
3872
3873 done
3874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875 rm -f conftest.err conftest.$ac_ext
3876 if $ac_preproc_ok; then
3877 :
3878 else
3879 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3880 See \`config.log' for more details." >&5
3881 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3882 See \`config.log' for more details." >&2;}
3883 { (exit 1); exit 1; }; }
3884 fi
3885
3886 ac_ext=c
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891
3892
3893 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3894 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3895 if test "${ac_cv_path_GREP+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898 # Extract the first word of "grep ggrep" to use in msg output
3899 if test -z "$GREP"; then
3900 set dummy grep ggrep; ac_prog_name=$2
3901 if test "${ac_cv_path_GREP+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 ac_path_GREP_found=false
3905 # Loop through the user's path and test for each of PROGNAME-LIST
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_prog in grep ggrep; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3914 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3915 # Check for GNU ac_path_GREP and select it if it is found.
3916 # Check for GNU $ac_path_GREP
3917 case `"$ac_path_GREP" --version 2>&1` in
3918 *GNU*)
3919 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3920 *)
3921 ac_count=0
3922 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3923 while :
3924 do
3925 cat "conftest.in" "conftest.in" >"conftest.tmp"
3926 mv "conftest.tmp" "conftest.in"
3927 cp "conftest.in" "conftest.nl"
3928 echo 'GREP' >> "conftest.nl"
3929 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931 ac_count=`expr $ac_count + 1`
3932 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3933 # Best one so far, save it but keep looking for a better one
3934 ac_cv_path_GREP="$ac_path_GREP"
3935 ac_path_GREP_max=$ac_count
3936 fi
3937 # 10*(2^10) chars as input seems more than enough
3938 test $ac_count -gt 10 && break
3939 done
3940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 esac
3942
3943
3944 $ac_path_GREP_found && break 3
3945 done
3946 done
3947
3948 done
3949 IFS=$as_save_IFS
3950
3951
3952 fi
3953
3954 GREP="$ac_cv_path_GREP"
3955 if test -z "$GREP"; then
3956 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3957 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3958 { (exit 1); exit 1; }; }
3959 fi
3960
3961 else
3962 ac_cv_path_GREP=$GREP
3963 fi
3964
3965
3966 fi
3967 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3968 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3969 GREP="$ac_cv_path_GREP"
3970
3971
3972 { echo "$as_me:$LINENO: checking for egrep" >&5
3973 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_EGREP+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3978 then ac_cv_path_EGREP="$GREP -E"
3979 else
3980 # Extract the first word of "egrep" to use in msg output
3981 if test -z "$EGREP"; then
3982 set dummy egrep; ac_prog_name=$2
3983 if test "${ac_cv_path_EGREP+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 ac_path_EGREP_found=false
3987 # Loop through the user's path and test for each of PROGNAME-LIST
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_prog in egrep; do
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3996 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3997 # Check for GNU ac_path_EGREP and select it if it is found.
3998 # Check for GNU $ac_path_EGREP
3999 case `"$ac_path_EGREP" --version 2>&1` in
4000 *GNU*)
4001 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4002 *)
4003 ac_count=0
4004 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4005 while :
4006 do
4007 cat "conftest.in" "conftest.in" >"conftest.tmp"
4008 mv "conftest.tmp" "conftest.in"
4009 cp "conftest.in" "conftest.nl"
4010 echo 'EGREP' >> "conftest.nl"
4011 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013 ac_count=`expr $ac_count + 1`
4014 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4015 # Best one so far, save it but keep looking for a better one
4016 ac_cv_path_EGREP="$ac_path_EGREP"
4017 ac_path_EGREP_max=$ac_count
4018 fi
4019 # 10*(2^10) chars as input seems more than enough
4020 test $ac_count -gt 10 && break
4021 done
4022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023 esac
4024
4025
4026 $ac_path_EGREP_found && break 3
4027 done
4028 done
4029
4030 done
4031 IFS=$as_save_IFS
4032
4033
4034 fi
4035
4036 EGREP="$ac_cv_path_EGREP"
4037 if test -z "$EGREP"; then
4038 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4039 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4040 { (exit 1); exit 1; }; }
4041 fi
4042
4043 else
4044 ac_cv_path_EGREP=$EGREP
4045 fi
4046
4047
4048 fi
4049 fi
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4052 EGREP="$ac_cv_path_EGREP"
4053
4054
4055
4056 { echo "$as_me:$LINENO: checking for AIX" >&5
4057 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4058 cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h. */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 #ifdef _AIX
4065 yes
4066 #endif
4067
4068 _ACEOF
4069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4070 $EGREP "yes" >/dev/null 2>&1; then
4071 { echo "$as_me:$LINENO: result: yes" >&5
4072 echo "${ECHO_T}yes" >&6; }
4073 cat >>confdefs.h <<\_ACEOF
4074 #define _ALL_SOURCE 1
4075 _ACEOF
4076
4077 else
4078 { echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6; }
4080 fi
4081 rm -f conftest*
4082
4083
4084 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4085 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4086 if test "${ac_cv_header_stdc+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 #include <stdlib.h>
4096 #include <stdarg.h>
4097 #include <string.h>
4098 #include <float.h>
4099
4100 int
4101 main ()
4102 {
4103
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 rm -f conftest.$ac_objext
4109 if { (ac_try="$ac_compile"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_compile") 2>conftest.er1
4116 ac_status=$?
4117 grep -v '^ *+' conftest.er1 >conftest.err
4118 rm -f conftest.er1
4119 cat conftest.err >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } && {
4122 test -z "$ac_c_werror_flag" ||
4123 test ! -s conftest.err
4124 } && test -s conftest.$ac_objext; then
4125 ac_cv_header_stdc=yes
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 ac_cv_header_stdc=no
4131 fi
4132
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134
4135 if test $ac_cv_header_stdc = yes; then
4136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <string.h>
4144
4145 _ACEOF
4146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147 $EGREP "memchr" >/dev/null 2>&1; then
4148 :
4149 else
4150 ac_cv_header_stdc=no
4151 fi
4152 rm -f conftest*
4153
4154 fi
4155
4156 if test $ac_cv_header_stdc = yes; then
4157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h. */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4164 #include <stdlib.h>
4165
4166 _ACEOF
4167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4168 $EGREP "free" >/dev/null 2>&1; then
4169 :
4170 else
4171 ac_cv_header_stdc=no
4172 fi
4173 rm -f conftest*
4174
4175 fi
4176
4177 if test $ac_cv_header_stdc = yes; then
4178 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4179 if test "$cross_compiling" = yes; then
4180 :
4181 else
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #include <ctype.h>
4189 #include <stdlib.h>
4190 #if ((' ' & 0x0FF) == 0x020)
4191 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4192 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4193 #else
4194 # define ISLOWER(c) \
4195 (('a' <= (c) && (c) <= 'i') \
4196 || ('j' <= (c) && (c) <= 'r') \
4197 || ('s' <= (c) && (c) <= 'z'))
4198 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4199 #endif
4200
4201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4202 int
4203 main ()
4204 {
4205 int i;
4206 for (i = 0; i < 256; i++)
4207 if (XOR (islower (i), ISLOWER (i))
4208 || toupper (i) != TOUPPER (i))
4209 return 2;
4210 return 0;
4211 }
4212 _ACEOF
4213 rm -f conftest$ac_exeext
4214 if { (ac_try="$ac_link"
4215 case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4218 esac
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_link") 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4224 { (case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227 esac
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_try") 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4233 :
4234 else
4235 echo "$as_me: program exited with status $ac_status" >&5
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 ( exit $ac_status )
4240 ac_cv_header_stdc=no
4241 fi
4242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4243 fi
4244
4245
4246 fi
4247 fi
4248 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4249 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4250 if test $ac_cv_header_stdc = yes; then
4251
4252 cat >>confdefs.h <<\_ACEOF
4253 #define STDC_HEADERS 1
4254 _ACEOF
4255
4256 fi
4257
4258 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4269 inttypes.h stdint.h unistd.h
4270 do
4271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277 cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h. */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 $ac_includes_default
4284
4285 #include <$ac_header>
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (ac_try="$ac_compile"
4289 case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_compile") 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && {
4301 test -z "$ac_c_werror_flag" ||
4302 test ! -s conftest.err
4303 } && test -s conftest.$ac_objext; then
4304 eval "$as_ac_Header=yes"
4305 else
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309 eval "$as_ac_Header=no"
4310 fi
4311
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 ac_res=`eval echo '${'$as_ac_Header'}'`
4315 { echo "$as_me:$LINENO: result: $ac_res" >&5
4316 echo "${ECHO_T}$ac_res" >&6; }
4317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4318 cat >>confdefs.h <<_ACEOF
4319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4320 _ACEOF
4321
4322 fi
4323
4324 done
4325
4326
4327 if test "${ac_cv_header_minix_config_h+set}" = set; then
4328 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4329 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4330 if test "${ac_cv_header_minix_config_h+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 fi
4333 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4334 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4335 else
4336 # Is the header compilable?
4337 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4338 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4346 #include <minix/config.h>
4347 _ACEOF
4348 rm -f conftest.$ac_objext
4349 if { (ac_try="$ac_compile"
4350 case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353 esac
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_compile") 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } && {
4362 test -z "$ac_c_werror_flag" ||
4363 test ! -s conftest.err
4364 } && test -s conftest.$ac_objext; then
4365 ac_header_compiler=yes
4366 else
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 ac_header_compiler=no
4371 fi
4372
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4375 echo "${ECHO_T}$ac_header_compiler" >&6; }
4376
4377 # Is the header present?
4378 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4379 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 #include <minix/config.h>
4387 _ACEOF
4388 if { (ac_try="$ac_cpp conftest.$ac_ext"
4389 case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } >/dev/null && {
4401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 }; then
4404 ac_header_preproc=yes
4405 else
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 ac_header_preproc=no
4410 fi
4411
4412 rm -f conftest.err conftest.$ac_ext
4413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4414 echo "${ECHO_T}$ac_header_preproc" >&6; }
4415
4416 # So? What about this header?
4417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4418 yes:no: )
4419 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4420 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4421 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4422 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4423 ac_header_preproc=yes
4424 ;;
4425 no:yes:* )
4426 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4427 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4428 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4429 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4430 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4431 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4432 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4433 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4434 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4435 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4436 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4437 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4438
4439 ;;
4440 esac
4441 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4442 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4443 if test "${ac_cv_header_minix_config_h+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 ac_cv_header_minix_config_h=$ac_header_preproc
4447 fi
4448 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4449 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4450
4451 fi
4452 if test $ac_cv_header_minix_config_h = yes; then
4453 MINIX=yes
4454 else
4455 MINIX=
4456 fi
4457
4458
4459 if test "$MINIX" = yes; then
4460
4461 cat >>confdefs.h <<\_ACEOF
4462 #define _POSIX_SOURCE 1
4463 _ACEOF
4464
4465
4466 cat >>confdefs.h <<\_ACEOF
4467 #define _POSIX_1_SOURCE 2
4468 _ACEOF
4469
4470
4471 cat >>confdefs.h <<\_ACEOF
4472 #define _MINIX 1
4473 _ACEOF
4474
4475 fi
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4488 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4489 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h. */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498
4499 # define __EXTENSIONS__ 1
4500 $ac_includes_default
4501 int
4502 main ()
4503 {
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (ac_try="$ac_compile"
4511 case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514 esac
4515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4516 (eval "$ac_compile") 2>conftest.er1
4517 ac_status=$?
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } && {
4523 test -z "$ac_c_werror_flag" ||
4524 test ! -s conftest.err
4525 } && test -s conftest.$ac_objext; then
4526 ac_cv_safe_to_define___extensions__=yes
4527 else
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 ac_cv_safe_to_define___extensions__=no
4532 fi
4533
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 fi
4536 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4537 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4538 test $ac_cv_safe_to_define___extensions__ = yes &&
4539 cat >>confdefs.h <<\_ACEOF
4540 #define __EXTENSIONS__ 1
4541 _ACEOF
4542
4543 cat >>confdefs.h <<\_ACEOF
4544 #define _POSIX_PTHREAD_SEMANTICS 1
4545 _ACEOF
4546
4547 cat >>confdefs.h <<\_ACEOF
4548 #define _TANDEM_SOURCE 1
4549 _ACEOF
4550
4551
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557 if test -n "$ac_tool_prefix"; then
4558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_prog_CC+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 if test -n "$CC"; then
4566 ac_cv_prog_CC="$CC" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579 done
4580 done
4581 IFS=$as_save_IFS
4582
4583 fi
4584 fi
4585 CC=$ac_cv_prog_CC
4586 if test -n "$CC"; then
4587 { echo "$as_me:$LINENO: result: $CC" >&5
4588 echo "${ECHO_T}$CC" >&6; }
4589 else
4590 { echo "$as_me:$LINENO: result: no" >&5
4591 echo "${ECHO_T}no" >&6; }
4592 fi
4593
4594
4595 fi
4596 if test -z "$ac_cv_prog_CC"; then
4597 ac_ct_CC=$CC
4598 # Extract the first word of "gcc", so it can be a program name with args.
4599 set dummy gcc; ac_word=$2
4600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if test -n "$ac_ct_CC"; then
4606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 ac_cv_prog_ac_ct_CC="gcc"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4622
4623 fi
4624 fi
4625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4626 if test -n "$ac_ct_CC"; then
4627 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4628 echo "${ECHO_T}$ac_ct_CC" >&6; }
4629 else
4630 { echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6; }
4632 fi
4633
4634 if test "x$ac_ct_CC" = x; then
4635 CC=""
4636 else
4637 case $cross_compiling:$ac_tool_warned in
4638 yes:)
4639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4640 whose name does not start with the host triplet. If you think this
4641 configuration is useful to you, please write to autoconf@gnu.org." >&5
4642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4643 whose name does not start with the host triplet. If you think this
4644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4645 ac_tool_warned=yes ;;
4646 esac
4647 CC=$ac_ct_CC
4648 fi
4649 else
4650 CC="$ac_cv_prog_CC"
4651 fi
4652
4653 if test -z "$CC"; then
4654 if test -n "$ac_tool_prefix"; then
4655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4656 set dummy ${ac_tool_prefix}cc; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_CC+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 if test -n "$CC"; then
4663 ac_cv_prog_CC="$CC" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_CC="${ac_tool_prefix}cc"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680 fi
4681 fi
4682 CC=$ac_cv_prog_CC
4683 if test -n "$CC"; then
4684 { echo "$as_me:$LINENO: result: $CC" >&5
4685 echo "${ECHO_T}$CC" >&6; }
4686 else
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4689 fi
4690
4691
4692 fi
4693 fi
4694 if test -z "$CC"; then
4695 # Extract the first word of "cc", so it can be a program name with args.
4696 set dummy cc; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_prog_CC+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 if test -n "$CC"; then
4703 ac_cv_prog_CC="$CC" # Let the user override the test.
4704 else
4705 ac_prog_rejected=no
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4714 ac_prog_rejected=yes
4715 continue
4716 fi
4717 ac_cv_prog_CC="cc"
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721 done
4722 done
4723 IFS=$as_save_IFS
4724
4725 if test $ac_prog_rejected = yes; then
4726 # We found a bogon in the path, so make sure we never use it.
4727 set dummy $ac_cv_prog_CC
4728 shift
4729 if test $# != 0; then
4730 # We chose a different compiler from the bogus one.
4731 # However, it has the same basename, so the bogon will be chosen
4732 # first if we set CC to just the basename; use the full file name.
4733 shift
4734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4735 fi
4736 fi
4737 fi
4738 fi
4739 CC=$ac_cv_prog_CC
4740 if test -n "$CC"; then
4741 { echo "$as_me:$LINENO: result: $CC" >&5
4742 echo "${ECHO_T}$CC" >&6; }
4743 else
4744 { echo "$as_me:$LINENO: result: no" >&5
4745 echo "${ECHO_T}no" >&6; }
4746 fi
4747
4748
4749 fi
4750 if test -z "$CC"; then
4751 if test -n "$ac_tool_prefix"; then
4752 for ac_prog in cl.exe
4753 do
4754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4758 if test "${ac_cv_prog_CC+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 if test -n "$CC"; then
4762 ac_cv_prog_CC="$CC" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775 done
4776 done
4777 IFS=$as_save_IFS
4778
4779 fi
4780 fi
4781 CC=$ac_cv_prog_CC
4782 if test -n "$CC"; then
4783 { echo "$as_me:$LINENO: result: $CC" >&5
4784 echo "${ECHO_T}$CC" >&6; }
4785 else
4786 { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4788 fi
4789
4790
4791 test -n "$CC" && break
4792 done
4793 fi
4794 if test -z "$CC"; then
4795 ac_ct_CC=$CC
4796 for ac_prog in cl.exe
4797 do
4798 # Extract the first word of "$ac_prog", so it can be a program name with args.
4799 set dummy $ac_prog; ac_word=$2
4800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 if test -n "$ac_ct_CC"; then
4806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815 ac_cv_prog_ac_ct_CC="$ac_prog"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4818 fi
4819 done
4820 done
4821 IFS=$as_save_IFS
4822
4823 fi
4824 fi
4825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4826 if test -n "$ac_ct_CC"; then
4827 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4828 echo "${ECHO_T}$ac_ct_CC" >&6; }
4829 else
4830 { echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6; }
4832 fi
4833
4834
4835 test -n "$ac_ct_CC" && break
4836 done
4837
4838 if test "x$ac_ct_CC" = x; then
4839 CC=""
4840 else
4841 case $cross_compiling:$ac_tool_warned in
4842 yes:)
4843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4844 whose name does not start with the host triplet. If you think this
4845 configuration is useful to you, please write to autoconf@gnu.org." >&5
4846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4847 whose name does not start with the host triplet. If you think this
4848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4849 ac_tool_warned=yes ;;
4850 esac
4851 CC=$ac_ct_CC
4852 fi
4853 fi
4854
4855 fi
4856
4857
4858 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4859 See \`config.log' for more details." >&5
4860 echo "$as_me: error: no acceptable C compiler found in \$PATH
4861 See \`config.log' for more details." >&2;}
4862 { (exit 1); exit 1; }; }
4863
4864 # Provide some information about the compiler.
4865 echo "$as_me:$LINENO: checking for C compiler version" >&5
4866 ac_compiler=`set X $ac_compile; echo $2`
4867 { (ac_try="$ac_compiler --version >&5"
4868 case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_compiler --version >&5") 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }
4877 { (ac_try="$ac_compiler -v >&5"
4878 case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881 esac
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_compiler -v >&5") 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }
4887 { (ac_try="$ac_compiler -V >&5"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_compiler -V >&5") 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }
4897
4898 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4899 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903 cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909
4910 int
4911 main ()
4912 {
4913 #ifndef __GNUC__
4914 choke me
4915 #endif
4916
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (ac_try="$ac_compile"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928 (eval "$ac_compile") 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } && {
4935 test -z "$ac_c_werror_flag" ||
4936 test ! -s conftest.err
4937 } && test -s conftest.$ac_objext; then
4938 ac_compiler_gnu=yes
4939 else
4940 echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4942
4943 ac_compiler_gnu=no
4944 fi
4945
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4948
4949 fi
4950 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4951 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4952 GCC=`test $ac_compiler_gnu = yes && echo yes`
4953 ac_test_CFLAGS=${CFLAGS+set}
4954 ac_save_CFLAGS=$CFLAGS
4955 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4956 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4957 if test "${ac_cv_prog_cc_g+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960 ac_save_c_werror_flag=$ac_c_werror_flag
4961 ac_c_werror_flag=yes
4962 ac_cv_prog_cc_g=no
4963 CFLAGS="-g"
4964 cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h. */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970
4971 int
4972 main ()
4973 {
4974
4975 ;
4976 return 0;
4977 }
4978 _ACEOF
4979 rm -f conftest.$ac_objext
4980 if { (ac_try="$ac_compile"
4981 case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_compile") 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
4996 ac_cv_prog_cc_g=yes
4997 else
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 CFLAGS=""
5002 cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h. */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008
5009 int
5010 main ()
5011 {
5012
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 rm -f conftest.$ac_objext
5018 if { (ac_try="$ac_compile"
5019 case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022 esac
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_compile") 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } && {
5031 test -z "$ac_c_werror_flag" ||
5032 test ! -s conftest.err
5033 } && test -s conftest.$ac_objext; then
5034 :
5035 else
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5038
5039 ac_c_werror_flag=$ac_save_c_werror_flag
5040 CFLAGS="-g"
5041 cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h. */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047
5048 int
5049 main ()
5050 {
5051
5052 ;
5053 return 0;
5054 }
5055 _ACEOF
5056 rm -f conftest.$ac_objext
5057 if { (ac_try="$ac_compile"
5058 case "(($ac_try" in
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5061 esac
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_compile") 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } && {
5070 test -z "$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5072 } && test -s conftest.$ac_objext; then
5073 ac_cv_prog_cc_g=yes
5074 else
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078
5079 fi
5080
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 fi
5083
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 fi
5086
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 ac_c_werror_flag=$ac_save_c_werror_flag
5089 fi
5090 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5091 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5092 if test "$ac_test_CFLAGS" = set; then
5093 CFLAGS=$ac_save_CFLAGS
5094 elif test $ac_cv_prog_cc_g = yes; then
5095 if test "$GCC" = yes; then
5096 CFLAGS="-g -O2"
5097 else
5098 CFLAGS="-g"
5099 fi
5100 else
5101 if test "$GCC" = yes; then
5102 CFLAGS="-O2"
5103 else
5104 CFLAGS=
5105 fi
5106 fi
5107 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5108 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5109 if test "${ac_cv_prog_cc_c89+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 ac_cv_prog_cc_c89=no
5113 ac_save_CC=$CC
5114 cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #include <stdarg.h>
5121 #include <stdio.h>
5122 #include <sys/types.h>
5123 #include <sys/stat.h>
5124 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5125 struct buf { int x; };
5126 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5127 static char *e (p, i)
5128 char **p;
5129 int i;
5130 {
5131 return p[i];
5132 }
5133 static char *f (char * (*g) (char **, int), char **p, ...)
5134 {
5135 char *s;
5136 va_list v;
5137 va_start (v,p);
5138 s = g (p, va_arg (v,int));
5139 va_end (v);
5140 return s;
5141 }
5142
5143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5144 function prototypes and stuff, but not '\xHH' hex character constants.
5145 These don't provoke an error unfortunately, instead are silently treated
5146 as 'x'. The following induces an error, until -std is added to get
5147 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5148 array size at least. It's necessary to write '\x00'==0 to get something
5149 that's true only with -std. */
5150 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5151
5152 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5153 inside strings and character constants. */
5154 #define FOO(x) 'x'
5155 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5156
5157 int test (int i, double x);
5158 struct s1 {int (*f) (int a);};
5159 struct s2 {int (*f) (double a);};
5160 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5161 int argc;
5162 char **argv;
5163 int
5164 main ()
5165 {
5166 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5167 ;
5168 return 0;
5169 }
5170 _ACEOF
5171 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5172 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5173 do
5174 CC="$ac_save_CC $ac_arg"
5175 rm -f conftest.$ac_objext
5176 if { (ac_try="$ac_compile"
5177 case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180 esac
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182 (eval "$ac_compile") 2>conftest.er1
5183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && {
5189 test -z "$ac_c_werror_flag" ||
5190 test ! -s conftest.err
5191 } && test -s conftest.$ac_objext; then
5192 ac_cv_prog_cc_c89=$ac_arg
5193 else
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5196
5197
5198 fi
5199
5200 rm -f core conftest.err conftest.$ac_objext
5201 test "x$ac_cv_prog_cc_c89" != "xno" && break
5202 done
5203 rm -f conftest.$ac_ext
5204 CC=$ac_save_CC
5205
5206 fi
5207 # AC_CACHE_VAL
5208 case "x$ac_cv_prog_cc_c89" in
5209 x)
5210 { echo "$as_me:$LINENO: result: none needed" >&5
5211 echo "${ECHO_T}none needed" >&6; } ;;
5212 xno)
5213 { echo "$as_me:$LINENO: result: unsupported" >&5
5214 echo "${ECHO_T}unsupported" >&6; } ;;
5215 *)
5216 CC="$CC $ac_cv_prog_cc_c89"
5217 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5218 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5219 esac
5220
5221
5222 ac_ext=c
5223 ac_cpp='$CPP $CPPFLAGS'
5224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227
5228 depcc="$CC" am_compiler_list=
5229
5230 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5231 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5232 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5236 # We make a subdir and do the tests there. Otherwise we can end up
5237 # making bogus files that we don't know about and never remove. For
5238 # instance it was reported that on HP-UX the gcc test will end up
5239 # making a dummy file named `D' -- because `-MD' means `put the output
5240 # in D'.
5241 mkdir conftest.dir
5242 # Copy depcomp to subdir because otherwise we won't find it if we're
5243 # using a relative directory.
5244 cp "$am_depcomp" conftest.dir
5245 cd conftest.dir
5246 # We will build objects and dependencies in a subdirectory because
5247 # it helps to detect inapplicable dependency modes. For instance
5248 # both Tru64's cc and ICC support -MD to output dependencies as a
5249 # side effect of compilation, but ICC will put the dependencies in
5250 # the current directory while Tru64 will put them in the object
5251 # directory.
5252 mkdir sub
5253
5254 am_cv_CC_dependencies_compiler_type=none
5255 if test "$am_compiler_list" = ""; then
5256 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5257 fi
5258 for depmode in $am_compiler_list; do
5259 # Setup a source with many dependencies, because some compilers
5260 # like to wrap large dependency lists on column 80 (with \), and
5261 # we should not choose a depcomp mode which is confused by this.
5262 #
5263 # We need to recreate these files for each test, as the compiler may
5264 # overwrite some of them when testing with obscure command lines.
5265 # This happens at least with the AIX C compiler.
5266 : > sub/conftest.c
5267 for i in 1 2 3 4 5 6; do
5268 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5269 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5270 # Solaris 8's {/usr,}/bin/sh.
5271 touch sub/conftst$i.h
5272 done
5273 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5274
5275 case $depmode in
5276 nosideeffect)
5277 # after this tag, mechanisms are not by side-effect, so they'll
5278 # only be used when explicitly requested
5279 if test "x$enable_dependency_tracking" = xyes; then
5280 continue
5281 else
5282 break
5283 fi
5284 ;;
5285 none) break ;;
5286 esac
5287 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5288 # mode. It turns out that the SunPro C++ compiler does not properly
5289 # handle `-M -o', and we need to detect this.
5290 if depmode=$depmode \
5291 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5292 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5293 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5294 >/dev/null 2>conftest.err &&
5295 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5296 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5297 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5298 # icc doesn't choke on unknown options, it will just issue warnings
5299 # or remarks (even with -Werror). So we grep stderr for any message
5300 # that says an option was ignored or not supported.
5301 # When given -MP, icc 7.0 and 7.1 complain thusly:
5302 # icc: Command line warning: ignoring option '-M'; no argument required
5303 # The diagnosis changed in icc 8.0:
5304 # icc: Command line remark: option '-MP' not supported
5305 if (grep 'ignoring option' conftest.err ||
5306 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5307 am_cv_CC_dependencies_compiler_type=$depmode
5308 break
5309 fi
5310 fi
5311 done
5312
5313 cd ..
5314 rm -rf conftest.dir
5315 else
5316 am_cv_CC_dependencies_compiler_type=none
5317 fi
5318
5319 fi
5320 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5321 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5322 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5323
5324
5325
5326 if
5327 test "x$enable_dependency_tracking" != xno \
5328 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5329 am__fastdepCC_TRUE=
5330 am__fastdepCC_FALSE='#'
5331 else
5332 am__fastdepCC_TRUE='#'
5333 am__fastdepCC_FALSE=
5334 fi
5335
5336
5337 # Find a good install program. We prefer a C program (faster),
5338 # so one script is as good as another. But avoid the broken or
5339 # incompatible versions:
5340 # SysV /etc/install, /usr/sbin/install
5341 # SunOS /usr/etc/install
5342 # IRIX /sbin/install
5343 # AIX /bin/install
5344 # AmigaOS /C/install, which installs bootblocks on floppy discs
5345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5348 # OS/2's system install, which has a completely different semantic
5349 # ./install, which can be erroneously created by make from ./install.sh.
5350 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5351 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5352 if test -z "$INSTALL"; then
5353 if test "${ac_cv_path_install+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 # Account for people who put trailing slashes in PATH elements.
5362 case $as_dir/ in
5363 ./ | .// | /cC/* | \
5364 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5365 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5366 /usr/ucb/* ) ;;
5367 *)
5368 # OSF1 and SCO ODT 3.0 have their own names for install.
5369 # Don't use installbsd from OSF since it installs stuff as root
5370 # by default.
5371 for ac_prog in ginstall scoinst install; do
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5374 if test $ac_prog = install &&
5375 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5376 # AIX install. It has an incompatible calling convention.
5377 :
5378 elif test $ac_prog = install &&
5379 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5380 # program-specific install script used by HP pwplus--don't use.
5381 :
5382 else
5383 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5384 break 3
5385 fi
5386 fi
5387 done
5388 done
5389 ;;
5390 esac
5391 done
5392 IFS=$as_save_IFS
5393
5394
5395 fi
5396 if test "${ac_cv_path_install+set}" = set; then
5397 INSTALL=$ac_cv_path_install
5398 else
5399 # As a last resort, use the slow shell script. Don't cache a
5400 # value for INSTALL within a source directory, because that will
5401 # break other packages using the cache if that directory is
5402 # removed, or if the value is a relative name.
5403 INSTALL=$ac_install_sh
5404 fi
5405 fi
5406 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5407 echo "${ECHO_T}$INSTALL" >&6; }
5408
5409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5410 # It thinks the first close brace ends the variable substitution.
5411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5412
5413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5414
5415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5416
5417 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5418 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5419 LN_S=$as_ln_s
5420 if test "$LN_S" = "ln -s"; then
5421 { echo "$as_me:$LINENO: result: yes" >&5
5422 echo "${ECHO_T}yes" >&6; }
5423 else
5424 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5425 echo "${ECHO_T}no, using $LN_S" >&6; }
5426 fi
5427
5428 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5429 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5430 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5431 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434 cat >conftest.make <<\_ACEOF
5435 SHELL = /bin/sh
5436 all:
5437 @echo '@@@%%%=$(MAKE)=@@@%%%'
5438 _ACEOF
5439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5440 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5441 *@@@%%%=?*=@@@%%%*)
5442 eval ac_cv_prog_make_${ac_make}_set=yes;;
5443 *)
5444 eval ac_cv_prog_make_${ac_make}_set=no;;
5445 esac
5446 rm -f conftest.make
5447 fi
5448 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5449 { echo "$as_me:$LINENO: result: yes" >&5
5450 echo "${ECHO_T}yes" >&6; }
5451 SET_MAKE=
5452 else
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5455 SET_MAKE="MAKE=${MAKE-make}"
5456 fi
5457
5458 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5459 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5460 if test "${ac_cv_header_stdc+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463 cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 #include <stdlib.h>
5470 #include <stdarg.h>
5471 #include <string.h>
5472 #include <float.h>
5473
5474 int
5475 main ()
5476 {
5477
5478 ;
5479 return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5499 ac_cv_header_stdc=yes
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504 ac_cv_header_stdc=no
5505 fi
5506
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508
5509 if test $ac_cv_header_stdc = yes; then
5510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #include <string.h>
5518
5519 _ACEOF
5520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5521 $EGREP "memchr" >/dev/null 2>&1; then
5522 :
5523 else
5524 ac_cv_header_stdc=no
5525 fi
5526 rm -f conftest*
5527
5528 fi
5529
5530 if test $ac_cv_header_stdc = yes; then
5531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5532 cat >conftest.$ac_ext <<_ACEOF
5533 /* confdefs.h. */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5538 #include <stdlib.h>
5539
5540 _ACEOF
5541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5542 $EGREP "free" >/dev/null 2>&1; then
5543 :
5544 else
5545 ac_cv_header_stdc=no
5546 fi
5547 rm -f conftest*
5548
5549 fi
5550
5551 if test $ac_cv_header_stdc = yes; then
5552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5553 if test "$cross_compiling" = yes; then
5554 :
5555 else
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 #include <ctype.h>
5563 #include <stdlib.h>
5564 #if ((' ' & 0x0FF) == 0x020)
5565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5567 #else
5568 # define ISLOWER(c) \
5569 (('a' <= (c) && (c) <= 'i') \
5570 || ('j' <= (c) && (c) <= 'r') \
5571 || ('s' <= (c) && (c) <= 'z'))
5572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5573 #endif
5574
5575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5576 int
5577 main ()
5578 {
5579 int i;
5580 for (i = 0; i < 256; i++)
5581 if (XOR (islower (i), ISLOWER (i))
5582 || toupper (i) != TOUPPER (i))
5583 return 2;
5584 return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest$ac_exeext
5588 if { (ac_try="$ac_link"
5589 case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_link") 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5598 { (case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5601 esac
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_try") 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 :
5608 else
5609 echo "$as_me: program exited with status $ac_status" >&5
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613 ( exit $ac_status )
5614 ac_cv_header_stdc=no
5615 fi
5616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5617 fi
5618
5619
5620 fi
5621 fi
5622 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5623 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5624 if test $ac_cv_header_stdc = yes; then
5625
5626 cat >>confdefs.h <<\_ACEOF
5627 #define STDC_HEADERS 1
5628 _ACEOF
5629
5630 fi
5631
5632 # Check whether --enable-shared was given.
5633 if test "${enable_shared+set}" = set; then
5634 enableval=$enable_shared; p=${PACKAGE-default}
5635 case $enableval in
5636 yes) enable_shared=yes ;;
5637 no) enable_shared=no ;;
5638 *)
5639 enable_shared=no
5640 # Look at the argument we got. We use all the common list separators.
5641 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5642 for pkg in $enableval; do
5643 IFS="$lt_save_ifs"
5644 if test "X$pkg" = "X$p"; then
5645 enable_shared=yes
5646 fi
5647 done
5648 IFS="$lt_save_ifs"
5649 ;;
5650 esac
5651 else
5652 enable_shared=yes
5653 fi
5654
5655
5656 # Check whether --enable-static was given.
5657 if test "${enable_static+set}" = set; then
5658 enableval=$enable_static; p=${PACKAGE-default}
5659 case $enableval in
5660 yes) enable_static=yes ;;
5661 no) enable_static=no ;;
5662 *)
5663 enable_static=no
5664 # Look at the argument we got. We use all the common list separators.
5665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5666 for pkg in $enableval; do
5667 IFS="$lt_save_ifs"
5668 if test "X$pkg" = "X$p"; then
5669 enable_static=yes
5670 fi
5671 done
5672 IFS="$lt_save_ifs"
5673 ;;
5674 esac
5675 else
5676 enable_static=yes
5677 fi
5678
5679
5680 # Check whether --enable-fast-install was given.
5681 if test "${enable_fast_install+set}" = set; then
5682 enableval=$enable_fast_install; p=${PACKAGE-default}
5683 case $enableval in
5684 yes) enable_fast_install=yes ;;
5685 no) enable_fast_install=no ;;
5686 *)
5687 enable_fast_install=no
5688 # Look at the argument we got. We use all the common list separators.
5689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5690 for pkg in $enableval; do
5691 IFS="$lt_save_ifs"
5692 if test "X$pkg" = "X$p"; then
5693 enable_fast_install=yes
5694 fi
5695 done
5696 IFS="$lt_save_ifs"
5697 ;;
5698 esac
5699 else
5700 enable_fast_install=yes
5701 fi
5702
5703
5704 # Make sure we can run config.sub.
5705 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5706 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5707 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5708 { (exit 1); exit 1; }; }
5709
5710 { echo "$as_me:$LINENO: checking build system type" >&5
5711 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5712 if test "${ac_cv_build+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715 ac_build_alias=$build_alias
5716 test "x$ac_build_alias" = x &&
5717 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5718 test "x$ac_build_alias" = x &&
5719 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5720 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5721 { (exit 1); exit 1; }; }
5722 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5723 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5724 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5725 { (exit 1); exit 1; }; }
5726
5727 fi
5728 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5729 echo "${ECHO_T}$ac_cv_build" >&6; }
5730 case $ac_cv_build in
5731 *-*-*) ;;
5732 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5733 echo "$as_me: error: invalid value of canonical build" >&2;}
5734 { (exit 1); exit 1; }; };;
5735 esac
5736 build=$ac_cv_build
5737 ac_save_IFS=$IFS; IFS='-'
5738 set x $ac_cv_build
5739 shift
5740 build_cpu=$1
5741 build_vendor=$2
5742 shift; shift
5743 # Remember, the first character of IFS is used to create $*,
5744 # except with old shells:
5745 build_os=$*
5746 IFS=$ac_save_IFS
5747 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5748
5749
5750 { echo "$as_me:$LINENO: checking host system type" >&5
5751 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5752 if test "${ac_cv_host+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 if test "x$host_alias" = x; then
5756 ac_cv_host=$ac_cv_build
5757 else
5758 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5759 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5760 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5761 { (exit 1); exit 1; }; }
5762 fi
5763
5764 fi
5765 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5766 echo "${ECHO_T}$ac_cv_host" >&6; }
5767 case $ac_cv_host in
5768 *-*-*) ;;
5769 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5770 echo "$as_me: error: invalid value of canonical host" >&2;}
5771 { (exit 1); exit 1; }; };;
5772 esac
5773 host=$ac_cv_host
5774 ac_save_IFS=$IFS; IFS='-'
5775 set x $ac_cv_host
5776 shift
5777 host_cpu=$1
5778 host_vendor=$2
5779 shift; shift
5780 # Remember, the first character of IFS is used to create $*,
5781 # except with old shells:
5782 host_os=$*
5783 IFS=$ac_save_IFS
5784 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5785
5786
5787 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5788 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5789 if test "${lt_cv_path_SED+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 # Loop through the user's path and test for sed and gsed.
5793 # Then use that list of sed's as ones to test for truncation.
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for lt_ac_prog in sed gsed; do
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5802 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5803 fi
5804 done
5805 done
5806 done
5807 IFS=$as_save_IFS
5808 lt_ac_max=0
5809 lt_ac_count=0
5810 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5811 # along with /bin/sed that truncates output.
5812 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5813 test ! -f $lt_ac_sed && continue
5814 cat /dev/null > conftest.in
5815 lt_ac_count=0
5816 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5817 # Check for GNU sed and select it if it is found.
5818 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5819 lt_cv_path_SED=$lt_ac_sed
5820 break
5821 fi
5822 while true; do
5823 cat conftest.in conftest.in >conftest.tmp
5824 mv conftest.tmp conftest.in
5825 cp conftest.in conftest.nl
5826 echo >>conftest.nl
5827 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5828 cmp -s conftest.out conftest.nl || break
5829 # 10000 chars as input seems more than enough
5830 test $lt_ac_count -gt 10 && break
5831 lt_ac_count=`expr $lt_ac_count + 1`
5832 if test $lt_ac_count -gt $lt_ac_max; then
5833 lt_ac_max=$lt_ac_count
5834 lt_cv_path_SED=$lt_ac_sed
5835 fi
5836 done
5837 done
5838
5839 fi
5840
5841 SED=$lt_cv_path_SED
5842
5843 { echo "$as_me:$LINENO: result: $SED" >&5
5844 echo "${ECHO_T}$SED" >&6; }
5845
5846
5847 # Check whether --with-gnu-ld was given.
5848 if test "${with_gnu_ld+set}" = set; then
5849 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5850 else
5851 with_gnu_ld=no
5852 fi
5853
5854 ac_prog=ld
5855 if test "$GCC" = yes; then
5856 # Check if gcc -print-prog-name=ld gives a path.
5857 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5858 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5859 case $host in
5860 *-*-mingw*)
5861 # gcc leaves a trailing carriage return which upsets mingw
5862 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5863 *)
5864 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5865 esac
5866 case $ac_prog in
5867 # Accept absolute paths.
5868 [\\/]* | ?:[\\/]*)
5869 re_direlt='/[^/][^/]*/\.\./'
5870 # Canonicalize the pathname of ld
5871 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5872 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5873 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5874 done
5875 test -z "$LD" && LD="$ac_prog"
5876 ;;
5877 "")
5878 # If it fails, then pretend we aren't using GCC.
5879 ac_prog=ld
5880 ;;
5881 *)
5882 # If it is relative, then search for the first ld in PATH.
5883 with_gnu_ld=unknown
5884 ;;
5885 esac
5886 elif test "$with_gnu_ld" = yes; then
5887 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5888 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5889 else
5890 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5891 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5892 fi
5893 if test "${lt_cv_path_LD+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896 if test -z "$LD"; then
5897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5898 for ac_dir in $PATH; do
5899 IFS="$lt_save_ifs"
5900 test -z "$ac_dir" && ac_dir=.
5901 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5902 lt_cv_path_LD="$ac_dir/$ac_prog"
5903 # Check to see if the program is GNU ld. I'd rather use --version,
5904 # but apparently some variants of GNU ld only accept -v.
5905 # Break only if it was the GNU/non-GNU ld that we prefer.
5906 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5907 *GNU* | *'with BFD'*)
5908 test "$with_gnu_ld" != no && break
5909 ;;
5910 *)
5911 test "$with_gnu_ld" != yes && break
5912 ;;
5913 esac
5914 fi
5915 done
5916 IFS="$lt_save_ifs"
5917 else
5918 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5919 fi
5920 fi
5921
5922 LD="$lt_cv_path_LD"
5923 if test -n "$LD"; then
5924 { echo "$as_me:$LINENO: result: $LD" >&5
5925 echo "${ECHO_T}$LD" >&6; }
5926 else
5927 { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5929 fi
5930 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5931 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5932 { (exit 1); exit 1; }; }
5933 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5934 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5935 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5939 case `$LD -v 2>&1 </dev/null` in
5940 *GNU* | *'with BFD'*)
5941 lt_cv_prog_gnu_ld=yes
5942 ;;
5943 *)
5944 lt_cv_prog_gnu_ld=no
5945 ;;
5946 esac
5947 fi
5948 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5949 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5950 with_gnu_ld=$lt_cv_prog_gnu_ld
5951
5952
5953 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5954 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5955 if test "${lt_cv_ld_reload_flag+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 lt_cv_ld_reload_flag='-r'
5959 fi
5960 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5961 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5962 reload_flag=$lt_cv_ld_reload_flag
5963 case $reload_flag in
5964 "" | " "*) ;;
5965 *) reload_flag=" $reload_flag" ;;
5966 esac
5967 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5968 case $host_os in
5969 darwin*)
5970 if test "$GCC" = yes; then
5971 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5972 else
5973 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5974 fi
5975 ;;
5976 esac
5977
5978 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5979 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5980 if test "${lt_cv_path_NM+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983 if test -n "$NM"; then
5984 # Let the user override the test.
5985 lt_cv_path_NM="$NM"
5986 else
5987 lt_nm_to_check="${ac_tool_prefix}nm"
5988 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5989 lt_nm_to_check="$lt_nm_to_check nm"
5990 fi
5991 for lt_tmp_nm in $lt_nm_to_check; do
5992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5993 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5994 IFS="$lt_save_ifs"
5995 test -z "$ac_dir" && ac_dir=.
5996 tmp_nm="$ac_dir/$lt_tmp_nm"
5997 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5998 # Check to see if the nm accepts a BSD-compat flag.
5999 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6000 # nm: unknown option "B" ignored
6001 # Tru64's nm complains that /dev/null is an invalid object file
6002 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6003 */dev/null* | *'Invalid file or object type'*)
6004 lt_cv_path_NM="$tmp_nm -B"
6005 break
6006 ;;
6007 *)
6008 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6009 */dev/null*)
6010 lt_cv_path_NM="$tmp_nm -p"
6011 break
6012 ;;
6013 *)
6014 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6015 continue # so that we can try to find one that supports BSD flags
6016 ;;
6017 esac
6018 ;;
6019 esac
6020 fi
6021 done
6022 IFS="$lt_save_ifs"
6023 done
6024 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6025 fi
6026 fi
6027 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6028 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6029 NM="$lt_cv_path_NM"
6030
6031 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6032 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6033 if test "${lt_cv_deplibs_check_method+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036 lt_cv_file_magic_cmd='$MAGIC_CMD'
6037 lt_cv_file_magic_test_file=
6038 lt_cv_deplibs_check_method='unknown'
6039 # Need to set the preceding variable on all platforms that support
6040 # interlibrary dependencies.
6041 # 'none' -- dependencies not supported.
6042 # `unknown' -- same as none, but documents that we really don't know.
6043 # 'pass_all' -- all dependencies passed with no checks.
6044 # 'test_compile' -- check by making test program.
6045 # 'file_magic [[regex]]' -- check by looking for files in library path
6046 # which responds to the $file_magic_cmd with a given extended regex.
6047 # If you have `file' or equivalent on your system and you're not sure
6048 # whether `pass_all' will *always* work, you probably want this one.
6049
6050 case $host_os in
6051 aix4* | aix5*)
6052 lt_cv_deplibs_check_method=pass_all
6053 ;;
6054
6055 beos*)
6056 lt_cv_deplibs_check_method=pass_all
6057 ;;
6058
6059 bsdi[45]*)
6060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6061 lt_cv_file_magic_cmd='/usr/bin/file -L'
6062 lt_cv_file_magic_test_file=/shlib/libc.so
6063 ;;
6064
6065 cygwin*)
6066 # func_win32_libid is a shell function defined in ltmain.sh
6067 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6068 lt_cv_file_magic_cmd='func_win32_libid'
6069 ;;
6070
6071 mingw* | pw32*)
6072 # Base MSYS/MinGW do not provide the 'file' command needed by
6073 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6074 # unless we find 'file', for example because we are cross-compiling.
6075 if ( file / ) >/dev/null 2>&1; then
6076 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6077 lt_cv_file_magic_cmd='func_win32_libid'
6078 else
6079 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6080 lt_cv_file_magic_cmd='$OBJDUMP -f'
6081 fi
6082 ;;
6083
6084 darwin* | rhapsody*)
6085 lt_cv_deplibs_check_method=pass_all
6086 ;;
6087
6088 freebsd* | dragonfly*)
6089 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6090 case $host_cpu in
6091 i*86 )
6092 # Not sure whether the presence of OpenBSD here was a mistake.
6093 # Let's accept both of them until this is cleared up.
6094 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6095 lt_cv_file_magic_cmd=/usr/bin/file
6096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6097 ;;
6098 esac
6099 else
6100 lt_cv_deplibs_check_method=pass_all
6101 fi
6102 ;;
6103
6104 gnu*)
6105 lt_cv_deplibs_check_method=pass_all
6106 ;;
6107
6108 hpux10.20* | hpux11*)
6109 lt_cv_file_magic_cmd=/usr/bin/file
6110 case $host_cpu in
6111 ia64*)
6112 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6113 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6114 ;;
6115 hppa*64*)
6116 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]'
6117 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6118 ;;
6119 *)
6120 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6121 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6122 ;;
6123 esac
6124 ;;
6125
6126 interix[3-9]*)
6127 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6129 ;;
6130
6131 irix5* | irix6* | nonstopux*)
6132 case $LD in
6133 *-32|*"-32 ") libmagic=32-bit;;
6134 *-n32|*"-n32 ") libmagic=N32;;
6135 *-64|*"-64 ") libmagic=64-bit;;
6136 *) libmagic=never-match;;
6137 esac
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
6140
6141 # This must be Linux ELF.
6142 linux* | k*bsd*-gnu)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145
6146 netbsd* | netbsdelf*-gnu)
6147 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6149 else
6150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6151 fi
6152 ;;
6153
6154 newos6*)
6155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6156 lt_cv_file_magic_cmd=/usr/bin/file
6157 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6158 ;;
6159
6160 nto-qnx*)
6161 lt_cv_deplibs_check_method=unknown
6162 ;;
6163
6164 openbsd*)
6165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6167 else
6168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6169 fi
6170 ;;
6171
6172 osf3* | osf4* | osf5*)
6173 lt_cv_deplibs_check_method=pass_all
6174 ;;
6175
6176 rdos*)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179
6180 solaris*)
6181 lt_cv_deplibs_check_method=pass_all
6182 ;;
6183
6184 sysv4 | sysv4.3*)
6185 case $host_vendor in
6186 motorola)
6187 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]'
6188 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6189 ;;
6190 ncr)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193 sequent)
6194 lt_cv_file_magic_cmd='/bin/file'
6195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6196 ;;
6197 sni)
6198 lt_cv_file_magic_cmd='/bin/file'
6199 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6200 lt_cv_file_magic_test_file=/lib/libc.so
6201 ;;
6202 siemens)
6203 lt_cv_deplibs_check_method=pass_all
6204 ;;
6205 pc)
6206 lt_cv_deplibs_check_method=pass_all
6207 ;;
6208 esac
6209 ;;
6210
6211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6212 lt_cv_deplibs_check_method=pass_all
6213 ;;
6214 esac
6215
6216 fi
6217 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6218 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6219 file_magic_cmd=$lt_cv_file_magic_cmd
6220 deplibs_check_method=$lt_cv_deplibs_check_method
6221 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6222
6223
6224
6225
6226 # If no C compiler was specified, use CC.
6227 LTCC=${LTCC-"$CC"}
6228
6229 # If no C compiler flags were specified, use CFLAGS.
6230 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6231
6232 # Allow CC to be a program name with arguments.
6233 compiler=$CC
6234
6235 # Check whether --enable-libtool-lock was given.
6236 if test "${enable_libtool_lock+set}" = set; then
6237 enableval=$enable_libtool_lock;
6238 fi
6239
6240 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6241
6242 # Some flags need to be propagated to the compiler or linker for good
6243 # libtool support.
6244 case $host in
6245 ia64-*-hpux*)
6246 # Find out which ABI we are using.
6247 echo 'int i;' > conftest.$ac_ext
6248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6249 (eval $ac_compile) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; then
6253 case `/usr/bin/file conftest.$ac_objext` in
6254 *ELF-32*)
6255 HPUX_IA64_MODE="32"
6256 ;;
6257 *ELF-64*)
6258 HPUX_IA64_MODE="64"
6259 ;;
6260 esac
6261 fi
6262 rm -rf conftest*
6263 ;;
6264 *-*-irix6*)
6265 # Find out which ABI we are using.
6266 echo '#line 6267 "configure"' > conftest.$ac_ext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6268 (eval $ac_compile) 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; then
6272 if test "$lt_cv_prog_gnu_ld" = yes; then
6273 case `/usr/bin/file conftest.$ac_objext` in
6274 *32-bit*)
6275 LD="${LD-ld} -melf32bsmip"
6276 ;;
6277 *N32*)
6278 LD="${LD-ld} -melf32bmipn32"
6279 ;;
6280 *64-bit*)
6281 LD="${LD-ld} -melf64bmip"
6282 ;;
6283 esac
6284 else
6285 case `/usr/bin/file conftest.$ac_objext` in
6286 *32-bit*)
6287 LD="${LD-ld} -32"
6288 ;;
6289 *N32*)
6290 LD="${LD-ld} -n32"
6291 ;;
6292 *64-bit*)
6293 LD="${LD-ld} -64"
6294 ;;
6295 esac
6296 fi
6297 fi
6298 rm -rf conftest*
6299 ;;
6300
6301 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6302 s390*-*linux*|sparc*-*linux*)
6303 # Find out which ABI we are using.
6304 echo 'int i;' > conftest.$ac_ext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306 (eval $ac_compile) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; then
6310 case `/usr/bin/file conftest.o` in
6311 *32-bit*)
6312 case $host in
6313 x86_64-*kfreebsd*-gnu)
6314 LD="${LD-ld} -m elf_i386_fbsd"
6315 ;;
6316 x86_64-*linux*)
6317 LD="${LD-ld} -m elf_i386"
6318 ;;
6319 ppc64-*linux*|powerpc64-*linux*)
6320 LD="${LD-ld} -m elf32ppclinux"
6321 ;;
6322 s390x-*linux*)
6323 LD="${LD-ld} -m elf_s390"
6324 ;;
6325 sparc64-*linux*)
6326 LD="${LD-ld} -m elf32_sparc"
6327 ;;
6328 esac
6329 ;;
6330 *64-bit*)
6331 case $host in
6332 x86_64-*kfreebsd*-gnu)
6333 LD="${LD-ld} -m elf_x86_64_fbsd"
6334 ;;
6335 x86_64-*linux*)
6336 LD="${LD-ld} -m elf_x86_64"
6337 ;;
6338 ppc*-*linux*|powerpc*-*linux*)
6339 LD="${LD-ld} -m elf64ppc"
6340 ;;
6341 s390*-*linux*)
6342 LD="${LD-ld} -m elf64_s390"
6343 ;;
6344 sparc*-*linux*)
6345 LD="${LD-ld} -m elf64_sparc"
6346 ;;
6347 esac
6348 ;;
6349 esac
6350 fi
6351 rm -rf conftest*
6352 ;;
6353
6354 *-*-sco3.2v5*)
6355 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6356 SAVE_CFLAGS="$CFLAGS"
6357 CFLAGS="$CFLAGS -belf"
6358 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6359 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6360 if test "${lt_cv_cc_needs_belf+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363 ac_ext=c
6364 ac_cpp='$CPP $CPPFLAGS'
6365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6368
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h. */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375
6376 int
6377 main ()
6378 {
6379
6380 ;
6381 return 0;
6382 }
6383 _ACEOF
6384 rm -f conftest.$ac_objext conftest$ac_exeext
6385 if { (ac_try="$ac_link"
6386 case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389 esac
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_link") 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest$ac_exeext &&
6401 $as_test_x conftest$ac_exeext; then
6402 lt_cv_cc_needs_belf=yes
6403 else
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6406
6407 lt_cv_cc_needs_belf=no
6408 fi
6409
6410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6411 conftest$ac_exeext conftest.$ac_ext
6412 ac_ext=c
6413 ac_cpp='$CPP $CPPFLAGS'
6414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6417
6418 fi
6419 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6420 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6421 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6422 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6423 CFLAGS="$SAVE_CFLAGS"
6424 fi
6425 ;;
6426 sparc*-*solaris*)
6427 # Find out which ABI we are using.
6428 echo 'int i;' > conftest.$ac_ext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; then
6434 case `/usr/bin/file conftest.o` in
6435 *64-bit*)
6436 case $lt_cv_prog_gnu_ld in
6437 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6438 *) LD="${LD-ld} -64" ;;
6439 esac
6440 ;;
6441 esac
6442 fi
6443 rm -rf conftest*
6444 ;;
6445
6446
6447 esac
6448
6449 need_locks="$enable_libtool_lock"
6450
6451
6452
6453 for ac_header in dlfcn.h
6454 do
6455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 fi
6462 ac_res=`eval echo '${'$as_ac_Header'}'`
6463 { echo "$as_me:$LINENO: result: $ac_res" >&5
6464 echo "${ECHO_T}$ac_res" >&6; }
6465 else
6466 # Is the header compilable?
6467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 $ac_includes_default
6476 #include <$ac_header>
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6480 case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest.$ac_objext; then
6495 ac_header_compiler=yes
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500 ac_header_compiler=no
6501 fi
6502
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6505 echo "${ECHO_T}$ac_header_compiler" >&6; }
6506
6507 # Is the header present?
6508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6510 cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h. */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 #include <$ac_header>
6517 _ACEOF
6518 if { (ac_try="$ac_cpp conftest.$ac_ext"
6519 case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522 esac
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } >/dev/null && {
6531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 }; then
6534 ac_header_preproc=yes
6535 else
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 ac_header_preproc=no
6540 fi
6541
6542 rm -f conftest.err conftest.$ac_ext
6543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6544 echo "${ECHO_T}$ac_header_preproc" >&6; }
6545
6546 # So? What about this header?
6547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6548 yes:no: )
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6553 ac_header_preproc=yes
6554 ;;
6555 no:yes:* )
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6568
6569 ;;
6570 esac
6571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576 eval "$as_ac_Header=\$ac_header_preproc"
6577 fi
6578 ac_res=`eval echo '${'$as_ac_Header'}'`
6579 { echo "$as_me:$LINENO: result: $ac_res" >&5
6580 echo "${ECHO_T}$ac_res" >&6; }
6581
6582 fi
6583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6584 cat >>confdefs.h <<_ACEOF
6585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6586 _ACEOF
6587
6588 fi
6589
6590 done
6591
6592 ac_ext=cpp
6593 ac_cpp='$CXXCPP $CPPFLAGS'
6594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6597 if test -z "$CXX"; then
6598 if test -n "$CCC"; then
6599 CXX=$CCC
6600 else
6601 if test -n "$ac_tool_prefix"; then
6602 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6603 do
6604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_CXX+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 if test -n "$CXX"; then
6612 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6624 fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 CXX=$ac_cv_prog_CXX
6632 if test -n "$CXX"; then
6633 { echo "$as_me:$LINENO: result: $CXX" >&5
6634 echo "${ECHO_T}$CXX" >&6; }
6635 else
6636 { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6638 fi
6639
6640
6641 test -n "$CXX" && break
6642 done
6643 fi
6644 if test -z "$CXX"; then
6645 ac_ct_CXX=$CXX
6646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6647 do
6648 # Extract the first word of "$ac_prog", so it can be a program name with args.
6649 set dummy $ac_prog; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655 if test -n "$ac_ct_CXX"; then
6656 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_prog_ac_ct_CXX="$ac_prog"
6666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 fi
6674 fi
6675 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6676 if test -n "$ac_ct_CXX"; then
6677 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6678 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6679 else
6680 { echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6; }
6682 fi
6683
6684
6685 test -n "$ac_ct_CXX" && break
6686 done
6687
6688 if test "x$ac_ct_CXX" = x; then
6689 CXX="g++"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692 yes:)
6693 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6694 whose name does not start with the host triplet. If you think this
6695 configuration is useful to you, please write to autoconf@gnu.org." >&5
6696 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6697 whose name does not start with the host triplet. If you think this
6698 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6699 ac_tool_warned=yes ;;
6700 esac
6701 CXX=$ac_ct_CXX
6702 fi
6703 fi
6704
6705 fi
6706 fi
6707 # Provide some information about the compiler.
6708 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6709 ac_compiler=`set X $ac_compile; echo $2`
6710 { (ac_try="$ac_compiler --version >&5"
6711 case "(($ac_try" in
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6714 esac
6715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716 (eval "$ac_compiler --version >&5") 2>&5
6717 ac_status=$?
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }
6720 { (ac_try="$ac_compiler -v >&5"
6721 case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724 esac
6725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726 (eval "$ac_compiler -v >&5") 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }
6730 { (ac_try="$ac_compiler -V >&5"
6731 case "(($ac_try" in
6732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733 *) ac_try_echo=$ac_try;;
6734 esac
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736 (eval "$ac_compiler -V >&5") 2>&5
6737 ac_status=$?
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }
6740
6741 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6742 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6743 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752
6753 int
6754 main ()
6755 {
6756 #ifndef __GNUC__
6757 choke me
6758 #endif
6759
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (ac_try="$ac_compile"
6766 case "(($ac_try" in
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6769 esac
6770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771 (eval "$ac_compile") 2>conftest.er1
6772 ac_status=$?
6773 grep -v '^ *+' conftest.er1 >conftest.err
6774 rm -f conftest.er1
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } && {
6778 test -z "$ac_cxx_werror_flag" ||
6779 test ! -s conftest.err
6780 } && test -s conftest.$ac_objext; then
6781 ac_compiler_gnu=yes
6782 else
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786 ac_compiler_gnu=no
6787 fi
6788
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6791
6792 fi
6793 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6794 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6795 GXX=`test $ac_compiler_gnu = yes && echo yes`
6796 ac_test_CXXFLAGS=${CXXFLAGS+set}
6797 ac_save_CXXFLAGS=$CXXFLAGS
6798 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6799 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6800 if test "${ac_cv_prog_cxx_g+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6804 ac_cxx_werror_flag=yes
6805 ac_cv_prog_cxx_g=no
6806 CXXFLAGS="-g"
6807 cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h. */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813
6814 int
6815 main ()
6816 {
6817
6818 ;
6819 return 0;
6820 }
6821 _ACEOF
6822 rm -f conftest.$ac_objext
6823 if { (ac_try="$ac_compile"
6824 case "(($ac_try" in
6825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826 *) ac_try_echo=$ac_try;;
6827 esac
6828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6829 (eval "$ac_compile") 2>conftest.er1
6830 ac_status=$?
6831 grep -v '^ *+' conftest.er1 >conftest.err
6832 rm -f conftest.er1
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } && {
6836 test -z "$ac_cxx_werror_flag" ||
6837 test ! -s conftest.err
6838 } && test -s conftest.$ac_objext; then
6839 ac_cv_prog_cxx_g=yes
6840 else
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6843
6844 CXXFLAGS=""
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851
6852 int
6853 main ()
6854 {
6855
6856 ;
6857 return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (ac_try="$ac_compile"
6862 case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865 esac
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_compile") 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && {
6874 test -z "$ac_cxx_werror_flag" ||
6875 test ! -s conftest.err
6876 } && test -s conftest.$ac_objext; then
6877 :
6878 else
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6881
6882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6883 CXXFLAGS="-g"
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890
6891 int
6892 main ()
6893 {
6894
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (ac_try="$ac_compile"
6901 case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_cxx_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
6916 ac_cv_prog_cxx_g=yes
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921
6922 fi
6923
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 fi
6926
6927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928 fi
6929
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6932 fi
6933 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6934 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6935 if test "$ac_test_CXXFLAGS" = set; then
6936 CXXFLAGS=$ac_save_CXXFLAGS
6937 elif test $ac_cv_prog_cxx_g = yes; then
6938 if test "$GXX" = yes; then
6939 CXXFLAGS="-g -O2"
6940 else
6941 CXXFLAGS="-g"
6942 fi
6943 else
6944 if test "$GXX" = yes; then
6945 CXXFLAGS="-O2"
6946 else
6947 CXXFLAGS=
6948 fi
6949 fi
6950 ac_ext=cpp
6951 ac_cpp='$CXXCPP $CPPFLAGS'
6952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6955
6956 depcc="$CXX" am_compiler_list=
6957
6958 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6959 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6960 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6964 # We make a subdir and do the tests there. Otherwise we can end up
6965 # making bogus files that we don't know about and never remove. For
6966 # instance it was reported that on HP-UX the gcc test will end up
6967 # making a dummy file named `D' -- because `-MD' means `put the output
6968 # in D'.
6969 mkdir conftest.dir
6970 # Copy depcomp to subdir because otherwise we won't find it if we're
6971 # using a relative directory.
6972 cp "$am_depcomp" conftest.dir
6973 cd conftest.dir
6974 # We will build objects and dependencies in a subdirectory because
6975 # it helps to detect inapplicable dependency modes. For instance
6976 # both Tru64's cc and ICC support -MD to output dependencies as a
6977 # side effect of compilation, but ICC will put the dependencies in
6978 # the current directory while Tru64 will put them in the object
6979 # directory.
6980 mkdir sub
6981
6982 am_cv_CXX_dependencies_compiler_type=none
6983 if test "$am_compiler_list" = ""; then
6984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6985 fi
6986 for depmode in $am_compiler_list; do
6987 # Setup a source with many dependencies, because some compilers
6988 # like to wrap large dependency lists on column 80 (with \), and
6989 # we should not choose a depcomp mode which is confused by this.
6990 #
6991 # We need to recreate these files for each test, as the compiler may
6992 # overwrite some of them when testing with obscure command lines.
6993 # This happens at least with the AIX C compiler.
6994 : > sub/conftest.c
6995 for i in 1 2 3 4 5 6; do
6996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6997 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6998 # Solaris 8's {/usr,}/bin/sh.
6999 touch sub/conftst$i.h
7000 done
7001 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7002
7003 case $depmode in
7004 nosideeffect)
7005 # after this tag, mechanisms are not by side-effect, so they'll
7006 # only be used when explicitly requested
7007 if test "x$enable_dependency_tracking" = xyes; then
7008 continue
7009 else
7010 break
7011 fi
7012 ;;
7013 none) break ;;
7014 esac
7015 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7016 # mode. It turns out that the SunPro C++ compiler does not properly
7017 # handle `-M -o', and we need to detect this.
7018 if depmode=$depmode \
7019 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7021 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7022 >/dev/null 2>conftest.err &&
7023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7024 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7026 # icc doesn't choke on unknown options, it will just issue warnings
7027 # or remarks (even with -Werror). So we grep stderr for any message
7028 # that says an option was ignored or not supported.
7029 # When given -MP, icc 7.0 and 7.1 complain thusly:
7030 # icc: Command line warning: ignoring option '-M'; no argument required
7031 # The diagnosis changed in icc 8.0:
7032 # icc: Command line remark: option '-MP' not supported
7033 if (grep 'ignoring option' conftest.err ||
7034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7035 am_cv_CXX_dependencies_compiler_type=$depmode
7036 break
7037 fi
7038 fi
7039 done
7040
7041 cd ..
7042 rm -rf conftest.dir
7043 else
7044 am_cv_CXX_dependencies_compiler_type=none
7045 fi
7046
7047 fi
7048 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7049 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7050 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7051
7052
7053
7054 if
7055 test "x$enable_dependency_tracking" != xno \
7056 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7057 am__fastdepCXX_TRUE=
7058 am__fastdepCXX_FALSE='#'
7059 else
7060 am__fastdepCXX_TRUE='#'
7061 am__fastdepCXX_FALSE=
7062 fi
7063
7064
7065
7066
7067 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7068 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7069 (test "X$CXX" != "Xg++"))) ; then
7070 ac_ext=cpp
7071 ac_cpp='$CXXCPP $CPPFLAGS'
7072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7075 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7076 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7077 if test -z "$CXXCPP"; then
7078 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 # Double quotes because CXXCPP needs to be expanded
7082 for CXXCPP in "$CXX -E" "/lib/cpp"
7083 do
7084 ac_preproc_ok=false
7085 for ac_cxx_preproc_warn_flag in '' yes
7086 do
7087 # Use a header file that comes with gcc, so configuring glibc
7088 # with a fresh cross-compiler works.
7089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7090 # <limits.h> exists even on freestanding compilers.
7091 # On the NeXT, cc -E runs the code through the compiler's parser,
7092 # not just through cpp. "Syntax error" is here to catch this case.
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 #ifdef __STDC__
7100 # include <limits.h>
7101 #else
7102 # include <assert.h>
7103 #endif
7104 Syntax error
7105 _ACEOF
7106 if { (ac_try="$ac_cpp conftest.$ac_ext"
7107 case "(($ac_try" in
7108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7109 *) ac_try_echo=$ac_try;;
7110 esac
7111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } >/dev/null && {
7119 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7120 test ! -s conftest.err
7121 }; then
7122 :
7123 else
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7126
7127 # Broken: fails on valid input.
7128 continue
7129 fi
7130
7131 rm -f conftest.err conftest.$ac_ext
7132
7133 # OK, works on sane cases. Now check whether nonexistent headers
7134 # can be detected and how.
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 #include <ac_nonexistent.h>
7142 _ACEOF
7143 if { (ac_try="$ac_cpp conftest.$ac_ext"
7144 case "(($ac_try" in
7145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146 *) ac_try_echo=$ac_try;;
7147 esac
7148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } >/dev/null && {
7156 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7157 test ! -s conftest.err
7158 }; then
7159 # Broken: success on invalid input.
7160 continue
7161 else
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165 # Passes both tests.
7166 ac_preproc_ok=:
7167 break
7168 fi
7169
7170 rm -f conftest.err conftest.$ac_ext
7171
7172 done
7173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7174 rm -f conftest.err conftest.$ac_ext
7175 if $ac_preproc_ok; then
7176 break
7177 fi
7178
7179 done
7180 ac_cv_prog_CXXCPP=$CXXCPP
7181
7182 fi
7183 CXXCPP=$ac_cv_prog_CXXCPP
7184 else
7185 ac_cv_prog_CXXCPP=$CXXCPP
7186 fi
7187 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7188 echo "${ECHO_T}$CXXCPP" >&6; }
7189 ac_preproc_ok=false
7190 for ac_cxx_preproc_warn_flag in '' yes
7191 do
7192 # Use a header file that comes with gcc, so configuring glibc
7193 # with a fresh cross-compiler works.
7194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7195 # <limits.h> exists even on freestanding compilers.
7196 # On the NeXT, cc -E runs the code through the compiler's parser,
7197 # not just through cpp. "Syntax error" is here to catch this case.
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 #ifdef __STDC__
7205 # include <limits.h>
7206 #else
7207 # include <assert.h>
7208 #endif
7209 Syntax error
7210 _ACEOF
7211 if { (ac_try="$ac_cpp conftest.$ac_ext"
7212 case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215 esac
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } >/dev/null && {
7224 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7225 test ! -s conftest.err
7226 }; then
7227 :
7228 else
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7231
7232 # Broken: fails on valid input.
7233 continue
7234 fi
7235
7236 rm -f conftest.err conftest.$ac_ext
7237
7238 # OK, works on sane cases. Now check whether nonexistent headers
7239 # can be detected and how.
7240 cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h. */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 #include <ac_nonexistent.h>
7247 _ACEOF
7248 if { (ac_try="$ac_cpp conftest.$ac_ext"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } >/dev/null && {
7261 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7262 test ! -s conftest.err
7263 }; then
7264 # Broken: success on invalid input.
7265 continue
7266 else
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 # Passes both tests.
7271 ac_preproc_ok=:
7272 break
7273 fi
7274
7275 rm -f conftest.err conftest.$ac_ext
7276
7277 done
7278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7279 rm -f conftest.err conftest.$ac_ext
7280 if $ac_preproc_ok; then
7281 :
7282 else
7283 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7284 See \`config.log' for more details." >&5
7285 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7286 See \`config.log' for more details." >&2;}
7287 { (exit 1); exit 1; }; }
7288 fi
7289
7290 ac_ext=cpp
7291 ac_cpp='$CXXCPP $CPPFLAGS'
7292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7295
7296 fi
7297
7298
7299 ac_ext=f
7300 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7301 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7303 if test -n "$ac_tool_prefix"; then
7304 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
7305 do
7306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7310 if test "${ac_cv_prog_F77+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 if test -n "$F77"; then
7314 ac_cv_prog_F77="$F77" # Let the user override the test.
7315 else
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7318 do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7326 fi
7327 done
7328 done
7329 IFS=$as_save_IFS
7330
7331 fi
7332 fi
7333 F77=$ac_cv_prog_F77
7334 if test -n "$F77"; then
7335 { echo "$as_me:$LINENO: result: $F77" >&5
7336 echo "${ECHO_T}$F77" >&6; }
7337 else
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7340 fi
7341
7342
7343 test -n "$F77" && break
7344 done
7345 fi
7346 if test -z "$F77"; then
7347 ac_ct_F77=$F77
7348 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
7349 do
7350 # Extract the first word of "$ac_prog", so it can be a program name with args.
7351 set dummy $ac_prog; ac_word=$2
7352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7354 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357 if test -n "$ac_ct_F77"; then
7358 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_ac_ct_F77="$ac_prog"
7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7370 fi
7371 done
7372 done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7378 if test -n "$ac_ct_F77"; then
7379 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7380 echo "${ECHO_T}$ac_ct_F77" >&6; }
7381 else
7382 { echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6; }
7384 fi
7385
7386
7387 test -n "$ac_ct_F77" && break
7388 done
7389
7390 if test "x$ac_ct_F77" = x; then
7391 F77=""
7392 else
7393 case $cross_compiling:$ac_tool_warned in
7394 yes:)
7395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7396 whose name does not start with the host triplet. If you think this
7397 configuration is useful to you, please write to autoconf@gnu.org." >&5
7398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7399 whose name does not start with the host triplet. If you think this
7400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7401 ac_tool_warned=yes ;;
7402 esac
7403 F77=$ac_ct_F77
7404 fi
7405 fi
7406
7407
7408 # Provide some information about the compiler.
7409 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7410 ac_compiler=`set X $ac_compile; echo $2`
7411 { (ac_try="$ac_compiler --version >&5"
7412 case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415 esac
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_compiler --version >&5") 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }
7421 { (ac_try="$ac_compiler -v >&5"
7422 case "(($ac_try" in
7423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424 *) ac_try_echo=$ac_try;;
7425 esac
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427 (eval "$ac_compiler -v >&5") 2>&5
7428 ac_status=$?
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }
7431 { (ac_try="$ac_compiler -V >&5"
7432 case "(($ac_try" in
7433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434 *) ac_try_echo=$ac_try;;
7435 esac
7436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437 (eval "$ac_compiler -V >&5") 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }
7441 rm -f a.out
7442
7443 # If we don't use `.F' as extension, the preprocessor is not run on the
7444 # input file. (Note that this only needs to work for GNU compilers.)
7445 ac_save_ext=$ac_ext
7446 ac_ext=F
7447 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7448 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7449 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 cat >conftest.$ac_ext <<_ACEOF
7453 program main
7454 #ifndef __GNUC__
7455 choke me
7456 #endif
7457
7458 end
7459 _ACEOF
7460 rm -f conftest.$ac_objext
7461 if { (ac_try="$ac_compile"
7462 case "(($ac_try" in
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7465 esac
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467 (eval "$ac_compile") 2>conftest.er1
7468 ac_status=$?
7469 grep -v '^ *+' conftest.er1 >conftest.err
7470 rm -f conftest.er1
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_f77_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest.$ac_objext; then
7477 ac_compiler_gnu=yes
7478 else
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482 ac_compiler_gnu=no
7483 fi
7484
7485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7487
7488 fi
7489 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7490 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7491 ac_ext=$ac_save_ext
7492 ac_test_FFLAGS=${FFLAGS+set}
7493 ac_save_FFLAGS=$FFLAGS
7494 FFLAGS=
7495 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7496 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7497 if test "${ac_cv_prog_f77_g+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500 FFLAGS=-g
7501 cat >conftest.$ac_ext <<_ACEOF
7502 program main
7503
7504 end
7505 _ACEOF
7506 rm -f conftest.$ac_objext
7507 if { (ac_try="$ac_compile"
7508 case "(($ac_try" in
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511 esac
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_compile") 2>conftest.er1
7514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && {
7520 test -z "$ac_f77_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest.$ac_objext; then
7523 ac_cv_prog_f77_g=yes
7524 else
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 ac_cv_prog_f77_g=no
7529 fi
7530
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532
7533 fi
7534 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7535 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7536 if test "$ac_test_FFLAGS" = set; then
7537 FFLAGS=$ac_save_FFLAGS
7538 elif test $ac_cv_prog_f77_g = yes; then
7539 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7540 FFLAGS="-g -O2"
7541 else
7542 FFLAGS="-g"
7543 fi
7544 else
7545 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7546 FFLAGS="-O2"
7547 else
7548 FFLAGS=
7549 fi
7550 fi
7551
7552 G77=`test $ac_compiler_gnu = yes && echo yes`
7553 ac_ext=c
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
7559
7560
7561 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7562
7563 # find the maximum length of command line arguments
7564 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7565 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7566 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569 i=0
7570 teststring="ABCD"
7571
7572 case $build_os in
7573 msdosdjgpp*)
7574 # On DJGPP, this test can blow up pretty badly due to problems in libc
7575 # (any single argument exceeding 2000 bytes causes a buffer overrun
7576 # during glob expansion). Even if it were fixed, the result of this
7577 # check would be larger than it should be.
7578 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7579 ;;
7580
7581 gnu*)
7582 # Under GNU Hurd, this test is not required because there is
7583 # no limit to the length of command line arguments.
7584 # Libtool will interpret -1 as no limit whatsoever
7585 lt_cv_sys_max_cmd_len=-1;
7586 ;;
7587
7588 cygwin* | mingw*)
7589 # On Win9x/ME, this test blows up -- it succeeds, but takes
7590 # about 5 minutes as the teststring grows exponentially.
7591 # Worse, since 9x/ME are not pre-emptively multitasking,
7592 # you end up with a "frozen" computer, even though with patience
7593 # the test eventually succeeds (with a max line length of 256k).
7594 # Instead, let's just punt: use the minimum linelength reported by
7595 # all of the supported platforms: 8192 (on NT/2K/XP).
7596 lt_cv_sys_max_cmd_len=8192;
7597 ;;
7598
7599 amigaos*)
7600 # On AmigaOS with pdksh, this test takes hours, literally.
7601 # So we just punt and use a minimum line length of 8192.
7602 lt_cv_sys_max_cmd_len=8192;
7603 ;;
7604
7605 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7606 # This has been around since 386BSD, at least. Likely further.
7607 if test -x /sbin/sysctl; then
7608 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7609 elif test -x /usr/sbin/sysctl; then
7610 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7611 else
7612 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7613 fi
7614 # And add a safety zone
7615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7617 ;;
7618
7619 interix*)
7620 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7621 lt_cv_sys_max_cmd_len=196608
7622 ;;
7623
7624 osf*)
7625 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7626 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7627 # nice to cause kernel panics so lets avoid the loop below.
7628 # First set a reasonable default.
7629 lt_cv_sys_max_cmd_len=16384
7630 #
7631 if test -x /sbin/sysconfig; then
7632 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7633 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7634 esac
7635 fi
7636 ;;
7637 sco3.2v5*)
7638 lt_cv_sys_max_cmd_len=102400
7639 ;;
7640 sysv5* | sco5v6* | sysv4.2uw2*)
7641 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7642 if test -n "$kargmax"; then
7643 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7644 else
7645 lt_cv_sys_max_cmd_len=32768
7646 fi
7647 ;;
7648 *)
7649 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7650 if test -n "$lt_cv_sys_max_cmd_len"; then
7651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7653 else
7654 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7655 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7656 = "XX$teststring") >/dev/null 2>&1 &&
7657 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7658 lt_cv_sys_max_cmd_len=$new_result &&
7659 test $i != 17 # 1/2 MB should be enough
7660 do
7661 i=`expr $i + 1`
7662 teststring=$teststring$teststring
7663 done
7664 teststring=
7665 # Add a significant safety factor because C++ compilers can tack on massive
7666 # amounts of additional arguments before passing them to the linker.
7667 # It appears as though 1/2 is a usable value.
7668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7669 fi
7670 ;;
7671 esac
7672
7673 fi
7674
7675 if test -n $lt_cv_sys_max_cmd_len ; then
7676 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7677 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7678 else
7679 { echo "$as_me:$LINENO: result: none" >&5
7680 echo "${ECHO_T}none" >&6; }
7681 fi
7682
7683
7684
7685
7686
7687 # Check for command to grab the raw symbol name followed by C symbol from nm.
7688 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7689 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7690 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693
7694 # These are sane defaults that work on at least a few old systems.
7695 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7696
7697 # Character class describing NM global symbol codes.
7698 symcode='[BCDEGRST]'
7699
7700 # Regexp to match symbols that can be accessed directly from C.
7701 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7702
7703 # Transform an extracted symbol line into a proper C declaration
7704 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7705
7706 # Transform an extracted symbol line into symbol name and symbol address
7707 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'"
7708
7709 # Define system-specific variables.
7710 case $host_os in
7711 aix*)
7712 symcode='[BCDT]'
7713 ;;
7714 cygwin* | mingw* | pw32*)
7715 symcode='[ABCDGISTW]'
7716 ;;
7717 hpux*) # Its linker distinguishes data from code symbols
7718 if test "$host_cpu" = ia64; then
7719 symcode='[ABCDEGRST]'
7720 fi
7721 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7722 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'"
7723 ;;
7724 linux* | k*bsd*-gnu)
7725 if test "$host_cpu" = ia64; then
7726 symcode='[ABCDGIRSTW]'
7727 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7728 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'"
7729 fi
7730 ;;
7731 irix* | nonstopux*)
7732 symcode='[BCDEGRST]'
7733 ;;
7734 osf*)
7735 symcode='[BCDEGQRST]'
7736 ;;
7737 solaris*)
7738 symcode='[BDRT]'
7739 ;;
7740 sco3.2v5*)
7741 symcode='[DT]'
7742 ;;
7743 sysv4.2uw2*)
7744 symcode='[DT]'
7745 ;;
7746 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7747 symcode='[ABDT]'
7748 ;;
7749 sysv4)
7750 symcode='[DFNSTU]'
7751 ;;
7752 esac
7753
7754 # Handle CRLF in mingw tool chain
7755 opt_cr=
7756 case $build_os in
7757 mingw*)
7758 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7759 ;;
7760 esac
7761
7762 # If we're using GNU nm, then use its standard symbol codes.
7763 case `$NM -V 2>&1` in
7764 *GNU* | *'with BFD'*)
7765 symcode='[ABCDGIRSTW]' ;;
7766 esac
7767
7768 # Try without a prefix undercore, then with it.
7769 for ac_symprfx in "" "_"; do
7770
7771 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7772 symxfrm="\\1 $ac_symprfx\\2 \\2"
7773
7774 # Write the raw and C identifiers.
7775 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7776
7777 # Check to see that the pipe works correctly.
7778 pipe_works=no
7779
7780 rm -f conftest*
7781 cat > conftest.$ac_ext <<EOF
7782 #ifdef __cplusplus
7783 extern "C" {
7784 #endif
7785 char nm_test_var;
7786 void nm_test_func(){}
7787 #ifdef __cplusplus
7788 }
7789 #endif
7790 int main(){nm_test_var='a';nm_test_func();return(0);}
7791 EOF
7792
7793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794 (eval $ac_compile) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; then
7798 # Now try to grab the symbols.
7799 nlist=conftest.nm
7800 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7801 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && test -s "$nlist"; then
7805 # Try sorting and uniquifying the output.
7806 if sort "$nlist" | uniq > "$nlist"T; then
7807 mv -f "$nlist"T "$nlist"
7808 else
7809 rm -f "$nlist"T
7810 fi
7811
7812 # Make sure that we snagged all the symbols we need.
7813 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7814 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7815 cat <<EOF > conftest.$ac_ext
7816 #ifdef __cplusplus
7817 extern "C" {
7818 #endif
7819
7820 EOF
7821 # Now generate the symbol file.
7822 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7823
7824 cat <<EOF >> conftest.$ac_ext
7825 #if defined (__STDC__) && __STDC__
7826 # define lt_ptr_t void *
7827 #else
7828 # define lt_ptr_t char *
7829 # define const
7830 #endif
7831
7832 /* The mapping between symbol names and symbols. */
7833 const struct {
7834 const char *name;
7835 lt_ptr_t address;
7836 }
7837 lt_preloaded_symbols[] =
7838 {
7839 EOF
7840 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7841 cat <<\EOF >> conftest.$ac_ext
7842 {0, (lt_ptr_t) 0}
7843 };
7844
7845 #ifdef __cplusplus
7846 }
7847 #endif
7848 EOF
7849 # Now try linking the two files.
7850 mv conftest.$ac_objext conftstm.$ac_objext
7851 lt_save_LIBS="$LIBS"
7852 lt_save_CFLAGS="$CFLAGS"
7853 LIBS="conftstm.$ac_objext"
7854 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7856 (eval $ac_link) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7860 pipe_works=yes
7861 fi
7862 LIBS="$lt_save_LIBS"
7863 CFLAGS="$lt_save_CFLAGS"
7864 else
7865 echo "cannot find nm_test_func in $nlist" >&5
7866 fi
7867 else
7868 echo "cannot find nm_test_var in $nlist" >&5
7869 fi
7870 else
7871 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7872 fi
7873 else
7874 echo "$progname: failed program was:" >&5
7875 cat conftest.$ac_ext >&5
7876 fi
7877 rm -f conftest* conftst*
7878
7879 # Do not use the global_symbol_pipe unless it works.
7880 if test "$pipe_works" = yes; then
7881 break
7882 else
7883 lt_cv_sys_global_symbol_pipe=
7884 fi
7885 done
7886
7887 fi
7888
7889 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7890 lt_cv_sys_global_symbol_to_cdecl=
7891 fi
7892 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7893 { echo "$as_me:$LINENO: result: failed" >&5
7894 echo "${ECHO_T}failed" >&6; }
7895 else
7896 { echo "$as_me:$LINENO: result: ok" >&5
7897 echo "${ECHO_T}ok" >&6; }
7898 fi
7899
7900 { echo "$as_me:$LINENO: checking for objdir" >&5
7901 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7902 if test "${lt_cv_objdir+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905 rm -f .libs 2>/dev/null
7906 mkdir .libs 2>/dev/null
7907 if test -d .libs; then
7908 lt_cv_objdir=.libs
7909 else
7910 # MS-DOS does not allow filenames that begin with a dot.
7911 lt_cv_objdir=_libs
7912 fi
7913 rmdir .libs 2>/dev/null
7914 fi
7915 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7916 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7917 objdir=$lt_cv_objdir
7918
7919
7920
7921
7922
7923 case $host_os in
7924 aix3*)
7925 # AIX sometimes has problems with the GCC collect2 program. For some
7926 # reason, if we set the COLLECT_NAMES environment variable, the problems
7927 # vanish in a puff of smoke.
7928 if test "X${COLLECT_NAMES+set}" != Xset; then
7929 COLLECT_NAMES=
7930 export COLLECT_NAMES
7931 fi
7932 ;;
7933 esac
7934
7935 # Sed substitution that helps us do robust quoting. It backslashifies
7936 # metacharacters that are still active within double-quoted strings.
7937 Xsed='sed -e 1s/^X//'
7938 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7939
7940 # Same as above, but do not quote variable references.
7941 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7942
7943 # Sed substitution to delay expansion of an escaped shell variable in a
7944 # double_quote_subst'ed string.
7945 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7946
7947 # Sed substitution to avoid accidental globbing in evaled expressions
7948 no_glob_subst='s/\*/\\\*/g'
7949
7950 # Constants:
7951 rm="rm -f"
7952
7953 # Global variables:
7954 default_ofile=libtool
7955 can_build_shared=yes
7956
7957 # All known linkers require a `.a' archive for static linking (except MSVC,
7958 # which needs '.lib').
7959 libext=a
7960 ltmain="$ac_aux_dir/ltmain.sh"
7961 ofile="$default_ofile"
7962 with_gnu_ld="$lt_cv_prog_gnu_ld"
7963
7964 if test -n "$ac_tool_prefix"; then
7965 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7966 set dummy ${ac_tool_prefix}ar; ac_word=$2
7967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7969 if test "${ac_cv_prog_AR+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972 if test -n "$AR"; then
7973 ac_cv_prog_AR="$AR" # Let the user override the test.
7974 else
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 for as_dir in $PATH
7977 do
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7982 ac_cv_prog_AR="${ac_tool_prefix}ar"
7983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 break 2
7985 fi
7986 done
7987 done
7988 IFS=$as_save_IFS
7989
7990 fi
7991 fi
7992 AR=$ac_cv_prog_AR
7993 if test -n "$AR"; then
7994 { echo "$as_me:$LINENO: result: $AR" >&5
7995 echo "${ECHO_T}$AR" >&6; }
7996 else
7997 { echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6; }
7999 fi
8000
8001
8002 fi
8003 if test -z "$ac_cv_prog_AR"; then
8004 ac_ct_AR=$AR
8005 # Extract the first word of "ar", so it can be a program name with args.
8006 set dummy ar; ac_word=$2
8007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8009 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012 if test -n "$ac_ct_AR"; then
8013 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8014 else
8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 for as_dir in $PATH
8017 do
8018 IFS=$as_save_IFS
8019 test -z "$as_dir" && as_dir=.
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022 ac_cv_prog_ac_ct_AR="ar"
8023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 break 2
8025 fi
8026 done
8027 done
8028 IFS=$as_save_IFS
8029
8030 fi
8031 fi
8032 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8033 if test -n "$ac_ct_AR"; then
8034 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8035 echo "${ECHO_T}$ac_ct_AR" >&6; }
8036 else
8037 { echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6; }
8039 fi
8040
8041 if test "x$ac_ct_AR" = x; then
8042 AR="false"
8043 else
8044 case $cross_compiling:$ac_tool_warned in
8045 yes:)
8046 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8047 whose name does not start with the host triplet. If you think this
8048 configuration is useful to you, please write to autoconf@gnu.org." >&5
8049 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8050 whose name does not start with the host triplet. If you think this
8051 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8052 ac_tool_warned=yes ;;
8053 esac
8054 AR=$ac_ct_AR
8055 fi
8056 else
8057 AR="$ac_cv_prog_AR"
8058 fi
8059
8060 if test -n "$ac_tool_prefix"; then
8061 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8062 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8065 if test "${ac_cv_prog_RANLIB+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 else
8068 if test -n "$RANLIB"; then
8069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8070 else
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074 IFS=$as_save_IFS
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8080 break 2
8081 fi
8082 done
8083 done
8084 IFS=$as_save_IFS
8085
8086 fi
8087 fi
8088 RANLIB=$ac_cv_prog_RANLIB
8089 if test -n "$RANLIB"; then
8090 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8091 echo "${ECHO_T}$RANLIB" >&6; }
8092 else
8093 { echo "$as_me:$LINENO: result: no" >&5
8094 echo "${ECHO_T}no" >&6; }
8095 fi
8096
8097
8098 fi
8099 if test -z "$ac_cv_prog_RANLIB"; then
8100 ac_ct_RANLIB=$RANLIB
8101 # Extract the first word of "ranlib", so it can be a program name with args.
8102 set dummy ranlib; ac_word=$2
8103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8105 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108 if test -n "$ac_ct_RANLIB"; then
8109 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8110 else
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8118 ac_cv_prog_ac_ct_RANLIB="ranlib"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122 done
8123 done
8124 IFS=$as_save_IFS
8125
8126 fi
8127 fi
8128 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8129 if test -n "$ac_ct_RANLIB"; then
8130 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8131 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8132 else
8133 { echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6; }
8135 fi
8136
8137 if test "x$ac_ct_RANLIB" = x; then
8138 RANLIB=":"
8139 else
8140 case $cross_compiling:$ac_tool_warned in
8141 yes:)
8142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8143 whose name does not start with the host triplet. If you think this
8144 configuration is useful to you, please write to autoconf@gnu.org." >&5
8145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8146 whose name does not start with the host triplet. If you think this
8147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8148 ac_tool_warned=yes ;;
8149 esac
8150 RANLIB=$ac_ct_RANLIB
8151 fi
8152 else
8153 RANLIB="$ac_cv_prog_RANLIB"
8154 fi
8155
8156 if test -n "$ac_tool_prefix"; then
8157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8158 set dummy ${ac_tool_prefix}strip; ac_word=$2
8159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8161 if test "${ac_cv_prog_STRIP+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164 if test -n "$STRIP"; then
8165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178 done
8179 done
8180 IFS=$as_save_IFS
8181
8182 fi
8183 fi
8184 STRIP=$ac_cv_prog_STRIP
8185 if test -n "$STRIP"; then
8186 { echo "$as_me:$LINENO: result: $STRIP" >&5
8187 echo "${ECHO_T}$STRIP" >&6; }
8188 else
8189 { echo "$as_me:$LINENO: result: no" >&5
8190 echo "${ECHO_T}no" >&6; }
8191 fi
8192
8193
8194 fi
8195 if test -z "$ac_cv_prog_STRIP"; then
8196 ac_ct_STRIP=$STRIP
8197 # Extract the first word of "strip", so it can be a program name with args.
8198 set dummy strip; ac_word=$2
8199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8201 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204 if test -n "$ac_ct_STRIP"; then
8205 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8209 do
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_prog_ac_ct_STRIP="strip"
8215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8217 fi
8218 done
8219 done
8220 IFS=$as_save_IFS
8221
8222 fi
8223 fi
8224 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8225 if test -n "$ac_ct_STRIP"; then
8226 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8227 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8228 else
8229 { echo "$as_me:$LINENO: result: no" >&5
8230 echo "${ECHO_T}no" >&6; }
8231 fi
8232
8233 if test "x$ac_ct_STRIP" = x; then
8234 STRIP=":"
8235 else
8236 case $cross_compiling:$ac_tool_warned in
8237 yes:)
8238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8239 whose name does not start with the host triplet. If you think this
8240 configuration is useful to you, please write to autoconf@gnu.org." >&5
8241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8242 whose name does not start with the host triplet. If you think this
8243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8244 ac_tool_warned=yes ;;
8245 esac
8246 STRIP=$ac_ct_STRIP
8247 fi
8248 else
8249 STRIP="$ac_cv_prog_STRIP"
8250 fi
8251
8252
8253 old_CC="$CC"
8254 old_CFLAGS="$CFLAGS"
8255
8256 # Set sane defaults for various variables
8257 test -z "$AR" && AR=ar
8258 test -z "$AR_FLAGS" && AR_FLAGS=cru
8259 test -z "$AS" && AS=as
8260 test -z "$CC" && CC=cc
8261 test -z "$LTCC" && LTCC=$CC
8262 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8263 test -z "$DLLTOOL" && DLLTOOL=dlltool
8264 test -z "$LD" && LD=ld
8265 test -z "$LN_S" && LN_S="ln -s"
8266 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8267 test -z "$NM" && NM=nm
8268 test -z "$SED" && SED=sed
8269 test -z "$OBJDUMP" && OBJDUMP=objdump
8270 test -z "$RANLIB" && RANLIB=:
8271 test -z "$STRIP" && STRIP=:
8272 test -z "$ac_objext" && ac_objext=o
8273
8274 # Determine commands to create old-style static archives.
8275 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8276 old_postinstall_cmds='chmod 644 $oldlib'
8277 old_postuninstall_cmds=
8278
8279 if test -n "$RANLIB"; then
8280 case $host_os in
8281 openbsd*)
8282 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8283 ;;
8284 *)
8285 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8286 ;;
8287 esac
8288 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8289 fi
8290
8291 for cc_temp in $compiler""; do
8292 case $cc_temp in
8293 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8294 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8295 \-*) ;;
8296 *) break;;
8297 esac
8298 done
8299 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8300
8301
8302 # Only perform the check for file, if the check method requires it
8303 case $deplibs_check_method in
8304 file_magic*)
8305 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8306 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8307 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8308 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311 case $MAGIC_CMD in
8312 [\\/*] | ?:[\\/]*)
8313 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8314 ;;
8315 *)
8316 lt_save_MAGIC_CMD="$MAGIC_CMD"
8317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8318 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8319 for ac_dir in $ac_dummy; do
8320 IFS="$lt_save_ifs"
8321 test -z "$ac_dir" && ac_dir=.
8322 if test -f $ac_dir/${ac_tool_prefix}file; then
8323 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8324 if test -n "$file_magic_test_file"; then
8325 case $deplibs_check_method in
8326 "file_magic "*)
8327 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8329 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8330 $EGREP "$file_magic_regex" > /dev/null; then
8331 :
8332 else
8333 cat <<EOF 1>&2
8334
8335 *** Warning: the command libtool uses to detect shared libraries,
8336 *** $file_magic_cmd, produces output that libtool cannot recognize.
8337 *** The result is that libtool may fail to recognize shared libraries
8338 *** as such. This will affect the creation of libtool libraries that
8339 *** depend on shared libraries, but programs linked with such libtool
8340 *** libraries will work regardless of this problem. Nevertheless, you
8341 *** may want to report the problem to your system manager and/or to
8342 *** bug-libtool@gnu.org
8343
8344 EOF
8345 fi ;;
8346 esac
8347 fi
8348 break
8349 fi
8350 done
8351 IFS="$lt_save_ifs"
8352 MAGIC_CMD="$lt_save_MAGIC_CMD"
8353 ;;
8354 esac
8355 fi
8356
8357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358 if test -n "$MAGIC_CMD"; then
8359 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8360 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8361 else
8362 { echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6; }
8364 fi
8365
8366 if test -z "$lt_cv_path_MAGIC_CMD"; then
8367 if test -n "$ac_tool_prefix"; then
8368 { echo "$as_me:$LINENO: checking for file" >&5
8369 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8370 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 else
8373 case $MAGIC_CMD in
8374 [\\/*] | ?:[\\/]*)
8375 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8376 ;;
8377 *)
8378 lt_save_MAGIC_CMD="$MAGIC_CMD"
8379 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8380 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8381 for ac_dir in $ac_dummy; do
8382 IFS="$lt_save_ifs"
8383 test -z "$ac_dir" && ac_dir=.
8384 if test -f $ac_dir/file; then
8385 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8386 if test -n "$file_magic_test_file"; then
8387 case $deplibs_check_method in
8388 "file_magic "*)
8389 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8391 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8392 $EGREP "$file_magic_regex" > /dev/null; then
8393 :
8394 else
8395 cat <<EOF 1>&2
8396
8397 *** Warning: the command libtool uses to detect shared libraries,
8398 *** $file_magic_cmd, produces output that libtool cannot recognize.
8399 *** The result is that libtool may fail to recognize shared libraries
8400 *** as such. This will affect the creation of libtool libraries that
8401 *** depend on shared libraries, but programs linked with such libtool
8402 *** libraries will work regardless of this problem. Nevertheless, you
8403 *** may want to report the problem to your system manager and/or to
8404 *** bug-libtool@gnu.org
8405
8406 EOF
8407 fi ;;
8408 esac
8409 fi
8410 break
8411 fi
8412 done
8413 IFS="$lt_save_ifs"
8414 MAGIC_CMD="$lt_save_MAGIC_CMD"
8415 ;;
8416 esac
8417 fi
8418
8419 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8420 if test -n "$MAGIC_CMD"; then
8421 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8422 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8423 else
8424 { echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6; }
8426 fi
8427
8428 else
8429 MAGIC_CMD=:
8430 fi
8431 fi
8432
8433 fi
8434 ;;
8435 esac
8436
8437 enable_dlopen=no
8438 enable_win32_dll=no
8439
8440 # Check whether --enable-libtool-lock was given.
8441 if test "${enable_libtool_lock+set}" = set; then
8442 enableval=$enable_libtool_lock;
8443 fi
8444
8445 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8446
8447
8448 # Check whether --with-pic was given.
8449 if test "${with_pic+set}" = set; then
8450 withval=$with_pic; pic_mode="$withval"
8451 else
8452 pic_mode=default
8453 fi
8454
8455 test -z "$pic_mode" && pic_mode=default
8456
8457 # Use C for the default configuration in the libtool script
8458 tagname=
8459 lt_save_CC="$CC"
8460 ac_ext=c
8461 ac_cpp='$CPP $CPPFLAGS'
8462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8465
8466
8467 # Source file extension for C test sources.
8468 ac_ext=c
8469
8470 # Object file extension for compiled C test sources.
8471 objext=o
8472 objext=$objext
8473
8474 # Code to be used in simple compile tests
8475 lt_simple_compile_test_code="int some_variable = 0;"
8476
8477 # Code to be used in simple link tests
8478 lt_simple_link_test_code='int main(){return(0);}'
8479
8480
8481 # If no C compiler was specified, use CC.
8482 LTCC=${LTCC-"$CC"}
8483
8484 # If no C compiler flags were specified, use CFLAGS.
8485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8486
8487 # Allow CC to be a program name with arguments.
8488 compiler=$CC
8489
8490
8491 # save warnings/boilerplate of simple test code
8492 ac_outfile=conftest.$ac_objext
8493 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8494 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8495 _lt_compiler_boilerplate=`cat conftest.err`
8496 $rm conftest*
8497
8498 ac_outfile=conftest.$ac_objext
8499 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8500 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8501 _lt_linker_boilerplate=`cat conftest.err`
8502 $rm conftest*
8503
8504
8505
8506 lt_prog_compiler_no_builtin_flag=
8507
8508 if test "$GCC" = yes; then
8509 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8510
8511
8512 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8513 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8514 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517 lt_cv_prog_compiler_rtti_exceptions=no
8518 ac_outfile=conftest.$ac_objext
8519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8520 lt_compiler_flag="-fno-rtti -fno-exceptions"
8521 # Insert the option either (1) after the last *FLAGS variable, or
8522 # (2) before a word containing "conftest.", or (3) at the end.
8523 # Note that $ac_compile itself does not contain backslashes and begins
8524 # with a dollar sign (not a hyphen), so the echo should work correctly.
8525 # The option is referenced via a variable to avoid confusing sed.
8526 lt_compile=`echo "$ac_compile" | $SED \
8527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8529 -e 's:$: $lt_compiler_flag:'`
8530 (eval echo "\"\$as_me:8531: $lt_compile\"" >&5)
8531 (eval "$lt_compile" 2>conftest.err)
8532 ac_status=$?
8533 cat conftest.err >&5
8534 echo "$as_me:8535: \$? = $ac_status" >&5
8535 if (exit $ac_status) && test -s "$ac_outfile"; then
8536 # The compiler can only warn and ignore the option if not recognized
8537 # So say no if there are warnings other than the usual output.
8538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8541 lt_cv_prog_compiler_rtti_exceptions=yes
8542 fi
8543 fi
8544 $rm conftest*
8545
8546 fi
8547 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8548 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8549
8550 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8551 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8552 else
8553 :
8554 fi
8555
8556 fi
8557
8558 lt_prog_compiler_wl=
8559 lt_prog_compiler_pic=
8560 lt_prog_compiler_static=
8561
8562 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8563 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8564
8565 if test "$GCC" = yes; then
8566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_static='-static'
8568
8569 case $host_os in
8570 aix*)
8571 # All AIX code is PIC.
8572 if test "$host_cpu" = ia64; then
8573 # AIX 5 now supports IA64 processor
8574 lt_prog_compiler_static='-Bstatic'
8575 fi
8576 ;;
8577
8578 amigaos*)
8579 # FIXME: we need at least 68020 code to build shared libraries, but
8580 # adding the `-m68020' flag to GCC prevents building anything better,
8581 # like `-m68040'.
8582 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8583 ;;
8584
8585 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8586 # PIC is the default for these OSes.
8587 ;;
8588
8589 mingw* | cygwin* | pw32* | os2*)
8590 # This hack is so that the source file can tell whether it is being
8591 # built for inclusion in a dll (and should export symbols for example).
8592 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8593 # (--disable-auto-import) libraries
8594 lt_prog_compiler_pic='-DDLL_EXPORT'
8595 ;;
8596
8597 darwin* | rhapsody*)
8598 # PIC is the default on this platform
8599 # Common symbols not allowed in MH_DYLIB files
8600 lt_prog_compiler_pic='-fno-common'
8601 ;;
8602
8603 interix[3-9]*)
8604 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8605 # Instead, we relocate shared libraries at runtime.
8606 ;;
8607
8608 msdosdjgpp*)
8609 # Just because we use GCC doesn't mean we suddenly get shared libraries
8610 # on systems that don't support them.
8611 lt_prog_compiler_can_build_shared=no
8612 enable_shared=no
8613 ;;
8614
8615 sysv4*MP*)
8616 if test -d /usr/nec; then
8617 lt_prog_compiler_pic=-Kconform_pic
8618 fi
8619 ;;
8620
8621 hpux*)
8622 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8623 # not for PA HP-UX.
8624 case $host_cpu in
8625 hppa*64*|ia64*)
8626 # +Z the default
8627 ;;
8628 *)
8629 lt_prog_compiler_pic='-fPIC'
8630 ;;
8631 esac
8632 ;;
8633
8634 *)
8635 lt_prog_compiler_pic='-fPIC'
8636 ;;
8637 esac
8638 else
8639 # PORTME Check for flag to pass linker flags through the system compiler.
8640 case $host_os in
8641 aix*)
8642 lt_prog_compiler_wl='-Wl,'
8643 if test "$host_cpu" = ia64; then
8644 # AIX 5 now supports IA64 processor
8645 lt_prog_compiler_static='-Bstatic'
8646 else
8647 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8648 fi
8649 ;;
8650 darwin*)
8651 # PIC is the default on this platform
8652 # Common symbols not allowed in MH_DYLIB files
8653 case $cc_basename in
8654 xlc*)
8655 lt_prog_compiler_pic='-qnocommon'
8656 lt_prog_compiler_wl='-Wl,'
8657 ;;
8658 esac
8659 ;;
8660
8661 mingw* | cygwin* | pw32* | os2*)
8662 # This hack is so that the source file can tell whether it is being
8663 # built for inclusion in a dll (and should export symbols for example).
8664 lt_prog_compiler_pic='-DDLL_EXPORT'
8665 ;;
8666
8667 hpux9* | hpux10* | hpux11*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8670 # not for PA HP-UX.
8671 case $host_cpu in
8672 hppa*64*|ia64*)
8673 # +Z the default
8674 ;;
8675 *)
8676 lt_prog_compiler_pic='+Z'
8677 ;;
8678 esac
8679 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8680 lt_prog_compiler_static='${wl}-a ${wl}archive'
8681 ;;
8682
8683 irix5* | irix6* | nonstopux*)
8684 lt_prog_compiler_wl='-Wl,'
8685 # PIC (with -KPIC) is the default.
8686 lt_prog_compiler_static='-non_shared'
8687 ;;
8688
8689 newsos6)
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-Bstatic'
8692 ;;
8693
8694 linux* | k*bsd*-gnu)
8695 case $cc_basename in
8696 icc* | ecc*)
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-static'
8700 ;;
8701 pgcc* | pgf77* | pgf90* | pgf95*)
8702 # Portland Group compilers (*not* the Pentium gcc compiler,
8703 # which looks to be a dead project)
8704 lt_prog_compiler_wl='-Wl,'
8705 lt_prog_compiler_pic='-fpic'
8706 lt_prog_compiler_static='-Bstatic'
8707 ;;
8708 ccc*)
8709 lt_prog_compiler_wl='-Wl,'
8710 # All Alpha code is PIC.
8711 lt_prog_compiler_static='-non_shared'
8712 ;;
8713 *)
8714 case `$CC -V 2>&1 | sed 5q` in
8715 *Sun\ C*)
8716 # Sun C 5.9
8717 lt_prog_compiler_pic='-KPIC'
8718 lt_prog_compiler_static='-Bstatic'
8719 lt_prog_compiler_wl='-Wl,'
8720 ;;
8721 *Sun\ F*)
8722 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_wl=''
8726 ;;
8727 esac
8728 ;;
8729 esac
8730 ;;
8731
8732 osf3* | osf4* | osf5*)
8733 lt_prog_compiler_wl='-Wl,'
8734 # All OSF/1 code is PIC.
8735 lt_prog_compiler_static='-non_shared'
8736 ;;
8737
8738 rdos*)
8739 lt_prog_compiler_static='-non_shared'
8740 ;;
8741
8742 solaris*)
8743 lt_prog_compiler_pic='-KPIC'
8744 lt_prog_compiler_static='-Bstatic'
8745 case $cc_basename in
8746 f77* | f90* | f95*)
8747 lt_prog_compiler_wl='-Qoption ld ';;
8748 *)
8749 lt_prog_compiler_wl='-Wl,';;
8750 esac
8751 ;;
8752
8753 sunos4*)
8754 lt_prog_compiler_wl='-Qoption ld '
8755 lt_prog_compiler_pic='-PIC'
8756 lt_prog_compiler_static='-Bstatic'
8757 ;;
8758
8759 sysv4 | sysv4.2uw2* | sysv4.3*)
8760 lt_prog_compiler_wl='-Wl,'
8761 lt_prog_compiler_pic='-KPIC'
8762 lt_prog_compiler_static='-Bstatic'
8763 ;;
8764
8765 sysv4*MP*)
8766 if test -d /usr/nec ;then
8767 lt_prog_compiler_pic='-Kconform_pic'
8768 lt_prog_compiler_static='-Bstatic'
8769 fi
8770 ;;
8771
8772 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-Bstatic'
8776 ;;
8777
8778 unicos*)
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_can_build_shared=no
8781 ;;
8782
8783 uts4*)
8784 lt_prog_compiler_pic='-pic'
8785 lt_prog_compiler_static='-Bstatic'
8786 ;;
8787
8788 *)
8789 lt_prog_compiler_can_build_shared=no
8790 ;;
8791 esac
8792 fi
8793
8794 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8795 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8796
8797 #
8798 # Check to make sure the PIC flag actually works.
8799 #
8800 if test -n "$lt_prog_compiler_pic"; then
8801
8802 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8803 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8804 if test "${lt_prog_compiler_pic_works+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807 lt_prog_compiler_pic_works=no
8808 ac_outfile=conftest.$ac_objext
8809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8810 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8811 # Insert the option either (1) after the last *FLAGS variable, or
8812 # (2) before a word containing "conftest.", or (3) at the end.
8813 # Note that $ac_compile itself does not contain backslashes and begins
8814 # with a dollar sign (not a hyphen), so the echo should work correctly.
8815 # The option is referenced via a variable to avoid confusing sed.
8816 lt_compile=`echo "$ac_compile" | $SED \
8817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8819 -e 's:$: $lt_compiler_flag:'`
8820 (eval echo "\"\$as_me:8821: $lt_compile\"" >&5)
8821 (eval "$lt_compile" 2>conftest.err)
8822 ac_status=$?
8823 cat conftest.err >&5
8824 echo "$as_me:8825: \$? = $ac_status" >&5
8825 if (exit $ac_status) && test -s "$ac_outfile"; then
8826 # The compiler can only warn and ignore the option if not recognized
8827 # So say no if there are warnings other than the usual output.
8828 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8831 lt_prog_compiler_pic_works=yes
8832 fi
8833 fi
8834 $rm conftest*
8835
8836 fi
8837 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8838 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8839
8840 if test x"$lt_prog_compiler_pic_works" = xyes; then
8841 case $lt_prog_compiler_pic in
8842 "" | " "*) ;;
8843 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8844 esac
8845 else
8846 lt_prog_compiler_pic=
8847 lt_prog_compiler_can_build_shared=no
8848 fi
8849
8850 fi
8851 case $host_os in
8852 # For platforms which do not support PIC, -DPIC is meaningless:
8853 *djgpp*)
8854 lt_prog_compiler_pic=
8855 ;;
8856 *)
8857 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8858 ;;
8859 esac
8860
8861 #
8862 # Check to make sure the static flag actually works.
8863 #
8864 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8865 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8866 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8867 if test "${lt_prog_compiler_static_works+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870 lt_prog_compiler_static_works=no
8871 save_LDFLAGS="$LDFLAGS"
8872 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8873 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8874 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8875 # The linker can only warn and ignore the option if not recognized
8876 # So say no if there are warnings
8877 if test -s conftest.err; then
8878 # Append any errors to the config.log.
8879 cat conftest.err 1>&5
8880 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8882 if diff conftest.exp conftest.er2 >/dev/null; then
8883 lt_prog_compiler_static_works=yes
8884 fi
8885 else
8886 lt_prog_compiler_static_works=yes
8887 fi
8888 fi
8889 $rm conftest*
8890 LDFLAGS="$save_LDFLAGS"
8891
8892 fi
8893 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8894 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8895
8896 if test x"$lt_prog_compiler_static_works" = xyes; then
8897 :
8898 else
8899 lt_prog_compiler_static=
8900 fi
8901
8902
8903 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8904 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8905 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908 lt_cv_prog_compiler_c_o=no
8909 $rm -r conftest 2>/dev/null
8910 mkdir conftest
8911 cd conftest
8912 mkdir out
8913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8914
8915 lt_compiler_flag="-o out/conftest2.$ac_objext"
8916 # Insert the option either (1) after the last *FLAGS variable, or
8917 # (2) before a word containing "conftest.", or (3) at the end.
8918 # Note that $ac_compile itself does not contain backslashes and begins
8919 # with a dollar sign (not a hyphen), so the echo should work correctly.
8920 lt_compile=`echo "$ac_compile" | $SED \
8921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8923 -e 's:$: $lt_compiler_flag:'`
8924 (eval echo "\"\$as_me:8925: $lt_compile\"" >&5)
8925 (eval "$lt_compile" 2>out/conftest.err)
8926 ac_status=$?
8927 cat out/conftest.err >&5
8928 echo "$as_me:8929: \$? = $ac_status" >&5
8929 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8930 then
8931 # The compiler can only warn and ignore the option if not recognized
8932 # So say no if there are warnings
8933 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8936 lt_cv_prog_compiler_c_o=yes
8937 fi
8938 fi
8939 chmod u+w . 2>&5
8940 $rm conftest*
8941 # SGI C++ compiler will create directory out/ii_files/ for
8942 # template instantiation
8943 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8944 $rm out/* && rmdir out
8945 cd ..
8946 rmdir conftest
8947 $rm conftest*
8948
8949 fi
8950 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8951 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8952
8953
8954 hard_links="nottested"
8955 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8956 # do not overwrite the value of need_locks provided by the user
8957 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8958 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8959 hard_links=yes
8960 $rm conftest*
8961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8962 touch conftest.a
8963 ln conftest.a conftest.b 2>&5 || hard_links=no
8964 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8965 { echo "$as_me:$LINENO: result: $hard_links" >&5
8966 echo "${ECHO_T}$hard_links" >&6; }
8967 if test "$hard_links" = no; then
8968 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8969 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8970 need_locks=warn
8971 fi
8972 else
8973 need_locks=no
8974 fi
8975
8976 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8977 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8978
8979 runpath_var=
8980 allow_undefined_flag=
8981 enable_shared_with_static_runtimes=no
8982 archive_cmds=
8983 archive_expsym_cmds=
8984 old_archive_From_new_cmds=
8985 old_archive_from_expsyms_cmds=
8986 export_dynamic_flag_spec=
8987 whole_archive_flag_spec=
8988 thread_safe_flag_spec=
8989 hardcode_libdir_flag_spec=
8990 hardcode_libdir_flag_spec_ld=
8991 hardcode_libdir_separator=
8992 hardcode_direct=no
8993 hardcode_minus_L=no
8994 hardcode_shlibpath_var=unsupported
8995 link_all_deplibs=unknown
8996 hardcode_automatic=no
8997 module_cmds=
8998 module_expsym_cmds=
8999 always_export_symbols=no
9000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9001 # include_expsyms should be a list of space-separated symbols to be *always*
9002 # included in the symbol list
9003 include_expsyms=
9004 # exclude_expsyms can be an extended regexp of symbols to exclude
9005 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9006 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9007 # as well as any symbol that contains `d'.
9008 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9010 # platforms (ab)use it in PIC code, but their linkers get confused if
9011 # the symbol is explicitly referenced. Since portable code cannot
9012 # rely on this symbol name, it's probably fine to never include it in
9013 # preloaded symbol tables.
9014 extract_expsyms_cmds=
9015 # Just being paranoid about ensuring that cc_basename is set.
9016 for cc_temp in $compiler""; do
9017 case $cc_temp in
9018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9020 \-*) ;;
9021 *) break;;
9022 esac
9023 done
9024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9025
9026 case $host_os in
9027 cygwin* | mingw* | pw32*)
9028 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9029 # When not using gcc, we currently assume that we are using
9030 # Microsoft Visual C++.
9031 if test "$GCC" != yes; then
9032 with_gnu_ld=no
9033 fi
9034 ;;
9035 interix*)
9036 # we just hope/assume this is gcc and not c89 (= MSVC++)
9037 with_gnu_ld=yes
9038 ;;
9039 openbsd*)
9040 with_gnu_ld=no
9041 ;;
9042 esac
9043
9044 ld_shlibs=yes
9045 if test "$with_gnu_ld" = yes; then
9046 # If archive_cmds runs LD, not CC, wlarc should be empty
9047 wlarc='${wl}'
9048
9049 # Set some defaults for GNU ld with shared library support. These
9050 # are reset later if shared libraries are not supported. Putting them
9051 # here allows them to be overridden if necessary.
9052 runpath_var=LD_RUN_PATH
9053 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9054 export_dynamic_flag_spec='${wl}--export-dynamic'
9055 # ancient GNU ld didn't support --whole-archive et. al.
9056 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9057 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9058 else
9059 whole_archive_flag_spec=
9060 fi
9061 supports_anon_versioning=no
9062 case `$LD -v 2>/dev/null` in
9063 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9064 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9065 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9066 *\ 2.11.*) ;; # other 2.11 versions
9067 *) supports_anon_versioning=yes ;;
9068 esac
9069
9070 # See if GNU ld supports shared libraries.
9071 case $host_os in
9072 aix3* | aix4* | aix5*)
9073 # On AIX/PPC, the GNU linker is very broken
9074 if test "$host_cpu" != ia64; then
9075 ld_shlibs=no
9076 cat <<EOF 1>&2
9077
9078 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9079 *** to be unable to reliably create shared libraries on AIX.
9080 *** Therefore, libtool is disabling shared libraries support. If you
9081 *** really care for shared libraries, you may want to modify your PATH
9082 *** so that a non-GNU linker is found, and then restart.
9083
9084 EOF
9085 fi
9086 ;;
9087
9088 amigaos*)
9089 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)'
9090 hardcode_libdir_flag_spec='-L$libdir'
9091 hardcode_minus_L=yes
9092
9093 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9094 # that the semantics of dynamic libraries on AmigaOS, at least up
9095 # to version 4, is to share data among multiple programs linked
9096 # with the same dynamic library. Since this doesn't match the
9097 # behavior of shared libraries on other platforms, we can't use
9098 # them.
9099 ld_shlibs=no
9100 ;;
9101
9102 beos*)
9103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9104 allow_undefined_flag=unsupported
9105 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9106 # support --undefined. This deserves some investigation. FIXME
9107 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 else
9109 ld_shlibs=no
9110 fi
9111 ;;
9112
9113 cygwin* | mingw* | pw32*)
9114 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9115 # as there is no search path for DLLs.
9116 hardcode_libdir_flag_spec='-L$libdir'
9117 allow_undefined_flag=unsupported
9118 always_export_symbols=no
9119 enable_shared_with_static_runtimes=yes
9120 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9121
9122 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9124 # If the export-symbols file already is a .def file (1st line
9125 # is EXPORTS), use it as is; otherwise, prepend...
9126 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9127 cp $export_symbols $output_objdir/$soname.def;
9128 else
9129 echo EXPORTS > $output_objdir/$soname.def;
9130 cat $export_symbols >> $output_objdir/$soname.def;
9131 fi~
9132 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9133 else
9134 ld_shlibs=no
9135 fi
9136 ;;
9137
9138 interix[3-9]*)
9139 hardcode_direct=no
9140 hardcode_shlibpath_var=no
9141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9142 export_dynamic_flag_spec='${wl}-E'
9143 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9144 # Instead, shared libraries are loaded at an image base (0x10000000 by
9145 # default) and relocated if they conflict, which is a slow very memory
9146 # consuming and fragmenting process. To avoid this, we pick a random,
9147 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9148 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9150 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'
9151 ;;
9152
9153 gnu* | linux* | k*bsd*-gnu)
9154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9155 tmp_addflag=
9156 case $cc_basename,$host_cpu in
9157 pgcc*) # Portland Group C compiler
9158 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'
9159 tmp_addflag=' $pic_flag'
9160 ;;
9161 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9162 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'
9163 tmp_addflag=' $pic_flag -Mnomain' ;;
9164 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9165 tmp_addflag=' -i_dynamic' ;;
9166 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9167 tmp_addflag=' -i_dynamic -nofor_main' ;;
9168 ifc* | ifort*) # Intel Fortran compiler
9169 tmp_addflag=' -nofor_main' ;;
9170 esac
9171 case `$CC -V 2>&1 | sed 5q` in
9172 *Sun\ C*) # Sun C 5.9
9173 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'
9174 tmp_sharedflag='-G' ;;
9175 *Sun\ F*) # Sun Fortran 8.3
9176 tmp_sharedflag='-G' ;;
9177 *)
9178 tmp_sharedflag='-shared' ;;
9179 esac
9180 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9181
9182 if test $supports_anon_versioning = yes; then
9183 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9185 $echo "local: *; };" >> $output_objdir/$libname.ver~
9186 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9187 fi
9188 link_all_deplibs=no
9189 else
9190 ld_shlibs=no
9191 fi
9192 ;;
9193
9194 netbsd* | netbsdelf*-gnu)
9195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9196 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9197 wlarc=
9198 else
9199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9201 fi
9202 ;;
9203
9204 solaris*)
9205 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9206 ld_shlibs=no
9207 cat <<EOF 1>&2
9208
9209 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9210 *** create shared libraries on Solaris systems. Therefore, libtool
9211 *** is disabling shared libraries support. We urge you to upgrade GNU
9212 *** binutils to release 2.9.1 or newer. Another option is to modify
9213 *** your PATH or compiler configuration so that the native linker is
9214 *** used, and then restart.
9215
9216 EOF
9217 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9220 else
9221 ld_shlibs=no
9222 fi
9223 ;;
9224
9225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9226 case `$LD -v 2>&1` in
9227 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9228 ld_shlibs=no
9229 cat <<_LT_EOF 1>&2
9230
9231 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9232 *** reliably create shared libraries on SCO systems. Therefore, libtool
9233 *** is disabling shared libraries support. We urge you to upgrade GNU
9234 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9235 *** your PATH or compiler configuration so that the native linker is
9236 *** used, and then restart.
9237
9238 _LT_EOF
9239 ;;
9240 *)
9241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9242 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9245 else
9246 ld_shlibs=no
9247 fi
9248 ;;
9249 esac
9250 ;;
9251
9252 sunos4*)
9253 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9254 wlarc=
9255 hardcode_direct=yes
9256 hardcode_shlibpath_var=no
9257 ;;
9258
9259 *)
9260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9263 else
9264 ld_shlibs=no
9265 fi
9266 ;;
9267 esac
9268
9269 if test "$ld_shlibs" = no; then
9270 runpath_var=
9271 hardcode_libdir_flag_spec=
9272 export_dynamic_flag_spec=
9273 whole_archive_flag_spec=
9274 fi
9275 else
9276 # PORTME fill in a description of your system's linker (not GNU ld)
9277 case $host_os in
9278 aix3*)
9279 allow_undefined_flag=unsupported
9280 always_export_symbols=yes
9281 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'
9282 # Note: this linker hardcodes the directories in LIBPATH if there
9283 # are no directories specified by -L.
9284 hardcode_minus_L=yes
9285 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9286 # Neither direct hardcoding nor static linking is supported with a
9287 # broken collect2.
9288 hardcode_direct=unsupported
9289 fi
9290 ;;
9291
9292 aix4* | aix5*)
9293 if test "$host_cpu" = ia64; then
9294 # On IA64, the linker does run time linking by default, so we don't
9295 # have to do anything special.
9296 aix_use_runtimelinking=no
9297 exp_sym_flag='-Bexport'
9298 no_entry_flag=""
9299 else
9300 # If we're using GNU nm, then we don't want the "-C" option.
9301 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9302 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9303 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'
9304 else
9305 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'
9306 fi
9307 aix_use_runtimelinking=no
9308
9309 # Test if we are trying to use run time linking or normal
9310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9311 # need to do runtime linking.
9312 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9313 for ld_flag in $LDFLAGS; do
9314 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9315 aix_use_runtimelinking=yes
9316 break
9317 fi
9318 done
9319 ;;
9320 esac
9321
9322 exp_sym_flag='-bexport'
9323 no_entry_flag='-bnoentry'
9324 fi
9325
9326 # When large executables or shared objects are built, AIX ld can
9327 # have problems creating the table of contents. If linking a library
9328 # or program results in "error TOC overflow" add -mminimal-toc to
9329 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9330 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9331
9332 archive_cmds=''
9333 hardcode_direct=yes
9334 hardcode_libdir_separator=':'
9335 link_all_deplibs=yes
9336
9337 if test "$GCC" = yes; then
9338 case $host_os in aix4.[012]|aix4.[012].*)
9339 # We only want to do this on AIX 4.2 and lower, the check
9340 # below for broken collect2 doesn't work under 4.3+
9341 collect2name=`${CC} -print-prog-name=collect2`
9342 if test -f "$collect2name" && \
9343 strings "$collect2name" | grep resolve_lib_name >/dev/null
9344 then
9345 # We have reworked collect2
9346 :
9347 else
9348 # We have old collect2
9349 hardcode_direct=unsupported
9350 # It fails to find uninstalled libraries when the uninstalled
9351 # path is not listed in the libpath. Setting hardcode_minus_L
9352 # to unsupported forces relinking
9353 hardcode_minus_L=yes
9354 hardcode_libdir_flag_spec='-L$libdir'
9355 hardcode_libdir_separator=
9356 fi
9357 ;;
9358 esac
9359 shared_flag='-shared'
9360 if test "$aix_use_runtimelinking" = yes; then
9361 shared_flag="$shared_flag "'${wl}-G'
9362 fi
9363 else
9364 # not using gcc
9365 if test "$host_cpu" = ia64; then
9366 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9367 # chokes on -Wl,-G. The following line is correct:
9368 shared_flag='-G'
9369 else
9370 if test "$aix_use_runtimelinking" = yes; then
9371 shared_flag='${wl}-G'
9372 else
9373 shared_flag='${wl}-bM:SRE'
9374 fi
9375 fi
9376 fi
9377
9378 # It seems that -bexpall does not export symbols beginning with
9379 # underscore (_), so it is better to generate a list of symbols to export.
9380 always_export_symbols=yes
9381 if test "$aix_use_runtimelinking" = yes; then
9382 # Warning - without using the other runtime loading flags (-brtl),
9383 # -berok will link without error, but may produce a broken library.
9384 allow_undefined_flag='-berok'
9385 # Determine the default libpath from the value encoded in an empty executable.
9386 cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h. */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392
9393 int
9394 main ()
9395 {
9396
9397 ;
9398 return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (ac_try="$ac_link"
9403 case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406 esac
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_link") 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } && {
9415 test -z "$ac_c_werror_flag" ||
9416 test ! -s conftest.err
9417 } && test -s conftest$ac_exeext &&
9418 $as_test_x conftest$ac_exeext; then
9419
9420 lt_aix_libpath_sed='
9421 /Import File Strings/,/^$/ {
9422 /^0/ {
9423 s/^0 *\(.*\)$/\1/
9424 p
9425 }
9426 }'
9427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9428 # Check for a 64-bit object if we didn't find anything.
9429 if test -z "$aix_libpath"; then
9430 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9431 fi
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436
9437 fi
9438
9439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9440 conftest$ac_exeext conftest.$ac_ext
9441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9442
9443 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9444 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"
9445 else
9446 if test "$host_cpu" = ia64; then
9447 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9448 allow_undefined_flag="-z nodefs"
9449 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"
9450 else
9451 # Determine the default libpath from the value encoded in an empty executable.
9452 cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h. */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458
9459 int
9460 main ()
9461 {
9462
9463 ;
9464 return 0;
9465 }
9466 _ACEOF
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (ac_try="$ac_link"
9469 case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472 esac
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_link") 2>conftest.er1
9475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && {
9481 test -z "$ac_c_werror_flag" ||
9482 test ! -s conftest.err
9483 } && test -s conftest$ac_exeext &&
9484 $as_test_x conftest$ac_exeext; then
9485
9486 lt_aix_libpath_sed='
9487 /Import File Strings/,/^$/ {
9488 /^0/ {
9489 s/^0 *\(.*\)$/\1/
9490 p
9491 }
9492 }'
9493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9494 # Check for a 64-bit object if we didn't find anything.
9495 if test -z "$aix_libpath"; then
9496 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9497 fi
9498 else
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9501
9502
9503 fi
9504
9505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9506 conftest$ac_exeext conftest.$ac_ext
9507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9508
9509 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9510 # Warning - without using the other run time loading flags,
9511 # -berok will link without error, but may produce a broken library.
9512 no_undefined_flag=' ${wl}-bernotok'
9513 allow_undefined_flag=' ${wl}-berok'
9514 # Exported symbols can be pulled into shared objects from archives
9515 whole_archive_flag_spec='$convenience'
9516 archive_cmds_need_lc=yes
9517 # This is similar to how AIX traditionally builds its shared libraries.
9518 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'
9519 fi
9520 fi
9521 ;;
9522
9523 amigaos*)
9524 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)'
9525 hardcode_libdir_flag_spec='-L$libdir'
9526 hardcode_minus_L=yes
9527 # see comment about different semantics on the GNU ld section
9528 ld_shlibs=no
9529 ;;
9530
9531 bsdi[45]*)
9532 export_dynamic_flag_spec=-rdynamic
9533 ;;
9534
9535 cygwin* | mingw* | pw32*)
9536 # When not using gcc, we currently assume that we are using
9537 # Microsoft Visual C++.
9538 # hardcode_libdir_flag_spec is actually meaningless, as there is
9539 # no search path for DLLs.
9540 hardcode_libdir_flag_spec=' '
9541 allow_undefined_flag=unsupported
9542 # Tell ltmain to make .lib files, not .a files.
9543 libext=lib
9544 # Tell ltmain to make .dll files, not .so files.
9545 shrext_cmds=".dll"
9546 # FIXME: Setting linknames here is a bad hack.
9547 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9548 # The linker will automatically build a .lib file if we build a DLL.
9549 old_archive_From_new_cmds='true'
9550 # FIXME: Should let the user specify the lib program.
9551 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9552 fix_srcfile_path='`cygpath -w "$srcfile"`'
9553 enable_shared_with_static_runtimes=yes
9554 ;;
9555
9556 darwin* | rhapsody*)
9557 case $host_os in
9558 rhapsody* | darwin1.[012])
9559 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9560 ;;
9561 *) # Darwin 1.3 on
9562 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9563 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9564 else
9565 case ${MACOSX_DEPLOYMENT_TARGET} in
9566 10.[012])
9567 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9568 ;;
9569 10.*)
9570 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9571 ;;
9572 esac
9573 fi
9574 ;;
9575 esac
9576 archive_cmds_need_lc=no
9577 hardcode_direct=no
9578 hardcode_automatic=yes
9579 hardcode_shlibpath_var=unsupported
9580 whole_archive_flag_spec=''
9581 link_all_deplibs=yes
9582 if test "$GCC" = yes ; then
9583 output_verbose_link_cmd='echo'
9584 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9585 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9586 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9587 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9588 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}'
9589 else
9590 case $cc_basename in
9591 xlc*)
9592 output_verbose_link_cmd='echo'
9593 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9594 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9595 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9596 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}'
9597 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}'
9598 ;;
9599 *)
9600 ld_shlibs=no
9601 ;;
9602 esac
9603 fi
9604 ;;
9605
9606 dgux*)
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_libdir_flag_spec='-L$libdir'
9609 hardcode_shlibpath_var=no
9610 ;;
9611
9612 freebsd1*)
9613 ld_shlibs=no
9614 ;;
9615
9616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9617 # support. Future versions do this automatically, but an explicit c++rt0.o
9618 # does not break anything, and helps significantly (at the cost of a little
9619 # extra space).
9620 freebsd2.2*)
9621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9622 hardcode_libdir_flag_spec='-R$libdir'
9623 hardcode_direct=yes
9624 hardcode_shlibpath_var=no
9625 ;;
9626
9627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9628 freebsd2*)
9629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_direct=yes
9631 hardcode_minus_L=yes
9632 hardcode_shlibpath_var=no
9633 ;;
9634
9635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9636 freebsd* | dragonfly*)
9637 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9638 hardcode_libdir_flag_spec='-R$libdir'
9639 hardcode_direct=yes
9640 hardcode_shlibpath_var=no
9641 ;;
9642
9643 hpux9*)
9644 if test "$GCC" = yes; then
9645 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'
9646 else
9647 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'
9648 fi
9649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9650 hardcode_libdir_separator=:
9651 hardcode_direct=yes
9652
9653 # hardcode_minus_L: Not really in the search PATH,
9654 # but as the default location of the library.
9655 hardcode_minus_L=yes
9656 export_dynamic_flag_spec='${wl}-E'
9657 ;;
9658
9659 hpux10*)
9660 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9661 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9662 else
9663 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9664 fi
9665 if test "$with_gnu_ld" = no; then
9666 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9667 hardcode_libdir_separator=:
9668
9669 hardcode_direct=yes
9670 export_dynamic_flag_spec='${wl}-E'
9671
9672 # hardcode_minus_L: Not really in the search PATH,
9673 # but as the default location of the library.
9674 hardcode_minus_L=yes
9675 fi
9676 ;;
9677
9678 hpux11*)
9679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9680 case $host_cpu in
9681 hppa*64*)
9682 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 ;;
9684 ia64*)
9685 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9686 ;;
9687 *)
9688 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9689 ;;
9690 esac
9691 else
9692 case $host_cpu in
9693 hppa*64*)
9694 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 ;;
9696 ia64*)
9697 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9698 ;;
9699 *)
9700 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9701 ;;
9702 esac
9703 fi
9704 if test "$with_gnu_ld" = no; then
9705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9706 hardcode_libdir_separator=:
9707
9708 case $host_cpu in
9709 hppa*64*|ia64*)
9710 hardcode_libdir_flag_spec_ld='+b $libdir'
9711 hardcode_direct=no
9712 hardcode_shlibpath_var=no
9713 ;;
9714 *)
9715 hardcode_direct=yes
9716 export_dynamic_flag_spec='${wl}-E'
9717
9718 # hardcode_minus_L: Not really in the search PATH,
9719 # but as the default location of the library.
9720 hardcode_minus_L=yes
9721 ;;
9722 esac
9723 fi
9724 ;;
9725
9726 irix5* | irix6* | nonstopux*)
9727 if test "$GCC" = yes; then
9728 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'
9729 else
9730 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'
9731 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9732 fi
9733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734 hardcode_libdir_separator=:
9735 link_all_deplibs=yes
9736 ;;
9737
9738 netbsd* | netbsdelf*-gnu)
9739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9741 else
9742 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9743 fi
9744 hardcode_libdir_flag_spec='-R$libdir'
9745 hardcode_direct=yes
9746 hardcode_shlibpath_var=no
9747 ;;
9748
9749 newsos6)
9750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_direct=yes
9752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9753 hardcode_libdir_separator=:
9754 hardcode_shlibpath_var=no
9755 ;;
9756
9757 openbsd*)
9758 if test -f /usr/libexec/ld.so; then
9759 hardcode_direct=yes
9760 hardcode_shlibpath_var=no
9761 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9763 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9764 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9765 export_dynamic_flag_spec='${wl}-E'
9766 else
9767 case $host_os in
9768 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_libdir_flag_spec='-R$libdir'
9771 ;;
9772 *)
9773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9774 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9775 ;;
9776 esac
9777 fi
9778 else
9779 ld_shlibs=no
9780 fi
9781 ;;
9782
9783 os2*)
9784 hardcode_libdir_flag_spec='-L$libdir'
9785 hardcode_minus_L=yes
9786 allow_undefined_flag=unsupported
9787 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'
9788 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9789 ;;
9790
9791 osf3*)
9792 if test "$GCC" = yes; then
9793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9794 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'
9795 else
9796 allow_undefined_flag=' -expect_unresolved \*'
9797 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'
9798 fi
9799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9800 hardcode_libdir_separator=:
9801 ;;
9802
9803 osf4* | osf5*) # as osf3* with the addition of -msym flag
9804 if test "$GCC" = yes; then
9805 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9806 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'
9807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9808 else
9809 allow_undefined_flag=' -expect_unresolved \*'
9810 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'
9811 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9812 $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'
9813
9814 # Both c and cxx compiler support -rpath directly
9815 hardcode_libdir_flag_spec='-rpath $libdir'
9816 fi
9817 hardcode_libdir_separator=:
9818 ;;
9819
9820 solaris*)
9821 no_undefined_flag=' -z text'
9822 if test "$GCC" = yes; then
9823 wlarc='${wl}'
9824 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9825 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9826 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9827 else
9828 wlarc=''
9829 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9830 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9832 fi
9833 hardcode_libdir_flag_spec='-R$libdir'
9834 hardcode_shlibpath_var=no
9835 case $host_os in
9836 solaris2.[0-5] | solaris2.[0-5].*) ;;
9837 *)
9838 # The compiler driver will combine and reorder linker options,
9839 # but understands `-z linker_flag'. GCC discards it without `$wl',
9840 # but is careful enough not to reorder.
9841 # Supported since Solaris 2.6 (maybe 2.5.1?)
9842 if test "$GCC" = yes; then
9843 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9844 else
9845 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9846 fi
9847 ;;
9848 esac
9849 link_all_deplibs=yes
9850 ;;
9851
9852 sunos4*)
9853 if test "x$host_vendor" = xsequent; then
9854 # Use $CC to link under sequent, because it throws in some extra .o
9855 # files that make .init and .fini sections work.
9856 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9857 else
9858 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9859 fi
9860 hardcode_libdir_flag_spec='-L$libdir'
9861 hardcode_direct=yes
9862 hardcode_minus_L=yes
9863 hardcode_shlibpath_var=no
9864 ;;
9865
9866 sysv4)
9867 case $host_vendor in
9868 sni)
9869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_direct=yes # is this really true???
9871 ;;
9872 siemens)
9873 ## LD is ld it makes a PLAMLIB
9874 ## CC just makes a GrossModule.
9875 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9876 reload_cmds='$CC -r -o $output$reload_objs'
9877 hardcode_direct=no
9878 ;;
9879 motorola)
9880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9882 ;;
9883 esac
9884 runpath_var='LD_RUN_PATH'
9885 hardcode_shlibpath_var=no
9886 ;;
9887
9888 sysv4.3*)
9889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9890 hardcode_shlibpath_var=no
9891 export_dynamic_flag_spec='-Bexport'
9892 ;;
9893
9894 sysv4*MP*)
9895 if test -d /usr/nec; then
9896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897 hardcode_shlibpath_var=no
9898 runpath_var=LD_RUN_PATH
9899 hardcode_runpath_var=yes
9900 ld_shlibs=yes
9901 fi
9902 ;;
9903
9904 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9905 no_undefined_flag='${wl}-z,text'
9906 archive_cmds_need_lc=no
9907 hardcode_shlibpath_var=no
9908 runpath_var='LD_RUN_PATH'
9909
9910 if test "$GCC" = yes; then
9911 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9912 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9913 else
9914 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9915 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9916 fi
9917 ;;
9918
9919 sysv5* | sco3.2v5* | sco5v6*)
9920 # Note: We can NOT use -z defs as we might desire, because we do not
9921 # link with -lc, and that would cause any symbols used from libc to
9922 # always be unresolved, which means just about no library would
9923 # ever link correctly. If we're not using GNU ld we use -z text
9924 # though, which does catch some bad symbols but isn't as heavy-handed
9925 # as -z defs.
9926 no_undefined_flag='${wl}-z,text'
9927 allow_undefined_flag='${wl}-z,nodefs'
9928 archive_cmds_need_lc=no
9929 hardcode_shlibpath_var=no
9930 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9931 hardcode_libdir_separator=':'
9932 link_all_deplibs=yes
9933 export_dynamic_flag_spec='${wl}-Bexport'
9934 runpath_var='LD_RUN_PATH'
9935
9936 if test "$GCC" = yes; then
9937 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9939 else
9940 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9941 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9942 fi
9943 ;;
9944
9945 uts4*)
9946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9947 hardcode_libdir_flag_spec='-L$libdir'
9948 hardcode_shlibpath_var=no
9949 ;;
9950
9951 *)
9952 ld_shlibs=no
9953 ;;
9954 esac
9955 fi
9956
9957 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9958 echo "${ECHO_T}$ld_shlibs" >&6; }
9959 test "$ld_shlibs" = no && can_build_shared=no
9960
9961 #
9962 # Do we need to explicitly link libc?
9963 #
9964 case "x$archive_cmds_need_lc" in
9965 x|xyes)
9966 # Assume -lc should be added
9967 archive_cmds_need_lc=yes
9968
9969 if test "$enable_shared" = yes && test "$GCC" = yes; then
9970 case $archive_cmds in
9971 *'~'*)
9972 # FIXME: we may have to deal with multi-command sequences.
9973 ;;
9974 '$CC '*)
9975 # Test whether the compiler implicitly links with -lc since on some
9976 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9977 # to ld, don't add -lc before -lgcc.
9978 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9979 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9980 $rm conftest*
9981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9982
9983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984 (eval $ac_compile) 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } 2>conftest.err; then
9988 soname=conftest
9989 lib=conftest
9990 libobjs=conftest.$ac_objext
9991 deplibs=
9992 wl=$lt_prog_compiler_wl
9993 pic_flag=$lt_prog_compiler_pic
9994 compiler_flags=-v
9995 linker_flags=-v
9996 verstring=
9997 output_objdir=.
9998 libname=conftest
9999 lt_save_allow_undefined_flag=$allow_undefined_flag
10000 allow_undefined_flag=
10001 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10002 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }
10006 then
10007 archive_cmds_need_lc=no
10008 else
10009 archive_cmds_need_lc=yes
10010 fi
10011 allow_undefined_flag=$lt_save_allow_undefined_flag
10012 else
10013 cat conftest.err 1>&5
10014 fi
10015 $rm conftest*
10016 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10017 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10018 ;;
10019 esac
10020 fi
10021 ;;
10022 esac
10023
10024 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10025 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10026 library_names_spec=
10027 libname_spec='lib$name'
10028 soname_spec=
10029 shrext_cmds=".so"
10030 postinstall_cmds=
10031 postuninstall_cmds=
10032 finish_cmds=
10033 finish_eval=
10034 shlibpath_var=
10035 shlibpath_overrides_runpath=unknown
10036 version_type=none
10037 dynamic_linker="$host_os ld.so"
10038 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10039
10040 if test "$GCC" = yes; then
10041 case $host_os in
10042 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10043 *) lt_awk_arg="/^libraries:/" ;;
10044 esac
10045 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10046 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10047 # if the path contains ";" then we assume it to be the separator
10048 # otherwise default to the standard path separator (i.e. ":") - it is
10049 # assumed that no part of a normal pathname contains ";" but that should
10050 # okay in the real world where ";" in dirpaths is itself problematic.
10051 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10052 else
10053 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10054 fi
10055 # Ok, now we have the path, separated by spaces, we can step through it
10056 # and add multilib dir if necessary.
10057 lt_tmp_lt_search_path_spec=
10058 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10059 for lt_sys_path in $lt_search_path_spec; do
10060 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10061 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10062 else
10063 test -d "$lt_sys_path" && \
10064 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10065 fi
10066 done
10067 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10068 BEGIN {RS=" "; FS="/|\n";} {
10069 lt_foo="";
10070 lt_count=0;
10071 for (lt_i = NF; lt_i > 0; lt_i--) {
10072 if ($lt_i != "" && $lt_i != ".") {
10073 if ($lt_i == "..") {
10074 lt_count++;
10075 } else {
10076 if (lt_count == 0) {
10077 lt_foo="/" $lt_i lt_foo;
10078 } else {
10079 lt_count--;
10080 }
10081 }
10082 }
10083 }
10084 if (lt_foo != "") { lt_freq[lt_foo]++; }
10085 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10086 }'`
10087 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10088 else
10089 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10090 fi
10091 need_lib_prefix=unknown
10092 hardcode_into_libs=no
10093
10094 # when you set need_version to no, make sure it does not cause -set_version
10095 # flags to be left without arguments
10096 need_version=unknown
10097
10098 case $host_os in
10099 aix3*)
10100 version_type=linux
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10102 shlibpath_var=LIBPATH
10103
10104 # AIX 3 has no versioning support, so we append a major version to the name.
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 ;;
10107
10108 aix4* | aix5*)
10109 version_type=linux
10110 need_lib_prefix=no
10111 need_version=no
10112 hardcode_into_libs=yes
10113 if test "$host_cpu" = ia64; then
10114 # AIX 5 supports IA64
10115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 else
10118 # With GCC up to 2.95.x, collect2 would create an import file
10119 # for dependence libraries. The import file would start with
10120 # the line `#! .'. This would cause the generated library to
10121 # depend on `.', always an invalid library. This was fixed in
10122 # development snapshots of GCC prior to 3.0.
10123 case $host_os in
10124 aix4 | aix4.[01] | aix4.[01].*)
10125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10126 echo ' yes '
10127 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10128 :
10129 else
10130 can_build_shared=no
10131 fi
10132 ;;
10133 esac
10134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10135 # soname into executable. Probably we can add versioning support to
10136 # collect2, so additional links can be useful in future.
10137 if test "$aix_use_runtimelinking" = yes; then
10138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10139 # instead of lib<name>.a to let people know that these are not
10140 # typical AIX shared libraries.
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 else
10143 # We preserve .a as extension for shared libraries through AIX4.2
10144 # and later when we are not doing run time linking.
10145 library_names_spec='${libname}${release}.a $libname.a'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 fi
10148 shlibpath_var=LIBPATH
10149 fi
10150 ;;
10151
10152 amigaos*)
10153 library_names_spec='$libname.ixlibrary $libname.a'
10154 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10155 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'
10156 ;;
10157
10158 beos*)
10159 library_names_spec='${libname}${shared_ext}'
10160 dynamic_linker="$host_os ld.so"
10161 shlibpath_var=LIBRARY_PATH
10162 ;;
10163
10164 bsdi[45]*)
10165 version_type=linux
10166 need_version=no
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10170 shlibpath_var=LD_LIBRARY_PATH
10171 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10172 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10173 # the default ld.so.conf also contains /usr/contrib/lib and
10174 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10175 # libtool to hard-code these into programs
10176 ;;
10177
10178 cygwin* | mingw* | pw32*)
10179 version_type=windows
10180 shrext_cmds=".dll"
10181 need_version=no
10182 need_lib_prefix=no
10183
10184 case $GCC,$host_os in
10185 yes,cygwin* | yes,mingw* | yes,pw32*)
10186 library_names_spec='$libname.dll.a'
10187 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10188 postinstall_cmds='base_file=`basename \${file}`~
10189 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10190 dldir=$destdir/`dirname \$dlpath`~
10191 test -d \$dldir || mkdir -p \$dldir~
10192 $install_prog $dir/$dlname \$dldir/$dlname~
10193 chmod a+x \$dldir/$dlname'
10194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10195 dlpath=$dir/\$dldll~
10196 $rm \$dlpath'
10197 shlibpath_overrides_runpath=yes
10198
10199 case $host_os in
10200 cygwin*)
10201 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10204 ;;
10205 mingw*)
10206 # MinGW DLLs use traditional 'lib' prefix
10207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10209 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10210 # It is most probably a Windows format PATH printed by
10211 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10212 # path with ; separators, and with drive letters. We can handle the
10213 # drive letters (cygwin fileutils understands them), so leave them,
10214 # especially as we might pass files found there to a mingw objdump,
10215 # which wouldn't understand a cygwinified path. Ahh.
10216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10217 else
10218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10219 fi
10220 ;;
10221 pw32*)
10222 # pw32 DLLs use 'pw' prefix rather than 'lib'
10223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224 ;;
10225 esac
10226 ;;
10227
10228 *)
10229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10230 ;;
10231 esac
10232 dynamic_linker='Win32 ld.exe'
10233 # FIXME: first we should search . and the directory the executable is in
10234 shlibpath_var=PATH
10235 ;;
10236
10237 darwin* | rhapsody*)
10238 dynamic_linker="$host_os dyld"
10239 version_type=darwin
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10243 soname_spec='${libname}${release}${major}$shared_ext'
10244 shlibpath_overrides_runpath=yes
10245 shlibpath_var=DYLD_LIBRARY_PATH
10246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10247
10248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10250 ;;
10251
10252 dgux*)
10253 version_type=linux
10254 need_lib_prefix=no
10255 need_version=no
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 ;;
10260
10261 freebsd1*)
10262 dynamic_linker=no
10263 ;;
10264
10265 freebsd* | dragonfly*)
10266 # DragonFly does not have aout. When/if they implement a new
10267 # versioning mechanism, adjust this.
10268 if test -x /usr/bin/objformat; then
10269 objformat=`/usr/bin/objformat`
10270 else
10271 case $host_os in
10272 freebsd[123]*) objformat=aout ;;
10273 *) objformat=elf ;;
10274 esac
10275 fi
10276 version_type=freebsd-$objformat
10277 case $version_type in
10278 freebsd-elf*)
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10280 need_version=no
10281 need_lib_prefix=no
10282 ;;
10283 freebsd-*)
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10285 need_version=yes
10286 ;;
10287 esac
10288 shlibpath_var=LD_LIBRARY_PATH
10289 case $host_os in
10290 freebsd2*)
10291 shlibpath_overrides_runpath=yes
10292 ;;
10293 freebsd3.[01]* | freebsdelf3.[01]*)
10294 shlibpath_overrides_runpath=yes
10295 hardcode_into_libs=yes
10296 ;;
10297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10299 shlibpath_overrides_runpath=no
10300 hardcode_into_libs=yes
10301 ;;
10302 *) # from 4.6 on, and DragonFly
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10305 ;;
10306 esac
10307 ;;
10308
10309 gnu*)
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 hardcode_into_libs=yes
10317 ;;
10318
10319 hpux9* | hpux10* | hpux11*)
10320 # Give a soname corresponding to the major version so that dld.sl refuses to
10321 # link against other versions.
10322 version_type=sunos
10323 need_lib_prefix=no
10324 need_version=no
10325 case $host_cpu in
10326 ia64*)
10327 shrext_cmds='.so'
10328 hardcode_into_libs=yes
10329 dynamic_linker="$host_os dld.so"
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 if test "X$HPUX_IA64_MODE" = X32; then
10335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10336 else
10337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10338 fi
10339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10340 ;;
10341 hppa*64*)
10342 shrext_cmds='.sl'
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.sl"
10345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10351 ;;
10352 *)
10353 shrext_cmds='.sl'
10354 dynamic_linker="$host_os dld.sl"
10355 shlibpath_var=SHLIB_PATH
10356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 ;;
10360 esac
10361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10362 postinstall_cmds='chmod 555 $lib'
10363 ;;
10364
10365 interix[3-9]*)
10366 version_type=linux
10367 need_lib_prefix=no
10368 need_version=no
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=no
10374 hardcode_into_libs=yes
10375 ;;
10376
10377 irix5* | irix6* | nonstopux*)
10378 case $host_os in
10379 nonstopux*) version_type=nonstopux ;;
10380 *)
10381 if test "$lt_cv_prog_gnu_ld" = yes; then
10382 version_type=linux
10383 else
10384 version_type=irix
10385 fi ;;
10386 esac
10387 need_lib_prefix=no
10388 need_version=no
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10391 case $host_os in
10392 irix5* | nonstopux*)
10393 libsuff= shlibsuff=
10394 ;;
10395 *)
10396 case $LD in # libtool.m4 will add one of these switches to LD
10397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10398 libsuff= shlibsuff= libmagic=32-bit;;
10399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10400 libsuff=32 shlibsuff=N32 libmagic=N32;;
10401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10403 *) libsuff= shlibsuff= libmagic=never-match;;
10404 esac
10405 ;;
10406 esac
10407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10408 shlibpath_overrides_runpath=no
10409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10411 hardcode_into_libs=yes
10412 ;;
10413
10414 # No shared lib support for Linux oldld, aout, or coff.
10415 linux*oldld* | linux*aout* | linux*coff*)
10416 dynamic_linker=no
10417 ;;
10418
10419 # This must be Linux ELF.
10420 linux* | k*bsd*-gnu)
10421 version_type=linux
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10429 # This implies no fast_install, which is unacceptable.
10430 # Some rework will be needed to allow for fast_install
10431 # before this can be enabled.
10432 hardcode_into_libs=yes
10433
10434 # Append ld.so.conf contents to the search path
10435 if test -f /etc/ld.so.conf; then
10436 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' ' '`
10437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10438 fi
10439
10440 # We used to test for /lib/ld.so.1 and disable shared libraries on
10441 # powerpc, because MkLinux only supported shared libraries with the
10442 # GNU dynamic linker. Since this was broken with cross compilers,
10443 # most powerpc-linux boxes support dynamic linking these days and
10444 # people can always --disable-shared, the test was removed, and we
10445 # assume the GNU/Linux dynamic linker is in use.
10446 dynamic_linker='GNU/Linux ld.so'
10447 ;;
10448
10449 netbsdelf*-gnu)
10450 version_type=linux
10451 need_lib_prefix=no
10452 need_version=no
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 shlibpath_var=LD_LIBRARY_PATH
10456 shlibpath_overrides_runpath=no
10457 hardcode_into_libs=yes
10458 dynamic_linker='NetBSD ld.elf_so'
10459 ;;
10460
10461 netbsd*)
10462 version_type=sunos
10463 need_lib_prefix=no
10464 need_version=no
10465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10468 dynamic_linker='NetBSD (a.out) ld.so'
10469 else
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 dynamic_linker='NetBSD ld.elf_so'
10473 fi
10474 shlibpath_var=LD_LIBRARY_PATH
10475 shlibpath_overrides_runpath=yes
10476 hardcode_into_libs=yes
10477 ;;
10478
10479 newsos6)
10480 version_type=linux
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 shlibpath_overrides_runpath=yes
10484 ;;
10485
10486 nto-qnx*)
10487 version_type=linux
10488 need_lib_prefix=no
10489 need_version=no
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491 soname_spec='${libname}${release}${shared_ext}$major'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=yes
10494 ;;
10495
10496 openbsd*)
10497 version_type=sunos
10498 sys_lib_dlsearch_path_spec="/usr/lib"
10499 need_lib_prefix=no
10500 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10501 case $host_os in
10502 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10503 *) need_version=no ;;
10504 esac
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10507 shlibpath_var=LD_LIBRARY_PATH
10508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10509 case $host_os in
10510 openbsd2.[89] | openbsd2.[89].*)
10511 shlibpath_overrides_runpath=no
10512 ;;
10513 *)
10514 shlibpath_overrides_runpath=yes
10515 ;;
10516 esac
10517 else
10518 shlibpath_overrides_runpath=yes
10519 fi
10520 ;;
10521
10522 os2*)
10523 libname_spec='$name'
10524 shrext_cmds=".dll"
10525 need_lib_prefix=no
10526 library_names_spec='$libname${shared_ext} $libname.a'
10527 dynamic_linker='OS/2 ld.exe'
10528 shlibpath_var=LIBPATH
10529 ;;
10530
10531 osf3* | osf4* | osf5*)
10532 version_type=osf
10533 need_lib_prefix=no
10534 need_version=no
10535 soname_spec='${libname}${release}${shared_ext}$major'
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10539 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10540 ;;
10541
10542 rdos*)
10543 dynamic_linker=no
10544 ;;
10545
10546 solaris*)
10547 version_type=linux
10548 need_lib_prefix=no
10549 need_version=no
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 shlibpath_overrides_runpath=yes
10554 hardcode_into_libs=yes
10555 # ldd complains unless libraries are executable
10556 postinstall_cmds='chmod +x $lib'
10557 ;;
10558
10559 sunos4*)
10560 version_type=sunos
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10562 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10563 shlibpath_var=LD_LIBRARY_PATH
10564 shlibpath_overrides_runpath=yes
10565 if test "$with_gnu_ld" = yes; then
10566 need_lib_prefix=no
10567 fi
10568 need_version=yes
10569 ;;
10570
10571 sysv4 | sysv4.3*)
10572 version_type=linux
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 case $host_vendor in
10577 sni)
10578 shlibpath_overrides_runpath=no
10579 need_lib_prefix=no
10580 export_dynamic_flag_spec='${wl}-Blargedynsym'
10581 runpath_var=LD_RUN_PATH
10582 ;;
10583 siemens)
10584 need_lib_prefix=no
10585 ;;
10586 motorola)
10587 need_lib_prefix=no
10588 need_version=no
10589 shlibpath_overrides_runpath=no
10590 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10591 ;;
10592 esac
10593 ;;
10594
10595 sysv4*MP*)
10596 if test -d /usr/nec ;then
10597 version_type=linux
10598 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10599 soname_spec='$libname${shared_ext}.$major'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 fi
10602 ;;
10603
10604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10605 version_type=freebsd-elf
10606 need_lib_prefix=no
10607 need_version=no
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 hardcode_into_libs=yes
10612 if test "$with_gnu_ld" = yes; then
10613 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10614 shlibpath_overrides_runpath=no
10615 else
10616 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10617 shlibpath_overrides_runpath=yes
10618 case $host_os in
10619 sco3.2v5*)
10620 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10621 ;;
10622 esac
10623 fi
10624 sys_lib_dlsearch_path_spec='/usr/lib'
10625 ;;
10626
10627 uts4*)
10628 version_type=linux
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 ;;
10633
10634 *)
10635 dynamic_linker=no
10636 ;;
10637 esac
10638 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10639 echo "${ECHO_T}$dynamic_linker" >&6; }
10640 test "$dynamic_linker" = no && can_build_shared=no
10641
10642 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10643 if test "$GCC" = yes; then
10644 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10645 fi
10646
10647 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10648 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10649 hardcode_action=
10650 if test -n "$hardcode_libdir_flag_spec" || \
10651 test -n "$runpath_var" || \
10652 test "X$hardcode_automatic" = "Xyes" ; then
10653
10654 # We can hardcode non-existant directories.
10655 if test "$hardcode_direct" != no &&
10656 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10657 # have to relink, otherwise we might link with an installed library
10658 # when we should be linking with a yet-to-be-installed one
10659 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10660 test "$hardcode_minus_L" != no; then
10661 # Linking always hardcodes the temporary library directory.
10662 hardcode_action=relink
10663 else
10664 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10665 hardcode_action=immediate
10666 fi
10667 else
10668 # We cannot hardcode anything, or else we can only hardcode existing
10669 # directories.
10670 hardcode_action=unsupported
10671 fi
10672 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10673 echo "${ECHO_T}$hardcode_action" >&6; }
10674
10675 if test "$hardcode_action" = relink; then
10676 # Fast installation is not supported
10677 enable_fast_install=no
10678 elif test "$shlibpath_overrides_runpath" = yes ||
10679 test "$enable_shared" = no; then
10680 # Fast installation is not necessary
10681 enable_fast_install=needless
10682 fi
10683
10684 striplib=
10685 old_striplib=
10686 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10687 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10688 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10689 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10690 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10691 { echo "$as_me:$LINENO: result: yes" >&5
10692 echo "${ECHO_T}yes" >&6; }
10693 else
10694 # FIXME - insert some real tests, host_os isn't really good enough
10695 case $host_os in
10696 darwin*)
10697 if test -n "$STRIP" ; then
10698 striplib="$STRIP -x"
10699 old_striplib="$STRIP -S"
10700 { echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6; }
10702 else
10703 { echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6; }
10705 fi
10706 ;;
10707 *)
10708 { echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6; }
10710 ;;
10711 esac
10712 fi
10713
10714 if test "x$enable_dlopen" != xyes; then
10715 enable_dlopen=unknown
10716 enable_dlopen_self=unknown
10717 enable_dlopen_self_static=unknown
10718 else
10719 lt_cv_dlopen=no
10720 lt_cv_dlopen_libs=
10721
10722 case $host_os in
10723 beos*)
10724 lt_cv_dlopen="load_add_on"
10725 lt_cv_dlopen_libs=
10726 lt_cv_dlopen_self=yes
10727 ;;
10728
10729 mingw* | pw32*)
10730 lt_cv_dlopen="LoadLibrary"
10731 lt_cv_dlopen_libs=
10732 ;;
10733
10734 cygwin*)
10735 lt_cv_dlopen="dlopen"
10736 lt_cv_dlopen_libs=
10737 ;;
10738
10739 darwin*)
10740 # if libdl is installed we need to link against it
10741 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10742 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10743 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746 ac_check_lib_save_LIBS=$LIBS
10747 LIBS="-ldl $LIBS"
10748 cat >conftest.$ac_ext <<_ACEOF
10749 /* confdefs.h. */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10754
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 char dlopen ();
10762 int
10763 main ()
10764 {
10765 return dlopen ();
10766 ;
10767 return 0;
10768 }
10769 _ACEOF
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_link") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext &&
10787 $as_test_x conftest$ac_exeext; then
10788 ac_cv_lib_dl_dlopen=yes
10789 else
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793 ac_cv_lib_dl_dlopen=no
10794 fi
10795
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LIBS=$ac_check_lib_save_LIBS
10799 fi
10800 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10801 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10802 if test $ac_cv_lib_dl_dlopen = yes; then
10803 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10804 else
10805
10806 lt_cv_dlopen="dyld"
10807 lt_cv_dlopen_libs=
10808 lt_cv_dlopen_self=yes
10809
10810 fi
10811
10812 ;;
10813
10814 *)
10815 { echo "$as_me:$LINENO: checking for shl_load" >&5
10816 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10817 if test "${ac_cv_func_shl_load+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10828 #define shl_load innocuous_shl_load
10829
10830 /* System header to define __stub macros and hopefully few prototypes,
10831 which can conflict with char shl_load (); below.
10832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10833 <limits.h> exists even on freestanding compilers. */
10834
10835 #ifdef __STDC__
10836 # include <limits.h>
10837 #else
10838 # include <assert.h>
10839 #endif
10840
10841 #undef shl_load
10842
10843 /* Override any GCC internal prototype to avoid an error.
10844 Use char because int might match the return type of a GCC
10845 builtin and then its argument prototype would still apply. */
10846 #ifdef __cplusplus
10847 extern "C"
10848 #endif
10849 char shl_load ();
10850 /* The GNU C library defines this for functions which it implements
10851 to always fail with ENOSYS. Some functions are actually named
10852 something starting with __ and the normal name is an alias. */
10853 #if defined __stub_shl_load || defined __stub___shl_load
10854 choke me
10855 #endif
10856
10857 int
10858 main ()
10859 {
10860 return shl_load ();
10861 ;
10862 return 0;
10863 }
10864 _ACEOF
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (ac_try="$ac_link"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870 esac
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_link") 2>conftest.er1
10873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && {
10879 test -z "$ac_c_werror_flag" ||
10880 test ! -s conftest.err
10881 } && test -s conftest$ac_exeext &&
10882 $as_test_x conftest$ac_exeext; then
10883 ac_cv_func_shl_load=yes
10884 else
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_cv_func_shl_load=no
10889 fi
10890
10891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10892 conftest$ac_exeext conftest.$ac_ext
10893 fi
10894 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10895 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10896 if test $ac_cv_func_shl_load = yes; then
10897 lt_cv_dlopen="shl_load"
10898 else
10899 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10900 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10901 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904 ac_check_lib_save_LIBS=$LIBS
10905 LIBS="-ldld $LIBS"
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 char shl_load ();
10920 int
10921 main ()
10922 {
10923 return shl_load ();
10924 ;
10925 return 0;
10926 }
10927 _ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (ac_try="$ac_link"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10933 esac
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_link") 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && {
10942 test -z "$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10944 } && test -s conftest$ac_exeext &&
10945 $as_test_x conftest$ac_exeext; then
10946 ac_cv_lib_dld_shl_load=yes
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 ac_cv_lib_dld_shl_load=no
10952 fi
10953
10954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10955 conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10957 fi
10958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10959 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10960 if test $ac_cv_lib_dld_shl_load = yes; then
10961 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10962 else
10963 { echo "$as_me:$LINENO: checking for dlopen" >&5
10964 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10965 if test "${ac_cv_func_dlopen+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968 cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h. */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10974 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10976 #define dlopen innocuous_dlopen
10977
10978 /* System header to define __stub macros and hopefully few prototypes,
10979 which can conflict with char dlopen (); below.
10980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10981 <limits.h> exists even on freestanding compilers. */
10982
10983 #ifdef __STDC__
10984 # include <limits.h>
10985 #else
10986 # include <assert.h>
10987 #endif
10988
10989 #undef dlopen
10990
10991 /* Override any GCC internal prototype to avoid an error.
10992 Use char because int might match the return type of a GCC
10993 builtin and then its argument prototype would still apply. */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 char dlopen ();
10998 /* The GNU C library defines this for functions which it implements
10999 to always fail with ENOSYS. Some functions are actually named
11000 something starting with __ and the normal name is an alias. */
11001 #if defined __stub_dlopen || defined __stub___dlopen
11002 choke me
11003 #endif
11004
11005 int
11006 main ()
11007 {
11008 return dlopen ();
11009 ;
11010 return 0;
11011 }
11012 _ACEOF
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (ac_try="$ac_link"
11015 case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11018 esac
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_link") 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } && {
11027 test -z "$ac_c_werror_flag" ||
11028 test ! -s conftest.err
11029 } && test -s conftest$ac_exeext &&
11030 $as_test_x conftest$ac_exeext; then
11031 ac_cv_func_dlopen=yes
11032 else
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036 ac_cv_func_dlopen=no
11037 fi
11038
11039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11040 conftest$ac_exeext conftest.$ac_ext
11041 fi
11042 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11043 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11044 if test $ac_cv_func_dlopen = yes; then
11045 lt_cv_dlopen="dlopen"
11046 else
11047 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11048 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052 ac_check_lib_save_LIBS=$LIBS
11053 LIBS="-ldl $LIBS"
11054 cat >conftest.$ac_ext <<_ACEOF
11055 /* confdefs.h. */
11056 _ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11060
11061 /* Override any GCC internal prototype to avoid an error.
11062 Use char because int might match the return type of a GCC
11063 builtin and then its argument prototype would still apply. */
11064 #ifdef __cplusplus
11065 extern "C"
11066 #endif
11067 char dlopen ();
11068 int
11069 main ()
11070 {
11071 return dlopen ();
11072 ;
11073 return 0;
11074 }
11075 _ACEOF
11076 rm -f conftest.$ac_objext conftest$ac_exeext
11077 if { (ac_try="$ac_link"
11078 case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11081 esac
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_link") 2>conftest.er1
11084 ac_status=$?
11085 grep -v '^ *+' conftest.er1 >conftest.err
11086 rm -f conftest.er1
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } && {
11090 test -z "$ac_c_werror_flag" ||
11091 test ! -s conftest.err
11092 } && test -s conftest$ac_exeext &&
11093 $as_test_x conftest$ac_exeext; then
11094 ac_cv_lib_dl_dlopen=yes
11095 else
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 ac_cv_lib_dl_dlopen=no
11100 fi
11101
11102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11103 conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11105 fi
11106 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11107 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11108 if test $ac_cv_lib_dl_dlopen = yes; then
11109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11110 else
11111 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11112 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11113 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116 ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lsvld $LIBS"
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124
11125 /* Override any GCC internal prototype to avoid an error.
11126 Use char because int might match the return type of a GCC
11127 builtin and then its argument prototype would still apply. */
11128 #ifdef __cplusplus
11129 extern "C"
11130 #endif
11131 char dlopen ();
11132 int
11133 main ()
11134 {
11135 return dlopen ();
11136 ;
11137 return 0;
11138 }
11139 _ACEOF
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (ac_try="$ac_link"
11142 case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_link") 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest$ac_exeext &&
11157 $as_test_x conftest$ac_exeext; then
11158 ac_cv_lib_svld_dlopen=yes
11159 else
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163 ac_cv_lib_svld_dlopen=no
11164 fi
11165
11166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11167 conftest$ac_exeext conftest.$ac_ext
11168 LIBS=$ac_check_lib_save_LIBS
11169 fi
11170 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11171 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11172 if test $ac_cv_lib_svld_dlopen = yes; then
11173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11174 else
11175 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11176 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11177 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180 ac_check_lib_save_LIBS=$LIBS
11181 LIBS="-ldld $LIBS"
11182 cat >conftest.$ac_ext <<_ACEOF
11183 /* confdefs.h. */
11184 _ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h. */
11188
11189 /* Override any GCC internal prototype to avoid an error.
11190 Use char because int might match the return type of a GCC
11191 builtin and then its argument prototype would still apply. */
11192 #ifdef __cplusplus
11193 extern "C"
11194 #endif
11195 char dld_link ();
11196 int
11197 main ()
11198 {
11199 return dld_link ();
11200 ;
11201 return 0;
11202 }
11203 _ACEOF
11204 rm -f conftest.$ac_objext conftest$ac_exeext
11205 if { (ac_try="$ac_link"
11206 case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_link") 2>conftest.er1
11212 ac_status=$?
11213 grep -v '^ *+' conftest.er1 >conftest.err
11214 rm -f conftest.er1
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } && {
11218 test -z "$ac_c_werror_flag" ||
11219 test ! -s conftest.err
11220 } && test -s conftest$ac_exeext &&
11221 $as_test_x conftest$ac_exeext; then
11222 ac_cv_lib_dld_dld_link=yes
11223 else
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 ac_cv_lib_dld_dld_link=no
11228 fi
11229
11230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11231 conftest$ac_exeext conftest.$ac_ext
11232 LIBS=$ac_check_lib_save_LIBS
11233 fi
11234 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11235 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11236 if test $ac_cv_lib_dld_dld_link = yes; then
11237 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11238 fi
11239
11240
11241 fi
11242
11243
11244 fi
11245
11246
11247 fi
11248
11249
11250 fi
11251
11252
11253 fi
11254
11255 ;;
11256 esac
11257
11258 if test "x$lt_cv_dlopen" != xno; then
11259 enable_dlopen=yes
11260 else
11261 enable_dlopen=no
11262 fi
11263
11264 case $lt_cv_dlopen in
11265 dlopen)
11266 save_CPPFLAGS="$CPPFLAGS"
11267 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11268
11269 save_LDFLAGS="$LDFLAGS"
11270 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11271
11272 save_LIBS="$LIBS"
11273 LIBS="$lt_cv_dlopen_libs $LIBS"
11274
11275 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11276 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11277 if test "${lt_cv_dlopen_self+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280 if test "$cross_compiling" = yes; then :
11281 lt_cv_dlopen_self=cross
11282 else
11283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11284 lt_status=$lt_dlunknown
11285 cat > conftest.$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11288
11289 #if HAVE_DLFCN_H
11290 #include <dlfcn.h>
11291 #endif
11292
11293 #include <stdio.h>
11294
11295 #ifdef RTLD_GLOBAL
11296 # define LT_DLGLOBAL RTLD_GLOBAL
11297 #else
11298 # ifdef DL_GLOBAL
11299 # define LT_DLGLOBAL DL_GLOBAL
11300 # else
11301 # define LT_DLGLOBAL 0
11302 # endif
11303 #endif
11304
11305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11306 find out it does not work in some platform. */
11307 #ifndef LT_DLLAZY_OR_NOW
11308 # ifdef RTLD_LAZY
11309 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11310 # else
11311 # ifdef DL_LAZY
11312 # define LT_DLLAZY_OR_NOW DL_LAZY
11313 # else
11314 # ifdef RTLD_NOW
11315 # define LT_DLLAZY_OR_NOW RTLD_NOW
11316 # else
11317 # ifdef DL_NOW
11318 # define LT_DLLAZY_OR_NOW DL_NOW
11319 # else
11320 # define LT_DLLAZY_OR_NOW 0
11321 # endif
11322 # endif
11323 # endif
11324 # endif
11325 #endif
11326
11327 #ifdef __cplusplus
11328 extern "C" void exit (int);
11329 #endif
11330
11331 void fnord() { int i=42;}
11332 int main ()
11333 {
11334 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11335 int status = $lt_dlunknown;
11336
11337 if (self)
11338 {
11339 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11340 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11341 /* dlclose (self); */
11342 }
11343 else
11344 puts (dlerror ());
11345
11346 exit (status);
11347 }
11348 EOF
11349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11350 (eval $ac_link) 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11354 (./conftest; exit; ) >&5 2>/dev/null
11355 lt_status=$?
11356 case x$lt_status in
11357 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11358 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11359 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11360 esac
11361 else :
11362 # compilation failed
11363 lt_cv_dlopen_self=no
11364 fi
11365 fi
11366 rm -fr conftest*
11367
11368
11369 fi
11370 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11371 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11372
11373 if test "x$lt_cv_dlopen_self" = xyes; then
11374 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11375 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11376 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11377 if test "${lt_cv_dlopen_self_static+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380 if test "$cross_compiling" = yes; then :
11381 lt_cv_dlopen_self_static=cross
11382 else
11383 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11384 lt_status=$lt_dlunknown
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11388
11389 #if HAVE_DLFCN_H
11390 #include <dlfcn.h>
11391 #endif
11392
11393 #include <stdio.h>
11394
11395 #ifdef RTLD_GLOBAL
11396 # define LT_DLGLOBAL RTLD_GLOBAL
11397 #else
11398 # ifdef DL_GLOBAL
11399 # define LT_DLGLOBAL DL_GLOBAL
11400 # else
11401 # define LT_DLGLOBAL 0
11402 # endif
11403 #endif
11404
11405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11406 find out it does not work in some platform. */
11407 #ifndef LT_DLLAZY_OR_NOW
11408 # ifdef RTLD_LAZY
11409 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11410 # else
11411 # ifdef DL_LAZY
11412 # define LT_DLLAZY_OR_NOW DL_LAZY
11413 # else
11414 # ifdef RTLD_NOW
11415 # define LT_DLLAZY_OR_NOW RTLD_NOW
11416 # else
11417 # ifdef DL_NOW
11418 # define LT_DLLAZY_OR_NOW DL_NOW
11419 # else
11420 # define LT_DLLAZY_OR_NOW 0
11421 # endif
11422 # endif
11423 # endif
11424 # endif
11425 #endif
11426
11427 #ifdef __cplusplus
11428 extern "C" void exit (int);
11429 #endif
11430
11431 void fnord() { int i=42;}
11432 int main ()
11433 {
11434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11435 int status = $lt_dlunknown;
11436
11437 if (self)
11438 {
11439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11440 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11441 /* dlclose (self); */
11442 }
11443 else
11444 puts (dlerror ());
11445
11446 exit (status);
11447 }
11448 EOF
11449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11450 (eval $ac_link) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11454 (./conftest; exit; ) >&5 2>/dev/null
11455 lt_status=$?
11456 case x$lt_status in
11457 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11458 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11459 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11460 esac
11461 else :
11462 # compilation failed
11463 lt_cv_dlopen_self_static=no
11464 fi
11465 fi
11466 rm -fr conftest*
11467
11468
11469 fi
11470 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11471 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11472 fi
11473
11474 CPPFLAGS="$save_CPPFLAGS"
11475 LDFLAGS="$save_LDFLAGS"
11476 LIBS="$save_LIBS"
11477 ;;
11478 esac
11479
11480 case $lt_cv_dlopen_self in
11481 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11482 *) enable_dlopen_self=unknown ;;
11483 esac
11484
11485 case $lt_cv_dlopen_self_static in
11486 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11487 *) enable_dlopen_self_static=unknown ;;
11488 esac
11489 fi
11490
11491
11492 # Report which library types will actually be built
11493 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11494 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11495 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11496 echo "${ECHO_T}$can_build_shared" >&6; }
11497
11498 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11499 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11500 test "$can_build_shared" = "no" && enable_shared=no
11501
11502 # On AIX, shared libraries and static libraries use the same namespace, and
11503 # are all built from PIC.
11504 case $host_os in
11505 aix3*)
11506 test "$enable_shared" = yes && enable_static=no
11507 if test -n "$RANLIB"; then
11508 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11509 postinstall_cmds='$RANLIB $lib'
11510 fi
11511 ;;
11512
11513 aix4* | aix5*)
11514 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11515 test "$enable_shared" = yes && enable_static=no
11516 fi
11517 ;;
11518 esac
11519 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11520 echo "${ECHO_T}$enable_shared" >&6; }
11521
11522 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11523 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11524 # Make sure either enable_shared or enable_static is yes.
11525 test "$enable_shared" = yes || enable_static=yes
11526 { echo "$as_me:$LINENO: result: $enable_static" >&5
11527 echo "${ECHO_T}$enable_static" >&6; }
11528
11529 # The else clause should only fire when bootstrapping the
11530 # libtool distribution, otherwise you forgot to ship ltmain.sh
11531 # with your package, and you will get complaints that there are
11532 # no rules to generate ltmain.sh.
11533 if test -f "$ltmain"; then
11534 # See if we are running on zsh, and set the options which allow our commands through
11535 # without removal of \ escapes.
11536 if test -n "${ZSH_VERSION+set}" ; then
11537 setopt NO_GLOB_SUBST
11538 fi
11539 # Now quote all the things that may contain metacharacters while being
11540 # careful not to overquote the AC_SUBSTed values. We take copies of the
11541 # variables and quote the copies for generation of the libtool script.
11542 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11543 SED SHELL STRIP \
11544 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11545 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11546 deplibs_check_method reload_flag reload_cmds need_locks \
11547 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11548 lt_cv_sys_global_symbol_to_c_name_address \
11549 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11550 old_postinstall_cmds old_postuninstall_cmds \
11551 compiler \
11552 CC \
11553 LD \
11554 lt_prog_compiler_wl \
11555 lt_prog_compiler_pic \
11556 lt_prog_compiler_static \
11557 lt_prog_compiler_no_builtin_flag \
11558 export_dynamic_flag_spec \
11559 thread_safe_flag_spec \
11560 whole_archive_flag_spec \
11561 enable_shared_with_static_runtimes \
11562 old_archive_cmds \
11563 old_archive_from_new_cmds \
11564 predep_objects \
11565 postdep_objects \
11566 predeps \
11567 postdeps \
11568 compiler_lib_search_path \
11569 archive_cmds \
11570 archive_expsym_cmds \
11571 postinstall_cmds \
11572 postuninstall_cmds \
11573 old_archive_from_expsyms_cmds \
11574 allow_undefined_flag \
11575 no_undefined_flag \
11576 export_symbols_cmds \
11577 hardcode_libdir_flag_spec \
11578 hardcode_libdir_flag_spec_ld \
11579 hardcode_libdir_separator \
11580 hardcode_automatic \
11581 module_cmds \
11582 module_expsym_cmds \
11583 lt_cv_prog_compiler_c_o \
11584 fix_srcfile_path \
11585 exclude_expsyms \
11586 include_expsyms; do
11587
11588 case $var in
11589 old_archive_cmds | \
11590 old_archive_from_new_cmds | \
11591 archive_cmds | \
11592 archive_expsym_cmds | \
11593 module_cmds | \
11594 module_expsym_cmds | \
11595 old_archive_from_expsyms_cmds | \
11596 export_symbols_cmds | \
11597 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11598 postinstall_cmds | postuninstall_cmds | \
11599 old_postinstall_cmds | old_postuninstall_cmds | \
11600 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11601 # Double-quote double-evaled strings.
11602 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11603 ;;
11604 *)
11605 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11606 ;;
11607 esac
11608 done
11609
11610 case $lt_echo in
11611 *'\$0 --fallback-echo"')
11612 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11613 ;;
11614 esac
11615
11616 cfgfile="${ofile}T"
11617 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11618 $rm -f "$cfgfile"
11619 { echo "$as_me:$LINENO: creating $ofile" >&5
11620 echo "$as_me: creating $ofile" >&6;}
11621
11622 cat <<__EOF__ >> "$cfgfile"
11623 #! $SHELL
11624
11625 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11626 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11627 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11628 #
11629 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11630 # Free Software Foundation, Inc.
11631 #
11632 # This file is part of GNU Libtool:
11633 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11634 #
11635 # This program is free software; you can redistribute it and/or modify
11636 # it under the terms of the GNU General Public License as published by
11637 # the Free Software Foundation; either version 2 of the License, or
11638 # (at your option) any later version.
11639 #
11640 # This program is distributed in the hope that it will be useful, but
11641 # WITHOUT ANY WARRANTY; without even the implied warranty of
11642 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11643 # General Public License for more details.
11644 #
11645 # You should have received a copy of the GNU General Public License
11646 # along with this program; if not, write to the Free Software
11647 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11648 #
11649 # As a special exception to the GNU General Public License, if you
11650 # distribute this file as part of a program that contains a
11651 # configuration script generated by Autoconf, you may include it under
11652 # the same distribution terms that you use for the rest of that program.
11653
11654 # A sed program that does not truncate output.
11655 SED=$lt_SED
11656
11657 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11658 Xsed="$SED -e 1s/^X//"
11659
11660 # The HP-UX ksh and POSIX shell print the target directory to stdout
11661 # if CDPATH is set.
11662 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11663
11664 # The names of the tagged configurations supported by this script.
11665 available_tags=
11666
11667 # ### BEGIN LIBTOOL CONFIG
11668
11669 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11670
11671 # Shell to use when invoking shell scripts.
11672 SHELL=$lt_SHELL
11673
11674 # Whether or not to build shared libraries.
11675 build_libtool_libs=$enable_shared
11676
11677 # Whether or not to build static libraries.
11678 build_old_libs=$enable_static
11679
11680 # Whether or not to add -lc for building shared libraries.
11681 build_libtool_need_lc=$archive_cmds_need_lc
11682
11683 # Whether or not to disallow shared libs when runtime libs are static
11684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11685
11686 # Whether or not to optimize for fast installation.
11687 fast_install=$enable_fast_install
11688
11689 # The host system.
11690 host_alias=$host_alias
11691 host=$host
11692 host_os=$host_os
11693
11694 # The build system.
11695 build_alias=$build_alias
11696 build=$build
11697 build_os=$build_os
11698
11699 # An echo program that does not interpret backslashes.
11700 echo=$lt_echo
11701
11702 # The archiver.
11703 AR=$lt_AR
11704 AR_FLAGS=$lt_AR_FLAGS
11705
11706 # A C compiler.
11707 LTCC=$lt_LTCC
11708
11709 # LTCC compiler flags.
11710 LTCFLAGS=$lt_LTCFLAGS
11711
11712 # A language-specific compiler.
11713 CC=$lt_compiler
11714
11715 # Is the compiler the GNU C compiler?
11716 with_gcc=$GCC
11717
11718 # An ERE matcher.
11719 EGREP=$lt_EGREP
11720
11721 # The linker used to build libraries.
11722 LD=$lt_LD
11723
11724 # Whether we need hard or soft links.
11725 LN_S=$lt_LN_S
11726
11727 # A BSD-compatible nm program.
11728 NM=$lt_NM
11729
11730 # A symbol stripping program
11731 STRIP=$lt_STRIP
11732
11733 # Used to examine libraries when file_magic_cmd begins "file"
11734 MAGIC_CMD=$MAGIC_CMD
11735
11736 # Used on cygwin: DLL creation program.
11737 DLLTOOL="$DLLTOOL"
11738
11739 # Used on cygwin: object dumper.
11740 OBJDUMP="$OBJDUMP"
11741
11742 # Used on cygwin: assembler.
11743 AS="$AS"
11744
11745 # The name of the directory that contains temporary libtool files.
11746 objdir=$objdir
11747
11748 # How to create reloadable object files.
11749 reload_flag=$lt_reload_flag
11750 reload_cmds=$lt_reload_cmds
11751
11752 # How to pass a linker flag through the compiler.
11753 wl=$lt_lt_prog_compiler_wl
11754
11755 # Object file suffix (normally "o").
11756 objext="$ac_objext"
11757
11758 # Old archive suffix (normally "a").
11759 libext="$libext"
11760
11761 # Shared library suffix (normally ".so").
11762 shrext_cmds='$shrext_cmds'
11763
11764 # Executable file suffix (normally "").
11765 exeext="$exeext"
11766
11767 # Additional compiler flags for building library objects.
11768 pic_flag=$lt_lt_prog_compiler_pic
11769 pic_mode=$pic_mode
11770
11771 # What is the maximum length of a command?
11772 max_cmd_len=$lt_cv_sys_max_cmd_len
11773
11774 # Does compiler simultaneously support -c and -o options?
11775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11776
11777 # Must we lock files when doing compilation?
11778 need_locks=$lt_need_locks
11779
11780 # Do we need the lib prefix for modules?
11781 need_lib_prefix=$need_lib_prefix
11782
11783 # Do we need a version for libraries?
11784 need_version=$need_version
11785
11786 # Whether dlopen is supported.
11787 dlopen_support=$enable_dlopen
11788
11789 # Whether dlopen of programs is supported.
11790 dlopen_self=$enable_dlopen_self
11791
11792 # Whether dlopen of statically linked programs is supported.
11793 dlopen_self_static=$enable_dlopen_self_static
11794
11795 # Compiler flag to prevent dynamic linking.
11796 link_static_flag=$lt_lt_prog_compiler_static
11797
11798 # Compiler flag to turn off builtin functions.
11799 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11800
11801 # Compiler flag to allow reflexive dlopens.
11802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11803
11804 # Compiler flag to generate shared objects directly from archives.
11805 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11806
11807 # Compiler flag to generate thread-safe objects.
11808 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11809
11810 # Library versioning type.
11811 version_type=$version_type
11812
11813 # Format of library name prefix.
11814 libname_spec=$lt_libname_spec
11815
11816 # List of archive names. First name is the real one, the rest are links.
11817 # The last name is the one that the linker finds with -lNAME.
11818 library_names_spec=$lt_library_names_spec
11819
11820 # The coded name of the library, if different from the real name.
11821 soname_spec=$lt_soname_spec
11822
11823 # Commands used to build and install an old-style archive.
11824 RANLIB=$lt_RANLIB
11825 old_archive_cmds=$lt_old_archive_cmds
11826 old_postinstall_cmds=$lt_old_postinstall_cmds
11827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11828
11829 # Create an old-style archive from a shared archive.
11830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11831
11832 # Create a temporary old-style archive to link instead of a shared archive.
11833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11834
11835 # Commands used to build and install a shared archive.
11836 archive_cmds=$lt_archive_cmds
11837 archive_expsym_cmds=$lt_archive_expsym_cmds
11838 postinstall_cmds=$lt_postinstall_cmds
11839 postuninstall_cmds=$lt_postuninstall_cmds
11840
11841 # Commands used to build a loadable module (assumed same as above if empty)
11842 module_cmds=$lt_module_cmds
11843 module_expsym_cmds=$lt_module_expsym_cmds
11844
11845 # Commands to strip libraries.
11846 old_striplib=$lt_old_striplib
11847 striplib=$lt_striplib
11848
11849 # Dependencies to place before the objects being linked to create a
11850 # shared library.
11851 predep_objects=$lt_predep_objects
11852
11853 # Dependencies to place after the objects being linked to create a
11854 # shared library.
11855 postdep_objects=$lt_postdep_objects
11856
11857 # Dependencies to place before the objects being linked to create a
11858 # shared library.
11859 predeps=$lt_predeps
11860
11861 # Dependencies to place after the objects being linked to create a
11862 # shared library.
11863 postdeps=$lt_postdeps
11864
11865 # The library search path used internally by the compiler when linking
11866 # a shared library.
11867 compiler_lib_search_path=$lt_compiler_lib_search_path
11868
11869 # Method to check whether dependent libraries are shared objects.
11870 deplibs_check_method=$lt_deplibs_check_method
11871
11872 # Command to use when deplibs_check_method == file_magic.
11873 file_magic_cmd=$lt_file_magic_cmd
11874
11875 # Flag that allows shared libraries with undefined symbols to be built.
11876 allow_undefined_flag=$lt_allow_undefined_flag
11877
11878 # Flag that forces no undefined symbols.
11879 no_undefined_flag=$lt_no_undefined_flag
11880
11881 # Commands used to finish a libtool library installation in a directory.
11882 finish_cmds=$lt_finish_cmds
11883
11884 # Same as above, but a single script fragment to be evaled but not shown.
11885 finish_eval=$lt_finish_eval
11886
11887 # Take the output of nm and produce a listing of raw symbols and C names.
11888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11889
11890 # Transform the output of nm in a proper C declaration
11891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11892
11893 # Transform the output of nm in a C name address pair
11894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11895
11896 # This is the shared library runtime path variable.
11897 runpath_var=$runpath_var
11898
11899 # This is the shared library path variable.
11900 shlibpath_var=$shlibpath_var
11901
11902 # Is shlibpath searched before the hard-coded library search path?
11903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11904
11905 # How to hardcode a shared library path into an executable.
11906 hardcode_action=$hardcode_action
11907
11908 # Whether we should hardcode library paths into libraries.
11909 hardcode_into_libs=$hardcode_into_libs
11910
11911 # Flag to hardcode \$libdir into a binary during linking.
11912 # This must work even if \$libdir does not exist.
11913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11914
11915 # If ld is used when linking, flag to hardcode \$libdir into
11916 # a binary during linking. This must work even if \$libdir does
11917 # not exist.
11918 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11919
11920 # Whether we need a single -rpath flag with a separated argument.
11921 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11922
11923 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11924 # resulting binary.
11925 hardcode_direct=$hardcode_direct
11926
11927 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11928 # resulting binary.
11929 hardcode_minus_L=$hardcode_minus_L
11930
11931 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11932 # the resulting binary.
11933 hardcode_shlibpath_var=$hardcode_shlibpath_var
11934
11935 # Set to yes if building a shared library automatically hardcodes DIR into the library
11936 # and all subsequent libraries and executables linked against it.
11937 hardcode_automatic=$hardcode_automatic
11938
11939 # Variables whose values should be saved in libtool wrapper scripts and
11940 # restored at relink time.
11941 variables_saved_for_relink="$variables_saved_for_relink"
11942
11943 # Whether libtool must link a program against all its dependency libraries.
11944 link_all_deplibs=$link_all_deplibs
11945
11946 # Compile-time system search path for libraries
11947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11948
11949 # Run-time system search path for libraries
11950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11951
11952 # Fix the shell variable \$srcfile for the compiler.
11953 fix_srcfile_path=$lt_fix_srcfile_path
11954
11955 # Set to yes if exported symbols are required.
11956 always_export_symbols=$always_export_symbols
11957
11958 # The commands to list exported symbols.
11959 export_symbols_cmds=$lt_export_symbols_cmds
11960
11961 # The commands to extract the exported symbol list from a shared archive.
11962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11963
11964 # Symbols that should not be listed in the preloaded symbols.
11965 exclude_expsyms=$lt_exclude_expsyms
11966
11967 # Symbols that must always be exported.
11968 include_expsyms=$lt_include_expsyms
11969
11970 # ### END LIBTOOL CONFIG
11971
11972 __EOF__
11973
11974
11975 case $host_os in
11976 aix3*)
11977 cat <<\EOF >> "$cfgfile"
11978
11979 # AIX sometimes has problems with the GCC collect2 program. For some
11980 # reason, if we set the COLLECT_NAMES environment variable, the problems
11981 # vanish in a puff of smoke.
11982 if test "X${COLLECT_NAMES+set}" != Xset; then
11983 COLLECT_NAMES=
11984 export COLLECT_NAMES
11985 fi
11986 EOF
11987 ;;
11988 esac
11989
11990 # We use sed instead of cat because bash on DJGPP gets confused if
11991 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11992 # text mode, it properly converts lines to CR/LF. This bash problem
11993 # is reportedly fixed, but why not run on old versions too?
11994 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11995
11996 mv -f "$cfgfile" "$ofile" || \
11997 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11998 chmod +x "$ofile"
11999
12000 else
12001 # If there is no Makefile yet, we rely on a make rule to execute
12002 # `config.status --recheck' to rerun these tests and create the
12003 # libtool script then.
12004 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12005 if test -f "$ltmain_in"; then
12006 test -f Makefile && make "$ltmain"
12007 fi
12008 fi
12009
12010
12011 ac_ext=c
12012 ac_cpp='$CPP $CPPFLAGS'
12013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12016
12017 CC="$lt_save_CC"
12018
12019
12020 # Check whether --with-tags was given.
12021 if test "${with_tags+set}" = set; then
12022 withval=$with_tags; tagnames="$withval"
12023 fi
12024
12025
12026 if test -f "$ltmain" && test -n "$tagnames"; then
12027 if test ! -f "${ofile}"; then
12028 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12029 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12030 fi
12031
12032 if test -z "$LTCC"; then
12033 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12034 if test -z "$LTCC"; then
12035 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12036 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12037 else
12038 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12039 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12040 fi
12041 fi
12042 if test -z "$LTCFLAGS"; then
12043 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12044 fi
12045
12046 # Extract list of available tagged configurations in $ofile.
12047 # Note that this assumes the entire list is on one line.
12048 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12049
12050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12051 for tagname in $tagnames; do
12052 IFS="$lt_save_ifs"
12053 # Check whether tagname contains only valid characters
12054 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12055 "") ;;
12056 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12057 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12058 { (exit 1); exit 1; }; }
12059 ;;
12060 esac
12061
12062 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12063 then
12064 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12065 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12066 { (exit 1); exit 1; }; }
12067 fi
12068
12069 # Update the list of available tags.
12070 if test -n "$tagname"; then
12071 echo appending configuration tag \"$tagname\" to $ofile
12072
12073 case $tagname in
12074 CXX)
12075 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12076 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12077 (test "X$CXX" != "Xg++"))) ; then
12078 ac_ext=cpp
12079 ac_cpp='$CXXCPP $CPPFLAGS'
12080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12083
12084
12085
12086
12087 archive_cmds_need_lc_CXX=no
12088 allow_undefined_flag_CXX=
12089 always_export_symbols_CXX=no
12090 archive_expsym_cmds_CXX=
12091 export_dynamic_flag_spec_CXX=
12092 hardcode_direct_CXX=no
12093 hardcode_libdir_flag_spec_CXX=
12094 hardcode_libdir_flag_spec_ld_CXX=
12095 hardcode_libdir_separator_CXX=
12096 hardcode_minus_L_CXX=no
12097 hardcode_shlibpath_var_CXX=unsupported
12098 hardcode_automatic_CXX=no
12099 module_cmds_CXX=
12100 module_expsym_cmds_CXX=
12101 link_all_deplibs_CXX=unknown
12102 old_archive_cmds_CXX=$old_archive_cmds
12103 no_undefined_flag_CXX=
12104 whole_archive_flag_spec_CXX=
12105 enable_shared_with_static_runtimes_CXX=no
12106
12107 # Dependencies to place before and after the object being linked:
12108 predep_objects_CXX=
12109 postdep_objects_CXX=
12110 predeps_CXX=
12111 postdeps_CXX=
12112 compiler_lib_search_path_CXX=
12113
12114 # Source file extension for C++ test sources.
12115 ac_ext=cpp
12116
12117 # Object file extension for compiled C++ test sources.
12118 objext=o
12119 objext_CXX=$objext
12120
12121 # Code to be used in simple compile tests
12122 lt_simple_compile_test_code="int some_variable = 0;"
12123
12124 # Code to be used in simple link tests
12125 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12126
12127 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12128
12129 # If no C compiler was specified, use CC.
12130 LTCC=${LTCC-"$CC"}
12131
12132 # If no C compiler flags were specified, use CFLAGS.
12133 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12134
12135 # Allow CC to be a program name with arguments.
12136 compiler=$CC
12137
12138
12139 # save warnings/boilerplate of simple test code
12140 ac_outfile=conftest.$ac_objext
12141 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12142 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12143 _lt_compiler_boilerplate=`cat conftest.err`
12144 $rm conftest*
12145
12146 ac_outfile=conftest.$ac_objext
12147 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12148 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12149 _lt_linker_boilerplate=`cat conftest.err`
12150 $rm conftest*
12151
12152
12153 # Allow CC to be a program name with arguments.
12154 lt_save_CC=$CC
12155 lt_save_LD=$LD
12156 lt_save_GCC=$GCC
12157 GCC=$GXX
12158 lt_save_with_gnu_ld=$with_gnu_ld
12159 lt_save_path_LD=$lt_cv_path_LD
12160 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12161 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12162 else
12163 $as_unset lt_cv_prog_gnu_ld
12164 fi
12165 if test -n "${lt_cv_path_LDCXX+set}"; then
12166 lt_cv_path_LD=$lt_cv_path_LDCXX
12167 else
12168 $as_unset lt_cv_path_LD
12169 fi
12170 test -z "${LDCXX+set}" || LD=$LDCXX
12171 CC=${CXX-"c++"}
12172 compiler=$CC
12173 compiler_CXX=$CC
12174 for cc_temp in $compiler""; do
12175 case $cc_temp in
12176 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12177 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12178 \-*) ;;
12179 *) break;;
12180 esac
12181 done
12182 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12183
12184
12185 # We don't want -fno-exception wen compiling C++ code, so set the
12186 # no_builtin_flag separately
12187 if test "$GXX" = yes; then
12188 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12189 else
12190 lt_prog_compiler_no_builtin_flag_CXX=
12191 fi
12192
12193 if test "$GXX" = yes; then
12194 # Set up default GNU C++ configuration
12195
12196
12197 # Check whether --with-gnu-ld was given.
12198 if test "${with_gnu_ld+set}" = set; then
12199 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12200 else
12201 with_gnu_ld=no
12202 fi
12203
12204 ac_prog=ld
12205 if test "$GCC" = yes; then
12206 # Check if gcc -print-prog-name=ld gives a path.
12207 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12208 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12209 case $host in
12210 *-*-mingw*)
12211 # gcc leaves a trailing carriage return which upsets mingw
12212 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12213 *)
12214 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12215 esac
12216 case $ac_prog in
12217 # Accept absolute paths.
12218 [\\/]* | ?:[\\/]*)
12219 re_direlt='/[^/][^/]*/\.\./'
12220 # Canonicalize the pathname of ld
12221 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12222 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12223 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12224 done
12225 test -z "$LD" && LD="$ac_prog"
12226 ;;
12227 "")
12228 # If it fails, then pretend we aren't using GCC.
12229 ac_prog=ld
12230 ;;
12231 *)
12232 # If it is relative, then search for the first ld in PATH.
12233 with_gnu_ld=unknown
12234 ;;
12235 esac
12236 elif test "$with_gnu_ld" = yes; then
12237 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12238 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12239 else
12240 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12241 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12242 fi
12243 if test "${lt_cv_path_LD+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246 if test -z "$LD"; then
12247 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12248 for ac_dir in $PATH; do
12249 IFS="$lt_save_ifs"
12250 test -z "$ac_dir" && ac_dir=.
12251 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12252 lt_cv_path_LD="$ac_dir/$ac_prog"
12253 # Check to see if the program is GNU ld. I'd rather use --version,
12254 # but apparently some variants of GNU ld only accept -v.
12255 # Break only if it was the GNU/non-GNU ld that we prefer.
12256 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12257 *GNU* | *'with BFD'*)
12258 test "$with_gnu_ld" != no && break
12259 ;;
12260 *)
12261 test "$with_gnu_ld" != yes && break
12262 ;;
12263 esac
12264 fi
12265 done
12266 IFS="$lt_save_ifs"
12267 else
12268 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12269 fi
12270 fi
12271
12272 LD="$lt_cv_path_LD"
12273 if test -n "$LD"; then
12274 { echo "$as_me:$LINENO: result: $LD" >&5
12275 echo "${ECHO_T}$LD" >&6; }
12276 else
12277 { echo "$as_me:$LINENO: result: no" >&5
12278 echo "${ECHO_T}no" >&6; }
12279 fi
12280 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12281 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12282 { (exit 1); exit 1; }; }
12283 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12284 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12285 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12289 case `$LD -v 2>&1 </dev/null` in
12290 *GNU* | *'with BFD'*)
12291 lt_cv_prog_gnu_ld=yes
12292 ;;
12293 *)
12294 lt_cv_prog_gnu_ld=no
12295 ;;
12296 esac
12297 fi
12298 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12299 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12300 with_gnu_ld=$lt_cv_prog_gnu_ld
12301
12302
12303
12304 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12305 # archiving commands below assume that GNU ld is being used.
12306 if test "$with_gnu_ld" = yes; then
12307 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12308 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'
12309
12310 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12311 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12312
12313 # If archive_cmds runs LD, not CC, wlarc should be empty
12314 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12315 # investigate it a little bit more. (MM)
12316 wlarc='${wl}'
12317
12318 # ancient GNU ld didn't support --whole-archive et. al.
12319 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12320 grep 'no-whole-archive' > /dev/null; then
12321 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12322 else
12323 whole_archive_flag_spec_CXX=
12324 fi
12325 else
12326 with_gnu_ld=no
12327 wlarc=
12328
12329 # A generic and very simple default shared library creation
12330 # command for GNU C++ for the case where it uses the native
12331 # linker, instead of GNU ld. If possible, this setting should
12332 # overridden to take advantage of the native linker features on
12333 # the platform it is being used on.
12334 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12335 fi
12336
12337 # Commands to make compiler produce verbose output that lists
12338 # what "hidden" libraries, object files and flags are used when
12339 # linking a shared library.
12340 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12341
12342 else
12343 GXX=no
12344 with_gnu_ld=no
12345 wlarc=
12346 fi
12347
12348 # PORTME: fill in a description of your system's C++ link characteristics
12349 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12350 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12351 ld_shlibs_CXX=yes
12352 case $host_os in
12353 aix3*)
12354 # FIXME: insert proper C++ library support
12355 ld_shlibs_CXX=no
12356 ;;
12357 aix4* | aix5*)
12358 if test "$host_cpu" = ia64; then
12359 # On IA64, the linker does run time linking by default, so we don't
12360 # have to do anything special.
12361 aix_use_runtimelinking=no
12362 exp_sym_flag='-Bexport'
12363 no_entry_flag=""
12364 else
12365 aix_use_runtimelinking=no
12366
12367 # Test if we are trying to use run time linking or normal
12368 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12369 # need to do runtime linking.
12370 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12371 for ld_flag in $LDFLAGS; do
12372 case $ld_flag in
12373 *-brtl*)
12374 aix_use_runtimelinking=yes
12375 break
12376 ;;
12377 esac
12378 done
12379 ;;
12380 esac
12381
12382 exp_sym_flag='-bexport'
12383 no_entry_flag='-bnoentry'
12384 fi
12385
12386 # When large executables or shared objects are built, AIX ld can
12387 # have problems creating the table of contents. If linking a library
12388 # or program results in "error TOC overflow" add -mminimal-toc to
12389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12391
12392 archive_cmds_CXX=''
12393 hardcode_direct_CXX=yes
12394 hardcode_libdir_separator_CXX=':'
12395 link_all_deplibs_CXX=yes
12396
12397 if test "$GXX" = yes; then
12398 case $host_os in aix4.[012]|aix4.[012].*)
12399 # We only want to do this on AIX 4.2 and lower, the check
12400 # below for broken collect2 doesn't work under 4.3+
12401 collect2name=`${CC} -print-prog-name=collect2`
12402 if test -f "$collect2name" && \
12403 strings "$collect2name" | grep resolve_lib_name >/dev/null
12404 then
12405 # We have reworked collect2
12406 :
12407 else
12408 # We have old collect2
12409 hardcode_direct_CXX=unsupported
12410 # It fails to find uninstalled libraries when the uninstalled
12411 # path is not listed in the libpath. Setting hardcode_minus_L
12412 # to unsupported forces relinking
12413 hardcode_minus_L_CXX=yes
12414 hardcode_libdir_flag_spec_CXX='-L$libdir'
12415 hardcode_libdir_separator_CXX=
12416 fi
12417 ;;
12418 esac
12419 shared_flag='-shared'
12420 if test "$aix_use_runtimelinking" = yes; then
12421 shared_flag="$shared_flag "'${wl}-G'
12422 fi
12423 else
12424 # not using gcc
12425 if test "$host_cpu" = ia64; then
12426 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12427 # chokes on -Wl,-G. The following line is correct:
12428 shared_flag='-G'
12429 else
12430 if test "$aix_use_runtimelinking" = yes; then
12431 shared_flag='${wl}-G'
12432 else
12433 shared_flag='${wl}-bM:SRE'
12434 fi
12435 fi
12436 fi
12437
12438 # It seems that -bexpall does not export symbols beginning with
12439 # underscore (_), so it is better to generate a list of symbols to export.
12440 always_export_symbols_CXX=yes
12441 if test "$aix_use_runtimelinking" = yes; then
12442 # Warning - without using the other runtime loading flags (-brtl),
12443 # -berok will link without error, but may produce a broken library.
12444 allow_undefined_flag_CXX='-berok'
12445 # Determine the default libpath from the value encoded in an empty executable.
12446 cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h. */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452
12453 int
12454 main ()
12455 {
12456
12457 ;
12458 return 0;
12459 }
12460 _ACEOF
12461 rm -f conftest.$ac_objext conftest$ac_exeext
12462 if { (ac_try="$ac_link"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_link") 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && {
12475 test -z "$ac_cxx_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest$ac_exeext &&
12478 $as_test_x conftest$ac_exeext; then
12479
12480 lt_aix_libpath_sed='
12481 /Import File Strings/,/^$/ {
12482 /^0/ {
12483 s/^0 *\(.*\)$/\1/
12484 p
12485 }
12486 }'
12487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12488 # Check for a 64-bit object if we didn't find anything.
12489 if test -z "$aix_libpath"; then
12490 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12491 fi
12492 else
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496
12497 fi
12498
12499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12500 conftest$ac_exeext conftest.$ac_ext
12501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12502
12503 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12504
12505 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"
12506 else
12507 if test "$host_cpu" = ia64; then
12508 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12509 allow_undefined_flag_CXX="-z nodefs"
12510 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"
12511 else
12512 # Determine the default libpath from the value encoded in an empty executable.
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519
12520 int
12521 main ()
12522 {
12523
12524 ;
12525 return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (ac_try="$ac_link"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_link") 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } && {
12542 test -z "$ac_cxx_werror_flag" ||
12543 test ! -s conftest.err
12544 } && test -s conftest$ac_exeext &&
12545 $as_test_x conftest$ac_exeext; then
12546
12547 lt_aix_libpath_sed='
12548 /Import File Strings/,/^$/ {
12549 /^0/ {
12550 s/^0 *\(.*\)$/\1/
12551 p
12552 }
12553 }'
12554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12555 # Check for a 64-bit object if we didn't find anything.
12556 if test -z "$aix_libpath"; then
12557 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12558 fi
12559 else
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563
12564 fi
12565
12566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12567 conftest$ac_exeext conftest.$ac_ext
12568 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12569
12570 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12571 # Warning - without using the other run time loading flags,
12572 # -berok will link without error, but may produce a broken library.
12573 no_undefined_flag_CXX=' ${wl}-bernotok'
12574 allow_undefined_flag_CXX=' ${wl}-berok'
12575 # Exported symbols can be pulled into shared objects from archives
12576 whole_archive_flag_spec_CXX='$convenience'
12577 archive_cmds_need_lc_CXX=yes
12578 # This is similar to how AIX traditionally builds its shared libraries.
12579 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'
12580 fi
12581 fi
12582 ;;
12583
12584 beos*)
12585 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12586 allow_undefined_flag_CXX=unsupported
12587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12588 # support --undefined. This deserves some investigation. FIXME
12589 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12590 else
12591 ld_shlibs_CXX=no
12592 fi
12593 ;;
12594
12595 chorus*)
12596 case $cc_basename in
12597 *)
12598 # FIXME: insert proper C++ library support
12599 ld_shlibs_CXX=no
12600 ;;
12601 esac
12602 ;;
12603
12604 cygwin* | mingw* | pw32*)
12605 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12606 # as there is no search path for DLLs.
12607 hardcode_libdir_flag_spec_CXX='-L$libdir'
12608 allow_undefined_flag_CXX=unsupported
12609 always_export_symbols_CXX=no
12610 enable_shared_with_static_runtimes_CXX=yes
12611
12612 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12613 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'
12614 # If the export-symbols file already is a .def file (1st line
12615 # is EXPORTS), use it as is; otherwise, prepend...
12616 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12617 cp $export_symbols $output_objdir/$soname.def;
12618 else
12619 echo EXPORTS > $output_objdir/$soname.def;
12620 cat $export_symbols >> $output_objdir/$soname.def;
12621 fi~
12622 $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'
12623 else
12624 ld_shlibs_CXX=no
12625 fi
12626 ;;
12627 darwin* | rhapsody*)
12628 case $host_os in
12629 rhapsody* | darwin1.[012])
12630 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12631 ;;
12632 *) # Darwin 1.3 on
12633 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12634 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12635 else
12636 case ${MACOSX_DEPLOYMENT_TARGET} in
12637 10.[012])
12638 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12639 ;;
12640 10.*)
12641 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12642 ;;
12643 esac
12644 fi
12645 ;;
12646 esac
12647 archive_cmds_need_lc_CXX=no
12648 hardcode_direct_CXX=no
12649 hardcode_automatic_CXX=yes
12650 hardcode_shlibpath_var_CXX=unsupported
12651 whole_archive_flag_spec_CXX=''
12652 link_all_deplibs_CXX=yes
12653
12654 if test "$GXX" = yes ; then
12655 lt_int_apple_cc_single_mod=no
12656 output_verbose_link_cmd='echo'
12657 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12658 lt_int_apple_cc_single_mod=yes
12659 fi
12660 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12661 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12662 else
12663 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'
12664 fi
12665 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12667 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12668 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12669 else
12670 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12671 fi
12672 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}'
12673 else
12674 case $cc_basename in
12675 xlc*)
12676 output_verbose_link_cmd='echo'
12677 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'
12678 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12679 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12680 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}'
12681 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}'
12682 ;;
12683 *)
12684 ld_shlibs_CXX=no
12685 ;;
12686 esac
12687 fi
12688 ;;
12689
12690 dgux*)
12691 case $cc_basename in
12692 ec++*)
12693 # FIXME: insert proper C++ library support
12694 ld_shlibs_CXX=no
12695 ;;
12696 ghcx*)
12697 # Green Hills C++ Compiler
12698 # FIXME: insert proper C++ library support
12699 ld_shlibs_CXX=no
12700 ;;
12701 *)
12702 # FIXME: insert proper C++ library support
12703 ld_shlibs_CXX=no
12704 ;;
12705 esac
12706 ;;
12707 freebsd[12]*)
12708 # C++ shared libraries reported to be fairly broken before switch to ELF
12709 ld_shlibs_CXX=no
12710 ;;
12711 freebsd-elf*)
12712 archive_cmds_need_lc_CXX=no
12713 ;;
12714 freebsd* | dragonfly*)
12715 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12716 # conventions
12717 ld_shlibs_CXX=yes
12718 ;;
12719 gnu*)
12720 ;;
12721 hpux9*)
12722 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12723 hardcode_libdir_separator_CXX=:
12724 export_dynamic_flag_spec_CXX='${wl}-E'
12725 hardcode_direct_CXX=yes
12726 hardcode_minus_L_CXX=yes # Not in the search PATH,
12727 # but as the default
12728 # location of the library.
12729
12730 case $cc_basename in
12731 CC*)
12732 # FIXME: insert proper C++ library support
12733 ld_shlibs_CXX=no
12734 ;;
12735 aCC*)
12736 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'
12737 # Commands to make compiler produce verbose output that lists
12738 # what "hidden" libraries, object files and flags are used when
12739 # linking a shared library.
12740 #
12741 # There doesn't appear to be a way to prevent this compiler from
12742 # explicitly linking system object files so we need to strip them
12743 # from the output so that they don't get included in the library
12744 # dependencies.
12745 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'
12746 ;;
12747 *)
12748 if test "$GXX" = yes; then
12749 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'
12750 else
12751 # FIXME: insert proper C++ library support
12752 ld_shlibs_CXX=no
12753 fi
12754 ;;
12755 esac
12756 ;;
12757 hpux10*|hpux11*)
12758 if test $with_gnu_ld = no; then
12759 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12760 hardcode_libdir_separator_CXX=:
12761
12762 case $host_cpu in
12763 hppa*64*|ia64*) ;;
12764 *)
12765 export_dynamic_flag_spec_CXX='${wl}-E'
12766 ;;
12767 esac
12768 fi
12769 case $host_cpu in
12770 hppa*64*|ia64*)
12771 hardcode_direct_CXX=no
12772 hardcode_shlibpath_var_CXX=no
12773 ;;
12774 *)
12775 hardcode_direct_CXX=yes
12776 hardcode_minus_L_CXX=yes # Not in the search PATH,
12777 # but as the default
12778 # location of the library.
12779 ;;
12780 esac
12781
12782 case $cc_basename in
12783 CC*)
12784 # FIXME: insert proper C++ library support
12785 ld_shlibs_CXX=no
12786 ;;
12787 aCC*)
12788 case $host_cpu in
12789 hppa*64*)
12790 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12791 ;;
12792 ia64*)
12793 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12794 ;;
12795 *)
12796 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12797 ;;
12798 esac
12799 # Commands to make compiler produce verbose output that lists
12800 # what "hidden" libraries, object files and flags are used when
12801 # linking a shared library.
12802 #
12803 # There doesn't appear to be a way to prevent this compiler from
12804 # explicitly linking system object files so we need to strip them
12805 # from the output so that they don't get included in the library
12806 # dependencies.
12807 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'
12808 ;;
12809 *)
12810 if test "$GXX" = yes; then
12811 if test $with_gnu_ld = no; then
12812 case $host_cpu in
12813 hppa*64*)
12814 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12815 ;;
12816 ia64*)
12817 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12818 ;;
12819 *)
12820 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'
12821 ;;
12822 esac
12823 fi
12824 else
12825 # FIXME: insert proper C++ library support
12826 ld_shlibs_CXX=no
12827 fi
12828 ;;
12829 esac
12830 ;;
12831 interix[3-9]*)
12832 hardcode_direct_CXX=no
12833 hardcode_shlibpath_var_CXX=no
12834 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12835 export_dynamic_flag_spec_CXX='${wl}-E'
12836 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12837 # Instead, shared libraries are loaded at an image base (0x10000000 by
12838 # default) and relocated if they conflict, which is a slow very memory
12839 # consuming and fragmenting process. To avoid this, we pick a random,
12840 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12841 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12842 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'
12843 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'
12844 ;;
12845 irix5* | irix6*)
12846 case $cc_basename in
12847 CC*)
12848 # SGI C++
12849 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'
12850
12851 # Archives containing C++ object files must be created using
12852 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12853 # necessary to make sure instantiated templates are included
12854 # in the archive.
12855 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12856 ;;
12857 *)
12858 if test "$GXX" = yes; then
12859 if test "$with_gnu_ld" = no; then
12860 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'
12861 else
12862 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'
12863 fi
12864 fi
12865 link_all_deplibs_CXX=yes
12866 ;;
12867 esac
12868 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12869 hardcode_libdir_separator_CXX=:
12870 ;;
12871 linux* | k*bsd*-gnu)
12872 case $cc_basename in
12873 KCC*)
12874 # Kuck and Associates, Inc. (KAI) C++ Compiler
12875
12876 # KCC will only create a shared library if the output file
12877 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12878 # to its proper name (with version) after linking.
12879 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'
12880 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'
12881 # Commands to make compiler produce verbose output that lists
12882 # what "hidden" libraries, object files and flags are used when
12883 # linking a shared library.
12884 #
12885 # There doesn't appear to be a way to prevent this compiler from
12886 # explicitly linking system object files so we need to strip them
12887 # from the output so that they don't get included in the library
12888 # dependencies.
12889 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'
12890
12891 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12892 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12893
12894 # Archives containing C++ object files must be created using
12895 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12896 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12897 ;;
12898 icpc*)
12899 # Intel C++
12900 with_gnu_ld=yes
12901 # version 8.0 and above of icpc choke on multiply defined symbols
12902 # if we add $predep_objects and $postdep_objects, however 7.1 and
12903 # earlier do not add the objects themselves.
12904 case `$CC -V 2>&1` in
12905 *"Version 7."*)
12906 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12907 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'
12908 ;;
12909 *) # Version 8.0 or newer
12910 tmp_idyn=
12911 case $host_cpu in
12912 ia64*) tmp_idyn=' -i_dynamic';;
12913 esac
12914 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12915 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'
12916 ;;
12917 esac
12918 archive_cmds_need_lc_CXX=no
12919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12920 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12921 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12922 ;;
12923 pgCC*)
12924 # Portland Group C++ compiler
12925 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12926 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'
12927
12928 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12929 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12930 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'
12931 ;;
12932 cxx*)
12933 # Compaq C++
12934 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12935 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'
12936
12937 runpath_var=LD_RUN_PATH
12938 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12939 hardcode_libdir_separator_CXX=:
12940
12941 # Commands to make compiler produce verbose output that lists
12942 # what "hidden" libraries, object files and flags are used when
12943 # linking a shared library.
12944 #
12945 # There doesn't appear to be a way to prevent this compiler from
12946 # explicitly linking system object files so we need to strip them
12947 # from the output so that they don't get included in the library
12948 # dependencies.
12949 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'
12950 ;;
12951 *)
12952 case `$CC -V 2>&1 | sed 5q` in
12953 *Sun\ C*)
12954 # Sun C++ 5.9
12955 no_undefined_flag_CXX=' -zdefs'
12956 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12957 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'
12958 hardcode_libdir_flag_spec_CXX='-R$libdir'
12959 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'
12960
12961 # Not sure whether something based on
12962 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12963 # would be better.
12964 output_verbose_link_cmd='echo'
12965
12966 # Archives containing C++ object files must be created using
12967 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12968 # necessary to make sure instantiated templates are included
12969 # in the archive.
12970 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12971 ;;
12972 esac
12973 ;;
12974 esac
12975 ;;
12976 lynxos*)
12977 # FIXME: insert proper C++ library support
12978 ld_shlibs_CXX=no
12979 ;;
12980 m88k*)
12981 # FIXME: insert proper C++ library support
12982 ld_shlibs_CXX=no
12983 ;;
12984 mvs*)
12985 case $cc_basename in
12986 cxx*)
12987 # FIXME: insert proper C++ library support
12988 ld_shlibs_CXX=no
12989 ;;
12990 *)
12991 # FIXME: insert proper C++ library support
12992 ld_shlibs_CXX=no
12993 ;;
12994 esac
12995 ;;
12996 netbsd* | netbsdelf*-gnu)
12997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12998 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12999 wlarc=
13000 hardcode_libdir_flag_spec_CXX='-R$libdir'
13001 hardcode_direct_CXX=yes
13002 hardcode_shlibpath_var_CXX=no
13003 fi
13004 # Workaround some broken pre-1.5 toolchains
13005 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13006 ;;
13007 openbsd2*)
13008 # C++ shared libraries are fairly broken
13009 ld_shlibs_CXX=no
13010 ;;
13011 openbsd*)
13012 if test -f /usr/libexec/ld.so; then
13013 hardcode_direct_CXX=yes
13014 hardcode_shlibpath_var_CXX=no
13015 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13018 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13019 export_dynamic_flag_spec_CXX='${wl}-E'
13020 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13021 fi
13022 output_verbose_link_cmd='echo'
13023 else
13024 ld_shlibs_CXX=no
13025 fi
13026 ;;
13027 osf3*)
13028 case $cc_basename in
13029 KCC*)
13030 # Kuck and Associates, Inc. (KAI) C++ Compiler
13031
13032 # KCC will only create a shared library if the output file
13033 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13034 # to its proper name (with version) after linking.
13035 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'
13036
13037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13038 hardcode_libdir_separator_CXX=:
13039
13040 # Archives containing C++ object files must be created using
13041 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13042 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13043
13044 ;;
13045 RCC*)
13046 # Rational C++ 2.4.1
13047 # FIXME: insert proper C++ library support
13048 ld_shlibs_CXX=no
13049 ;;
13050 cxx*)
13051 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13052 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'
13053
13054 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13055 hardcode_libdir_separator_CXX=:
13056
13057 # Commands to make compiler produce verbose output that lists
13058 # what "hidden" libraries, object files and flags are used when
13059 # linking a shared library.
13060 #
13061 # There doesn't appear to be a way to prevent this compiler from
13062 # explicitly linking system object files so we need to strip them
13063 # from the output so that they don't get included in the library
13064 # dependencies.
13065 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'
13066 ;;
13067 *)
13068 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13069 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13070 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'
13071
13072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13073 hardcode_libdir_separator_CXX=:
13074
13075 # Commands to make compiler produce verbose output that lists
13076 # what "hidden" libraries, object files and flags are used when
13077 # linking a shared library.
13078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13079
13080 else
13081 # FIXME: insert proper C++ library support
13082 ld_shlibs_CXX=no
13083 fi
13084 ;;
13085 esac
13086 ;;
13087 osf4* | osf5*)
13088 case $cc_basename in
13089 KCC*)
13090 # Kuck and Associates, Inc. (KAI) C++ Compiler
13091
13092 # KCC will only create a shared library if the output file
13093 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13094 # to its proper name (with version) after linking.
13095 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'
13096
13097 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13098 hardcode_libdir_separator_CXX=:
13099
13100 # Archives containing C++ object files must be created using
13101 # the KAI C++ compiler.
13102 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13103 ;;
13104 RCC*)
13105 # Rational C++ 2.4.1
13106 # FIXME: insert proper C++ library support
13107 ld_shlibs_CXX=no
13108 ;;
13109 cxx*)
13110 allow_undefined_flag_CXX=' -expect_unresolved \*'
13111 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'
13112 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13113 echo "-hidden">> $lib.exp~
13114 $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~
13115 $rm $lib.exp'
13116
13117 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13118 hardcode_libdir_separator_CXX=:
13119
13120 # Commands to make compiler produce verbose output that lists
13121 # what "hidden" libraries, object files and flags are used when
13122 # linking a shared library.
13123 #
13124 # There doesn't appear to be a way to prevent this compiler from
13125 # explicitly linking system object files so we need to strip them
13126 # from the output so that they don't get included in the library
13127 # dependencies.
13128 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'
13129 ;;
13130 *)
13131 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13132 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13133 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'
13134
13135 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13136 hardcode_libdir_separator_CXX=:
13137
13138 # Commands to make compiler produce verbose output that lists
13139 # what "hidden" libraries, object files and flags are used when
13140 # linking a shared library.
13141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13142
13143 else
13144 # FIXME: insert proper C++ library support
13145 ld_shlibs_CXX=no
13146 fi
13147 ;;
13148 esac
13149 ;;
13150 psos*)
13151 # FIXME: insert proper C++ library support
13152 ld_shlibs_CXX=no
13153 ;;
13154 sunos4*)
13155 case $cc_basename in
13156 CC*)
13157 # Sun C++ 4.x
13158 # FIXME: insert proper C++ library support
13159 ld_shlibs_CXX=no
13160 ;;
13161 lcc*)
13162 # Lucid
13163 # FIXME: insert proper C++ library support
13164 ld_shlibs_CXX=no
13165 ;;
13166 *)
13167 # FIXME: insert proper C++ library support
13168 ld_shlibs_CXX=no
13169 ;;
13170 esac
13171 ;;
13172 solaris*)
13173 case $cc_basename in
13174 CC*)
13175 # Sun C++ 4.2, 5.x and Centerline C++
13176 archive_cmds_need_lc_CXX=yes
13177 no_undefined_flag_CXX=' -zdefs'
13178 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13179 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13180 $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'
13181
13182 hardcode_libdir_flag_spec_CXX='-R$libdir'
13183 hardcode_shlibpath_var_CXX=no
13184 case $host_os in
13185 solaris2.[0-5] | solaris2.[0-5].*) ;;
13186 *)
13187 # The compiler driver will combine and reorder linker options,
13188 # but understands `-z linker_flag'.
13189 # Supported since Solaris 2.6 (maybe 2.5.1?)
13190 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13191 ;;
13192 esac
13193 link_all_deplibs_CXX=yes
13194
13195 output_verbose_link_cmd='echo'
13196
13197 # Archives containing C++ object files must be created using
13198 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13199 # necessary to make sure instantiated templates are included
13200 # in the archive.
13201 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13202 ;;
13203 gcx*)
13204 # Green Hills C++ Compiler
13205 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13206
13207 # The C++ compiler must be used to create the archive.
13208 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13209 ;;
13210 *)
13211 # GNU C++ compiler with Solaris linker
13212 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13213 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13214 if $CC --version | grep -v '^2\.7' > /dev/null; then
13215 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13216 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13217 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13218
13219 # Commands to make compiler produce verbose output that lists
13220 # what "hidden" libraries, object files and flags are used when
13221 # linking a shared library.
13222 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13223 else
13224 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13225 # platform.
13226 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13227 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13228 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13229
13230 # Commands to make compiler produce verbose output that lists
13231 # what "hidden" libraries, object files and flags are used when
13232 # linking a shared library.
13233 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13234 fi
13235
13236 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13237 case $host_os in
13238 solaris2.[0-5] | solaris2.[0-5].*) ;;
13239 *)
13240 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13241 ;;
13242 esac
13243 fi
13244 ;;
13245 esac
13246 ;;
13247 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13248 no_undefined_flag_CXX='${wl}-z,text'
13249 archive_cmds_need_lc_CXX=no
13250 hardcode_shlibpath_var_CXX=no
13251 runpath_var='LD_RUN_PATH'
13252
13253 case $cc_basename in
13254 CC*)
13255 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13256 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13257 ;;
13258 *)
13259 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13260 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13261 ;;
13262 esac
13263 ;;
13264 sysv5* | sco3.2v5* | sco5v6*)
13265 # Note: We can NOT use -z defs as we might desire, because we do not
13266 # link with -lc, and that would cause any symbols used from libc to
13267 # always be unresolved, which means just about no library would
13268 # ever link correctly. If we're not using GNU ld we use -z text
13269 # though, which does catch some bad symbols but isn't as heavy-handed
13270 # as -z defs.
13271 # For security reasons, it is highly recommended that you always
13272 # use absolute paths for naming shared libraries, and exclude the
13273 # DT_RUNPATH tag from executables and libraries. But doing so
13274 # requires that you compile everything twice, which is a pain.
13275 # So that behaviour is only enabled if SCOABSPATH is set to a
13276 # non-empty value in the environment. Most likely only useful for
13277 # creating official distributions of packages.
13278 # This is a hack until libtool officially supports absolute path
13279 # names for shared libraries.
13280 no_undefined_flag_CXX='${wl}-z,text'
13281 allow_undefined_flag_CXX='${wl}-z,nodefs'
13282 archive_cmds_need_lc_CXX=no
13283 hardcode_shlibpath_var_CXX=no
13284 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13285 hardcode_libdir_separator_CXX=':'
13286 link_all_deplibs_CXX=yes
13287 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13288 runpath_var='LD_RUN_PATH'
13289
13290 case $cc_basename in
13291 CC*)
13292 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13293 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13294 ;;
13295 *)
13296 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13298 ;;
13299 esac
13300 ;;
13301 tandem*)
13302 case $cc_basename in
13303 NCC*)
13304 # NonStop-UX NCC 3.20
13305 # FIXME: insert proper C++ library support
13306 ld_shlibs_CXX=no
13307 ;;
13308 *)
13309 # FIXME: insert proper C++ library support
13310 ld_shlibs_CXX=no
13311 ;;
13312 esac
13313 ;;
13314 vxworks*)
13315 # FIXME: insert proper C++ library support
13316 ld_shlibs_CXX=no
13317 ;;
13318 *)
13319 # FIXME: insert proper C++ library support
13320 ld_shlibs_CXX=no
13321 ;;
13322 esac
13323 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13324 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13325 test "$ld_shlibs_CXX" = no && can_build_shared=no
13326
13327 GCC_CXX="$GXX"
13328 LD_CXX="$LD"
13329
13330
13331 cat > conftest.$ac_ext <<EOF
13332 class Foo
13333 {
13334 public:
13335 Foo (void) { a = 0; }
13336 private:
13337 int a;
13338 };
13339 EOF
13340
13341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13342 (eval $ac_compile) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; then
13346 # Parse the compiler output and extract the necessary
13347 # objects, libraries and library flags.
13348
13349 # Sentinel used to keep track of whether or not we are before
13350 # the conftest object file.
13351 pre_test_object_deps_done=no
13352
13353 # The `*' in the case matches for architectures that use `case' in
13354 # $output_verbose_cmd can trigger glob expansion during the loop
13355 # eval without this substitution.
13356 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13357
13358 for p in `eval $output_verbose_link_cmd`; do
13359 case $p in
13360
13361 -L* | -R* | -l*)
13362 # Some compilers place space between "-{L,R}" and the path.
13363 # Remove the space.
13364 if test $p = "-L" \
13365 || test $p = "-R"; then
13366 prev=$p
13367 continue
13368 else
13369 prev=
13370 fi
13371
13372 if test "$pre_test_object_deps_done" = no; then
13373 case $p in
13374 -L* | -R*)
13375 # Internal compiler library paths should come after those
13376 # provided the user. The postdeps already come after the
13377 # user supplied libs so there is no need to process them.
13378 if test -z "$compiler_lib_search_path_CXX"; then
13379 compiler_lib_search_path_CXX="${prev}${p}"
13380 else
13381 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13382 fi
13383 ;;
13384 # The "-l" case would never come before the object being
13385 # linked, so don't bother handling this case.
13386 esac
13387 else
13388 if test -z "$postdeps_CXX"; then
13389 postdeps_CXX="${prev}${p}"
13390 else
13391 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13392 fi
13393 fi
13394 ;;
13395
13396 *.$objext)
13397 # This assumes that the test object file only shows up
13398 # once in the compiler output.
13399 if test "$p" = "conftest.$objext"; then
13400 pre_test_object_deps_done=yes
13401 continue
13402 fi
13403
13404 if test "$pre_test_object_deps_done" = no; then
13405 if test -z "$predep_objects_CXX"; then
13406 predep_objects_CXX="$p"
13407 else
13408 predep_objects_CXX="$predep_objects_CXX $p"
13409 fi
13410 else
13411 if test -z "$postdep_objects_CXX"; then
13412 postdep_objects_CXX="$p"
13413 else
13414 postdep_objects_CXX="$postdep_objects_CXX $p"
13415 fi
13416 fi
13417 ;;
13418
13419 *) ;; # Ignore the rest.
13420
13421 esac
13422 done
13423
13424 # Clean up.
13425 rm -f a.out a.exe
13426 else
13427 echo "libtool.m4: error: problem compiling CXX test program"
13428 fi
13429
13430 $rm -f confest.$objext
13431
13432 # PORTME: override above test on systems where it is broken
13433 case $host_os in
13434 interix[3-9]*)
13435 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13436 # hack all around it, let's just trust "g++" to DTRT.
13437 predep_objects_CXX=
13438 postdep_objects_CXX=
13439 postdeps_CXX=
13440 ;;
13441
13442 linux*)
13443 case `$CC -V 2>&1 | sed 5q` in
13444 *Sun\ C*)
13445 # Sun C++ 5.9
13446 #
13447 # The more standards-conforming stlport4 library is
13448 # incompatible with the Cstd library. Avoid specifying
13449 # it if it's in CXXFLAGS. Ignore libCrun as
13450 # -library=stlport4 depends on it.
13451 case " $CXX $CXXFLAGS " in
13452 *" -library=stlport4 "*)
13453 solaris_use_stlport4=yes
13454 ;;
13455 esac
13456 if test "$solaris_use_stlport4" != yes; then
13457 postdeps_CXX='-library=Cstd -library=Crun'
13458 fi
13459 ;;
13460 esac
13461 ;;
13462
13463 solaris*)
13464 case $cc_basename in
13465 CC*)
13466 # The more standards-conforming stlport4 library is
13467 # incompatible with the Cstd library. Avoid specifying
13468 # it if it's in CXXFLAGS. Ignore libCrun as
13469 # -library=stlport4 depends on it.
13470 case " $CXX $CXXFLAGS " in
13471 *" -library=stlport4 "*)
13472 solaris_use_stlport4=yes
13473 ;;
13474 esac
13475
13476 # Adding this requires a known-good setup of shared libraries for
13477 # Sun compiler versions before 5.6, else PIC objects from an old
13478 # archive will be linked into the output, leading to subtle bugs.
13479 if test "$solaris_use_stlport4" != yes; then
13480 postdeps_CXX='-library=Cstd -library=Crun'
13481 fi
13482 ;;
13483 esac
13484 ;;
13485 esac
13486
13487
13488 case " $postdeps_CXX " in
13489 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13490 esac
13491
13492 lt_prog_compiler_wl_CXX=
13493 lt_prog_compiler_pic_CXX=
13494 lt_prog_compiler_static_CXX=
13495
13496 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13497 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13498
13499 # C++ specific cases for pic, static, wl, etc.
13500 if test "$GXX" = yes; then
13501 lt_prog_compiler_wl_CXX='-Wl,'
13502 lt_prog_compiler_static_CXX='-static'
13503
13504 case $host_os in
13505 aix*)
13506 # All AIX code is PIC.
13507 if test "$host_cpu" = ia64; then
13508 # AIX 5 now supports IA64 processor
13509 lt_prog_compiler_static_CXX='-Bstatic'
13510 fi
13511 ;;
13512 amigaos*)
13513 # FIXME: we need at least 68020 code to build shared libraries, but
13514 # adding the `-m68020' flag to GCC prevents building anything better,
13515 # like `-m68040'.
13516 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13517 ;;
13518 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13519 # PIC is the default for these OSes.
13520 ;;
13521 mingw* | cygwin* | os2* | pw32*)
13522 # This hack is so that the source file can tell whether it is being
13523 # built for inclusion in a dll (and should export symbols for example).
13524 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13525 # (--disable-auto-import) libraries
13526 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13527 ;;
13528 darwin* | rhapsody*)
13529 # PIC is the default on this platform
13530 # Common symbols not allowed in MH_DYLIB files
13531 lt_prog_compiler_pic_CXX='-fno-common'
13532 ;;
13533 *djgpp*)
13534 # DJGPP does not support shared libraries at all
13535 lt_prog_compiler_pic_CXX=
13536 ;;
13537 interix[3-9]*)
13538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13539 # Instead, we relocate shared libraries at runtime.
13540 ;;
13541 sysv4*MP*)
13542 if test -d /usr/nec; then
13543 lt_prog_compiler_pic_CXX=-Kconform_pic
13544 fi
13545 ;;
13546 hpux*)
13547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13548 # not for PA HP-UX.
13549 case $host_cpu in
13550 hppa*64*|ia64*)
13551 ;;
13552 *)
13553 lt_prog_compiler_pic_CXX='-fPIC'
13554 ;;
13555 esac
13556 ;;
13557 *)
13558 lt_prog_compiler_pic_CXX='-fPIC'
13559 ;;
13560 esac
13561 else
13562 case $host_os in
13563 aix4* | aix5*)
13564 # All AIX code is PIC.
13565 if test "$host_cpu" = ia64; then
13566 # AIX 5 now supports IA64 processor
13567 lt_prog_compiler_static_CXX='-Bstatic'
13568 else
13569 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13570 fi
13571 ;;
13572 chorus*)
13573 case $cc_basename in
13574 cxch68*)
13575 # Green Hills C++ Compiler
13576 # _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"
13577 ;;
13578 esac
13579 ;;
13580 darwin*)
13581 # PIC is the default on this platform
13582 # Common symbols not allowed in MH_DYLIB files
13583 case $cc_basename in
13584 xlc*)
13585 lt_prog_compiler_pic_CXX='-qnocommon'
13586 lt_prog_compiler_wl_CXX='-Wl,'
13587 ;;
13588 esac
13589 ;;
13590 dgux*)
13591 case $cc_basename in
13592 ec++*)
13593 lt_prog_compiler_pic_CXX='-KPIC'
13594 ;;
13595 ghcx*)
13596 # Green Hills C++ Compiler
13597 lt_prog_compiler_pic_CXX='-pic'
13598 ;;
13599 *)
13600 ;;
13601 esac
13602 ;;
13603 freebsd* | dragonfly*)
13604 # FreeBSD uses GNU C++
13605 ;;
13606 hpux9* | hpux10* | hpux11*)
13607 case $cc_basename in
13608 CC*)
13609 lt_prog_compiler_wl_CXX='-Wl,'
13610 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13611 if test "$host_cpu" != ia64; then
13612 lt_prog_compiler_pic_CXX='+Z'
13613 fi
13614 ;;
13615 aCC*)
13616 lt_prog_compiler_wl_CXX='-Wl,'
13617 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13618 case $host_cpu in
13619 hppa*64*|ia64*)
13620 # +Z the default
13621 ;;
13622 *)
13623 lt_prog_compiler_pic_CXX='+Z'
13624 ;;
13625 esac
13626 ;;
13627 *)
13628 ;;
13629 esac
13630 ;;
13631 interix*)
13632 # This is c89, which is MS Visual C++ (no shared libs)
13633 # Anyone wants to do a port?
13634 ;;
13635 irix5* | irix6* | nonstopux*)
13636 case $cc_basename in
13637 CC*)
13638 lt_prog_compiler_wl_CXX='-Wl,'
13639 lt_prog_compiler_static_CXX='-non_shared'
13640 # CC pic flag -KPIC is the default.
13641 ;;
13642 *)
13643 ;;
13644 esac
13645 ;;
13646 linux* | k*bsd*-gnu)
13647 case $cc_basename in
13648 KCC*)
13649 # KAI C++ Compiler
13650 lt_prog_compiler_wl_CXX='--backend -Wl,'
13651 lt_prog_compiler_pic_CXX='-fPIC'
13652 ;;
13653 icpc* | ecpc*)
13654 # Intel C++
13655 lt_prog_compiler_wl_CXX='-Wl,'
13656 lt_prog_compiler_pic_CXX='-KPIC'
13657 lt_prog_compiler_static_CXX='-static'
13658 ;;
13659 pgCC*)
13660 # Portland Group C++ compiler.
13661 lt_prog_compiler_wl_CXX='-Wl,'
13662 lt_prog_compiler_pic_CXX='-fpic'
13663 lt_prog_compiler_static_CXX='-Bstatic'
13664 ;;
13665 cxx*)
13666 # Compaq C++
13667 # Make sure the PIC flag is empty. It appears that all Alpha
13668 # Linux and Compaq Tru64 Unix objects are PIC.
13669 lt_prog_compiler_pic_CXX=
13670 lt_prog_compiler_static_CXX='-non_shared'
13671 ;;
13672 *)
13673 case `$CC -V 2>&1 | sed 5q` in
13674 *Sun\ C*)
13675 # Sun C++ 5.9
13676 lt_prog_compiler_pic_CXX='-KPIC'
13677 lt_prog_compiler_static_CXX='-Bstatic'
13678 lt_prog_compiler_wl_CXX='-Qoption ld '
13679 ;;
13680 esac
13681 ;;
13682 esac
13683 ;;
13684 lynxos*)
13685 ;;
13686 m88k*)
13687 ;;
13688 mvs*)
13689 case $cc_basename in
13690 cxx*)
13691 lt_prog_compiler_pic_CXX='-W c,exportall'
13692 ;;
13693 *)
13694 ;;
13695 esac
13696 ;;
13697 netbsd* | netbsdelf*-gnu)
13698 ;;
13699 osf3* | osf4* | osf5*)
13700 case $cc_basename in
13701 KCC*)
13702 lt_prog_compiler_wl_CXX='--backend -Wl,'
13703 ;;
13704 RCC*)
13705 # Rational C++ 2.4.1
13706 lt_prog_compiler_pic_CXX='-pic'
13707 ;;
13708 cxx*)
13709 # Digital/Compaq C++
13710 lt_prog_compiler_wl_CXX='-Wl,'
13711 # Make sure the PIC flag is empty. It appears that all Alpha
13712 # Linux and Compaq Tru64 Unix objects are PIC.
13713 lt_prog_compiler_pic_CXX=
13714 lt_prog_compiler_static_CXX='-non_shared'
13715 ;;
13716 *)
13717 ;;
13718 esac
13719 ;;
13720 psos*)
13721 ;;
13722 solaris*)
13723 case $cc_basename in
13724 CC*)
13725 # Sun C++ 4.2, 5.x and Centerline C++
13726 lt_prog_compiler_pic_CXX='-KPIC'
13727 lt_prog_compiler_static_CXX='-Bstatic'
13728 lt_prog_compiler_wl_CXX='-Qoption ld '
13729 ;;
13730 gcx*)
13731 # Green Hills C++ Compiler
13732 lt_prog_compiler_pic_CXX='-PIC'
13733 ;;
13734 *)
13735 ;;
13736 esac
13737 ;;
13738 sunos4*)
13739 case $cc_basename in
13740 CC*)
13741 # Sun C++ 4.x
13742 lt_prog_compiler_pic_CXX='-pic'
13743 lt_prog_compiler_static_CXX='-Bstatic'
13744 ;;
13745 lcc*)
13746 # Lucid
13747 lt_prog_compiler_pic_CXX='-pic'
13748 ;;
13749 *)
13750 ;;
13751 esac
13752 ;;
13753 tandem*)
13754 case $cc_basename in
13755 NCC*)
13756 # NonStop-UX NCC 3.20
13757 lt_prog_compiler_pic_CXX='-KPIC'
13758 ;;
13759 *)
13760 ;;
13761 esac
13762 ;;
13763 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13764 case $cc_basename in
13765 CC*)
13766 lt_prog_compiler_wl_CXX='-Wl,'
13767 lt_prog_compiler_pic_CXX='-KPIC'
13768 lt_prog_compiler_static_CXX='-Bstatic'
13769 ;;
13770 esac
13771 ;;
13772 vxworks*)
13773 ;;
13774 *)
13775 lt_prog_compiler_can_build_shared_CXX=no
13776 ;;
13777 esac
13778 fi
13779
13780 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13781 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13782
13783 #
13784 # Check to make sure the PIC flag actually works.
13785 #
13786 if test -n "$lt_prog_compiler_pic_CXX"; then
13787
13788 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13789 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13790 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793 lt_prog_compiler_pic_works_CXX=no
13794 ac_outfile=conftest.$ac_objext
13795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13796 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13797 # Insert the option either (1) after the last *FLAGS variable, or
13798 # (2) before a word containing "conftest.", or (3) at the end.
13799 # Note that $ac_compile itself does not contain backslashes and begins
13800 # with a dollar sign (not a hyphen), so the echo should work correctly.
13801 # The option is referenced via a variable to avoid confusing sed.
13802 lt_compile=`echo "$ac_compile" | $SED \
13803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13805 -e 's:$: $lt_compiler_flag:'`
13806 (eval echo "\"\$as_me:13807: $lt_compile\"" >&5)
13807 (eval "$lt_compile" 2>conftest.err)
13808 ac_status=$?
13809 cat conftest.err >&5
13810 echo "$as_me:13811: \$? = $ac_status" >&5
13811 if (exit $ac_status) && test -s "$ac_outfile"; then
13812 # The compiler can only warn and ignore the option if not recognized
13813 # So say no if there are warnings other than the usual output.
13814 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13816 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13817 lt_prog_compiler_pic_works_CXX=yes
13818 fi
13819 fi
13820 $rm conftest*
13821
13822 fi
13823 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13824 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13825
13826 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13827 case $lt_prog_compiler_pic_CXX in
13828 "" | " "*) ;;
13829 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13830 esac
13831 else
13832 lt_prog_compiler_pic_CXX=
13833 lt_prog_compiler_can_build_shared_CXX=no
13834 fi
13835
13836 fi
13837 case $host_os in
13838 # For platforms which do not support PIC, -DPIC is meaningless:
13839 *djgpp*)
13840 lt_prog_compiler_pic_CXX=
13841 ;;
13842 *)
13843 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13844 ;;
13845 esac
13846
13847 #
13848 # Check to make sure the static flag actually works.
13849 #
13850 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13851 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13852 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13853 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13855 else
13856 lt_prog_compiler_static_works_CXX=no
13857 save_LDFLAGS="$LDFLAGS"
13858 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13859 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13860 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13861 # The linker can only warn and ignore the option if not recognized
13862 # So say no if there are warnings
13863 if test -s conftest.err; then
13864 # Append any errors to the config.log.
13865 cat conftest.err 1>&5
13866 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13868 if diff conftest.exp conftest.er2 >/dev/null; then
13869 lt_prog_compiler_static_works_CXX=yes
13870 fi
13871 else
13872 lt_prog_compiler_static_works_CXX=yes
13873 fi
13874 fi
13875 $rm conftest*
13876 LDFLAGS="$save_LDFLAGS"
13877
13878 fi
13879 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13880 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13881
13882 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13883 :
13884 else
13885 lt_prog_compiler_static_CXX=
13886 fi
13887
13888
13889 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13890 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13891 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894 lt_cv_prog_compiler_c_o_CXX=no
13895 $rm -r conftest 2>/dev/null
13896 mkdir conftest
13897 cd conftest
13898 mkdir out
13899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13900
13901 lt_compiler_flag="-o out/conftest2.$ac_objext"
13902 # Insert the option either (1) after the last *FLAGS variable, or
13903 # (2) before a word containing "conftest.", or (3) at the end.
13904 # Note that $ac_compile itself does not contain backslashes and begins
13905 # with a dollar sign (not a hyphen), so the echo should work correctly.
13906 lt_compile=`echo "$ac_compile" | $SED \
13907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13909 -e 's:$: $lt_compiler_flag:'`
13910 (eval echo "\"\$as_me:13911: $lt_compile\"" >&5)
13911 (eval "$lt_compile" 2>out/conftest.err)
13912 ac_status=$?
13913 cat out/conftest.err >&5
13914 echo "$as_me:13915: \$? = $ac_status" >&5
13915 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13916 then
13917 # The compiler can only warn and ignore the option if not recognized
13918 # So say no if there are warnings
13919 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13920 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13921 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13922 lt_cv_prog_compiler_c_o_CXX=yes
13923 fi
13924 fi
13925 chmod u+w . 2>&5
13926 $rm conftest*
13927 # SGI C++ compiler will create directory out/ii_files/ for
13928 # template instantiation
13929 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13930 $rm out/* && rmdir out
13931 cd ..
13932 rmdir conftest
13933 $rm conftest*
13934
13935 fi
13936 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13937 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13938
13939
13940 hard_links="nottested"
13941 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13942 # do not overwrite the value of need_locks provided by the user
13943 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13944 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13945 hard_links=yes
13946 $rm conftest*
13947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13948 touch conftest.a
13949 ln conftest.a conftest.b 2>&5 || hard_links=no
13950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13951 { echo "$as_me:$LINENO: result: $hard_links" >&5
13952 echo "${ECHO_T}$hard_links" >&6; }
13953 if test "$hard_links" = no; then
13954 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13955 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13956 need_locks=warn
13957 fi
13958 else
13959 need_locks=no
13960 fi
13961
13962 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13963 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13964
13965 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13966 case $host_os in
13967 aix4* | aix5*)
13968 # If we're using GNU nm, then we don't want the "-C" option.
13969 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13970 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13971 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'
13972 else
13973 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'
13974 fi
13975 ;;
13976 pw32*)
13977 export_symbols_cmds_CXX="$ltdll_cmds"
13978 ;;
13979 cygwin* | mingw*)
13980 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'
13981 ;;
13982 linux* | k*bsd*-gnu)
13983 link_all_deplibs_CXX=no
13984 ;;
13985 *)
13986 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13987 ;;
13988 esac
13989
13990 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13991 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13992 test "$ld_shlibs_CXX" = no && can_build_shared=no
13993
13994 #
13995 # Do we need to explicitly link libc?
13996 #
13997 case "x$archive_cmds_need_lc_CXX" in
13998 x|xyes)
13999 # Assume -lc should be added
14000 archive_cmds_need_lc_CXX=yes
14001
14002 if test "$enable_shared" = yes && test "$GCC" = yes; then
14003 case $archive_cmds_CXX in
14004 *'~'*)
14005 # FIXME: we may have to deal with multi-command sequences.
14006 ;;
14007 '$CC '*)
14008 # Test whether the compiler implicitly links with -lc since on some
14009 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14010 # to ld, don't add -lc before -lgcc.
14011 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14012 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14013 $rm conftest*
14014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14015
14016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14017 (eval $ac_compile) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } 2>conftest.err; then
14021 soname=conftest
14022 lib=conftest
14023 libobjs=conftest.$ac_objext
14024 deplibs=
14025 wl=$lt_prog_compiler_wl_CXX
14026 pic_flag=$lt_prog_compiler_pic_CXX
14027 compiler_flags=-v
14028 linker_flags=-v
14029 verstring=
14030 output_objdir=.
14031 libname=conftest
14032 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14033 allow_undefined_flag_CXX=
14034 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14035 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }
14039 then
14040 archive_cmds_need_lc_CXX=no
14041 else
14042 archive_cmds_need_lc_CXX=yes
14043 fi
14044 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14045 else
14046 cat conftest.err 1>&5
14047 fi
14048 $rm conftest*
14049 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14050 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14051 ;;
14052 esac
14053 fi
14054 ;;
14055 esac
14056
14057 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14058 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14059 library_names_spec=
14060 libname_spec='lib$name'
14061 soname_spec=
14062 shrext_cmds=".so"
14063 postinstall_cmds=
14064 postuninstall_cmds=
14065 finish_cmds=
14066 finish_eval=
14067 shlibpath_var=
14068 shlibpath_overrides_runpath=unknown
14069 version_type=none
14070 dynamic_linker="$host_os ld.so"
14071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14072
14073 need_lib_prefix=unknown
14074 hardcode_into_libs=no
14075
14076 # when you set need_version to no, make sure it does not cause -set_version
14077 # flags to be left without arguments
14078 need_version=unknown
14079
14080 case $host_os in
14081 aix3*)
14082 version_type=linux
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14084 shlibpath_var=LIBPATH
14085
14086 # AIX 3 has no versioning support, so we append a major version to the name.
14087 soname_spec='${libname}${release}${shared_ext}$major'
14088 ;;
14089
14090 aix4* | aix5*)
14091 version_type=linux
14092 need_lib_prefix=no
14093 need_version=no
14094 hardcode_into_libs=yes
14095 if test "$host_cpu" = ia64; then
14096 # AIX 5 supports IA64
14097 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14098 shlibpath_var=LD_LIBRARY_PATH
14099 else
14100 # With GCC up to 2.95.x, collect2 would create an import file
14101 # for dependence libraries. The import file would start with
14102 # the line `#! .'. This would cause the generated library to
14103 # depend on `.', always an invalid library. This was fixed in
14104 # development snapshots of GCC prior to 3.0.
14105 case $host_os in
14106 aix4 | aix4.[01] | aix4.[01].*)
14107 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14108 echo ' yes '
14109 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14110 :
14111 else
14112 can_build_shared=no
14113 fi
14114 ;;
14115 esac
14116 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14117 # soname into executable. Probably we can add versioning support to
14118 # collect2, so additional links can be useful in future.
14119 if test "$aix_use_runtimelinking" = yes; then
14120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14121 # instead of lib<name>.a to let people know that these are not
14122 # typical AIX shared libraries.
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 else
14125 # We preserve .a as extension for shared libraries through AIX4.2
14126 # and later when we are not doing run time linking.
14127 library_names_spec='${libname}${release}.a $libname.a'
14128 soname_spec='${libname}${release}${shared_ext}$major'
14129 fi
14130 shlibpath_var=LIBPATH
14131 fi
14132 ;;
14133
14134 amigaos*)
14135 library_names_spec='$libname.ixlibrary $libname.a'
14136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14137 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'
14138 ;;
14139
14140 beos*)
14141 library_names_spec='${libname}${shared_ext}'
14142 dynamic_linker="$host_os ld.so"
14143 shlibpath_var=LIBRARY_PATH
14144 ;;
14145
14146 bsdi[45]*)
14147 version_type=linux
14148 need_version=no
14149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14150 soname_spec='${libname}${release}${shared_ext}$major'
14151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14155 # the default ld.so.conf also contains /usr/contrib/lib and
14156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14157 # libtool to hard-code these into programs
14158 ;;
14159
14160 cygwin* | mingw* | pw32*)
14161 version_type=windows
14162 shrext_cmds=".dll"
14163 need_version=no
14164 need_lib_prefix=no
14165
14166 case $GCC,$host_os in
14167 yes,cygwin* | yes,mingw* | yes,pw32*)
14168 library_names_spec='$libname.dll.a'
14169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14170 postinstall_cmds='base_file=`basename \${file}`~
14171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14172 dldir=$destdir/`dirname \$dlpath`~
14173 test -d \$dldir || mkdir -p \$dldir~
14174 $install_prog $dir/$dlname \$dldir/$dlname~
14175 chmod a+x \$dldir/$dlname'
14176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14177 dlpath=$dir/\$dldll~
14178 $rm \$dlpath'
14179 shlibpath_overrides_runpath=yes
14180
14181 case $host_os in
14182 cygwin*)
14183 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14185 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14186 ;;
14187 mingw*)
14188 # MinGW DLLs use traditional 'lib' prefix
14189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14191 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14192 # It is most probably a Windows format PATH printed by
14193 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14194 # path with ; separators, and with drive letters. We can handle the
14195 # drive letters (cygwin fileutils understands them), so leave them,
14196 # especially as we might pass files found there to a mingw objdump,
14197 # which wouldn't understand a cygwinified path. Ahh.
14198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14199 else
14200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14201 fi
14202 ;;
14203 pw32*)
14204 # pw32 DLLs use 'pw' prefix rather than 'lib'
14205 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14206 ;;
14207 esac
14208 ;;
14209
14210 *)
14211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14212 ;;
14213 esac
14214 dynamic_linker='Win32 ld.exe'
14215 # FIXME: first we should search . and the directory the executable is in
14216 shlibpath_var=PATH
14217 ;;
14218
14219 darwin* | rhapsody*)
14220 dynamic_linker="$host_os dyld"
14221 version_type=darwin
14222 need_lib_prefix=no
14223 need_version=no
14224 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14225 soname_spec='${libname}${release}${major}$shared_ext'
14226 shlibpath_overrides_runpath=yes
14227 shlibpath_var=DYLD_LIBRARY_PATH
14228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14229
14230 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14231 ;;
14232
14233 dgux*)
14234 version_type=linux
14235 need_lib_prefix=no
14236 need_version=no
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14239 shlibpath_var=LD_LIBRARY_PATH
14240 ;;
14241
14242 freebsd1*)
14243 dynamic_linker=no
14244 ;;
14245
14246 freebsd* | dragonfly*)
14247 # DragonFly does not have aout. When/if they implement a new
14248 # versioning mechanism, adjust this.
14249 if test -x /usr/bin/objformat; then
14250 objformat=`/usr/bin/objformat`
14251 else
14252 case $host_os in
14253 freebsd[123]*) objformat=aout ;;
14254 *) objformat=elf ;;
14255 esac
14256 fi
14257 version_type=freebsd-$objformat
14258 case $version_type in
14259 freebsd-elf*)
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14261 need_version=no
14262 need_lib_prefix=no
14263 ;;
14264 freebsd-*)
14265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14266 need_version=yes
14267 ;;
14268 esac
14269 shlibpath_var=LD_LIBRARY_PATH
14270 case $host_os in
14271 freebsd2*)
14272 shlibpath_overrides_runpath=yes
14273 ;;
14274 freebsd3.[01]* | freebsdelf3.[01]*)
14275 shlibpath_overrides_runpath=yes
14276 hardcode_into_libs=yes
14277 ;;
14278 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14279 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14280 shlibpath_overrides_runpath=no
14281 hardcode_into_libs=yes
14282 ;;
14283 *) # from 4.6 on, and DragonFly
14284 shlibpath_overrides_runpath=yes
14285 hardcode_into_libs=yes
14286 ;;
14287 esac
14288 ;;
14289
14290 gnu*)
14291 version_type=linux
14292 need_lib_prefix=no
14293 need_version=no
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14295 soname_spec='${libname}${release}${shared_ext}$major'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 hardcode_into_libs=yes
14298 ;;
14299
14300 hpux9* | hpux10* | hpux11*)
14301 # Give a soname corresponding to the major version so that dld.sl refuses to
14302 # link against other versions.
14303 version_type=sunos
14304 need_lib_prefix=no
14305 need_version=no
14306 case $host_cpu in
14307 ia64*)
14308 shrext_cmds='.so'
14309 hardcode_into_libs=yes
14310 dynamic_linker="$host_os dld.so"
14311 shlibpath_var=LD_LIBRARY_PATH
14312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14314 soname_spec='${libname}${release}${shared_ext}$major'
14315 if test "X$HPUX_IA64_MODE" = X32; then
14316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14317 else
14318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14319 fi
14320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14321 ;;
14322 hppa*64*)
14323 shrext_cmds='.sl'
14324 hardcode_into_libs=yes
14325 dynamic_linker="$host_os dld.sl"
14326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14329 soname_spec='${libname}${release}${shared_ext}$major'
14330 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14332 ;;
14333 *)
14334 shrext_cmds='.sl'
14335 dynamic_linker="$host_os dld.sl"
14336 shlibpath_var=SHLIB_PATH
14337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14339 soname_spec='${libname}${release}${shared_ext}$major'
14340 ;;
14341 esac
14342 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14343 postinstall_cmds='chmod 555 $lib'
14344 ;;
14345
14346 interix[3-9]*)
14347 version_type=linux
14348 need_lib_prefix=no
14349 need_version=no
14350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14351 soname_spec='${libname}${release}${shared_ext}$major'
14352 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14353 shlibpath_var=LD_LIBRARY_PATH
14354 shlibpath_overrides_runpath=no
14355 hardcode_into_libs=yes
14356 ;;
14357
14358 irix5* | irix6* | nonstopux*)
14359 case $host_os in
14360 nonstopux*) version_type=nonstopux ;;
14361 *)
14362 if test "$lt_cv_prog_gnu_ld" = yes; then
14363 version_type=linux
14364 else
14365 version_type=irix
14366 fi ;;
14367 esac
14368 need_lib_prefix=no
14369 need_version=no
14370 soname_spec='${libname}${release}${shared_ext}$major'
14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14372 case $host_os in
14373 irix5* | nonstopux*)
14374 libsuff= shlibsuff=
14375 ;;
14376 *)
14377 case $LD in # libtool.m4 will add one of these switches to LD
14378 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14379 libsuff= shlibsuff= libmagic=32-bit;;
14380 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14381 libsuff=32 shlibsuff=N32 libmagic=N32;;
14382 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14383 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14384 *) libsuff= shlibsuff= libmagic=never-match;;
14385 esac
14386 ;;
14387 esac
14388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14389 shlibpath_overrides_runpath=no
14390 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14391 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14392 hardcode_into_libs=yes
14393 ;;
14394
14395 # No shared lib support for Linux oldld, aout, or coff.
14396 linux*oldld* | linux*aout* | linux*coff*)
14397 dynamic_linker=no
14398 ;;
14399
14400 # This must be Linux ELF.
14401 linux* | k*bsd*-gnu)
14402 version_type=linux
14403 need_lib_prefix=no
14404 need_version=no
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14408 shlibpath_var=LD_LIBRARY_PATH
14409 shlibpath_overrides_runpath=no
14410 # This implies no fast_install, which is unacceptable.
14411 # Some rework will be needed to allow for fast_install
14412 # before this can be enabled.
14413 hardcode_into_libs=yes
14414
14415 # Append ld.so.conf contents to the search path
14416 if test -f /etc/ld.so.conf; then
14417 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' ' '`
14418 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14419 fi
14420
14421 # We used to test for /lib/ld.so.1 and disable shared libraries on
14422 # powerpc, because MkLinux only supported shared libraries with the
14423 # GNU dynamic linker. Since this was broken with cross compilers,
14424 # most powerpc-linux boxes support dynamic linking these days and
14425 # people can always --disable-shared, the test was removed, and we
14426 # assume the GNU/Linux dynamic linker is in use.
14427 dynamic_linker='GNU/Linux ld.so'
14428 ;;
14429
14430 netbsdelf*-gnu)
14431 version_type=linux
14432 need_lib_prefix=no
14433 need_version=no
14434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14435 soname_spec='${libname}${release}${shared_ext}$major'
14436 shlibpath_var=LD_LIBRARY_PATH
14437 shlibpath_overrides_runpath=no
14438 hardcode_into_libs=yes
14439 dynamic_linker='NetBSD ld.elf_so'
14440 ;;
14441
14442 netbsd*)
14443 version_type=sunos
14444 need_lib_prefix=no
14445 need_version=no
14446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14449 dynamic_linker='NetBSD (a.out) ld.so'
14450 else
14451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14452 soname_spec='${libname}${release}${shared_ext}$major'
14453 dynamic_linker='NetBSD ld.elf_so'
14454 fi
14455 shlibpath_var=LD_LIBRARY_PATH
14456 shlibpath_overrides_runpath=yes
14457 hardcode_into_libs=yes
14458 ;;
14459
14460 newsos6)
14461 version_type=linux
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 shlibpath_overrides_runpath=yes
14465 ;;
14466
14467 nto-qnx*)
14468 version_type=linux
14469 need_lib_prefix=no
14470 need_version=no
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14472 soname_spec='${libname}${release}${shared_ext}$major'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 shlibpath_overrides_runpath=yes
14475 ;;
14476
14477 openbsd*)
14478 version_type=sunos
14479 sys_lib_dlsearch_path_spec="/usr/lib"
14480 need_lib_prefix=no
14481 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14482 case $host_os in
14483 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14484 *) need_version=no ;;
14485 esac
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14488 shlibpath_var=LD_LIBRARY_PATH
14489 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14490 case $host_os in
14491 openbsd2.[89] | openbsd2.[89].*)
14492 shlibpath_overrides_runpath=no
14493 ;;
14494 *)
14495 shlibpath_overrides_runpath=yes
14496 ;;
14497 esac
14498 else
14499 shlibpath_overrides_runpath=yes
14500 fi
14501 ;;
14502
14503 os2*)
14504 libname_spec='$name'
14505 shrext_cmds=".dll"
14506 need_lib_prefix=no
14507 library_names_spec='$libname${shared_ext} $libname.a'
14508 dynamic_linker='OS/2 ld.exe'
14509 shlibpath_var=LIBPATH
14510 ;;
14511
14512 osf3* | osf4* | osf5*)
14513 version_type=osf
14514 need_lib_prefix=no
14515 need_version=no
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 shlibpath_var=LD_LIBRARY_PATH
14519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14520 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14521 ;;
14522
14523 rdos*)
14524 dynamic_linker=no
14525 ;;
14526
14527 solaris*)
14528 version_type=linux
14529 need_lib_prefix=no
14530 need_version=no
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532 soname_spec='${libname}${release}${shared_ext}$major'
14533 shlibpath_var=LD_LIBRARY_PATH
14534 shlibpath_overrides_runpath=yes
14535 hardcode_into_libs=yes
14536 # ldd complains unless libraries are executable
14537 postinstall_cmds='chmod +x $lib'
14538 ;;
14539
14540 sunos4*)
14541 version_type=sunos
14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14544 shlibpath_var=LD_LIBRARY_PATH
14545 shlibpath_overrides_runpath=yes
14546 if test "$with_gnu_ld" = yes; then
14547 need_lib_prefix=no
14548 fi
14549 need_version=yes
14550 ;;
14551
14552 sysv4 | sysv4.3*)
14553 version_type=linux
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 shlibpath_var=LD_LIBRARY_PATH
14557 case $host_vendor in
14558 sni)
14559 shlibpath_overrides_runpath=no
14560 need_lib_prefix=no
14561 export_dynamic_flag_spec='${wl}-Blargedynsym'
14562 runpath_var=LD_RUN_PATH
14563 ;;
14564 siemens)
14565 need_lib_prefix=no
14566 ;;
14567 motorola)
14568 need_lib_prefix=no
14569 need_version=no
14570 shlibpath_overrides_runpath=no
14571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14572 ;;
14573 esac
14574 ;;
14575
14576 sysv4*MP*)
14577 if test -d /usr/nec ;then
14578 version_type=linux
14579 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14580 soname_spec='$libname${shared_ext}.$major'
14581 shlibpath_var=LD_LIBRARY_PATH
14582 fi
14583 ;;
14584
14585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14586 version_type=freebsd-elf
14587 need_lib_prefix=no
14588 need_version=no
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14590 soname_spec='${libname}${release}${shared_ext}$major'
14591 shlibpath_var=LD_LIBRARY_PATH
14592 hardcode_into_libs=yes
14593 if test "$with_gnu_ld" = yes; then
14594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14595 shlibpath_overrides_runpath=no
14596 else
14597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14598 shlibpath_overrides_runpath=yes
14599 case $host_os in
14600 sco3.2v5*)
14601 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14602 ;;
14603 esac
14604 fi
14605 sys_lib_dlsearch_path_spec='/usr/lib'
14606 ;;
14607
14608 uts4*)
14609 version_type=linux
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 ;;
14614
14615 *)
14616 dynamic_linker=no
14617 ;;
14618 esac
14619 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14620 echo "${ECHO_T}$dynamic_linker" >&6; }
14621 test "$dynamic_linker" = no && can_build_shared=no
14622
14623 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14624 if test "$GCC" = yes; then
14625 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14626 fi
14627
14628 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14629 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14630 hardcode_action_CXX=
14631 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14632 test -n "$runpath_var_CXX" || \
14633 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14634
14635 # We can hardcode non-existant directories.
14636 if test "$hardcode_direct_CXX" != no &&
14637 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14638 # have to relink, otherwise we might link with an installed library
14639 # when we should be linking with a yet-to-be-installed one
14640 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14641 test "$hardcode_minus_L_CXX" != no; then
14642 # Linking always hardcodes the temporary library directory.
14643 hardcode_action_CXX=relink
14644 else
14645 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14646 hardcode_action_CXX=immediate
14647 fi
14648 else
14649 # We cannot hardcode anything, or else we can only hardcode existing
14650 # directories.
14651 hardcode_action_CXX=unsupported
14652 fi
14653 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14654 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14655
14656 if test "$hardcode_action_CXX" = relink; then
14657 # Fast installation is not supported
14658 enable_fast_install=no
14659 elif test "$shlibpath_overrides_runpath" = yes ||
14660 test "$enable_shared" = no; then
14661 # Fast installation is not necessary
14662 enable_fast_install=needless
14663 fi
14664
14665
14666 # The else clause should only fire when bootstrapping the
14667 # libtool distribution, otherwise you forgot to ship ltmain.sh
14668 # with your package, and you will get complaints that there are
14669 # no rules to generate ltmain.sh.
14670 if test -f "$ltmain"; then
14671 # See if we are running on zsh, and set the options which allow our commands through
14672 # without removal of \ escapes.
14673 if test -n "${ZSH_VERSION+set}" ; then
14674 setopt NO_GLOB_SUBST
14675 fi
14676 # Now quote all the things that may contain metacharacters while being
14677 # careful not to overquote the AC_SUBSTed values. We take copies of the
14678 # variables and quote the copies for generation of the libtool script.
14679 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14680 SED SHELL STRIP \
14681 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14682 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14683 deplibs_check_method reload_flag reload_cmds need_locks \
14684 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14685 lt_cv_sys_global_symbol_to_c_name_address \
14686 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14687 old_postinstall_cmds old_postuninstall_cmds \
14688 compiler_CXX \
14689 CC_CXX \
14690 LD_CXX \
14691 lt_prog_compiler_wl_CXX \
14692 lt_prog_compiler_pic_CXX \
14693 lt_prog_compiler_static_CXX \
14694 lt_prog_compiler_no_builtin_flag_CXX \
14695 export_dynamic_flag_spec_CXX \
14696 thread_safe_flag_spec_CXX \
14697 whole_archive_flag_spec_CXX \
14698 enable_shared_with_static_runtimes_CXX \
14699 old_archive_cmds_CXX \
14700 old_archive_from_new_cmds_CXX \
14701 predep_objects_CXX \
14702 postdep_objects_CXX \
14703 predeps_CXX \
14704 postdeps_CXX \
14705 compiler_lib_search_path_CXX \
14706 archive_cmds_CXX \
14707 archive_expsym_cmds_CXX \
14708 postinstall_cmds_CXX \
14709 postuninstall_cmds_CXX \
14710 old_archive_from_expsyms_cmds_CXX \
14711 allow_undefined_flag_CXX \
14712 no_undefined_flag_CXX \
14713 export_symbols_cmds_CXX \
14714 hardcode_libdir_flag_spec_CXX \
14715 hardcode_libdir_flag_spec_ld_CXX \
14716 hardcode_libdir_separator_CXX \
14717 hardcode_automatic_CXX \
14718 module_cmds_CXX \
14719 module_expsym_cmds_CXX \
14720 lt_cv_prog_compiler_c_o_CXX \
14721 fix_srcfile_path_CXX \
14722 exclude_expsyms_CXX \
14723 include_expsyms_CXX; do
14724
14725 case $var in
14726 old_archive_cmds_CXX | \
14727 old_archive_from_new_cmds_CXX | \
14728 archive_cmds_CXX | \
14729 archive_expsym_cmds_CXX | \
14730 module_cmds_CXX | \
14731 module_expsym_cmds_CXX | \
14732 old_archive_from_expsyms_cmds_CXX | \
14733 export_symbols_cmds_CXX | \
14734 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14735 postinstall_cmds | postuninstall_cmds | \
14736 old_postinstall_cmds | old_postuninstall_cmds | \
14737 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14738 # Double-quote double-evaled strings.
14739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14740 ;;
14741 *)
14742 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14743 ;;
14744 esac
14745 done
14746
14747 case $lt_echo in
14748 *'\$0 --fallback-echo"')
14749 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14750 ;;
14751 esac
14752
14753 cfgfile="$ofile"
14754
14755 cat <<__EOF__ >> "$cfgfile"
14756 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14757
14758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14759
14760 # Shell to use when invoking shell scripts.
14761 SHELL=$lt_SHELL
14762
14763 # Whether or not to build shared libraries.
14764 build_libtool_libs=$enable_shared
14765
14766 # Whether or not to build static libraries.
14767 build_old_libs=$enable_static
14768
14769 # Whether or not to add -lc for building shared libraries.
14770 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14771
14772 # Whether or not to disallow shared libs when runtime libs are static
14773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14774
14775 # Whether or not to optimize for fast installation.
14776 fast_install=$enable_fast_install
14777
14778 # The host system.
14779 host_alias=$host_alias
14780 host=$host
14781 host_os=$host_os
14782
14783 # The build system.
14784 build_alias=$build_alias
14785 build=$build
14786 build_os=$build_os
14787
14788 # An echo program that does not interpret backslashes.
14789 echo=$lt_echo
14790
14791 # The archiver.
14792 AR=$lt_AR
14793 AR_FLAGS=$lt_AR_FLAGS
14794
14795 # A C compiler.
14796 LTCC=$lt_LTCC
14797
14798 # LTCC compiler flags.
14799 LTCFLAGS=$lt_LTCFLAGS
14800
14801 # A language-specific compiler.
14802 CC=$lt_compiler_CXX
14803
14804 # Is the compiler the GNU C compiler?
14805 with_gcc=$GCC_CXX
14806
14807 # An ERE matcher.
14808 EGREP=$lt_EGREP
14809
14810 # The linker used to build libraries.
14811 LD=$lt_LD_CXX
14812
14813 # Whether we need hard or soft links.
14814 LN_S=$lt_LN_S
14815
14816 # A BSD-compatible nm program.
14817 NM=$lt_NM
14818
14819 # A symbol stripping program
14820 STRIP=$lt_STRIP
14821
14822 # Used to examine libraries when file_magic_cmd begins "file"
14823 MAGIC_CMD=$MAGIC_CMD
14824
14825 # Used on cygwin: DLL creation program.
14826 DLLTOOL="$DLLTOOL"
14827
14828 # Used on cygwin: object dumper.
14829 OBJDUMP="$OBJDUMP"
14830
14831 # Used on cygwin: assembler.
14832 AS="$AS"
14833
14834 # The name of the directory that contains temporary libtool files.
14835 objdir=$objdir
14836
14837 # How to create reloadable object files.
14838 reload_flag=$lt_reload_flag
14839 reload_cmds=$lt_reload_cmds
14840
14841 # How to pass a linker flag through the compiler.
14842 wl=$lt_lt_prog_compiler_wl_CXX
14843
14844 # Object file suffix (normally "o").
14845 objext="$ac_objext"
14846
14847 # Old archive suffix (normally "a").
14848 libext="$libext"
14849
14850 # Shared library suffix (normally ".so").
14851 shrext_cmds='$shrext_cmds'
14852
14853 # Executable file suffix (normally "").
14854 exeext="$exeext"
14855
14856 # Additional compiler flags for building library objects.
14857 pic_flag=$lt_lt_prog_compiler_pic_CXX
14858 pic_mode=$pic_mode
14859
14860 # What is the maximum length of a command?
14861 max_cmd_len=$lt_cv_sys_max_cmd_len
14862
14863 # Does compiler simultaneously support -c and -o options?
14864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14865
14866 # Must we lock files when doing compilation?
14867 need_locks=$lt_need_locks
14868
14869 # Do we need the lib prefix for modules?
14870 need_lib_prefix=$need_lib_prefix
14871
14872 # Do we need a version for libraries?
14873 need_version=$need_version
14874
14875 # Whether dlopen is supported.
14876 dlopen_support=$enable_dlopen
14877
14878 # Whether dlopen of programs is supported.
14879 dlopen_self=$enable_dlopen_self
14880
14881 # Whether dlopen of statically linked programs is supported.
14882 dlopen_self_static=$enable_dlopen_self_static
14883
14884 # Compiler flag to prevent dynamic linking.
14885 link_static_flag=$lt_lt_prog_compiler_static_CXX
14886
14887 # Compiler flag to turn off builtin functions.
14888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14889
14890 # Compiler flag to allow reflexive dlopens.
14891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14892
14893 # Compiler flag to generate shared objects directly from archives.
14894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14895
14896 # Compiler flag to generate thread-safe objects.
14897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14898
14899 # Library versioning type.
14900 version_type=$version_type
14901
14902 # Format of library name prefix.
14903 libname_spec=$lt_libname_spec
14904
14905 # List of archive names. First name is the real one, the rest are links.
14906 # The last name is the one that the linker finds with -lNAME.
14907 library_names_spec=$lt_library_names_spec
14908
14909 # The coded name of the library, if different from the real name.
14910 soname_spec=$lt_soname_spec
14911
14912 # Commands used to build and install an old-style archive.
14913 RANLIB=$lt_RANLIB
14914 old_archive_cmds=$lt_old_archive_cmds_CXX
14915 old_postinstall_cmds=$lt_old_postinstall_cmds
14916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14917
14918 # Create an old-style archive from a shared archive.
14919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14920
14921 # Create a temporary old-style archive to link instead of a shared archive.
14922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14923
14924 # Commands used to build and install a shared archive.
14925 archive_cmds=$lt_archive_cmds_CXX
14926 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14927 postinstall_cmds=$lt_postinstall_cmds
14928 postuninstall_cmds=$lt_postuninstall_cmds
14929
14930 # Commands used to build a loadable module (assumed same as above if empty)
14931 module_cmds=$lt_module_cmds_CXX
14932 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14933
14934 # Commands to strip libraries.
14935 old_striplib=$lt_old_striplib
14936 striplib=$lt_striplib
14937
14938 # Dependencies to place before the objects being linked to create a
14939 # shared library.
14940 predep_objects=$lt_predep_objects_CXX
14941
14942 # Dependencies to place after the objects being linked to create a
14943 # shared library.
14944 postdep_objects=$lt_postdep_objects_CXX
14945
14946 # Dependencies to place before the objects being linked to create a
14947 # shared library.
14948 predeps=$lt_predeps_CXX
14949
14950 # Dependencies to place after the objects being linked to create a
14951 # shared library.
14952 postdeps=$lt_postdeps_CXX
14953
14954 # The library search path used internally by the compiler when linking
14955 # a shared library.
14956 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14957
14958 # Method to check whether dependent libraries are shared objects.
14959 deplibs_check_method=$lt_deplibs_check_method
14960
14961 # Command to use when deplibs_check_method == file_magic.
14962 file_magic_cmd=$lt_file_magic_cmd
14963
14964 # Flag that allows shared libraries with undefined symbols to be built.
14965 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14966
14967 # Flag that forces no undefined symbols.
14968 no_undefined_flag=$lt_no_undefined_flag_CXX
14969
14970 # Commands used to finish a libtool library installation in a directory.
14971 finish_cmds=$lt_finish_cmds
14972
14973 # Same as above, but a single script fragment to be evaled but not shown.
14974 finish_eval=$lt_finish_eval
14975
14976 # Take the output of nm and produce a listing of raw symbols and C names.
14977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14978
14979 # Transform the output of nm in a proper C declaration
14980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14981
14982 # Transform the output of nm in a C name address pair
14983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14984
14985 # This is the shared library runtime path variable.
14986 runpath_var=$runpath_var
14987
14988 # This is the shared library path variable.
14989 shlibpath_var=$shlibpath_var
14990
14991 # Is shlibpath searched before the hard-coded library search path?
14992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14993
14994 # How to hardcode a shared library path into an executable.
14995 hardcode_action=$hardcode_action_CXX
14996
14997 # Whether we should hardcode library paths into libraries.
14998 hardcode_into_libs=$hardcode_into_libs
14999
15000 # Flag to hardcode \$libdir into a binary during linking.
15001 # This must work even if \$libdir does not exist.
15002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15003
15004 # If ld is used when linking, flag to hardcode \$libdir into
15005 # a binary during linking. This must work even if \$libdir does
15006 # not exist.
15007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15008
15009 # Whether we need a single -rpath flag with a separated argument.
15010 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15011
15012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15013 # resulting binary.
15014 hardcode_direct=$hardcode_direct_CXX
15015
15016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15017 # resulting binary.
15018 hardcode_minus_L=$hardcode_minus_L_CXX
15019
15020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15021 # the resulting binary.
15022 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15023
15024 # Set to yes if building a shared library automatically hardcodes DIR into the library
15025 # and all subsequent libraries and executables linked against it.
15026 hardcode_automatic=$hardcode_automatic_CXX
15027
15028 # Variables whose values should be saved in libtool wrapper scripts and
15029 # restored at relink time.
15030 variables_saved_for_relink="$variables_saved_for_relink"
15031
15032 # Whether libtool must link a program against all its dependency libraries.
15033 link_all_deplibs=$link_all_deplibs_CXX
15034
15035 # Compile-time system search path for libraries
15036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15037
15038 # Run-time system search path for libraries
15039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15040
15041 # Fix the shell variable \$srcfile for the compiler.
15042 fix_srcfile_path=$lt_fix_srcfile_path
15043
15044 # Set to yes if exported symbols are required.
15045 always_export_symbols=$always_export_symbols_CXX
15046
15047 # The commands to list exported symbols.
15048 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15049
15050 # The commands to extract the exported symbol list from a shared archive.
15051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15052
15053 # Symbols that should not be listed in the preloaded symbols.
15054 exclude_expsyms=$lt_exclude_expsyms_CXX
15055
15056 # Symbols that must always be exported.
15057 include_expsyms=$lt_include_expsyms_CXX
15058
15059 # ### END LIBTOOL TAG CONFIG: $tagname
15060
15061 __EOF__
15062
15063
15064 else
15065 # If there is no Makefile yet, we rely on a make rule to execute
15066 # `config.status --recheck' to rerun these tests and create the
15067 # libtool script then.
15068 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15069 if test -f "$ltmain_in"; then
15070 test -f Makefile && make "$ltmain"
15071 fi
15072 fi
15073
15074
15075 ac_ext=c
15076 ac_cpp='$CPP $CPPFLAGS'
15077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15080
15081 CC=$lt_save_CC
15082 LDCXX=$LD
15083 LD=$lt_save_LD
15084 GCC=$lt_save_GCC
15085 with_gnu_ldcxx=$with_gnu_ld
15086 with_gnu_ld=$lt_save_with_gnu_ld
15087 lt_cv_path_LDCXX=$lt_cv_path_LD
15088 lt_cv_path_LD=$lt_save_path_LD
15089 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15090 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15091
15092 else
15093 tagname=""
15094 fi
15095 ;;
15096
15097 F77)
15098 if test -n "$F77" && test "X$F77" != "Xno"; then
15099
15100 ac_ext=f
15101 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15102 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15103 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15104
15105
15106 archive_cmds_need_lc_F77=no
15107 allow_undefined_flag_F77=
15108 always_export_symbols_F77=no
15109 archive_expsym_cmds_F77=
15110 export_dynamic_flag_spec_F77=
15111 hardcode_direct_F77=no
15112 hardcode_libdir_flag_spec_F77=
15113 hardcode_libdir_flag_spec_ld_F77=
15114 hardcode_libdir_separator_F77=
15115 hardcode_minus_L_F77=no
15116 hardcode_automatic_F77=no
15117 module_cmds_F77=
15118 module_expsym_cmds_F77=
15119 link_all_deplibs_F77=unknown
15120 old_archive_cmds_F77=$old_archive_cmds
15121 no_undefined_flag_F77=
15122 whole_archive_flag_spec_F77=
15123 enable_shared_with_static_runtimes_F77=no
15124
15125 # Source file extension for f77 test sources.
15126 ac_ext=f
15127
15128 # Object file extension for compiled f77 test sources.
15129 objext=o
15130 objext_F77=$objext
15131
15132 # Code to be used in simple compile tests
15133 lt_simple_compile_test_code="\
15134 subroutine t
15135 return
15136 end
15137 "
15138
15139 # Code to be used in simple link tests
15140 lt_simple_link_test_code="\
15141 program t
15142 end
15143 "
15144
15145 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15146
15147 # If no C compiler was specified, use CC.
15148 LTCC=${LTCC-"$CC"}
15149
15150 # If no C compiler flags were specified, use CFLAGS.
15151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15152
15153 # Allow CC to be a program name with arguments.
15154 compiler=$CC
15155
15156
15157 # save warnings/boilerplate of simple test code
15158 ac_outfile=conftest.$ac_objext
15159 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15160 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15161 _lt_compiler_boilerplate=`cat conftest.err`
15162 $rm conftest*
15163
15164 ac_outfile=conftest.$ac_objext
15165 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15166 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15167 _lt_linker_boilerplate=`cat conftest.err`
15168 $rm conftest*
15169
15170
15171 # Allow CC to be a program name with arguments.
15172 lt_save_CC="$CC"
15173 CC=${F77-"f77"}
15174 compiler=$CC
15175 compiler_F77=$CC
15176 for cc_temp in $compiler""; do
15177 case $cc_temp in
15178 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15179 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15180 \-*) ;;
15181 *) break;;
15182 esac
15183 done
15184 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15185
15186
15187 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15188 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15189 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15190 echo "${ECHO_T}$can_build_shared" >&6; }
15191
15192 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15193 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15194 test "$can_build_shared" = "no" && enable_shared=no
15195
15196 # On AIX, shared libraries and static libraries use the same namespace, and
15197 # are all built from PIC.
15198 case $host_os in
15199 aix3*)
15200 test "$enable_shared" = yes && enable_static=no
15201 if test -n "$RANLIB"; then
15202 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15203 postinstall_cmds='$RANLIB $lib'
15204 fi
15205 ;;
15206 aix4* | aix5*)
15207 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15208 test "$enable_shared" = yes && enable_static=no
15209 fi
15210 ;;
15211 esac
15212 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15213 echo "${ECHO_T}$enable_shared" >&6; }
15214
15215 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15216 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15217 # Make sure either enable_shared or enable_static is yes.
15218 test "$enable_shared" = yes || enable_static=yes
15219 { echo "$as_me:$LINENO: result: $enable_static" >&5
15220 echo "${ECHO_T}$enable_static" >&6; }
15221
15222 GCC_F77="$G77"
15223 LD_F77="$LD"
15224
15225 lt_prog_compiler_wl_F77=
15226 lt_prog_compiler_pic_F77=
15227 lt_prog_compiler_static_F77=
15228
15229 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15230 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15231
15232 if test "$GCC" = yes; then
15233 lt_prog_compiler_wl_F77='-Wl,'
15234 lt_prog_compiler_static_F77='-static'
15235
15236 case $host_os in
15237 aix*)
15238 # All AIX code is PIC.
15239 if test "$host_cpu" = ia64; then
15240 # AIX 5 now supports IA64 processor
15241 lt_prog_compiler_static_F77='-Bstatic'
15242 fi
15243 ;;
15244
15245 amigaos*)
15246 # FIXME: we need at least 68020 code to build shared libraries, but
15247 # adding the `-m68020' flag to GCC prevents building anything better,
15248 # like `-m68040'.
15249 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15250 ;;
15251
15252 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15253 # PIC is the default for these OSes.
15254 ;;
15255
15256 mingw* | cygwin* | pw32* | os2*)
15257 # This hack is so that the source file can tell whether it is being
15258 # built for inclusion in a dll (and should export symbols for example).
15259 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15260 # (--disable-auto-import) libraries
15261 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15262 ;;
15263
15264 darwin* | rhapsody*)
15265 # PIC is the default on this platform
15266 # Common symbols not allowed in MH_DYLIB files
15267 lt_prog_compiler_pic_F77='-fno-common'
15268 ;;
15269
15270 interix[3-9]*)
15271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15272 # Instead, we relocate shared libraries at runtime.
15273 ;;
15274
15275 msdosdjgpp*)
15276 # Just because we use GCC doesn't mean we suddenly get shared libraries
15277 # on systems that don't support them.
15278 lt_prog_compiler_can_build_shared_F77=no
15279 enable_shared=no
15280 ;;
15281
15282 sysv4*MP*)
15283 if test -d /usr/nec; then
15284 lt_prog_compiler_pic_F77=-Kconform_pic
15285 fi
15286 ;;
15287
15288 hpux*)
15289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15290 # not for PA HP-UX.
15291 case $host_cpu in
15292 hppa*64*|ia64*)
15293 # +Z the default
15294 ;;
15295 *)
15296 lt_prog_compiler_pic_F77='-fPIC'
15297 ;;
15298 esac
15299 ;;
15300
15301 *)
15302 lt_prog_compiler_pic_F77='-fPIC'
15303 ;;
15304 esac
15305 else
15306 # PORTME Check for flag to pass linker flags through the system compiler.
15307 case $host_os in
15308 aix*)
15309 lt_prog_compiler_wl_F77='-Wl,'
15310 if test "$host_cpu" = ia64; then
15311 # AIX 5 now supports IA64 processor
15312 lt_prog_compiler_static_F77='-Bstatic'
15313 else
15314 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15315 fi
15316 ;;
15317 darwin*)
15318 # PIC is the default on this platform
15319 # Common symbols not allowed in MH_DYLIB files
15320 case $cc_basename in
15321 xlc*)
15322 lt_prog_compiler_pic_F77='-qnocommon'
15323 lt_prog_compiler_wl_F77='-Wl,'
15324 ;;
15325 esac
15326 ;;
15327
15328 mingw* | cygwin* | pw32* | os2*)
15329 # This hack is so that the source file can tell whether it is being
15330 # built for inclusion in a dll (and should export symbols for example).
15331 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15332 ;;
15333
15334 hpux9* | hpux10* | hpux11*)
15335 lt_prog_compiler_wl_F77='-Wl,'
15336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15337 # not for PA HP-UX.
15338 case $host_cpu in
15339 hppa*64*|ia64*)
15340 # +Z the default
15341 ;;
15342 *)
15343 lt_prog_compiler_pic_F77='+Z'
15344 ;;
15345 esac
15346 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15347 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15348 ;;
15349
15350 irix5* | irix6* | nonstopux*)
15351 lt_prog_compiler_wl_F77='-Wl,'
15352 # PIC (with -KPIC) is the default.
15353 lt_prog_compiler_static_F77='-non_shared'
15354 ;;
15355
15356 newsos6)
15357 lt_prog_compiler_pic_F77='-KPIC'
15358 lt_prog_compiler_static_F77='-Bstatic'
15359 ;;
15360
15361 linux* | k*bsd*-gnu)
15362 case $cc_basename in
15363 icc* | ecc*)
15364 lt_prog_compiler_wl_F77='-Wl,'
15365 lt_prog_compiler_pic_F77='-KPIC'
15366 lt_prog_compiler_static_F77='-static'
15367 ;;
15368 pgcc* | pgf77* | pgf90* | pgf95*)
15369 # Portland Group compilers (*not* the Pentium gcc compiler,
15370 # which looks to be a dead project)
15371 lt_prog_compiler_wl_F77='-Wl,'
15372 lt_prog_compiler_pic_F77='-fpic'
15373 lt_prog_compiler_static_F77='-Bstatic'
15374 ;;
15375 ccc*)
15376 lt_prog_compiler_wl_F77='-Wl,'
15377 # All Alpha code is PIC.
15378 lt_prog_compiler_static_F77='-non_shared'
15379 ;;
15380 *)
15381 case `$CC -V 2>&1 | sed 5q` in
15382 *Sun\ C*)
15383 # Sun C 5.9
15384 lt_prog_compiler_pic_F77='-KPIC'
15385 lt_prog_compiler_static_F77='-Bstatic'
15386 lt_prog_compiler_wl_F77='-Wl,'
15387 ;;
15388 *Sun\ F*)
15389 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15390 lt_prog_compiler_pic_F77='-KPIC'
15391 lt_prog_compiler_static_F77='-Bstatic'
15392 lt_prog_compiler_wl_F77=''
15393 ;;
15394 esac
15395 ;;
15396 esac
15397 ;;
15398
15399 osf3* | osf4* | osf5*)
15400 lt_prog_compiler_wl_F77='-Wl,'
15401 # All OSF/1 code is PIC.
15402 lt_prog_compiler_static_F77='-non_shared'
15403 ;;
15404
15405 rdos*)
15406 lt_prog_compiler_static_F77='-non_shared'
15407 ;;
15408
15409 solaris*)
15410 lt_prog_compiler_pic_F77='-KPIC'
15411 lt_prog_compiler_static_F77='-Bstatic'
15412 case $cc_basename in
15413 f77* | f90* | f95*)
15414 lt_prog_compiler_wl_F77='-Qoption ld ';;
15415 *)
15416 lt_prog_compiler_wl_F77='-Wl,';;
15417 esac
15418 ;;
15419
15420 sunos4*)
15421 lt_prog_compiler_wl_F77='-Qoption ld '
15422 lt_prog_compiler_pic_F77='-PIC'
15423 lt_prog_compiler_static_F77='-Bstatic'
15424 ;;
15425
15426 sysv4 | sysv4.2uw2* | sysv4.3*)
15427 lt_prog_compiler_wl_F77='-Wl,'
15428 lt_prog_compiler_pic_F77='-KPIC'
15429 lt_prog_compiler_static_F77='-Bstatic'
15430 ;;
15431
15432 sysv4*MP*)
15433 if test -d /usr/nec ;then
15434 lt_prog_compiler_pic_F77='-Kconform_pic'
15435 lt_prog_compiler_static_F77='-Bstatic'
15436 fi
15437 ;;
15438
15439 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15440 lt_prog_compiler_wl_F77='-Wl,'
15441 lt_prog_compiler_pic_F77='-KPIC'
15442 lt_prog_compiler_static_F77='-Bstatic'
15443 ;;
15444
15445 unicos*)
15446 lt_prog_compiler_wl_F77='-Wl,'
15447 lt_prog_compiler_can_build_shared_F77=no
15448 ;;
15449
15450 uts4*)
15451 lt_prog_compiler_pic_F77='-pic'
15452 lt_prog_compiler_static_F77='-Bstatic'
15453 ;;
15454
15455 *)
15456 lt_prog_compiler_can_build_shared_F77=no
15457 ;;
15458 esac
15459 fi
15460
15461 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15462 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15463
15464 #
15465 # Check to make sure the PIC flag actually works.
15466 #
15467 if test -n "$lt_prog_compiler_pic_F77"; then
15468
15469 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15470 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15471 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474 lt_prog_compiler_pic_works_F77=no
15475 ac_outfile=conftest.$ac_objext
15476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15477 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15478 # Insert the option either (1) after the last *FLAGS variable, or
15479 # (2) before a word containing "conftest.", or (3) at the end.
15480 # Note that $ac_compile itself does not contain backslashes and begins
15481 # with a dollar sign (not a hyphen), so the echo should work correctly.
15482 # The option is referenced via a variable to avoid confusing sed.
15483 lt_compile=`echo "$ac_compile" | $SED \
15484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15486 -e 's:$: $lt_compiler_flag:'`
15487 (eval echo "\"\$as_me:15488: $lt_compile\"" >&5)
15488 (eval "$lt_compile" 2>conftest.err)
15489 ac_status=$?
15490 cat conftest.err >&5
15491 echo "$as_me:15492: \$? = $ac_status" >&5
15492 if (exit $ac_status) && test -s "$ac_outfile"; then
15493 # The compiler can only warn and ignore the option if not recognized
15494 # So say no if there are warnings other than the usual output.
15495 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15497 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15498 lt_prog_compiler_pic_works_F77=yes
15499 fi
15500 fi
15501 $rm conftest*
15502
15503 fi
15504 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15505 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15506
15507 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15508 case $lt_prog_compiler_pic_F77 in
15509 "" | " "*) ;;
15510 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15511 esac
15512 else
15513 lt_prog_compiler_pic_F77=
15514 lt_prog_compiler_can_build_shared_F77=no
15515 fi
15516
15517 fi
15518 case $host_os in
15519 # For platforms which do not support PIC, -DPIC is meaningless:
15520 *djgpp*)
15521 lt_prog_compiler_pic_F77=
15522 ;;
15523 *)
15524 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15525 ;;
15526 esac
15527
15528 #
15529 # Check to make sure the static flag actually works.
15530 #
15531 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15532 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15533 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15534 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 else
15537 lt_prog_compiler_static_works_F77=no
15538 save_LDFLAGS="$LDFLAGS"
15539 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15540 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15541 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15542 # The linker can only warn and ignore the option if not recognized
15543 # So say no if there are warnings
15544 if test -s conftest.err; then
15545 # Append any errors to the config.log.
15546 cat conftest.err 1>&5
15547 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15549 if diff conftest.exp conftest.er2 >/dev/null; then
15550 lt_prog_compiler_static_works_F77=yes
15551 fi
15552 else
15553 lt_prog_compiler_static_works_F77=yes
15554 fi
15555 fi
15556 $rm conftest*
15557 LDFLAGS="$save_LDFLAGS"
15558
15559 fi
15560 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15561 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15562
15563 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15564 :
15565 else
15566 lt_prog_compiler_static_F77=
15567 fi
15568
15569
15570 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15571 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15572 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 else
15575 lt_cv_prog_compiler_c_o_F77=no
15576 $rm -r conftest 2>/dev/null
15577 mkdir conftest
15578 cd conftest
15579 mkdir out
15580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15581
15582 lt_compiler_flag="-o out/conftest2.$ac_objext"
15583 # Insert the option either (1) after the last *FLAGS variable, or
15584 # (2) before a word containing "conftest.", or (3) at the end.
15585 # Note that $ac_compile itself does not contain backslashes and begins
15586 # with a dollar sign (not a hyphen), so the echo should work correctly.
15587 lt_compile=`echo "$ac_compile" | $SED \
15588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15590 -e 's:$: $lt_compiler_flag:'`
15591 (eval echo "\"\$as_me:15592: $lt_compile\"" >&5)
15592 (eval "$lt_compile" 2>out/conftest.err)
15593 ac_status=$?
15594 cat out/conftest.err >&5
15595 echo "$as_me:15596: \$? = $ac_status" >&5
15596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15597 then
15598 # The compiler can only warn and ignore the option if not recognized
15599 # So say no if there are warnings
15600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15603 lt_cv_prog_compiler_c_o_F77=yes
15604 fi
15605 fi
15606 chmod u+w . 2>&5
15607 $rm conftest*
15608 # SGI C++ compiler will create directory out/ii_files/ for
15609 # template instantiation
15610 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15611 $rm out/* && rmdir out
15612 cd ..
15613 rmdir conftest
15614 $rm conftest*
15615
15616 fi
15617 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15618 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15619
15620
15621 hard_links="nottested"
15622 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15623 # do not overwrite the value of need_locks provided by the user
15624 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15625 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15626 hard_links=yes
15627 $rm conftest*
15628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15629 touch conftest.a
15630 ln conftest.a conftest.b 2>&5 || hard_links=no
15631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15632 { echo "$as_me:$LINENO: result: $hard_links" >&5
15633 echo "${ECHO_T}$hard_links" >&6; }
15634 if test "$hard_links" = no; then
15635 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15636 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15637 need_locks=warn
15638 fi
15639 else
15640 need_locks=no
15641 fi
15642
15643 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15644 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15645
15646 runpath_var=
15647 allow_undefined_flag_F77=
15648 enable_shared_with_static_runtimes_F77=no
15649 archive_cmds_F77=
15650 archive_expsym_cmds_F77=
15651 old_archive_From_new_cmds_F77=
15652 old_archive_from_expsyms_cmds_F77=
15653 export_dynamic_flag_spec_F77=
15654 whole_archive_flag_spec_F77=
15655 thread_safe_flag_spec_F77=
15656 hardcode_libdir_flag_spec_F77=
15657 hardcode_libdir_flag_spec_ld_F77=
15658 hardcode_libdir_separator_F77=
15659 hardcode_direct_F77=no
15660 hardcode_minus_L_F77=no
15661 hardcode_shlibpath_var_F77=unsupported
15662 link_all_deplibs_F77=unknown
15663 hardcode_automatic_F77=no
15664 module_cmds_F77=
15665 module_expsym_cmds_F77=
15666 always_export_symbols_F77=no
15667 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15668 # include_expsyms should be a list of space-separated symbols to be *always*
15669 # included in the symbol list
15670 include_expsyms_F77=
15671 # exclude_expsyms can be an extended regexp of symbols to exclude
15672 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15673 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15674 # as well as any symbol that contains `d'.
15675 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15676 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15677 # platforms (ab)use it in PIC code, but their linkers get confused if
15678 # the symbol is explicitly referenced. Since portable code cannot
15679 # rely on this symbol name, it's probably fine to never include it in
15680 # preloaded symbol tables.
15681 extract_expsyms_cmds=
15682 # Just being paranoid about ensuring that cc_basename is set.
15683 for cc_temp in $compiler""; do
15684 case $cc_temp in
15685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15687 \-*) ;;
15688 *) break;;
15689 esac
15690 done
15691 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15692
15693 case $host_os in
15694 cygwin* | mingw* | pw32*)
15695 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15696 # When not using gcc, we currently assume that we are using
15697 # Microsoft Visual C++.
15698 if test "$GCC" != yes; then
15699 with_gnu_ld=no
15700 fi
15701 ;;
15702 interix*)
15703 # we just hope/assume this is gcc and not c89 (= MSVC++)
15704 with_gnu_ld=yes
15705 ;;
15706 openbsd*)
15707 with_gnu_ld=no
15708 ;;
15709 esac
15710
15711 ld_shlibs_F77=yes
15712 if test "$with_gnu_ld" = yes; then
15713 # If archive_cmds runs LD, not CC, wlarc should be empty
15714 wlarc='${wl}'
15715
15716 # Set some defaults for GNU ld with shared library support. These
15717 # are reset later if shared libraries are not supported. Putting them
15718 # here allows them to be overridden if necessary.
15719 runpath_var=LD_RUN_PATH
15720 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15721 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15722 # ancient GNU ld didn't support --whole-archive et. al.
15723 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15724 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15725 else
15726 whole_archive_flag_spec_F77=
15727 fi
15728 supports_anon_versioning=no
15729 case `$LD -v 2>/dev/null` in
15730 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15731 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15732 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15733 *\ 2.11.*) ;; # other 2.11 versions
15734 *) supports_anon_versioning=yes ;;
15735 esac
15736
15737 # See if GNU ld supports shared libraries.
15738 case $host_os in
15739 aix3* | aix4* | aix5*)
15740 # On AIX/PPC, the GNU linker is very broken
15741 if test "$host_cpu" != ia64; then
15742 ld_shlibs_F77=no
15743 cat <<EOF 1>&2
15744
15745 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15746 *** to be unable to reliably create shared libraries on AIX.
15747 *** Therefore, libtool is disabling shared libraries support. If you
15748 *** really care for shared libraries, you may want to modify your PATH
15749 *** so that a non-GNU linker is found, and then restart.
15750
15751 EOF
15752 fi
15753 ;;
15754
15755 amigaos*)
15756 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)'
15757 hardcode_libdir_flag_spec_F77='-L$libdir'
15758 hardcode_minus_L_F77=yes
15759
15760 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15761 # that the semantics of dynamic libraries on AmigaOS, at least up
15762 # to version 4, is to share data among multiple programs linked
15763 # with the same dynamic library. Since this doesn't match the
15764 # behavior of shared libraries on other platforms, we can't use
15765 # them.
15766 ld_shlibs_F77=no
15767 ;;
15768
15769 beos*)
15770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15771 allow_undefined_flag_F77=unsupported
15772 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15773 # support --undefined. This deserves some investigation. FIXME
15774 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15775 else
15776 ld_shlibs_F77=no
15777 fi
15778 ;;
15779
15780 cygwin* | mingw* | pw32*)
15781 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15782 # as there is no search path for DLLs.
15783 hardcode_libdir_flag_spec_F77='-L$libdir'
15784 allow_undefined_flag_F77=unsupported
15785 always_export_symbols_F77=no
15786 enable_shared_with_static_runtimes_F77=yes
15787 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15788
15789 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15790 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15791 # If the export-symbols file already is a .def file (1st line
15792 # is EXPORTS), use it as is; otherwise, prepend...
15793 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15794 cp $export_symbols $output_objdir/$soname.def;
15795 else
15796 echo EXPORTS > $output_objdir/$soname.def;
15797 cat $export_symbols >> $output_objdir/$soname.def;
15798 fi~
15799 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15800 else
15801 ld_shlibs_F77=no
15802 fi
15803 ;;
15804
15805 interix[3-9]*)
15806 hardcode_direct_F77=no
15807 hardcode_shlibpath_var_F77=no
15808 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15809 export_dynamic_flag_spec_F77='${wl}-E'
15810 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15811 # Instead, shared libraries are loaded at an image base (0x10000000 by
15812 # default) and relocated if they conflict, which is a slow very memory
15813 # consuming and fragmenting process. To avoid this, we pick a random,
15814 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15815 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15816 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'
15817 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'
15818 ;;
15819
15820 gnu* | linux* | k*bsd*-gnu)
15821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15822 tmp_addflag=
15823 case $cc_basename,$host_cpu in
15824 pgcc*) # Portland Group C compiler
15825 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'
15826 tmp_addflag=' $pic_flag'
15827 ;;
15828 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15829 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'
15830 tmp_addflag=' $pic_flag -Mnomain' ;;
15831 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15832 tmp_addflag=' -i_dynamic' ;;
15833 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15834 tmp_addflag=' -i_dynamic -nofor_main' ;;
15835 ifc* | ifort*) # Intel Fortran compiler
15836 tmp_addflag=' -nofor_main' ;;
15837 esac
15838 case `$CC -V 2>&1 | sed 5q` in
15839 *Sun\ C*) # Sun C 5.9
15840 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'
15841 tmp_sharedflag='-G' ;;
15842 *Sun\ F*) # Sun Fortran 8.3
15843 tmp_sharedflag='-G' ;;
15844 *)
15845 tmp_sharedflag='-shared' ;;
15846 esac
15847 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15848
15849 if test $supports_anon_versioning = yes; then
15850 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15852 $echo "local: *; };" >> $output_objdir/$libname.ver~
15853 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15854 fi
15855 link_all_deplibs_F77=no
15856 else
15857 ld_shlibs_F77=no
15858 fi
15859 ;;
15860
15861 netbsd* | netbsdelf*-gnu)
15862 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15863 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15864 wlarc=
15865 else
15866 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15867 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15868 fi
15869 ;;
15870
15871 solaris*)
15872 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15873 ld_shlibs_F77=no
15874 cat <<EOF 1>&2
15875
15876 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15877 *** create shared libraries on Solaris systems. Therefore, libtool
15878 *** is disabling shared libraries support. We urge you to upgrade GNU
15879 *** binutils to release 2.9.1 or newer. Another option is to modify
15880 *** your PATH or compiler configuration so that the native linker is
15881 *** used, and then restart.
15882
15883 EOF
15884 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15885 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15886 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15887 else
15888 ld_shlibs_F77=no
15889 fi
15890 ;;
15891
15892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15893 case `$LD -v 2>&1` in
15894 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15895 ld_shlibs_F77=no
15896 cat <<_LT_EOF 1>&2
15897
15898 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15899 *** reliably create shared libraries on SCO systems. Therefore, libtool
15900 *** is disabling shared libraries support. We urge you to upgrade GNU
15901 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15902 *** your PATH or compiler configuration so that the native linker is
15903 *** used, and then restart.
15904
15905 _LT_EOF
15906 ;;
15907 *)
15908 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15909 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15910 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15911 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15912 else
15913 ld_shlibs_F77=no
15914 fi
15915 ;;
15916 esac
15917 ;;
15918
15919 sunos4*)
15920 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15921 wlarc=
15922 hardcode_direct_F77=yes
15923 hardcode_shlibpath_var_F77=no
15924 ;;
15925
15926 *)
15927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15928 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15929 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15930 else
15931 ld_shlibs_F77=no
15932 fi
15933 ;;
15934 esac
15935
15936 if test "$ld_shlibs_F77" = no; then
15937 runpath_var=
15938 hardcode_libdir_flag_spec_F77=
15939 export_dynamic_flag_spec_F77=
15940 whole_archive_flag_spec_F77=
15941 fi
15942 else
15943 # PORTME fill in a description of your system's linker (not GNU ld)
15944 case $host_os in
15945 aix3*)
15946 allow_undefined_flag_F77=unsupported
15947 always_export_symbols_F77=yes
15948 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'
15949 # Note: this linker hardcodes the directories in LIBPATH if there
15950 # are no directories specified by -L.
15951 hardcode_minus_L_F77=yes
15952 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15953 # Neither direct hardcoding nor static linking is supported with a
15954 # broken collect2.
15955 hardcode_direct_F77=unsupported
15956 fi
15957 ;;
15958
15959 aix4* | aix5*)
15960 if test "$host_cpu" = ia64; then
15961 # On IA64, the linker does run time linking by default, so we don't
15962 # have to do anything special.
15963 aix_use_runtimelinking=no
15964 exp_sym_flag='-Bexport'
15965 no_entry_flag=""
15966 else
15967 # If we're using GNU nm, then we don't want the "-C" option.
15968 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15969 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15970 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'
15971 else
15972 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'
15973 fi
15974 aix_use_runtimelinking=no
15975
15976 # Test if we are trying to use run time linking or normal
15977 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15978 # need to do runtime linking.
15979 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15980 for ld_flag in $LDFLAGS; do
15981 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15982 aix_use_runtimelinking=yes
15983 break
15984 fi
15985 done
15986 ;;
15987 esac
15988
15989 exp_sym_flag='-bexport'
15990 no_entry_flag='-bnoentry'
15991 fi
15992
15993 # When large executables or shared objects are built, AIX ld can
15994 # have problems creating the table of contents. If linking a library
15995 # or program results in "error TOC overflow" add -mminimal-toc to
15996 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15997 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15998
15999 archive_cmds_F77=''
16000 hardcode_direct_F77=yes
16001 hardcode_libdir_separator_F77=':'
16002 link_all_deplibs_F77=yes
16003
16004 if test "$GCC" = yes; then
16005 case $host_os in aix4.[012]|aix4.[012].*)
16006 # We only want to do this on AIX 4.2 and lower, the check
16007 # below for broken collect2 doesn't work under 4.3+
16008 collect2name=`${CC} -print-prog-name=collect2`
16009 if test -f "$collect2name" && \
16010 strings "$collect2name" | grep resolve_lib_name >/dev/null
16011 then
16012 # We have reworked collect2
16013 :
16014 else
16015 # We have old collect2
16016 hardcode_direct_F77=unsupported
16017 # It fails to find uninstalled libraries when the uninstalled
16018 # path is not listed in the libpath. Setting hardcode_minus_L
16019 # to unsupported forces relinking
16020 hardcode_minus_L_F77=yes
16021 hardcode_libdir_flag_spec_F77='-L$libdir'
16022 hardcode_libdir_separator_F77=
16023 fi
16024 ;;
16025 esac
16026 shared_flag='-shared'
16027 if test "$aix_use_runtimelinking" = yes; then
16028 shared_flag="$shared_flag "'${wl}-G'
16029 fi
16030 else
16031 # not using gcc
16032 if test "$host_cpu" = ia64; then
16033 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16034 # chokes on -Wl,-G. The following line is correct:
16035 shared_flag='-G'
16036 else
16037 if test "$aix_use_runtimelinking" = yes; then
16038 shared_flag='${wl}-G'
16039 else
16040 shared_flag='${wl}-bM:SRE'
16041 fi
16042 fi
16043 fi
16044
16045 # It seems that -bexpall does not export symbols beginning with
16046 # underscore (_), so it is better to generate a list of symbols to export.
16047 always_export_symbols_F77=yes
16048 if test "$aix_use_runtimelinking" = yes; then
16049 # Warning - without using the other runtime loading flags (-brtl),
16050 # -berok will link without error, but may produce a broken library.
16051 allow_undefined_flag_F77='-berok'
16052 # Determine the default libpath from the value encoded in an empty executable.
16053 cat >conftest.$ac_ext <<_ACEOF
16054 program main
16055
16056 end
16057 _ACEOF
16058 rm -f conftest.$ac_objext conftest$ac_exeext
16059 if { (ac_try="$ac_link"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_link") 2>conftest.er1
16066 ac_status=$?
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } && {
16072 test -z "$ac_f77_werror_flag" ||
16073 test ! -s conftest.err
16074 } && test -s conftest$ac_exeext &&
16075 $as_test_x conftest$ac_exeext; then
16076
16077 lt_aix_libpath_sed='
16078 /Import File Strings/,/^$/ {
16079 /^0/ {
16080 s/^0 *\(.*\)$/\1/
16081 p
16082 }
16083 }'
16084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16085 # Check for a 64-bit object if we didn't find anything.
16086 if test -z "$aix_libpath"; then
16087 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16088 fi
16089 else
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16092
16093
16094 fi
16095
16096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16097 conftest$ac_exeext conftest.$ac_ext
16098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16099
16100 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16101 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"
16102 else
16103 if test "$host_cpu" = ia64; then
16104 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16105 allow_undefined_flag_F77="-z nodefs"
16106 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"
16107 else
16108 # Determine the default libpath from the value encoded in an empty executable.
16109 cat >conftest.$ac_ext <<_ACEOF
16110 program main
16111
16112 end
16113 _ACEOF
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (ac_try="$ac_link"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119 esac
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_link") 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } && {
16128 test -z "$ac_f77_werror_flag" ||
16129 test ! -s conftest.err
16130 } && test -s conftest$ac_exeext &&
16131 $as_test_x conftest$ac_exeext; then
16132
16133 lt_aix_libpath_sed='
16134 /Import File Strings/,/^$/ {
16135 /^0/ {
16136 s/^0 *\(.*\)$/\1/
16137 p
16138 }
16139 }'
16140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16141 # Check for a 64-bit object if we didn't find anything.
16142 if test -z "$aix_libpath"; then
16143 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16144 fi
16145 else
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16148
16149
16150 fi
16151
16152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16153 conftest$ac_exeext conftest.$ac_ext
16154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16155
16156 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16157 # Warning - without using the other run time loading flags,
16158 # -berok will link without error, but may produce a broken library.
16159 no_undefined_flag_F77=' ${wl}-bernotok'
16160 allow_undefined_flag_F77=' ${wl}-berok'
16161 # Exported symbols can be pulled into shared objects from archives
16162 whole_archive_flag_spec_F77='$convenience'
16163 archive_cmds_need_lc_F77=yes
16164 # This is similar to how AIX traditionally builds its shared libraries.
16165 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'
16166 fi
16167 fi
16168 ;;
16169
16170 amigaos*)
16171 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)'
16172 hardcode_libdir_flag_spec_F77='-L$libdir'
16173 hardcode_minus_L_F77=yes
16174 # see comment about different semantics on the GNU ld section
16175 ld_shlibs_F77=no
16176 ;;
16177
16178 bsdi[45]*)
16179 export_dynamic_flag_spec_F77=-rdynamic
16180 ;;
16181
16182 cygwin* | mingw* | pw32*)
16183 # When not using gcc, we currently assume that we are using
16184 # Microsoft Visual C++.
16185 # hardcode_libdir_flag_spec is actually meaningless, as there is
16186 # no search path for DLLs.
16187 hardcode_libdir_flag_spec_F77=' '
16188 allow_undefined_flag_F77=unsupported
16189 # Tell ltmain to make .lib files, not .a files.
16190 libext=lib
16191 # Tell ltmain to make .dll files, not .so files.
16192 shrext_cmds=".dll"
16193 # FIXME: Setting linknames here is a bad hack.
16194 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16195 # The linker will automatically build a .lib file if we build a DLL.
16196 old_archive_From_new_cmds_F77='true'
16197 # FIXME: Should let the user specify the lib program.
16198 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16199 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16200 enable_shared_with_static_runtimes_F77=yes
16201 ;;
16202
16203 darwin* | rhapsody*)
16204 case $host_os in
16205 rhapsody* | darwin1.[012])
16206 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16207 ;;
16208 *) # Darwin 1.3 on
16209 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16210 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16211 else
16212 case ${MACOSX_DEPLOYMENT_TARGET} in
16213 10.[012])
16214 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16215 ;;
16216 10.*)
16217 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16218 ;;
16219 esac
16220 fi
16221 ;;
16222 esac
16223 archive_cmds_need_lc_F77=no
16224 hardcode_direct_F77=no
16225 hardcode_automatic_F77=yes
16226 hardcode_shlibpath_var_F77=unsupported
16227 whole_archive_flag_spec_F77=''
16228 link_all_deplibs_F77=yes
16229 if test "$GCC" = yes ; then
16230 output_verbose_link_cmd='echo'
16231 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16232 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16233 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16234 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16235 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}'
16236 else
16237 case $cc_basename in
16238 xlc*)
16239 output_verbose_link_cmd='echo'
16240 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16241 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16242 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16243 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}'
16244 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}'
16245 ;;
16246 *)
16247 ld_shlibs_F77=no
16248 ;;
16249 esac
16250 fi
16251 ;;
16252
16253 dgux*)
16254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16255 hardcode_libdir_flag_spec_F77='-L$libdir'
16256 hardcode_shlibpath_var_F77=no
16257 ;;
16258
16259 freebsd1*)
16260 ld_shlibs_F77=no
16261 ;;
16262
16263 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16264 # support. Future versions do this automatically, but an explicit c++rt0.o
16265 # does not break anything, and helps significantly (at the cost of a little
16266 # extra space).
16267 freebsd2.2*)
16268 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16269 hardcode_libdir_flag_spec_F77='-R$libdir'
16270 hardcode_direct_F77=yes
16271 hardcode_shlibpath_var_F77=no
16272 ;;
16273
16274 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16275 freebsd2*)
16276 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16277 hardcode_direct_F77=yes
16278 hardcode_minus_L_F77=yes
16279 hardcode_shlibpath_var_F77=no
16280 ;;
16281
16282 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16283 freebsd* | dragonfly*)
16284 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16285 hardcode_libdir_flag_spec_F77='-R$libdir'
16286 hardcode_direct_F77=yes
16287 hardcode_shlibpath_var_F77=no
16288 ;;
16289
16290 hpux9*)
16291 if test "$GCC" = yes; then
16292 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'
16293 else
16294 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'
16295 fi
16296 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16297 hardcode_libdir_separator_F77=:
16298 hardcode_direct_F77=yes
16299
16300 # hardcode_minus_L: Not really in the search PATH,
16301 # but as the default location of the library.
16302 hardcode_minus_L_F77=yes
16303 export_dynamic_flag_spec_F77='${wl}-E'
16304 ;;
16305
16306 hpux10*)
16307 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16308 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16309 else
16310 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16311 fi
16312 if test "$with_gnu_ld" = no; then
16313 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16314 hardcode_libdir_separator_F77=:
16315
16316 hardcode_direct_F77=yes
16317 export_dynamic_flag_spec_F77='${wl}-E'
16318
16319 # hardcode_minus_L: Not really in the search PATH,
16320 # but as the default location of the library.
16321 hardcode_minus_L_F77=yes
16322 fi
16323 ;;
16324
16325 hpux11*)
16326 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16327 case $host_cpu in
16328 hppa*64*)
16329 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16330 ;;
16331 ia64*)
16332 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16333 ;;
16334 *)
16335 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16336 ;;
16337 esac
16338 else
16339 case $host_cpu in
16340 hppa*64*)
16341 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16342 ;;
16343 ia64*)
16344 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16345 ;;
16346 *)
16347 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16348 ;;
16349 esac
16350 fi
16351 if test "$with_gnu_ld" = no; then
16352 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16353 hardcode_libdir_separator_F77=:
16354
16355 case $host_cpu in
16356 hppa*64*|ia64*)
16357 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16358 hardcode_direct_F77=no
16359 hardcode_shlibpath_var_F77=no
16360 ;;
16361 *)
16362 hardcode_direct_F77=yes
16363 export_dynamic_flag_spec_F77='${wl}-E'
16364
16365 # hardcode_minus_L: Not really in the search PATH,
16366 # but as the default location of the library.
16367 hardcode_minus_L_F77=yes
16368 ;;
16369 esac
16370 fi
16371 ;;
16372
16373 irix5* | irix6* | nonstopux*)
16374 if test "$GCC" = yes; then
16375 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'
16376 else
16377 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'
16378 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16379 fi
16380 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16381 hardcode_libdir_separator_F77=:
16382 link_all_deplibs_F77=yes
16383 ;;
16384
16385 netbsd* | netbsdelf*-gnu)
16386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16387 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16388 else
16389 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16390 fi
16391 hardcode_libdir_flag_spec_F77='-R$libdir'
16392 hardcode_direct_F77=yes
16393 hardcode_shlibpath_var_F77=no
16394 ;;
16395
16396 newsos6)
16397 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16398 hardcode_direct_F77=yes
16399 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16400 hardcode_libdir_separator_F77=:
16401 hardcode_shlibpath_var_F77=no
16402 ;;
16403
16404 openbsd*)
16405 if test -f /usr/libexec/ld.so; then
16406 hardcode_direct_F77=yes
16407 hardcode_shlibpath_var_F77=no
16408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16409 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16410 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16411 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16412 export_dynamic_flag_spec_F77='${wl}-E'
16413 else
16414 case $host_os in
16415 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16416 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16417 hardcode_libdir_flag_spec_F77='-R$libdir'
16418 ;;
16419 *)
16420 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16421 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16422 ;;
16423 esac
16424 fi
16425 else
16426 ld_shlibs_F77=no
16427 fi
16428 ;;
16429
16430 os2*)
16431 hardcode_libdir_flag_spec_F77='-L$libdir'
16432 hardcode_minus_L_F77=yes
16433 allow_undefined_flag_F77=unsupported
16434 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'
16435 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16436 ;;
16437
16438 osf3*)
16439 if test "$GCC" = yes; then
16440 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16441 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'
16442 else
16443 allow_undefined_flag_F77=' -expect_unresolved \*'
16444 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'
16445 fi
16446 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16447 hardcode_libdir_separator_F77=:
16448 ;;
16449
16450 osf4* | osf5*) # as osf3* with the addition of -msym flag
16451 if test "$GCC" = yes; then
16452 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16453 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'
16454 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16455 else
16456 allow_undefined_flag_F77=' -expect_unresolved \*'
16457 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'
16458 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~
16459 $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'
16460
16461 # Both c and cxx compiler support -rpath directly
16462 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16463 fi
16464 hardcode_libdir_separator_F77=:
16465 ;;
16466
16467 solaris*)
16468 no_undefined_flag_F77=' -z text'
16469 if test "$GCC" = yes; then
16470 wlarc='${wl}'
16471 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16472 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16473 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16474 else
16475 wlarc=''
16476 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16479 fi
16480 hardcode_libdir_flag_spec_F77='-R$libdir'
16481 hardcode_shlibpath_var_F77=no
16482 case $host_os in
16483 solaris2.[0-5] | solaris2.[0-5].*) ;;
16484 *)
16485 # The compiler driver will combine and reorder linker options,
16486 # but understands `-z linker_flag'. GCC discards it without `$wl',
16487 # but is careful enough not to reorder.
16488 # Supported since Solaris 2.6 (maybe 2.5.1?)
16489 if test "$GCC" = yes; then
16490 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16491 else
16492 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16493 fi
16494 ;;
16495 esac
16496 link_all_deplibs_F77=yes
16497 ;;
16498
16499 sunos4*)
16500 if test "x$host_vendor" = xsequent; then
16501 # Use $CC to link under sequent, because it throws in some extra .o
16502 # files that make .init and .fini sections work.
16503 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16504 else
16505 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16506 fi
16507 hardcode_libdir_flag_spec_F77='-L$libdir'
16508 hardcode_direct_F77=yes
16509 hardcode_minus_L_F77=yes
16510 hardcode_shlibpath_var_F77=no
16511 ;;
16512
16513 sysv4)
16514 case $host_vendor in
16515 sni)
16516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16517 hardcode_direct_F77=yes # is this really true???
16518 ;;
16519 siemens)
16520 ## LD is ld it makes a PLAMLIB
16521 ## CC just makes a GrossModule.
16522 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16523 reload_cmds_F77='$CC -r -o $output$reload_objs'
16524 hardcode_direct_F77=no
16525 ;;
16526 motorola)
16527 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16528 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16529 ;;
16530 esac
16531 runpath_var='LD_RUN_PATH'
16532 hardcode_shlibpath_var_F77=no
16533 ;;
16534
16535 sysv4.3*)
16536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16537 hardcode_shlibpath_var_F77=no
16538 export_dynamic_flag_spec_F77='-Bexport'
16539 ;;
16540
16541 sysv4*MP*)
16542 if test -d /usr/nec; then
16543 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16544 hardcode_shlibpath_var_F77=no
16545 runpath_var=LD_RUN_PATH
16546 hardcode_runpath_var=yes
16547 ld_shlibs_F77=yes
16548 fi
16549 ;;
16550
16551 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16552 no_undefined_flag_F77='${wl}-z,text'
16553 archive_cmds_need_lc_F77=no
16554 hardcode_shlibpath_var_F77=no
16555 runpath_var='LD_RUN_PATH'
16556
16557 if test "$GCC" = yes; then
16558 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16559 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16560 else
16561 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16562 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16563 fi
16564 ;;
16565
16566 sysv5* | sco3.2v5* | sco5v6*)
16567 # Note: We can NOT use -z defs as we might desire, because we do not
16568 # link with -lc, and that would cause any symbols used from libc to
16569 # always be unresolved, which means just about no library would
16570 # ever link correctly. If we're not using GNU ld we use -z text
16571 # though, which does catch some bad symbols but isn't as heavy-handed
16572 # as -z defs.
16573 no_undefined_flag_F77='${wl}-z,text'
16574 allow_undefined_flag_F77='${wl}-z,nodefs'
16575 archive_cmds_need_lc_F77=no
16576 hardcode_shlibpath_var_F77=no
16577 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16578 hardcode_libdir_separator_F77=':'
16579 link_all_deplibs_F77=yes
16580 export_dynamic_flag_spec_F77='${wl}-Bexport'
16581 runpath_var='LD_RUN_PATH'
16582
16583 if test "$GCC" = yes; then
16584 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16585 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16586 else
16587 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16588 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16589 fi
16590 ;;
16591
16592 uts4*)
16593 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16594 hardcode_libdir_flag_spec_F77='-L$libdir'
16595 hardcode_shlibpath_var_F77=no
16596 ;;
16597
16598 *)
16599 ld_shlibs_F77=no
16600 ;;
16601 esac
16602 fi
16603
16604 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16605 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16606 test "$ld_shlibs_F77" = no && can_build_shared=no
16607
16608 #
16609 # Do we need to explicitly link libc?
16610 #
16611 case "x$archive_cmds_need_lc_F77" in
16612 x|xyes)
16613 # Assume -lc should be added
16614 archive_cmds_need_lc_F77=yes
16615
16616 if test "$enable_shared" = yes && test "$GCC" = yes; then
16617 case $archive_cmds_F77 in
16618 *'~'*)
16619 # FIXME: we may have to deal with multi-command sequences.
16620 ;;
16621 '$CC '*)
16622 # Test whether the compiler implicitly links with -lc since on some
16623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16624 # to ld, don't add -lc before -lgcc.
16625 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16626 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16627 $rm conftest*
16628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16629
16630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16631 (eval $ac_compile) 2>&5
16632 ac_status=$?
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } 2>conftest.err; then
16635 soname=conftest
16636 lib=conftest
16637 libobjs=conftest.$ac_objext
16638 deplibs=
16639 wl=$lt_prog_compiler_wl_F77
16640 pic_flag=$lt_prog_compiler_pic_F77
16641 compiler_flags=-v
16642 linker_flags=-v
16643 verstring=
16644 output_objdir=.
16645 libname=conftest
16646 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16647 allow_undefined_flag_F77=
16648 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16649 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }
16653 then
16654 archive_cmds_need_lc_F77=no
16655 else
16656 archive_cmds_need_lc_F77=yes
16657 fi
16658 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16659 else
16660 cat conftest.err 1>&5
16661 fi
16662 $rm conftest*
16663 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16664 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16665 ;;
16666 esac
16667 fi
16668 ;;
16669 esac
16670
16671 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16672 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16673 library_names_spec=
16674 libname_spec='lib$name'
16675 soname_spec=
16676 shrext_cmds=".so"
16677 postinstall_cmds=
16678 postuninstall_cmds=
16679 finish_cmds=
16680 finish_eval=
16681 shlibpath_var=
16682 shlibpath_overrides_runpath=unknown
16683 version_type=none
16684 dynamic_linker="$host_os ld.so"
16685 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16686
16687 need_lib_prefix=unknown
16688 hardcode_into_libs=no
16689
16690 # when you set need_version to no, make sure it does not cause -set_version
16691 # flags to be left without arguments
16692 need_version=unknown
16693
16694 case $host_os in
16695 aix3*)
16696 version_type=linux
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16698 shlibpath_var=LIBPATH
16699
16700 # AIX 3 has no versioning support, so we append a major version to the name.
16701 soname_spec='${libname}${release}${shared_ext}$major'
16702 ;;
16703
16704 aix4* | aix5*)
16705 version_type=linux
16706 need_lib_prefix=no
16707 need_version=no
16708 hardcode_into_libs=yes
16709 if test "$host_cpu" = ia64; then
16710 # AIX 5 supports IA64
16711 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16712 shlibpath_var=LD_LIBRARY_PATH
16713 else
16714 # With GCC up to 2.95.x, collect2 would create an import file
16715 # for dependence libraries. The import file would start with
16716 # the line `#! .'. This would cause the generated library to
16717 # depend on `.', always an invalid library. This was fixed in
16718 # development snapshots of GCC prior to 3.0.
16719 case $host_os in
16720 aix4 | aix4.[01] | aix4.[01].*)
16721 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16722 echo ' yes '
16723 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16724 :
16725 else
16726 can_build_shared=no
16727 fi
16728 ;;
16729 esac
16730 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16731 # soname into executable. Probably we can add versioning support to
16732 # collect2, so additional links can be useful in future.
16733 if test "$aix_use_runtimelinking" = yes; then
16734 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16735 # instead of lib<name>.a to let people know that these are not
16736 # typical AIX shared libraries.
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16738 else
16739 # We preserve .a as extension for shared libraries through AIX4.2
16740 # and later when we are not doing run time linking.
16741 library_names_spec='${libname}${release}.a $libname.a'
16742 soname_spec='${libname}${release}${shared_ext}$major'
16743 fi
16744 shlibpath_var=LIBPATH
16745 fi
16746 ;;
16747
16748 amigaos*)
16749 library_names_spec='$libname.ixlibrary $libname.a'
16750 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16751 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'
16752 ;;
16753
16754 beos*)
16755 library_names_spec='${libname}${shared_ext}'
16756 dynamic_linker="$host_os ld.so"
16757 shlibpath_var=LIBRARY_PATH
16758 ;;
16759
16760 bsdi[45]*)
16761 version_type=linux
16762 need_version=no
16763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764 soname_spec='${libname}${release}${shared_ext}$major'
16765 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16768 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16769 # the default ld.so.conf also contains /usr/contrib/lib and
16770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16771 # libtool to hard-code these into programs
16772 ;;
16773
16774 cygwin* | mingw* | pw32*)
16775 version_type=windows
16776 shrext_cmds=".dll"
16777 need_version=no
16778 need_lib_prefix=no
16779
16780 case $GCC,$host_os in
16781 yes,cygwin* | yes,mingw* | yes,pw32*)
16782 library_names_spec='$libname.dll.a'
16783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16784 postinstall_cmds='base_file=`basename \${file}`~
16785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16786 dldir=$destdir/`dirname \$dlpath`~
16787 test -d \$dldir || mkdir -p \$dldir~
16788 $install_prog $dir/$dlname \$dldir/$dlname~
16789 chmod a+x \$dldir/$dlname'
16790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16791 dlpath=$dir/\$dldll~
16792 $rm \$dlpath'
16793 shlibpath_overrides_runpath=yes
16794
16795 case $host_os in
16796 cygwin*)
16797 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16798 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16799 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16800 ;;
16801 mingw*)
16802 # MinGW DLLs use traditional 'lib' prefix
16803 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16805 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16806 # It is most probably a Windows format PATH printed by
16807 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16808 # path with ; separators, and with drive letters. We can handle the
16809 # drive letters (cygwin fileutils understands them), so leave them,
16810 # especially as we might pass files found there to a mingw objdump,
16811 # which wouldn't understand a cygwinified path. Ahh.
16812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16813 else
16814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16815 fi
16816 ;;
16817 pw32*)
16818 # pw32 DLLs use 'pw' prefix rather than 'lib'
16819 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16820 ;;
16821 esac
16822 ;;
16823
16824 *)
16825 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16826 ;;
16827 esac
16828 dynamic_linker='Win32 ld.exe'
16829 # FIXME: first we should search . and the directory the executable is in
16830 shlibpath_var=PATH
16831 ;;
16832
16833 darwin* | rhapsody*)
16834 dynamic_linker="$host_os dyld"
16835 version_type=darwin
16836 need_lib_prefix=no
16837 need_version=no
16838 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16839 soname_spec='${libname}${release}${major}$shared_ext'
16840 shlibpath_overrides_runpath=yes
16841 shlibpath_var=DYLD_LIBRARY_PATH
16842 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16843
16844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16845 ;;
16846
16847 dgux*)
16848 version_type=linux
16849 need_lib_prefix=no
16850 need_version=no
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 ;;
16855
16856 freebsd1*)
16857 dynamic_linker=no
16858 ;;
16859
16860 freebsd* | dragonfly*)
16861 # DragonFly does not have aout. When/if they implement a new
16862 # versioning mechanism, adjust this.
16863 if test -x /usr/bin/objformat; then
16864 objformat=`/usr/bin/objformat`
16865 else
16866 case $host_os in
16867 freebsd[123]*) objformat=aout ;;
16868 *) objformat=elf ;;
16869 esac
16870 fi
16871 version_type=freebsd-$objformat
16872 case $version_type in
16873 freebsd-elf*)
16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16875 need_version=no
16876 need_lib_prefix=no
16877 ;;
16878 freebsd-*)
16879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16880 need_version=yes
16881 ;;
16882 esac
16883 shlibpath_var=LD_LIBRARY_PATH
16884 case $host_os in
16885 freebsd2*)
16886 shlibpath_overrides_runpath=yes
16887 ;;
16888 freebsd3.[01]* | freebsdelf3.[01]*)
16889 shlibpath_overrides_runpath=yes
16890 hardcode_into_libs=yes
16891 ;;
16892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16894 shlibpath_overrides_runpath=no
16895 hardcode_into_libs=yes
16896 ;;
16897 *) # from 4.6 on, and DragonFly
16898 shlibpath_overrides_runpath=yes
16899 hardcode_into_libs=yes
16900 ;;
16901 esac
16902 ;;
16903
16904 gnu*)
16905 version_type=linux
16906 need_lib_prefix=no
16907 need_version=no
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 hardcode_into_libs=yes
16912 ;;
16913
16914 hpux9* | hpux10* | hpux11*)
16915 # Give a soname corresponding to the major version so that dld.sl refuses to
16916 # link against other versions.
16917 version_type=sunos
16918 need_lib_prefix=no
16919 need_version=no
16920 case $host_cpu in
16921 ia64*)
16922 shrext_cmds='.so'
16923 hardcode_into_libs=yes
16924 dynamic_linker="$host_os dld.so"
16925 shlibpath_var=LD_LIBRARY_PATH
16926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 if test "X$HPUX_IA64_MODE" = X32; then
16930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16931 else
16932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16933 fi
16934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16935 ;;
16936 hppa*64*)
16937 shrext_cmds='.sl'
16938 hardcode_into_libs=yes
16939 dynamic_linker="$host_os dld.sl"
16940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943 soname_spec='${libname}${release}${shared_ext}$major'
16944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16946 ;;
16947 *)
16948 shrext_cmds='.sl'
16949 dynamic_linker="$host_os dld.sl"
16950 shlibpath_var=SHLIB_PATH
16951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953 soname_spec='${libname}${release}${shared_ext}$major'
16954 ;;
16955 esac
16956 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16957 postinstall_cmds='chmod 555 $lib'
16958 ;;
16959
16960 interix[3-9]*)
16961 version_type=linux
16962 need_lib_prefix=no
16963 need_version=no
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16967 shlibpath_var=LD_LIBRARY_PATH
16968 shlibpath_overrides_runpath=no
16969 hardcode_into_libs=yes
16970 ;;
16971
16972 irix5* | irix6* | nonstopux*)
16973 case $host_os in
16974 nonstopux*) version_type=nonstopux ;;
16975 *)
16976 if test "$lt_cv_prog_gnu_ld" = yes; then
16977 version_type=linux
16978 else
16979 version_type=irix
16980 fi ;;
16981 esac
16982 need_lib_prefix=no
16983 need_version=no
16984 soname_spec='${libname}${release}${shared_ext}$major'
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16986 case $host_os in
16987 irix5* | nonstopux*)
16988 libsuff= shlibsuff=
16989 ;;
16990 *)
16991 case $LD in # libtool.m4 will add one of these switches to LD
16992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16993 libsuff= shlibsuff= libmagic=32-bit;;
16994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16995 libsuff=32 shlibsuff=N32 libmagic=N32;;
16996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16998 *) libsuff= shlibsuff= libmagic=never-match;;
16999 esac
17000 ;;
17001 esac
17002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17003 shlibpath_overrides_runpath=no
17004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17006 hardcode_into_libs=yes
17007 ;;
17008
17009 # No shared lib support for Linux oldld, aout, or coff.
17010 linux*oldld* | linux*aout* | linux*coff*)
17011 dynamic_linker=no
17012 ;;
17013
17014 # This must be Linux ELF.
17015 linux* | k*bsd*-gnu)
17016 version_type=linux
17017 need_lib_prefix=no
17018 need_version=no
17019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17020 soname_spec='${libname}${release}${shared_ext}$major'
17021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 shlibpath_overrides_runpath=no
17024 # This implies no fast_install, which is unacceptable.
17025 # Some rework will be needed to allow for fast_install
17026 # before this can be enabled.
17027 hardcode_into_libs=yes
17028
17029 # Append ld.so.conf contents to the search path
17030 if test -f /etc/ld.so.conf; then
17031 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' ' '`
17032 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17033 fi
17034
17035 # We used to test for /lib/ld.so.1 and disable shared libraries on
17036 # powerpc, because MkLinux only supported shared libraries with the
17037 # GNU dynamic linker. Since this was broken with cross compilers,
17038 # most powerpc-linux boxes support dynamic linking these days and
17039 # people can always --disable-shared, the test was removed, and we
17040 # assume the GNU/Linux dynamic linker is in use.
17041 dynamic_linker='GNU/Linux ld.so'
17042 ;;
17043
17044 netbsdelf*-gnu)
17045 version_type=linux
17046 need_lib_prefix=no
17047 need_version=no
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17049 soname_spec='${libname}${release}${shared_ext}$major'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath=no
17052 hardcode_into_libs=yes
17053 dynamic_linker='NetBSD ld.elf_so'
17054 ;;
17055
17056 netbsd*)
17057 version_type=sunos
17058 need_lib_prefix=no
17059 need_version=no
17060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17063 dynamic_linker='NetBSD (a.out) ld.so'
17064 else
17065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17066 soname_spec='${libname}${release}${shared_ext}$major'
17067 dynamic_linker='NetBSD ld.elf_so'
17068 fi
17069 shlibpath_var=LD_LIBRARY_PATH
17070 shlibpath_overrides_runpath=yes
17071 hardcode_into_libs=yes
17072 ;;
17073
17074 newsos6)
17075 version_type=linux
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17077 shlibpath_var=LD_LIBRARY_PATH
17078 shlibpath_overrides_runpath=yes
17079 ;;
17080
17081 nto-qnx*)
17082 version_type=linux
17083 need_lib_prefix=no
17084 need_version=no
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17086 soname_spec='${libname}${release}${shared_ext}$major'
17087 shlibpath_var=LD_LIBRARY_PATH
17088 shlibpath_overrides_runpath=yes
17089 ;;
17090
17091 openbsd*)
17092 version_type=sunos
17093 sys_lib_dlsearch_path_spec="/usr/lib"
17094 need_lib_prefix=no
17095 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17096 case $host_os in
17097 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17098 *) need_version=no ;;
17099 esac
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17102 shlibpath_var=LD_LIBRARY_PATH
17103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17104 case $host_os in
17105 openbsd2.[89] | openbsd2.[89].*)
17106 shlibpath_overrides_runpath=no
17107 ;;
17108 *)
17109 shlibpath_overrides_runpath=yes
17110 ;;
17111 esac
17112 else
17113 shlibpath_overrides_runpath=yes
17114 fi
17115 ;;
17116
17117 os2*)
17118 libname_spec='$name'
17119 shrext_cmds=".dll"
17120 need_lib_prefix=no
17121 library_names_spec='$libname${shared_ext} $libname.a'
17122 dynamic_linker='OS/2 ld.exe'
17123 shlibpath_var=LIBPATH
17124 ;;
17125
17126 osf3* | osf4* | osf5*)
17127 version_type=osf
17128 need_lib_prefix=no
17129 need_version=no
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17132 shlibpath_var=LD_LIBRARY_PATH
17133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17135 ;;
17136
17137 rdos*)
17138 dynamic_linker=no
17139 ;;
17140
17141 solaris*)
17142 version_type=linux
17143 need_lib_prefix=no
17144 need_version=no
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 soname_spec='${libname}${release}${shared_ext}$major'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=yes
17149 hardcode_into_libs=yes
17150 # ldd complains unless libraries are executable
17151 postinstall_cmds='chmod +x $lib'
17152 ;;
17153
17154 sunos4*)
17155 version_type=sunos
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17157 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17158 shlibpath_var=LD_LIBRARY_PATH
17159 shlibpath_overrides_runpath=yes
17160 if test "$with_gnu_ld" = yes; then
17161 need_lib_prefix=no
17162 fi
17163 need_version=yes
17164 ;;
17165
17166 sysv4 | sysv4.3*)
17167 version_type=linux
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169 soname_spec='${libname}${release}${shared_ext}$major'
17170 shlibpath_var=LD_LIBRARY_PATH
17171 case $host_vendor in
17172 sni)
17173 shlibpath_overrides_runpath=no
17174 need_lib_prefix=no
17175 export_dynamic_flag_spec='${wl}-Blargedynsym'
17176 runpath_var=LD_RUN_PATH
17177 ;;
17178 siemens)
17179 need_lib_prefix=no
17180 ;;
17181 motorola)
17182 need_lib_prefix=no
17183 need_version=no
17184 shlibpath_overrides_runpath=no
17185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17186 ;;
17187 esac
17188 ;;
17189
17190 sysv4*MP*)
17191 if test -d /usr/nec ;then
17192 version_type=linux
17193 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17194 soname_spec='$libname${shared_ext}.$major'
17195 shlibpath_var=LD_LIBRARY_PATH
17196 fi
17197 ;;
17198
17199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17200 version_type=freebsd-elf
17201 need_lib_prefix=no
17202 need_version=no
17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17204 soname_spec='${libname}${release}${shared_ext}$major'
17205 shlibpath_var=LD_LIBRARY_PATH
17206 hardcode_into_libs=yes
17207 if test "$with_gnu_ld" = yes; then
17208 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17209 shlibpath_overrides_runpath=no
17210 else
17211 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17212 shlibpath_overrides_runpath=yes
17213 case $host_os in
17214 sco3.2v5*)
17215 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17216 ;;
17217 esac
17218 fi
17219 sys_lib_dlsearch_path_spec='/usr/lib'
17220 ;;
17221
17222 uts4*)
17223 version_type=linux
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 ;;
17228
17229 *)
17230 dynamic_linker=no
17231 ;;
17232 esac
17233 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17234 echo "${ECHO_T}$dynamic_linker" >&6; }
17235 test "$dynamic_linker" = no && can_build_shared=no
17236
17237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17238 if test "$GCC" = yes; then
17239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17240 fi
17241
17242 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17243 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17244 hardcode_action_F77=
17245 if test -n "$hardcode_libdir_flag_spec_F77" || \
17246 test -n "$runpath_var_F77" || \
17247 test "X$hardcode_automatic_F77" = "Xyes" ; then
17248
17249 # We can hardcode non-existant directories.
17250 if test "$hardcode_direct_F77" != no &&
17251 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17252 # have to relink, otherwise we might link with an installed library
17253 # when we should be linking with a yet-to-be-installed one
17254 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17255 test "$hardcode_minus_L_F77" != no; then
17256 # Linking always hardcodes the temporary library directory.
17257 hardcode_action_F77=relink
17258 else
17259 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17260 hardcode_action_F77=immediate
17261 fi
17262 else
17263 # We cannot hardcode anything, or else we can only hardcode existing
17264 # directories.
17265 hardcode_action_F77=unsupported
17266 fi
17267 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17268 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17269
17270 if test "$hardcode_action_F77" = relink; then
17271 # Fast installation is not supported
17272 enable_fast_install=no
17273 elif test "$shlibpath_overrides_runpath" = yes ||
17274 test "$enable_shared" = no; then
17275 # Fast installation is not necessary
17276 enable_fast_install=needless
17277 fi
17278
17279
17280 # The else clause should only fire when bootstrapping the
17281 # libtool distribution, otherwise you forgot to ship ltmain.sh
17282 # with your package, and you will get complaints that there are
17283 # no rules to generate ltmain.sh.
17284 if test -f "$ltmain"; then
17285 # See if we are running on zsh, and set the options which allow our commands through
17286 # without removal of \ escapes.
17287 if test -n "${ZSH_VERSION+set}" ; then
17288 setopt NO_GLOB_SUBST
17289 fi
17290 # Now quote all the things that may contain metacharacters while being
17291 # careful not to overquote the AC_SUBSTed values. We take copies of the
17292 # variables and quote the copies for generation of the libtool script.
17293 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17294 SED SHELL STRIP \
17295 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17296 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17297 deplibs_check_method reload_flag reload_cmds need_locks \
17298 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17299 lt_cv_sys_global_symbol_to_c_name_address \
17300 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17301 old_postinstall_cmds old_postuninstall_cmds \
17302 compiler_F77 \
17303 CC_F77 \
17304 LD_F77 \
17305 lt_prog_compiler_wl_F77 \
17306 lt_prog_compiler_pic_F77 \
17307 lt_prog_compiler_static_F77 \
17308 lt_prog_compiler_no_builtin_flag_F77 \
17309 export_dynamic_flag_spec_F77 \
17310 thread_safe_flag_spec_F77 \
17311 whole_archive_flag_spec_F77 \
17312 enable_shared_with_static_runtimes_F77 \
17313 old_archive_cmds_F77 \
17314 old_archive_from_new_cmds_F77 \
17315 predep_objects_F77 \
17316 postdep_objects_F77 \
17317 predeps_F77 \
17318 postdeps_F77 \
17319 compiler_lib_search_path_F77 \
17320 archive_cmds_F77 \
17321 archive_expsym_cmds_F77 \
17322 postinstall_cmds_F77 \
17323 postuninstall_cmds_F77 \
17324 old_archive_from_expsyms_cmds_F77 \
17325 allow_undefined_flag_F77 \
17326 no_undefined_flag_F77 \
17327 export_symbols_cmds_F77 \
17328 hardcode_libdir_flag_spec_F77 \
17329 hardcode_libdir_flag_spec_ld_F77 \
17330 hardcode_libdir_separator_F77 \
17331 hardcode_automatic_F77 \
17332 module_cmds_F77 \
17333 module_expsym_cmds_F77 \
17334 lt_cv_prog_compiler_c_o_F77 \
17335 fix_srcfile_path_F77 \
17336 exclude_expsyms_F77 \
17337 include_expsyms_F77; do
17338
17339 case $var in
17340 old_archive_cmds_F77 | \
17341 old_archive_from_new_cmds_F77 | \
17342 archive_cmds_F77 | \
17343 archive_expsym_cmds_F77 | \
17344 module_cmds_F77 | \
17345 module_expsym_cmds_F77 | \
17346 old_archive_from_expsyms_cmds_F77 | \
17347 export_symbols_cmds_F77 | \
17348 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17349 postinstall_cmds | postuninstall_cmds | \
17350 old_postinstall_cmds | old_postuninstall_cmds | \
17351 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17352 # Double-quote double-evaled strings.
17353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17354 ;;
17355 *)
17356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17357 ;;
17358 esac
17359 done
17360
17361 case $lt_echo in
17362 *'\$0 --fallback-echo"')
17363 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17364 ;;
17365 esac
17366
17367 cfgfile="$ofile"
17368
17369 cat <<__EOF__ >> "$cfgfile"
17370 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17371
17372 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17373
17374 # Shell to use when invoking shell scripts.
17375 SHELL=$lt_SHELL
17376
17377 # Whether or not to build shared libraries.
17378 build_libtool_libs=$enable_shared
17379
17380 # Whether or not to build static libraries.
17381 build_old_libs=$enable_static
17382
17383 # Whether or not to add -lc for building shared libraries.
17384 build_libtool_need_lc=$archive_cmds_need_lc_F77
17385
17386 # Whether or not to disallow shared libs when runtime libs are static
17387 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17388
17389 # Whether or not to optimize for fast installation.
17390 fast_install=$enable_fast_install
17391
17392 # The host system.
17393 host_alias=$host_alias
17394 host=$host
17395 host_os=$host_os
17396
17397 # The build system.
17398 build_alias=$build_alias
17399 build=$build
17400 build_os=$build_os
17401
17402 # An echo program that does not interpret backslashes.
17403 echo=$lt_echo
17404
17405 # The archiver.
17406 AR=$lt_AR
17407 AR_FLAGS=$lt_AR_FLAGS
17408
17409 # A C compiler.
17410 LTCC=$lt_LTCC
17411
17412 # LTCC compiler flags.
17413 LTCFLAGS=$lt_LTCFLAGS
17414
17415 # A language-specific compiler.
17416 CC=$lt_compiler_F77
17417
17418 # Is the compiler the GNU C compiler?
17419 with_gcc=$GCC_F77
17420
17421 # An ERE matcher.
17422 EGREP=$lt_EGREP
17423
17424 # The linker used to build libraries.
17425 LD=$lt_LD_F77
17426
17427 # Whether we need hard or soft links.
17428 LN_S=$lt_LN_S
17429
17430 # A BSD-compatible nm program.
17431 NM=$lt_NM
17432
17433 # A symbol stripping program
17434 STRIP=$lt_STRIP
17435
17436 # Used to examine libraries when file_magic_cmd begins "file"
17437 MAGIC_CMD=$MAGIC_CMD
17438
17439 # Used on cygwin: DLL creation program.
17440 DLLTOOL="$DLLTOOL"
17441
17442 # Used on cygwin: object dumper.
17443 OBJDUMP="$OBJDUMP"
17444
17445 # Used on cygwin: assembler.
17446 AS="$AS"
17447
17448 # The name of the directory that contains temporary libtool files.
17449 objdir=$objdir
17450
17451 # How to create reloadable object files.
17452 reload_flag=$lt_reload_flag
17453 reload_cmds=$lt_reload_cmds
17454
17455 # How to pass a linker flag through the compiler.
17456 wl=$lt_lt_prog_compiler_wl_F77
17457
17458 # Object file suffix (normally "o").
17459 objext="$ac_objext"
17460
17461 # Old archive suffix (normally "a").
17462 libext="$libext"
17463
17464 # Shared library suffix (normally ".so").
17465 shrext_cmds='$shrext_cmds'
17466
17467 # Executable file suffix (normally "").
17468 exeext="$exeext"
17469
17470 # Additional compiler flags for building library objects.
17471 pic_flag=$lt_lt_prog_compiler_pic_F77
17472 pic_mode=$pic_mode
17473
17474 # What is the maximum length of a command?
17475 max_cmd_len=$lt_cv_sys_max_cmd_len
17476
17477 # Does compiler simultaneously support -c and -o options?
17478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17479
17480 # Must we lock files when doing compilation?
17481 need_locks=$lt_need_locks
17482
17483 # Do we need the lib prefix for modules?
17484 need_lib_prefix=$need_lib_prefix
17485
17486 # Do we need a version for libraries?
17487 need_version=$need_version
17488
17489 # Whether dlopen is supported.
17490 dlopen_support=$enable_dlopen
17491
17492 # Whether dlopen of programs is supported.
17493 dlopen_self=$enable_dlopen_self
17494
17495 # Whether dlopen of statically linked programs is supported.
17496 dlopen_self_static=$enable_dlopen_self_static
17497
17498 # Compiler flag to prevent dynamic linking.
17499 link_static_flag=$lt_lt_prog_compiler_static_F77
17500
17501 # Compiler flag to turn off builtin functions.
17502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17503
17504 # Compiler flag to allow reflexive dlopens.
17505 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17506
17507 # Compiler flag to generate shared objects directly from archives.
17508 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17509
17510 # Compiler flag to generate thread-safe objects.
17511 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17512
17513 # Library versioning type.
17514 version_type=$version_type
17515
17516 # Format of library name prefix.
17517 libname_spec=$lt_libname_spec
17518
17519 # List of archive names. First name is the real one, the rest are links.
17520 # The last name is the one that the linker finds with -lNAME.
17521 library_names_spec=$lt_library_names_spec
17522
17523 # The coded name of the library, if different from the real name.
17524 soname_spec=$lt_soname_spec
17525
17526 # Commands used to build and install an old-style archive.
17527 RANLIB=$lt_RANLIB
17528 old_archive_cmds=$lt_old_archive_cmds_F77
17529 old_postinstall_cmds=$lt_old_postinstall_cmds
17530 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17531
17532 # Create an old-style archive from a shared archive.
17533 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17534
17535 # Create a temporary old-style archive to link instead of a shared archive.
17536 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17537
17538 # Commands used to build and install a shared archive.
17539 archive_cmds=$lt_archive_cmds_F77
17540 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17541 postinstall_cmds=$lt_postinstall_cmds
17542 postuninstall_cmds=$lt_postuninstall_cmds
17543
17544 # Commands used to build a loadable module (assumed same as above if empty)
17545 module_cmds=$lt_module_cmds_F77
17546 module_expsym_cmds=$lt_module_expsym_cmds_F77
17547
17548 # Commands to strip libraries.
17549 old_striplib=$lt_old_striplib
17550 striplib=$lt_striplib
17551
17552 # Dependencies to place before the objects being linked to create a
17553 # shared library.
17554 predep_objects=$lt_predep_objects_F77
17555
17556 # Dependencies to place after the objects being linked to create a
17557 # shared library.
17558 postdep_objects=$lt_postdep_objects_F77
17559
17560 # Dependencies to place before the objects being linked to create a
17561 # shared library.
17562 predeps=$lt_predeps_F77
17563
17564 # Dependencies to place after the objects being linked to create a
17565 # shared library.
17566 postdeps=$lt_postdeps_F77
17567
17568 # The library search path used internally by the compiler when linking
17569 # a shared library.
17570 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17571
17572 # Method to check whether dependent libraries are shared objects.
17573 deplibs_check_method=$lt_deplibs_check_method
17574
17575 # Command to use when deplibs_check_method == file_magic.
17576 file_magic_cmd=$lt_file_magic_cmd
17577
17578 # Flag that allows shared libraries with undefined symbols to be built.
17579 allow_undefined_flag=$lt_allow_undefined_flag_F77
17580
17581 # Flag that forces no undefined symbols.
17582 no_undefined_flag=$lt_no_undefined_flag_F77
17583
17584 # Commands used to finish a libtool library installation in a directory.
17585 finish_cmds=$lt_finish_cmds
17586
17587 # Same as above, but a single script fragment to be evaled but not shown.
17588 finish_eval=$lt_finish_eval
17589
17590 # Take the output of nm and produce a listing of raw symbols and C names.
17591 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17592
17593 # Transform the output of nm in a proper C declaration
17594 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17595
17596 # Transform the output of nm in a C name address pair
17597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17598
17599 # This is the shared library runtime path variable.
17600 runpath_var=$runpath_var
17601
17602 # This is the shared library path variable.
17603 shlibpath_var=$shlibpath_var
17604
17605 # Is shlibpath searched before the hard-coded library search path?
17606 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17607
17608 # How to hardcode a shared library path into an executable.
17609 hardcode_action=$hardcode_action_F77
17610
17611 # Whether we should hardcode library paths into libraries.
17612 hardcode_into_libs=$hardcode_into_libs
17613
17614 # Flag to hardcode \$libdir into a binary during linking.
17615 # This must work even if \$libdir does not exist.
17616 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17617
17618 # If ld is used when linking, flag to hardcode \$libdir into
17619 # a binary during linking. This must work even if \$libdir does
17620 # not exist.
17621 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17622
17623 # Whether we need a single -rpath flag with a separated argument.
17624 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17625
17626 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17627 # resulting binary.
17628 hardcode_direct=$hardcode_direct_F77
17629
17630 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17631 # resulting binary.
17632 hardcode_minus_L=$hardcode_minus_L_F77
17633
17634 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17635 # the resulting binary.
17636 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17637
17638 # Set to yes if building a shared library automatically hardcodes DIR into the library
17639 # and all subsequent libraries and executables linked against it.
17640 hardcode_automatic=$hardcode_automatic_F77
17641
17642 # Variables whose values should be saved in libtool wrapper scripts and
17643 # restored at relink time.
17644 variables_saved_for_relink="$variables_saved_for_relink"
17645
17646 # Whether libtool must link a program against all its dependency libraries.
17647 link_all_deplibs=$link_all_deplibs_F77
17648
17649 # Compile-time system search path for libraries
17650 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17651
17652 # Run-time system search path for libraries
17653 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17654
17655 # Fix the shell variable \$srcfile for the compiler.
17656 fix_srcfile_path=$lt_fix_srcfile_path
17657
17658 # Set to yes if exported symbols are required.
17659 always_export_symbols=$always_export_symbols_F77
17660
17661 # The commands to list exported symbols.
17662 export_symbols_cmds=$lt_export_symbols_cmds_F77
17663
17664 # The commands to extract the exported symbol list from a shared archive.
17665 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17666
17667 # Symbols that should not be listed in the preloaded symbols.
17668 exclude_expsyms=$lt_exclude_expsyms_F77
17669
17670 # Symbols that must always be exported.
17671 include_expsyms=$lt_include_expsyms_F77
17672
17673 # ### END LIBTOOL TAG CONFIG: $tagname
17674
17675 __EOF__
17676
17677
17678 else
17679 # If there is no Makefile yet, we rely on a make rule to execute
17680 # `config.status --recheck' to rerun these tests and create the
17681 # libtool script then.
17682 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17683 if test -f "$ltmain_in"; then
17684 test -f Makefile && make "$ltmain"
17685 fi
17686 fi
17687
17688
17689 ac_ext=c
17690 ac_cpp='$CPP $CPPFLAGS'
17691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17694
17695 CC="$lt_save_CC"
17696
17697 else
17698 tagname=""
17699 fi
17700 ;;
17701
17702 GCJ)
17703 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17704
17705
17706 # Source file extension for Java test sources.
17707 ac_ext=java
17708
17709 # Object file extension for compiled Java test sources.
17710 objext=o
17711 objext_GCJ=$objext
17712
17713 # Code to be used in simple compile tests
17714 lt_simple_compile_test_code="class foo {}"
17715
17716 # Code to be used in simple link tests
17717 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17718
17719 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17720
17721 # If no C compiler was specified, use CC.
17722 LTCC=${LTCC-"$CC"}
17723
17724 # If no C compiler flags were specified, use CFLAGS.
17725 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17726
17727 # Allow CC to be a program name with arguments.
17728 compiler=$CC
17729
17730
17731 # save warnings/boilerplate of simple test code
17732 ac_outfile=conftest.$ac_objext
17733 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17734 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17735 _lt_compiler_boilerplate=`cat conftest.err`
17736 $rm conftest*
17737
17738 ac_outfile=conftest.$ac_objext
17739 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17740 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17741 _lt_linker_boilerplate=`cat conftest.err`
17742 $rm conftest*
17743
17744
17745 # Allow CC to be a program name with arguments.
17746 lt_save_CC="$CC"
17747 CC=${GCJ-"gcj"}
17748 compiler=$CC
17749 compiler_GCJ=$CC
17750 for cc_temp in $compiler""; do
17751 case $cc_temp in
17752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17754 \-*) ;;
17755 *) break;;
17756 esac
17757 done
17758 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17759
17760
17761 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17762 archive_cmds_need_lc_GCJ=no
17763
17764 old_archive_cmds_GCJ=$old_archive_cmds
17765
17766
17767 lt_prog_compiler_no_builtin_flag_GCJ=
17768
17769 if test "$GCC" = yes; then
17770 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17771
17772
17773 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17774 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17775 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 else
17778 lt_cv_prog_compiler_rtti_exceptions=no
17779 ac_outfile=conftest.$ac_objext
17780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17781 lt_compiler_flag="-fno-rtti -fno-exceptions"
17782 # Insert the option either (1) after the last *FLAGS variable, or
17783 # (2) before a word containing "conftest.", or (3) at the end.
17784 # Note that $ac_compile itself does not contain backslashes and begins
17785 # with a dollar sign (not a hyphen), so the echo should work correctly.
17786 # The option is referenced via a variable to avoid confusing sed.
17787 lt_compile=`echo "$ac_compile" | $SED \
17788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17790 -e 's:$: $lt_compiler_flag:'`
17791 (eval echo "\"\$as_me:17792: $lt_compile\"" >&5)
17792 (eval "$lt_compile" 2>conftest.err)
17793 ac_status=$?
17794 cat conftest.err >&5
17795 echo "$as_me:17796: \$? = $ac_status" >&5
17796 if (exit $ac_status) && test -s "$ac_outfile"; then
17797 # The compiler can only warn and ignore the option if not recognized
17798 # So say no if there are warnings other than the usual output.
17799 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17802 lt_cv_prog_compiler_rtti_exceptions=yes
17803 fi
17804 fi
17805 $rm conftest*
17806
17807 fi
17808 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17809 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17810
17811 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17812 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17813 else
17814 :
17815 fi
17816
17817 fi
17818
17819 lt_prog_compiler_wl_GCJ=
17820 lt_prog_compiler_pic_GCJ=
17821 lt_prog_compiler_static_GCJ=
17822
17823 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17824 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17825
17826 if test "$GCC" = yes; then
17827 lt_prog_compiler_wl_GCJ='-Wl,'
17828 lt_prog_compiler_static_GCJ='-static'
17829
17830 case $host_os in
17831 aix*)
17832 # All AIX code is PIC.
17833 if test "$host_cpu" = ia64; then
17834 # AIX 5 now supports IA64 processor
17835 lt_prog_compiler_static_GCJ='-Bstatic'
17836 fi
17837 ;;
17838
17839 amigaos*)
17840 # FIXME: we need at least 68020 code to build shared libraries, but
17841 # adding the `-m68020' flag to GCC prevents building anything better,
17842 # like `-m68040'.
17843 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17844 ;;
17845
17846 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17847 # PIC is the default for these OSes.
17848 ;;
17849
17850 mingw* | cygwin* | pw32* | os2*)
17851 # This hack is so that the source file can tell whether it is being
17852 # built for inclusion in a dll (and should export symbols for example).
17853 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17854 # (--disable-auto-import) libraries
17855 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17856 ;;
17857
17858 darwin* | rhapsody*)
17859 # PIC is the default on this platform
17860 # Common symbols not allowed in MH_DYLIB files
17861 lt_prog_compiler_pic_GCJ='-fno-common'
17862 ;;
17863
17864 interix[3-9]*)
17865 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17866 # Instead, we relocate shared libraries at runtime.
17867 ;;
17868
17869 msdosdjgpp*)
17870 # Just because we use GCC doesn't mean we suddenly get shared libraries
17871 # on systems that don't support them.
17872 lt_prog_compiler_can_build_shared_GCJ=no
17873 enable_shared=no
17874 ;;
17875
17876 sysv4*MP*)
17877 if test -d /usr/nec; then
17878 lt_prog_compiler_pic_GCJ=-Kconform_pic
17879 fi
17880 ;;
17881
17882 hpux*)
17883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17884 # not for PA HP-UX.
17885 case $host_cpu in
17886 hppa*64*|ia64*)
17887 # +Z the default
17888 ;;
17889 *)
17890 lt_prog_compiler_pic_GCJ='-fPIC'
17891 ;;
17892 esac
17893 ;;
17894
17895 *)
17896 lt_prog_compiler_pic_GCJ='-fPIC'
17897 ;;
17898 esac
17899 else
17900 # PORTME Check for flag to pass linker flags through the system compiler.
17901 case $host_os in
17902 aix*)
17903 lt_prog_compiler_wl_GCJ='-Wl,'
17904 if test "$host_cpu" = ia64; then
17905 # AIX 5 now supports IA64 processor
17906 lt_prog_compiler_static_GCJ='-Bstatic'
17907 else
17908 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17909 fi
17910 ;;
17911 darwin*)
17912 # PIC is the default on this platform
17913 # Common symbols not allowed in MH_DYLIB files
17914 case $cc_basename in
17915 xlc*)
17916 lt_prog_compiler_pic_GCJ='-qnocommon'
17917 lt_prog_compiler_wl_GCJ='-Wl,'
17918 ;;
17919 esac
17920 ;;
17921
17922 mingw* | cygwin* | pw32* | os2*)
17923 # This hack is so that the source file can tell whether it is being
17924 # built for inclusion in a dll (and should export symbols for example).
17925 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17926 ;;
17927
17928 hpux9* | hpux10* | hpux11*)
17929 lt_prog_compiler_wl_GCJ='-Wl,'
17930 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17931 # not for PA HP-UX.
17932 case $host_cpu in
17933 hppa*64*|ia64*)
17934 # +Z the default
17935 ;;
17936 *)
17937 lt_prog_compiler_pic_GCJ='+Z'
17938 ;;
17939 esac
17940 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17941 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17942 ;;
17943
17944 irix5* | irix6* | nonstopux*)
17945 lt_prog_compiler_wl_GCJ='-Wl,'
17946 # PIC (with -KPIC) is the default.
17947 lt_prog_compiler_static_GCJ='-non_shared'
17948 ;;
17949
17950 newsos6)
17951 lt_prog_compiler_pic_GCJ='-KPIC'
17952 lt_prog_compiler_static_GCJ='-Bstatic'
17953 ;;
17954
17955 linux* | k*bsd*-gnu)
17956 case $cc_basename in
17957 icc* | ecc*)
17958 lt_prog_compiler_wl_GCJ='-Wl,'
17959 lt_prog_compiler_pic_GCJ='-KPIC'
17960 lt_prog_compiler_static_GCJ='-static'
17961 ;;
17962 pgcc* | pgf77* | pgf90* | pgf95*)
17963 # Portland Group compilers (*not* the Pentium gcc compiler,
17964 # which looks to be a dead project)
17965 lt_prog_compiler_wl_GCJ='-Wl,'
17966 lt_prog_compiler_pic_GCJ='-fpic'
17967 lt_prog_compiler_static_GCJ='-Bstatic'
17968 ;;
17969 ccc*)
17970 lt_prog_compiler_wl_GCJ='-Wl,'
17971 # All Alpha code is PIC.
17972 lt_prog_compiler_static_GCJ='-non_shared'
17973 ;;
17974 *)
17975 case `$CC -V 2>&1 | sed 5q` in
17976 *Sun\ C*)
17977 # Sun C 5.9
17978 lt_prog_compiler_pic_GCJ='-KPIC'
17979 lt_prog_compiler_static_GCJ='-Bstatic'
17980 lt_prog_compiler_wl_GCJ='-Wl,'
17981 ;;
17982 *Sun\ F*)
17983 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17984 lt_prog_compiler_pic_GCJ='-KPIC'
17985 lt_prog_compiler_static_GCJ='-Bstatic'
17986 lt_prog_compiler_wl_GCJ=''
17987 ;;
17988 esac
17989 ;;
17990 esac
17991 ;;
17992
17993 osf3* | osf4* | osf5*)
17994 lt_prog_compiler_wl_GCJ='-Wl,'
17995 # All OSF/1 code is PIC.
17996 lt_prog_compiler_static_GCJ='-non_shared'
17997 ;;
17998
17999 rdos*)
18000 lt_prog_compiler_static_GCJ='-non_shared'
18001 ;;
18002
18003 solaris*)
18004 lt_prog_compiler_pic_GCJ='-KPIC'
18005 lt_prog_compiler_static_GCJ='-Bstatic'
18006 case $cc_basename in
18007 f77* | f90* | f95*)
18008 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18009 *)
18010 lt_prog_compiler_wl_GCJ='-Wl,';;
18011 esac
18012 ;;
18013
18014 sunos4*)
18015 lt_prog_compiler_wl_GCJ='-Qoption ld '
18016 lt_prog_compiler_pic_GCJ='-PIC'
18017 lt_prog_compiler_static_GCJ='-Bstatic'
18018 ;;
18019
18020 sysv4 | sysv4.2uw2* | sysv4.3*)
18021 lt_prog_compiler_wl_GCJ='-Wl,'
18022 lt_prog_compiler_pic_GCJ='-KPIC'
18023 lt_prog_compiler_static_GCJ='-Bstatic'
18024 ;;
18025
18026 sysv4*MP*)
18027 if test -d /usr/nec ;then
18028 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18029 lt_prog_compiler_static_GCJ='-Bstatic'
18030 fi
18031 ;;
18032
18033 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18034 lt_prog_compiler_wl_GCJ='-Wl,'
18035 lt_prog_compiler_pic_GCJ='-KPIC'
18036 lt_prog_compiler_static_GCJ='-Bstatic'
18037 ;;
18038
18039 unicos*)
18040 lt_prog_compiler_wl_GCJ='-Wl,'
18041 lt_prog_compiler_can_build_shared_GCJ=no
18042 ;;
18043
18044 uts4*)
18045 lt_prog_compiler_pic_GCJ='-pic'
18046 lt_prog_compiler_static_GCJ='-Bstatic'
18047 ;;
18048
18049 *)
18050 lt_prog_compiler_can_build_shared_GCJ=no
18051 ;;
18052 esac
18053 fi
18054
18055 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18056 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18057
18058 #
18059 # Check to make sure the PIC flag actually works.
18060 #
18061 if test -n "$lt_prog_compiler_pic_GCJ"; then
18062
18063 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18064 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18065 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 else
18068 lt_prog_compiler_pic_works_GCJ=no
18069 ac_outfile=conftest.$ac_objext
18070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18071 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18072 # Insert the option either (1) after the last *FLAGS variable, or
18073 # (2) before a word containing "conftest.", or (3) at the end.
18074 # Note that $ac_compile itself does not contain backslashes and begins
18075 # with a dollar sign (not a hyphen), so the echo should work correctly.
18076 # The option is referenced via a variable to avoid confusing sed.
18077 lt_compile=`echo "$ac_compile" | $SED \
18078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18080 -e 's:$: $lt_compiler_flag:'`
18081 (eval echo "\"\$as_me:18082: $lt_compile\"" >&5)
18082 (eval "$lt_compile" 2>conftest.err)
18083 ac_status=$?
18084 cat conftest.err >&5
18085 echo "$as_me:18086: \$? = $ac_status" >&5
18086 if (exit $ac_status) && test -s "$ac_outfile"; then
18087 # The compiler can only warn and ignore the option if not recognized
18088 # So say no if there are warnings other than the usual output.
18089 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18092 lt_prog_compiler_pic_works_GCJ=yes
18093 fi
18094 fi
18095 $rm conftest*
18096
18097 fi
18098 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18099 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18100
18101 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18102 case $lt_prog_compiler_pic_GCJ in
18103 "" | " "*) ;;
18104 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18105 esac
18106 else
18107 lt_prog_compiler_pic_GCJ=
18108 lt_prog_compiler_can_build_shared_GCJ=no
18109 fi
18110
18111 fi
18112 case $host_os in
18113 # For platforms which do not support PIC, -DPIC is meaningless:
18114 *djgpp*)
18115 lt_prog_compiler_pic_GCJ=
18116 ;;
18117 *)
18118 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18119 ;;
18120 esac
18121
18122 #
18123 # Check to make sure the static flag actually works.
18124 #
18125 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18126 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18127 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18128 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18130 else
18131 lt_prog_compiler_static_works_GCJ=no
18132 save_LDFLAGS="$LDFLAGS"
18133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18134 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18136 # The linker can only warn and ignore the option if not recognized
18137 # So say no if there are warnings
18138 if test -s conftest.err; then
18139 # Append any errors to the config.log.
18140 cat conftest.err 1>&5
18141 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18143 if diff conftest.exp conftest.er2 >/dev/null; then
18144 lt_prog_compiler_static_works_GCJ=yes
18145 fi
18146 else
18147 lt_prog_compiler_static_works_GCJ=yes
18148 fi
18149 fi
18150 $rm conftest*
18151 LDFLAGS="$save_LDFLAGS"
18152
18153 fi
18154 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18155 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18156
18157 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18158 :
18159 else
18160 lt_prog_compiler_static_GCJ=
18161 fi
18162
18163
18164 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18165 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18166 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 else
18169 lt_cv_prog_compiler_c_o_GCJ=no
18170 $rm -r conftest 2>/dev/null
18171 mkdir conftest
18172 cd conftest
18173 mkdir out
18174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18175
18176 lt_compiler_flag="-o out/conftest2.$ac_objext"
18177 # Insert the option either (1) after the last *FLAGS variable, or
18178 # (2) before a word containing "conftest.", or (3) at the end.
18179 # Note that $ac_compile itself does not contain backslashes and begins
18180 # with a dollar sign (not a hyphen), so the echo should work correctly.
18181 lt_compile=`echo "$ac_compile" | $SED \
18182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18184 -e 's:$: $lt_compiler_flag:'`
18185 (eval echo "\"\$as_me:18186: $lt_compile\"" >&5)
18186 (eval "$lt_compile" 2>out/conftest.err)
18187 ac_status=$?
18188 cat out/conftest.err >&5
18189 echo "$as_me:18190: \$? = $ac_status" >&5
18190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18191 then
18192 # The compiler can only warn and ignore the option if not recognized
18193 # So say no if there are warnings
18194 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18197 lt_cv_prog_compiler_c_o_GCJ=yes
18198 fi
18199 fi
18200 chmod u+w . 2>&5
18201 $rm conftest*
18202 # SGI C++ compiler will create directory out/ii_files/ for
18203 # template instantiation
18204 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18205 $rm out/* && rmdir out
18206 cd ..
18207 rmdir conftest
18208 $rm conftest*
18209
18210 fi
18211 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18212 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18213
18214
18215 hard_links="nottested"
18216 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18217 # do not overwrite the value of need_locks provided by the user
18218 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18219 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18220 hard_links=yes
18221 $rm conftest*
18222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18223 touch conftest.a
18224 ln conftest.a conftest.b 2>&5 || hard_links=no
18225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18226 { echo "$as_me:$LINENO: result: $hard_links" >&5
18227 echo "${ECHO_T}$hard_links" >&6; }
18228 if test "$hard_links" = no; then
18229 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18230 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18231 need_locks=warn
18232 fi
18233 else
18234 need_locks=no
18235 fi
18236
18237 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18239
18240 runpath_var=
18241 allow_undefined_flag_GCJ=
18242 enable_shared_with_static_runtimes_GCJ=no
18243 archive_cmds_GCJ=
18244 archive_expsym_cmds_GCJ=
18245 old_archive_From_new_cmds_GCJ=
18246 old_archive_from_expsyms_cmds_GCJ=
18247 export_dynamic_flag_spec_GCJ=
18248 whole_archive_flag_spec_GCJ=
18249 thread_safe_flag_spec_GCJ=
18250 hardcode_libdir_flag_spec_GCJ=
18251 hardcode_libdir_flag_spec_ld_GCJ=
18252 hardcode_libdir_separator_GCJ=
18253 hardcode_direct_GCJ=no
18254 hardcode_minus_L_GCJ=no
18255 hardcode_shlibpath_var_GCJ=unsupported
18256 link_all_deplibs_GCJ=unknown
18257 hardcode_automatic_GCJ=no
18258 module_cmds_GCJ=
18259 module_expsym_cmds_GCJ=
18260 always_export_symbols_GCJ=no
18261 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18262 # include_expsyms should be a list of space-separated symbols to be *always*
18263 # included in the symbol list
18264 include_expsyms_GCJ=
18265 # exclude_expsyms can be an extended regexp of symbols to exclude
18266 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18267 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18268 # as well as any symbol that contains `d'.
18269 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18270 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18271 # platforms (ab)use it in PIC code, but their linkers get confused if
18272 # the symbol is explicitly referenced. Since portable code cannot
18273 # rely on this symbol name, it's probably fine to never include it in
18274 # preloaded symbol tables.
18275 extract_expsyms_cmds=
18276 # Just being paranoid about ensuring that cc_basename is set.
18277 for cc_temp in $compiler""; do
18278 case $cc_temp in
18279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18281 \-*) ;;
18282 *) break;;
18283 esac
18284 done
18285 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18286
18287 case $host_os in
18288 cygwin* | mingw* | pw32*)
18289 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18290 # When not using gcc, we currently assume that we are using
18291 # Microsoft Visual C++.
18292 if test "$GCC" != yes; then
18293 with_gnu_ld=no
18294 fi
18295 ;;
18296 interix*)
18297 # we just hope/assume this is gcc and not c89 (= MSVC++)
18298 with_gnu_ld=yes
18299 ;;
18300 openbsd*)
18301 with_gnu_ld=no
18302 ;;
18303 esac
18304
18305 ld_shlibs_GCJ=yes
18306 if test "$with_gnu_ld" = yes; then
18307 # If archive_cmds runs LD, not CC, wlarc should be empty
18308 wlarc='${wl}'
18309
18310 # Set some defaults for GNU ld with shared library support. These
18311 # are reset later if shared libraries are not supported. Putting them
18312 # here allows them to be overridden if necessary.
18313 runpath_var=LD_RUN_PATH
18314 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18315 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18316 # ancient GNU ld didn't support --whole-archive et. al.
18317 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18318 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18319 else
18320 whole_archive_flag_spec_GCJ=
18321 fi
18322 supports_anon_versioning=no
18323 case `$LD -v 2>/dev/null` in
18324 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18325 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18326 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18327 *\ 2.11.*) ;; # other 2.11 versions
18328 *) supports_anon_versioning=yes ;;
18329 esac
18330
18331 # See if GNU ld supports shared libraries.
18332 case $host_os in
18333 aix3* | aix4* | aix5*)
18334 # On AIX/PPC, the GNU linker is very broken
18335 if test "$host_cpu" != ia64; then
18336 ld_shlibs_GCJ=no
18337 cat <<EOF 1>&2
18338
18339 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18340 *** to be unable to reliably create shared libraries on AIX.
18341 *** Therefore, libtool is disabling shared libraries support. If you
18342 *** really care for shared libraries, you may want to modify your PATH
18343 *** so that a non-GNU linker is found, and then restart.
18344
18345 EOF
18346 fi
18347 ;;
18348
18349 amigaos*)
18350 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)'
18351 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18352 hardcode_minus_L_GCJ=yes
18353
18354 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18355 # that the semantics of dynamic libraries on AmigaOS, at least up
18356 # to version 4, is to share data among multiple programs linked
18357 # with the same dynamic library. Since this doesn't match the
18358 # behavior of shared libraries on other platforms, we can't use
18359 # them.
18360 ld_shlibs_GCJ=no
18361 ;;
18362
18363 beos*)
18364 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18365 allow_undefined_flag_GCJ=unsupported
18366 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18367 # support --undefined. This deserves some investigation. FIXME
18368 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18369 else
18370 ld_shlibs_GCJ=no
18371 fi
18372 ;;
18373
18374 cygwin* | mingw* | pw32*)
18375 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18376 # as there is no search path for DLLs.
18377 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18378 allow_undefined_flag_GCJ=unsupported
18379 always_export_symbols_GCJ=no
18380 enable_shared_with_static_runtimes_GCJ=yes
18381 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18382
18383 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18384 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18385 # If the export-symbols file already is a .def file (1st line
18386 # is EXPORTS), use it as is; otherwise, prepend...
18387 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18388 cp $export_symbols $output_objdir/$soname.def;
18389 else
18390 echo EXPORTS > $output_objdir/$soname.def;
18391 cat $export_symbols >> $output_objdir/$soname.def;
18392 fi~
18393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18394 else
18395 ld_shlibs_GCJ=no
18396 fi
18397 ;;
18398
18399 interix[3-9]*)
18400 hardcode_direct_GCJ=no
18401 hardcode_shlibpath_var_GCJ=no
18402 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18403 export_dynamic_flag_spec_GCJ='${wl}-E'
18404 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18405 # Instead, shared libraries are loaded at an image base (0x10000000 by
18406 # default) and relocated if they conflict, which is a slow very memory
18407 # consuming and fragmenting process. To avoid this, we pick a random,
18408 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18409 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18410 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'
18411 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'
18412 ;;
18413
18414 gnu* | linux* | k*bsd*-gnu)
18415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18416 tmp_addflag=
18417 case $cc_basename,$host_cpu in
18418 pgcc*) # Portland Group C compiler
18419 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'
18420 tmp_addflag=' $pic_flag'
18421 ;;
18422 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18423 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'
18424 tmp_addflag=' $pic_flag -Mnomain' ;;
18425 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18426 tmp_addflag=' -i_dynamic' ;;
18427 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18428 tmp_addflag=' -i_dynamic -nofor_main' ;;
18429 ifc* | ifort*) # Intel Fortran compiler
18430 tmp_addflag=' -nofor_main' ;;
18431 esac
18432 case `$CC -V 2>&1 | sed 5q` in
18433 *Sun\ C*) # Sun C 5.9
18434 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'
18435 tmp_sharedflag='-G' ;;
18436 *Sun\ F*) # Sun Fortran 8.3
18437 tmp_sharedflag='-G' ;;
18438 *)
18439 tmp_sharedflag='-shared' ;;
18440 esac
18441 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18442
18443 if test $supports_anon_versioning = yes; then
18444 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18446 $echo "local: *; };" >> $output_objdir/$libname.ver~
18447 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18448 fi
18449 link_all_deplibs_GCJ=no
18450 else
18451 ld_shlibs_GCJ=no
18452 fi
18453 ;;
18454
18455 netbsd* | netbsdelf*-gnu)
18456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18457 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18458 wlarc=
18459 else
18460 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18461 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18462 fi
18463 ;;
18464
18465 solaris*)
18466 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18467 ld_shlibs_GCJ=no
18468 cat <<EOF 1>&2
18469
18470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18471 *** create shared libraries on Solaris systems. Therefore, libtool
18472 *** is disabling shared libraries support. We urge you to upgrade GNU
18473 *** binutils to release 2.9.1 or newer. Another option is to modify
18474 *** your PATH or compiler configuration so that the native linker is
18475 *** used, and then restart.
18476
18477 EOF
18478 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18479 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18480 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18481 else
18482 ld_shlibs_GCJ=no
18483 fi
18484 ;;
18485
18486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18487 case `$LD -v 2>&1` in
18488 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18489 ld_shlibs_GCJ=no
18490 cat <<_LT_EOF 1>&2
18491
18492 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18493 *** reliably create shared libraries on SCO systems. Therefore, libtool
18494 *** is disabling shared libraries support. We urge you to upgrade GNU
18495 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18496 *** your PATH or compiler configuration so that the native linker is
18497 *** used, and then restart.
18498
18499 _LT_EOF
18500 ;;
18501 *)
18502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18503 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18504 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18505 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18506 else
18507 ld_shlibs_GCJ=no
18508 fi
18509 ;;
18510 esac
18511 ;;
18512
18513 sunos4*)
18514 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18515 wlarc=
18516 hardcode_direct_GCJ=yes
18517 hardcode_shlibpath_var_GCJ=no
18518 ;;
18519
18520 *)
18521 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18522 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18523 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18524 else
18525 ld_shlibs_GCJ=no
18526 fi
18527 ;;
18528 esac
18529
18530 if test "$ld_shlibs_GCJ" = no; then
18531 runpath_var=
18532 hardcode_libdir_flag_spec_GCJ=
18533 export_dynamic_flag_spec_GCJ=
18534 whole_archive_flag_spec_GCJ=
18535 fi
18536 else
18537 # PORTME fill in a description of your system's linker (not GNU ld)
18538 case $host_os in
18539 aix3*)
18540 allow_undefined_flag_GCJ=unsupported
18541 always_export_symbols_GCJ=yes
18542 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'
18543 # Note: this linker hardcodes the directories in LIBPATH if there
18544 # are no directories specified by -L.
18545 hardcode_minus_L_GCJ=yes
18546 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18547 # Neither direct hardcoding nor static linking is supported with a
18548 # broken collect2.
18549 hardcode_direct_GCJ=unsupported
18550 fi
18551 ;;
18552
18553 aix4* | aix5*)
18554 if test "$host_cpu" = ia64; then
18555 # On IA64, the linker does run time linking by default, so we don't
18556 # have to do anything special.
18557 aix_use_runtimelinking=no
18558 exp_sym_flag='-Bexport'
18559 no_entry_flag=""
18560 else
18561 # If we're using GNU nm, then we don't want the "-C" option.
18562 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18563 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18564 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'
18565 else
18566 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'
18567 fi
18568 aix_use_runtimelinking=no
18569
18570 # Test if we are trying to use run time linking or normal
18571 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18572 # need to do runtime linking.
18573 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18574 for ld_flag in $LDFLAGS; do
18575 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18576 aix_use_runtimelinking=yes
18577 break
18578 fi
18579 done
18580 ;;
18581 esac
18582
18583 exp_sym_flag='-bexport'
18584 no_entry_flag='-bnoentry'
18585 fi
18586
18587 # When large executables or shared objects are built, AIX ld can
18588 # have problems creating the table of contents. If linking a library
18589 # or program results in "error TOC overflow" add -mminimal-toc to
18590 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18591 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18592
18593 archive_cmds_GCJ=''
18594 hardcode_direct_GCJ=yes
18595 hardcode_libdir_separator_GCJ=':'
18596 link_all_deplibs_GCJ=yes
18597
18598 if test "$GCC" = yes; then
18599 case $host_os in aix4.[012]|aix4.[012].*)
18600 # We only want to do this on AIX 4.2 and lower, the check
18601 # below for broken collect2 doesn't work under 4.3+
18602 collect2name=`${CC} -print-prog-name=collect2`
18603 if test -f "$collect2name" && \
18604 strings "$collect2name" | grep resolve_lib_name >/dev/null
18605 then
18606 # We have reworked collect2
18607 :
18608 else
18609 # We have old collect2
18610 hardcode_direct_GCJ=unsupported
18611 # It fails to find uninstalled libraries when the uninstalled
18612 # path is not listed in the libpath. Setting hardcode_minus_L
18613 # to unsupported forces relinking
18614 hardcode_minus_L_GCJ=yes
18615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18616 hardcode_libdir_separator_GCJ=
18617 fi
18618 ;;
18619 esac
18620 shared_flag='-shared'
18621 if test "$aix_use_runtimelinking" = yes; then
18622 shared_flag="$shared_flag "'${wl}-G'
18623 fi
18624 else
18625 # not using gcc
18626 if test "$host_cpu" = ia64; then
18627 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18628 # chokes on -Wl,-G. The following line is correct:
18629 shared_flag='-G'
18630 else
18631 if test "$aix_use_runtimelinking" = yes; then
18632 shared_flag='${wl}-G'
18633 else
18634 shared_flag='${wl}-bM:SRE'
18635 fi
18636 fi
18637 fi
18638
18639 # It seems that -bexpall does not export symbols beginning with
18640 # underscore (_), so it is better to generate a list of symbols to export.
18641 always_export_symbols_GCJ=yes
18642 if test "$aix_use_runtimelinking" = yes; then
18643 # Warning - without using the other runtime loading flags (-brtl),
18644 # -berok will link without error, but may produce a broken library.
18645 allow_undefined_flag_GCJ='-berok'
18646 # Determine the default libpath from the value encoded in an empty executable.
18647 cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h. */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18653
18654 int
18655 main ()
18656 {
18657
18658 ;
18659 return 0;
18660 }
18661 _ACEOF
18662 rm -f conftest.$ac_objext conftest$ac_exeext
18663 if { (ac_try="$ac_link"
18664 case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18667 esac
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_link") 2>conftest.er1
18670 ac_status=$?
18671 grep -v '^ *+' conftest.er1 >conftest.err
18672 rm -f conftest.er1
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } && {
18676 test -z "$ac_c_werror_flag" ||
18677 test ! -s conftest.err
18678 } && test -s conftest$ac_exeext &&
18679 $as_test_x conftest$ac_exeext; then
18680
18681 lt_aix_libpath_sed='
18682 /Import File Strings/,/^$/ {
18683 /^0/ {
18684 s/^0 *\(.*\)$/\1/
18685 p
18686 }
18687 }'
18688 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18689 # Check for a 64-bit object if we didn't find anything.
18690 if test -z "$aix_libpath"; then
18691 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18692 fi
18693 else
18694 echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18696
18697
18698 fi
18699
18700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18701 conftest$ac_exeext conftest.$ac_ext
18702 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18703
18704 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18705 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"
18706 else
18707 if test "$host_cpu" = ia64; then
18708 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18709 allow_undefined_flag_GCJ="-z nodefs"
18710 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"
18711 else
18712 # Determine the default libpath from the value encoded in an empty executable.
18713 cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h. */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18719
18720 int
18721 main ()
18722 {
18723
18724 ;
18725 return 0;
18726 }
18727 _ACEOF
18728 rm -f conftest.$ac_objext conftest$ac_exeext
18729 if { (ac_try="$ac_link"
18730 case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18733 esac
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_link") 2>conftest.er1
18736 ac_status=$?
18737 grep -v '^ *+' conftest.er1 >conftest.err
18738 rm -f conftest.er1
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } && {
18742 test -z "$ac_c_werror_flag" ||
18743 test ! -s conftest.err
18744 } && test -s conftest$ac_exeext &&
18745 $as_test_x conftest$ac_exeext; then
18746
18747 lt_aix_libpath_sed='
18748 /Import File Strings/,/^$/ {
18749 /^0/ {
18750 s/^0 *\(.*\)$/\1/
18751 p
18752 }
18753 }'
18754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18755 # Check for a 64-bit object if we didn't find anything.
18756 if test -z "$aix_libpath"; then
18757 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18758 fi
18759 else
18760 echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18762
18763
18764 fi
18765
18766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18767 conftest$ac_exeext conftest.$ac_ext
18768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18769
18770 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18771 # Warning - without using the other run time loading flags,
18772 # -berok will link without error, but may produce a broken library.
18773 no_undefined_flag_GCJ=' ${wl}-bernotok'
18774 allow_undefined_flag_GCJ=' ${wl}-berok'
18775 # Exported symbols can be pulled into shared objects from archives
18776 whole_archive_flag_spec_GCJ='$convenience'
18777 archive_cmds_need_lc_GCJ=yes
18778 # This is similar to how AIX traditionally builds its shared libraries.
18779 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'
18780 fi
18781 fi
18782 ;;
18783
18784 amigaos*)
18785 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)'
18786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18787 hardcode_minus_L_GCJ=yes
18788 # see comment about different semantics on the GNU ld section
18789 ld_shlibs_GCJ=no
18790 ;;
18791
18792 bsdi[45]*)
18793 export_dynamic_flag_spec_GCJ=-rdynamic
18794 ;;
18795
18796 cygwin* | mingw* | pw32*)
18797 # When not using gcc, we currently assume that we are using
18798 # Microsoft Visual C++.
18799 # hardcode_libdir_flag_spec is actually meaningless, as there is
18800 # no search path for DLLs.
18801 hardcode_libdir_flag_spec_GCJ=' '
18802 allow_undefined_flag_GCJ=unsupported
18803 # Tell ltmain to make .lib files, not .a files.
18804 libext=lib
18805 # Tell ltmain to make .dll files, not .so files.
18806 shrext_cmds=".dll"
18807 # FIXME: Setting linknames here is a bad hack.
18808 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18809 # The linker will automatically build a .lib file if we build a DLL.
18810 old_archive_From_new_cmds_GCJ='true'
18811 # FIXME: Should let the user specify the lib program.
18812 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18813 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18814 enable_shared_with_static_runtimes_GCJ=yes
18815 ;;
18816
18817 darwin* | rhapsody*)
18818 case $host_os in
18819 rhapsody* | darwin1.[012])
18820 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18821 ;;
18822 *) # Darwin 1.3 on
18823 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18824 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18825 else
18826 case ${MACOSX_DEPLOYMENT_TARGET} in
18827 10.[012])
18828 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18829 ;;
18830 10.*)
18831 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18832 ;;
18833 esac
18834 fi
18835 ;;
18836 esac
18837 archive_cmds_need_lc_GCJ=no
18838 hardcode_direct_GCJ=no
18839 hardcode_automatic_GCJ=yes
18840 hardcode_shlibpath_var_GCJ=unsupported
18841 whole_archive_flag_spec_GCJ=''
18842 link_all_deplibs_GCJ=yes
18843 if test "$GCC" = yes ; then
18844 output_verbose_link_cmd='echo'
18845 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18846 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18847 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18848 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18849 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}'
18850 else
18851 case $cc_basename in
18852 xlc*)
18853 output_verbose_link_cmd='echo'
18854 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18855 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18856 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18857 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}'
18858 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}'
18859 ;;
18860 *)
18861 ld_shlibs_GCJ=no
18862 ;;
18863 esac
18864 fi
18865 ;;
18866
18867 dgux*)
18868 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18870 hardcode_shlibpath_var_GCJ=no
18871 ;;
18872
18873 freebsd1*)
18874 ld_shlibs_GCJ=no
18875 ;;
18876
18877 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18878 # support. Future versions do this automatically, but an explicit c++rt0.o
18879 # does not break anything, and helps significantly (at the cost of a little
18880 # extra space).
18881 freebsd2.2*)
18882 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18883 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18884 hardcode_direct_GCJ=yes
18885 hardcode_shlibpath_var_GCJ=no
18886 ;;
18887
18888 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18889 freebsd2*)
18890 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18891 hardcode_direct_GCJ=yes
18892 hardcode_minus_L_GCJ=yes
18893 hardcode_shlibpath_var_GCJ=no
18894 ;;
18895
18896 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18897 freebsd* | dragonfly*)
18898 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18899 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18900 hardcode_direct_GCJ=yes
18901 hardcode_shlibpath_var_GCJ=no
18902 ;;
18903
18904 hpux9*)
18905 if test "$GCC" = yes; then
18906 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'
18907 else
18908 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'
18909 fi
18910 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18911 hardcode_libdir_separator_GCJ=:
18912 hardcode_direct_GCJ=yes
18913
18914 # hardcode_minus_L: Not really in the search PATH,
18915 # but as the default location of the library.
18916 hardcode_minus_L_GCJ=yes
18917 export_dynamic_flag_spec_GCJ='${wl}-E'
18918 ;;
18919
18920 hpux10*)
18921 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18922 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18923 else
18924 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18925 fi
18926 if test "$with_gnu_ld" = no; then
18927 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18928 hardcode_libdir_separator_GCJ=:
18929
18930 hardcode_direct_GCJ=yes
18931 export_dynamic_flag_spec_GCJ='${wl}-E'
18932
18933 # hardcode_minus_L: Not really in the search PATH,
18934 # but as the default location of the library.
18935 hardcode_minus_L_GCJ=yes
18936 fi
18937 ;;
18938
18939 hpux11*)
18940 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18941 case $host_cpu in
18942 hppa*64*)
18943 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18944 ;;
18945 ia64*)
18946 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18947 ;;
18948 *)
18949 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18950 ;;
18951 esac
18952 else
18953 case $host_cpu in
18954 hppa*64*)
18955 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18956 ;;
18957 ia64*)
18958 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18959 ;;
18960 *)
18961 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18962 ;;
18963 esac
18964 fi
18965 if test "$with_gnu_ld" = no; then
18966 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18967 hardcode_libdir_separator_GCJ=:
18968
18969 case $host_cpu in
18970 hppa*64*|ia64*)
18971 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18972 hardcode_direct_GCJ=no
18973 hardcode_shlibpath_var_GCJ=no
18974 ;;
18975 *)
18976 hardcode_direct_GCJ=yes
18977 export_dynamic_flag_spec_GCJ='${wl}-E'
18978
18979 # hardcode_minus_L: Not really in the search PATH,
18980 # but as the default location of the library.
18981 hardcode_minus_L_GCJ=yes
18982 ;;
18983 esac
18984 fi
18985 ;;
18986
18987 irix5* | irix6* | nonstopux*)
18988 if test "$GCC" = yes; then
18989 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'
18990 else
18991 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'
18992 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18993 fi
18994 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18995 hardcode_libdir_separator_GCJ=:
18996 link_all_deplibs_GCJ=yes
18997 ;;
18998
18999 netbsd* | netbsdelf*-gnu)
19000 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19001 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19002 else
19003 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19004 fi
19005 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19006 hardcode_direct_GCJ=yes
19007 hardcode_shlibpath_var_GCJ=no
19008 ;;
19009
19010 newsos6)
19011 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19012 hardcode_direct_GCJ=yes
19013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19014 hardcode_libdir_separator_GCJ=:
19015 hardcode_shlibpath_var_GCJ=no
19016 ;;
19017
19018 openbsd*)
19019 if test -f /usr/libexec/ld.so; then
19020 hardcode_direct_GCJ=yes
19021 hardcode_shlibpath_var_GCJ=no
19022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19023 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19024 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19026 export_dynamic_flag_spec_GCJ='${wl}-E'
19027 else
19028 case $host_os in
19029 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19030 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19031 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19032 ;;
19033 *)
19034 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19035 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19036 ;;
19037 esac
19038 fi
19039 else
19040 ld_shlibs_GCJ=no
19041 fi
19042 ;;
19043
19044 os2*)
19045 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19046 hardcode_minus_L_GCJ=yes
19047 allow_undefined_flag_GCJ=unsupported
19048 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'
19049 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19050 ;;
19051
19052 osf3*)
19053 if test "$GCC" = yes; then
19054 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19055 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'
19056 else
19057 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19058 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'
19059 fi
19060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19061 hardcode_libdir_separator_GCJ=:
19062 ;;
19063
19064 osf4* | osf5*) # as osf3* with the addition of -msym flag
19065 if test "$GCC" = yes; then
19066 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19067 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'
19068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19069 else
19070 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19071 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'
19072 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~
19073 $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'
19074
19075 # Both c and cxx compiler support -rpath directly
19076 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19077 fi
19078 hardcode_libdir_separator_GCJ=:
19079 ;;
19080
19081 solaris*)
19082 no_undefined_flag_GCJ=' -z text'
19083 if test "$GCC" = yes; then
19084 wlarc='${wl}'
19085 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19086 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19087 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19088 else
19089 wlarc=''
19090 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19091 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19092 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19093 fi
19094 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19095 hardcode_shlibpath_var_GCJ=no
19096 case $host_os in
19097 solaris2.[0-5] | solaris2.[0-5].*) ;;
19098 *)
19099 # The compiler driver will combine and reorder linker options,
19100 # but understands `-z linker_flag'. GCC discards it without `$wl',
19101 # but is careful enough not to reorder.
19102 # Supported since Solaris 2.6 (maybe 2.5.1?)
19103 if test "$GCC" = yes; then
19104 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19105 else
19106 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19107 fi
19108 ;;
19109 esac
19110 link_all_deplibs_GCJ=yes
19111 ;;
19112
19113 sunos4*)
19114 if test "x$host_vendor" = xsequent; then
19115 # Use $CC to link under sequent, because it throws in some extra .o
19116 # files that make .init and .fini sections work.
19117 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19118 else
19119 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19120 fi
19121 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19122 hardcode_direct_GCJ=yes
19123 hardcode_minus_L_GCJ=yes
19124 hardcode_shlibpath_var_GCJ=no
19125 ;;
19126
19127 sysv4)
19128 case $host_vendor in
19129 sni)
19130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19131 hardcode_direct_GCJ=yes # is this really true???
19132 ;;
19133 siemens)
19134 ## LD is ld it makes a PLAMLIB
19135 ## CC just makes a GrossModule.
19136 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19137 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19138 hardcode_direct_GCJ=no
19139 ;;
19140 motorola)
19141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19142 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19143 ;;
19144 esac
19145 runpath_var='LD_RUN_PATH'
19146 hardcode_shlibpath_var_GCJ=no
19147 ;;
19148
19149 sysv4.3*)
19150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19151 hardcode_shlibpath_var_GCJ=no
19152 export_dynamic_flag_spec_GCJ='-Bexport'
19153 ;;
19154
19155 sysv4*MP*)
19156 if test -d /usr/nec; then
19157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19158 hardcode_shlibpath_var_GCJ=no
19159 runpath_var=LD_RUN_PATH
19160 hardcode_runpath_var=yes
19161 ld_shlibs_GCJ=yes
19162 fi
19163 ;;
19164
19165 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19166 no_undefined_flag_GCJ='${wl}-z,text'
19167 archive_cmds_need_lc_GCJ=no
19168 hardcode_shlibpath_var_GCJ=no
19169 runpath_var='LD_RUN_PATH'
19170
19171 if test "$GCC" = yes; then
19172 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19173 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19174 else
19175 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19176 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19177 fi
19178 ;;
19179
19180 sysv5* | sco3.2v5* | sco5v6*)
19181 # Note: We can NOT use -z defs as we might desire, because we do not
19182 # link with -lc, and that would cause any symbols used from libc to
19183 # always be unresolved, which means just about no library would
19184 # ever link correctly. If we're not using GNU ld we use -z text
19185 # though, which does catch some bad symbols but isn't as heavy-handed
19186 # as -z defs.
19187 no_undefined_flag_GCJ='${wl}-z,text'
19188 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19189 archive_cmds_need_lc_GCJ=no
19190 hardcode_shlibpath_var_GCJ=no
19191 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19192 hardcode_libdir_separator_GCJ=':'
19193 link_all_deplibs_GCJ=yes
19194 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19195 runpath_var='LD_RUN_PATH'
19196
19197 if test "$GCC" = yes; then
19198 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19199 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19200 else
19201 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19202 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19203 fi
19204 ;;
19205
19206 uts4*)
19207 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19208 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19209 hardcode_shlibpath_var_GCJ=no
19210 ;;
19211
19212 *)
19213 ld_shlibs_GCJ=no
19214 ;;
19215 esac
19216 fi
19217
19218 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19219 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19220 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19221
19222 #
19223 # Do we need to explicitly link libc?
19224 #
19225 case "x$archive_cmds_need_lc_GCJ" in
19226 x|xyes)
19227 # Assume -lc should be added
19228 archive_cmds_need_lc_GCJ=yes
19229
19230 if test "$enable_shared" = yes && test "$GCC" = yes; then
19231 case $archive_cmds_GCJ in
19232 *'~'*)
19233 # FIXME: we may have to deal with multi-command sequences.
19234 ;;
19235 '$CC '*)
19236 # Test whether the compiler implicitly links with -lc since on some
19237 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19238 # to ld, don't add -lc before -lgcc.
19239 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19240 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19241 $rm conftest*
19242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19243
19244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19245 (eval $ac_compile) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } 2>conftest.err; then
19249 soname=conftest
19250 lib=conftest
19251 libobjs=conftest.$ac_objext
19252 deplibs=
19253 wl=$lt_prog_compiler_wl_GCJ
19254 pic_flag=$lt_prog_compiler_pic_GCJ
19255 compiler_flags=-v
19256 linker_flags=-v
19257 verstring=
19258 output_objdir=.
19259 libname=conftest
19260 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19261 allow_undefined_flag_GCJ=
19262 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19263 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }
19267 then
19268 archive_cmds_need_lc_GCJ=no
19269 else
19270 archive_cmds_need_lc_GCJ=yes
19271 fi
19272 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19273 else
19274 cat conftest.err 1>&5
19275 fi
19276 $rm conftest*
19277 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19278 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19279 ;;
19280 esac
19281 fi
19282 ;;
19283 esac
19284
19285 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19286 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19287 library_names_spec=
19288 libname_spec='lib$name'
19289 soname_spec=
19290 shrext_cmds=".so"
19291 postinstall_cmds=
19292 postuninstall_cmds=
19293 finish_cmds=
19294 finish_eval=
19295 shlibpath_var=
19296 shlibpath_overrides_runpath=unknown
19297 version_type=none
19298 dynamic_linker="$host_os ld.so"
19299 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19300
19301 need_lib_prefix=unknown
19302 hardcode_into_libs=no
19303
19304 # when you set need_version to no, make sure it does not cause -set_version
19305 # flags to be left without arguments
19306 need_version=unknown
19307
19308 case $host_os in
19309 aix3*)
19310 version_type=linux
19311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19312 shlibpath_var=LIBPATH
19313
19314 # AIX 3 has no versioning support, so we append a major version to the name.
19315 soname_spec='${libname}${release}${shared_ext}$major'
19316 ;;
19317
19318 aix4* | aix5*)
19319 version_type=linux
19320 need_lib_prefix=no
19321 need_version=no
19322 hardcode_into_libs=yes
19323 if test "$host_cpu" = ia64; then
19324 # AIX 5 supports IA64
19325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19326 shlibpath_var=LD_LIBRARY_PATH
19327 else
19328 # With GCC up to 2.95.x, collect2 would create an import file
19329 # for dependence libraries. The import file would start with
19330 # the line `#! .'. This would cause the generated library to
19331 # depend on `.', always an invalid library. This was fixed in
19332 # development snapshots of GCC prior to 3.0.
19333 case $host_os in
19334 aix4 | aix4.[01] | aix4.[01].*)
19335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19336 echo ' yes '
19337 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19338 :
19339 else
19340 can_build_shared=no
19341 fi
19342 ;;
19343 esac
19344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19345 # soname into executable. Probably we can add versioning support to
19346 # collect2, so additional links can be useful in future.
19347 if test "$aix_use_runtimelinking" = yes; then
19348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19349 # instead of lib<name>.a to let people know that these are not
19350 # typical AIX shared libraries.
19351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19352 else
19353 # We preserve .a as extension for shared libraries through AIX4.2
19354 # and later when we are not doing run time linking.
19355 library_names_spec='${libname}${release}.a $libname.a'
19356 soname_spec='${libname}${release}${shared_ext}$major'
19357 fi
19358 shlibpath_var=LIBPATH
19359 fi
19360 ;;
19361
19362 amigaos*)
19363 library_names_spec='$libname.ixlibrary $libname.a'
19364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19365 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'
19366 ;;
19367
19368 beos*)
19369 library_names_spec='${libname}${shared_ext}'
19370 dynamic_linker="$host_os ld.so"
19371 shlibpath_var=LIBRARY_PATH
19372 ;;
19373
19374 bsdi[45]*)
19375 version_type=linux
19376 need_version=no
19377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19378 soname_spec='${libname}${release}${shared_ext}$major'
19379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19380 shlibpath_var=LD_LIBRARY_PATH
19381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19383 # the default ld.so.conf also contains /usr/contrib/lib and
19384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19385 # libtool to hard-code these into programs
19386 ;;
19387
19388 cygwin* | mingw* | pw32*)
19389 version_type=windows
19390 shrext_cmds=".dll"
19391 need_version=no
19392 need_lib_prefix=no
19393
19394 case $GCC,$host_os in
19395 yes,cygwin* | yes,mingw* | yes,pw32*)
19396 library_names_spec='$libname.dll.a'
19397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19398 postinstall_cmds='base_file=`basename \${file}`~
19399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19400 dldir=$destdir/`dirname \$dlpath`~
19401 test -d \$dldir || mkdir -p \$dldir~
19402 $install_prog $dir/$dlname \$dldir/$dlname~
19403 chmod a+x \$dldir/$dlname'
19404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19405 dlpath=$dir/\$dldll~
19406 $rm \$dlpath'
19407 shlibpath_overrides_runpath=yes
19408
19409 case $host_os in
19410 cygwin*)
19411 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19412 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19413 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19414 ;;
19415 mingw*)
19416 # MinGW DLLs use traditional 'lib' prefix
19417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19418 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19419 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19420 # It is most probably a Windows format PATH printed by
19421 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19422 # path with ; separators, and with drive letters. We can handle the
19423 # drive letters (cygwin fileutils understands them), so leave them,
19424 # especially as we might pass files found there to a mingw objdump,
19425 # which wouldn't understand a cygwinified path. Ahh.
19426 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19427 else
19428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19429 fi
19430 ;;
19431 pw32*)
19432 # pw32 DLLs use 'pw' prefix rather than 'lib'
19433 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19434 ;;
19435 esac
19436 ;;
19437
19438 *)
19439 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19440 ;;
19441 esac
19442 dynamic_linker='Win32 ld.exe'
19443 # FIXME: first we should search . and the directory the executable is in
19444 shlibpath_var=PATH
19445 ;;
19446
19447 darwin* | rhapsody*)
19448 dynamic_linker="$host_os dyld"
19449 version_type=darwin
19450 need_lib_prefix=no
19451 need_version=no
19452 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19453 soname_spec='${libname}${release}${major}$shared_ext'
19454 shlibpath_overrides_runpath=yes
19455 shlibpath_var=DYLD_LIBRARY_PATH
19456 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19457
19458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19459 ;;
19460
19461 dgux*)
19462 version_type=linux
19463 need_lib_prefix=no
19464 need_version=no
19465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19466 soname_spec='${libname}${release}${shared_ext}$major'
19467 shlibpath_var=LD_LIBRARY_PATH
19468 ;;
19469
19470 freebsd1*)
19471 dynamic_linker=no
19472 ;;
19473
19474 freebsd* | dragonfly*)
19475 # DragonFly does not have aout. When/if they implement a new
19476 # versioning mechanism, adjust this.
19477 if test -x /usr/bin/objformat; then
19478 objformat=`/usr/bin/objformat`
19479 else
19480 case $host_os in
19481 freebsd[123]*) objformat=aout ;;
19482 *) objformat=elf ;;
19483 esac
19484 fi
19485 version_type=freebsd-$objformat
19486 case $version_type in
19487 freebsd-elf*)
19488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19489 need_version=no
19490 need_lib_prefix=no
19491 ;;
19492 freebsd-*)
19493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19494 need_version=yes
19495 ;;
19496 esac
19497 shlibpath_var=LD_LIBRARY_PATH
19498 case $host_os in
19499 freebsd2*)
19500 shlibpath_overrides_runpath=yes
19501 ;;
19502 freebsd3.[01]* | freebsdelf3.[01]*)
19503 shlibpath_overrides_runpath=yes
19504 hardcode_into_libs=yes
19505 ;;
19506 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19507 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19508 shlibpath_overrides_runpath=no
19509 hardcode_into_libs=yes
19510 ;;
19511 *) # from 4.6 on, and DragonFly
19512 shlibpath_overrides_runpath=yes
19513 hardcode_into_libs=yes
19514 ;;
19515 esac
19516 ;;
19517
19518 gnu*)
19519 version_type=linux
19520 need_lib_prefix=no
19521 need_version=no
19522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19523 soname_spec='${libname}${release}${shared_ext}$major'
19524 shlibpath_var=LD_LIBRARY_PATH
19525 hardcode_into_libs=yes
19526 ;;
19527
19528 hpux9* | hpux10* | hpux11*)
19529 # Give a soname corresponding to the major version so that dld.sl refuses to
19530 # link against other versions.
19531 version_type=sunos
19532 need_lib_prefix=no
19533 need_version=no
19534 case $host_cpu in
19535 ia64*)
19536 shrext_cmds='.so'
19537 hardcode_into_libs=yes
19538 dynamic_linker="$host_os dld.so"
19539 shlibpath_var=LD_LIBRARY_PATH
19540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19542 soname_spec='${libname}${release}${shared_ext}$major'
19543 if test "X$HPUX_IA64_MODE" = X32; then
19544 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19545 else
19546 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19547 fi
19548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19549 ;;
19550 hppa*64*)
19551 shrext_cmds='.sl'
19552 hardcode_into_libs=yes
19553 dynamic_linker="$host_os dld.sl"
19554 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19557 soname_spec='${libname}${release}${shared_ext}$major'
19558 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19560 ;;
19561 *)
19562 shrext_cmds='.sl'
19563 dynamic_linker="$host_os dld.sl"
19564 shlibpath_var=SHLIB_PATH
19565 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19567 soname_spec='${libname}${release}${shared_ext}$major'
19568 ;;
19569 esac
19570 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19571 postinstall_cmds='chmod 555 $lib'
19572 ;;
19573
19574 interix[3-9]*)
19575 version_type=linux
19576 need_lib_prefix=no
19577 need_version=no
19578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19579 soname_spec='${libname}${release}${shared_ext}$major'
19580 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19581 shlibpath_var=LD_LIBRARY_PATH
19582 shlibpath_overrides_runpath=no
19583 hardcode_into_libs=yes
19584 ;;
19585
19586 irix5* | irix6* | nonstopux*)
19587 case $host_os in
19588 nonstopux*) version_type=nonstopux ;;
19589 *)
19590 if test "$lt_cv_prog_gnu_ld" = yes; then
19591 version_type=linux
19592 else
19593 version_type=irix
19594 fi ;;
19595 esac
19596 need_lib_prefix=no
19597 need_version=no
19598 soname_spec='${libname}${release}${shared_ext}$major'
19599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19600 case $host_os in
19601 irix5* | nonstopux*)
19602 libsuff= shlibsuff=
19603 ;;
19604 *)
19605 case $LD in # libtool.m4 will add one of these switches to LD
19606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19607 libsuff= shlibsuff= libmagic=32-bit;;
19608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19609 libsuff=32 shlibsuff=N32 libmagic=N32;;
19610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19612 *) libsuff= shlibsuff= libmagic=never-match;;
19613 esac
19614 ;;
19615 esac
19616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19617 shlibpath_overrides_runpath=no
19618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19620 hardcode_into_libs=yes
19621 ;;
19622
19623 # No shared lib support for Linux oldld, aout, or coff.
19624 linux*oldld* | linux*aout* | linux*coff*)
19625 dynamic_linker=no
19626 ;;
19627
19628 # This must be Linux ELF.
19629 linux* | k*bsd*-gnu)
19630 version_type=linux
19631 need_lib_prefix=no
19632 need_version=no
19633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19634 soname_spec='${libname}${release}${shared_ext}$major'
19635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19636 shlibpath_var=LD_LIBRARY_PATH
19637 shlibpath_overrides_runpath=no
19638 # This implies no fast_install, which is unacceptable.
19639 # Some rework will be needed to allow for fast_install
19640 # before this can be enabled.
19641 hardcode_into_libs=yes
19642
19643 # Append ld.so.conf contents to the search path
19644 if test -f /etc/ld.so.conf; then
19645 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' ' '`
19646 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19647 fi
19648
19649 # We used to test for /lib/ld.so.1 and disable shared libraries on
19650 # powerpc, because MkLinux only supported shared libraries with the
19651 # GNU dynamic linker. Since this was broken with cross compilers,
19652 # most powerpc-linux boxes support dynamic linking these days and
19653 # people can always --disable-shared, the test was removed, and we
19654 # assume the GNU/Linux dynamic linker is in use.
19655 dynamic_linker='GNU/Linux ld.so'
19656 ;;
19657
19658 netbsdelf*-gnu)
19659 version_type=linux
19660 need_lib_prefix=no
19661 need_version=no
19662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19663 soname_spec='${libname}${release}${shared_ext}$major'
19664 shlibpath_var=LD_LIBRARY_PATH
19665 shlibpath_overrides_runpath=no
19666 hardcode_into_libs=yes
19667 dynamic_linker='NetBSD ld.elf_so'
19668 ;;
19669
19670 netbsd*)
19671 version_type=sunos
19672 need_lib_prefix=no
19673 need_version=no
19674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19677 dynamic_linker='NetBSD (a.out) ld.so'
19678 else
19679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19680 soname_spec='${libname}${release}${shared_ext}$major'
19681 dynamic_linker='NetBSD ld.elf_so'
19682 fi
19683 shlibpath_var=LD_LIBRARY_PATH
19684 shlibpath_overrides_runpath=yes
19685 hardcode_into_libs=yes
19686 ;;
19687
19688 newsos6)
19689 version_type=linux
19690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19691 shlibpath_var=LD_LIBRARY_PATH
19692 shlibpath_overrides_runpath=yes
19693 ;;
19694
19695 nto-qnx*)
19696 version_type=linux
19697 need_lib_prefix=no
19698 need_version=no
19699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19700 soname_spec='${libname}${release}${shared_ext}$major'
19701 shlibpath_var=LD_LIBRARY_PATH
19702 shlibpath_overrides_runpath=yes
19703 ;;
19704
19705 openbsd*)
19706 version_type=sunos
19707 sys_lib_dlsearch_path_spec="/usr/lib"
19708 need_lib_prefix=no
19709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19710 case $host_os in
19711 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19712 *) need_version=no ;;
19713 esac
19714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19716 shlibpath_var=LD_LIBRARY_PATH
19717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19718 case $host_os in
19719 openbsd2.[89] | openbsd2.[89].*)
19720 shlibpath_overrides_runpath=no
19721 ;;
19722 *)
19723 shlibpath_overrides_runpath=yes
19724 ;;
19725 esac
19726 else
19727 shlibpath_overrides_runpath=yes
19728 fi
19729 ;;
19730
19731 os2*)
19732 libname_spec='$name'
19733 shrext_cmds=".dll"
19734 need_lib_prefix=no
19735 library_names_spec='$libname${shared_ext} $libname.a'
19736 dynamic_linker='OS/2 ld.exe'
19737 shlibpath_var=LIBPATH
19738 ;;
19739
19740 osf3* | osf4* | osf5*)
19741 version_type=osf
19742 need_lib_prefix=no
19743 need_version=no
19744 soname_spec='${libname}${release}${shared_ext}$major'
19745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19746 shlibpath_var=LD_LIBRARY_PATH
19747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19748 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19749 ;;
19750
19751 rdos*)
19752 dynamic_linker=no
19753 ;;
19754
19755 solaris*)
19756 version_type=linux
19757 need_lib_prefix=no
19758 need_version=no
19759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19760 soname_spec='${libname}${release}${shared_ext}$major'
19761 shlibpath_var=LD_LIBRARY_PATH
19762 shlibpath_overrides_runpath=yes
19763 hardcode_into_libs=yes
19764 # ldd complains unless libraries are executable
19765 postinstall_cmds='chmod +x $lib'
19766 ;;
19767
19768 sunos4*)
19769 version_type=sunos
19770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19771 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19772 shlibpath_var=LD_LIBRARY_PATH
19773 shlibpath_overrides_runpath=yes
19774 if test "$with_gnu_ld" = yes; then
19775 need_lib_prefix=no
19776 fi
19777 need_version=yes
19778 ;;
19779
19780 sysv4 | sysv4.3*)
19781 version_type=linux
19782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19783 soname_spec='${libname}${release}${shared_ext}$major'
19784 shlibpath_var=LD_LIBRARY_PATH
19785 case $host_vendor in
19786 sni)
19787 shlibpath_overrides_runpath=no
19788 need_lib_prefix=no
19789 export_dynamic_flag_spec='${wl}-Blargedynsym'
19790 runpath_var=LD_RUN_PATH
19791 ;;
19792 siemens)
19793 need_lib_prefix=no
19794 ;;
19795 motorola)
19796 need_lib_prefix=no
19797 need_version=no
19798 shlibpath_overrides_runpath=no
19799 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19800 ;;
19801 esac
19802 ;;
19803
19804 sysv4*MP*)
19805 if test -d /usr/nec ;then
19806 version_type=linux
19807 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19808 soname_spec='$libname${shared_ext}.$major'
19809 shlibpath_var=LD_LIBRARY_PATH
19810 fi
19811 ;;
19812
19813 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19814 version_type=freebsd-elf
19815 need_lib_prefix=no
19816 need_version=no
19817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19818 soname_spec='${libname}${release}${shared_ext}$major'
19819 shlibpath_var=LD_LIBRARY_PATH
19820 hardcode_into_libs=yes
19821 if test "$with_gnu_ld" = yes; then
19822 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19823 shlibpath_overrides_runpath=no
19824 else
19825 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19826 shlibpath_overrides_runpath=yes
19827 case $host_os in
19828 sco3.2v5*)
19829 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19830 ;;
19831 esac
19832 fi
19833 sys_lib_dlsearch_path_spec='/usr/lib'
19834 ;;
19835
19836 uts4*)
19837 version_type=linux
19838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19839 soname_spec='${libname}${release}${shared_ext}$major'
19840 shlibpath_var=LD_LIBRARY_PATH
19841 ;;
19842
19843 *)
19844 dynamic_linker=no
19845 ;;
19846 esac
19847 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19848 echo "${ECHO_T}$dynamic_linker" >&6; }
19849 test "$dynamic_linker" = no && can_build_shared=no
19850
19851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19852 if test "$GCC" = yes; then
19853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19854 fi
19855
19856 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19857 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19858 hardcode_action_GCJ=
19859 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19860 test -n "$runpath_var_GCJ" || \
19861 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19862
19863 # We can hardcode non-existant directories.
19864 if test "$hardcode_direct_GCJ" != no &&
19865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19866 # have to relink, otherwise we might link with an installed library
19867 # when we should be linking with a yet-to-be-installed one
19868 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19869 test "$hardcode_minus_L_GCJ" != no; then
19870 # Linking always hardcodes the temporary library directory.
19871 hardcode_action_GCJ=relink
19872 else
19873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19874 hardcode_action_GCJ=immediate
19875 fi
19876 else
19877 # We cannot hardcode anything, or else we can only hardcode existing
19878 # directories.
19879 hardcode_action_GCJ=unsupported
19880 fi
19881 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19882 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19883
19884 if test "$hardcode_action_GCJ" = relink; then
19885 # Fast installation is not supported
19886 enable_fast_install=no
19887 elif test "$shlibpath_overrides_runpath" = yes ||
19888 test "$enable_shared" = no; then
19889 # Fast installation is not necessary
19890 enable_fast_install=needless
19891 fi
19892
19893
19894 # The else clause should only fire when bootstrapping the
19895 # libtool distribution, otherwise you forgot to ship ltmain.sh
19896 # with your package, and you will get complaints that there are
19897 # no rules to generate ltmain.sh.
19898 if test -f "$ltmain"; then
19899 # See if we are running on zsh, and set the options which allow our commands through
19900 # without removal of \ escapes.
19901 if test -n "${ZSH_VERSION+set}" ; then
19902 setopt NO_GLOB_SUBST
19903 fi
19904 # Now quote all the things that may contain metacharacters while being
19905 # careful not to overquote the AC_SUBSTed values. We take copies of the
19906 # variables and quote the copies for generation of the libtool script.
19907 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19908 SED SHELL STRIP \
19909 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19910 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19911 deplibs_check_method reload_flag reload_cmds need_locks \
19912 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19913 lt_cv_sys_global_symbol_to_c_name_address \
19914 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19915 old_postinstall_cmds old_postuninstall_cmds \
19916 compiler_GCJ \
19917 CC_GCJ \
19918 LD_GCJ \
19919 lt_prog_compiler_wl_GCJ \
19920 lt_prog_compiler_pic_GCJ \
19921 lt_prog_compiler_static_GCJ \
19922 lt_prog_compiler_no_builtin_flag_GCJ \
19923 export_dynamic_flag_spec_GCJ \
19924 thread_safe_flag_spec_GCJ \
19925 whole_archive_flag_spec_GCJ \
19926 enable_shared_with_static_runtimes_GCJ \
19927 old_archive_cmds_GCJ \
19928 old_archive_from_new_cmds_GCJ \
19929 predep_objects_GCJ \
19930 postdep_objects_GCJ \
19931 predeps_GCJ \
19932 postdeps_GCJ \
19933 compiler_lib_search_path_GCJ \
19934 archive_cmds_GCJ \
19935 archive_expsym_cmds_GCJ \
19936 postinstall_cmds_GCJ \
19937 postuninstall_cmds_GCJ \
19938 old_archive_from_expsyms_cmds_GCJ \
19939 allow_undefined_flag_GCJ \
19940 no_undefined_flag_GCJ \
19941 export_symbols_cmds_GCJ \
19942 hardcode_libdir_flag_spec_GCJ \
19943 hardcode_libdir_flag_spec_ld_GCJ \
19944 hardcode_libdir_separator_GCJ \
19945 hardcode_automatic_GCJ \
19946 module_cmds_GCJ \
19947 module_expsym_cmds_GCJ \
19948 lt_cv_prog_compiler_c_o_GCJ \
19949 fix_srcfile_path_GCJ \
19950 exclude_expsyms_GCJ \
19951 include_expsyms_GCJ; do
19952
19953 case $var in
19954 old_archive_cmds_GCJ | \
19955 old_archive_from_new_cmds_GCJ | \
19956 archive_cmds_GCJ | \
19957 archive_expsym_cmds_GCJ | \
19958 module_cmds_GCJ | \
19959 module_expsym_cmds_GCJ | \
19960 old_archive_from_expsyms_cmds_GCJ | \
19961 export_symbols_cmds_GCJ | \
19962 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19963 postinstall_cmds | postuninstall_cmds | \
19964 old_postinstall_cmds | old_postuninstall_cmds | \
19965 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19966 # Double-quote double-evaled strings.
19967 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19968 ;;
19969 *)
19970 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19971 ;;
19972 esac
19973 done
19974
19975 case $lt_echo in
19976 *'\$0 --fallback-echo"')
19977 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19978 ;;
19979 esac
19980
19981 cfgfile="$ofile"
19982
19983 cat <<__EOF__ >> "$cfgfile"
19984 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19985
19986 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19987
19988 # Shell to use when invoking shell scripts.
19989 SHELL=$lt_SHELL
19990
19991 # Whether or not to build shared libraries.
19992 build_libtool_libs=$enable_shared
19993
19994 # Whether or not to build static libraries.
19995 build_old_libs=$enable_static
19996
19997 # Whether or not to add -lc for building shared libraries.
19998 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19999
20000 # Whether or not to disallow shared libs when runtime libs are static
20001 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20002
20003 # Whether or not to optimize for fast installation.
20004 fast_install=$enable_fast_install
20005
20006 # The host system.
20007 host_alias=$host_alias
20008 host=$host
20009 host_os=$host_os
20010
20011 # The build system.
20012 build_alias=$build_alias
20013 build=$build
20014 build_os=$build_os
20015
20016 # An echo program that does not interpret backslashes.
20017 echo=$lt_echo
20018
20019 # The archiver.
20020 AR=$lt_AR
20021 AR_FLAGS=$lt_AR_FLAGS
20022
20023 # A C compiler.
20024 LTCC=$lt_LTCC
20025
20026 # LTCC compiler flags.
20027 LTCFLAGS=$lt_LTCFLAGS
20028
20029 # A language-specific compiler.
20030 CC=$lt_compiler_GCJ
20031
20032 # Is the compiler the GNU C compiler?
20033 with_gcc=$GCC_GCJ
20034
20035 # An ERE matcher.
20036 EGREP=$lt_EGREP
20037
20038 # The linker used to build libraries.
20039 LD=$lt_LD_GCJ
20040
20041 # Whether we need hard or soft links.
20042 LN_S=$lt_LN_S
20043
20044 # A BSD-compatible nm program.
20045 NM=$lt_NM
20046
20047 # A symbol stripping program
20048 STRIP=$lt_STRIP
20049
20050 # Used to examine libraries when file_magic_cmd begins "file"
20051 MAGIC_CMD=$MAGIC_CMD
20052
20053 # Used on cygwin: DLL creation program.
20054 DLLTOOL="$DLLTOOL"
20055
20056 # Used on cygwin: object dumper.
20057 OBJDUMP="$OBJDUMP"
20058
20059 # Used on cygwin: assembler.
20060 AS="$AS"
20061
20062 # The name of the directory that contains temporary libtool files.
20063 objdir=$objdir
20064
20065 # How to create reloadable object files.
20066 reload_flag=$lt_reload_flag
20067 reload_cmds=$lt_reload_cmds
20068
20069 # How to pass a linker flag through the compiler.
20070 wl=$lt_lt_prog_compiler_wl_GCJ
20071
20072 # Object file suffix (normally "o").
20073 objext="$ac_objext"
20074
20075 # Old archive suffix (normally "a").
20076 libext="$libext"
20077
20078 # Shared library suffix (normally ".so").
20079 shrext_cmds='$shrext_cmds'
20080
20081 # Executable file suffix (normally "").
20082 exeext="$exeext"
20083
20084 # Additional compiler flags for building library objects.
20085 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20086 pic_mode=$pic_mode
20087
20088 # What is the maximum length of a command?
20089 max_cmd_len=$lt_cv_sys_max_cmd_len
20090
20091 # Does compiler simultaneously support -c and -o options?
20092 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20093
20094 # Must we lock files when doing compilation?
20095 need_locks=$lt_need_locks
20096
20097 # Do we need the lib prefix for modules?
20098 need_lib_prefix=$need_lib_prefix
20099
20100 # Do we need a version for libraries?
20101 need_version=$need_version
20102
20103 # Whether dlopen is supported.
20104 dlopen_support=$enable_dlopen
20105
20106 # Whether dlopen of programs is supported.
20107 dlopen_self=$enable_dlopen_self
20108
20109 # Whether dlopen of statically linked programs is supported.
20110 dlopen_self_static=$enable_dlopen_self_static
20111
20112 # Compiler flag to prevent dynamic linking.
20113 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20114
20115 # Compiler flag to turn off builtin functions.
20116 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20117
20118 # Compiler flag to allow reflexive dlopens.
20119 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20120
20121 # Compiler flag to generate shared objects directly from archives.
20122 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20123
20124 # Compiler flag to generate thread-safe objects.
20125 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20126
20127 # Library versioning type.
20128 version_type=$version_type
20129
20130 # Format of library name prefix.
20131 libname_spec=$lt_libname_spec
20132
20133 # List of archive names. First name is the real one, the rest are links.
20134 # The last name is the one that the linker finds with -lNAME.
20135 library_names_spec=$lt_library_names_spec
20136
20137 # The coded name of the library, if different from the real name.
20138 soname_spec=$lt_soname_spec
20139
20140 # Commands used to build and install an old-style archive.
20141 RANLIB=$lt_RANLIB
20142 old_archive_cmds=$lt_old_archive_cmds_GCJ
20143 old_postinstall_cmds=$lt_old_postinstall_cmds
20144 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20145
20146 # Create an old-style archive from a shared archive.
20147 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20148
20149 # Create a temporary old-style archive to link instead of a shared archive.
20150 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20151
20152 # Commands used to build and install a shared archive.
20153 archive_cmds=$lt_archive_cmds_GCJ
20154 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20155 postinstall_cmds=$lt_postinstall_cmds
20156 postuninstall_cmds=$lt_postuninstall_cmds
20157
20158 # Commands used to build a loadable module (assumed same as above if empty)
20159 module_cmds=$lt_module_cmds_GCJ
20160 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20161
20162 # Commands to strip libraries.
20163 old_striplib=$lt_old_striplib
20164 striplib=$lt_striplib
20165
20166 # Dependencies to place before the objects being linked to create a
20167 # shared library.
20168 predep_objects=$lt_predep_objects_GCJ
20169
20170 # Dependencies to place after the objects being linked to create a
20171 # shared library.
20172 postdep_objects=$lt_postdep_objects_GCJ
20173
20174 # Dependencies to place before the objects being linked to create a
20175 # shared library.
20176 predeps=$lt_predeps_GCJ
20177
20178 # Dependencies to place after the objects being linked to create a
20179 # shared library.
20180 postdeps=$lt_postdeps_GCJ
20181
20182 # The library search path used internally by the compiler when linking
20183 # a shared library.
20184 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20185
20186 # Method to check whether dependent libraries are shared objects.
20187 deplibs_check_method=$lt_deplibs_check_method
20188
20189 # Command to use when deplibs_check_method == file_magic.
20190 file_magic_cmd=$lt_file_magic_cmd
20191
20192 # Flag that allows shared libraries with undefined symbols to be built.
20193 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20194
20195 # Flag that forces no undefined symbols.
20196 no_undefined_flag=$lt_no_undefined_flag_GCJ
20197
20198 # Commands used to finish a libtool library installation in a directory.
20199 finish_cmds=$lt_finish_cmds
20200
20201 # Same as above, but a single script fragment to be evaled but not shown.
20202 finish_eval=$lt_finish_eval
20203
20204 # Take the output of nm and produce a listing of raw symbols and C names.
20205 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20206
20207 # Transform the output of nm in a proper C declaration
20208 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20209
20210 # Transform the output of nm in a C name address pair
20211 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20212
20213 # This is the shared library runtime path variable.
20214 runpath_var=$runpath_var
20215
20216 # This is the shared library path variable.
20217 shlibpath_var=$shlibpath_var
20218
20219 # Is shlibpath searched before the hard-coded library search path?
20220 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20221
20222 # How to hardcode a shared library path into an executable.
20223 hardcode_action=$hardcode_action_GCJ
20224
20225 # Whether we should hardcode library paths into libraries.
20226 hardcode_into_libs=$hardcode_into_libs
20227
20228 # Flag to hardcode \$libdir into a binary during linking.
20229 # This must work even if \$libdir does not exist.
20230 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20231
20232 # If ld is used when linking, flag to hardcode \$libdir into
20233 # a binary during linking. This must work even if \$libdir does
20234 # not exist.
20235 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20236
20237 # Whether we need a single -rpath flag with a separated argument.
20238 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20239
20240 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20241 # resulting binary.
20242 hardcode_direct=$hardcode_direct_GCJ
20243
20244 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20245 # resulting binary.
20246 hardcode_minus_L=$hardcode_minus_L_GCJ
20247
20248 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20249 # the resulting binary.
20250 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20251
20252 # Set to yes if building a shared library automatically hardcodes DIR into the library
20253 # and all subsequent libraries and executables linked against it.
20254 hardcode_automatic=$hardcode_automatic_GCJ
20255
20256 # Variables whose values should be saved in libtool wrapper scripts and
20257 # restored at relink time.
20258 variables_saved_for_relink="$variables_saved_for_relink"
20259
20260 # Whether libtool must link a program against all its dependency libraries.
20261 link_all_deplibs=$link_all_deplibs_GCJ
20262
20263 # Compile-time system search path for libraries
20264 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20265
20266 # Run-time system search path for libraries
20267 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20268
20269 # Fix the shell variable \$srcfile for the compiler.
20270 fix_srcfile_path=$lt_fix_srcfile_path
20271
20272 # Set to yes if exported symbols are required.
20273 always_export_symbols=$always_export_symbols_GCJ
20274
20275 # The commands to list exported symbols.
20276 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20277
20278 # The commands to extract the exported symbol list from a shared archive.
20279 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20280
20281 # Symbols that should not be listed in the preloaded symbols.
20282 exclude_expsyms=$lt_exclude_expsyms_GCJ
20283
20284 # Symbols that must always be exported.
20285 include_expsyms=$lt_include_expsyms_GCJ
20286
20287 # ### END LIBTOOL TAG CONFIG: $tagname
20288
20289 __EOF__
20290
20291
20292 else
20293 # If there is no Makefile yet, we rely on a make rule to execute
20294 # `config.status --recheck' to rerun these tests and create the
20295 # libtool script then.
20296 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20297 if test -f "$ltmain_in"; then
20298 test -f Makefile && make "$ltmain"
20299 fi
20300 fi
20301
20302
20303 ac_ext=c
20304 ac_cpp='$CPP $CPPFLAGS'
20305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20308
20309 CC="$lt_save_CC"
20310
20311 else
20312 tagname=""
20313 fi
20314 ;;
20315
20316 RC)
20317
20318
20319 # Source file extension for RC test sources.
20320 ac_ext=rc
20321
20322 # Object file extension for compiled RC test sources.
20323 objext=o
20324 objext_RC=$objext
20325
20326 # Code to be used in simple compile tests
20327 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20328
20329 # Code to be used in simple link tests
20330 lt_simple_link_test_code="$lt_simple_compile_test_code"
20331
20332 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20333
20334 # If no C compiler was specified, use CC.
20335 LTCC=${LTCC-"$CC"}
20336
20337 # If no C compiler flags were specified, use CFLAGS.
20338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20339
20340 # Allow CC to be a program name with arguments.
20341 compiler=$CC
20342
20343
20344 # save warnings/boilerplate of simple test code
20345 ac_outfile=conftest.$ac_objext
20346 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20347 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20348 _lt_compiler_boilerplate=`cat conftest.err`
20349 $rm conftest*
20350
20351 ac_outfile=conftest.$ac_objext
20352 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20353 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20354 _lt_linker_boilerplate=`cat conftest.err`
20355 $rm conftest*
20356
20357
20358 # Allow CC to be a program name with arguments.
20359 lt_save_CC="$CC"
20360 CC=${RC-"windres"}
20361 compiler=$CC
20362 compiler_RC=$CC
20363 for cc_temp in $compiler""; do
20364 case $cc_temp in
20365 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20366 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20367 \-*) ;;
20368 *) break;;
20369 esac
20370 done
20371 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20372
20373 lt_cv_prog_compiler_c_o_RC=yes
20374
20375 # The else clause should only fire when bootstrapping the
20376 # libtool distribution, otherwise you forgot to ship ltmain.sh
20377 # with your package, and you will get complaints that there are
20378 # no rules to generate ltmain.sh.
20379 if test -f "$ltmain"; then
20380 # See if we are running on zsh, and set the options which allow our commands through
20381 # without removal of \ escapes.
20382 if test -n "${ZSH_VERSION+set}" ; then
20383 setopt NO_GLOB_SUBST
20384 fi
20385 # Now quote all the things that may contain metacharacters while being
20386 # careful not to overquote the AC_SUBSTed values. We take copies of the
20387 # variables and quote the copies for generation of the libtool script.
20388 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20389 SED SHELL STRIP \
20390 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20391 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20392 deplibs_check_method reload_flag reload_cmds need_locks \
20393 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20394 lt_cv_sys_global_symbol_to_c_name_address \
20395 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20396 old_postinstall_cmds old_postuninstall_cmds \
20397 compiler_RC \
20398 CC_RC \
20399 LD_RC \
20400 lt_prog_compiler_wl_RC \
20401 lt_prog_compiler_pic_RC \
20402 lt_prog_compiler_static_RC \
20403 lt_prog_compiler_no_builtin_flag_RC \
20404 export_dynamic_flag_spec_RC \
20405 thread_safe_flag_spec_RC \
20406 whole_archive_flag_spec_RC \
20407 enable_shared_with_static_runtimes_RC \
20408 old_archive_cmds_RC \
20409 old_archive_from_new_cmds_RC \
20410 predep_objects_RC \
20411 postdep_objects_RC \
20412 predeps_RC \
20413 postdeps_RC \
20414 compiler_lib_search_path_RC \
20415 archive_cmds_RC \
20416 archive_expsym_cmds_RC \
20417 postinstall_cmds_RC \
20418 postuninstall_cmds_RC \
20419 old_archive_from_expsyms_cmds_RC \
20420 allow_undefined_flag_RC \
20421 no_undefined_flag_RC \
20422 export_symbols_cmds_RC \
20423 hardcode_libdir_flag_spec_RC \
20424 hardcode_libdir_flag_spec_ld_RC \
20425 hardcode_libdir_separator_RC \
20426 hardcode_automatic_RC \
20427 module_cmds_RC \
20428 module_expsym_cmds_RC \
20429 lt_cv_prog_compiler_c_o_RC \
20430 fix_srcfile_path_RC \
20431 exclude_expsyms_RC \
20432 include_expsyms_RC; do
20433
20434 case $var in
20435 old_archive_cmds_RC | \
20436 old_archive_from_new_cmds_RC | \
20437 archive_cmds_RC | \
20438 archive_expsym_cmds_RC | \
20439 module_cmds_RC | \
20440 module_expsym_cmds_RC | \
20441 old_archive_from_expsyms_cmds_RC | \
20442 export_symbols_cmds_RC | \
20443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20444 postinstall_cmds | postuninstall_cmds | \
20445 old_postinstall_cmds | old_postuninstall_cmds | \
20446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20447 # Double-quote double-evaled strings.
20448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20449 ;;
20450 *)
20451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20452 ;;
20453 esac
20454 done
20455
20456 case $lt_echo in
20457 *'\$0 --fallback-echo"')
20458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20459 ;;
20460 esac
20461
20462 cfgfile="$ofile"
20463
20464 cat <<__EOF__ >> "$cfgfile"
20465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20466
20467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20468
20469 # Shell to use when invoking shell scripts.
20470 SHELL=$lt_SHELL
20471
20472 # Whether or not to build shared libraries.
20473 build_libtool_libs=$enable_shared
20474
20475 # Whether or not to build static libraries.
20476 build_old_libs=$enable_static
20477
20478 # Whether or not to add -lc for building shared libraries.
20479 build_libtool_need_lc=$archive_cmds_need_lc_RC
20480
20481 # Whether or not to disallow shared libs when runtime libs are static
20482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20483
20484 # Whether or not to optimize for fast installation.
20485 fast_install=$enable_fast_install
20486
20487 # The host system.
20488 host_alias=$host_alias
20489 host=$host
20490 host_os=$host_os
20491
20492 # The build system.
20493 build_alias=$build_alias
20494 build=$build
20495 build_os=$build_os
20496
20497 # An echo program that does not interpret backslashes.
20498 echo=$lt_echo
20499
20500 # The archiver.
20501 AR=$lt_AR
20502 AR_FLAGS=$lt_AR_FLAGS
20503
20504 # A C compiler.
20505 LTCC=$lt_LTCC
20506
20507 # LTCC compiler flags.
20508 LTCFLAGS=$lt_LTCFLAGS
20509
20510 # A language-specific compiler.
20511 CC=$lt_compiler_RC
20512
20513 # Is the compiler the GNU C compiler?
20514 with_gcc=$GCC_RC
20515
20516 # An ERE matcher.
20517 EGREP=$lt_EGREP
20518
20519 # The linker used to build libraries.
20520 LD=$lt_LD_RC
20521
20522 # Whether we need hard or soft links.
20523 LN_S=$lt_LN_S
20524
20525 # A BSD-compatible nm program.
20526 NM=$lt_NM
20527
20528 # A symbol stripping program
20529 STRIP=$lt_STRIP
20530
20531 # Used to examine libraries when file_magic_cmd begins "file"
20532 MAGIC_CMD=$MAGIC_CMD
20533
20534 # Used on cygwin: DLL creation program.
20535 DLLTOOL="$DLLTOOL"
20536
20537 # Used on cygwin: object dumper.
20538 OBJDUMP="$OBJDUMP"
20539
20540 # Used on cygwin: assembler.
20541 AS="$AS"
20542
20543 # The name of the directory that contains temporary libtool files.
20544 objdir=$objdir
20545
20546 # How to create reloadable object files.
20547 reload_flag=$lt_reload_flag
20548 reload_cmds=$lt_reload_cmds
20549
20550 # How to pass a linker flag through the compiler.
20551 wl=$lt_lt_prog_compiler_wl_RC
20552
20553 # Object file suffix (normally "o").
20554 objext="$ac_objext"
20555
20556 # Old archive suffix (normally "a").
20557 libext="$libext"
20558
20559 # Shared library suffix (normally ".so").
20560 shrext_cmds='$shrext_cmds'
20561
20562 # Executable file suffix (normally "").
20563 exeext="$exeext"
20564
20565 # Additional compiler flags for building library objects.
20566 pic_flag=$lt_lt_prog_compiler_pic_RC
20567 pic_mode=$pic_mode
20568
20569 # What is the maximum length of a command?
20570 max_cmd_len=$lt_cv_sys_max_cmd_len
20571
20572 # Does compiler simultaneously support -c and -o options?
20573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20574
20575 # Must we lock files when doing compilation?
20576 need_locks=$lt_need_locks
20577
20578 # Do we need the lib prefix for modules?
20579 need_lib_prefix=$need_lib_prefix
20580
20581 # Do we need a version for libraries?
20582 need_version=$need_version
20583
20584 # Whether dlopen is supported.
20585 dlopen_support=$enable_dlopen
20586
20587 # Whether dlopen of programs is supported.
20588 dlopen_self=$enable_dlopen_self
20589
20590 # Whether dlopen of statically linked programs is supported.
20591 dlopen_self_static=$enable_dlopen_self_static
20592
20593 # Compiler flag to prevent dynamic linking.
20594 link_static_flag=$lt_lt_prog_compiler_static_RC
20595
20596 # Compiler flag to turn off builtin functions.
20597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20598
20599 # Compiler flag to allow reflexive dlopens.
20600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20601
20602 # Compiler flag to generate shared objects directly from archives.
20603 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20604
20605 # Compiler flag to generate thread-safe objects.
20606 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20607
20608 # Library versioning type.
20609 version_type=$version_type
20610
20611 # Format of library name prefix.
20612 libname_spec=$lt_libname_spec
20613
20614 # List of archive names. First name is the real one, the rest are links.
20615 # The last name is the one that the linker finds with -lNAME.
20616 library_names_spec=$lt_library_names_spec
20617
20618 # The coded name of the library, if different from the real name.
20619 soname_spec=$lt_soname_spec
20620
20621 # Commands used to build and install an old-style archive.
20622 RANLIB=$lt_RANLIB
20623 old_archive_cmds=$lt_old_archive_cmds_RC
20624 old_postinstall_cmds=$lt_old_postinstall_cmds
20625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20626
20627 # Create an old-style archive from a shared archive.
20628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20629
20630 # Create a temporary old-style archive to link instead of a shared archive.
20631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20632
20633 # Commands used to build and install a shared archive.
20634 archive_cmds=$lt_archive_cmds_RC
20635 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20636 postinstall_cmds=$lt_postinstall_cmds
20637 postuninstall_cmds=$lt_postuninstall_cmds
20638
20639 # Commands used to build a loadable module (assumed same as above if empty)
20640 module_cmds=$lt_module_cmds_RC
20641 module_expsym_cmds=$lt_module_expsym_cmds_RC
20642
20643 # Commands to strip libraries.
20644 old_striplib=$lt_old_striplib
20645 striplib=$lt_striplib
20646
20647 # Dependencies to place before the objects being linked to create a
20648 # shared library.
20649 predep_objects=$lt_predep_objects_RC
20650
20651 # Dependencies to place after the objects being linked to create a
20652 # shared library.
20653 postdep_objects=$lt_postdep_objects_RC
20654
20655 # Dependencies to place before the objects being linked to create a
20656 # shared library.
20657 predeps=$lt_predeps_RC
20658
20659 # Dependencies to place after the objects being linked to create a
20660 # shared library.
20661 postdeps=$lt_postdeps_RC
20662
20663 # The library search path used internally by the compiler when linking
20664 # a shared library.
20665 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20666
20667 # Method to check whether dependent libraries are shared objects.
20668 deplibs_check_method=$lt_deplibs_check_method
20669
20670 # Command to use when deplibs_check_method == file_magic.
20671 file_magic_cmd=$lt_file_magic_cmd
20672
20673 # Flag that allows shared libraries with undefined symbols to be built.
20674 allow_undefined_flag=$lt_allow_undefined_flag_RC
20675
20676 # Flag that forces no undefined symbols.
20677 no_undefined_flag=$lt_no_undefined_flag_RC
20678
20679 # Commands used to finish a libtool library installation in a directory.
20680 finish_cmds=$lt_finish_cmds
20681
20682 # Same as above, but a single script fragment to be evaled but not shown.
20683 finish_eval=$lt_finish_eval
20684
20685 # Take the output of nm and produce a listing of raw symbols and C names.
20686 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20687
20688 # Transform the output of nm in a proper C declaration
20689 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20690
20691 # Transform the output of nm in a C name address pair
20692 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20693
20694 # This is the shared library runtime path variable.
20695 runpath_var=$runpath_var
20696
20697 # This is the shared library path variable.
20698 shlibpath_var=$shlibpath_var
20699
20700 # Is shlibpath searched before the hard-coded library search path?
20701 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20702
20703 # How to hardcode a shared library path into an executable.
20704 hardcode_action=$hardcode_action_RC
20705
20706 # Whether we should hardcode library paths into libraries.
20707 hardcode_into_libs=$hardcode_into_libs
20708
20709 # Flag to hardcode \$libdir into a binary during linking.
20710 # This must work even if \$libdir does not exist.
20711 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20712
20713 # If ld is used when linking, flag to hardcode \$libdir into
20714 # a binary during linking. This must work even if \$libdir does
20715 # not exist.
20716 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20717
20718 # Whether we need a single -rpath flag with a separated argument.
20719 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20720
20721 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20722 # resulting binary.
20723 hardcode_direct=$hardcode_direct_RC
20724
20725 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20726 # resulting binary.
20727 hardcode_minus_L=$hardcode_minus_L_RC
20728
20729 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20730 # the resulting binary.
20731 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20732
20733 # Set to yes if building a shared library automatically hardcodes DIR into the library
20734 # and all subsequent libraries and executables linked against it.
20735 hardcode_automatic=$hardcode_automatic_RC
20736
20737 # Variables whose values should be saved in libtool wrapper scripts and
20738 # restored at relink time.
20739 variables_saved_for_relink="$variables_saved_for_relink"
20740
20741 # Whether libtool must link a program against all its dependency libraries.
20742 link_all_deplibs=$link_all_deplibs_RC
20743
20744 # Compile-time system search path for libraries
20745 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20746
20747 # Run-time system search path for libraries
20748 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20749
20750 # Fix the shell variable \$srcfile for the compiler.
20751 fix_srcfile_path=$lt_fix_srcfile_path
20752
20753 # Set to yes if exported symbols are required.
20754 always_export_symbols=$always_export_symbols_RC
20755
20756 # The commands to list exported symbols.
20757 export_symbols_cmds=$lt_export_symbols_cmds_RC
20758
20759 # The commands to extract the exported symbol list from a shared archive.
20760 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20761
20762 # Symbols that should not be listed in the preloaded symbols.
20763 exclude_expsyms=$lt_exclude_expsyms_RC
20764
20765 # Symbols that must always be exported.
20766 include_expsyms=$lt_include_expsyms_RC
20767
20768 # ### END LIBTOOL TAG CONFIG: $tagname
20769
20770 __EOF__
20771
20772
20773 else
20774 # If there is no Makefile yet, we rely on a make rule to execute
20775 # `config.status --recheck' to rerun these tests and create the
20776 # libtool script then.
20777 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20778 if test -f "$ltmain_in"; then
20779 test -f Makefile && make "$ltmain"
20780 fi
20781 fi
20782
20783
20784 ac_ext=c
20785 ac_cpp='$CPP $CPPFLAGS'
20786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20789
20790 CC="$lt_save_CC"
20791
20792 ;;
20793
20794 *)
20795 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20796 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20797 { (exit 1); exit 1; }; }
20798 ;;
20799 esac
20800
20801 # Append the new tag name to the list of available tags.
20802 if test -n "$tagname" ; then
20803 available_tags="$available_tags $tagname"
20804 fi
20805 fi
20806 done
20807 IFS="$lt_save_ifs"
20808
20809 # Now substitute the updated list of available tags.
20810 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20811 mv "${ofile}T" "$ofile"
20812 chmod +x "$ofile"
20813 else
20814 rm -f "${ofile}T"
20815 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20816 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20817 { (exit 1); exit 1; }; }
20818 fi
20819 fi
20820
20821
20822
20823 # This can be used to rebuild libtool when needed
20824 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20825
20826 # Always use our own libtool.
20827 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20828
20829 # Prevent multiple expansion
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
20852 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
20853 # Check whether --enable-maintainer-mode was given.
20854 if test "${enable_maintainer_mode+set}" = set; then
20855 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20856 else
20857 USE_MAINTAINER_MODE=no
20858 fi
20859
20860 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
20861 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
20862
20863
20864 if test $USE_MAINTAINER_MODE = yes; then
20865 MAINTAINER_MODE_TRUE=
20866 MAINTAINER_MODE_FALSE='#'
20867 else
20868 MAINTAINER_MODE_TRUE='#'
20869 MAINTAINER_MODE_FALSE=
20870 fi
20871
20872 MAINT=$MAINTAINER_MODE_TRUE
20873
20874
20875
20876 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20877 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20878 if test "${ac_cv_c_const+set}" = set; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20880 else
20881 cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h. */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887
20888 int
20889 main ()
20890 {
20891 /* FIXME: Include the comments suggested by Paul. */
20892 #ifndef __cplusplus
20893 /* Ultrix mips cc rejects this. */
20894 typedef int charset[2];
20895 const charset cs;
20896 /* SunOS 4.1.1 cc rejects this. */
20897 char const *const *pcpcc;
20898 char **ppc;
20899 /* NEC SVR4.0.2 mips cc rejects this. */
20900 struct point {int x, y;};
20901 static struct point const zero = {0,0};
20902 /* AIX XL C 1.02.0.0 rejects this.
20903 It does not let you subtract one const X* pointer from another in
20904 an arm of an if-expression whose if-part is not a constant
20905 expression */
20906 const char *g = "string";
20907 pcpcc = &g + (g ? g-g : 0);
20908 /* HPUX 7.0 cc rejects these. */
20909 ++pcpcc;
20910 ppc = (char**) pcpcc;
20911 pcpcc = (char const *const *) ppc;
20912 { /* SCO 3.2v4 cc rejects this. */
20913 char *t;
20914 char const *s = 0 ? (char *) 0 : (char const *) 0;
20915
20916 *t++ = 0;
20917 if (s) return 0;
20918 }
20919 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20920 int x[] = {25, 17};
20921 const int *foo = &x[0];
20922 ++foo;
20923 }
20924 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20925 typedef const int *iptr;
20926 iptr p = 0;
20927 ++p;
20928 }
20929 { /* AIX XL C 1.02.0.0 rejects this saying
20930 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20931 struct s { int j; const int *ap[3]; };
20932 struct s *b; b->j = 5;
20933 }
20934 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20935 const int foo = 10;
20936 if (!foo) return 0;
20937 }
20938 return !cs[0] && !zero.x;
20939 #endif
20940
20941 ;
20942 return 0;
20943 }
20944 _ACEOF
20945 rm -f conftest.$ac_objext
20946 if { (ac_try="$ac_compile"
20947 case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20950 esac
20951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952 (eval "$ac_compile") 2>conftest.er1
20953 ac_status=$?
20954 grep -v '^ *+' conftest.er1 >conftest.err
20955 rm -f conftest.er1
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } && {
20959 test -z "$ac_c_werror_flag" ||
20960 test ! -s conftest.err
20961 } && test -s conftest.$ac_objext; then
20962 ac_cv_c_const=yes
20963 else
20964 echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20966
20967 ac_cv_c_const=no
20968 fi
20969
20970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20971 fi
20972 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20973 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20974 if test $ac_cv_c_const = no; then
20975
20976 cat >>confdefs.h <<\_ACEOF
20977 #define const
20978 _ACEOF
20979
20980 fi
20981
20982
20983 # Extract the first word of "pkg-config", so it can be a program name with args.
20984 set dummy pkg-config; ac_word=$2
20985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20987 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20989 else
20990 case $PKG_CONFIG in
20991 [\\/]* | ?:[\\/]*)
20992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20993 ;;
20994 *)
20995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20996 for as_dir in $PATH
20997 do
20998 IFS=$as_save_IFS
20999 test -z "$as_dir" && as_dir=.
21000 for ac_exec_ext in '' $ac_executable_extensions; do
21001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21004 break 2
21005 fi
21006 done
21007 done
21008 IFS=$as_save_IFS
21009
21010 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21011 ;;
21012 esac
21013 fi
21014 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21015 if test -n "$PKG_CONFIG"; then
21016 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21017 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21018 else
21019 { echo "$as_me:$LINENO: result: no" >&5
21020 echo "${ECHO_T}no" >&6; }
21021 fi
21022
21023
21024
21025 CFLAGS=
21026 LIBS=-lm
21027
21028
21029 # Extract the first word of ""swig"", so it can be a program name with args.
21030 set dummy "swig"; ac_word=$2
21031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21033 if test "${ac_cv_prog_have_swig+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036 if test -n "$have_swig"; then
21037 ac_cv_prog_have_swig="$have_swig" # Let the user override the test.
21038 else
21039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21040 for as_dir in $PATH
21041 do
21042 IFS=$as_save_IFS
21043 test -z "$as_dir" && as_dir=.
21044 for ac_exec_ext in '' $ac_executable_extensions; do
21045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21046 ac_cv_prog_have_swig="yes"
21047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21048 break 2
21049 fi
21050 done
21051 done
21052 IFS=$as_save_IFS
21053
21054 test -z "$ac_cv_prog_have_swig" && ac_cv_prog_have_swig="no"
21055 fi
21056 fi
21057 have_swig=$ac_cv_prog_have_swig
21058 if test -n "$have_swig"; then
21059 { echo "$as_me:$LINENO: result: $have_swig" >&5
21060 echo "${ECHO_T}$have_swig" >&6; }
21061 else
21062 { echo "$as_me:$LINENO: result: no" >&5
21063 echo "${ECHO_T}no" >&6; }
21064 fi
21065
21066
21067
21068
21069 # Extract the first word of ""fpc"", so it can be a program name with args.
21070 set dummy "fpc"; ac_word=$2
21071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21073 if test "${ac_cv_prog_have_pascal+set}" = set; then
21074 echo $ECHO_N "(cached) $ECHO_C" >&6
21075 else
21076 if test -n "$have_pascal"; then
21077 ac_cv_prog_have_pascal="$have_pascal" # Let the user override the test.
21078 else
21079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21080 for as_dir in $PATH
21081 do
21082 IFS=$as_save_IFS
21083 test -z "$as_dir" && as_dir=.
21084 for ac_exec_ext in '' $ac_executable_extensions; do
21085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21086 ac_cv_prog_have_pascal="yes"
21087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21088 break 2
21089 fi
21090 done
21091 done
21092 IFS=$as_save_IFS
21093
21094 test -z "$ac_cv_prog_have_pascal" && ac_cv_prog_have_pascal="no"
21095 fi
21096 fi
21097 have_pascal=$ac_cv_prog_have_pascal
21098 if test -n "$have_pascal"; then
21099 { echo "$as_me:$LINENO: result: $have_pascal" >&5
21100 echo "${ECHO_T}$have_pascal" >&6; }
21101 else
21102 { echo "$as_me:$LINENO: result: no" >&5
21103 echo "${ECHO_T}no" >&6; }
21104 fi
21105
21106
21107
21108 build_pascal=$have_pascal
21109
21110 # Check whether --enable-pascal was given.
21111 if test "${enable_pascal+set}" = set; then
21112 enableval=$enable_pascal; build_pascal=no
21113 else
21114 build_pascal=$have_pascal
21115 fi
21116
21117
21118 if test "$have_pascal" = "yes"; then
21119 PA_VERSION=`fpc -iV`
21120 PA_TPR=`fpc -iTP`
21121 PA_TOS=`fpc -iTO`
21122 PA_MODULES_PATH="/usr/lib/fpc/$PA_VERSION/units/$PA_TPR-$PA_TOS"
21123
21124
21125 fi
21126
21127
21128
21129 if test "$build_pascal" = "yes"; then
21130 WITH_PASCAL_TRUE=
21131 WITH_PASCAL_FALSE='#'
21132 else
21133 WITH_PASCAL_TRUE='#'
21134 WITH_PASCAL_FALSE=
21135 fi
21136
21137
21138
21139 # Extract the first word of ""python"", so it can be a program name with args.
21140 set dummy "python"; ac_word=$2
21141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21143 if test "${ac_cv_prog_have_python+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146 if test -n "$have_python"; then
21147 ac_cv_prog_have_python="$have_python" # Let the user override the test.
21148 else
21149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21150 for as_dir in $PATH
21151 do
21152 IFS=$as_save_IFS
21153 test -z "$as_dir" && as_dir=.
21154 for ac_exec_ext in '' $ac_executable_extensions; do
21155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21156 ac_cv_prog_have_python="yes"
21157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21158 break 2
21159 fi
21160 done
21161 done
21162 IFS=$as_save_IFS
21163
21164 test -z "$ac_cv_prog_have_python" && ac_cv_prog_have_python="no"
21165 fi
21166 fi
21167 have_python=$ac_cv_prog_have_python
21168 if test -n "$have_python"; then
21169 { echo "$as_me:$LINENO: result: $have_python" >&5
21170 echo "${ECHO_T}$have_python" >&6; }
21171 else
21172 { echo "$as_me:$LINENO: result: no" >&5
21173 echo "${ECHO_T}no" >&6; }
21174 fi
21175
21176
21177
21178 build_python=$have_python
21179
21180 # Check whether --enable-python was given.
21181 if test "${enable_python+set}" = set; then
21182 enableval=$enable_python; build_python=no
21183 else
21184 build_python=$have_python
21185 fi
21186
21187
21188
21189 # Check whether --with-python-sitelib-dir was given.
21190 if test "${with_python_sitelib_dir+set}" = set; then
21191 withval=$with_python_sitelib_dir;
21192 fi
21193
21194
21195 if test "$have_python" = "yes"; then
21196 PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
21197 PY_VERSION=`python -c 'import sys ; print sys.version[0:3]'`
21198 { echo "$as_me:$LINENO: checking for $PY_PREFIX/include/python$PY_VERSION/Python.h" >&5
21199 echo $ECHO_N "checking for $PY_PREFIX/include/python$PY_VERSION/Python.h... $ECHO_C" >&6; }
21200 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
21201 { echo "$as_me:$LINENO: result: yes" >&5
21202 echo "${ECHO_T}yes" >&6; }
21203 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
21204
21205 if test "$with_python_sitelib_dir" = "" ; then
21206 PY_MODULES_PATH="$PY_PREFIX/lib/python$PY_VERSION/site-packages"
21207 else
21208 PY_MODULES_PATH=$with_python_sitelib_dir
21209 fi
21210
21211
21212
21213
21214 if test "$have_swig" = "no"; then
21215 build_python=no
21216 fi
21217 else
21218 { echo "$as_me:$LINENO: result: no" >&5
21219 echo "${ECHO_T}no" >&6; }
21220 build_python=no
21221 fi
21222 fi
21223
21224
21225
21226 if test "$build_python" = "yes"; then
21227 WITH_PYTHON_TRUE=
21228 WITH_PYTHON_FALSE='#'
21229 else
21230 WITH_PYTHON_TRUE='#'
21231 WITH_PYTHON_FALSE=
21232 fi
21233
21234
21235
21236 # Extract the first word of ""perl"", so it can be a program name with args.
21237 set dummy "perl"; ac_word=$2
21238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21240 if test "${ac_cv_prog_have_perl+set}" = set; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21242 else
21243 if test -n "$have_perl"; then
21244 ac_cv_prog_have_perl="$have_perl" # Let the user override the test.
21245 else
21246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21247 for as_dir in $PATH
21248 do
21249 IFS=$as_save_IFS
21250 test -z "$as_dir" && as_dir=.
21251 for ac_exec_ext in '' $ac_executable_extensions; do
21252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21253 ac_cv_prog_have_perl="yes"
21254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21255 break 2
21256 fi
21257 done
21258 done
21259 IFS=$as_save_IFS
21260
21261 test -z "$ac_cv_prog_have_perl" && ac_cv_prog_have_perl="no"
21262 fi
21263 fi
21264 have_perl=$ac_cv_prog_have_perl
21265 if test -n "$have_perl"; then
21266 { echo "$as_me:$LINENO: result: $have_perl" >&5
21267 echo "${ECHO_T}$have_perl" >&6; }
21268 else
21269 { echo "$as_me:$LINENO: result: no" >&5
21270 echo "${ECHO_T}no" >&6; }
21271 fi
21272
21273
21274
21275 build_perl=$have_perl
21276
21277 # Check whether --enable-perl was given.
21278 if test "${enable_perl+set}" = set; then
21279 enableval=$enable_perl; build_perl=no
21280 else
21281 build_perl=$have_perl
21282 fi
21283
21284
21285
21286 # Check whether --with-perl-sitelib-dir was given.
21287 if test "${with_perl_sitelib_dir+set}" = set; then
21288 withval=$with_perl_sitelib_dir;
21289 fi
21290
21291
21292 if test "$have_perl" = "yes"; then
21293 PE_PREFIX=`(perl -e 'use Config; print $Config{archlib};')`
21294 { echo "$as_me:$LINENO: checking for $PE_PREFIX/CORE/perl.h" >&5
21295 echo $ECHO_N "checking for $PE_PREFIX/CORE/perl.h... $ECHO_C" >&6; }
21296 if test -f $PE_PREFIX/CORE/perl.h; then
21297 { echo "$as_me:$LINENO: result: yes" >&5
21298 echo "${ECHO_T}yes" >&6; }
21299 PE_CFLAGS="-I$PE_PREFIX/CORE "
21300 PE_CFLAGS=$PE_CFLAGS`(perl -e 'use Config; print $Config{cppflags};')`
21301
21302 if test "$with_perl_sitelib_dir" = "" ; then
21303 PE_MODULES_PATH=`(perl -e 'use Config; print $Config{sitelib};')`
21304 else
21305 PE_MODULES_PATH=$with_perl_sitelib_dir
21306 fi
21307
21308
21309
21310 if test "x$have_swig" = "xno"; then
21311 build_perl=no
21312 fi
21313 else
21314 { echo "$as_me:$LINENO: result: no" >&5
21315 echo "${ECHO_T}no" >&6; }
21316 build_perl=no
21317 fi
21318 fi
21319
21320
21321
21322 if test "$build_perl" = "yes"; then
21323 WITH_PERL_TRUE=
21324 WITH_PERL_FALSE='#'
21325 else
21326 WITH_PERL_TRUE='#'
21327 WITH_PERL_FALSE=
21328 fi
21329
21330
21331
21332
21333 ALL_LINGUAS="he es_MX ru fr sv"
21334
21335 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21336 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
21337 # Check whether --enable-nls was given.
21338 if test "${enable_nls+set}" = set; then
21339 enableval=$enable_nls; USE_NLS=$enableval
21340 else
21341 USE_NLS=yes
21342 fi
21343
21344 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
21345 echo "${ECHO_T}$USE_NLS" >&6; }
21346
21347
21348
21349
21350 GETTEXT_MACRO_VERSION=0.17
21351
21352
21353
21354
21355 # Prepare PATH_SEPARATOR.
21356 # The user is always right.
21357 if test "${PATH_SEPARATOR+set}" != set; then
21358 echo "#! /bin/sh" >conf$$.sh
21359 echo "exit 0" >>conf$$.sh
21360 chmod +x conf$$.sh
21361 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21362 PATH_SEPARATOR=';'
21363 else
21364 PATH_SEPARATOR=:
21365 fi
21366 rm -f conf$$.sh
21367 fi
21368
21369 # Find out how to test for executable files. Don't use a zero-byte file,
21370 # as systems may use methods other than mode bits to determine executability.
21371 cat >conf$$.file <<_ASEOF
21372 #! /bin/sh
21373 exit 0
21374 _ASEOF
21375 chmod +x conf$$.file
21376 if test -x conf$$.file >/dev/null 2>&1; then
21377 ac_executable_p="test -x"
21378 else
21379 ac_executable_p="test -f"
21380 fi
21381 rm -f conf$$.file
21382
21383 # Extract the first word of "msgfmt", so it can be a program name with args.
21384 set dummy msgfmt; ac_word=$2
21385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21387 if test "${ac_cv_path_MSGFMT+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 else
21390 case "$MSGFMT" in
21391 [\\/]* | ?:[\\/]*)
21392 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21393 ;;
21394 *)
21395 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21396 for ac_dir in $PATH; do
21397 IFS="$ac_save_IFS"
21398 test -z "$ac_dir" && ac_dir=.
21399 for ac_exec_ext in '' $ac_executable_extensions; do
21400 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21401 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21402 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
21403 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21404 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21405 break 2
21406 fi
21407 fi
21408 done
21409 done
21410 IFS="$ac_save_IFS"
21411 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21412 ;;
21413 esac
21414 fi
21415 MSGFMT="$ac_cv_path_MSGFMT"
21416 if test "$MSGFMT" != ":"; then
21417 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
21418 echo "${ECHO_T}$MSGFMT" >&6; }
21419 else
21420 { echo "$as_me:$LINENO: result: no" >&5
21421 echo "${ECHO_T}no" >&6; }
21422 fi
21423
21424 # Extract the first word of "gmsgfmt", so it can be a program name with args.
21425 set dummy gmsgfmt; ac_word=$2
21426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21428 if test "${ac_cv_path_GMSGFMT+set}" = set; then
21429 echo $ECHO_N "(cached) $ECHO_C" >&6
21430 else
21431 case $GMSGFMT in
21432 [\\/]* | ?:[\\/]*)
21433 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21434 ;;
21435 *)
21436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21437 for as_dir in $PATH
21438 do
21439 IFS=$as_save_IFS
21440 test -z "$as_dir" && as_dir=.
21441 for ac_exec_ext in '' $ac_executable_extensions; do
21442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21443 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21445 break 2
21446 fi
21447 done
21448 done
21449 IFS=$as_save_IFS
21450
21451 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21452 ;;
21453 esac
21454 fi
21455 GMSGFMT=$ac_cv_path_GMSGFMT
21456 if test -n "$GMSGFMT"; then
21457 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21458 echo "${ECHO_T}$GMSGFMT" >&6; }
21459 else
21460 { echo "$as_me:$LINENO: result: no" >&5
21461 echo "${ECHO_T}no" >&6; }
21462 fi
21463
21464
21465
21466 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21467 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
21468 *) MSGFMT_015=$MSGFMT ;;
21469 esac
21470
21471 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21472 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
21473 *) GMSGFMT_015=$GMSGFMT ;;
21474 esac
21475
21476
21477
21478 # Prepare PATH_SEPARATOR.
21479 # The user is always right.
21480 if test "${PATH_SEPARATOR+set}" != set; then
21481 echo "#! /bin/sh" >conf$$.sh
21482 echo "exit 0" >>conf$$.sh
21483 chmod +x conf$$.sh
21484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21485 PATH_SEPARATOR=';'
21486 else
21487 PATH_SEPARATOR=:
21488 fi
21489 rm -f conf$$.sh
21490 fi
21491
21492 # Find out how to test for executable files. Don't use a zero-byte file,
21493 # as systems may use methods other than mode bits to determine executability.
21494 cat >conf$$.file <<_ASEOF
21495 #! /bin/sh
21496 exit 0
21497 _ASEOF
21498 chmod +x conf$$.file
21499 if test -x conf$$.file >/dev/null 2>&1; then
21500 ac_executable_p="test -x"
21501 else
21502 ac_executable_p="test -f"
21503 fi
21504 rm -f conf$$.file
21505
21506 # Extract the first word of "xgettext", so it can be a program name with args.
21507 set dummy xgettext; ac_word=$2
21508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21510 if test "${ac_cv_path_XGETTEXT+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21512 else
21513 case "$XGETTEXT" in
21514 [\\/]* | ?:[\\/]*)
21515 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21516 ;;
21517 *)
21518 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21519 for ac_dir in $PATH; do
21520 IFS="$ac_save_IFS"
21521 test -z "$ac_dir" && ac_dir=.
21522 for ac_exec_ext in '' $ac_executable_extensions; do
21523 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21524 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21525 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
21526 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21527 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
21528 break 2
21529 fi
21530 fi
21531 done
21532 done
21533 IFS="$ac_save_IFS"
21534 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21535 ;;
21536 esac
21537 fi
21538 XGETTEXT="$ac_cv_path_XGETTEXT"
21539 if test "$XGETTEXT" != ":"; then
21540 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21541 echo "${ECHO_T}$XGETTEXT" >&6; }
21542 else
21543 { echo "$as_me:$LINENO: result: no" >&5
21544 echo "${ECHO_T}no" >&6; }
21545 fi
21546
21547 rm -f messages.po
21548
21549 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21550 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
21551 *) XGETTEXT_015=$XGETTEXT ;;
21552 esac
21553
21554
21555
21556 # Prepare PATH_SEPARATOR.
21557 # The user is always right.
21558 if test "${PATH_SEPARATOR+set}" != set; then
21559 echo "#! /bin/sh" >conf$$.sh
21560 echo "exit 0" >>conf$$.sh
21561 chmod +x conf$$.sh
21562 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21563 PATH_SEPARATOR=';'
21564 else
21565 PATH_SEPARATOR=:
21566 fi
21567 rm -f conf$$.sh
21568 fi
21569
21570 # Find out how to test for executable files. Don't use a zero-byte file,
21571 # as systems may use methods other than mode bits to determine executability.
21572 cat >conf$$.file <<_ASEOF
21573 #! /bin/sh
21574 exit 0
21575 _ASEOF
21576 chmod +x conf$$.file
21577 if test -x conf$$.file >/dev/null 2>&1; then
21578 ac_executable_p="test -x"
21579 else
21580 ac_executable_p="test -f"
21581 fi
21582 rm -f conf$$.file
21583
21584 # Extract the first word of "msgmerge", so it can be a program name with args.
21585 set dummy msgmerge; ac_word=$2
21586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21588 if test "${ac_cv_path_MSGMERGE+set}" = set; then
21589 echo $ECHO_N "(cached) $ECHO_C" >&6
21590 else
21591 case "$MSGMERGE" in
21592 [\\/]* | ?:[\\/]*)
21593 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21594 ;;
21595 *)
21596 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21597 for ac_dir in $PATH; do
21598 IFS="$ac_save_IFS"
21599 test -z "$ac_dir" && ac_dir=.
21600 for ac_exec_ext in '' $ac_executable_extensions; do
21601 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21602 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21603 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
21604 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
21605 break 2
21606 fi
21607 fi
21608 done
21609 done
21610 IFS="$ac_save_IFS"
21611 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
21612 ;;
21613 esac
21614 fi
21615 MSGMERGE="$ac_cv_path_MSGMERGE"
21616 if test "$MSGMERGE" != ":"; then
21617 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21618 echo "${ECHO_T}$MSGMERGE" >&6; }
21619 else
21620 { echo "$as_me:$LINENO: result: no" >&5
21621 echo "${ECHO_T}no" >&6; }
21622 fi
21623
21624
21625 test -n "$localedir" || localedir='${datadir}/locale'
21626
21627
21628 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
21629
21630
21631 ac_config_commands="$ac_config_commands po-directories"
21632
21633
21634
21635 if test "X$prefix" = "XNONE"; then
21636 acl_final_prefix="$ac_default_prefix"
21637 else
21638 acl_final_prefix="$prefix"
21639 fi
21640 if test "X$exec_prefix" = "XNONE"; then
21641 acl_final_exec_prefix='${prefix}'
21642 else
21643 acl_final_exec_prefix="$exec_prefix"
21644 fi
21645 acl_save_prefix="$prefix"
21646 prefix="$acl_final_prefix"
21647 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21648 prefix="$acl_save_prefix"
21649
21650
21651 # Check whether --with-gnu-ld was given.
21652 if test "${with_gnu_ld+set}" = set; then
21653 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21654 else
21655 with_gnu_ld=no
21656 fi
21657
21658 # Prepare PATH_SEPARATOR.
21659 # The user is always right.
21660 if test "${PATH_SEPARATOR+set}" != set; then
21661 echo "#! /bin/sh" >conf$$.sh
21662 echo "exit 0" >>conf$$.sh
21663 chmod +x conf$$.sh
21664 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21665 PATH_SEPARATOR=';'
21666 else
21667 PATH_SEPARATOR=:
21668 fi
21669 rm -f conf$$.sh
21670 fi
21671 ac_prog=ld
21672 if test "$GCC" = yes; then
21673 # Check if gcc -print-prog-name=ld gives a path.
21674 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21675 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
21676 case $host in
21677 *-*-mingw*)
21678 # gcc leaves a trailing carriage return which upsets mingw
21679 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21680 *)
21681 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21682 esac
21683 case $ac_prog in
21684 # Accept absolute paths.
21685 [\\/]* | [A-Za-z]:[\\/]*)
21686 re_direlt='/[^/][^/]*/\.\./'
21687 # Canonicalize the path of ld
21688 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21689 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21690 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21691 done
21692 test -z "$LD" && LD="$ac_prog"
21693 ;;
21694 "")
21695 # If it fails, then pretend we aren't using GCC.
21696 ac_prog=ld
21697 ;;
21698 *)
21699 # If it is relative, then search for the first ld in PATH.
21700 with_gnu_ld=unknown
21701 ;;
21702 esac
21703 elif test "$with_gnu_ld" = yes; then
21704 { echo "$as_me:$LINENO: checking for GNU ld" >&5
21705 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
21706 else
21707 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21708 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
21709 fi
21710 if test "${acl_cv_path_LD+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21712 else
21713 if test -z "$LD"; then
21714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21715 for ac_dir in $PATH; do
21716 test -z "$ac_dir" && ac_dir=.
21717 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21718 acl_cv_path_LD="$ac_dir/$ac_prog"
21719 # Check to see if the program is GNU ld. I'd rather use --version,
21720 # but apparently some GNU ld's only accept -v.
21721 # Break only if it was the GNU/non-GNU ld that we prefer.
21722 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
21723 *GNU* | *'with BFD'*)
21724 test "$with_gnu_ld" != no && break ;;
21725 *)
21726 test "$with_gnu_ld" != yes && break ;;
21727 esac
21728 fi
21729 done
21730 IFS="$ac_save_ifs"
21731 else
21732 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21733 fi
21734 fi
21735
21736 LD="$acl_cv_path_LD"
21737 if test -n "$LD"; then
21738 { echo "$as_me:$LINENO: result: $LD" >&5
21739 echo "${ECHO_T}$LD" >&6; }
21740 else
21741 { echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6; }
21743 fi
21744 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21745 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21746 { (exit 1); exit 1; }; }
21747 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21748 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
21749 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21753 case `$LD -v 2>&1 </dev/null` in
21754 *GNU* | *'with BFD'*)
21755 acl_cv_prog_gnu_ld=yes ;;
21756 *)
21757 acl_cv_prog_gnu_ld=no ;;
21758 esac
21759 fi
21760 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21761 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
21762 with_gnu_ld=$acl_cv_prog_gnu_ld
21763
21764
21765
21766
21767 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21768 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
21769 if test "${acl_cv_rpath+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21772
21773 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21774 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21775 . ./conftest.sh
21776 rm -f ./conftest.sh
21777 acl_cv_rpath=done
21778
21779 fi
21780 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21781 echo "${ECHO_T}$acl_cv_rpath" >&6; }
21782 wl="$acl_cv_wl"
21783 acl_libext="$acl_cv_libext"
21784 acl_shlibext="$acl_cv_shlibext"
21785 acl_libname_spec="$acl_cv_libname_spec"
21786 acl_library_names_spec="$acl_cv_library_names_spec"
21787 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21788 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21789 acl_hardcode_direct="$acl_cv_hardcode_direct"
21790 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
21791 # Check whether --enable-rpath was given.
21792 if test "${enable_rpath+set}" = set; then
21793 enableval=$enable_rpath; :
21794 else
21795 enable_rpath=yes
21796 fi
21797
21798
21799
21800 acl_libdirstem=lib
21801 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
21802 if test -n "$searchpath"; then
21803 acl_save_IFS="${IFS= }"; IFS=":"
21804 for searchdir in $searchpath; do
21805 if test -d "$searchdir"; then
21806 case "$searchdir" in
21807 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
21808 *) searchdir=`cd "$searchdir" && pwd`
21809 case "$searchdir" in
21810 */lib64 ) acl_libdirstem=lib64 ;;
21811 esac ;;
21812 esac
21813 fi
21814 done
21815 IFS="$acl_save_IFS"
21816 fi
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826 use_additional=yes
21827
21828 acl_save_prefix="$prefix"
21829 prefix="$acl_final_prefix"
21830 acl_save_exec_prefix="$exec_prefix"
21831 exec_prefix="$acl_final_exec_prefix"
21832
21833 eval additional_includedir=\"$includedir\"
21834 eval additional_libdir=\"$libdir\"
21835
21836 exec_prefix="$acl_save_exec_prefix"
21837 prefix="$acl_save_prefix"
21838
21839
21840 # Check whether --with-libiconv-prefix was given.
21841 if test "${with_libiconv_prefix+set}" = set; then
21842 withval=$with_libiconv_prefix;
21843 if test "X$withval" = "Xno"; then
21844 use_additional=no
21845 else
21846 if test "X$withval" = "X"; then
21847
21848 acl_save_prefix="$prefix"
21849 prefix="$acl_final_prefix"
21850 acl_save_exec_prefix="$exec_prefix"
21851 exec_prefix="$acl_final_exec_prefix"
21852
21853 eval additional_includedir=\"$includedir\"
21854 eval additional_libdir=\"$libdir\"
21855
21856 exec_prefix="$acl_save_exec_prefix"
21857 prefix="$acl_save_prefix"
21858
21859 else
21860 additional_includedir="$withval/include"
21861 additional_libdir="$withval/$acl_libdirstem"
21862 fi
21863 fi
21864
21865 fi
21866
21867 LIBICONV=
21868 LTLIBICONV=
21869 INCICONV=
21870 LIBICONV_PREFIX=
21871 rpathdirs=
21872 ltrpathdirs=
21873 names_already_handled=
21874 names_next_round='iconv '
21875 while test -n "$names_next_round"; do
21876 names_this_round="$names_next_round"
21877 names_next_round=
21878 for name in $names_this_round; do
21879 already_handled=
21880 for n in $names_already_handled; do
21881 if test "$n" = "$name"; then
21882 already_handled=yes
21883 break
21884 fi
21885 done
21886 if test -z "$already_handled"; then
21887 names_already_handled="$names_already_handled $name"
21888 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21889 eval value=\"\$HAVE_LIB$uppername\"
21890 if test -n "$value"; then
21891 if test "$value" = yes; then
21892 eval value=\"\$LIB$uppername\"
21893 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21894 eval value=\"\$LTLIB$uppername\"
21895 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21896 else
21897 :
21898 fi
21899 else
21900 found_dir=
21901 found_la=
21902 found_so=
21903 found_a=
21904 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21905 if test -n "$acl_shlibext"; then
21906 shrext=".$acl_shlibext" # typically: shrext=.so
21907 else
21908 shrext=
21909 fi
21910 if test $use_additional = yes; then
21911 dir="$additional_libdir"
21912 if test -n "$acl_shlibext"; then
21913 if test -f "$dir/$libname$shrext"; then
21914 found_dir="$dir"
21915 found_so="$dir/$libname$shrext"
21916 else
21917 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21918 ver=`(cd "$dir" && \
21919 for f in "$libname$shrext".*; do echo "$f"; done \
21920 | sed -e "s,^$libname$shrext\\\\.,," \
21921 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21922 | sed 1q ) 2>/dev/null`
21923 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21924 found_dir="$dir"
21925 found_so="$dir/$libname$shrext.$ver"
21926 fi
21927 else
21928 eval library_names=\"$acl_library_names_spec\"
21929 for f in $library_names; do
21930 if test -f "$dir/$f"; then
21931 found_dir="$dir"
21932 found_so="$dir/$f"
21933 break
21934 fi
21935 done
21936 fi
21937 fi
21938 fi
21939 if test "X$found_dir" = "X"; then
21940 if test -f "$dir/$libname.$acl_libext"; then
21941 found_dir="$dir"
21942 found_a="$dir/$libname.$acl_libext"
21943 fi
21944 fi
21945 if test "X$found_dir" != "X"; then
21946 if test -f "$dir/$libname.la"; then
21947 found_la="$dir/$libname.la"
21948 fi
21949 fi
21950 fi
21951 if test "X$found_dir" = "X"; then
21952 for x in $LDFLAGS $LTLIBICONV; do
21953
21954 acl_save_prefix="$prefix"
21955 prefix="$acl_final_prefix"
21956 acl_save_exec_prefix="$exec_prefix"
21957 exec_prefix="$acl_final_exec_prefix"
21958 eval x=\"$x\"
21959 exec_prefix="$acl_save_exec_prefix"
21960 prefix="$acl_save_prefix"
21961
21962 case "$x" in
21963 -L*)
21964 dir=`echo "X$x" | sed -e 's/^X-L//'`
21965 if test -n "$acl_shlibext"; then
21966 if test -f "$dir/$libname$shrext"; then
21967 found_dir="$dir"
21968 found_so="$dir/$libname$shrext"
21969 else
21970 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21971 ver=`(cd "$dir" && \
21972 for f in "$libname$shrext".*; do echo "$f"; done \
21973 | sed -e "s,^$libname$shrext\\\\.,," \
21974 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21975 | sed 1q ) 2>/dev/null`
21976 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21977 found_dir="$dir"
21978 found_so="$dir/$libname$shrext.$ver"
21979 fi
21980 else
21981 eval library_names=\"$acl_library_names_spec\"
21982 for f in $library_names; do
21983 if test -f "$dir/$f"; then
21984 found_dir="$dir"
21985 found_so="$dir/$f"
21986 break
21987 fi
21988 done
21989 fi
21990 fi
21991 fi
21992 if test "X$found_dir" = "X"; then
21993 if test -f "$dir/$libname.$acl_libext"; then
21994 found_dir="$dir"
21995 found_a="$dir/$libname.$acl_libext"
21996 fi
21997 fi
21998 if test "X$found_dir" != "X"; then
21999 if test -f "$dir/$libname.la"; then
22000 found_la="$dir/$libname.la"
22001 fi
22002 fi
22003 ;;
22004 esac
22005 if test "X$found_dir" != "X"; then
22006 break
22007 fi
22008 done
22009 fi
22010 if test "X$found_dir" != "X"; then
22011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22012 if test "X$found_so" != "X"; then
22013 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
22014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22015 else
22016 haveit=
22017 for x in $ltrpathdirs; do
22018 if test "X$x" = "X$found_dir"; then
22019 haveit=yes
22020 break
22021 fi
22022 done
22023 if test -z "$haveit"; then
22024 ltrpathdirs="$ltrpathdirs $found_dir"
22025 fi
22026 if test "$acl_hardcode_direct" = yes; then
22027 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22028 else
22029 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22030 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22031 haveit=
22032 for x in $rpathdirs; do
22033 if test "X$x" = "X$found_dir"; then
22034 haveit=yes
22035 break
22036 fi
22037 done
22038 if test -z "$haveit"; then
22039 rpathdirs="$rpathdirs $found_dir"
22040 fi
22041 else
22042 haveit=
22043 for x in $LDFLAGS $LIBICONV; do
22044
22045 acl_save_prefix="$prefix"
22046 prefix="$acl_final_prefix"
22047 acl_save_exec_prefix="$exec_prefix"
22048 exec_prefix="$acl_final_exec_prefix"
22049 eval x=\"$x\"
22050 exec_prefix="$acl_save_exec_prefix"
22051 prefix="$acl_save_prefix"
22052
22053 if test "X$x" = "X-L$found_dir"; then
22054 haveit=yes
22055 break
22056 fi
22057 done
22058 if test -z "$haveit"; then
22059 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22060 fi
22061 if test "$acl_hardcode_minus_L" != no; then
22062 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22063 else
22064 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22065 fi
22066 fi
22067 fi
22068 fi
22069 else
22070 if test "X$found_a" != "X"; then
22071 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22072 else
22073 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22074 fi
22075 fi
22076 additional_includedir=
22077 case "$found_dir" in
22078 */$acl_libdirstem | */$acl_libdirstem/)
22079 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22080 LIBICONV_PREFIX="$basedir"
22081 additional_includedir="$basedir/include"
22082 ;;
22083 esac
22084 if test "X$additional_includedir" != "X"; then
22085 if test "X$additional_includedir" != "X/usr/include"; then
22086 haveit=
22087 if test "X$additional_includedir" = "X/usr/local/include"; then
22088 if test -n "$GCC"; then
22089 case $host_os in
22090 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22091 esac
22092 fi
22093 fi
22094 if test -z "$haveit"; then
22095 for x in $CPPFLAGS $INCICONV; do
22096
22097 acl_save_prefix="$prefix"
22098 prefix="$acl_final_prefix"
22099 acl_save_exec_prefix="$exec_prefix"
22100 exec_prefix="$acl_final_exec_prefix"
22101 eval x=\"$x\"
22102 exec_prefix="$acl_save_exec_prefix"
22103 prefix="$acl_save_prefix"
22104
22105 if test "X$x" = "X-I$additional_includedir"; then
22106 haveit=yes
22107 break
22108 fi
22109 done
22110 if test -z "$haveit"; then
22111 if test -d "$additional_includedir"; then
22112 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22113 fi
22114 fi
22115 fi
22116 fi
22117 fi
22118 if test -n "$found_la"; then
22119 save_libdir="$libdir"
22120 case "$found_la" in
22121 */* | *\\*) . "$found_la" ;;
22122 *) . "./$found_la" ;;
22123 esac
22124 libdir="$save_libdir"
22125 for dep in $dependency_libs; do
22126 case "$dep" in
22127 -L*)
22128 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22129 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
22130 haveit=
22131 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
22132 if test -n "$GCC"; then
22133 case $host_os in
22134 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22135 esac
22136 fi
22137 fi
22138 if test -z "$haveit"; then
22139 haveit=
22140 for x in $LDFLAGS $LIBICONV; do
22141
22142 acl_save_prefix="$prefix"
22143 prefix="$acl_final_prefix"
22144 acl_save_exec_prefix="$exec_prefix"
22145 exec_prefix="$acl_final_exec_prefix"
22146 eval x=\"$x\"
22147 exec_prefix="$acl_save_exec_prefix"
22148 prefix="$acl_save_prefix"
22149
22150 if test "X$x" = "X-L$additional_libdir"; then
22151 haveit=yes
22152 break
22153 fi
22154 done
22155 if test -z "$haveit"; then
22156 if test -d "$additional_libdir"; then
22157 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22158 fi
22159 fi
22160 haveit=
22161 for x in $LDFLAGS $LTLIBICONV; do
22162
22163 acl_save_prefix="$prefix"
22164 prefix="$acl_final_prefix"
22165 acl_save_exec_prefix="$exec_prefix"
22166 exec_prefix="$acl_final_exec_prefix"
22167 eval x=\"$x\"
22168 exec_prefix="$acl_save_exec_prefix"
22169 prefix="$acl_save_prefix"
22170
22171 if test "X$x" = "X-L$additional_libdir"; then
22172 haveit=yes
22173 break
22174 fi
22175 done
22176 if test -z "$haveit"; then
22177 if test -d "$additional_libdir"; then
22178 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22179 fi
22180 fi
22181 fi
22182 fi
22183 ;;
22184 -R*)
22185 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22186 if test "$enable_rpath" != no; then
22187 haveit=
22188 for x in $rpathdirs; do
22189 if test "X$x" = "X$dir"; then
22190 haveit=yes
22191 break
22192 fi
22193 done
22194 if test -z "$haveit"; then
22195 rpathdirs="$rpathdirs $dir"
22196 fi
22197 haveit=
22198 for x in $ltrpathdirs; do
22199 if test "X$x" = "X$dir"; then
22200 haveit=yes
22201 break
22202 fi
22203 done
22204 if test -z "$haveit"; then
22205 ltrpathdirs="$ltrpathdirs $dir"
22206 fi
22207 fi
22208 ;;
22209 -l*)
22210 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22211 ;;
22212 *.la)
22213 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22214 ;;
22215 *)
22216 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22218 ;;
22219 esac
22220 done
22221 fi
22222 else
22223 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22224 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22225 fi
22226 fi
22227 fi
22228 done
22229 done
22230 if test "X$rpathdirs" != "X"; then
22231 if test -n "$acl_hardcode_libdir_separator"; then
22232 alldirs=
22233 for found_dir in $rpathdirs; do
22234 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22235 done
22236 acl_save_libdir="$libdir"
22237 libdir="$alldirs"
22238 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22239 libdir="$acl_save_libdir"
22240 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22241 else
22242 for found_dir in $rpathdirs; do
22243 acl_save_libdir="$libdir"
22244 libdir="$found_dir"
22245 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22246 libdir="$acl_save_libdir"
22247 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22248 done
22249 fi
22250 fi
22251 if test "X$ltrpathdirs" != "X"; then
22252 for found_dir in $ltrpathdirs; do
22253 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22254 done
22255 fi
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
22282 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
22283 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22285 else
22286 gt_save_LIBS="$LIBS"
22287 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22288 cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h. */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 #include <CoreFoundation/CFPreferences.h>
22295 int
22296 main ()
22297 {
22298 CFPreferencesCopyAppValue(NULL, NULL)
22299 ;
22300 return 0;
22301 }
22302 _ACEOF
22303 rm -f conftest.$ac_objext conftest$ac_exeext
22304 if { (ac_try="$ac_link"
22305 case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22308 esac
22309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22310 (eval "$ac_link") 2>conftest.er1
22311 ac_status=$?
22312 grep -v '^ *+' conftest.er1 >conftest.err
22313 rm -f conftest.er1
22314 cat conftest.err >&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } && {
22317 test -z "$ac_c_werror_flag" ||
22318 test ! -s conftest.err
22319 } && test -s conftest$ac_exeext &&
22320 $as_test_x conftest$ac_exeext; then
22321 gt_cv_func_CFPreferencesCopyAppValue=yes
22322 else
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326 gt_cv_func_CFPreferencesCopyAppValue=no
22327 fi
22328
22329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22330 conftest$ac_exeext conftest.$ac_ext
22331 LIBS="$gt_save_LIBS"
22332 fi
22333 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
22334 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
22335 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
22336
22337 cat >>confdefs.h <<\_ACEOF
22338 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
22339 _ACEOF
22340
22341 fi
22342 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
22343 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
22344 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347 gt_save_LIBS="$LIBS"
22348 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
22349 cat >conftest.$ac_ext <<_ACEOF
22350 /* confdefs.h. */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355 #include <CoreFoundation/CFLocale.h>
22356 int
22357 main ()
22358 {
22359 CFLocaleCopyCurrent();
22360 ;
22361 return 0;
22362 }
22363 _ACEOF
22364 rm -f conftest.$ac_objext conftest$ac_exeext
22365 if { (ac_try="$ac_link"
22366 case "(($ac_try" in
22367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368 *) ac_try_echo=$ac_try;;
22369 esac
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_link") 2>conftest.er1
22372 ac_status=$?
22373 grep -v '^ *+' conftest.er1 >conftest.err
22374 rm -f conftest.er1
22375 cat conftest.err >&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } && {
22378 test -z "$ac_c_werror_flag" ||
22379 test ! -s conftest.err
22380 } && test -s conftest$ac_exeext &&
22381 $as_test_x conftest$ac_exeext; then
22382 gt_cv_func_CFLocaleCopyCurrent=yes
22383 else
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387 gt_cv_func_CFLocaleCopyCurrent=no
22388 fi
22389
22390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22391 conftest$ac_exeext conftest.$ac_ext
22392 LIBS="$gt_save_LIBS"
22393 fi
22394 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
22395 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
22396 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22397
22398 cat >>confdefs.h <<\_ACEOF
22399 #define HAVE_CFLOCALECOPYCURRENT 1
22400 _ACEOF
22401
22402 fi
22403 INTL_MACOSX_LIBS=
22404 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22405 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
22406 fi
22407
22408
22409
22410
22411
22412
22413 LIBINTL=
22414 LTLIBINTL=
22415 POSUB=
22416
22417 case " $gt_needs " in
22418 *" need-formatstring-macros "*) gt_api_version=3 ;;
22419 *" need-ngettext "*) gt_api_version=2 ;;
22420 *) gt_api_version=1 ;;
22421 esac
22422 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
22423 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
22424
22425 if test "$USE_NLS" = "yes"; then
22426 gt_use_preinstalled_gnugettext=no
22427
22428
22429 if test $gt_api_version -ge 3; then
22430 gt_revision_test_code='
22431 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
22432 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
22433 #endif
22434 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
22435 '
22436 else
22437 gt_revision_test_code=
22438 fi
22439 if test $gt_api_version -ge 2; then
22440 gt_expression_test_code=' + * ngettext ("", "", 0)'
22441 else
22442 gt_expression_test_code=
22443 fi
22444
22445 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22446 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
22447 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
22448 echo $ECHO_N "(cached) $ECHO_C" >&6
22449 else
22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h. */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 #include <libintl.h>
22457 $gt_revision_test_code
22458 extern int _nl_msg_cat_cntr;
22459 extern int *_nl_domain_bindings;
22460 int
22461 main ()
22462 {
22463 bindtextdomain ("", "");
22464 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
22465 ;
22466 return 0;
22467 }
22468 _ACEOF
22469 rm -f conftest.$ac_objext conftest$ac_exeext
22470 if { (ac_try="$ac_link"
22471 case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22474 esac
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476 (eval "$ac_link") 2>conftest.er1
22477 ac_status=$?
22478 grep -v '^ *+' conftest.er1 >conftest.err
22479 rm -f conftest.er1
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } && {
22483 test -z "$ac_c_werror_flag" ||
22484 test ! -s conftest.err
22485 } && test -s conftest$ac_exeext &&
22486 $as_test_x conftest$ac_exeext; then
22487 eval "$gt_func_gnugettext_libc=yes"
22488 else
22489 echo "$as_me: failed program was:" >&5
22490 sed 's/^/| /' conftest.$ac_ext >&5
22491
22492 eval "$gt_func_gnugettext_libc=no"
22493 fi
22494
22495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22496 conftest$ac_exeext conftest.$ac_ext
22497 fi
22498 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
22499 { echo "$as_me:$LINENO: result: $ac_res" >&5
22500 echo "${ECHO_T}$ac_res" >&6; }
22501
22502 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
22503
22504
22505
22506
22507
22508 am_save_CPPFLAGS="$CPPFLAGS"
22509
22510 for element in $INCICONV; do
22511 haveit=
22512 for x in $CPPFLAGS; do
22513
22514 acl_save_prefix="$prefix"
22515 prefix="$acl_final_prefix"
22516 acl_save_exec_prefix="$exec_prefix"
22517 exec_prefix="$acl_final_exec_prefix"
22518 eval x=\"$x\"
22519 exec_prefix="$acl_save_exec_prefix"
22520 prefix="$acl_save_prefix"
22521
22522 if test "X$x" = "X$element"; then
22523 haveit=yes
22524 break
22525 fi
22526 done
22527 if test -z "$haveit"; then
22528 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22529 fi
22530 done
22531
22532
22533 { echo "$as_me:$LINENO: checking for iconv" >&5
22534 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22535 if test "${am_cv_func_iconv+set}" = set; then
22536 echo $ECHO_N "(cached) $ECHO_C" >&6
22537 else
22538
22539 am_cv_func_iconv="no, consider installing GNU libiconv"
22540 am_cv_lib_iconv=no
22541 cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h. */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22547 #include <stdlib.h>
22548 #include <iconv.h>
22549 int
22550 main ()
22551 {
22552 iconv_t cd = iconv_open("","");
22553 iconv(cd,NULL,NULL,NULL,NULL);
22554 iconv_close(cd);
22555 ;
22556 return 0;
22557 }
22558 _ACEOF
22559 rm -f conftest.$ac_objext conftest$ac_exeext
22560 if { (ac_try="$ac_link"
22561 case "(($ac_try" in
22562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563 *) ac_try_echo=$ac_try;;
22564 esac
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566 (eval "$ac_link") 2>conftest.er1
22567 ac_status=$?
22568 grep -v '^ *+' conftest.er1 >conftest.err
22569 rm -f conftest.er1
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } && {
22573 test -z "$ac_c_werror_flag" ||
22574 test ! -s conftest.err
22575 } && test -s conftest$ac_exeext &&
22576 $as_test_x conftest$ac_exeext; then
22577 am_cv_func_iconv=yes
22578 else
22579 echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22581
22582
22583 fi
22584
22585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22586 conftest$ac_exeext conftest.$ac_ext
22587 if test "$am_cv_func_iconv" != yes; then
22588 am_save_LIBS="$LIBS"
22589 LIBS="$LIBS $LIBICONV"
22590 cat >conftest.$ac_ext <<_ACEOF
22591 /* confdefs.h. */
22592 _ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h. */
22596 #include <stdlib.h>
22597 #include <iconv.h>
22598 int
22599 main ()
22600 {
22601 iconv_t cd = iconv_open("","");
22602 iconv(cd,NULL,NULL,NULL,NULL);
22603 iconv_close(cd);
22604 ;
22605 return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext conftest$ac_exeext
22609 if { (ac_try="$ac_link"
22610 case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_link") 2>conftest.er1
22616 ac_status=$?
22617 grep -v '^ *+' conftest.er1 >conftest.err
22618 rm -f conftest.er1
22619 cat conftest.err >&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && {
22622 test -z "$ac_c_werror_flag" ||
22623 test ! -s conftest.err
22624 } && test -s conftest$ac_exeext &&
22625 $as_test_x conftest$ac_exeext; then
22626 am_cv_lib_iconv=yes
22627 am_cv_func_iconv=yes
22628 else
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22636 conftest$ac_exeext conftest.$ac_ext
22637 LIBS="$am_save_LIBS"
22638 fi
22639
22640 fi
22641 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22642 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22643 if test "$am_cv_func_iconv" = yes; then
22644 { echo "$as_me:$LINENO: checking for working iconv" >&5
22645 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
22646 if test "${am_cv_func_iconv_works+set}" = set; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 else
22649
22650 am_save_LIBS="$LIBS"
22651 if test $am_cv_lib_iconv = yes; then
22652 LIBS="$LIBS $LIBICONV"
22653 fi
22654 if test "$cross_compiling" = yes; then
22655 case "$host_os" in
22656 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
22657 *) am_cv_func_iconv_works="guessing yes" ;;
22658 esac
22659 else
22660 cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h. */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666
22667 #include <iconv.h>
22668 #include <string.h>
22669 int main ()
22670 {
22671 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
22672 returns. */
22673 {
22674 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
22675 if (cd_utf8_to_88591 != (iconv_t)(-1))
22676 {
22677 static const char input[] = "\342\202\254"; /* EURO SIGN */
22678 char buf[10];
22679 const char *inptr = input;
22680 size_t inbytesleft = strlen (input);
22681 char *outptr = buf;
22682 size_t outbytesleft = sizeof (buf);
22683 size_t res = iconv (cd_utf8_to_88591,
22684 (char **) &inptr, &inbytesleft,
22685 &outptr, &outbytesleft);
22686 if (res == 0)
22687 return 1;
22688 }
22689 }
22690 #if 0 /* This bug could be worked around by the caller. */
22691 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
22692 {
22693 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
22694 if (cd_88591_to_utf8 != (iconv_t)(-1))
22695 {
22696 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
22697 char buf[50];
22698 const char *inptr = input;
22699 size_t inbytesleft = strlen (input);
22700 char *outptr = buf;
22701 size_t outbytesleft = sizeof (buf);
22702 size_t res = iconv (cd_88591_to_utf8,
22703 (char **) &inptr, &inbytesleft,
22704 &outptr, &outbytesleft);
22705 if ((int)res > 0)
22706 return 1;
22707 }
22708 }
22709 #endif
22710 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
22711 provided. */
22712 if (/* Try standardized names. */
22713 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
22714 /* Try IRIX, OSF/1 names. */
22715 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
22716 /* Try AIX names. */
22717 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
22718 /* Try HP-UX names. */
22719 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
22720 return 1;
22721 return 0;
22722 }
22723 _ACEOF
22724 rm -f conftest$ac_exeext
22725 if { (ac_try="$ac_link"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22729 esac
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_link") 2>&5
22732 ac_status=$?
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22735 { (case "(($ac_try" in
22736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737 *) ac_try_echo=$ac_try;;
22738 esac
22739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22740 (eval "$ac_try") 2>&5
22741 ac_status=$?
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; }; then
22744 am_cv_func_iconv_works=yes
22745 else
22746 echo "$as_me: program exited with status $ac_status" >&5
22747 echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22749
22750 ( exit $ac_status )
22751 am_cv_func_iconv_works=no
22752 fi
22753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22754 fi
22755
22756
22757 LIBS="$am_save_LIBS"
22758
22759 fi
22760 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
22761 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
22762 case "$am_cv_func_iconv_works" in
22763 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
22764 *) am_func_iconv=yes ;;
22765 esac
22766 else
22767 am_func_iconv=no am_cv_lib_iconv=no
22768 fi
22769 if test "$am_func_iconv" = yes; then
22770
22771 cat >>confdefs.h <<\_ACEOF
22772 #define HAVE_ICONV 1
22773 _ACEOF
22774
22775 fi
22776 if test "$am_cv_lib_iconv" = yes; then
22777 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22778 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22779 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22780 echo "${ECHO_T}$LIBICONV" >&6; }
22781 else
22782 CPPFLAGS="$am_save_CPPFLAGS"
22783 LIBICONV=
22784 LTLIBICONV=
22785 fi
22786
22787
22788
22789
22790
22791
22792
22793
22794 use_additional=yes
22795
22796 acl_save_prefix="$prefix"
22797 prefix="$acl_final_prefix"
22798 acl_save_exec_prefix="$exec_prefix"
22799 exec_prefix="$acl_final_exec_prefix"
22800
22801 eval additional_includedir=\"$includedir\"
22802 eval additional_libdir=\"$libdir\"
22803
22804 exec_prefix="$acl_save_exec_prefix"
22805 prefix="$acl_save_prefix"
22806
22807
22808 # Check whether --with-libintl-prefix was given.
22809 if test "${with_libintl_prefix+set}" = set; then
22810 withval=$with_libintl_prefix;
22811 if test "X$withval" = "Xno"; then
22812 use_additional=no
22813 else
22814 if test "X$withval" = "X"; then
22815
22816 acl_save_prefix="$prefix"
22817 prefix="$acl_final_prefix"
22818 acl_save_exec_prefix="$exec_prefix"
22819 exec_prefix="$acl_final_exec_prefix"
22820
22821 eval additional_includedir=\"$includedir\"
22822 eval additional_libdir=\"$libdir\"
22823
22824 exec_prefix="$acl_save_exec_prefix"
22825 prefix="$acl_save_prefix"
22826
22827 else
22828 additional_includedir="$withval/include"
22829 additional_libdir="$withval/$acl_libdirstem"
22830 fi
22831 fi
22832
22833 fi
22834
22835 LIBINTL=
22836 LTLIBINTL=
22837 INCINTL=
22838 LIBINTL_PREFIX=
22839 rpathdirs=
22840 ltrpathdirs=
22841 names_already_handled=
22842 names_next_round='intl '
22843 while test -n "$names_next_round"; do
22844 names_this_round="$names_next_round"
22845 names_next_round=
22846 for name in $names_this_round; do
22847 already_handled=
22848 for n in $names_already_handled; do
22849 if test "$n" = "$name"; then
22850 already_handled=yes
22851 break
22852 fi
22853 done
22854 if test -z "$already_handled"; then
22855 names_already_handled="$names_already_handled $name"
22856 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22857 eval value=\"\$HAVE_LIB$uppername\"
22858 if test -n "$value"; then
22859 if test "$value" = yes; then
22860 eval value=\"\$LIB$uppername\"
22861 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
22862 eval value=\"\$LTLIB$uppername\"
22863 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
22864 else
22865 :
22866 fi
22867 else
22868 found_dir=
22869 found_la=
22870 found_so=
22871 found_a=
22872 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
22873 if test -n "$acl_shlibext"; then
22874 shrext=".$acl_shlibext" # typically: shrext=.so
22875 else
22876 shrext=
22877 fi
22878 if test $use_additional = yes; then
22879 dir="$additional_libdir"
22880 if test -n "$acl_shlibext"; then
22881 if test -f "$dir/$libname$shrext"; then
22882 found_dir="$dir"
22883 found_so="$dir/$libname$shrext"
22884 else
22885 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22886 ver=`(cd "$dir" && \
22887 for f in "$libname$shrext".*; do echo "$f"; done \
22888 | sed -e "s,^$libname$shrext\\\\.,," \
22889 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22890 | sed 1q ) 2>/dev/null`
22891 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22892 found_dir="$dir"
22893 found_so="$dir/$libname$shrext.$ver"
22894 fi
22895 else
22896 eval library_names=\"$acl_library_names_spec\"
22897 for f in $library_names; do
22898 if test -f "$dir/$f"; then
22899 found_dir="$dir"
22900 found_so="$dir/$f"
22901 break
22902 fi
22903 done
22904 fi
22905 fi
22906 fi
22907 if test "X$found_dir" = "X"; then
22908 if test -f "$dir/$libname.$acl_libext"; then
22909 found_dir="$dir"
22910 found_a="$dir/$libname.$acl_libext"
22911 fi
22912 fi
22913 if test "X$found_dir" != "X"; then
22914 if test -f "$dir/$libname.la"; then
22915 found_la="$dir/$libname.la"
22916 fi
22917 fi
22918 fi
22919 if test "X$found_dir" = "X"; then
22920 for x in $LDFLAGS $LTLIBINTL; do
22921
22922 acl_save_prefix="$prefix"
22923 prefix="$acl_final_prefix"
22924 acl_save_exec_prefix="$exec_prefix"
22925 exec_prefix="$acl_final_exec_prefix"
22926 eval x=\"$x\"
22927 exec_prefix="$acl_save_exec_prefix"
22928 prefix="$acl_save_prefix"
22929
22930 case "$x" in
22931 -L*)
22932 dir=`echo "X$x" | sed -e 's/^X-L//'`
22933 if test -n "$acl_shlibext"; then
22934 if test -f "$dir/$libname$shrext"; then
22935 found_dir="$dir"
22936 found_so="$dir/$libname$shrext"
22937 else
22938 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22939 ver=`(cd "$dir" && \
22940 for f in "$libname$shrext".*; do echo "$f"; done \
22941 | sed -e "s,^$libname$shrext\\\\.,," \
22942 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22943 | sed 1q ) 2>/dev/null`
22944 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22945 found_dir="$dir"
22946 found_so="$dir/$libname$shrext.$ver"
22947 fi
22948 else
22949 eval library_names=\"$acl_library_names_spec\"
22950 for f in $library_names; do
22951 if test -f "$dir/$f"; then
22952 found_dir="$dir"
22953 found_so="$dir/$f"
22954 break
22955 fi
22956 done
22957 fi
22958 fi
22959 fi
22960 if test "X$found_dir" = "X"; then
22961 if test -f "$dir/$libname.$acl_libext"; then
22962 found_dir="$dir"
22963 found_a="$dir/$libname.$acl_libext"
22964 fi
22965 fi
22966 if test "X$found_dir" != "X"; then
22967 if test -f "$dir/$libname.la"; then
22968 found_la="$dir/$libname.la"
22969 fi
22970 fi
22971 ;;
22972 esac
22973 if test "X$found_dir" != "X"; then
22974 break
22975 fi
22976 done
22977 fi
22978 if test "X$found_dir" != "X"; then
22979 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
22980 if test "X$found_so" != "X"; then
22981 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
22982 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22983 else
22984 haveit=
22985 for x in $ltrpathdirs; do
22986 if test "X$x" = "X$found_dir"; then
22987 haveit=yes
22988 break
22989 fi
22990 done
22991 if test -z "$haveit"; then
22992 ltrpathdirs="$ltrpathdirs $found_dir"
22993 fi
22994 if test "$acl_hardcode_direct" = yes; then
22995 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22996 else
22997 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22998 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22999 haveit=
23000 for x in $rpathdirs; do
23001 if test "X$x" = "X$found_dir"; then
23002 haveit=yes
23003 break
23004 fi
23005 done
23006 if test -z "$haveit"; then
23007 rpathdirs="$rpathdirs $found_dir"
23008 fi
23009 else
23010 haveit=
23011 for x in $LDFLAGS $LIBINTL; do
23012
23013 acl_save_prefix="$prefix"
23014 prefix="$acl_final_prefix"
23015 acl_save_exec_prefix="$exec_prefix"
23016 exec_prefix="$acl_final_exec_prefix"
23017 eval x=\"$x\"
23018 exec_prefix="$acl_save_exec_prefix"
23019 prefix="$acl_save_prefix"
23020
23021 if test "X$x" = "X-L$found_dir"; then
23022 haveit=yes
23023 break
23024 fi
23025 done
23026 if test -z "$haveit"; then
23027 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23028 fi
23029 if test "$acl_hardcode_minus_L" != no; then
23030 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23031 else
23032 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23033 fi
23034 fi
23035 fi
23036 fi
23037 else
23038 if test "X$found_a" != "X"; then
23039 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23040 else
23041 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23042 fi
23043 fi
23044 additional_includedir=
23045 case "$found_dir" in
23046 */$acl_libdirstem | */$acl_libdirstem/)
23047 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23048 LIBINTL_PREFIX="$basedir"
23049 additional_includedir="$basedir/include"
23050 ;;
23051 esac
23052 if test "X$additional_includedir" != "X"; then
23053 if test "X$additional_includedir" != "X/usr/include"; then
23054 haveit=
23055 if test "X$additional_includedir" = "X/usr/local/include"; then
23056 if test -n "$GCC"; then
23057 case $host_os in
23058 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23059 esac
23060 fi
23061 fi
23062 if test -z "$haveit"; then
23063 for x in $CPPFLAGS $INCINTL; do
23064
23065 acl_save_prefix="$prefix"
23066 prefix="$acl_final_prefix"
23067 acl_save_exec_prefix="$exec_prefix"
23068 exec_prefix="$acl_final_exec_prefix"
23069 eval x=\"$x\"
23070 exec_prefix="$acl_save_exec_prefix"
23071 prefix="$acl_save_prefix"
23072
23073 if test "X$x" = "X-I$additional_includedir"; then
23074 haveit=yes
23075 break
23076 fi
23077 done
23078 if test -z "$haveit"; then
23079 if test -d "$additional_includedir"; then
23080 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23081 fi
23082 fi
23083 fi
23084 fi
23085 fi
23086 if test -n "$found_la"; then
23087 save_libdir="$libdir"
23088 case "$found_la" in
23089 */* | *\\*) . "$found_la" ;;
23090 *) . "./$found_la" ;;
23091 esac
23092 libdir="$save_libdir"
23093 for dep in $dependency_libs; do
23094 case "$dep" in
23095 -L*)
23096 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23097 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
23098 haveit=
23099 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
23100 if test -n "$GCC"; then
23101 case $host_os in
23102 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23103 esac
23104 fi
23105 fi
23106 if test -z "$haveit"; then
23107 haveit=
23108 for x in $LDFLAGS $LIBINTL; do
23109
23110 acl_save_prefix="$prefix"
23111 prefix="$acl_final_prefix"
23112 acl_save_exec_prefix="$exec_prefix"
23113 exec_prefix="$acl_final_exec_prefix"
23114 eval x=\"$x\"
23115 exec_prefix="$acl_save_exec_prefix"
23116 prefix="$acl_save_prefix"
23117
23118 if test "X$x" = "X-L$additional_libdir"; then
23119 haveit=yes
23120 break
23121 fi
23122 done
23123 if test -z "$haveit"; then
23124 if test -d "$additional_libdir"; then
23125 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23126 fi
23127 fi
23128 haveit=
23129 for x in $LDFLAGS $LTLIBINTL; do
23130
23131 acl_save_prefix="$prefix"
23132 prefix="$acl_final_prefix"
23133 acl_save_exec_prefix="$exec_prefix"
23134 exec_prefix="$acl_final_exec_prefix"
23135 eval x=\"$x\"
23136 exec_prefix="$acl_save_exec_prefix"
23137 prefix="$acl_save_prefix"
23138
23139 if test "X$x" = "X-L$additional_libdir"; then
23140 haveit=yes
23141 break
23142 fi
23143 done
23144 if test -z "$haveit"; then
23145 if test -d "$additional_libdir"; then
23146 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23147 fi
23148 fi
23149 fi
23150 fi
23151 ;;
23152 -R*)
23153 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23154 if test "$enable_rpath" != no; then
23155 haveit=
23156 for x in $rpathdirs; do
23157 if test "X$x" = "X$dir"; then
23158 haveit=yes
23159 break
23160 fi
23161 done
23162 if test -z "$haveit"; then
23163 rpathdirs="$rpathdirs $dir"
23164 fi
23165 haveit=
23166 for x in $ltrpathdirs; do
23167 if test "X$x" = "X$dir"; then
23168 haveit=yes
23169 break
23170 fi
23171 done
23172 if test -z "$haveit"; then
23173 ltrpathdirs="$ltrpathdirs $dir"
23174 fi
23175 fi
23176 ;;
23177 -l*)
23178 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23179 ;;
23180 *.la)
23181 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23182 ;;
23183 *)
23184 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23185 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23186 ;;
23187 esac
23188 done
23189 fi
23190 else
23191 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23192 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23193 fi
23194 fi
23195 fi
23196 done
23197 done
23198 if test "X$rpathdirs" != "X"; then
23199 if test -n "$acl_hardcode_libdir_separator"; then
23200 alldirs=
23201 for found_dir in $rpathdirs; do
23202 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23203 done
23204 acl_save_libdir="$libdir"
23205 libdir="$alldirs"
23206 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23207 libdir="$acl_save_libdir"
23208 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23209 else
23210 for found_dir in $rpathdirs; do
23211 acl_save_libdir="$libdir"
23212 libdir="$found_dir"
23213 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23214 libdir="$acl_save_libdir"
23215 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23216 done
23217 fi
23218 fi
23219 if test "X$ltrpathdirs" != "X"; then
23220 for found_dir in $ltrpathdirs; do
23221 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23222 done
23223 fi
23224
23225 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23226 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23227 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23229 else
23230 gt_save_CPPFLAGS="$CPPFLAGS"
23231 CPPFLAGS="$CPPFLAGS $INCINTL"
23232 gt_save_LIBS="$LIBS"
23233 LIBS="$LIBS $LIBINTL"
23234 cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h. */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23240 #include <libintl.h>
23241 $gt_revision_test_code
23242 extern int _nl_msg_cat_cntr;
23243 extern
23244 #ifdef __cplusplus
23245 "C"
23246 #endif
23247 const char *_nl_expand_alias (const char *);
23248 int
23249 main ()
23250 {
23251 bindtextdomain ("", "");
23252 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23253 ;
23254 return 0;
23255 }
23256 _ACEOF
23257 rm -f conftest.$ac_objext conftest$ac_exeext
23258 if { (ac_try="$ac_link"
23259 case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_link") 2>conftest.er1
23265 ac_status=$?
23266 grep -v '^ *+' conftest.er1 >conftest.err
23267 rm -f conftest.er1
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } && {
23271 test -z "$ac_c_werror_flag" ||
23272 test ! -s conftest.err
23273 } && test -s conftest$ac_exeext &&
23274 $as_test_x conftest$ac_exeext; then
23275 eval "$gt_func_gnugettext_libintl=yes"
23276 else
23277 echo "$as_me: failed program was:" >&5
23278 sed 's/^/| /' conftest.$ac_ext >&5
23279
23280 eval "$gt_func_gnugettext_libintl=no"
23281 fi
23282
23283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23284 conftest$ac_exeext conftest.$ac_ext
23285 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
23286 LIBS="$LIBS $LIBICONV"
23287 cat >conftest.$ac_ext <<_ACEOF
23288 /* confdefs.h. */
23289 _ACEOF
23290 cat confdefs.h >>conftest.$ac_ext
23291 cat >>conftest.$ac_ext <<_ACEOF
23292 /* end confdefs.h. */
23293 #include <libintl.h>
23294 $gt_revision_test_code
23295 extern int _nl_msg_cat_cntr;
23296 extern
23297 #ifdef __cplusplus
23298 "C"
23299 #endif
23300 const char *_nl_expand_alias (const char *);
23301 int
23302 main ()
23303 {
23304 bindtextdomain ("", "");
23305 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23306 ;
23307 return 0;
23308 }
23309 _ACEOF
23310 rm -f conftest.$ac_objext conftest$ac_exeext
23311 if { (ac_try="$ac_link"
23312 case "(($ac_try" in
23313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314 *) ac_try_echo=$ac_try;;
23315 esac
23316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23317 (eval "$ac_link") 2>conftest.er1
23318 ac_status=$?
23319 grep -v '^ *+' conftest.er1 >conftest.err
23320 rm -f conftest.er1
23321 cat conftest.err >&5
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); } && {
23324 test -z "$ac_c_werror_flag" ||
23325 test ! -s conftest.err
23326 } && test -s conftest$ac_exeext &&
23327 $as_test_x conftest$ac_exeext; then
23328 LIBINTL="$LIBINTL $LIBICONV"
23329 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23330 eval "$gt_func_gnugettext_libintl=yes"
23331
23332 else
23333 echo "$as_me: failed program was:" >&5
23334 sed 's/^/| /' conftest.$ac_ext >&5
23335
23336
23337 fi
23338
23339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23340 conftest$ac_exeext conftest.$ac_ext
23341 fi
23342 CPPFLAGS="$gt_save_CPPFLAGS"
23343 LIBS="$gt_save_LIBS"
23344 fi
23345 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
23346 { echo "$as_me:$LINENO: result: $ac_res" >&5
23347 echo "${ECHO_T}$ac_res" >&6; }
23348 fi
23349
23350 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
23351 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
23352 && test "$PACKAGE" != gettext-runtime \
23353 && test "$PACKAGE" != gettext-tools; }; then
23354 gt_use_preinstalled_gnugettext=yes
23355 else
23356 LIBINTL=
23357 LTLIBINTL=
23358 INCINTL=
23359 fi
23360
23361
23362
23363 if test -n "$INTL_MACOSX_LIBS"; then
23364 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23365 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23366 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23367 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23368 fi
23369 fi
23370
23371 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23372 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23373
23374 cat >>confdefs.h <<\_ACEOF
23375 #define ENABLE_NLS 1
23376 _ACEOF
23377
23378 else
23379 USE_NLS=no
23380 fi
23381 fi
23382
23383 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23384 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23385 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23386 echo "${ECHO_T}$USE_NLS" >&6; }
23387 if test "$USE_NLS" = "yes"; then
23388 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23389 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23390 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23391 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
23392 gt_source="external libintl"
23393 else
23394 gt_source="libc"
23395 fi
23396 else
23397 gt_source="included intl directory"
23398 fi
23399 { echo "$as_me:$LINENO: result: $gt_source" >&5
23400 echo "${ECHO_T}$gt_source" >&6; }
23401 fi
23402
23403 if test "$USE_NLS" = "yes"; then
23404
23405 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23406 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
23407 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23408 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23409 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23410 echo "${ECHO_T}$LIBINTL" >&6; }
23411
23412 for element in $INCINTL; do
23413 haveit=
23414 for x in $CPPFLAGS; do
23415
23416 acl_save_prefix="$prefix"
23417 prefix="$acl_final_prefix"
23418 acl_save_exec_prefix="$exec_prefix"
23419 exec_prefix="$acl_final_exec_prefix"
23420 eval x=\"$x\"
23421 exec_prefix="$acl_save_exec_prefix"
23422 prefix="$acl_save_prefix"
23423
23424 if test "X$x" = "X$element"; then
23425 haveit=yes
23426 break
23427 fi
23428 done
23429 if test -z "$haveit"; then
23430 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23431 fi
23432 done
23433
23434 fi
23435
23436
23437 cat >>confdefs.h <<\_ACEOF
23438 #define HAVE_GETTEXT 1
23439 _ACEOF
23440
23441
23442 cat >>confdefs.h <<\_ACEOF
23443 #define HAVE_DCGETTEXT 1
23444 _ACEOF
23445
23446 fi
23447
23448 POSUB=po
23449 fi
23450
23451
23452
23453 INTLLIBS="$LIBINTL"
23454
23455
23456
23457
23458
23459
23460
23461
23462 if test "$DATADIRNAME" = ""; then
23463 DATADIRNAME="share"
23464
23465 fi
23466
23467 if test "${prefix}" = "NONE"; then
23468 cat >>confdefs.h <<_ACEOF
23469 #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
23470 _ACEOF
23471
23472 else
23473 cat >>confdefs.h <<_ACEOF
23474 #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
23475 _ACEOF
23476
23477 fi
23478
23479
23480 build_hcal=yes
23481
23482 # Check whether --enable-hcal was given.
23483 if test "${enable_hcal+set}" = set; then
23484 enableval=$enable_hcal; build_hcal=no
23485 else
23486 build_hcal=yes
23487 fi
23488
23489
23490
23491
23492 if test "$build_hcal" = "yes"; then
23493 WITH_HCAL_TRUE=
23494 WITH_HCAL_FALSE='#'
23495 else
23496 WITH_HCAL_TRUE='#'
23497 WITH_HCAL_FALSE=
23498 fi
23499
23500
23501
23502
23503
23504
23505
23506 ac_config_files="$ac_config_files Makefile libhdate.pc po/Makefile.in docs/Makefile docs/man/Makefile docs/man/man1/Makefile docs/man/man3/Makefile src/Makefile examples/Makefile examples/hcal/Makefile examples/bindings/Makefile bindings/Makefile bindings/python/Makefile bindings/perl/Makefile bindings/pascal/Makefile"
23507
23508 cat >confcache <<\_ACEOF
23509 # This file is a shell script that caches the results of configure
23510 # tests run on this system so they can be shared between configure
23511 # scripts and configure runs, see configure's option --config-cache.
23512 # It is not useful on other systems. If it contains results you don't
23513 # want to keep, you may remove or edit it.
23514 #
23515 # config.status only pays attention to the cache file if you give it
23516 # the --recheck option to rerun configure.
23517 #
23518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23520 # following values.
23521
23522 _ACEOF
23523
23524 # The following way of writing the cache mishandles newlines in values,
23525 # but we know of no workaround that is simple, portable, and efficient.
23526 # So, we kill variables containing newlines.
23527 # Ultrix sh set writes to stderr and can't be redirected directly,
23528 # and sets the high bit in the cache file unless we assign to the vars.
23529 (
23530 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23531 eval ac_val=\$$ac_var
23532 case $ac_val in #(
23533 *${as_nl}*)
23534 case $ac_var in #(
23535 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23536 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23537 esac
23538 case $ac_var in #(
23539 _ | IFS | as_nl) ;; #(
23540 *) $as_unset $ac_var ;;
23541 esac ;;
23542 esac
23543 done
23544
23545 (set) 2>&1 |
23546 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23547 *${as_nl}ac_space=\ *)
23548 # `set' does not quote correctly, so add quotes (double-quote
23549 # substitution turns \\\\ into \\, and sed turns \\ into \).
23550 sed -n \
23551 "s/'/'\\\\''/g;
23552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23553 ;; #(
23554 *)
23555 # `set' quotes correctly as required by POSIX, so do not add quotes.
23556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23557 ;;
23558 esac |
23559 sort
23560 ) |
23561 sed '
23562 /^ac_cv_env_/b end
23563 t clear
23564 :clear
23565 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23566 t end
23567 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23568 :end' >>confcache
23569 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23570 if test -w "$cache_file"; then
23571 test "x$cache_file" != "x/dev/null" &&
23572 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23573 echo "$as_me: updating cache $cache_file" >&6;}
23574 cat confcache >$cache_file
23575 else
23576 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23577 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23578 fi
23579 fi
23580 rm -f confcache
23581
23582 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23583 # Let make expand exec_prefix.
23584 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23585
23586 # Transform confdefs.h into DEFS.
23587 # Protect against shell expansion while executing Makefile rules.
23588 # Protect against Makefile macro expansion.
23589 #
23590 # If the first sed substitution is executed (which looks for macros that
23591 # take arguments), then branch to the quote section. Otherwise,
23592 # look for a macro that doesn't take arguments.
23593 ac_script='
23594 t clear
23595 :clear
23596 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
23597 t quote
23598 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
23599 t quote
23600 b any
23601 :quote
23602 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
23603 s/\[/\\&/g
23604 s/\]/\\&/g
23605 s/\$/$$/g
23606 H
23607 :any
23608 ${
23609 g
23610 s/^\n//
23611 s/\n/ /g
23612 p
23613 }
23614 '
23615 DEFS=`sed -n "$ac_script" confdefs.h`
23616
23617
23618 ac_libobjs=
23619 ac_ltlibobjs=
23620 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23621 # 1. Remove the extension, and $U if already installed.
23622 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23623 ac_i=`echo "$ac_i" | sed "$ac_script"`
23624 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23625 # will be set to the directory where LIBOBJS objects are built.
23626 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23627 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23628 done
23629 LIBOBJS=$ac_libobjs
23630
23631 LTLIBOBJS=$ac_ltlibobjs
23632
23633
23634 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23635 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23636 Usually this means the macro was only invoked conditionally." >&5
23637 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23638 Usually this means the macro was only invoked conditionally." >&2;}
23639 { (exit 1); exit 1; }; }
23640 fi
23641 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23642 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23643 Usually this means the macro was only invoked conditionally." >&5
23644 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23645 Usually this means the macro was only invoked conditionally." >&2;}
23646 { (exit 1); exit 1; }; }
23647 fi
23648 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23649 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23650 Usually this means the macro was only invoked conditionally." >&5
23651 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23652 Usually this means the macro was only invoked conditionally." >&2;}
23653 { (exit 1); exit 1; }; }
23654 fi
23655 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23656 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23657 Usually this means the macro was only invoked conditionally." >&5
23658 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23659 Usually this means the macro was only invoked conditionally." >&2;}
23660 { (exit 1); exit 1; }; }
23661 fi
23662 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23663 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23664 Usually this means the macro was only invoked conditionally." >&5
23665 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23666 Usually this means the macro was only invoked conditionally." >&2;}
23667 { (exit 1); exit 1; }; }
23668 fi
23669 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23670 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23671 Usually this means the macro was only invoked conditionally." >&5
23672 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23673 Usually this means the macro was only invoked conditionally." >&2;}
23674 { (exit 1); exit 1; }; }
23675 fi
23676 if test -z "${WITH_PASCAL_TRUE}" && test -z "${WITH_PASCAL_FALSE}"; then
23677 { { echo "$as_me:$LINENO: error: conditional \"WITH_PASCAL\" was never defined.
23678 Usually this means the macro was only invoked conditionally." >&5
23679 echo "$as_me: error: conditional \"WITH_PASCAL\" was never defined.
23680 Usually this means the macro was only invoked conditionally." >&2;}
23681 { (exit 1); exit 1; }; }
23682 fi
23683 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
23684 { { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined.
23685 Usually this means the macro was only invoked conditionally." >&5
23686 echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
23687 Usually this means the macro was only invoked conditionally." >&2;}
23688 { (exit 1); exit 1; }; }
23689 fi
23690 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
23691 { { echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
23692 Usually this means the macro was only invoked conditionally." >&5
23693 echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
23694 Usually this means the macro was only invoked conditionally." >&2;}
23695 { (exit 1); exit 1; }; }
23696 fi
23697 if test -z "${WITH_HCAL_TRUE}" && test -z "${WITH_HCAL_FALSE}"; then
23698 { { echo "$as_me:$LINENO: error: conditional \"WITH_HCAL\" was never defined.
23699 Usually this means the macro was only invoked conditionally." >&5
23700 echo "$as_me: error: conditional \"WITH_HCAL\" was never defined.
23701 Usually this means the macro was only invoked conditionally." >&2;}
23702 { (exit 1); exit 1; }; }
23703 fi
23704
23705 : ${CONFIG_STATUS=./config.status}
23706 ac_clean_files_save=$ac_clean_files
23707 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23708 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23709 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23710 cat >$CONFIG_STATUS <<_ACEOF
23711 #! $SHELL
23712 # Generated by $as_me.
23713 # Run this file to recreate the current configuration.
23714 # Compiler output produced by configure, useful for debugging
23715 # configure, is in config.log if it exists.
23716
23717 debug=false
23718 ac_cs_recheck=false
23719 ac_cs_silent=false
23720 SHELL=\${CONFIG_SHELL-$SHELL}
23721 _ACEOF
23722
23723 cat >>$CONFIG_STATUS <<\_ACEOF
23724 ## --------------------- ##
23725 ## M4sh Initialization. ##
23726 ## --------------------- ##
23727
23728 # Be more Bourne compatible
23729 DUALCASE=1; export DUALCASE # for MKS sh
23730 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23731 emulate sh
23732 NULLCMD=:
23733 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23734 # is contrary to our usage. Disable this feature.
23735 alias -g '${1+"$@"}'='"$@"'
23736 setopt NO_GLOB_SUBST
23737 else
23738 case `(set -o) 2>/dev/null` in
23739 *posix*) set -o posix ;;
23740 esac
23741
23742 fi
23743
23744
23745
23746
23747 # PATH needs CR
23748 # Avoid depending upon Character Ranges.
23749 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23750 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23751 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23752 as_cr_digits='0123456789'
23753 as_cr_alnum=$as_cr_Letters$as_cr_digits
23754
23755 # The user is always right.
23756 if test "${PATH_SEPARATOR+set}" != set; then
23757 echo "#! /bin/sh" >conf$$.sh
23758 echo "exit 0" >>conf$$.sh
23759 chmod +x conf$$.sh
23760 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23761 PATH_SEPARATOR=';'
23762 else
23763 PATH_SEPARATOR=:
23764 fi
23765 rm -f conf$$.sh
23766 fi
23767
23768 # Support unset when possible.
23769 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23770 as_unset=unset
23771 else
23772 as_unset=false
23773 fi
23774
23775
23776 # IFS
23777 # We need space, tab and new line, in precisely that order. Quoting is
23778 # there to prevent editors from complaining about space-tab.
23779 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23780 # splitting by setting IFS to empty value.)
23781 as_nl='
23782 '
23783 IFS=" "" $as_nl"
23784
23785 # Find who we are. Look in the path if we contain no directory separator.
23786 case $0 in
23787 *[\\/]* ) as_myself=$0 ;;
23788 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23789 for as_dir in $PATH
23790 do
23791 IFS=$as_save_IFS
23792 test -z "$as_dir" && as_dir=.
23793 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23794 done
23795 IFS=$as_save_IFS
23796
23797 ;;
23798 esac
23799 # We did not find ourselves, most probably we were run as `sh COMMAND'
23800 # in which case we are not to be found in the path.
23801 if test "x$as_myself" = x; then
23802 as_myself=$0
23803 fi
23804 if test ! -f "$as_myself"; then
23805 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23806 { (exit 1); exit 1; }
23807 fi
23808
23809 # Work around bugs in pre-3.0 UWIN ksh.
23810 for as_var in ENV MAIL MAILPATH
23811 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23812 done
23813 PS1='$ '
23814 PS2='> '
23815 PS4='+ '
23816
23817 # NLS nuisances.
23818 for as_var in \
23819 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23820 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23821 LC_TELEPHONE LC_TIME
23822 do
23823 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23824 eval $as_var=C; export $as_var
23825 else
23826 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23827 fi
23828 done
23829
23830 # Required to use basename.
23831 if expr a : '\(a\)' >/dev/null 2>&1 &&
23832 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23833 as_expr=expr
23834 else
23835 as_expr=false
23836 fi
23837
23838 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23839 as_basename=basename
23840 else
23841 as_basename=false
23842 fi
23843
23844
23845 # Name of the executable.
23846 as_me=`$as_basename -- "$0" ||
23847 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23848 X"$0" : 'X\(//\)$' \| \
23849 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23850 echo X/"$0" |
23851 sed '/^.*\/\([^/][^/]*\)\/*$/{
23852 s//\1/
23853 q
23854 }
23855 /^X\/\(\/\/\)$/{
23856 s//\1/
23857 q
23858 }
23859 /^X\/\(\/\).*/{
23860 s//\1/
23861 q
23862 }
23863 s/.*/./; q'`
23864
23865 # CDPATH.
23866 $as_unset CDPATH
23867
23868
23869
23870 as_lineno_1=$LINENO
23871 as_lineno_2=$LINENO
23872 test "x$as_lineno_1" != "x$as_lineno_2" &&
23873 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23874
23875 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23876 # uniformly replaced by the line number. The first 'sed' inserts a
23877 # line-number line after each line using $LINENO; the second 'sed'
23878 # does the real work. The second script uses 'N' to pair each
23879 # line-number line with the line containing $LINENO, and appends
23880 # trailing '-' during substitution so that $LINENO is not a special
23881 # case at line end.
23882 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23883 # scripts with optimization help from Paolo Bonzini. Blame Lee
23884 # E. McMahon (1931-1989) for sed's syntax. :-)
23885 sed -n '
23886 p
23887 /[$]LINENO/=
23888 ' <$as_myself |
23889 sed '
23890 s/[$]LINENO.*/&-/
23891 t lineno
23892 b
23893 :lineno
23894 N
23895 :loop
23896 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23897 t loop
23898 s/-\n.*//
23899 ' >$as_me.lineno &&
23900 chmod +x "$as_me.lineno" ||
23901 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23902 { (exit 1); exit 1; }; }
23903
23904 # Don't try to exec as it changes $[0], causing all sort of problems
23905 # (the dirname of $[0] is not the place where we might find the
23906 # original and so on. Autoconf is especially sensitive to this).
23907 . "./$as_me.lineno"
23908 # Exit status is that of the last command.
23909 exit
23910 }
23911
23912
23913 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23914 as_dirname=dirname
23915 else
23916 as_dirname=false
23917 fi
23918
23919 ECHO_C= ECHO_N= ECHO_T=
23920 case `echo -n x` in
23921 -n*)
23922 case `echo 'x\c'` in
23923 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23924 *) ECHO_C='\c';;
23925 esac;;
23926 *)
23927 ECHO_N='-n';;
23928 esac
23929
23930 if expr a : '\(a\)' >/dev/null 2>&1 &&
23931 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23932 as_expr=expr
23933 else
23934 as_expr=false
23935 fi
23936
23937 rm -f conf$$ conf$$.exe conf$$.file
23938 if test -d conf$$.dir; then
23939 rm -f conf$$.dir/conf$$.file
23940 else
23941 rm -f conf$$.dir
23942 mkdir conf$$.dir
23943 fi
23944 echo >conf$$.file
23945 if ln -s conf$$.file conf$$ 2>/dev/null; then
23946 as_ln_s='ln -s'
23947 # ... but there are two gotchas:
23948 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23949 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23950 # In both cases, we have to default to `cp -p'.
23951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23952 as_ln_s='cp -p'
23953 elif ln conf$$.file conf$$ 2>/dev/null; then
23954 as_ln_s=ln
23955 else
23956 as_ln_s='cp -p'
23957 fi
23958 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23959 rmdir conf$$.dir 2>/dev/null
23960
23961 if mkdir -p . 2>/dev/null; then
23962 as_mkdir_p=:
23963 else
23964 test -d ./-p && rmdir ./-p
23965 as_mkdir_p=false
23966 fi
23967
23968 if test -x / >/dev/null 2>&1; then
23969 as_test_x='test -x'
23970 else
23971 if ls -dL / >/dev/null 2>&1; then
23972 as_ls_L_option=L
23973 else
23974 as_ls_L_option=
23975 fi
23976 as_test_x='
23977 eval sh -c '\''
23978 if test -d "$1"; then
23979 test -d "$1/.";
23980 else
23981 case $1 in
23982 -*)set "./$1";;
23983 esac;
23984 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23985 ???[sx]*):;;*)false;;esac;fi
23986 '\'' sh
23987 '
23988 fi
23989 as_executable_p=$as_test_x
23990
23991 # Sed expression to map a string onto a valid CPP name.
23992 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23993
23994 # Sed expression to map a string onto a valid variable name.
23995 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23996
23997
23998 exec 6>&1
23999
24000 # Save the log message, to keep $[0] and so on meaningful, and to
24001 # report actual input values of CONFIG_FILES etc. instead of their
24002 # values after options handling.
24003 ac_log="
24004 This file was extended by $as_me, which was
24005 generated by GNU Autoconf 2.61. Invocation command line was
24006
24007 CONFIG_FILES = $CONFIG_FILES
24008 CONFIG_HEADERS = $CONFIG_HEADERS
24009 CONFIG_LINKS = $CONFIG_LINKS
24010 CONFIG_COMMANDS = $CONFIG_COMMANDS
24011 $ $0 $@
24012
24013 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24014 "
24015
24016 _ACEOF
24017
24018 cat >>$CONFIG_STATUS <<_ACEOF
24019 # Files that config.status was made for.
24020 config_files="$ac_config_files"
24021 config_commands="$ac_config_commands"
24022
24023 _ACEOF
24024
24025 cat >>$CONFIG_STATUS <<\_ACEOF
24026 ac_cs_usage="\
24027 \`$as_me' instantiates files from templates according to the
24028 current configuration.
24029
24030 Usage: $0 [OPTIONS] [FILE]...
24031
24032 -h, --help print this help, then exit
24033 -V, --version print version number and configuration settings, then exit
24034 -q, --quiet do not print progress messages
24035 -d, --debug don't remove temporary files
24036 --recheck update $as_me by reconfiguring in the same conditions
24037 --file=FILE[:TEMPLATE]
24038 instantiate the configuration file FILE
24039
24040 Configuration files:
24041 $config_files
24042
24043 Configuration commands:
24044 $config_commands
24045
24046 Report bugs to <bug-autoconf@gnu.org>."
24047
24048 _ACEOF
24049 cat >>$CONFIG_STATUS <<_ACEOF
24050 ac_cs_version="\\
24051 config.status
24052 configured by $0, generated by GNU Autoconf 2.61,
24053 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24054
24055 Copyright (C) 2006 Free Software Foundation, Inc.
24056 This config.status script is free software; the Free Software Foundation
24057 gives unlimited permission to copy, distribute and modify it."
24058
24059 ac_pwd='$ac_pwd'
24060 srcdir='$srcdir'
24061 INSTALL='$INSTALL'
24062 _ACEOF
24063
24064 cat >>$CONFIG_STATUS <<\_ACEOF
24065 # If no file are specified by the user, then we need to provide default
24066 # value. By we need to know if files were specified by the user.
24067 ac_need_defaults=:
24068 while test $# != 0
24069 do
24070 case $1 in
24071 --*=*)
24072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24073 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24074 ac_shift=:
24075 ;;
24076 *)
24077 ac_option=$1
24078 ac_optarg=$2
24079 ac_shift=shift
24080 ;;
24081 esac
24082
24083 case $ac_option in
24084 # Handling of the options.
24085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24086 ac_cs_recheck=: ;;
24087 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24088 echo "$ac_cs_version"; exit ;;
24089 --debug | --debu | --deb | --de | --d | -d )
24090 debug=: ;;
24091 --file | --fil | --fi | --f )
24092 $ac_shift
24093 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24094 ac_need_defaults=false;;
24095 --he | --h | --help | --hel | -h )
24096 echo "$ac_cs_usage"; exit ;;
24097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24098 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24099 ac_cs_silent=: ;;
24100
24101 # This is an error.
24102 -*) { echo "$as_me: error: unrecognized option: $1
24103 Try \`$0 --help' for more information." >&2
24104 { (exit 1); exit 1; }; } ;;
24105
24106 *) ac_config_targets="$ac_config_targets $1"
24107 ac_need_defaults=false ;;
24108
24109 esac
24110 shift
24111 done
24112
24113 ac_configure_extra_args=
24114
24115 if $ac_cs_silent; then
24116 exec 6>/dev/null
24117 ac_configure_extra_args="$ac_configure_extra_args --silent"
24118 fi
24119
24120 _ACEOF
24121 cat >>$CONFIG_STATUS <<_ACEOF
24122 if \$ac_cs_recheck; then
24123 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24124 CONFIG_SHELL=$SHELL
24125 export CONFIG_SHELL
24126 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24127 fi
24128
24129 _ACEOF
24130 cat >>$CONFIG_STATUS <<\_ACEOF
24131 exec 5>>config.log
24132 {
24133 echo
24134 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24135 ## Running $as_me. ##
24136 _ASBOX
24137 echo "$ac_log"
24138 } >&5
24139
24140 _ACEOF
24141 cat >>$CONFIG_STATUS <<_ACEOF
24142 #
24143 # INIT-COMMANDS
24144 #
24145 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24146 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24147 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24148 # from automake < 1.5.
24149 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24150 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24151 LINGUAS="${LINGUAS-%UNSET%}"
24152
24153
24154 _ACEOF
24155
24156 cat >>$CONFIG_STATUS <<\_ACEOF
24157
24158 # Handling of arguments.
24159 for ac_config_target in $ac_config_targets
24160 do
24161 case $ac_config_target in
24162 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24163 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
24164 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24165 "libhdate.pc") CONFIG_FILES="$CONFIG_FILES libhdate.pc" ;;
24166 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24167 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
24168 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
24169 "docs/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/man1/Makefile" ;;
24170 "docs/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/man3/Makefile" ;;
24171 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24172 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
24173 "examples/hcal/Makefile") CONFIG_FILES="$CONFIG_FILES examples/hcal/Makefile" ;;
24174 "examples/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES examples/bindings/Makefile" ;;
24175 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
24176 "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;;
24177 "bindings/perl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/perl/Makefile" ;;
24178 "bindings/pascal/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/pascal/Makefile" ;;
24179
24180 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24181 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24182 { (exit 1); exit 1; }; };;
24183 esac
24184 done
24185
24186
24187 # If the user did not use the arguments to specify the items to instantiate,
24188 # then the envvar interface is used. Set only those that are not.
24189 # We use the long form for the default assignment because of an extremely
24190 # bizarre bug on SunOS 4.1.3.
24191 if $ac_need_defaults; then
24192 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24193 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24194 fi
24195
24196 # Have a temporary directory for convenience. Make it in the build tree
24197 # simply because there is no reason against having it here, and in addition,
24198 # creating and moving files from /tmp can sometimes cause problems.
24199 # Hook for its removal unless debugging.
24200 # Note that there is a small window in which the directory will not be cleaned:
24201 # after its creation but before its name has been assigned to `$tmp'.
24202 $debug ||
24203 {
24204 tmp=
24205 trap 'exit_status=$?
24206 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24207 ' 0
24208 trap '{ (exit 1); exit 1; }' 1 2 13 15
24209 }
24210 # Create a (secure) tmp directory for tmp files.
24211
24212 {
24213 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24214 test -n "$tmp" && test -d "$tmp"
24215 } ||
24216 {
24217 tmp=./conf$$-$RANDOM
24218 (umask 077 && mkdir "$tmp")
24219 } ||
24220 {
24221 echo "$me: cannot create a temporary directory in ." >&2
24222 { (exit 1); exit 1; }
24223 }
24224
24225 #
24226 # Set up the sed scripts for CONFIG_FILES section.
24227 #
24228
24229 # No need to generate the scripts if there are no CONFIG_FILES.
24230 # This happens for instance when ./config.status config.h
24231 if test -n "$CONFIG_FILES"; then
24232
24233 _ACEOF
24234
24235
24236
24237 ac_delim='%!_!# '
24238 for ac_last_try in false false false false false :; do
24239 cat >conf$$subs.sed <<_ACEOF
24240 SHELL!$SHELL$ac_delim
24241 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24242 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24243 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24244 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24245 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24246 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24247 exec_prefix!$exec_prefix$ac_delim
24248 prefix!$prefix$ac_delim
24249 program_transform_name!$program_transform_name$ac_delim
24250 bindir!$bindir$ac_delim
24251 sbindir!$sbindir$ac_delim
24252 libexecdir!$libexecdir$ac_delim
24253 datarootdir!$datarootdir$ac_delim
24254 datadir!$datadir$ac_delim
24255 sysconfdir!$sysconfdir$ac_delim
24256 sharedstatedir!$sharedstatedir$ac_delim
24257 localstatedir!$localstatedir$ac_delim
24258 includedir!$includedir$ac_delim
24259 oldincludedir!$oldincludedir$ac_delim
24260 docdir!$docdir$ac_delim
24261 infodir!$infodir$ac_delim
24262 htmldir!$htmldir$ac_delim
24263 dvidir!$dvidir$ac_delim
24264 pdfdir!$pdfdir$ac_delim
24265 psdir!$psdir$ac_delim
24266 libdir!$libdir$ac_delim
24267 localedir!$localedir$ac_delim
24268 mandir!$mandir$ac_delim
24269 DEFS!$DEFS$ac_delim
24270 ECHO_C!$ECHO_C$ac_delim
24271 ECHO_N!$ECHO_N$ac_delim
24272 ECHO_T!$ECHO_T$ac_delim
24273 LIBS!$LIBS$ac_delim
24274 build_alias!$build_alias$ac_delim
24275 host_alias!$host_alias$ac_delim
24276 target_alias!$target_alias$ac_delim
24277 VERSION_INFO!$VERSION_INFO$ac_delim
24278 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24279 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24280 INSTALL_DATA!$INSTALL_DATA$ac_delim
24281 CYGPATH_W!$CYGPATH_W$ac_delim
24282 PACKAGE!$PACKAGE$ac_delim
24283 VERSION!$VERSION$ac_delim
24284 ACLOCAL!$ACLOCAL$ac_delim
24285 AUTOCONF!$AUTOCONF$ac_delim
24286 AUTOMAKE!$AUTOMAKE$ac_delim
24287 AUTOHEADER!$AUTOHEADER$ac_delim
24288 MAKEINFO!$MAKEINFO$ac_delim
24289 install_sh!$install_sh$ac_delim
24290 STRIP!$STRIP$ac_delim
24291 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24292 mkdir_p!$mkdir_p$ac_delim
24293 AWK!$AWK$ac_delim
24294 SET_MAKE!$SET_MAKE$ac_delim
24295 am__leading_dot!$am__leading_dot$ac_delim
24296 AMTAR!$AMTAR$ac_delim
24297 am__tar!$am__tar$ac_delim
24298 am__untar!$am__untar$ac_delim
24299 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
24300 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
24301 MAINT!$MAINT$ac_delim
24302 CC!$CC$ac_delim
24303 CFLAGS!$CFLAGS$ac_delim
24304 LDFLAGS!$LDFLAGS$ac_delim
24305 CPPFLAGS!$CPPFLAGS$ac_delim
24306 ac_ct_CC!$ac_ct_CC$ac_delim
24307 EXEEXT!$EXEEXT$ac_delim
24308 OBJEXT!$OBJEXT$ac_delim
24309 DEPDIR!$DEPDIR$ac_delim
24310 am__include!$am__include$ac_delim
24311 am__quote!$am__quote$ac_delim
24312 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24313 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24314 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24315 CCDEPMODE!$CCDEPMODE$ac_delim
24316 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24317 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24318 CPP!$CPP$ac_delim
24319 GREP!$GREP$ac_delim
24320 EGREP!$EGREP$ac_delim
24321 LN_S!$LN_S$ac_delim
24322 build!$build$ac_delim
24323 build_cpu!$build_cpu$ac_delim
24324 build_vendor!$build_vendor$ac_delim
24325 build_os!$build_os$ac_delim
24326 host!$host$ac_delim
24327 host_cpu!$host_cpu$ac_delim
24328 host_vendor!$host_vendor$ac_delim
24329 host_os!$host_os$ac_delim
24330 SED!$SED$ac_delim
24331 ECHO!$ECHO$ac_delim
24332 AR!$AR$ac_delim
24333 RANLIB!$RANLIB$ac_delim
24334 CXX!$CXX$ac_delim
24335 CXXFLAGS!$CXXFLAGS$ac_delim
24336 ac_ct_CXX!$ac_ct_CXX$ac_delim
24337 _ACEOF
24338
24339 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24340 break
24341 elif $ac_last_try; then
24342 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24343 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24344 { (exit 1); exit 1; }; }
24345 else
24346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24347 fi
24348 done
24349
24350 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24351 if test -n "$ac_eof"; then
24352 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24353 ac_eof=`expr $ac_eof + 1`
24354 fi
24355
24356 cat >>$CONFIG_STATUS <<_ACEOF
24357 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24359 _ACEOF
24360 sed '
24361 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24362 s/^/s,@/; s/!/@,|#_!!_#|/
24363 :n
24364 t n
24365 s/'"$ac_delim"'$/,g/; t
24366 s/$/\\/; p
24367 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24368 ' >>$CONFIG_STATUS <conf$$subs.sed
24369 rm -f conf$$subs.sed
24370 cat >>$CONFIG_STATUS <<_ACEOF
24371 CEOF$ac_eof
24372 _ACEOF
24373
24374
24375 ac_delim='%!_!# '
24376 for ac_last_try in false false false false false :; do
24377 cat >conf$$subs.sed <<_ACEOF
24378 CXXDEPMODE!$CXXDEPMODE$ac_delim
24379 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24380 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24381 CXXCPP!$CXXCPP$ac_delim
24382 F77!$F77$ac_delim
24383 FFLAGS!$FFLAGS$ac_delim
24384 ac_ct_F77!$ac_ct_F77$ac_delim
24385 LIBTOOL!$LIBTOOL$ac_delim
24386 PKG_CONFIG!$PKG_CONFIG$ac_delim
24387 have_swig!$have_swig$ac_delim
24388 have_pascal!$have_pascal$ac_delim
24389 PA_VERSION!$PA_VERSION$ac_delim
24390 PA_MODULES_PATH!$PA_MODULES_PATH$ac_delim
24391 WITH_PASCAL_TRUE!$WITH_PASCAL_TRUE$ac_delim
24392 WITH_PASCAL_FALSE!$WITH_PASCAL_FALSE$ac_delim
24393 have_python!$have_python$ac_delim
24394 PY_VERSION!$PY_VERSION$ac_delim
24395 PY_CFLAGS!$PY_CFLAGS$ac_delim
24396 PY_MODULES_PATH!$PY_MODULES_PATH$ac_delim
24397 WITH_PYTHON_TRUE!$WITH_PYTHON_TRUE$ac_delim
24398 WITH_PYTHON_FALSE!$WITH_PYTHON_FALSE$ac_delim
24399 have_perl!$have_perl$ac_delim
24400 PE_CFLAGS!$PE_CFLAGS$ac_delim
24401 PE_MODULES_PATH!$PE_MODULES_PATH$ac_delim
24402 WITH_PERL_TRUE!$WITH_PERL_TRUE$ac_delim
24403 WITH_PERL_FALSE!$WITH_PERL_FALSE$ac_delim
24404 USE_NLS!$USE_NLS$ac_delim
24405 GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
24406 MSGFMT!$MSGFMT$ac_delim
24407 GMSGFMT!$GMSGFMT$ac_delim
24408 MSGFMT_015!$MSGFMT_015$ac_delim
24409 GMSGFMT_015!$GMSGFMT_015$ac_delim
24410 XGETTEXT!$XGETTEXT$ac_delim
24411 XGETTEXT_015!$XGETTEXT_015$ac_delim
24412 MSGMERGE!$MSGMERGE$ac_delim
24413 XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
24414 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
24415 LIBICONV!$LIBICONV$ac_delim
24416 LTLIBICONV!$LTLIBICONV$ac_delim
24417 INTLLIBS!$INTLLIBS$ac_delim
24418 LIBINTL!$LIBINTL$ac_delim
24419 LTLIBINTL!$LTLIBINTL$ac_delim
24420 POSUB!$POSUB$ac_delim
24421 DATADIRNAME!$DATADIRNAME$ac_delim
24422 WITH_HCAL_TRUE!$WITH_HCAL_TRUE$ac_delim
24423 WITH_HCAL_FALSE!$WITH_HCAL_FALSE$ac_delim
24424 LIBOBJS!$LIBOBJS$ac_delim
24425 LTLIBOBJS!$LTLIBOBJS$ac_delim
24426 _ACEOF
24427
24428 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
24429 break
24430 elif $ac_last_try; then
24431 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24432 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24433 { (exit 1); exit 1; }; }
24434 else
24435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24436 fi
24437 done
24438
24439 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24440 if test -n "$ac_eof"; then
24441 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24442 ac_eof=`expr $ac_eof + 1`
24443 fi
24444
24445 cat >>$CONFIG_STATUS <<_ACEOF
24446 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24448 _ACEOF
24449 sed '
24450 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24451 s/^/s,@/; s/!/@,|#_!!_#|/
24452 :n
24453 t n
24454 s/'"$ac_delim"'$/,g/; t
24455 s/$/\\/; p
24456 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24457 ' >>$CONFIG_STATUS <conf$$subs.sed
24458 rm -f conf$$subs.sed
24459 cat >>$CONFIG_STATUS <<_ACEOF
24460 :end
24461 s/|#_!!_#|//g
24462 CEOF$ac_eof
24463 _ACEOF
24464
24465
24466 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24467 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24468 # trailing colons and then remove the whole line if VPATH becomes empty
24469 # (actually we leave an empty line to preserve line numbers).
24470 if test "x$srcdir" = x.; then
24471 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24472 s/:*\$(srcdir):*/:/
24473 s/:*\${srcdir}:*/:/
24474 s/:*@srcdir@:*/:/
24475 s/^\([^=]*=[ ]*\):*/\1/
24476 s/:*$//
24477 s/^[^=]*=[ ]*$//
24478 }'
24479 fi
24480
24481 cat >>$CONFIG_STATUS <<\_ACEOF
24482 fi # test -n "$CONFIG_FILES"
24483
24484
24485 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
24486 do
24487 case $ac_tag in
24488 :[FHLC]) ac_mode=$ac_tag; continue;;
24489 esac
24490 case $ac_mode$ac_tag in
24491 :[FHL]*:*);;
24492 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24493 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24494 { (exit 1); exit 1; }; };;
24495 :[FH]-) ac_tag=-:-;;
24496 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24497 esac
24498 ac_save_IFS=$IFS
24499 IFS=:
24500 set x $ac_tag
24501 IFS=$ac_save_IFS
24502 shift
24503 ac_file=$1
24504 shift
24505
24506 case $ac_mode in
24507 :L) ac_source=$1;;
24508 :[FH])
24509 ac_file_inputs=
24510 for ac_f
24511 do
24512 case $ac_f in
24513 -) ac_f="$tmp/stdin";;
24514 *) # Look for the file first in the build tree, then in the source tree
24515 # (if the path is not absolute). The absolute path cannot be DOS-style,
24516 # because $ac_f cannot contain `:'.
24517 test -f "$ac_f" ||
24518 case $ac_f in
24519 [\\/$]*) false;;
24520 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24521 esac ||
24522 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24523 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24524 { (exit 1); exit 1; }; };;
24525 esac
24526 ac_file_inputs="$ac_file_inputs $ac_f"
24527 done
24528
24529 # Let's still pretend it is `configure' which instantiates (i.e., don't
24530 # use $as_me), people would be surprised to read:
24531 # /* config.h. Generated by config.status. */
24532 configure_input="Generated from "`IFS=:
24533 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24534 if test x"$ac_file" != x-; then
24535 configure_input="$ac_file. $configure_input"
24536 { echo "$as_me:$LINENO: creating $ac_file" >&5
24537 echo "$as_me: creating $ac_file" >&6;}
24538 fi
24539
24540 case $ac_tag in
24541 *:-:* | *:-) cat >"$tmp/stdin";;
24542 esac
24543 ;;
24544 esac
24545
24546 ac_dir=`$as_dirname -- "$ac_file" ||
24547 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24548 X"$ac_file" : 'X\(//\)[^/]' \| \
24549 X"$ac_file" : 'X\(//\)$' \| \
24550 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24551 echo X"$ac_file" |
24552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24553 s//\1/
24554 q
24555 }
24556 /^X\(\/\/\)[^/].*/{
24557 s//\1/
24558 q
24559 }
24560 /^X\(\/\/\)$/{
24561 s//\1/
24562 q
24563 }
24564 /^X\(\/\).*/{
24565 s//\1/
24566 q
24567 }
24568 s/.*/./; q'`
24569 { as_dir="$ac_dir"
24570 case $as_dir in #(
24571 -*) as_dir=./$as_dir;;
24572 esac
24573 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24574 as_dirs=
24575 while :; do
24576 case $as_dir in #(
24577 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24578 *) as_qdir=$as_dir;;
24579 esac
24580 as_dirs="'$as_qdir' $as_dirs"
24581 as_dir=`$as_dirname -- "$as_dir" ||
24582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24583 X"$as_dir" : 'X\(//\)[^/]' \| \
24584 X"$as_dir" : 'X\(//\)$' \| \
24585 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24586 echo X"$as_dir" |
24587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24588 s//\1/
24589 q
24590 }
24591 /^X\(\/\/\)[^/].*/{
24592 s//\1/
24593 q
24594 }
24595 /^X\(\/\/\)$/{
24596 s//\1/
24597 q
24598 }
24599 /^X\(\/\).*/{
24600 s//\1/
24601 q
24602 }
24603 s/.*/./; q'`
24604 test -d "$as_dir" && break
24605 done
24606 test -z "$as_dirs" || eval "mkdir $as_dirs"
24607 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24608 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24609 { (exit 1); exit 1; }; }; }
24610 ac_builddir=.
24611
24612 case "$ac_dir" in
24613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24614 *)
24615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24616 # A ".." for each directory in $ac_dir_suffix.
24617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24618 case $ac_top_builddir_sub in
24619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24621 esac ;;
24622 esac
24623 ac_abs_top_builddir=$ac_pwd
24624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24625 # for backward compatibility:
24626 ac_top_builddir=$ac_top_build_prefix
24627
24628 case $srcdir in
24629 .) # We are building in place.
24630 ac_srcdir=.
24631 ac_top_srcdir=$ac_top_builddir_sub
24632 ac_abs_top_srcdir=$ac_pwd ;;
24633 [\\/]* | ?:[\\/]* ) # Absolute name.
24634 ac_srcdir=$srcdir$ac_dir_suffix;
24635 ac_top_srcdir=$srcdir
24636 ac_abs_top_srcdir=$srcdir ;;
24637 *) # Relative name.
24638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24639 ac_top_srcdir=$ac_top_build_prefix$srcdir
24640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24641 esac
24642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24643
24644
24645 case $ac_mode in
24646 :F)
24647 #
24648 # CONFIG_FILE
24649 #
24650
24651 case $INSTALL in
24652 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24653 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24654 esac
24655 _ACEOF
24656
24657 cat >>$CONFIG_STATUS <<\_ACEOF
24658 # If the template does not know about datarootdir, expand it.
24659 # FIXME: This hack should be removed a few years after 2.60.
24660 ac_datarootdir_hack=; ac_datarootdir_seen=
24661
24662 case `sed -n '/datarootdir/ {
24663 p
24664 q
24665 }
24666 /@datadir@/p
24667 /@docdir@/p
24668 /@infodir@/p
24669 /@localedir@/p
24670 /@mandir@/p
24671 ' $ac_file_inputs` in
24672 *datarootdir*) ac_datarootdir_seen=yes;;
24673 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24674 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24675 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24676 _ACEOF
24677 cat >>$CONFIG_STATUS <<_ACEOF
24678 ac_datarootdir_hack='
24679 s&@datadir@&$datadir&g
24680 s&@docdir@&$docdir&g
24681 s&@infodir@&$infodir&g
24682 s&@localedir@&$localedir&g
24683 s&@mandir@&$mandir&g
24684 s&\\\${datarootdir}&$datarootdir&g' ;;
24685 esac
24686 _ACEOF
24687
24688 # Neutralize VPATH when `$srcdir' = `.'.
24689 # Shell code in configure.ac might set extrasub.
24690 # FIXME: do we really want to maintain this feature?
24691 cat >>$CONFIG_STATUS <<_ACEOF
24692 sed "$ac_vpsub
24693 $extrasub
24694 _ACEOF
24695 cat >>$CONFIG_STATUS <<\_ACEOF
24696 :t
24697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24698 s&@configure_input@&$configure_input&;t t
24699 s&@top_builddir@&$ac_top_builddir_sub&;t t
24700 s&@srcdir@&$ac_srcdir&;t t
24701 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24702 s&@top_srcdir@&$ac_top_srcdir&;t t
24703 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24704 s&@builddir@&$ac_builddir&;t t
24705 s&@abs_builddir@&$ac_abs_builddir&;t t
24706 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24707 s&@INSTALL@&$ac_INSTALL&;t t
24708 $ac_datarootdir_hack
24709 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24710
24711 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24712 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24713 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24714 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24715 which seems to be undefined. Please make sure it is defined." >&5
24716 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24717 which seems to be undefined. Please make sure it is defined." >&2;}
24718
24719 rm -f "$tmp/stdin"
24720 case $ac_file in
24721 -) cat "$tmp/out"; rm -f "$tmp/out";;
24722 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24723 esac
24724 ;;
24725
24726
24727 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24728 echo "$as_me: executing $ac_file commands" >&6;}
24729 ;;
24730 esac
24731
24732
24733 case $ac_file$ac_mode in
24734 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24735 # Strip MF so we end up with the name of the file.
24736 mf=`echo "$mf" | sed -e 's/:.*$//'`
24737 # Check whether this is an Automake generated Makefile or not.
24738 # We used to match only the files named `Makefile.in', but
24739 # some people rename them; so instead we look at the file content.
24740 # Grep'ing the first line is not enough: some people post-process
24741 # each Makefile.in and add a new line on top of each file to say so.
24742 # So let's grep whole file.
24743 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24744 dirpart=`$as_dirname -- "$mf" ||
24745 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24746 X"$mf" : 'X\(//\)[^/]' \| \
24747 X"$mf" : 'X\(//\)$' \| \
24748 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24749 echo X"$mf" |
24750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24751 s//\1/
24752 q
24753 }
24754 /^X\(\/\/\)[^/].*/{
24755 s//\1/
24756 q
24757 }
24758 /^X\(\/\/\)$/{
24759 s//\1/
24760 q
24761 }
24762 /^X\(\/\).*/{
24763 s//\1/
24764 q
24765 }
24766 s/.*/./; q'`
24767 else
24768 continue
24769 fi
24770 # Extract the definition of DEPDIR, am__include, and am__quote
24771 # from the Makefile without running `make'.
24772 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24773 test -z "$DEPDIR" && continue
24774 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24775 test -z "am__include" && continue
24776 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24777 # When using ansi2knr, U may be empty or an underscore; expand it
24778 U=`sed -n 's/^U = //p' < "$mf"`
24779 # Find all dependency output files, they are included files with
24780 # $(DEPDIR) in their names. We invoke sed twice because it is the
24781 # simplest approach to changing $(DEPDIR) to its actual value in the
24782 # expansion.
24783 for file in `sed -n "
24784 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24785 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24786 # Make sure the directory exists.
24787 test -f "$dirpart/$file" && continue
24788 fdir=`$as_dirname -- "$file" ||
24789 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24790 X"$file" : 'X\(//\)[^/]' \| \
24791 X"$file" : 'X\(//\)$' \| \
24792 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24793 echo X"$file" |
24794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24795 s//\1/
24796 q
24797 }
24798 /^X\(\/\/\)[^/].*/{
24799 s//\1/
24800 q
24801 }
24802 /^X\(\/\/\)$/{
24803 s//\1/
24804 q
24805 }
24806 /^X\(\/\).*/{
24807 s//\1/
24808 q
24809 }
24810 s/.*/./; q'`
24811 { as_dir=$dirpart/$fdir
24812 case $as_dir in #(
24813 -*) as_dir=./$as_dir;;
24814 esac
24815 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24816 as_dirs=
24817 while :; do
24818 case $as_dir in #(
24819 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24820 *) as_qdir=$as_dir;;
24821 esac
24822 as_dirs="'$as_qdir' $as_dirs"
24823 as_dir=`$as_dirname -- "$as_dir" ||
24824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24825 X"$as_dir" : 'X\(//\)[^/]' \| \
24826 X"$as_dir" : 'X\(//\)$' \| \
24827 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24828 echo X"$as_dir" |
24829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24830 s//\1/
24831 q
24832 }
24833 /^X\(\/\/\)[^/].*/{
24834 s//\1/
24835 q
24836 }
24837 /^X\(\/\/\)$/{
24838 s//\1/
24839 q
24840 }
24841 /^X\(\/\).*/{
24842 s//\1/
24843 q
24844 }
24845 s/.*/./; q'`
24846 test -d "$as_dir" && break
24847 done
24848 test -z "$as_dirs" || eval "mkdir $as_dirs"
24849 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24850 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24851 { (exit 1); exit 1; }; }; }
24852 # echo "creating $dirpart/$file"
24853 echo '# dummy' > "$dirpart/$file"
24854 done
24855 done
24856 ;;
24857 "po-directories":C)
24858 for ac_file in $CONFIG_FILES; do
24859 # Support "outfile[:infile[:infile...]]"
24860 case "$ac_file" in
24861 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24862 esac
24863 # PO directories have a Makefile.in generated from Makefile.in.in.
24864 case "$ac_file" in */Makefile.in)
24865 # Adjust a relative srcdir.
24866 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24867 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24868 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24869 # In autoconf-2.13 it is called $ac_given_srcdir.
24870 # In autoconf-2.50 it is called $srcdir.
24871 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24872 case "$ac_given_srcdir" in
24873 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24874 /*) top_srcdir="$ac_given_srcdir" ;;
24875 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24876 esac
24877 # Treat a directory as a PO directory if and only if it has a
24878 # POTFILES.in file. This allows packages to have multiple PO
24879 # directories under different names or in different locations.
24880 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24881 rm -f "$ac_dir/POTFILES"
24882 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24883 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24884 POMAKEFILEDEPS="POTFILES.in"
24885 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24886 # on $ac_dir but don't depend on user-specified configuration
24887 # parameters.
24888 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24889 # The LINGUAS file contains the set of available languages.
24890 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24891 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24892 fi
24893 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24894 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24895 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24896 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24897 else
24898 # The set of available languages was given in configure.in.
24899 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24900 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24901 fi
24902 # Compute POFILES
24903 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24904 # Compute UPDATEPOFILES
24905 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24906 # Compute DUMMYPOFILES
24907 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24908 # Compute GMOFILES
24909 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24910 case "$ac_given_srcdir" in
24911 .) srcdirpre= ;;
24912 *) srcdirpre='$(srcdir)/' ;;
24913 esac
24914 POFILES=
24915 UPDATEPOFILES=
24916 DUMMYPOFILES=
24917 GMOFILES=
24918 for lang in $ALL_LINGUAS; do
24919 POFILES="$POFILES $srcdirpre$lang.po"
24920 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24921 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24922 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24923 done
24924 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24925 # environment variable.
24926 INST_LINGUAS=
24927 if test -n "$ALL_LINGUAS"; then
24928 for presentlang in $ALL_LINGUAS; do
24929 useit=no
24930 if test "%UNSET%" != "$LINGUAS"; then
24931 desiredlanguages="$LINGUAS"
24932 else
24933 desiredlanguages="$ALL_LINGUAS"
24934 fi
24935 for desiredlang in $desiredlanguages; do
24936 # Use the presentlang catalog if desiredlang is
24937 # a. equal to presentlang, or
24938 # b. a variant of presentlang (because in this case,
24939 # presentlang can be used as a fallback for messages
24940 # which are not translated in the desiredlang catalog).
24941 case "$desiredlang" in
24942 "$presentlang"*) useit=yes;;
24943 esac
24944 done
24945 if test $useit = yes; then
24946 INST_LINGUAS="$INST_LINGUAS $presentlang"
24947 fi
24948 done
24949 fi
24950 CATALOGS=
24951 if test -n "$INST_LINGUAS"; then
24952 for lang in $INST_LINGUAS; do
24953 CATALOGS="$CATALOGS $lang.gmo"
24954 done
24955 fi
24956 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24957 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24958 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24959 if test -f "$f"; then
24960 case "$f" in
24961 *.orig | *.bak | *~) ;;
24962 *) cat "$f" >> "$ac_dir/Makefile" ;;
24963 esac
24964 fi
24965 done
24966 fi
24967 ;;
24968 esac
24969 done ;;
24970
24971 esac
24972 done # for ac_tag
24973
24974
24975 { (exit 0); exit 0; }
24976 _ACEOF
24977 chmod +x $CONFIG_STATUS
24978 ac_clean_files=$ac_clean_files_save
24979
24980
24981 # configure is writing to config.log, and then calls config.status.
24982 # config.status does its own redirection, appending to config.log.
24983 # Unfortunately, on DOS this fails, as config.log is still kept open
24984 # by configure, so config.status won't be able to write to it; its
24985 # output is simply discarded. So we exec the FD to /dev/null,
24986 # effectively closing config.log, so it can be properly (re)opened and
24987 # appended to by config.status. When coming back to configure, we
24988 # need to make the FD available again.
24989 if test "$no_create" != yes; then
24990 ac_cs_success=:
24991 ac_config_status_args=
24992 test "$silent" = yes &&
24993 ac_config_status_args="$ac_config_status_args --quiet"
24994 exec 5>/dev/null
24995 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24996 exec 5>>config.log
24997 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24998 # would make configure fail if this is the last instruction.
24999 $ac_cs_success || { (exit 1); exit 1; }
25000 fi
25001
25002
25003
25004 echo "
25005 $PACKAGE-$VERSION
25006
25007 prefix: ${prefix}
25008 compiler: ${CC}
25009
25010 have swig ${have_swig}
25011 have free pascal ${have_pascal}
25012 have python ${have_python}
25013 have perl ${have_perl}
25014
25015 build hcal ${build_hcal}
25016
25017 build python binding ${build_python}
25018 build perl binding ${build_perl}
25019 puild pascal binding ${build_pascal}
25020
25021 perl site lib path: $PE_MODULES_PATH
25022 python site lib path: $PY_MODULES_PATH
25023 pascal site lib path: $PA_MODULES_PATH
25024 "
0 AC_INIT(src/hdate.h)
1
2 dnl Set release number
3 PACKAGE=libhdate
4 LIBHDATE_MAJOR_VERSION=1
5 LIBHDATE_MINOR_VERSION=4
6 LIBHDATE_MICRO_VERSION=10
7
8 VERSION=$LIBHDATE_MAJOR_VERSION.$LIBHDATE_MINOR_VERSION.$LIBHDATE_MICRO_VERSION
9
10 dnl libtool library numbering
11 VERSION_INFO=$LIBHDATE_MAJOR_VERSION:$LIBHDATE_MINOR_VERSION:0
12
13 AC_SUBST(VERSION_INFO)
14
15 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
16 AM_MAINTAINER_MODE
17
18 dnl Checks for programs.
19 AC_ISC_POSIX
20 AC_GNU_SOURCE
21 AC_USE_SYSTEM_EXTENSIONS
22 AC_PROG_CC
23 AC_PROG_INSTALL
24 AC_PROG_LN_S
25 AC_PROG_MAKE_SET
26 AC_STDC_HEADERS
27 AM_PROG_LIBTOOL
28
29 AM_MAINTAINER_MODE
30
31 AC_C_CONST
32
33 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
34
35 CFLAGS=
36 LIBS=-lm
37
38 dnl =======================================================================================
39
40 AC_CHECK_PROG(have_swig, "swig", yes, no)
41
42 dnl =======================================================================================
43
44 AC_CHECK_PROG(have_pascal, "fpc", yes, no)
45
46 build_pascal=$have_pascal
47
48 AC_ARG_ENABLE([pascal],
49 [AS_HELP_STRING([--disable-pascal],
50 [do not build pascal binding])],
51 [build_pascal=no], [build_pascal=$have_pascal])
52
53 if test "$have_pascal" = "yes"; then
54 PA_VERSION=`fpc -iV`
55 PA_TPR=`fpc -iTP`
56 PA_TOS=`fpc -iTO`
57 PA_MODULES_PATH="/usr/lib/fpc/$PA_VERSION/units/$PA_TPR-$PA_TOS"
58 AC_SUBST([PA_VERSION])
59 AC_SUBST([PA_MODULES_PATH])
60 fi
61
62 AM_CONDITIONAL(WITH_PASCAL, test "$build_pascal" = "yes")
63
64 dnl =======================================================================================
65
66 AC_CHECK_PROG(have_python, "python", yes, no)
67
68 build_python=$have_python
69
70 AC_ARG_ENABLE([python],
71 [AS_HELP_STRING([--disable-python],
72 [do not build python binding])],
73 [build_python=no], [build_python=$have_python])
74
75 AC_ARG_WITH(python-sitelib-dir,
76 [AS_HELP_STRING([--with-python-sitelib-dir=PATH],
77 [path to python site lib])])
78
79 if test "$have_python" = "yes"; then
80 PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
81 PY_VERSION=`python -c 'import sys ; print sys.version[[0:3]]'`
82 AC_MSG_CHECKING(for $PY_PREFIX/include/python$PY_VERSION/Python.h)
83 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
84 AC_MSG_RESULT(yes)
85 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
86
87 if test "$with_python_sitelib_dir" = "" ; then
88 PY_MODULES_PATH="$PY_PREFIX/lib/python$PY_VERSION/site-packages"
89 else
90 PY_MODULES_PATH=$with_python_sitelib_dir
91 fi
92
93 AC_SUBST([PY_VERSION])
94 AC_SUBST([PY_CFLAGS])
95 AC_SUBST([PY_MODULES_PATH])
96 if test "$have_swig" = "no"; then
97 build_python=no
98 fi
99 else
100 AC_MSG_RESULT(no)
101 build_python=no
102 fi
103 fi
104
105 AM_CONDITIONAL(WITH_PYTHON, test "$build_python" = "yes")
106
107 dnl =======================================================================================
108
109 AC_CHECK_PROG(have_perl, "perl", yes, no)
110
111 build_perl=$have_perl
112
113 AC_ARG_ENABLE([perl],
114 [AS_HELP_STRING([--disable-perl],
115 [do not build perl binding])],
116 [build_perl=no], [build_perl=$have_perl])
117
118 AC_ARG_WITH(perl-sitelib-dir,
119 [AS_HELP_STRING([--with-perl-sitelib-dir=PATH],
120 [path to perl site lib])])
121
122 if test "$have_perl" = "yes"; then
123 PE_PREFIX=`(perl -e 'use Config; print $Config{archlib};')`
124 AC_MSG_CHECKING(for $PE_PREFIX/CORE/perl.h)
125 if test -f $PE_PREFIX/CORE/perl.h; then
126 AC_MSG_RESULT(yes)
127 PE_CFLAGS="-I$PE_PREFIX/CORE "
128 PE_CFLAGS=$PE_CFLAGS`(perl -e 'use Config; print $Config{cppflags};')`
129
130 if test "$with_perl_sitelib_dir" = "" ; then
131 PE_MODULES_PATH=`(perl -e 'use Config; print $Config{sitelib};')`
132 else
133 PE_MODULES_PATH=$with_perl_sitelib_dir
134 fi
135
136 AC_SUBST([PE_CFLAGS])
137 AC_SUBST([PE_MODULES_PATH])
138 if test "x$have_swig" = "xno"; then
139 build_perl=no
140 fi
141 else
142 AC_MSG_RESULT(no)
143 build_perl=no
144 fi
145 fi
146
147 AM_CONDITIONAL(WITH_PERL, test "$build_perl" = "yes")
148
149 dnl =======================================================================================
150
151 dnl gettext
152
153 dnl Languages which your application supports
154 ALL_LINGUAS="he es_MX ru fr sv"
155 AM_GNU_GETTEXT([external])
156 AM_GNU_GETTEXT_VERSION([0.17])
157
158 if test "$DATADIRNAME" = ""; then
159 DATADIRNAME="share"
160 AC_SUBST(DATADIRNAME)
161 fi
162
163 if test "${prefix}" = "NONE"; then
164 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
165 else
166 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
167 fi
168
169 dnl =======================================================================================
170
171 build_hcal=yes
172
173 AC_ARG_ENABLE([hcal],
174 [AS_HELP_STRING([--disable-hcal],
175 [do not build hcal/hdate utility programs])],
176 [build_hcal=no], [build_hcal=yes])
177
178 AM_CONDITIONAL(WITH_HCAL, test "$build_hcal" = "yes")
179
180 dnl =======================================================================================
181
182 AC_SUBST(CFLAGS)
183 AC_SUBST(LIBS)
184
185 dnl =======================================================================================
186
187 AC_OUTPUT([
188 Makefile
189 libhdate.pc
190 po/Makefile.in
191 docs/Makefile
192 docs/man/Makefile
193 docs/man/man1/Makefile
194 docs/man/man3/Makefile
195 src/Makefile
196 examples/Makefile
197 examples/hcal/Makefile
198 examples/bindings/Makefile
199 bindings/Makefile
200 bindings/python/Makefile
201 bindings/perl/Makefile
202 bindings/pascal/Makefile
203 ])
204
205 dnl ===========================================================================================
206
207 echo "
208 $PACKAGE-$VERSION
209
210 prefix: ${prefix}
211 compiler: ${CC}
212
213 have swig ${have_swig}
214 have free pascal ${have_pascal}
215 have python ${have_python}
216 have perl ${have_perl}
217
218 build hcal ${build_hcal}
219
220 build python binding ${build_python}
221 build perl binding ${build_perl}
222 puild pascal binding ${build_pascal}
223
224 perl site lib path: $PE_MODULES_PATH
225 python site lib path: $PY_MODULES_PATH
226 pascal site lib path: $PA_MODULES_PATH
227 "
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2005-07-09.11
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 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, Boston, MA
20 # 02110-1301, USA.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
28
29 case $1 in
30 '')
31 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
32 exit 1;
33 ;;
34 -h | --h*)
35 cat <<\EOF
36 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
37
38 Run PROGRAMS ARGS to compile a file, generating dependencies
39 as side-effects.
40
41 Environment variables:
42 depmode Dependency tracking mode.
43 source Source file read by `PROGRAMS ARGS'.
44 object Object file output by `PROGRAMS ARGS'.
45 DEPDIR directory where to store dependencies.
46 depfile Dependency file to output.
47 tmpdepfile Temporary file to use when outputing dependencies.
48 libtool Whether libtool is used (yes/no).
49
50 Report bugs to <bug-automake@gnu.org>.
51 EOF
52 exit $?
53 ;;
54 -v | --v*)
55 echo "depcomp $scriptversion"
56 exit $?
57 ;;
58 esac
59
60 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
61 echo "depcomp: Variables source, object and depmode must be set" 1>&2
62 exit 1
63 fi
64
65 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
66 depfile=${depfile-`echo "$object" |
67 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
68 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
69
70 rm -f "$tmpdepfile"
71
72 # Some modes work just like other modes, but use different flags. We
73 # parameterize here, but still list the modes in the big case below,
74 # to make depend.m4 easier to write. Note that we *cannot* use a case
75 # here, because this file can only contain one case statement.
76 if test "$depmode" = hp; then
77 # HP compiler uses -M and no extra arg.
78 gccflag=-M
79 depmode=gcc
80 fi
81
82 if test "$depmode" = dashXmstdout; then
83 # This is just like dashmstdout with a different argument.
84 dashmflag=-xM
85 depmode=dashmstdout
86 fi
87
88 case "$depmode" in
89 gcc3)
90 ## gcc 3 implements dependency tracking that does exactly what
91 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
92 ## it if -MD -MP comes after the -MF stuff. Hmm.
93 "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
94 stat=$?
95 if test $stat -eq 0; then :
96 else
97 rm -f "$tmpdepfile"
98 exit $stat
99 fi
100 mv "$tmpdepfile" "$depfile"
101 ;;
102
103 gcc)
104 ## There are various ways to get dependency output from gcc. Here's
105 ## why we pick this rather obscure method:
106 ## - Don't want to use -MD because we'd like the dependencies to end
107 ## up in a subdir. Having to rename by hand is ugly.
108 ## (We might end up doing this anyway to support other compilers.)
109 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
110 ## -MM, not -M (despite what the docs say).
111 ## - Using -M directly means running the compiler twice (even worse
112 ## than renaming).
113 if test -z "$gccflag"; then
114 gccflag=-MD,
115 fi
116 "$@" -Wp,"$gccflag$tmpdepfile"
117 stat=$?
118 if test $stat -eq 0; then :
119 else
120 rm -f "$tmpdepfile"
121 exit $stat
122 fi
123 rm -f "$depfile"
124 echo "$object : \\" > "$depfile"
125 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
126 ## The second -e expression handles DOS-style file names with drive letters.
127 sed -e 's/^[^:]*: / /' \
128 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
129 ## This next piece of magic avoids the `deleted header file' problem.
130 ## The problem is that when a header file which appears in a .P file
131 ## is deleted, the dependency causes make to die (because there is
132 ## typically no way to rebuild the header). We avoid this by adding
133 ## dummy dependencies for each header file. Too bad gcc doesn't do
134 ## this for us directly.
135 tr ' ' '
136 ' < "$tmpdepfile" |
137 ## Some versions of gcc put a space before the `:'. On the theory
138 ## that the space means something, we add a space to the output as
139 ## well.
140 ## Some versions of the HPUX 10.20 sed can't process this invocation
141 ## correctly. Breaking it into two sed invocations is a workaround.
142 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
143 rm -f "$tmpdepfile"
144 ;;
145
146 hp)
147 # This case exists only to let depend.m4 do its work. It works by
148 # looking at the text of this script. This case will never be run,
149 # since it is checked for above.
150 exit 1
151 ;;
152
153 sgi)
154 if test "$libtool" = yes; then
155 "$@" "-Wp,-MDupdate,$tmpdepfile"
156 else
157 "$@" -MDupdate "$tmpdepfile"
158 fi
159 stat=$?
160 if test $stat -eq 0; then :
161 else
162 rm -f "$tmpdepfile"
163 exit $stat
164 fi
165 rm -f "$depfile"
166
167 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
168 echo "$object : \\" > "$depfile"
169
170 # Clip off the initial element (the dependent). Don't try to be
171 # clever and replace this with sed code, as IRIX sed won't handle
172 # lines with more than a fixed number of characters (4096 in
173 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
174 # the IRIX cc adds comments like `#:fec' to the end of the
175 # dependency line.
176 tr ' ' '
177 ' < "$tmpdepfile" \
178 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
179 tr '
180 ' ' ' >> $depfile
181 echo >> $depfile
182
183 # The second pass generates a dummy entry for each header file.
184 tr ' ' '
185 ' < "$tmpdepfile" \
186 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
187 >> $depfile
188 else
189 # The sourcefile does not contain any dependencies, so just
190 # store a dummy comment line, to avoid errors with the Makefile
191 # "include basename.Plo" scheme.
192 echo "#dummy" > "$depfile"
193 fi
194 rm -f "$tmpdepfile"
195 ;;
196
197 aix)
198 # The C for AIX Compiler uses -M and outputs the dependencies
199 # in a .u file. In older versions, this file always lives in the
200 # current directory. Also, the AIX compiler puts `$object:' at the
201 # start of each line; $object doesn't have directory information.
202 # Version 6 uses the directory in both cases.
203 stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
204 tmpdepfile="$stripped.u"
205 if test "$libtool" = yes; then
206 "$@" -Wc,-M
207 else
208 "$@" -M
209 fi
210 stat=$?
211
212 if test -f "$tmpdepfile"; then :
213 else
214 stripped=`echo "$stripped" | sed 's,^.*/,,'`
215 tmpdepfile="$stripped.u"
216 fi
217
218 if test $stat -eq 0; then :
219 else
220 rm -f "$tmpdepfile"
221 exit $stat
222 fi
223
224 if test -f "$tmpdepfile"; then
225 outname="$stripped.o"
226 # Each line is of the form `foo.o: dependent.h'.
227 # Do two passes, one to just change these to
228 # `$object: dependent.h' and one to simply `dependent.h:'.
229 sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
230 sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
231 else
232 # The sourcefile does not contain any dependencies, so just
233 # store a dummy comment line, to avoid errors with the Makefile
234 # "include basename.Plo" scheme.
235 echo "#dummy" > "$depfile"
236 fi
237 rm -f "$tmpdepfile"
238 ;;
239
240 icc)
241 # Intel's C compiler understands `-MD -MF file'. However on
242 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
243 # ICC 7.0 will fill foo.d with something like
244 # foo.o: sub/foo.c
245 # foo.o: sub/foo.h
246 # which is wrong. We want:
247 # sub/foo.o: sub/foo.c
248 # sub/foo.o: sub/foo.h
249 # sub/foo.c:
250 # sub/foo.h:
251 # ICC 7.1 will output
252 # foo.o: sub/foo.c sub/foo.h
253 # and will wrap long lines using \ :
254 # foo.o: sub/foo.c ... \
255 # sub/foo.h ... \
256 # ...
257
258 "$@" -MD -MF "$tmpdepfile"
259 stat=$?
260 if test $stat -eq 0; then :
261 else
262 rm -f "$tmpdepfile"
263 exit $stat
264 fi
265 rm -f "$depfile"
266 # Each line is of the form `foo.o: dependent.h',
267 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
268 # Do two passes, one to just change these to
269 # `$object: dependent.h' and one to simply `dependent.h:'.
270 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
271 # Some versions of the HPUX 10.20 sed can't process this invocation
272 # correctly. Breaking it into two sed invocations is a workaround.
273 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
274 sed -e 's/$/ :/' >> "$depfile"
275 rm -f "$tmpdepfile"
276 ;;
277
278 tru64)
279 # The Tru64 compiler uses -MD to generate dependencies as a side
280 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
281 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
282 # dependencies in `foo.d' instead, so we check for that too.
283 # Subdirectories are respected.
284 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
285 test "x$dir" = "x$object" && dir=
286 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
287
288 if test "$libtool" = yes; then
289 # With Tru64 cc, shared objects can also be used to make a
290 # static library. This mecanism is used in libtool 1.4 series to
291 # handle both shared and static libraries in a single compilation.
292 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
293 #
294 # With libtool 1.5 this exception was removed, and libtool now
295 # generates 2 separate objects for the 2 libraries. These two
296 # compilations output dependencies in in $dir.libs/$base.o.d and
297 # in $dir$base.o.d. We have to check for both files, because
298 # one of the two compilations can be disabled. We should prefer
299 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
300 # automatically cleaned when .libs/ is deleted, while ignoring
301 # the former would cause a distcleancheck panic.
302 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
303 tmpdepfile2=$dir$base.o.d # libtool 1.5
304 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
305 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
306 "$@" -Wc,-MD
307 else
308 tmpdepfile1=$dir$base.o.d
309 tmpdepfile2=$dir$base.d
310 tmpdepfile3=$dir$base.d
311 tmpdepfile4=$dir$base.d
312 "$@" -MD
313 fi
314
315 stat=$?
316 if test $stat -eq 0; then :
317 else
318 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
319 exit $stat
320 fi
321
322 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
323 do
324 test -f "$tmpdepfile" && break
325 done
326 if test -f "$tmpdepfile"; then
327 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
328 # That's a tab and a space in the [].
329 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
330 else
331 echo "#dummy" > "$depfile"
332 fi
333 rm -f "$tmpdepfile"
334 ;;
335
336 #nosideeffect)
337 # This comment above is used by automake to tell side-effect
338 # dependency tracking mechanisms from slower ones.
339
340 dashmstdout)
341 # Important note: in order to support this mode, a compiler *must*
342 # always write the preprocessed file to stdout, regardless of -o.
343 "$@" || exit $?
344
345 # Remove the call to Libtool.
346 if test "$libtool" = yes; then
347 while test $1 != '--mode=compile'; do
348 shift
349 done
350 shift
351 fi
352
353 # Remove `-o $object'.
354 IFS=" "
355 for arg
356 do
357 case $arg in
358 -o)
359 shift
360 ;;
361 $object)
362 shift
363 ;;
364 *)
365 set fnord "$@" "$arg"
366 shift # fnord
367 shift # $arg
368 ;;
369 esac
370 done
371
372 test -z "$dashmflag" && dashmflag=-M
373 # Require at least two characters before searching for `:'
374 # in the target name. This is to cope with DOS-style filenames:
375 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
376 "$@" $dashmflag |
377 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
378 rm -f "$depfile"
379 cat < "$tmpdepfile" > "$depfile"
380 tr ' ' '
381 ' < "$tmpdepfile" | \
382 ## Some versions of the HPUX 10.20 sed can't process this invocation
383 ## correctly. Breaking it into two sed invocations is a workaround.
384 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
385 rm -f "$tmpdepfile"
386 ;;
387
388 dashXmstdout)
389 # This case only exists to satisfy depend.m4. It is never actually
390 # run, as this mode is specially recognized in the preamble.
391 exit 1
392 ;;
393
394 makedepend)
395 "$@" || exit $?
396 # Remove any Libtool call
397 if test "$libtool" = yes; then
398 while test $1 != '--mode=compile'; do
399 shift
400 done
401 shift
402 fi
403 # X makedepend
404 shift
405 cleared=no
406 for arg in "$@"; do
407 case $cleared in
408 no)
409 set ""; shift
410 cleared=yes ;;
411 esac
412 case "$arg" in
413 -D*|-I*)
414 set fnord "$@" "$arg"; shift ;;
415 # Strip any option that makedepend may not understand. Remove
416 # the object too, otherwise makedepend will parse it as a source file.
417 -*|$object)
418 ;;
419 *)
420 set fnord "$@" "$arg"; shift ;;
421 esac
422 done
423 obj_suffix="`echo $object | sed 's/^.*\././'`"
424 touch "$tmpdepfile"
425 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
426 rm -f "$depfile"
427 cat < "$tmpdepfile" > "$depfile"
428 sed '1,2d' "$tmpdepfile" | tr ' ' '
429 ' | \
430 ## Some versions of the HPUX 10.20 sed can't process this invocation
431 ## correctly. Breaking it into two sed invocations is a workaround.
432 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
433 rm -f "$tmpdepfile" "$tmpdepfile".bak
434 ;;
435
436 cpp)
437 # Important note: in order to support this mode, a compiler *must*
438 # always write the preprocessed file to stdout.
439 "$@" || exit $?
440
441 # Remove the call to Libtool.
442 if test "$libtool" = yes; then
443 while test $1 != '--mode=compile'; do
444 shift
445 done
446 shift
447 fi
448
449 # Remove `-o $object'.
450 IFS=" "
451 for arg
452 do
453 case $arg in
454 -o)
455 shift
456 ;;
457 $object)
458 shift
459 ;;
460 *)
461 set fnord "$@" "$arg"
462 shift # fnord
463 shift # $arg
464 ;;
465 esac
466 done
467
468 "$@" -E |
469 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
470 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
471 sed '$ s: \\$::' > "$tmpdepfile"
472 rm -f "$depfile"
473 echo "$object : \\" > "$depfile"
474 cat < "$tmpdepfile" >> "$depfile"
475 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
476 rm -f "$tmpdepfile"
477 ;;
478
479 msvisualcpp)
480 # Important note: in order to support this mode, a compiler *must*
481 # always write the preprocessed file to stdout, regardless of -o,
482 # because we must use -o when running libtool.
483 "$@" || exit $?
484 IFS=" "
485 for arg
486 do
487 case "$arg" in
488 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
489 set fnord "$@"
490 shift
491 shift
492 ;;
493 *)
494 set fnord "$@" "$arg"
495 shift
496 shift
497 ;;
498 esac
499 done
500 "$@" -E |
501 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
502 rm -f "$depfile"
503 echo "$object : \\" > "$depfile"
504 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
505 echo " " >> "$depfile"
506 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
507 rm -f "$tmpdepfile"
508 ;;
509
510 none)
511 exec "$@"
512 ;;
513
514 *)
515 echo "Unknown depmode $depmode" 1>&2
516 exit 1
517 ;;
518 esac
519
520 exit 0
521
522 # Local Variables:
523 # mode: shell-script
524 # sh-indentation: 2
525 # eval: (add-hook 'write-file-hooks 'time-stamp)
526 # time-stamp-start: "scriptversion="
527 # time-stamp-format: "%:y-%02m-%02d.%02H"
528 # time-stamp-end: "$"
529 # End:
0 SUBDIRS = man
1
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = docs
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
53 html-recursive info-recursive install-data-recursive \
54 install-exec-recursive install-info-recursive \
55 install-recursive installcheck-recursive installdirs-recursive \
56 pdf-recursive ps-recursive uninstall-info-recursive \
57 uninstall-recursive
58 ETAGS = etags
59 CTAGS = ctags
60 DIST_SUBDIRS = $(SUBDIRS)
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMDEP_FALSE = @AMDEP_FALSE@
64 AMDEP_TRUE = @AMDEP_TRUE@
65 AMTAR = @AMTAR@
66 AR = @AR@
67 AUTOCONF = @AUTOCONF@
68 AUTOHEADER = @AUTOHEADER@
69 AUTOMAKE = @AUTOMAKE@
70 AWK = @AWK@
71 CC = @CC@
72 CCDEPMODE = @CCDEPMODE@
73 CFLAGS = @CFLAGS@
74 CPP = @CPP@
75 CPPFLAGS = @CPPFLAGS@
76 CXX = @CXX@
77 CXXCPP = @CXXCPP@
78 CXXDEPMODE = @CXXDEPMODE@
79 CXXFLAGS = @CXXFLAGS@
80 CYGPATH_W = @CYGPATH_W@
81 DATADIRNAME = @DATADIRNAME@
82 DEFS = @DEFS@
83 DEPDIR = @DEPDIR@
84 ECHO = @ECHO@
85 ECHO_C = @ECHO_C@
86 ECHO_N = @ECHO_N@
87 ECHO_T = @ECHO_T@
88 EGREP = @EGREP@
89 EXEEXT = @EXEEXT@
90 F77 = @F77@
91 FFLAGS = @FFLAGS@
92 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
93 GMSGFMT = @GMSGFMT@
94 GMSGFMT_015 = @GMSGFMT_015@
95 GREP = @GREP@
96 INSTALL_DATA = @INSTALL_DATA@
97 INSTALL_PROGRAM = @INSTALL_PROGRAM@
98 INSTALL_SCRIPT = @INSTALL_SCRIPT@
99 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
100 INTLLIBS = @INTLLIBS@
101 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
102 LDFLAGS = @LDFLAGS@
103 LIBICONV = @LIBICONV@
104 LIBINTL = @LIBINTL@
105 LIBOBJS = @LIBOBJS@
106 LIBS = @LIBS@
107 LIBTOOL = @LIBTOOL@
108 LN_S = @LN_S@
109 LTLIBICONV = @LTLIBICONV@
110 LTLIBINTL = @LTLIBINTL@
111 LTLIBOBJS = @LTLIBOBJS@
112 MAINT = @MAINT@
113 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
114 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
115 MAKEINFO = @MAKEINFO@
116 MSGFMT = @MSGFMT@
117 MSGFMT_015 = @MSGFMT_015@
118 MSGMERGE = @MSGMERGE@
119 OBJEXT = @OBJEXT@
120 PACKAGE = @PACKAGE@
121 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
122 PACKAGE_NAME = @PACKAGE_NAME@
123 PACKAGE_STRING = @PACKAGE_STRING@
124 PACKAGE_TARNAME = @PACKAGE_TARNAME@
125 PACKAGE_VERSION = @PACKAGE_VERSION@
126 PATH_SEPARATOR = @PATH_SEPARATOR@
127 PA_MODULES_PATH = @PA_MODULES_PATH@
128 PA_VERSION = @PA_VERSION@
129 PE_CFLAGS = @PE_CFLAGS@
130 PE_MODULES_PATH = @PE_MODULES_PATH@
131 PKG_CONFIG = @PKG_CONFIG@
132 POSUB = @POSUB@
133 PY_CFLAGS = @PY_CFLAGS@
134 PY_MODULES_PATH = @PY_MODULES_PATH@
135 PY_VERSION = @PY_VERSION@
136 RANLIB = @RANLIB@
137 SED = @SED@
138 SET_MAKE = @SET_MAKE@
139 SHELL = @SHELL@
140 STRIP = @STRIP@
141 USE_NLS = @USE_NLS@
142 VERSION = @VERSION@
143 VERSION_INFO = @VERSION_INFO@
144 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
145 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
146 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
147 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
148 WITH_PERL_FALSE = @WITH_PERL_FALSE@
149 WITH_PERL_TRUE = @WITH_PERL_TRUE@
150 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
151 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
152 XGETTEXT = @XGETTEXT@
153 XGETTEXT_015 = @XGETTEXT_015@
154 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_CXX = @ac_ct_CXX@
157 ac_ct_F77 = @ac_ct_F77@
158 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
159 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
160 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
161 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
162 am__include = @am__include@
163 am__leading_dot = @am__leading_dot@
164 am__quote = @am__quote@
165 am__tar = @am__tar@
166 am__untar = @am__untar@
167 bindir = @bindir@
168 build = @build@
169 build_alias = @build_alias@
170 build_cpu = @build_cpu@
171 build_os = @build_os@
172 build_vendor = @build_vendor@
173 datadir = @datadir@
174 datarootdir = @datarootdir@
175 docdir = @docdir@
176 dvidir = @dvidir@
177 exec_prefix = @exec_prefix@
178 have_pascal = @have_pascal@
179 have_perl = @have_perl@
180 have_python = @have_python@
181 have_swig = @have_swig@
182 host = @host@
183 host_alias = @host_alias@
184 host_cpu = @host_cpu@
185 host_os = @host_os@
186 host_vendor = @host_vendor@
187 htmldir = @htmldir@
188 includedir = @includedir@
189 infodir = @infodir@
190 install_sh = @install_sh@
191 libdir = @libdir@
192 libexecdir = @libexecdir@
193 localedir = @localedir@
194 localstatedir = @localstatedir@
195 mandir = @mandir@
196 mkdir_p = @mkdir_p@
197 oldincludedir = @oldincludedir@
198 pdfdir = @pdfdir@
199 prefix = @prefix@
200 program_transform_name = @program_transform_name@
201 psdir = @psdir@
202 sbindir = @sbindir@
203 sharedstatedir = @sharedstatedir@
204 sysconfdir = @sysconfdir@
205 target_alias = @target_alias@
206 SUBDIRS = man
207 all: all-recursive
208
209 .SUFFIXES:
210 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
211 @for dep in $?; do \
212 case '$(am__configure_deps)' in \
213 *$$dep*) \
214 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
215 && exit 0; \
216 exit 1;; \
217 esac; \
218 done; \
219 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
220 cd $(top_srcdir) && \
221 $(AUTOMAKE) --gnu docs/Makefile
222 .PRECIOUS: Makefile
223 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
224 @case '$?' in \
225 *config.status*) \
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
227 *) \
228 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
229 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
230 esac;
231
232 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
233 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
234
235 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
236 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
237 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
239
240 mostlyclean-libtool:
241 -rm -f *.lo
242
243 clean-libtool:
244 -rm -rf .libs _libs
245
246 distclean-libtool:
247 -rm -f libtool
248 uninstall-info-am:
249
250 # This directory's subdirectories are mostly independent; you can cd
251 # into them and run `make' without going through this Makefile.
252 # To change the values of `make' variables: instead of editing Makefiles,
253 # (1) if the variable is set in `config.status', edit `config.status'
254 # (which will cause the Makefiles to be regenerated when you run `make');
255 # (2) otherwise, pass the desired values on the `make' command line.
256 $(RECURSIVE_TARGETS):
257 @failcom='exit 1'; \
258 for f in x $$MAKEFLAGS; do \
259 case $$f in \
260 *=* | --[!k]*);; \
261 *k*) failcom='fail=yes';; \
262 esac; \
263 done; \
264 dot_seen=no; \
265 target=`echo $@ | sed s/-recursive//`; \
266 list='$(SUBDIRS)'; for subdir in $$list; do \
267 echo "Making $$target in $$subdir"; \
268 if test "$$subdir" = "."; then \
269 dot_seen=yes; \
270 local_target="$$target-am"; \
271 else \
272 local_target="$$target"; \
273 fi; \
274 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
275 || eval $$failcom; \
276 done; \
277 if test "$$dot_seen" = "no"; then \
278 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
279 fi; test -z "$$fail"
280
281 mostlyclean-recursive clean-recursive distclean-recursive \
282 maintainer-clean-recursive:
283 @failcom='exit 1'; \
284 for f in x $$MAKEFLAGS; do \
285 case $$f in \
286 *=* | --[!k]*);; \
287 *k*) failcom='fail=yes';; \
288 esac; \
289 done; \
290 dot_seen=no; \
291 case "$@" in \
292 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
293 *) list='$(SUBDIRS)' ;; \
294 esac; \
295 rev=''; for subdir in $$list; do \
296 if test "$$subdir" = "."; then :; else \
297 rev="$$subdir $$rev"; \
298 fi; \
299 done; \
300 rev="$$rev ."; \
301 target=`echo $@ | sed s/-recursive//`; \
302 for subdir in $$rev; do \
303 echo "Making $$target in $$subdir"; \
304 if test "$$subdir" = "."; then \
305 local_target="$$target-am"; \
306 else \
307 local_target="$$target"; \
308 fi; \
309 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
310 || eval $$failcom; \
311 done && test -z "$$fail"
312 tags-recursive:
313 list='$(SUBDIRS)'; for subdir in $$list; do \
314 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
315 done
316 ctags-recursive:
317 list='$(SUBDIRS)'; for subdir in $$list; do \
318 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
319 done
320
321 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
322 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
323 unique=`for i in $$list; do \
324 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
325 done | \
326 $(AWK) ' { files[$$0] = 1; } \
327 END { for (i in files) print i; }'`; \
328 mkid -fID $$unique
329 tags: TAGS
330
331 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
332 $(TAGS_FILES) $(LISP)
333 tags=; \
334 here=`pwd`; \
335 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
336 include_option=--etags-include; \
337 empty_fix=.; \
338 else \
339 include_option=--include; \
340 empty_fix=; \
341 fi; \
342 list='$(SUBDIRS)'; for subdir in $$list; do \
343 if test "$$subdir" = .; then :; else \
344 test ! -f $$subdir/TAGS || \
345 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
346 fi; \
347 done; \
348 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
349 unique=`for i in $$list; do \
350 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
351 done | \
352 $(AWK) ' { files[$$0] = 1; } \
353 END { for (i in files) print i; }'`; \
354 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
355 test -n "$$unique" || unique=$$empty_fix; \
356 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
357 $$tags $$unique; \
358 fi
359 ctags: CTAGS
360 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
361 $(TAGS_FILES) $(LISP)
362 tags=; \
363 here=`pwd`; \
364 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) ' { files[$$0] = 1; } \
369 END { for (i in files) print i; }'`; \
370 test -z "$(CTAGS_ARGS)$$tags$$unique" \
371 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
372 $$tags $$unique
373
374 GTAGS:
375 here=`$(am__cd) $(top_builddir) && pwd` \
376 && cd $(top_srcdir) \
377 && gtags -i $(GTAGS_ARGS) $$here
378
379 distclean-tags:
380 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
381
382 distdir: $(DISTFILES)
383 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
384 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
385 list='$(DISTFILES)'; for file in $$list; do \
386 case $$file in \
387 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
388 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
389 esac; \
390 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
391 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
393 dir="/$$dir"; \
394 $(mkdir_p) "$(distdir)$$dir"; \
395 else \
396 dir=''; \
397 fi; \
398 if test -d $$d/$$file; then \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
410 if test "$$subdir" = .; then :; else \
411 test -d "$(distdir)/$$subdir" \
412 || $(mkdir_p) "$(distdir)/$$subdir" \
413 || exit 1; \
414 distdir=`$(am__cd) $(distdir) && pwd`; \
415 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
416 (cd $$subdir && \
417 $(MAKE) $(AM_MAKEFLAGS) \
418 top_distdir="$$top_distdir" \
419 distdir="$$distdir/$$subdir" \
420 distdir) \
421 || exit 1; \
422 fi; \
423 done
424 check-am: all-am
425 check: check-recursive
426 all-am: Makefile
427 installdirs: installdirs-recursive
428 installdirs-am:
429 install: install-recursive
430 install-exec: install-exec-recursive
431 install-data: install-data-recursive
432 uninstall: uninstall-recursive
433
434 install-am: all-am
435 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
436
437 installcheck: installcheck-recursive
438 install-strip:
439 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
440 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
441 `test -z '$(STRIP)' || \
442 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
443 mostlyclean-generic:
444
445 clean-generic:
446
447 distclean-generic:
448 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
449
450 maintainer-clean-generic:
451 @echo "This command is intended for maintainers to use"
452 @echo "it deletes files that may require special tools to rebuild."
453 clean: clean-recursive
454
455 clean-am: clean-generic clean-libtool mostlyclean-am
456
457 distclean: distclean-recursive
458 -rm -f Makefile
459 distclean-am: clean-am distclean-generic distclean-libtool \
460 distclean-tags
461
462 dvi: dvi-recursive
463
464 dvi-am:
465
466 html: html-recursive
467
468 info: info-recursive
469
470 info-am:
471
472 install-data-am:
473
474 install-exec-am:
475
476 install-info: install-info-recursive
477
478 install-man:
479
480 installcheck-am:
481
482 maintainer-clean: maintainer-clean-recursive
483 -rm -f Makefile
484 maintainer-clean-am: distclean-am maintainer-clean-generic
485
486 mostlyclean: mostlyclean-recursive
487
488 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
489
490 pdf: pdf-recursive
491
492 pdf-am:
493
494 ps: ps-recursive
495
496 ps-am:
497
498 uninstall-am: uninstall-info-am
499
500 uninstall-info: uninstall-info-recursive
501
502 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
503 clean clean-generic clean-libtool clean-recursive ctags \
504 ctags-recursive distclean distclean-generic distclean-libtool \
505 distclean-recursive distclean-tags distdir dvi dvi-am html \
506 html-am info info-am install install-am install-data \
507 install-data-am install-exec install-exec-am install-info \
508 install-info-am install-man install-strip installcheck \
509 installcheck-am installdirs installdirs-am maintainer-clean \
510 maintainer-clean-generic maintainer-clean-recursive \
511 mostlyclean mostlyclean-generic mostlyclean-libtool \
512 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
513 uninstall uninstall-am uninstall-info-am
514
515 # Tell versions [3.59,3.63) of GNU make to not export all variables.
516 # Otherwise a system limit (for SysV at least) may be exceeded.
517 .NOEXPORT:
0 SUBDIRS = man1 man3
1
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = docs/man
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
53 html-recursive info-recursive install-data-recursive \
54 install-exec-recursive install-info-recursive \
55 install-recursive installcheck-recursive installdirs-recursive \
56 pdf-recursive ps-recursive uninstall-info-recursive \
57 uninstall-recursive
58 ETAGS = etags
59 CTAGS = ctags
60 DIST_SUBDIRS = $(SUBDIRS)
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMDEP_FALSE = @AMDEP_FALSE@
64 AMDEP_TRUE = @AMDEP_TRUE@
65 AMTAR = @AMTAR@
66 AR = @AR@
67 AUTOCONF = @AUTOCONF@
68 AUTOHEADER = @AUTOHEADER@
69 AUTOMAKE = @AUTOMAKE@
70 AWK = @AWK@
71 CC = @CC@
72 CCDEPMODE = @CCDEPMODE@
73 CFLAGS = @CFLAGS@
74 CPP = @CPP@
75 CPPFLAGS = @CPPFLAGS@
76 CXX = @CXX@
77 CXXCPP = @CXXCPP@
78 CXXDEPMODE = @CXXDEPMODE@
79 CXXFLAGS = @CXXFLAGS@
80 CYGPATH_W = @CYGPATH_W@
81 DATADIRNAME = @DATADIRNAME@
82 DEFS = @DEFS@
83 DEPDIR = @DEPDIR@
84 ECHO = @ECHO@
85 ECHO_C = @ECHO_C@
86 ECHO_N = @ECHO_N@
87 ECHO_T = @ECHO_T@
88 EGREP = @EGREP@
89 EXEEXT = @EXEEXT@
90 F77 = @F77@
91 FFLAGS = @FFLAGS@
92 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
93 GMSGFMT = @GMSGFMT@
94 GMSGFMT_015 = @GMSGFMT_015@
95 GREP = @GREP@
96 INSTALL_DATA = @INSTALL_DATA@
97 INSTALL_PROGRAM = @INSTALL_PROGRAM@
98 INSTALL_SCRIPT = @INSTALL_SCRIPT@
99 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
100 INTLLIBS = @INTLLIBS@
101 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
102 LDFLAGS = @LDFLAGS@
103 LIBICONV = @LIBICONV@
104 LIBINTL = @LIBINTL@
105 LIBOBJS = @LIBOBJS@
106 LIBS = @LIBS@
107 LIBTOOL = @LIBTOOL@
108 LN_S = @LN_S@
109 LTLIBICONV = @LTLIBICONV@
110 LTLIBINTL = @LTLIBINTL@
111 LTLIBOBJS = @LTLIBOBJS@
112 MAINT = @MAINT@
113 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
114 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
115 MAKEINFO = @MAKEINFO@
116 MSGFMT = @MSGFMT@
117 MSGFMT_015 = @MSGFMT_015@
118 MSGMERGE = @MSGMERGE@
119 OBJEXT = @OBJEXT@
120 PACKAGE = @PACKAGE@
121 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
122 PACKAGE_NAME = @PACKAGE_NAME@
123 PACKAGE_STRING = @PACKAGE_STRING@
124 PACKAGE_TARNAME = @PACKAGE_TARNAME@
125 PACKAGE_VERSION = @PACKAGE_VERSION@
126 PATH_SEPARATOR = @PATH_SEPARATOR@
127 PA_MODULES_PATH = @PA_MODULES_PATH@
128 PA_VERSION = @PA_VERSION@
129 PE_CFLAGS = @PE_CFLAGS@
130 PE_MODULES_PATH = @PE_MODULES_PATH@
131 PKG_CONFIG = @PKG_CONFIG@
132 POSUB = @POSUB@
133 PY_CFLAGS = @PY_CFLAGS@
134 PY_MODULES_PATH = @PY_MODULES_PATH@
135 PY_VERSION = @PY_VERSION@
136 RANLIB = @RANLIB@
137 SED = @SED@
138 SET_MAKE = @SET_MAKE@
139 SHELL = @SHELL@
140 STRIP = @STRIP@
141 USE_NLS = @USE_NLS@
142 VERSION = @VERSION@
143 VERSION_INFO = @VERSION_INFO@
144 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
145 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
146 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
147 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
148 WITH_PERL_FALSE = @WITH_PERL_FALSE@
149 WITH_PERL_TRUE = @WITH_PERL_TRUE@
150 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
151 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
152 XGETTEXT = @XGETTEXT@
153 XGETTEXT_015 = @XGETTEXT_015@
154 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_CXX = @ac_ct_CXX@
157 ac_ct_F77 = @ac_ct_F77@
158 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
159 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
160 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
161 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
162 am__include = @am__include@
163 am__leading_dot = @am__leading_dot@
164 am__quote = @am__quote@
165 am__tar = @am__tar@
166 am__untar = @am__untar@
167 bindir = @bindir@
168 build = @build@
169 build_alias = @build_alias@
170 build_cpu = @build_cpu@
171 build_os = @build_os@
172 build_vendor = @build_vendor@
173 datadir = @datadir@
174 datarootdir = @datarootdir@
175 docdir = @docdir@
176 dvidir = @dvidir@
177 exec_prefix = @exec_prefix@
178 have_pascal = @have_pascal@
179 have_perl = @have_perl@
180 have_python = @have_python@
181 have_swig = @have_swig@
182 host = @host@
183 host_alias = @host_alias@
184 host_cpu = @host_cpu@
185 host_os = @host_os@
186 host_vendor = @host_vendor@
187 htmldir = @htmldir@
188 includedir = @includedir@
189 infodir = @infodir@
190 install_sh = @install_sh@
191 libdir = @libdir@
192 libexecdir = @libexecdir@
193 localedir = @localedir@
194 localstatedir = @localstatedir@
195 mandir = @mandir@
196 mkdir_p = @mkdir_p@
197 oldincludedir = @oldincludedir@
198 pdfdir = @pdfdir@
199 prefix = @prefix@
200 program_transform_name = @program_transform_name@
201 psdir = @psdir@
202 sbindir = @sbindir@
203 sharedstatedir = @sharedstatedir@
204 sysconfdir = @sysconfdir@
205 target_alias = @target_alias@
206 SUBDIRS = man1 man3
207 all: all-recursive
208
209 .SUFFIXES:
210 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
211 @for dep in $?; do \
212 case '$(am__configure_deps)' in \
213 *$$dep*) \
214 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
215 && exit 0; \
216 exit 1;; \
217 esac; \
218 done; \
219 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/man/Makefile'; \
220 cd $(top_srcdir) && \
221 $(AUTOMAKE) --gnu docs/man/Makefile
222 .PRECIOUS: Makefile
223 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
224 @case '$?' in \
225 *config.status*) \
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
227 *) \
228 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
229 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
230 esac;
231
232 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
233 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
234
235 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
236 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
237 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
239
240 mostlyclean-libtool:
241 -rm -f *.lo
242
243 clean-libtool:
244 -rm -rf .libs _libs
245
246 distclean-libtool:
247 -rm -f libtool
248 uninstall-info-am:
249
250 # This directory's subdirectories are mostly independent; you can cd
251 # into them and run `make' without going through this Makefile.
252 # To change the values of `make' variables: instead of editing Makefiles,
253 # (1) if the variable is set in `config.status', edit `config.status'
254 # (which will cause the Makefiles to be regenerated when you run `make');
255 # (2) otherwise, pass the desired values on the `make' command line.
256 $(RECURSIVE_TARGETS):
257 @failcom='exit 1'; \
258 for f in x $$MAKEFLAGS; do \
259 case $$f in \
260 *=* | --[!k]*);; \
261 *k*) failcom='fail=yes';; \
262 esac; \
263 done; \
264 dot_seen=no; \
265 target=`echo $@ | sed s/-recursive//`; \
266 list='$(SUBDIRS)'; for subdir in $$list; do \
267 echo "Making $$target in $$subdir"; \
268 if test "$$subdir" = "."; then \
269 dot_seen=yes; \
270 local_target="$$target-am"; \
271 else \
272 local_target="$$target"; \
273 fi; \
274 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
275 || eval $$failcom; \
276 done; \
277 if test "$$dot_seen" = "no"; then \
278 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
279 fi; test -z "$$fail"
280
281 mostlyclean-recursive clean-recursive distclean-recursive \
282 maintainer-clean-recursive:
283 @failcom='exit 1'; \
284 for f in x $$MAKEFLAGS; do \
285 case $$f in \
286 *=* | --[!k]*);; \
287 *k*) failcom='fail=yes';; \
288 esac; \
289 done; \
290 dot_seen=no; \
291 case "$@" in \
292 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
293 *) list='$(SUBDIRS)' ;; \
294 esac; \
295 rev=''; for subdir in $$list; do \
296 if test "$$subdir" = "."; then :; else \
297 rev="$$subdir $$rev"; \
298 fi; \
299 done; \
300 rev="$$rev ."; \
301 target=`echo $@ | sed s/-recursive//`; \
302 for subdir in $$rev; do \
303 echo "Making $$target in $$subdir"; \
304 if test "$$subdir" = "."; then \
305 local_target="$$target-am"; \
306 else \
307 local_target="$$target"; \
308 fi; \
309 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
310 || eval $$failcom; \
311 done && test -z "$$fail"
312 tags-recursive:
313 list='$(SUBDIRS)'; for subdir in $$list; do \
314 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
315 done
316 ctags-recursive:
317 list='$(SUBDIRS)'; for subdir in $$list; do \
318 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
319 done
320
321 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
322 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
323 unique=`for i in $$list; do \
324 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
325 done | \
326 $(AWK) ' { files[$$0] = 1; } \
327 END { for (i in files) print i; }'`; \
328 mkid -fID $$unique
329 tags: TAGS
330
331 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
332 $(TAGS_FILES) $(LISP)
333 tags=; \
334 here=`pwd`; \
335 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
336 include_option=--etags-include; \
337 empty_fix=.; \
338 else \
339 include_option=--include; \
340 empty_fix=; \
341 fi; \
342 list='$(SUBDIRS)'; for subdir in $$list; do \
343 if test "$$subdir" = .; then :; else \
344 test ! -f $$subdir/TAGS || \
345 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
346 fi; \
347 done; \
348 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
349 unique=`for i in $$list; do \
350 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
351 done | \
352 $(AWK) ' { files[$$0] = 1; } \
353 END { for (i in files) print i; }'`; \
354 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
355 test -n "$$unique" || unique=$$empty_fix; \
356 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
357 $$tags $$unique; \
358 fi
359 ctags: CTAGS
360 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
361 $(TAGS_FILES) $(LISP)
362 tags=; \
363 here=`pwd`; \
364 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) ' { files[$$0] = 1; } \
369 END { for (i in files) print i; }'`; \
370 test -z "$(CTAGS_ARGS)$$tags$$unique" \
371 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
372 $$tags $$unique
373
374 GTAGS:
375 here=`$(am__cd) $(top_builddir) && pwd` \
376 && cd $(top_srcdir) \
377 && gtags -i $(GTAGS_ARGS) $$here
378
379 distclean-tags:
380 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
381
382 distdir: $(DISTFILES)
383 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
384 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
385 list='$(DISTFILES)'; for file in $$list; do \
386 case $$file in \
387 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
388 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
389 esac; \
390 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
391 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
393 dir="/$$dir"; \
394 $(mkdir_p) "$(distdir)$$dir"; \
395 else \
396 dir=''; \
397 fi; \
398 if test -d $$d/$$file; then \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
410 if test "$$subdir" = .; then :; else \
411 test -d "$(distdir)/$$subdir" \
412 || $(mkdir_p) "$(distdir)/$$subdir" \
413 || exit 1; \
414 distdir=`$(am__cd) $(distdir) && pwd`; \
415 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
416 (cd $$subdir && \
417 $(MAKE) $(AM_MAKEFLAGS) \
418 top_distdir="$$top_distdir" \
419 distdir="$$distdir/$$subdir" \
420 distdir) \
421 || exit 1; \
422 fi; \
423 done
424 check-am: all-am
425 check: check-recursive
426 all-am: Makefile
427 installdirs: installdirs-recursive
428 installdirs-am:
429 install: install-recursive
430 install-exec: install-exec-recursive
431 install-data: install-data-recursive
432 uninstall: uninstall-recursive
433
434 install-am: all-am
435 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
436
437 installcheck: installcheck-recursive
438 install-strip:
439 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
440 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
441 `test -z '$(STRIP)' || \
442 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
443 mostlyclean-generic:
444
445 clean-generic:
446
447 distclean-generic:
448 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
449
450 maintainer-clean-generic:
451 @echo "This command is intended for maintainers to use"
452 @echo "it deletes files that may require special tools to rebuild."
453 clean: clean-recursive
454
455 clean-am: clean-generic clean-libtool mostlyclean-am
456
457 distclean: distclean-recursive
458 -rm -f Makefile
459 distclean-am: clean-am distclean-generic distclean-libtool \
460 distclean-tags
461
462 dvi: dvi-recursive
463
464 dvi-am:
465
466 html: html-recursive
467
468 info: info-recursive
469
470 info-am:
471
472 install-data-am:
473
474 install-exec-am:
475
476 install-info: install-info-recursive
477
478 install-man:
479
480 installcheck-am:
481
482 maintainer-clean: maintainer-clean-recursive
483 -rm -f Makefile
484 maintainer-clean-am: distclean-am maintainer-clean-generic
485
486 mostlyclean: mostlyclean-recursive
487
488 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
489
490 pdf: pdf-recursive
491
492 pdf-am:
493
494 ps: ps-recursive
495
496 ps-am:
497
498 uninstall-am: uninstall-info-am
499
500 uninstall-info: uninstall-info-recursive
501
502 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
503 clean clean-generic clean-libtool clean-recursive ctags \
504 ctags-recursive distclean distclean-generic distclean-libtool \
505 distclean-recursive distclean-tags distdir dvi dvi-am html \
506 html-am info info-am install install-am install-data \
507 install-data-am install-exec install-exec-am install-info \
508 install-info-am install-man install-strip installcheck \
509 installcheck-am installdirs installdirs-am maintainer-clean \
510 maintainer-clean-generic maintainer-clean-recursive \
511 mostlyclean mostlyclean-generic mostlyclean-libtool \
512 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
513 uninstall uninstall-am uninstall-info-am
514
515 # Tell versions [3.59,3.63) of GNU make to not export all variables.
516 # Otherwise a system limit (for SysV at least) may be exceeded.
517 .NOEXPORT:
0 EXTRA_DIST = hdate.1 hcal.1
1
2 if WITH_HCAL
3
4 man_MANS = hdate.1 hcal.1
5
6 endif
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = docs/man/man1
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 man1dir = $(mandir)/man1
53 am__installdirs = "$(DESTDIR)$(man1dir)"
54 NROFF = nroff
55 MANS = $(man_MANS)
56 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
57 ACLOCAL = @ACLOCAL@
58 AMDEP_FALSE = @AMDEP_FALSE@
59 AMDEP_TRUE = @AMDEP_TRUE@
60 AMTAR = @AMTAR@
61 AR = @AR@
62 AUTOCONF = @AUTOCONF@
63 AUTOHEADER = @AUTOHEADER@
64 AUTOMAKE = @AUTOMAKE@
65 AWK = @AWK@
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 DEFS = @DEFS@
78 DEPDIR = @DEPDIR@
79 ECHO = @ECHO@
80 ECHO_C = @ECHO_C@
81 ECHO_N = @ECHO_N@
82 ECHO_T = @ECHO_T@
83 EGREP = @EGREP@
84 EXEEXT = @EXEEXT@
85 F77 = @F77@
86 FFLAGS = @FFLAGS@
87 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
88 GMSGFMT = @GMSGFMT@
89 GMSGFMT_015 = @GMSGFMT_015@
90 GREP = @GREP@
91 INSTALL_DATA = @INSTALL_DATA@
92 INSTALL_PROGRAM = @INSTALL_PROGRAM@
93 INSTALL_SCRIPT = @INSTALL_SCRIPT@
94 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
95 INTLLIBS = @INTLLIBS@
96 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
97 LDFLAGS = @LDFLAGS@
98 LIBICONV = @LIBICONV@
99 LIBINTL = @LIBINTL@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LN_S = @LN_S@
104 LTLIBICONV = @LTLIBICONV@
105 LTLIBINTL = @LTLIBINTL@
106 LTLIBOBJS = @LTLIBOBJS@
107 MAINT = @MAINT@
108 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
109 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
110 MAKEINFO = @MAKEINFO@
111 MSGFMT = @MSGFMT@
112 MSGFMT_015 = @MSGFMT_015@
113 MSGMERGE = @MSGMERGE@
114 OBJEXT = @OBJEXT@
115 PACKAGE = @PACKAGE@
116 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
117 PACKAGE_NAME = @PACKAGE_NAME@
118 PACKAGE_STRING = @PACKAGE_STRING@
119 PACKAGE_TARNAME = @PACKAGE_TARNAME@
120 PACKAGE_VERSION = @PACKAGE_VERSION@
121 PATH_SEPARATOR = @PATH_SEPARATOR@
122 PA_MODULES_PATH = @PA_MODULES_PATH@
123 PA_VERSION = @PA_VERSION@
124 PE_CFLAGS = @PE_CFLAGS@
125 PE_MODULES_PATH = @PE_MODULES_PATH@
126 PKG_CONFIG = @PKG_CONFIG@
127 POSUB = @POSUB@
128 PY_CFLAGS = @PY_CFLAGS@
129 PY_MODULES_PATH = @PY_MODULES_PATH@
130 PY_VERSION = @PY_VERSION@
131 RANLIB = @RANLIB@
132 SED = @SED@
133 SET_MAKE = @SET_MAKE@
134 SHELL = @SHELL@
135 STRIP = @STRIP@
136 USE_NLS = @USE_NLS@
137 VERSION = @VERSION@
138 VERSION_INFO = @VERSION_INFO@
139 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
140 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
141 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
142 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
143 WITH_PERL_FALSE = @WITH_PERL_FALSE@
144 WITH_PERL_TRUE = @WITH_PERL_TRUE@
145 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
146 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
147 XGETTEXT = @XGETTEXT@
148 XGETTEXT_015 = @XGETTEXT_015@
149 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
150 ac_ct_CC = @ac_ct_CC@
151 ac_ct_CXX = @ac_ct_CXX@
152 ac_ct_F77 = @ac_ct_F77@
153 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
154 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
155 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
156 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
157 am__include = @am__include@
158 am__leading_dot = @am__leading_dot@
159 am__quote = @am__quote@
160 am__tar = @am__tar@
161 am__untar = @am__untar@
162 bindir = @bindir@
163 build = @build@
164 build_alias = @build_alias@
165 build_cpu = @build_cpu@
166 build_os = @build_os@
167 build_vendor = @build_vendor@
168 datadir = @datadir@
169 datarootdir = @datarootdir@
170 docdir = @docdir@
171 dvidir = @dvidir@
172 exec_prefix = @exec_prefix@
173 have_pascal = @have_pascal@
174 have_perl = @have_perl@
175 have_python = @have_python@
176 have_swig = @have_swig@
177 host = @host@
178 host_alias = @host_alias@
179 host_cpu = @host_cpu@
180 host_os = @host_os@
181 host_vendor = @host_vendor@
182 htmldir = @htmldir@
183 includedir = @includedir@
184 infodir = @infodir@
185 install_sh = @install_sh@
186 libdir = @libdir@
187 libexecdir = @libexecdir@
188 localedir = @localedir@
189 localstatedir = @localstatedir@
190 mandir = @mandir@
191 mkdir_p = @mkdir_p@
192 oldincludedir = @oldincludedir@
193 pdfdir = @pdfdir@
194 prefix = @prefix@
195 program_transform_name = @program_transform_name@
196 psdir = @psdir@
197 sbindir = @sbindir@
198 sharedstatedir = @sharedstatedir@
199 sysconfdir = @sysconfdir@
200 target_alias = @target_alias@
201 EXTRA_DIST = hdate.1 hcal.1
202 @WITH_HCAL_TRUE@man_MANS = hdate.1 hcal.1
203 all: all-am
204
205 .SUFFIXES:
206 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
207 @for dep in $?; do \
208 case '$(am__configure_deps)' in \
209 *$$dep*) \
210 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
211 && exit 0; \
212 exit 1;; \
213 esac; \
214 done; \
215 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/man/man1/Makefile'; \
216 cd $(top_srcdir) && \
217 $(AUTOMAKE) --gnu docs/man/man1/Makefile
218 .PRECIOUS: Makefile
219 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
220 @case '$?' in \
221 *config.status*) \
222 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
223 *) \
224 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
225 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
226 esac;
227
228 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230
231 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
233 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
234 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
235
236 mostlyclean-libtool:
237 -rm -f *.lo
238
239 clean-libtool:
240 -rm -rf .libs _libs
241
242 distclean-libtool:
243 -rm -f libtool
244 uninstall-info-am:
245 install-man1: $(man1_MANS) $(man_MANS)
246 @$(NORMAL_INSTALL)
247 test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
248 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
249 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
250 for i in $$l2; do \
251 case "$$i" in \
252 *.1*) list="$$list $$i" ;; \
253 esac; \
254 done; \
255 for i in $$list; do \
256 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
257 else file=$$i; fi; \
258 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
259 case "$$ext" in \
260 1*) ;; \
261 *) ext='1' ;; \
262 esac; \
263 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
264 inst=`echo $$inst | sed -e 's/^.*\///'`; \
265 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
266 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
267 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
268 done
269 uninstall-man1:
270 @$(NORMAL_UNINSTALL)
271 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
272 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
273 for i in $$l2; do \
274 case "$$i" in \
275 *.1*) list="$$list $$i" ;; \
276 esac; \
277 done; \
278 for i in $$list; do \
279 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
280 case "$$ext" in \
281 1*) ;; \
282 *) ext='1' ;; \
283 esac; \
284 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
285 inst=`echo $$inst | sed -e 's/^.*\///'`; \
286 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
287 echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
288 rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
289 done
290 tags: TAGS
291 TAGS:
292
293 ctags: CTAGS
294 CTAGS:
295
296
297 distdir: $(DISTFILES)
298 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
299 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
300 list='$(DISTFILES)'; for file in $$list; do \
301 case $$file in \
302 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
303 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
304 esac; \
305 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
306 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
307 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
308 dir="/$$dir"; \
309 $(mkdir_p) "$(distdir)$$dir"; \
310 else \
311 dir=''; \
312 fi; \
313 if test -d $$d/$$file; then \
314 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
315 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
316 fi; \
317 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
318 else \
319 test -f $(distdir)/$$file \
320 || cp -p $$d/$$file $(distdir)/$$file \
321 || exit 1; \
322 fi; \
323 done
324 check-am: all-am
325 check: check-am
326 all-am: Makefile $(MANS)
327 installdirs:
328 for dir in "$(DESTDIR)$(man1dir)"; do \
329 test -z "$$dir" || $(mkdir_p) "$$dir"; \
330 done
331 install: install-am
332 install-exec: install-exec-am
333 install-data: install-data-am
334 uninstall: uninstall-am
335
336 install-am: all-am
337 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
338
339 installcheck: installcheck-am
340 install-strip:
341 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
342 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
343 `test -z '$(STRIP)' || \
344 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
345 mostlyclean-generic:
346
347 clean-generic:
348
349 distclean-generic:
350 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
351
352 maintainer-clean-generic:
353 @echo "This command is intended for maintainers to use"
354 @echo "it deletes files that may require special tools to rebuild."
355 clean: clean-am
356
357 clean-am: clean-generic clean-libtool mostlyclean-am
358
359 distclean: distclean-am
360 -rm -f Makefile
361 distclean-am: clean-am distclean-generic distclean-libtool
362
363 dvi: dvi-am
364
365 dvi-am:
366
367 html: html-am
368
369 info: info-am
370
371 info-am:
372
373 install-data-am: install-man
374
375 install-exec-am:
376
377 install-info: install-info-am
378
379 install-man: install-man1
380
381 installcheck-am:
382
383 maintainer-clean: maintainer-clean-am
384 -rm -f Makefile
385 maintainer-clean-am: distclean-am maintainer-clean-generic
386
387 mostlyclean: mostlyclean-am
388
389 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
390
391 pdf: pdf-am
392
393 pdf-am:
394
395 ps: ps-am
396
397 ps-am:
398
399 uninstall-am: uninstall-info-am uninstall-man
400
401 uninstall-man: uninstall-man1
402
403 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
404 distclean distclean-generic distclean-libtool distdir dvi \
405 dvi-am html html-am info info-am install install-am \
406 install-data install-data-am install-exec install-exec-am \
407 install-info install-info-am install-man install-man1 \
408 install-strip installcheck installcheck-am installdirs \
409 maintainer-clean maintainer-clean-generic mostlyclean \
410 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
411 uninstall uninstall-am uninstall-info-am uninstall-man \
412 uninstall-man1
413
414 # Tell versions [3.59,3.63) of GNU make to not export all variables.
415 # Otherwise a system limit (for SysV at least) may be exceeded.
416 .NOEXPORT:
0 .\" .UC 4
1 .TH "HCAL" "1" "2 Mar 2005" "Yaacov Zamir" "libhdate"
2 .SH "NAME"
3 hcal \- Hebrew date
4 .PP
5 example programs for libhdate, a library that help use hebrew dates.
6 .PP
7 LibHdate is a small C,C++ library for Hebrew dates,
8 holidays, and reading sequence (parasha). It is using
9 the source code from Amos Shapir's "hdate" package fixed and
10 patched by Nadav Har'El. The Torah reading sequence
11 is from tables by Zvi Har'El.
12 .SH "SYNOPSIS"
13 .B hcal
14 [\-hdi]
15 .PP
16 [ [ month ] year ]
17 .SH "DESCRIPTION"
18 .I Hcal
19 prints a calendar with both common and Hebrew dates for the
20 specified month, or the whole year if no month is specified.
21 If no arguments are given, it prints the current month.
22 Major holidays are marked by a `*', other holidays by a `+',
23 fast days by a `\-'.
24 .PP
25 If the year is greater than 3000,
26 .I hcal
27 takes the given date as a Hebrew date, and translates it
28 back to the common calendar.
29 Months are numbered with Tishrey being 1 and Elul 12; Adar I and Adar II are months 13 and 14.
30 .PP
31 .I \-h
32 : Print output in html format.
33 .PP
34 .I \-d
35 : Use diaspora reading and holidays.
36 .PP
37 .I \-i
38 : Use external css file "./hcal.css".
39 .PP
40 .SH "SEE ALSO"
41 date(1), cal(1), hdate(1), hebcal(1), remind(1), hdate.h(3), hdate_struct(3)
42 .SH "AUTHOR"
43 Yaacov Zamir 2005, text copied from Amos Shapir's hdate man file.
0 .\" .UC 4
1 .TH "HDATE" "1" "2 Mar 2005" "Yaacov Zamir" "libhdate"
2 .SH "NAME"
3 hdate \- Hebrew date and calendar
4 .PP
5 example programs for libhdate, a library that help use Hebrew dates.
6 .PP
7 LibHdate is a small C,C++ library for Hebrew dates,
8 holidays, and reading sequence (parasha). It is using
9 the source code from Amos Shapir's "hdate" package fixed and
10 patched by Nadav Har'El. The Torah reading sequence
11 is from tables by Zvi Har'El.
12 .SH "SYNOPSIS"
13 .B hdate
14 [\-sctShHrRjdi]
15 .PP
16 [\-L longitude \-l latitude]
17 [\-z timezone]
18 .PP
19 [[[day] month] year]/[julian_day]
20 .SH "DESCRIPTION"
21 .I Hdate
22 translates the specified date to the Hebrew calendar.
23 If no arguments are given, it uses today's date.
24 `month' is a number between 1 and 12.
25 .PP
26 If the year is greater than 3000
27 .I hdate
28 takes the given date as a Hebrew date, and translates it
29 back to the common calendar. If argument is greater than 100000
30 .I hdate
31 takes it as the Julian day number.
32 Months are numbered with Tishrey being 1 and Elul 12; Adar I and Adar II are months 13 and 14.
33 .PP
34 .I \-s
35 : Print sunrise/sunset times.
36 .PP
37 .I \-c
38 : Print Shabat enter/leave times.
39 Shabat starts 20 min before sunset,
40 and exits when three stars are out.
41 .PP
42 .I \-t
43 : Print day times list.
44 .PP
45 first light, talit, sunrise, mid day, sunset, first stars, three stars.
46 .PP
47 .I \-S
48 : Print using short format.
49 .PP
50 .I \-h
51 : Print holidays.
52 .PP
53 .I \-H
54 : Print just holidays.
55 .PP
56 .I \-r
57 : Print weekly reading on Saturday.
58 .PP
59 .I \-R
60 : Print just weekly reading on Saturday.
61 .PP
62 .I \-j
63 : Print Julian day number.
64 .PP
65 .I \-d
66 : Use diaspora reading and holidays.
67 .PP
68 .I \-i
69 : Use iCal formatted output.
70 .PP
71 .I \-l
72 xx : Set the latitude for solar calculations to
73 .PP
74 xx degrees. Negative values are south.
75 .PP
76 .I \-L
77 xx : Set the longitude for solar calculations to
78 .PP
79 xx degrees. *Negative values are EAST*.
80 .PP
81 .I \-z
82 : Use specified timezone.
83 .PP
84 ( default location for sunrise/set is Tel Aviv ).
85 .SH "EXAMPLES"
86 .B hdate -Hi 2025
87 .PP
88 Creates an iCal calendar of the holidays of year 2025.
89 .PP
90 .B hdate -sR 4 2031 -l29 -L-34 -z2
91 .PP
92 Print out the weekly readings and sunset/sunrise times in Eilat on April 2031.
93 .PP
94 .PP
95 .B Useful locations and time zones
96 .PP
97 Eilat : 29, -34, 2
98 .PP
99 Haifa : 32, -34, 2
100 .PP
101 Jerusalem : 31, -35, 2
102 .PP
103 Tel Aviv : 32, -34, 2
104 .PP
105 Ashdod : 31, -34, 2
106 .PP
107 Beer Sheva : 31, -34, 2
108 .PP
109 Tiberias : 32, -35, 2
110 .PP
111 .PP
112 London : 51, 0, 0
113 .PP
114 Paris : 48, -2, 1
115 .PP
116 New York : 40, 74, -5
117 .PP
118 Moscow : 55, -37, 3
119 .PP
120 .PP
121 .SH "SEE ALSO"
122 date(1), cal(1), hcal(1), hebcal(1), remind(1), hdate.h(3), hdate_struct(3)
123 .SH "AUTHOR"
124 Yaacov Zamir 2005, text copied from Amos Shapir's hdate man file.
0 EXTRA_DIST = hdate.3 hdate.h.3 hdate_Hdate.3 hdate_struct.3 hdatepp.h.3
1
2 man_MANS = hdate.3 hdate.h.3 hdate_Hdate.3 hdate_struct.3 hdatepp.h.3
3
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = docs/man/man3
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 man3dir = $(mandir)/man3
53 am__installdirs = "$(DESTDIR)$(man3dir)"
54 NROFF = nroff
55 MANS = $(man_MANS)
56 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
57 ACLOCAL = @ACLOCAL@
58 AMDEP_FALSE = @AMDEP_FALSE@
59 AMDEP_TRUE = @AMDEP_TRUE@
60 AMTAR = @AMTAR@
61 AR = @AR@
62 AUTOCONF = @AUTOCONF@
63 AUTOHEADER = @AUTOHEADER@
64 AUTOMAKE = @AUTOMAKE@
65 AWK = @AWK@
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 DEFS = @DEFS@
78 DEPDIR = @DEPDIR@
79 ECHO = @ECHO@
80 ECHO_C = @ECHO_C@
81 ECHO_N = @ECHO_N@
82 ECHO_T = @ECHO_T@
83 EGREP = @EGREP@
84 EXEEXT = @EXEEXT@
85 F77 = @F77@
86 FFLAGS = @FFLAGS@
87 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
88 GMSGFMT = @GMSGFMT@
89 GMSGFMT_015 = @GMSGFMT_015@
90 GREP = @GREP@
91 INSTALL_DATA = @INSTALL_DATA@
92 INSTALL_PROGRAM = @INSTALL_PROGRAM@
93 INSTALL_SCRIPT = @INSTALL_SCRIPT@
94 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
95 INTLLIBS = @INTLLIBS@
96 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
97 LDFLAGS = @LDFLAGS@
98 LIBICONV = @LIBICONV@
99 LIBINTL = @LIBINTL@
100 LIBOBJS = @LIBOBJS@
101 LIBS = @LIBS@
102 LIBTOOL = @LIBTOOL@
103 LN_S = @LN_S@
104 LTLIBICONV = @LTLIBICONV@
105 LTLIBINTL = @LTLIBINTL@
106 LTLIBOBJS = @LTLIBOBJS@
107 MAINT = @MAINT@
108 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
109 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
110 MAKEINFO = @MAKEINFO@
111 MSGFMT = @MSGFMT@
112 MSGFMT_015 = @MSGFMT_015@
113 MSGMERGE = @MSGMERGE@
114 OBJEXT = @OBJEXT@
115 PACKAGE = @PACKAGE@
116 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
117 PACKAGE_NAME = @PACKAGE_NAME@
118 PACKAGE_STRING = @PACKAGE_STRING@
119 PACKAGE_TARNAME = @PACKAGE_TARNAME@
120 PACKAGE_VERSION = @PACKAGE_VERSION@
121 PATH_SEPARATOR = @PATH_SEPARATOR@
122 PA_MODULES_PATH = @PA_MODULES_PATH@
123 PA_VERSION = @PA_VERSION@
124 PE_CFLAGS = @PE_CFLAGS@
125 PE_MODULES_PATH = @PE_MODULES_PATH@
126 PKG_CONFIG = @PKG_CONFIG@
127 POSUB = @POSUB@
128 PY_CFLAGS = @PY_CFLAGS@
129 PY_MODULES_PATH = @PY_MODULES_PATH@
130 PY_VERSION = @PY_VERSION@
131 RANLIB = @RANLIB@
132 SED = @SED@
133 SET_MAKE = @SET_MAKE@
134 SHELL = @SHELL@
135 STRIP = @STRIP@
136 USE_NLS = @USE_NLS@
137 VERSION = @VERSION@
138 VERSION_INFO = @VERSION_INFO@
139 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
140 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
141 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
142 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
143 WITH_PERL_FALSE = @WITH_PERL_FALSE@
144 WITH_PERL_TRUE = @WITH_PERL_TRUE@
145 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
146 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
147 XGETTEXT = @XGETTEXT@
148 XGETTEXT_015 = @XGETTEXT_015@
149 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
150 ac_ct_CC = @ac_ct_CC@
151 ac_ct_CXX = @ac_ct_CXX@
152 ac_ct_F77 = @ac_ct_F77@
153 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
154 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
155 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
156 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
157 am__include = @am__include@
158 am__leading_dot = @am__leading_dot@
159 am__quote = @am__quote@
160 am__tar = @am__tar@
161 am__untar = @am__untar@
162 bindir = @bindir@
163 build = @build@
164 build_alias = @build_alias@
165 build_cpu = @build_cpu@
166 build_os = @build_os@
167 build_vendor = @build_vendor@
168 datadir = @datadir@
169 datarootdir = @datarootdir@
170 docdir = @docdir@
171 dvidir = @dvidir@
172 exec_prefix = @exec_prefix@
173 have_pascal = @have_pascal@
174 have_perl = @have_perl@
175 have_python = @have_python@
176 have_swig = @have_swig@
177 host = @host@
178 host_alias = @host_alias@
179 host_cpu = @host_cpu@
180 host_os = @host_os@
181 host_vendor = @host_vendor@
182 htmldir = @htmldir@
183 includedir = @includedir@
184 infodir = @infodir@
185 install_sh = @install_sh@
186 libdir = @libdir@
187 libexecdir = @libexecdir@
188 localedir = @localedir@
189 localstatedir = @localstatedir@
190 mandir = @mandir@
191 mkdir_p = @mkdir_p@
192 oldincludedir = @oldincludedir@
193 pdfdir = @pdfdir@
194 prefix = @prefix@
195 program_transform_name = @program_transform_name@
196 psdir = @psdir@
197 sbindir = @sbindir@
198 sharedstatedir = @sharedstatedir@
199 sysconfdir = @sysconfdir@
200 target_alias = @target_alias@
201 EXTRA_DIST = hdate.3 hdate.h.3 hdate_Hdate.3 hdate_struct.3 hdatepp.h.3
202 man_MANS = hdate.3 hdate.h.3 hdate_Hdate.3 hdate_struct.3 hdatepp.h.3
203 all: all-am
204
205 .SUFFIXES:
206 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
207 @for dep in $?; do \
208 case '$(am__configure_deps)' in \
209 *$$dep*) \
210 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
211 && exit 0; \
212 exit 1;; \
213 esac; \
214 done; \
215 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/man/man3/Makefile'; \
216 cd $(top_srcdir) && \
217 $(AUTOMAKE) --gnu docs/man/man3/Makefile
218 .PRECIOUS: Makefile
219 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
220 @case '$?' in \
221 *config.status*) \
222 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
223 *) \
224 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
225 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
226 esac;
227
228 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230
231 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
232 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
233 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
234 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
235
236 mostlyclean-libtool:
237 -rm -f *.lo
238
239 clean-libtool:
240 -rm -rf .libs _libs
241
242 distclean-libtool:
243 -rm -f libtool
244 uninstall-info-am:
245 install-man3: $(man3_MANS) $(man_MANS)
246 @$(NORMAL_INSTALL)
247 test -z "$(man3dir)" || $(mkdir_p) "$(DESTDIR)$(man3dir)"
248 @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
249 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
250 for i in $$l2; do \
251 case "$$i" in \
252 *.3*) list="$$list $$i" ;; \
253 esac; \
254 done; \
255 for i in $$list; do \
256 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
257 else file=$$i; fi; \
258 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
259 case "$$ext" in \
260 3*) ;; \
261 *) ext='3' ;; \
262 esac; \
263 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
264 inst=`echo $$inst | sed -e 's/^.*\///'`; \
265 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
266 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
267 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
268 done
269 uninstall-man3:
270 @$(NORMAL_UNINSTALL)
271 @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
272 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
273 for i in $$l2; do \
274 case "$$i" in \
275 *.3*) list="$$list $$i" ;; \
276 esac; \
277 done; \
278 for i in $$list; do \
279 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
280 case "$$ext" in \
281 3*) ;; \
282 *) ext='3' ;; \
283 esac; \
284 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
285 inst=`echo $$inst | sed -e 's/^.*\///'`; \
286 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
287 echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
288 rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
289 done
290 tags: TAGS
291 TAGS:
292
293 ctags: CTAGS
294 CTAGS:
295
296
297 distdir: $(DISTFILES)
298 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
299 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
300 list='$(DISTFILES)'; for file in $$list; do \
301 case $$file in \
302 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
303 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
304 esac; \
305 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
306 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
307 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
308 dir="/$$dir"; \
309 $(mkdir_p) "$(distdir)$$dir"; \
310 else \
311 dir=''; \
312 fi; \
313 if test -d $$d/$$file; then \
314 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
315 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
316 fi; \
317 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
318 else \
319 test -f $(distdir)/$$file \
320 || cp -p $$d/$$file $(distdir)/$$file \
321 || exit 1; \
322 fi; \
323 done
324 check-am: all-am
325 check: check-am
326 all-am: Makefile $(MANS)
327 installdirs:
328 for dir in "$(DESTDIR)$(man3dir)"; do \
329 test -z "$$dir" || $(mkdir_p) "$$dir"; \
330 done
331 install: install-am
332 install-exec: install-exec-am
333 install-data: install-data-am
334 uninstall: uninstall-am
335
336 install-am: all-am
337 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
338
339 installcheck: installcheck-am
340 install-strip:
341 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
342 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
343 `test -z '$(STRIP)' || \
344 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
345 mostlyclean-generic:
346
347 clean-generic:
348
349 distclean-generic:
350 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
351
352 maintainer-clean-generic:
353 @echo "This command is intended for maintainers to use"
354 @echo "it deletes files that may require special tools to rebuild."
355 clean: clean-am
356
357 clean-am: clean-generic clean-libtool mostlyclean-am
358
359 distclean: distclean-am
360 -rm -f Makefile
361 distclean-am: clean-am distclean-generic distclean-libtool
362
363 dvi: dvi-am
364
365 dvi-am:
366
367 html: html-am
368
369 info: info-am
370
371 info-am:
372
373 install-data-am: install-man
374
375 install-exec-am:
376
377 install-info: install-info-am
378
379 install-man: install-man3
380
381 installcheck-am:
382
383 maintainer-clean: maintainer-clean-am
384 -rm -f Makefile
385 maintainer-clean-am: distclean-am maintainer-clean-generic
386
387 mostlyclean: mostlyclean-am
388
389 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
390
391 pdf: pdf-am
392
393 pdf-am:
394
395 ps: ps-am
396
397 ps-am:
398
399 uninstall-am: uninstall-info-am uninstall-man
400
401 uninstall-man: uninstall-man3
402
403 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
404 distclean distclean-generic distclean-libtool distdir dvi \
405 dvi-am html html-am info info-am install install-am \
406 install-data install-data-am install-exec install-exec-am \
407 install-info install-info-am install-man install-man3 \
408 install-strip installcheck installcheck-am installdirs \
409 maintainer-clean maintainer-clean-generic mostlyclean \
410 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
411 uninstall uninstall-am uninstall-info-am uninstall-man \
412 uninstall-man3
413
414 # Tell versions [3.59,3.63) of GNU make to not export all variables.
415 # Otherwise a system limit (for SysV at least) may be exceeded.
416 .NOEXPORT:
0 .TH "hdate" 3 "3 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 hdate \- the libhdate namespace.
5
6 .PP
7 .SH SYNOPSIS
8 .br
9 .PP
10 .SS "Classes"
11
12 .in +1c
13 .ti -1c
14 .RI "class \fBHdate\fP"
15 .br
16 .RI "\fI\fBHdate\fP class. \fP"
17 .in -1c
18 .SH "Detailed Description"
19 .PP
20 the libhdate namespace.
21 .SH "Author"
22 .PP
23 Generated automatically by Doxygen for libhdate C++ language from the source code.
0 .TH "src/hdate.h" 3 "4 Jan 2008" "Version 1.4" "libhdate C language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 src/hdate.h \-
5 .SH SYNOPSIS
6 .br
7 .PP
8 .SS "Data Structures"
9
10 .in +1c
11 .ti -1c
12 .RI "struct \fBhdate_struct\fP"
13 .br
14 .in -1c
15 .SS "Defines"
16
17 .in +1c
18 .ti -1c
19 .RI "#define \fBHDATA_DIASPORA_FLAG\fP -1"
20 .br
21 .RI "\fIuse diaspora dates and holydays flag \fP"
22 .ti -1c
23 .RI "#define \fBHDATA_ISRAEL_FLAG\fP 0"
24 .br
25 .RI "\fIuse israel dates and holydays flag \fP"
26 .ti -1c
27 .RI "#define \fBHDATA_SHORT_FLAG\fP -1"
28 .br
29 .RI "\fIuse short strings flag \fP"
30 .ti -1c
31 .RI "#define \fBHDATA_LONG_FLAG\fP 0"
32 .br
33 .RI "\fIuse long strings flag \fP"
34 .in -1c
35 .SS "Functions"
36
37 .in +1c
38 .ti -1c
39 .RI "\fBhdate_struct\fP * \fBhdate_set_gdate\fP (\fBhdate_struct\fP *h, int d, int m, int y)"
40 .br
41 .RI "\fIcompute date structure from the Gregorian date \fP"
42 .ti -1c
43 .RI "\fBhdate_struct\fP * \fBhdate_set_hdate\fP (\fBhdate_struct\fP *h, int d, int m, int y)"
44 .br
45 .RI "\fIcompute date structure from the Hebrew date \fP"
46 .ti -1c
47 .RI "\fBhdate_struct\fP * \fBhdate_set_jd\fP (\fBhdate_struct\fP *h, int jd)"
48 .br
49 .RI "\fIcompute date structure from the Julian day \fP"
50 .ti -1c
51 .RI "char * \fBhdate_get_format_date\fP (\fBhdate_struct\fP const *h, int diaspora, int s)"
52 .br
53 .RI "\fIget formated hebrew date. \fP"
54 .ti -1c
55 .RI "int \fBhdate_get_parasha\fP (\fBhdate_struct\fP const *h, int diaspora)"
56 .br
57 .RI "\fIget the number of hebrew parasha. \fP"
58 .ti -1c
59 .RI "int \fBhdate_get_holyday\fP (\fBhdate_struct\fP const *h, int diaspora)"
60 .br
61 .RI "\fIget the number of hebrew holyday. \fP"
62 .ti -1c
63 .RI "char * \fBhdate_get_int_string\fP (int n)"
64 .br
65 .RI "\fIconvert an integer to hebrew string. \fP"
66 .ti -1c
67 .RI "char * \fBhdate_get_day_string\fP (int day, int s)"
68 .br
69 .RI "\fIget name of week day. \fP"
70 .ti -1c
71 .RI "char * \fBhdate_get_month_string\fP (int month, int s)"
72 .br
73 .RI "\fIname of month. \fP"
74 .ti -1c
75 .RI "char * \fBhdate_get_hebrew_month_string\fP (int month, int s)"
76 .br
77 .RI "\fIname of hebrew month. \fP"
78 .ti -1c
79 .RI "char * \fBhdate_get_holyday_string\fP (int holyday, int s)"
80 .br
81 .RI "\fIname of hebrew holyday. \fP"
82 .ti -1c
83 .RI "char * \fBhdate_get_parasha_string\fP (int parasha, int s)"
84 .br
85 .RI "\fIname of parasha \fP"
86 .ti -1c
87 .RI "int \fBhdate_get_holyday_type\fP (int holyday)"
88 .br
89 .RI "\fIget the hebrew holyday type. \fP"
90 .ti -1c
91 .RI "int \fBhdate_get_size_of_hebrew_year\fP (int hebrew_year)"
92 .br
93 .RI "\fIsize of hebrew year in days. \fP"
94 .ti -1c
95 .RI "int \fBhdate_days_from_3744\fP (int hebrew_year)"
96 .br
97 .RI "\fIDays since Tishrey 3744. \fP"
98 .ti -1c
99 .RI "int \fBhdate_get_year_type\fP (int size_of_year, int new_year_dw)"
100 .br
101 .RI "\fIReturn Hebrew year type based on size and first week day of year. \fP"
102 .ti -1c
103 .RI "int \fBhdate_gdate_to_jd\fP (int day, int month, int year)"
104 .br
105 .RI "\fICompute Julian day from Gregorian date. \fP"
106 .ti -1c
107 .RI "int \fBhdate_hdate_to_jd\fP (int day, int month, int year, int *jd_tishrey1, int *jd_tishrey1_next_year)"
108 .br
109 .RI "\fICompute Julian day from Hebrew day, month and year. \fP"
110 .ti -1c
111 .RI "void \fBhdate_jd_to_gdate\fP (int jd, int *day, int *month, int *year)"
112 .br
113 .RI "\fIConverting from the Julian day to the Gregorian date. \fP"
114 .ti -1c
115 .RI "void \fBhdate_jd_to_hdate\fP (int jd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year)"
116 .br
117 .RI "\fIConverting from the Julian day to the Hebrew day. \fP"
118 .ti -1c
119 .RI "int \fBhdate_get_day_of_year\fP (int day, int month, int year)"
120 .br
121 .RI "\fIdays from 1 january \fP"
122 .ti -1c
123 .RI "void \fBhdate_get_utc_sun_time_deg\fP (int day, int month, int year, double latitude, double longitude, double deg, int *sunrise, int *sunset)"
124 .br
125 .RI "\fIutc sun times for altitude at a gregorian date \fP"
126 .ti -1c
127 .RI "void \fBhdate_get_utc_sun_time\fP (int day, int month, int year, double latitude, double longitude, int *sunrise, int *sunset)"
128 .br
129 .RI "\fIutc sunrise/set time for a gregorian date \fP"
130 .ti -1c
131 .RI "void \fBhdate_get_utc_sun_time_full\fP (int day, int month, int year, double latitude, double longitude, int *sun_hour, int *first_light, int *talit, int *sunrise, int *midday, int *sunset, int *first_stars, int *three_stars)"
132 .br
133 .RI "\fIutc sunrise/set time for a gregorian date \fP"
134 .ti -1c
135 .RI "int \fBhdate_get_gday\fP (\fBhdate_struct\fP const *h)"
136 .br
137 .RI "\fIget the Gregorian day of the month \fP"
138 .ti -1c
139 .RI "int \fBhdate_get_gmonth\fP (\fBhdate_struct\fP const *h)"
140 .br
141 .RI "\fIget the Gregorian month \fP"
142 .ti -1c
143 .RI "int \fBhdate_get_gyear\fP (\fBhdate_struct\fP const *h)"
144 .br
145 .RI "\fIget the Gregorian year \fP"
146 .ti -1c
147 .RI "int \fBhdate_get_hday\fP (\fBhdate_struct\fP const *h)"
148 .br
149 .RI "\fIget the Hebrew day of the month \fP"
150 .ti -1c
151 .RI "int \fBhdate_get_hmonth\fP (\fBhdate_struct\fP const *h)"
152 .br
153 .RI "\fIget the Hebrew month \fP"
154 .ti -1c
155 .RI "int \fBhdate_get_hyear\fP (\fBhdate_struct\fP const *h)"
156 .br
157 .RI "\fIget the Hebrew year \fP"
158 .ti -1c
159 .RI "int \fBhdate_get_day_of_the_week\fP (\fBhdate_struct\fP const *h)"
160 .br
161 .RI "\fIget the day of the week \fP"
162 .ti -1c
163 .RI "int \fBhdate_get_size_of_year\fP (\fBhdate_struct\fP const *h)"
164 .br
165 .RI "\fIget the size of the hebrew year \fP"
166 .ti -1c
167 .RI "int \fBhdate_get_new_year_day_of_the_week\fP (\fBhdate_struct\fP const *h)"
168 .br
169 .RI "\fIget the new year day of the week \fP"
170 .ti -1c
171 .RI "int \fBhdate_get_julian\fP (\fBhdate_struct\fP const *h)"
172 .br
173 .RI "\fIget the Julian day number \fP"
174 .ti -1c
175 .RI "int \fBhdate_get_days\fP (\fBhdate_struct\fP const *h)"
176 .br
177 .RI "\fIget the number of days passed since 1 tishrey \fP"
178 .ti -1c
179 .RI "int \fBhdate_get_weeks\fP (\fBhdate_struct\fP const *h)"
180 .br
181 .RI "\fIget the number of weeks passed since 1 tishrey \fP"
182 .ti -1c
183 .RI "\fBhdate_struct\fP * \fBnew_hdate\fP ()"
184 .br
185 .RI "\fIcreat a new hdate struct object, must be deleted using delete_hdate. \fP"
186 .ti -1c
187 .RI "\fBhdate_struct\fP * \fBdelete_hdate\fP (\fBhdate_struct\fP *h)"
188 .br
189 .RI "\fIdelete an hdate struct object. \fP"
190 .ti -1c
191 .RI "char * \fBhdate_get_version_string\fP ()"
192 .br
193 .RI "\fIReturn a static string, with the package name and version. \fP"
194 .ti -1c
195 .RI "char * \fBhdate_get_translator_string\fP ()"
196 .br
197 .RI "\fIname of translator \fP"
198 .in -1c
199 .SH "Define Documentation"
200 .PP
201 .SS "#define HDATA_DIASPORA_FLAG -1"
202 .PP
203 use diaspora dates and holydays flag
204 .PP
205 .SS "#define HDATA_ISRAEL_FLAG 0"
206 .PP
207 use israel dates and holydays flag
208 .PP
209 .SS "#define HDATA_SHORT_FLAG -1"
210 .PP
211 use short strings flag
212 .PP
213 .SS "#define HDATA_LONG_FLAG 0"
214 .PP
215 use long strings flag
216 .PP
217 .SH "Function Documentation"
218 .PP
219 .SS "\fBhdate_struct\fP* hdate_set_gdate (\fBhdate_struct\fP * h, int d, int m, int y)"
220 .PP
221 compute date structure from the Gregorian date
222 .PP
223 \fBParameters:\fP
224 .RS 4
225 \fIh\fP pointer this hdate struct.
226 .br
227 \fId\fP Day of month 1..31
228 .br
229 \fIm\fP Month 1..12 if m or d is 0 return current date.
230 .br
231 \fIy\fP Year in 4 digits e.g. 2001
232 .RE
233 .PP
234 \fBReturns:\fP
235 .RS 4
236 pointer to this hdate struct
237 .RE
238 .PP
239
240 .SS "\fBhdate_struct\fP* hdate_set_hdate (\fBhdate_struct\fP * h, int d, int m, int y)"
241 .PP
242 compute date structure from the Hebrew date
243 .PP
244 \fBParameters:\fP
245 .RS 4
246 \fIh\fP pointer this hdate struct.
247 .br
248 \fId\fP Day of month 1..31
249 .br
250 \fIm\fP Month 1..14 ,(13 - Adar 1, 14 - Adar 2) if m or d is 0 return current date.
251 .br
252 \fIy\fP Year in 4 digits e.g. 5731
253 .RE
254 .PP
255 \fBReturns:\fP
256 .RS 4
257 pointer to this hdate struct
258 .RE
259 .PP
260
261 .SS "\fBhdate_struct\fP* hdate_set_jd (\fBhdate_struct\fP * h, int jd)"
262 .PP
263 compute date structure from the Julian day
264 .PP
265 \fBParameters:\fP
266 .RS 4
267 \fIh\fP pointer this hdate struct.
268 .br
269 \fIjd\fP the julian day number.
270 .RE
271 .PP
272 \fBReturns:\fP
273 .RS 4
274 pointer to this hdate struct
275 .RE
276 .PP
277
278 .SS "char* hdate_get_format_date (\fBhdate_struct\fP const * h, int diaspora, int s)"
279 .PP
280 get formated hebrew date.
281 .PP
282 return the short ( e.g. '1 Tishrey' ) or long (e.g. 'Tuesday 18 Tishrey 5763 Hol hamoed Sukot' ) formated date.
283 .PP
284 \fBParameters:\fP
285 .RS 4
286 \fIh\fP pointer this hdate struct.
287 .br
288 \fIdiaspora\fP if true give diaspora holydays.
289 .br
290 \fIs\fP short flag.
291 .RE
292 .PP
293 \fBReturns:\fP
294 .RS 4
295 a static string of foramted date
296 .RE
297 .PP
298
299 .SS "int hdate_get_parasha (\fBhdate_struct\fP const * h, int diaspora)"
300 .PP
301 get the number of hebrew parasha.
302 .PP
303 \fBParameters:\fP
304 .RS 4
305 \fIh\fP pointer this hdate struct.
306 .br
307 \fIdiaspora\fP if true give diaspora readings
308 .RE
309 .PP
310 \fBReturns:\fP
311 .RS 4
312 the number of parasha 1. Bereshit etc.. (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
313 .RE
314 .PP
315
316 .SS "int hdate_get_holyday (\fBhdate_struct\fP const * h, int diaspora)"
317 .PP
318 get the number of hebrew holyday.
319 .PP
320 \fBParameters:\fP
321 .RS 4
322 \fIh\fP pointer this hdate struct.
323 .br
324 \fIdiaspora\fP if true give diaspora holydays
325 .RE
326 .PP
327 \fBReturns:\fP
328 .RS 4
329 the number of holyday.
330 .RE
331 .PP
332
333 .SS "char* hdate_get_int_string (int n)"
334 .PP
335 convert an integer to hebrew string.
336 .PP
337 \fBParameters:\fP
338 .RS 4
339 \fIn\fP The int to convert
340 .RE
341 .PP
342 \fBReturns:\fP
343 .RS 4
344 a static string of the hebrew number UTF-8 (logical)
345 .RE
346 .PP
347 \fBAttention:\fP
348 .RS 4
349 ( 0 < n < 10000)
350 .RE
351 .PP
352
353 .SS "char* hdate_get_day_string (int day, int s)"
354 .PP
355 get name of week day.
356 .PP
357 \fBParameters:\fP
358 .RS 4
359 \fIday\fP The number of the day 1..7 (1 - sun).
360 .br
361 \fIs\fP short flag true - returns a short string: sun, false returns: sunday.
362 .RE
363 .PP
364 \fBReturns:\fP
365 .RS 4
366 a static string of the day of the week
367 .RE
368 .PP
369
370 .SS "char* hdate_get_month_string (int month, int s)"
371 .PP
372 name of month.
373 .PP
374 \fBParameters:\fP
375 .RS 4
376 \fImonth\fP the number of the month 1..12 (1 - jan).
377 .br
378 \fIs\fP short flag.
379 .RE
380 .PP
381 \fBReturns:\fP
382 .RS 4
383 a static string of month name
384 .RE
385 .PP
386
387 .SS "char* hdate_get_hebrew_month_string (int month, int s)"
388 .PP
389 name of hebrew month.
390 .PP
391 \fBParameters:\fP
392 .RS 4
393 \fImonth\fP the number of the month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
394 .br
395 \fIs\fP short flag.
396 .RE
397 .PP
398 \fBReturns:\fP
399 .RS 4
400 a static string of month name
401 .RE
402 .PP
403
404 .SS "char* hdate_get_holyday_string (int holyday, int s)"
405 .PP
406 name of hebrew holyday.
407 .PP
408 \fBParameters:\fP
409 .RS 4
410 \fIholyday\fP the holyday number.
411 .br
412 \fIs\fP short flag.
413 .RE
414 .PP
415 \fBReturns:\fP
416 .RS 4
417 a static string of holyday name
418 .RE
419 .PP
420
421 .SS "char* hdate_get_parasha_string (int parasha, int s)"
422 .PP
423 name of parasha
424 .PP
425 \fBParameters:\fP
426 .RS 4
427 \fIparasha\fP the number of parasha 1-Bereshit (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
428 .br
429 \fIs\fP short flag.
430 .RE
431 .PP
432 \fBReturns:\fP
433 .RS 4
434 a static string of parasha name
435 .RE
436 .PP
437
438 .SS "int hdate_get_holyday_type (int holyday)"
439 .PP
440 get the hebrew holyday type.
441 .PP
442 \fBParameters:\fP
443 .RS 4
444 \fIholyday\fP the holyday number.
445 .RE
446 .PP
447 \fBReturns:\fP
448 .RS 4
449 the number of holyday type.
450 .RE
451 .PP
452
453 .SS "int hdate_get_size_of_hebrew_year (int hebrew_year)"
454 .PP
455 size of hebrew year in days.
456 .PP
457 \fBParameters:\fP
458 .RS 4
459 \fIhebrew_year\fP the hebrew year.
460 .RE
461 .PP
462 \fBReturns:\fP
463 .RS 4
464 size of Hebrew year
465 .RE
466 .PP
467
468 .SS "int hdate_days_from_3744 (int hebrew_year)"
469 .PP
470 Days since Tishrey 3744.
471 .PP
472 \fBAuthor:\fP
473 .RS 4
474 Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
475 .RE
476 .PP
477 \fBParameters:\fP
478 .RS 4
479 \fIhebrew_year\fP The Hebrew year
480 .RE
481 .PP
482 \fBReturns:\fP
483 .RS 4
484 Number of days since 3,1,3744
485 .RE
486 .PP
487
488 .SS "int hdate_get_year_type (int size_of_year, int new_year_dw)"
489 .PP
490 Return Hebrew year type based on size and first week day of year.
491 .PP
492 \fBParameters:\fP
493 .RS 4
494 \fIsize_of_year\fP Length of year in days
495 .br
496 \fInew_year_dw\fP First week day of year
497 .RE
498 .PP
499 \fBReturns:\fP
500 .RS 4
501 the number for year type (1..14)
502 .RE
503 .PP
504
505 .SS "int hdate_gdate_to_jd (int day, int month, int year)"
506 .PP
507 Compute Julian day from Gregorian date.
508 .PP
509 \fBAuthor:\fP
510 .RS 4
511 Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
512 .RE
513 .PP
514 \fBParameters:\fP
515 .RS 4
516 \fIday\fP Day of month 1..31
517 .br
518 \fImonth\fP Month 1..12
519 .br
520 \fIyear\fP Year in 4 digits e.g. 2001
521 .RE
522 .PP
523 \fBReturns:\fP
524 .RS 4
525 the julian day number
526 .RE
527 .PP
528
529 .SS "int hdate_hdate_to_jd (int day, int month, int year, int * jd_tishrey1, int * jd_tishrey1_next_year)"
530 .PP
531 Compute Julian day from Hebrew day, month and year.
532 .PP
533 \fBAuthor:\fP
534 .RS 4
535 Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
536 .RE
537 .PP
538 \fBParameters:\fP
539 .RS 4
540 \fIday\fP Day of month 1..31
541 .br
542 \fImonth\fP Month 1..14 (13 - Adar 1, 14 - Adar 2)
543 .br
544 \fIyear\fP Hebrew year in 4 digits e.g. 5753
545 .br
546 \fIjd_tishrey1\fP return the julian number of 1 Tishrey this year
547 .br
548 \fIjd_tishrey1_next_year\fP return the julian number of 1 Tishrey next year
549 .RE
550 .PP
551 \fBReturns:\fP
552 .RS 4
553 the julian day number
554 .RE
555 .PP
556
557 .SS "void hdate_jd_to_gdate (int jd, int * day, int * month, int * year)"
558 .PP
559 Converting from the Julian day to the Gregorian date.
560 .PP
561 \fBAuthor:\fP
562 .RS 4
563 Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
564 .RE
565 .PP
566 \fBParameters:\fP
567 .RS 4
568 \fIjd\fP Julian day
569 .br
570 \fIday\fP return Day of month 1..31
571 .br
572 \fImonth\fP return Month 1..12
573 .br
574 \fIyear\fP return Year in 4 digits e.g. 2001
575 .RE
576 .PP
577
578 .SS "void hdate_jd_to_hdate (int jd, int * day, int * month, int * year, int * jd_tishrey1, int * jd_tishrey1_next_year)"
579 .PP
580 Converting from the Julian day to the Hebrew day.
581 .PP
582 \fBAuthor:\fP
583 .RS 4
584 Yaacov Zamir 2005
585 .RE
586 .PP
587 \fBParameters:\fP
588 .RS 4
589 \fIjd\fP Julian day
590 .br
591 \fIday\fP return Day of month 1..31
592 .br
593 \fImonth\fP return Month 1..14 (13 - Adar 1, 14 - Adar 2)
594 .br
595 \fIyear\fP return Year in 4 digits e.g. 2001
596 .br
597 \fIjd_tishrey1\fP return the julian number of 1 Tishrey this year
598 .br
599 \fIjd_tishrey1_next_year\fP return the julian number of 1 Tishrey next year
600 .RE
601 .PP
602
603 .SS "int hdate_get_day_of_year (int day, int month, int year)"
604 .PP
605 days from 1 january
606 .PP
607 \fBParameters:\fP
608 .RS 4
609 \fIday\fP this day of month
610 .br
611 \fImonth\fP this month
612 .br
613 \fIyear\fP this year
614 .RE
615 .PP
616 \fBReturns:\fP
617 .RS 4
618 the days from 1 jan
619 .RE
620 .PP
621
622 .SS "void hdate_get_utc_sun_time_deg (int day, int month, int year, double latitude, double longitude, double deg, int * sunrise, int * sunset)"
623 .PP
624 utc sun times for altitude at a gregorian date
625 .PP
626 day this day of month month this month year this year longitude longitude to use in calculations latitude latitude to use in calculations deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon) sunrise return the utc sunrise in minutes sunset return the utc sunset in minutes
627 .SS "void hdate_get_utc_sun_time (int day, int month, int year, double latitude, double longitude, int * sunrise, int * sunset)"
628 .PP
629 utc sunrise/set time for a gregorian date
630 .PP
631 \fBParameters:\fP
632 .RS 4
633 \fIday\fP this day of month
634 .br
635 \fImonth\fP this month
636 .br
637 \fIyear\fP this year
638 .br
639 \fIlongitude\fP longitude to use in calculations degrees, negative values are east
640 .br
641 \fIlatitude\fP latitude to use in calculations degrees, negative values are south
642 .br
643 \fIsunrise\fP return the utc sunrise in minutes after midnight (00:00)
644 .br
645 \fIsunset\fP return the utc sunset in minutes after midnight (00:00)
646 .RE
647 .PP
648
649 .SS "void hdate_get_utc_sun_time_full (int day, int month, int year, double latitude, double longitude, int * sun_hour, int * first_light, int * talit, int * sunrise, int * midday, int * sunset, int * first_stars, int * three_stars)"
650 .PP
651 utc sunrise/set time for a gregorian date
652 .PP
653 day this day of month month this month year this year longitude longitude to use in calculations latitude latitude to use in calculations sun_hour return the length of shaa zaminit in minutes first_light return the utc alut ha-shachar in minutes talit return the utc tphilin and talit in minutes sunrise return the utc sunrise in minutes midday return the utc midday in minutes sunset return the utc sunset in minutes first_stars return the utc tzeit hacochavim in minutes three_stars return the utc shlosha cochavim in minutes
654 .SS "int hdate_get_gday (\fBhdate_struct\fP const * h)"
655 .PP
656 get the Gregorian day of the month
657 .PP
658 \fBParameters:\fP
659 .RS 4
660 \fIh\fP pointer this hdate struct.
661 .RE
662 .PP
663 \fBReturns:\fP
664 .RS 4
665 the Gregorian day of the month, 1..31.
666 .RE
667 .PP
668
669 .SS "int hdate_get_gmonth (\fBhdate_struct\fP const * h)"
670 .PP
671 get the Gregorian month
672 .PP
673 \fBParameters:\fP
674 .RS 4
675 \fIh\fP pointer this hdate struct.
676 .RE
677 .PP
678 \fBReturns:\fP
679 .RS 4
680 the Gregorian month, jan = 1.
681 .RE
682 .PP
683
684 .SS "int hdate_get_gyear (\fBhdate_struct\fP const * h)"
685 .PP
686 get the Gregorian year
687 .PP
688 \fBParameters:\fP
689 .RS 4
690 \fIh\fP pointer this hdate struct.
691 .RE
692 .PP
693 \fBReturns:\fP
694 .RS 4
695 the Gregorian year.
696 .RE
697 .PP
698
699 .SS "int hdate_get_hday (\fBhdate_struct\fP const * h)"
700 .PP
701 get the Hebrew day of the month
702 .PP
703 \fBParameters:\fP
704 .RS 4
705 \fIh\fP pointer this hdate struct.
706 .RE
707 .PP
708 \fBReturns:\fP
709 .RS 4
710 the Hebrew day of the month, 1..30.
711 .RE
712 .PP
713
714 .SS "int hdate_get_hmonth (\fBhdate_struct\fP const * h)"
715 .PP
716 get the Hebrew month
717 .PP
718 \fBParameters:\fP
719 .RS 4
720 \fIh\fP pointer this hdate struct.
721 .RE
722 .PP
723 \fBReturns:\fP
724 .RS 4
725 the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
726 .RE
727 .PP
728
729 .SS "int hdate_get_hyear (\fBhdate_struct\fP const * h)"
730 .PP
731 get the Hebrew year
732 .PP
733 \fBParameters:\fP
734 .RS 4
735 \fIh\fP pointer this hdate struct.
736 .RE
737 .PP
738 \fBReturns:\fP
739 .RS 4
740 the Hebrew year.
741 .RE
742 .PP
743
744 .SS "int hdate_get_day_of_the_week (\fBhdate_struct\fP const * h)"
745 .PP
746 get the day of the week
747 .PP
748 \fBParameters:\fP
749 .RS 4
750 \fIh\fP pointer this hdate struct.
751 .RE
752 .PP
753 \fBReturns:\fP
754 .RS 4
755 the the day of the week.
756 .RE
757 .PP
758
759 .SS "int hdate_get_size_of_year (\fBhdate_struct\fP const * h)"
760 .PP
761 get the size of the hebrew year
762 .PP
763 \fBParameters:\fP
764 .RS 4
765 \fIh\fP pointer this hdate struct.
766 .RE
767 .PP
768 \fBReturns:\fP
769 .RS 4
770 the the size of the hebrew year.
771 .RE
772 .PP
773
774 .SS "int hdate_get_new_year_day_of_the_week (\fBhdate_struct\fP const * h)"
775 .PP
776 get the new year day of the week
777 .PP
778 \fBParameters:\fP
779 .RS 4
780 \fIh\fP pointer this hdate struct.
781 .RE
782 .PP
783 \fBReturns:\fP
784 .RS 4
785 the the new year day of the week.
786 .RE
787 .PP
788
789 .SS "int hdate_get_julian (\fBhdate_struct\fP const * h)"
790 .PP
791 get the Julian day number
792 .PP
793 \fBParameters:\fP
794 .RS 4
795 \fIh\fP pointer this hdate struct.
796 .RE
797 .PP
798 \fBReturns:\fP
799 .RS 4
800 the Julian day number.
801 .RE
802 .PP
803
804 .SS "int hdate_get_days (\fBhdate_struct\fP const * h)"
805 .PP
806 get the number of days passed since 1 tishrey
807 .PP
808 \fBParameters:\fP
809 .RS 4
810 \fIh\fP pointer this hdate struct.
811 .RE
812 .PP
813 \fBReturns:\fP
814 .RS 4
815 the number of days passed since 1 tishrey.
816 .RE
817 .PP
818
819 .SS "int hdate_get_weeks (\fBhdate_struct\fP const * h)"
820 .PP
821 get the number of weeks passed since 1 tishrey
822 .PP
823 \fBParameters:\fP
824 .RS 4
825 \fIh\fP pointer this hdate struct.
826 .RE
827 .PP
828 \fBReturns:\fP
829 .RS 4
830 the number of weeks passed since 1 tishrey.
831 .RE
832 .PP
833
834 .SS "\fBhdate_struct\fP* new_hdate ()"
835 .PP
836 creat a new hdate struct object, must be deleted using delete_hdate.
837 .PP
838 \fBReturns:\fP
839 .RS 4
840 a new hdate object
841 .RE
842 .PP
843
844 .SS "\fBhdate_struct\fP* delete_hdate (\fBhdate_struct\fP * h)"
845 .PP
846 delete an hdate struct object.
847 .PP
848 \fBParameters:\fP
849 .RS 4
850 \fIh\fP pointer this hdate struct.
851 .RE
852 .PP
853
854 .SS "char* hdate_get_version_string ()"
855 .PP
856 Return a static string, with the package name and version.
857 .PP
858 \fBReturns:\fP
859 .RS 4
860 a static string, with the package name and version
861 .RE
862 .PP
863
864 .SS "char* hdate_get_translator_string ()"
865 .PP
866 name of translator
867 .PP
868 \fBReturns:\fP
869 .RS 4
870 a static string with name of translator, or NULL if none.
871 .RE
872 .PP
873
874 .SH "Author"
875 .PP
876 Generated automatically by Doxygen for libhdate C language from the source code.
0 .TH "hdate::Hdate" 3 "3 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 hdate::Hdate \- \fBHdate\fP class.
5
6 .PP
7 .SH SYNOPSIS
8 .br
9 .PP
10 \fC#include <hdatepp.h>\fP
11 .PP
12 .SS "Public Member Functions"
13
14 .in +1c
15 .ti -1c
16 .RI "\fBHdate\fP ()"
17 .br
18 .RI "\fI\fBHdate\fP constructor. \fP"
19 .ti -1c
20 .RI "\fB~Hdate\fP ()"
21 .br
22 .RI "\fI\fBHdate\fP destructor. \fP"
23 .ti -1c
24 .RI "void \fBset_gdate\fP (int d, int m, int y)"
25 .br
26 .RI "\fIcompute date structure from the Gregorian date \fP"
27 .ti -1c
28 .RI "void \fBset_hdate\fP (int d, int m, int y)"
29 .br
30 .RI "\fIcompute date structure from the Hebrew date \fP"
31 .ti -1c
32 .RI "void \fBset_jd\fP (int jd)"
33 .br
34 .RI "\fIcompute date structure from the Julian day \fP"
35 .ti -1c
36 .RI "char * \fBget_format_date\fP (int s)"
37 .br
38 .RI "\fIget formated hebrew date. \fP"
39 .ti -1c
40 .RI "char * \fBget_day_of_week_string\fP (int s)"
41 .br
42 .RI "\fIget name of week day. \fP"
43 .ti -1c
44 .RI "char * \fBget_month_string\fP (int s)"
45 .br
46 .RI "\fIget name month. \fP"
47 .ti -1c
48 .RI "char * \fBget_hebrew_month_string\fP (int s)"
49 .br
50 .RI "\fIget name hebrew month. \fP"
51 .ti -1c
52 .RI "char * \fBget_holyday_string\fP (int s)"
53 .br
54 .RI "\fIget name hebrew holiday. \fP"
55 .ti -1c
56 .RI "int \fBget_holyday_type\fP ()"
57 .br
58 .RI "\fIget the hebrew holiday type. \fP"
59 .ti -1c
60 .RI "char * \fBget_parasha_string\fP (int s)"
61 .br
62 .RI "\fIget name hebrew parasha. \fP"
63 .ti -1c
64 .RI "char * \fBget_hebrew_year_string\fP ()"
65 .br
66 .RI "\fIget name hebrew year. \fP"
67 .ti -1c
68 .RI "char * \fBget_hebrew_day_string\fP ()"
69 .br
70 .RI "\fIget name hebrew hebrew day of the month \fP"
71 .ti -1c
72 .RI "int \fBget_parasha\fP ()"
73 .br
74 .RI "\fIget parash number \fP"
75 .ti -1c
76 .RI "int \fBget_holyday\fP ()"
77 .br
78 .RI "\fIget holiday number \fP"
79 .ti -1c
80 .RI "int \fBget_gday\fP ()"
81 .br
82 .RI "\fIget Gregorian day of the month \fP"
83 .ti -1c
84 .RI "int \fBget_gmonth\fP ()"
85 .br
86 .RI "\fIget Gregorian month \fP"
87 .ti -1c
88 .RI "int \fBget_gyear\fP ()"
89 .br
90 .RI "\fIget Gregorian year \fP"
91 .ti -1c
92 .RI "int \fBget_hday\fP ()"
93 .br
94 .RI "\fIget Hebrew day of the month \fP"
95 .ti -1c
96 .RI "int \fBget_hmonth\fP ()"
97 .br
98 .RI "\fIget Hebrew month \fP"
99 .ti -1c
100 .RI "int \fBget_hyear\fP ()"
101 .br
102 .RI "\fIget Hebrew year \fP"
103 .ti -1c
104 .RI "int \fBget_day_of_the_week\fP ()"
105 .br
106 .RI "\fIget the day of the week \fP"
107 .ti -1c
108 .RI "int \fBget_size_of_year\fP ()"
109 .br
110 .RI "\fIget the size of the Hebrew year in days \fP"
111 .ti -1c
112 .RI "int \fBget_new_year_day_of_the_week\fP ()"
113 .br
114 .RI "\fIget the day of the week of hebrew new years \fP"
115 .ti -1c
116 .RI "int \fBget_julian\fP ()"
117 .br
118 .RI "\fIget the Julian day number \fP"
119 .ti -1c
120 .RI "int \fBget_days\fP ()"
121 .br
122 .RI "\fIget the number of days sice Tishrey I \fP"
123 .ti -1c
124 .RI "int \fBget_weeks\fP ()"
125 .br
126 .RI "\fIget the number of weeks sice Tishrey I \fP"
127 .ti -1c
128 .RI "void \fBset_location\fP (double in_latitude, double in_longitude, int in_tz)"
129 .br
130 .RI "\fIset location \fP"
131 .ti -1c
132 .RI "int \fBget_sunrise\fP ()"
133 .br
134 .RI "\fIsunrise time \fP"
135 .ti -1c
136 .RI "int \fBget_sunset\fP ()"
137 .br
138 .RI "\fIsunset time \fP"
139 .ti -1c
140 .RI "int \fBget_first_light\fP ()"
141 .br
142 .RI "\fIfirst light time \fP"
143 .ti -1c
144 .RI "int \fBget_talit\fP ()"
145 .br
146 .RI "\fItalit time \fP"
147 .ti -1c
148 .RI "int \fBget_first_stars\fP ()"
149 .br
150 .RI "\fIfirst stars time \fP"
151 .ti -1c
152 .RI "int \fBget_three_stars\fP ()"
153 .br
154 .RI "\fIthree stars time \fP"
155 .ti -1c
156 .RI "int \fBget_sun_hour\fP ()"
157 .br
158 .RI "\fIsun light hour time \fP"
159 .ti -1c
160 .RI "int \fBget_midday\fP ()"
161 .br
162 .RI "\fImidday hour time \fP"
163 .ti -1c
164 .RI "char * \fBget_translator_string\fP ()"
165 .br
166 .RI "\fIname of translator \fP"
167 .ti -1c
168 .RI "void \fBset_diaspora\fP ()"
169 .br
170 .RI "\fIset this \fBhdate\fP object to use diaspora holidays and dates \fP"
171 .ti -1c
172 .RI "void \fBset_israel\fP ()"
173 .br
174 .RI "\fIset this \fBhdate\fP object to use israel holidays and dates \fP"
175 .in -1c
176 .SH "Detailed Description"
177 .PP
178 \fBHdate\fP class.
179
180 class for Hebrew/Gregorian date conversions
181 .SH "Constructor & Destructor Documentation"
182 .PP
183 .SS "hdate::Hdate::Hdate ()\fC [inline]\fP"
184 .PP
185 \fBHdate\fP constructor.
186 .PP
187 .SS "hdate::Hdate::~Hdate ()\fC [inline]\fP"
188 .PP
189 \fBHdate\fP destructor.
190 .PP
191 .SH "Member Function Documentation"
192 .PP
193 .SS "void hdate::Hdate::set_gdate (int d, int m, int y)\fC [inline]\fP"
194 .PP
195 compute date structure from the Gregorian date
196 .PP
197 \fBParameters:\fP
198 .RS 4
199 \fId\fP Day of month 1..31
200 .br
201 \fIm\fP Month 1..12 , if m or d is 0 return current date.
202 .br
203 \fIy\fP Year in 4 digits e.g. 2001
204 .RE
205 .PP
206
207 .SS "void hdate::Hdate::set_hdate (int d, int m, int y)\fC [inline]\fP"
208 .PP
209 compute date structure from the Hebrew date
210 .PP
211 \fBParameters:\fP
212 .RS 4
213 \fId\fP Day of month 1..31
214 .br
215 \fIm\fP Month 1..14 , if m or d is 0 return current date.
216 .br
217 \fIy\fP Year in 4 digits e.g. 5731
218 .RE
219 .PP
220
221 .SS "void hdate::Hdate::set_jd (int jd)\fC [inline]\fP"
222 .PP
223 compute date structure from the Julian day
224 .PP
225 \fBParameters:\fP
226 .RS 4
227 \fIjd\fP the julian day number.
228 .RE
229 .PP
230
231 .SS "char* hdate::Hdate::get_format_date (int s)\fC [inline]\fP"
232 .PP
233 get formated hebrew date.
234 .PP
235 return the short ( e.g. '1 Tishrey' ) or long (e.g. 'Tuesday 18 Tishrey 5763 Hol hamoed Sukot' ) formated date.
236 .PP
237 \fBParameters:\fP
238 .RS 4
239 \fIs\fP short flag.
240 .RE
241 .PP
242 \fBReturns:\fP
243 .RS 4
244 a static string of foramted date
245 .RE
246 .PP
247
248 .SS "char* hdate::Hdate::get_day_of_week_string (int s)\fC [inline]\fP"
249 .PP
250 get name of week day.
251 .PP
252 \fBParameters:\fP
253 .RS 4
254 \fIs\fP short flag true - returns a short string: sun, false returns: sunday.
255 .RE
256 .PP
257 \fBReturns:\fP
258 .RS 4
259 a static string of the day of the week
260 .RE
261 .PP
262
263 .SS "char* hdate::Hdate::get_month_string (int s)\fC [inline]\fP"
264 .PP
265 get name month.
266 .PP
267 \fBParameters:\fP
268 .RS 4
269 \fIs\fP short flag true - returns a short string: Mar, false returns: March.
270 .RE
271 .PP
272 \fBReturns:\fP
273 .RS 4
274 a static string of month name
275 .RE
276 .PP
277
278 .SS "char* hdate::Hdate::get_hebrew_month_string (int s)\fC [inline]\fP"
279 .PP
280 get name hebrew month.
281 .PP
282 \fBParameters:\fP
283 .RS 4
284 \fIs\fP short flag true - returns a short string.
285 .RE
286 .PP
287 \fBReturns:\fP
288 .RS 4
289 a static string of hebrew month name
290 .RE
291 .PP
292
293 .SS "char* hdate::Hdate::get_holyday_string (int s)\fC [inline]\fP"
294 .PP
295 get name hebrew holiday.
296 .PP
297 \fBParameters:\fP
298 .RS 4
299 \fIs\fP short flag true - returns a short string.
300 .RE
301 .PP
302 \fBReturns:\fP
303 .RS 4
304 a static string of hebrew holiday name
305 .RE
306 .PP
307
308 .SS "int hdate::Hdate::get_holyday_type ()\fC [inline]\fP"
309 .PP
310 get the hebrew holiday type.
311 .PP
312 \fBReturns:\fP
313 .RS 4
314 the holiday type (1- regular holyday, 2- three regels, 3- tzom, 0- no holiday)
315 .RE
316 .PP
317
318 .SS "char* hdate::Hdate::get_parasha_string (int s)\fC [inline]\fP"
319 .PP
320 get name hebrew parasha.
321 .PP
322 \fBParameters:\fP
323 .RS 4
324 \fIs\fP short flag true - returns a short string.
325 .RE
326 .PP
327 \fBReturns:\fP
328 .RS 4
329 a static string of hebrew parash name
330 .RE
331 .PP
332
333 .SS "char* hdate::Hdate::get_hebrew_year_string ()\fC [inline]\fP"
334 .PP
335 get name hebrew year.
336 .PP
337 \fBReturns:\fP
338 .RS 4
339 a static string of hebrew year
340 .RE
341 .PP
342
343 .SS "char* hdate::Hdate::get_hebrew_day_string ()\fC [inline]\fP"
344 .PP
345 get name hebrew hebrew day of the month
346 .PP
347 \fBReturns:\fP
348 .RS 4
349 a static string of hebrew day of the month
350 .RE
351 .PP
352
353 .SS "int hdate::Hdate::get_parasha ()\fC [inline]\fP"
354 .PP
355 get parash number
356 .PP
357 \fBReturns:\fP
358 .RS 4
359 the hebrew parasha number
360 .RE
361 .PP
362
363 .SS "int hdate::Hdate::get_holyday ()\fC [inline]\fP"
364 .PP
365 get holiday number
366 .PP
367 \fBReturns:\fP
368 .RS 4
369 the hebrew holiday number
370 .RE
371 .PP
372
373 .SS "int hdate::Hdate::get_gday ()\fC [inline]\fP"
374 .PP
375 get Gregorian day of the month
376 .PP
377 \fBReturns:\fP
378 .RS 4
379 the Gregorian day of the month
380 .RE
381 .PP
382
383 .SS "int hdate::Hdate::get_gmonth ()\fC [inline]\fP"
384 .PP
385 get Gregorian month
386 .PP
387 \fBReturns:\fP
388 .RS 4
389 the Gregorian month
390 .RE
391 .PP
392
393 .SS "int hdate::Hdate::get_gyear ()\fC [inline]\fP"
394 .PP
395 get Gregorian year
396 .PP
397 \fBReturns:\fP
398 .RS 4
399 the Gregorian year
400 .RE
401 .PP
402
403 .SS "int hdate::Hdate::get_hday ()\fC [inline]\fP"
404 .PP
405 get Hebrew day of the month
406 .PP
407 \fBReturns:\fP
408 .RS 4
409 the Hebrew day of the month
410 .RE
411 .PP
412
413 .SS "int hdate::Hdate::get_hmonth ()\fC [inline]\fP"
414 .PP
415 get Hebrew month
416 .PP
417 \fBReturns:\fP
418 .RS 4
419 the Hebrew month
420 .RE
421 .PP
422
423 .SS "int hdate::Hdate::get_hyear ()\fC [inline]\fP"
424 .PP
425 get Hebrew year
426 .PP
427 \fBReturns:\fP
428 .RS 4
429 the Hebrew year
430 .RE
431 .PP
432
433 .SS "int hdate::Hdate::get_day_of_the_week ()\fC [inline]\fP"
434 .PP
435 get the day of the week
436 .PP
437 \fBReturns:\fP
438 .RS 4
439 the day of the week
440 .RE
441 .PP
442
443 .SS "int hdate::Hdate::get_size_of_year ()\fC [inline]\fP"
444 .PP
445 get the size of the Hebrew year in days
446 .PP
447 \fBReturns:\fP
448 .RS 4
449 the size of the Hebrew year in days
450 .RE
451 .PP
452
453 .SS "int hdate::Hdate::get_new_year_day_of_the_week ()\fC [inline]\fP"
454 .PP
455 get the day of the week of hebrew new years
456 .PP
457 \fBReturns:\fP
458 .RS 4
459 the day of the week of hebrew new years
460 .RE
461 .PP
462
463 .SS "int hdate::Hdate::get_julian ()\fC [inline]\fP"
464 .PP
465 get the Julian day number
466 .PP
467 \fBReturns:\fP
468 .RS 4
469 the Julian day number
470 .RE
471 .PP
472
473 .SS "int hdate::Hdate::get_days ()\fC [inline]\fP"
474 .PP
475 get the number of days sice Tishrey I
476 .PP
477 \fBReturns:\fP
478 .RS 4
479 the the number of days sice Tishrey I
480 .RE
481 .PP
482
483 .SS "int hdate::Hdate::get_weeks ()\fC [inline]\fP"
484 .PP
485 get the number of weeks sice Tishrey I
486 .PP
487 \fBReturns:\fP
488 .RS 4
489 the the number of weeks sice Tishrey I
490 .RE
491 .PP
492
493 .SS "void hdate::Hdate::set_location (double in_latitude, double in_longitude, int in_tz)\fC [inline]\fP"
494 .PP
495 set location
496 .PP
497 \fBParameters:\fP
498 .RS 4
499 \fIin_longitude\fP longitude to use in calculations degrees, negative values are east
500 .br
501 \fIin_latitude\fP latitude to use in calculations degrees, negative values are south
502 .br
503 \fIin_tz\fP time zone
504 .RE
505 .PP
506
507 .SS "int hdate::Hdate::get_sunrise ()\fC [inline]\fP"
508 .PP
509 sunrise time
510 .PP
511 \fBReturns:\fP
512 .RS 4
513 sunrise in minutes after midnight (00:00)
514 .RE
515 .PP
516
517 .SS "int hdate::Hdate::get_sunset ()\fC [inline]\fP"
518 .PP
519 sunset time
520 .PP
521 \fBReturns:\fP
522 .RS 4
523 sunset in minutes after midnight (00:00)
524 .RE
525 .PP
526
527 .SS "int hdate::Hdate::get_first_light ()\fC [inline]\fP"
528 .PP
529 first light time
530 .PP
531 \fBReturns:\fP
532 .RS 4
533 first light in minutes after midnight (00:00)
534 .RE
535 .PP
536
537 .SS "int hdate::Hdate::get_talit ()\fC [inline]\fP"
538 .PP
539 talit time
540 .PP
541 \fBReturns:\fP
542 .RS 4
543 talit time in minutes after midnight (00:00)
544 .RE
545 .PP
546
547 .SS "int hdate::Hdate::get_first_stars ()\fC [inline]\fP"
548 .PP
549 first stars time
550 .PP
551 \fBReturns:\fP
552 .RS 4
553 first stars in minutes after midnight (00:00)
554 .RE
555 .PP
556
557 .SS "int hdate::Hdate::get_three_stars ()\fC [inline]\fP"
558 .PP
559 three stars time
560 .PP
561 \fBReturns:\fP
562 .RS 4
563 three stars in minutes after midnight (00:00)
564 .RE
565 .PP
566
567 .SS "int hdate::Hdate::get_sun_hour ()\fC [inline]\fP"
568 .PP
569 sun light hour time
570 .PP
571 \fBReturns:\fP
572 .RS 4
573 sun light hour in minutes
574 .RE
575 .PP
576
577 .SS "int hdate::Hdate::get_midday ()\fC [inline]\fP"
578 .PP
579 midday hour time
580 .PP
581 \fBReturns:\fP
582 .RS 4
583 midday hour in minutes
584 .RE
585 .PP
586
587 .SS "char* hdate::Hdate::get_translator_string ()\fC [inline]\fP"
588 .PP
589 name of translator
590 .PP
591 \fBReturns:\fP
592 .RS 4
593 a static string with name of translator, or NULL if none
594 .RE
595 .PP
596
597 .SS "void hdate::Hdate::set_diaspora ()\fC [inline]\fP"
598 .PP
599 set this \fBhdate\fP object to use diaspora holidays and dates
600 .PP
601 .SS "void hdate::Hdate::set_israel ()\fC [inline]\fP"
602 .PP
603 set this \fBhdate\fP object to use israel holidays and dates
604 .PP
605
606
607 .SH "Author"
608 .PP
609 Generated automatically by Doxygen for libhdate C++ language from the source code.
0 .TH "hdate_struct" 3 "4 Jan 2008" "Version 1.4" "libhdate C language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 hdate_struct \-
5 .SH SYNOPSIS
6 .br
7 .PP
8 \fC#include <hdate.h>\fP
9 .PP
10 .SS "Data Fields"
11
12 .in +1c
13 .ti -1c
14 .RI "int \fBhd_day\fP"
15 .br
16 .ti -1c
17 .RI "int \fBhd_mon\fP"
18 .br
19 .ti -1c
20 .RI "int \fBhd_year\fP"
21 .br
22 .ti -1c
23 .RI "int \fBgd_day\fP"
24 .br
25 .ti -1c
26 .RI "int \fBgd_mon\fP"
27 .br
28 .ti -1c
29 .RI "int \fBgd_year\fP"
30 .br
31 .ti -1c
32 .RI "int \fBhd_dw\fP"
33 .br
34 .ti -1c
35 .RI "int \fBhd_size_of_year\fP"
36 .br
37 .ti -1c
38 .RI "int \fBhd_new_year_dw\fP"
39 .br
40 .ti -1c
41 .RI "int \fBhd_year_type\fP"
42 .br
43 .ti -1c
44 .RI "int \fBhd_jd\fP"
45 .br
46 .ti -1c
47 .RI "int \fBhd_days\fP"
48 .br
49 .ti -1c
50 .RI "int \fBhd_weeks\fP"
51 .br
52 .in -1c
53 .SH "Detailed Description"
54 .PP
55 Base structore for hebrew dates
56 .SH "Field Documentation"
57 .PP
58 .SS "int \fBhdate_struct::hd_day\fP"
59 .PP
60 The number of day in the hebrew month (1..31).
61 .SS "int \fBhdate_struct::hd_mon\fP"
62 .PP
63 The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
64 .SS "int \fBhdate_struct::hd_year\fP"
65 .PP
66 The number of the hebrew year.
67 .SS "int \fBhdate_struct::gd_day\fP"
68 .PP
69 The number of the day in the month. (1..31)
70 .SS "int \fBhdate_struct::gd_mon\fP"
71 .PP
72 The number of the month 1..12 (1 - jan).
73 .SS "int \fBhdate_struct::gd_year\fP"
74 .PP
75 The number of the year.
76 .SS "int \fBhdate_struct::hd_dw\fP"
77 .PP
78 The day of the week 1..7 (1 - sunday).
79 .SS "int \fBhdate_struct::hd_size_of_year\fP"
80 .PP
81 The length of the year in days.
82 .SS "int \fBhdate_struct::hd_new_year_dw\fP"
83 .PP
84 The week day of Hebrew new year.
85 .SS "int \fBhdate_struct::hd_year_type\fP"
86 .PP
87 The number type of year.
88 .SS "int \fBhdate_struct::hd_jd\fP"
89 .PP
90 The Julian day number
91 .SS "int \fBhdate_struct::hd_days\fP"
92 .PP
93 The number of days passed since 1 tishrey
94 .SS "int \fBhdate_struct::hd_weeks\fP"
95 .PP
96 The number of weeks passed since 1 tishrey
97
98 .SH "Author"
99 .PP
100 Generated automatically by Doxygen for libhdate C language from the source code.
0 .TH "src/hdatepp.h" 3 "3 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
1 .ad l
2 .nh
3 .SH NAME
4 src/hdatepp.h \-
5 .SH SYNOPSIS
6 .br
7 .PP
8 \fC#include <hdate.h>\fP
9 .br
10
11 .SS "Namespaces"
12
13 .in +1c
14 .ti -1c
15 .RI "namespace \fBhdate\fP"
16 .br
17 .in -1c
18 .SS "Classes"
19
20 .in +1c
21 .ti -1c
22 .RI "class \fBhdate::Hdate\fP"
23 .br
24 .RI "\fI\fBHdate\fP class. \fP"
25 .in -1c
26 .SH "Author"
27 .PP
28 Generated automatically by Doxygen for libhdate C++ language from the source code.
0 SUBDIRS = hcal bindings
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = examples
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
42 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
43 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
44 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
45 $(top_srcdir)/configure.in
46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
47 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES =
50 SOURCES =
51 DIST_SOURCES =
52 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
53 html-recursive info-recursive install-data-recursive \
54 install-exec-recursive install-info-recursive \
55 install-recursive installcheck-recursive installdirs-recursive \
56 pdf-recursive ps-recursive uninstall-info-recursive \
57 uninstall-recursive
58 ETAGS = etags
59 CTAGS = ctags
60 DIST_SUBDIRS = $(SUBDIRS)
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMDEP_FALSE = @AMDEP_FALSE@
64 AMDEP_TRUE = @AMDEP_TRUE@
65 AMTAR = @AMTAR@
66 AR = @AR@
67 AUTOCONF = @AUTOCONF@
68 AUTOHEADER = @AUTOHEADER@
69 AUTOMAKE = @AUTOMAKE@
70 AWK = @AWK@
71 CC = @CC@
72 CCDEPMODE = @CCDEPMODE@
73 CFLAGS = @CFLAGS@
74 CPP = @CPP@
75 CPPFLAGS = @CPPFLAGS@
76 CXX = @CXX@
77 CXXCPP = @CXXCPP@
78 CXXDEPMODE = @CXXDEPMODE@
79 CXXFLAGS = @CXXFLAGS@
80 CYGPATH_W = @CYGPATH_W@
81 DATADIRNAME = @DATADIRNAME@
82 DEFS = @DEFS@
83 DEPDIR = @DEPDIR@
84 ECHO = @ECHO@
85 ECHO_C = @ECHO_C@
86 ECHO_N = @ECHO_N@
87 ECHO_T = @ECHO_T@
88 EGREP = @EGREP@
89 EXEEXT = @EXEEXT@
90 F77 = @F77@
91 FFLAGS = @FFLAGS@
92 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
93 GMSGFMT = @GMSGFMT@
94 GMSGFMT_015 = @GMSGFMT_015@
95 GREP = @GREP@
96 INSTALL_DATA = @INSTALL_DATA@
97 INSTALL_PROGRAM = @INSTALL_PROGRAM@
98 INSTALL_SCRIPT = @INSTALL_SCRIPT@
99 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
100 INTLLIBS = @INTLLIBS@
101 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
102 LDFLAGS = @LDFLAGS@
103 LIBICONV = @LIBICONV@
104 LIBINTL = @LIBINTL@
105 LIBOBJS = @LIBOBJS@
106 LIBS = @LIBS@
107 LIBTOOL = @LIBTOOL@
108 LN_S = @LN_S@
109 LTLIBICONV = @LTLIBICONV@
110 LTLIBINTL = @LTLIBINTL@
111 LTLIBOBJS = @LTLIBOBJS@
112 MAINT = @MAINT@
113 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
114 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
115 MAKEINFO = @MAKEINFO@
116 MSGFMT = @MSGFMT@
117 MSGFMT_015 = @MSGFMT_015@
118 MSGMERGE = @MSGMERGE@
119 OBJEXT = @OBJEXT@
120 PACKAGE = @PACKAGE@
121 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
122 PACKAGE_NAME = @PACKAGE_NAME@
123 PACKAGE_STRING = @PACKAGE_STRING@
124 PACKAGE_TARNAME = @PACKAGE_TARNAME@
125 PACKAGE_VERSION = @PACKAGE_VERSION@
126 PATH_SEPARATOR = @PATH_SEPARATOR@
127 PA_MODULES_PATH = @PA_MODULES_PATH@
128 PA_VERSION = @PA_VERSION@
129 PE_CFLAGS = @PE_CFLAGS@
130 PE_MODULES_PATH = @PE_MODULES_PATH@
131 PKG_CONFIG = @PKG_CONFIG@
132 POSUB = @POSUB@
133 PY_CFLAGS = @PY_CFLAGS@
134 PY_MODULES_PATH = @PY_MODULES_PATH@
135 PY_VERSION = @PY_VERSION@
136 RANLIB = @RANLIB@
137 SED = @SED@
138 SET_MAKE = @SET_MAKE@
139 SHELL = @SHELL@
140 STRIP = @STRIP@
141 USE_NLS = @USE_NLS@
142 VERSION = @VERSION@
143 VERSION_INFO = @VERSION_INFO@
144 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
145 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
146 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
147 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
148 WITH_PERL_FALSE = @WITH_PERL_FALSE@
149 WITH_PERL_TRUE = @WITH_PERL_TRUE@
150 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
151 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
152 XGETTEXT = @XGETTEXT@
153 XGETTEXT_015 = @XGETTEXT_015@
154 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
155 ac_ct_CC = @ac_ct_CC@
156 ac_ct_CXX = @ac_ct_CXX@
157 ac_ct_F77 = @ac_ct_F77@
158 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
159 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
160 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
161 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
162 am__include = @am__include@
163 am__leading_dot = @am__leading_dot@
164 am__quote = @am__quote@
165 am__tar = @am__tar@
166 am__untar = @am__untar@
167 bindir = @bindir@
168 build = @build@
169 build_alias = @build_alias@
170 build_cpu = @build_cpu@
171 build_os = @build_os@
172 build_vendor = @build_vendor@
173 datadir = @datadir@
174 datarootdir = @datarootdir@
175 docdir = @docdir@
176 dvidir = @dvidir@
177 exec_prefix = @exec_prefix@
178 have_pascal = @have_pascal@
179 have_perl = @have_perl@
180 have_python = @have_python@
181 have_swig = @have_swig@
182 host = @host@
183 host_alias = @host_alias@
184 host_cpu = @host_cpu@
185 host_os = @host_os@
186 host_vendor = @host_vendor@
187 htmldir = @htmldir@
188 includedir = @includedir@
189 infodir = @infodir@
190 install_sh = @install_sh@
191 libdir = @libdir@
192 libexecdir = @libexecdir@
193 localedir = @localedir@
194 localstatedir = @localstatedir@
195 mandir = @mandir@
196 mkdir_p = @mkdir_p@
197 oldincludedir = @oldincludedir@
198 pdfdir = @pdfdir@
199 prefix = @prefix@
200 program_transform_name = @program_transform_name@
201 psdir = @psdir@
202 sbindir = @sbindir@
203 sharedstatedir = @sharedstatedir@
204 sysconfdir = @sysconfdir@
205 target_alias = @target_alias@
206 SUBDIRS = hcal bindings
207 all: all-recursive
208
209 .SUFFIXES:
210 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
211 @for dep in $?; do \
212 case '$(am__configure_deps)' in \
213 *$$dep*) \
214 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
215 && exit 0; \
216 exit 1;; \
217 esac; \
218 done; \
219 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \
220 cd $(top_srcdir) && \
221 $(AUTOMAKE) --gnu examples/Makefile
222 .PRECIOUS: Makefile
223 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
224 @case '$?' in \
225 *config.status*) \
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
227 *) \
228 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
229 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
230 esac;
231
232 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
233 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
234
235 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
236 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
237 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
239
240 mostlyclean-libtool:
241 -rm -f *.lo
242
243 clean-libtool:
244 -rm -rf .libs _libs
245
246 distclean-libtool:
247 -rm -f libtool
248 uninstall-info-am:
249
250 # This directory's subdirectories are mostly independent; you can cd
251 # into them and run `make' without going through this Makefile.
252 # To change the values of `make' variables: instead of editing Makefiles,
253 # (1) if the variable is set in `config.status', edit `config.status'
254 # (which will cause the Makefiles to be regenerated when you run `make');
255 # (2) otherwise, pass the desired values on the `make' command line.
256 $(RECURSIVE_TARGETS):
257 @failcom='exit 1'; \
258 for f in x $$MAKEFLAGS; do \
259 case $$f in \
260 *=* | --[!k]*);; \
261 *k*) failcom='fail=yes';; \
262 esac; \
263 done; \
264 dot_seen=no; \
265 target=`echo $@ | sed s/-recursive//`; \
266 list='$(SUBDIRS)'; for subdir in $$list; do \
267 echo "Making $$target in $$subdir"; \
268 if test "$$subdir" = "."; then \
269 dot_seen=yes; \
270 local_target="$$target-am"; \
271 else \
272 local_target="$$target"; \
273 fi; \
274 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
275 || eval $$failcom; \
276 done; \
277 if test "$$dot_seen" = "no"; then \
278 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
279 fi; test -z "$$fail"
280
281 mostlyclean-recursive clean-recursive distclean-recursive \
282 maintainer-clean-recursive:
283 @failcom='exit 1'; \
284 for f in x $$MAKEFLAGS; do \
285 case $$f in \
286 *=* | --[!k]*);; \
287 *k*) failcom='fail=yes';; \
288 esac; \
289 done; \
290 dot_seen=no; \
291 case "$@" in \
292 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
293 *) list='$(SUBDIRS)' ;; \
294 esac; \
295 rev=''; for subdir in $$list; do \
296 if test "$$subdir" = "."; then :; else \
297 rev="$$subdir $$rev"; \
298 fi; \
299 done; \
300 rev="$$rev ."; \
301 target=`echo $@ | sed s/-recursive//`; \
302 for subdir in $$rev; do \
303 echo "Making $$target in $$subdir"; \
304 if test "$$subdir" = "."; then \
305 local_target="$$target-am"; \
306 else \
307 local_target="$$target"; \
308 fi; \
309 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
310 || eval $$failcom; \
311 done && test -z "$$fail"
312 tags-recursive:
313 list='$(SUBDIRS)'; for subdir in $$list; do \
314 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
315 done
316 ctags-recursive:
317 list='$(SUBDIRS)'; for subdir in $$list; do \
318 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
319 done
320
321 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
322 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
323 unique=`for i in $$list; do \
324 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
325 done | \
326 $(AWK) ' { files[$$0] = 1; } \
327 END { for (i in files) print i; }'`; \
328 mkid -fID $$unique
329 tags: TAGS
330
331 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
332 $(TAGS_FILES) $(LISP)
333 tags=; \
334 here=`pwd`; \
335 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
336 include_option=--etags-include; \
337 empty_fix=.; \
338 else \
339 include_option=--include; \
340 empty_fix=; \
341 fi; \
342 list='$(SUBDIRS)'; for subdir in $$list; do \
343 if test "$$subdir" = .; then :; else \
344 test ! -f $$subdir/TAGS || \
345 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
346 fi; \
347 done; \
348 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
349 unique=`for i in $$list; do \
350 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
351 done | \
352 $(AWK) ' { files[$$0] = 1; } \
353 END { for (i in files) print i; }'`; \
354 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
355 test -n "$$unique" || unique=$$empty_fix; \
356 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
357 $$tags $$unique; \
358 fi
359 ctags: CTAGS
360 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
361 $(TAGS_FILES) $(LISP)
362 tags=; \
363 here=`pwd`; \
364 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) ' { files[$$0] = 1; } \
369 END { for (i in files) print i; }'`; \
370 test -z "$(CTAGS_ARGS)$$tags$$unique" \
371 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
372 $$tags $$unique
373
374 GTAGS:
375 here=`$(am__cd) $(top_builddir) && pwd` \
376 && cd $(top_srcdir) \
377 && gtags -i $(GTAGS_ARGS) $$here
378
379 distclean-tags:
380 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
381
382 distdir: $(DISTFILES)
383 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
384 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
385 list='$(DISTFILES)'; for file in $$list; do \
386 case $$file in \
387 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
388 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
389 esac; \
390 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
391 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
393 dir="/$$dir"; \
394 $(mkdir_p) "$(distdir)$$dir"; \
395 else \
396 dir=''; \
397 fi; \
398 if test -d $$d/$$file; then \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
410 if test "$$subdir" = .; then :; else \
411 test -d "$(distdir)/$$subdir" \
412 || $(mkdir_p) "$(distdir)/$$subdir" \
413 || exit 1; \
414 distdir=`$(am__cd) $(distdir) && pwd`; \
415 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
416 (cd $$subdir && \
417 $(MAKE) $(AM_MAKEFLAGS) \
418 top_distdir="$$top_distdir" \
419 distdir="$$distdir/$$subdir" \
420 distdir) \
421 || exit 1; \
422 fi; \
423 done
424 check-am: all-am
425 check: check-recursive
426 all-am: Makefile
427 installdirs: installdirs-recursive
428 installdirs-am:
429 install: install-recursive
430 install-exec: install-exec-recursive
431 install-data: install-data-recursive
432 uninstall: uninstall-recursive
433
434 install-am: all-am
435 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
436
437 installcheck: installcheck-recursive
438 install-strip:
439 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
440 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
441 `test -z '$(STRIP)' || \
442 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
443 mostlyclean-generic:
444
445 clean-generic:
446
447 distclean-generic:
448 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
449
450 maintainer-clean-generic:
451 @echo "This command is intended for maintainers to use"
452 @echo "it deletes files that may require special tools to rebuild."
453 clean: clean-recursive
454
455 clean-am: clean-generic clean-libtool mostlyclean-am
456
457 distclean: distclean-recursive
458 -rm -f Makefile
459 distclean-am: clean-am distclean-generic distclean-libtool \
460 distclean-tags
461
462 dvi: dvi-recursive
463
464 dvi-am:
465
466 html: html-recursive
467
468 info: info-recursive
469
470 info-am:
471
472 install-data-am:
473
474 install-exec-am:
475
476 install-info: install-info-recursive
477
478 install-man:
479
480 installcheck-am:
481
482 maintainer-clean: maintainer-clean-recursive
483 -rm -f Makefile
484 maintainer-clean-am: distclean-am maintainer-clean-generic
485
486 mostlyclean: mostlyclean-recursive
487
488 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
489
490 pdf: pdf-recursive
491
492 pdf-am:
493
494 ps: ps-recursive
495
496 ps-am:
497
498 uninstall-am: uninstall-info-am
499
500 uninstall-info: uninstall-info-recursive
501
502 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
503 clean clean-generic clean-libtool clean-recursive ctags \
504 ctags-recursive distclean distclean-generic distclean-libtool \
505 distclean-recursive distclean-tags distdir dvi dvi-am html \
506 html-am info info-am install install-am install-data \
507 install-data-am install-exec install-exec-am install-info \
508 install-info-am install-man install-strip installcheck \
509 installcheck-am installdirs installdirs-am maintainer-clean \
510 maintainer-clean-generic maintainer-clean-recursive \
511 mostlyclean mostlyclean-generic mostlyclean-libtool \
512 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
513 uninstall uninstall-am uninstall-info-am
514
515 # Tell versions [3.59,3.63) of GNU make to not export all variables.
516 # Otherwise a system limit (for SysV at least) may be exceeded.
517 .NOEXPORT:
0
1 EXTRA_DIST = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
2
3 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings
4 libhdatedoc_DATA = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = examples/bindings
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
42 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
43 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
44 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
45 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
46 $(top_srcdir)/configure.in
47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
48 $(ACLOCAL_M4)
49 mkinstalldirs = $(install_sh) -d
50 CONFIG_CLEAN_FILES =
51 SOURCES =
52 DIST_SOURCES =
53 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
54 am__vpath_adj = case $$p in \
55 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
56 *) f=$$p;; \
57 esac;
58 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
59 am__installdirs = "$(DESTDIR)$(libhdatedocdir)"
60 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
61 DATA = $(libhdatedoc_DATA)
62 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
63 ACLOCAL = @ACLOCAL@
64 AMDEP_FALSE = @AMDEP_FALSE@
65 AMDEP_TRUE = @AMDEP_TRUE@
66 AMTAR = @AMTAR@
67 AR = @AR@
68 AUTOCONF = @AUTOCONF@
69 AUTOHEADER = @AUTOHEADER@
70 AUTOMAKE = @AUTOMAKE@
71 AWK = @AWK@
72 CC = @CC@
73 CCDEPMODE = @CCDEPMODE@
74 CFLAGS = @CFLAGS@
75 CPP = @CPP@
76 CPPFLAGS = @CPPFLAGS@
77 CXX = @CXX@
78 CXXCPP = @CXXCPP@
79 CXXDEPMODE = @CXXDEPMODE@
80 CXXFLAGS = @CXXFLAGS@
81 CYGPATH_W = @CYGPATH_W@
82 DATADIRNAME = @DATADIRNAME@
83 DEFS = @DEFS@
84 DEPDIR = @DEPDIR@
85 ECHO = @ECHO@
86 ECHO_C = @ECHO_C@
87 ECHO_N = @ECHO_N@
88 ECHO_T = @ECHO_T@
89 EGREP = @EGREP@
90 EXEEXT = @EXEEXT@
91 F77 = @F77@
92 FFLAGS = @FFLAGS@
93 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
94 GMSGFMT = @GMSGFMT@
95 GMSGFMT_015 = @GMSGFMT_015@
96 GREP = @GREP@
97 INSTALL_DATA = @INSTALL_DATA@
98 INSTALL_PROGRAM = @INSTALL_PROGRAM@
99 INSTALL_SCRIPT = @INSTALL_SCRIPT@
100 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
101 INTLLIBS = @INTLLIBS@
102 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
103 LDFLAGS = @LDFLAGS@
104 LIBICONV = @LIBICONV@
105 LIBINTL = @LIBINTL@
106 LIBOBJS = @LIBOBJS@
107 LIBS = @LIBS@
108 LIBTOOL = @LIBTOOL@
109 LN_S = @LN_S@
110 LTLIBICONV = @LTLIBICONV@
111 LTLIBINTL = @LTLIBINTL@
112 LTLIBOBJS = @LTLIBOBJS@
113 MAINT = @MAINT@
114 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
115 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
116 MAKEINFO = @MAKEINFO@
117 MSGFMT = @MSGFMT@
118 MSGFMT_015 = @MSGFMT_015@
119 MSGMERGE = @MSGMERGE@
120 OBJEXT = @OBJEXT@
121 PACKAGE = @PACKAGE@
122 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
123 PACKAGE_NAME = @PACKAGE_NAME@
124 PACKAGE_STRING = @PACKAGE_STRING@
125 PACKAGE_TARNAME = @PACKAGE_TARNAME@
126 PACKAGE_VERSION = @PACKAGE_VERSION@
127 PATH_SEPARATOR = @PATH_SEPARATOR@
128 PA_MODULES_PATH = @PA_MODULES_PATH@
129 PA_VERSION = @PA_VERSION@
130 PE_CFLAGS = @PE_CFLAGS@
131 PE_MODULES_PATH = @PE_MODULES_PATH@
132 PKG_CONFIG = @PKG_CONFIG@
133 POSUB = @POSUB@
134 PY_CFLAGS = @PY_CFLAGS@
135 PY_MODULES_PATH = @PY_MODULES_PATH@
136 PY_VERSION = @PY_VERSION@
137 RANLIB = @RANLIB@
138 SED = @SED@
139 SET_MAKE = @SET_MAKE@
140 SHELL = @SHELL@
141 STRIP = @STRIP@
142 USE_NLS = @USE_NLS@
143 VERSION = @VERSION@
144 VERSION_INFO = @VERSION_INFO@
145 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
146 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
147 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
148 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
149 WITH_PERL_FALSE = @WITH_PERL_FALSE@
150 WITH_PERL_TRUE = @WITH_PERL_TRUE@
151 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
152 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
153 XGETTEXT = @XGETTEXT@
154 XGETTEXT_015 = @XGETTEXT_015@
155 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
156 ac_ct_CC = @ac_ct_CC@
157 ac_ct_CXX = @ac_ct_CXX@
158 ac_ct_F77 = @ac_ct_F77@
159 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
160 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
161 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
162 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
163 am__include = @am__include@
164 am__leading_dot = @am__leading_dot@
165 am__quote = @am__quote@
166 am__tar = @am__tar@
167 am__untar = @am__untar@
168 bindir = @bindir@
169 build = @build@
170 build_alias = @build_alias@
171 build_cpu = @build_cpu@
172 build_os = @build_os@
173 build_vendor = @build_vendor@
174 datadir = @datadir@
175 datarootdir = @datarootdir@
176 docdir = @docdir@
177 dvidir = @dvidir@
178 exec_prefix = @exec_prefix@
179 have_pascal = @have_pascal@
180 have_perl = @have_perl@
181 have_python = @have_python@
182 have_swig = @have_swig@
183 host = @host@
184 host_alias = @host_alias@
185 host_cpu = @host_cpu@
186 host_os = @host_os@
187 host_vendor = @host_vendor@
188 htmldir = @htmldir@
189 includedir = @includedir@
190 infodir = @infodir@
191 install_sh = @install_sh@
192 libdir = @libdir@
193 libexecdir = @libexecdir@
194 localedir = @localedir@
195 localstatedir = @localstatedir@
196 mandir = @mandir@
197 mkdir_p = @mkdir_p@
198 oldincludedir = @oldincludedir@
199 pdfdir = @pdfdir@
200 prefix = @prefix@
201 program_transform_name = @program_transform_name@
202 psdir = @psdir@
203 sbindir = @sbindir@
204 sharedstatedir = @sharedstatedir@
205 sysconfdir = @sysconfdir@
206 target_alias = @target_alias@
207 EXTRA_DIST = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
208 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/bindings
209 libhdatedoc_DATA = hdate_cpp.cpp hdate_python.py hdate_perl.pl hdate_pascal.pp
210 all: all-am
211
212 .SUFFIXES:
213 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
214 @for dep in $?; do \
215 case '$(am__configure_deps)' in \
216 *$$dep*) \
217 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
218 && exit 0; \
219 exit 1;; \
220 esac; \
221 done; \
222 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/bindings/Makefile'; \
223 cd $(top_srcdir) && \
224 $(AUTOMAKE) --gnu examples/bindings/Makefile
225 .PRECIOUS: Makefile
226 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
227 @case '$?' in \
228 *config.status*) \
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
230 *) \
231 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
232 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
233 esac;
234
235 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
236 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
237
238 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
240 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
242
243 mostlyclean-libtool:
244 -rm -f *.lo
245
246 clean-libtool:
247 -rm -rf .libs _libs
248
249 distclean-libtool:
250 -rm -f libtool
251 uninstall-info-am:
252 install-libhdatedocDATA: $(libhdatedoc_DATA)
253 @$(NORMAL_INSTALL)
254 test -z "$(libhdatedocdir)" || $(mkdir_p) "$(DESTDIR)$(libhdatedocdir)"
255 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
256 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
257 f=$(am__strip_dir) \
258 echo " $(libhdatedocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
259 $(libhdatedocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(libhdatedocdir)/$$f"; \
260 done
261
262 uninstall-libhdatedocDATA:
263 @$(NORMAL_UNINSTALL)
264 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
265 f=$(am__strip_dir) \
266 echo " rm -f '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
267 rm -f "$(DESTDIR)$(libhdatedocdir)/$$f"; \
268 done
269 tags: TAGS
270 TAGS:
271
272 ctags: CTAGS
273 CTAGS:
274
275
276 distdir: $(DISTFILES)
277 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
278 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
279 list='$(DISTFILES)'; for file in $$list; do \
280 case $$file in \
281 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
282 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
283 esac; \
284 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
285 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
286 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
287 dir="/$$dir"; \
288 $(mkdir_p) "$(distdir)$$dir"; \
289 else \
290 dir=''; \
291 fi; \
292 if test -d $$d/$$file; then \
293 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
294 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
295 fi; \
296 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
297 else \
298 test -f $(distdir)/$$file \
299 || cp -p $$d/$$file $(distdir)/$$file \
300 || exit 1; \
301 fi; \
302 done
303 check-am: all-am
304 check: check-am
305 all-am: Makefile $(DATA)
306 installdirs:
307 for dir in "$(DESTDIR)$(libhdatedocdir)"; do \
308 test -z "$$dir" || $(mkdir_p) "$$dir"; \
309 done
310 install: install-am
311 install-exec: install-exec-am
312 install-data: install-data-am
313 uninstall: uninstall-am
314
315 install-am: all-am
316 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
317
318 installcheck: installcheck-am
319 install-strip:
320 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
321 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
322 `test -z '$(STRIP)' || \
323 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
324 mostlyclean-generic:
325
326 clean-generic:
327
328 distclean-generic:
329 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
330
331 maintainer-clean-generic:
332 @echo "This command is intended for maintainers to use"
333 @echo "it deletes files that may require special tools to rebuild."
334 clean: clean-am
335
336 clean-am: clean-generic clean-libtool mostlyclean-am
337
338 distclean: distclean-am
339 -rm -f Makefile
340 distclean-am: clean-am distclean-generic distclean-libtool
341
342 dvi: dvi-am
343
344 dvi-am:
345
346 html: html-am
347
348 info: info-am
349
350 info-am:
351
352 install-data-am: install-libhdatedocDATA
353
354 install-exec-am:
355
356 install-info: install-info-am
357
358 install-man:
359
360 installcheck-am:
361
362 maintainer-clean: maintainer-clean-am
363 -rm -f Makefile
364 maintainer-clean-am: distclean-am maintainer-clean-generic
365
366 mostlyclean: mostlyclean-am
367
368 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
369
370 pdf: pdf-am
371
372 pdf-am:
373
374 ps: ps-am
375
376 ps-am:
377
378 uninstall-am: uninstall-info-am uninstall-libhdatedocDATA
379
380 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
381 distclean distclean-generic distclean-libtool distdir dvi \
382 dvi-am html html-am info info-am install install-am \
383 install-data install-data-am install-exec install-exec-am \
384 install-info install-info-am install-libhdatedocDATA \
385 install-man install-strip installcheck installcheck-am \
386 installdirs maintainer-clean maintainer-clean-generic \
387 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
388 ps ps-am uninstall uninstall-am uninstall-info-am \
389 uninstall-libhdatedocDATA
390
391 # Tell versions [3.59,3.63) of GNU make to not export all variables.
392 # Otherwise a system limit (for SysV at least) may be exceeded.
393 .NOEXPORT:
0 // hdate_cpp.cpp
1 // example file for libhdate.
2 //
3
4 //
5 // compile: g++ -lm -lhdate -o hdate_cpp hdate_cpp.cpp
6 //
7
8 #include <iostream>
9 #include <hdatepp.h>
10
11 using namespace std;
12 using namespace hdate;
13
14 int
15 main (int argc, char* argv[])
16 {
17 // create a new Hdate object
18 Hdate h;
19
20 // print gregorian date
21 cout << "Today is :\n";
22 cout << h.get_gday () << "," << h.get_gmonth () << "," << h.get_gyear () << "\n";
23
24 // print hebrew date: 0 - long format
25 cout << h.get_format_date (0);
26 cout << "\n";
27
28 return 0;
29 }
0 {$MODE OBJFPC}
1 {$IFDEF MSWINDOWS}
2 {$APPTYPE CONSOLE} //Make sure that in Windows we will be in a console mode
3 {$ENDIF}
4 program hdate_demo;
5 uses hdate_class, hdate;
6
7 var
8 h : THdateClass;
9 diaspora : Integer;
10
11 begin
12 h := THdateClass.Create;
13 diaspora := 0;
14
15 try
16
17 // print gregorian date
18 write ('Today : ', h.GregDay, ',');
19 write (h.GregMonth, ',');
20 writeln (h.GregYear);
21
22 // print hebrew date
23 writeln (h.get_format_date (diaspora));
24 finally
25 h.Free;
26 end;
27 end.
0 #! /usr/bin/perl
1
2 # Use the hdate perl module
3 use hdate;
4
5 # Create a new Hdate object
6 $h = hdatec::new_Hdate();
7
8 # Print gregorian date
9 print "Today is:\n";
10 print hdatec::Hdate_get_gday($h) . "," . hdatec::Hdate_get_gmonth($h) . "," . hdatec::Hdate_get_gyear($h) . "\n";
11
12 # Print hebrew date: 0 - long format
13 print hdatec::Hdate_get_format_date ($h, 0) . "\n";
0 #! /usr/bin/python
1
2 # Import the hdate library
3 from hdate import *;
4
5 # Create a new Hdate object
6 h = Hdate();
7
8 # Print gregorian date
9 print "Today is:"
10 print str (h.get_gday ()) + "," + str (h.get_gmonth()) + "," + str (h.get_gyear ())
11
12 # Print hebrew date: 0 - long format
13 print h.get_format_date (0);
0 if WITH_HCAL
1
2 INCLUDES=-I$(top_srcdir)/src
3
4 DEPS= $(top_builddir)/src/libhdate.la
5 ldadd= $(top_builddir)/src/libhdate.la -lm
6
7 bin_PROGRAMS= hdate hcal
8
9 hdate_SOURCES = hdate.c
10 hdate_LDFLAGS =
11 hdate_DEPENDENCIES = $(DEPS)
12 hdate_LDADD = $(ldadd)
13
14 hcal_SOURCES = hcal.c
15 hcal_LDFLAGS =
16 hcal_DEPENDENCIES = $(DEPS)
17 hcal_LDADD = $(ldadd)
18
19 endif
20
21 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/hcal
22 libhdatedoc_DATA = hcal.c hdate.c
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkgincludedir = $(includedir)/@PACKAGE@
23 top_builddir = ../..
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 build_triplet = @build@
38 host_triplet = @host@
39 @WITH_HCAL_TRUE@bin_PROGRAMS = hdate$(EXEEXT) hcal$(EXEEXT)
40 subdir = examples/hcal
41 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
42 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
44 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
45 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
46 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
47 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
48 $(top_srcdir)/configure.in
49 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
50 $(ACLOCAL_M4)
51 mkinstalldirs = $(install_sh) -d
52 CONFIG_CLEAN_FILES =
53 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libhdatedocdir)"
54 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
55 PROGRAMS = $(bin_PROGRAMS)
56 am__hcal_SOURCES_DIST = hcal.c
57 @WITH_HCAL_TRUE@am_hcal_OBJECTS = hcal.$(OBJEXT)
58 hcal_OBJECTS = $(am_hcal_OBJECTS)
59 @WITH_HCAL_TRUE@am__DEPENDENCIES_1 = $(top_builddir)/src/libhdate.la
60 am__hdate_SOURCES_DIST = hdate.c
61 @WITH_HCAL_TRUE@am_hdate_OBJECTS = hdate.$(OBJEXT)
62 hdate_OBJECTS = $(am_hdate_OBJECTS)
63 DEFAULT_INCLUDES = -I. -I$(srcdir)
64 depcomp = $(SHELL) $(top_srcdir)/depcomp
65 am__depfiles_maybe = depfiles
66 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
67 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
69 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
70 $(AM_CFLAGS) $(CFLAGS)
71 CCLD = $(CC)
72 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
73 $(AM_LDFLAGS) $(LDFLAGS) -o $@
74 SOURCES = $(hcal_SOURCES) $(hdate_SOURCES)
75 DIST_SOURCES = $(am__hcal_SOURCES_DIST) $(am__hdate_SOURCES_DIST)
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 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
83 DATA = $(libhdatedoc_DATA)
84 ETAGS = etags
85 CTAGS = ctags
86 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
87 ACLOCAL = @ACLOCAL@
88 AMDEP_FALSE = @AMDEP_FALSE@
89 AMDEP_TRUE = @AMDEP_TRUE@
90 AMTAR = @AMTAR@
91 AR = @AR@
92 AUTOCONF = @AUTOCONF@
93 AUTOHEADER = @AUTOHEADER@
94 AUTOMAKE = @AUTOMAKE@
95 AWK = @AWK@
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 DEFS = @DEFS@
108 DEPDIR = @DEPDIR@
109 ECHO = @ECHO@
110 ECHO_C = @ECHO_C@
111 ECHO_N = @ECHO_N@
112 ECHO_T = @ECHO_T@
113 EGREP = @EGREP@
114 EXEEXT = @EXEEXT@
115 F77 = @F77@
116 FFLAGS = @FFLAGS@
117 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
118 GMSGFMT = @GMSGFMT@
119 GMSGFMT_015 = @GMSGFMT_015@
120 GREP = @GREP@
121 INSTALL_DATA = @INSTALL_DATA@
122 INSTALL_PROGRAM = @INSTALL_PROGRAM@
123 INSTALL_SCRIPT = @INSTALL_SCRIPT@
124 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125 INTLLIBS = @INTLLIBS@
126 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
127 LDFLAGS = @LDFLAGS@
128 LIBICONV = @LIBICONV@
129 LIBINTL = @LIBINTL@
130 LIBOBJS = @LIBOBJS@
131 LIBS = @LIBS@
132 LIBTOOL = @LIBTOOL@
133 LN_S = @LN_S@
134 LTLIBICONV = @LTLIBICONV@
135 LTLIBINTL = @LTLIBINTL@
136 LTLIBOBJS = @LTLIBOBJS@
137 MAINT = @MAINT@
138 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
139 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
140 MAKEINFO = @MAKEINFO@
141 MSGFMT = @MSGFMT@
142 MSGFMT_015 = @MSGFMT_015@
143 MSGMERGE = @MSGMERGE@
144 OBJEXT = @OBJEXT@
145 PACKAGE = @PACKAGE@
146 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147 PACKAGE_NAME = @PACKAGE_NAME@
148 PACKAGE_STRING = @PACKAGE_STRING@
149 PACKAGE_TARNAME = @PACKAGE_TARNAME@
150 PACKAGE_VERSION = @PACKAGE_VERSION@
151 PATH_SEPARATOR = @PATH_SEPARATOR@
152 PA_MODULES_PATH = @PA_MODULES_PATH@
153 PA_VERSION = @PA_VERSION@
154 PE_CFLAGS = @PE_CFLAGS@
155 PE_MODULES_PATH = @PE_MODULES_PATH@
156 PKG_CONFIG = @PKG_CONFIG@
157 POSUB = @POSUB@
158 PY_CFLAGS = @PY_CFLAGS@
159 PY_MODULES_PATH = @PY_MODULES_PATH@
160 PY_VERSION = @PY_VERSION@
161 RANLIB = @RANLIB@
162 SED = @SED@
163 SET_MAKE = @SET_MAKE@
164 SHELL = @SHELL@
165 STRIP = @STRIP@
166 USE_NLS = @USE_NLS@
167 VERSION = @VERSION@
168 VERSION_INFO = @VERSION_INFO@
169 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
170 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
171 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
172 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
173 WITH_PERL_FALSE = @WITH_PERL_FALSE@
174 WITH_PERL_TRUE = @WITH_PERL_TRUE@
175 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
176 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
177 XGETTEXT = @XGETTEXT@
178 XGETTEXT_015 = @XGETTEXT_015@
179 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
180 ac_ct_CC = @ac_ct_CC@
181 ac_ct_CXX = @ac_ct_CXX@
182 ac_ct_F77 = @ac_ct_F77@
183 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
184 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
185 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
186 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
187 am__include = @am__include@
188 am__leading_dot = @am__leading_dot@
189 am__quote = @am__quote@
190 am__tar = @am__tar@
191 am__untar = @am__untar@
192 bindir = @bindir@
193 build = @build@
194 build_alias = @build_alias@
195 build_cpu = @build_cpu@
196 build_os = @build_os@
197 build_vendor = @build_vendor@
198 datadir = @datadir@
199 datarootdir = @datarootdir@
200 docdir = @docdir@
201 dvidir = @dvidir@
202 exec_prefix = @exec_prefix@
203 have_pascal = @have_pascal@
204 have_perl = @have_perl@
205 have_python = @have_python@
206 have_swig = @have_swig@
207 host = @host@
208 host_alias = @host_alias@
209 host_cpu = @host_cpu@
210 host_os = @host_os@
211 host_vendor = @host_vendor@
212 htmldir = @htmldir@
213 includedir = @includedir@
214 infodir = @infodir@
215 install_sh = @install_sh@
216 libdir = @libdir@
217 libexecdir = @libexecdir@
218 localedir = @localedir@
219 localstatedir = @localstatedir@
220 mandir = @mandir@
221 mkdir_p = @mkdir_p@
222 oldincludedir = @oldincludedir@
223 pdfdir = @pdfdir@
224 prefix = @prefix@
225 program_transform_name = @program_transform_name@
226 psdir = @psdir@
227 sbindir = @sbindir@
228 sharedstatedir = @sharedstatedir@
229 sysconfdir = @sysconfdir@
230 target_alias = @target_alias@
231 @WITH_HCAL_TRUE@INCLUDES = -I$(top_srcdir)/src
232 @WITH_HCAL_TRUE@DEPS = $(top_builddir)/src/libhdate.la
233 @WITH_HCAL_TRUE@ldadd = $(top_builddir)/src/libhdate.la -lm
234 @WITH_HCAL_TRUE@hdate_SOURCES = hdate.c
235 @WITH_HCAL_TRUE@hdate_LDFLAGS =
236 @WITH_HCAL_TRUE@hdate_DEPENDENCIES = $(DEPS)
237 @WITH_HCAL_TRUE@hdate_LDADD = $(ldadd)
238 @WITH_HCAL_TRUE@hcal_SOURCES = hcal.c
239 @WITH_HCAL_TRUE@hcal_LDFLAGS =
240 @WITH_HCAL_TRUE@hcal_DEPENDENCIES = $(DEPS)
241 @WITH_HCAL_TRUE@hcal_LDADD = $(ldadd)
242 libhdatedocdir = ${prefix}/share/doc/libhdate/examples/hcal
243 libhdatedoc_DATA = hcal.c hdate.c
244 all: all-am
245
246 .SUFFIXES:
247 .SUFFIXES: .c .lo .o .obj
248 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
249 @for dep in $?; do \
250 case '$(am__configure_deps)' in \
251 *$$dep*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
253 && exit 0; \
254 exit 1;; \
255 esac; \
256 done; \
257 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/hcal/Makefile'; \
258 cd $(top_srcdir) && \
259 $(AUTOMAKE) --gnu examples/hcal/Makefile
260 .PRECIOUS: Makefile
261 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
262 @case '$?' in \
263 *config.status*) \
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
265 *) \
266 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
267 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
268 esac;
269
270 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
271 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
272
273 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
274 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
275 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
276 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
277 install-binPROGRAMS: $(bin_PROGRAMS)
278 @$(NORMAL_INSTALL)
279 test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
280 @list='$(bin_PROGRAMS)'; for p in $$list; do \
281 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
282 if test -f $$p \
283 || test -f $$p1 \
284 ; then \
285 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
286 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
287 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
288 else :; fi; \
289 done
290
291 uninstall-binPROGRAMS:
292 @$(NORMAL_UNINSTALL)
293 @list='$(bin_PROGRAMS)'; for p in $$list; do \
294 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
295 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
296 rm -f "$(DESTDIR)$(bindir)/$$f"; \
297 done
298
299 clean-binPROGRAMS:
300 @list='$(bin_PROGRAMS)'; for p in $$list; do \
301 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
302 echo " rm -f $$p $$f"; \
303 rm -f $$p $$f ; \
304 done
305 hcal$(EXEEXT): $(hcal_OBJECTS) $(hcal_DEPENDENCIES)
306 @rm -f hcal$(EXEEXT)
307 $(LINK) $(hcal_LDFLAGS) $(hcal_OBJECTS) $(hcal_LDADD) $(LIBS)
308 hdate$(EXEEXT): $(hdate_OBJECTS) $(hdate_DEPENDENCIES)
309 @rm -f hdate$(EXEEXT)
310 $(LINK) $(hdate_LDFLAGS) $(hdate_OBJECTS) $(hdate_LDADD) $(LIBS)
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)/hcal.Po@am__quote@
319 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hdate.Po@am__quote@
320
321 .c.o:
322 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
323 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
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@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
330 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
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@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
337 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
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 distclean-libtool:
349 -rm -f libtool
350 uninstall-info-am:
351 install-libhdatedocDATA: $(libhdatedoc_DATA)
352 @$(NORMAL_INSTALL)
353 test -z "$(libhdatedocdir)" || $(mkdir_p) "$(DESTDIR)$(libhdatedocdir)"
354 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
355 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
356 f=$(am__strip_dir) \
357 echo " $(libhdatedocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
358 $(libhdatedocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(libhdatedocdir)/$$f"; \
359 done
360
361 uninstall-libhdatedocDATA:
362 @$(NORMAL_UNINSTALL)
363 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
364 f=$(am__strip_dir) \
365 echo " rm -f '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
366 rm -f "$(DESTDIR)$(libhdatedocdir)/$$f"; \
367 done
368
369 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
370 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
371 unique=`for i in $$list; do \
372 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
373 done | \
374 $(AWK) ' { files[$$0] = 1; } \
375 END { for (i in files) print i; }'`; \
376 mkid -fID $$unique
377 tags: TAGS
378
379 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
380 $(TAGS_FILES) $(LISP)
381 tags=; \
382 here=`pwd`; \
383 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
384 unique=`for i in $$list; do \
385 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
386 done | \
387 $(AWK) ' { files[$$0] = 1; } \
388 END { for (i in files) print i; }'`; \
389 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
390 test -n "$$unique" || unique=$$empty_fix; \
391 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
392 $$tags $$unique; \
393 fi
394 ctags: CTAGS
395 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
396 $(TAGS_FILES) $(LISP)
397 tags=; \
398 here=`pwd`; \
399 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
400 unique=`for i in $$list; do \
401 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
402 done | \
403 $(AWK) ' { files[$$0] = 1; } \
404 END { for (i in files) print i; }'`; \
405 test -z "$(CTAGS_ARGS)$$tags$$unique" \
406 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
407 $$tags $$unique
408
409 GTAGS:
410 here=`$(am__cd) $(top_builddir) && pwd` \
411 && cd $(top_srcdir) \
412 && gtags -i $(GTAGS_ARGS) $$here
413
414 distclean-tags:
415 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
416
417 distdir: $(DISTFILES)
418 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
419 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
420 list='$(DISTFILES)'; for file in $$list; do \
421 case $$file in \
422 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
423 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
424 esac; \
425 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
426 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
427 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
428 dir="/$$dir"; \
429 $(mkdir_p) "$(distdir)$$dir"; \
430 else \
431 dir=''; \
432 fi; \
433 if test -d $$d/$$file; then \
434 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
435 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
436 fi; \
437 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
438 else \
439 test -f $(distdir)/$$file \
440 || cp -p $$d/$$file $(distdir)/$$file \
441 || exit 1; \
442 fi; \
443 done
444 check-am: all-am
445 check: check-am
446 all-am: Makefile $(PROGRAMS) $(DATA)
447 installdirs:
448 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libhdatedocdir)"; do \
449 test -z "$$dir" || $(mkdir_p) "$$dir"; \
450 done
451 install: install-am
452 install-exec: install-exec-am
453 install-data: install-data-am
454 uninstall: uninstall-am
455
456 install-am: all-am
457 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
458
459 installcheck: installcheck-am
460 install-strip:
461 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
462 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
463 `test -z '$(STRIP)' || \
464 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
465 mostlyclean-generic:
466
467 clean-generic:
468
469 distclean-generic:
470 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
471
472 maintainer-clean-generic:
473 @echo "This command is intended for maintainers to use"
474 @echo "it deletes files that may require special tools to rebuild."
475 clean: clean-am
476
477 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
478
479 distclean: distclean-am
480 -rm -rf ./$(DEPDIR)
481 -rm -f Makefile
482 distclean-am: clean-am distclean-compile distclean-generic \
483 distclean-libtool distclean-tags
484
485 dvi: dvi-am
486
487 dvi-am:
488
489 html: html-am
490
491 info: info-am
492
493 info-am:
494
495 install-data-am: install-libhdatedocDATA
496
497 install-exec-am: install-binPROGRAMS
498
499 install-info: install-info-am
500
501 install-man:
502
503 installcheck-am:
504
505 maintainer-clean: maintainer-clean-am
506 -rm -rf ./$(DEPDIR)
507 -rm -f Makefile
508 maintainer-clean-am: distclean-am maintainer-clean-generic
509
510 mostlyclean: mostlyclean-am
511
512 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
513 mostlyclean-libtool
514
515 pdf: pdf-am
516
517 pdf-am:
518
519 ps: ps-am
520
521 ps-am:
522
523 uninstall-am: uninstall-binPROGRAMS uninstall-info-am \
524 uninstall-libhdatedocDATA
525
526 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
527 clean-generic clean-libtool ctags distclean distclean-compile \
528 distclean-generic distclean-libtool distclean-tags distdir dvi \
529 dvi-am html html-am info info-am install install-am \
530 install-binPROGRAMS install-data install-data-am install-exec \
531 install-exec-am install-info install-info-am \
532 install-libhdatedocDATA install-man install-strip installcheck \
533 installcheck-am installdirs maintainer-clean \
534 maintainer-clean-generic mostlyclean mostlyclean-compile \
535 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
536 tags uninstall uninstall-am uninstall-binPROGRAMS \
537 uninstall-info-am uninstall-libhdatedocDATA
538
539 # Tell versions [3.59,3.63) of GNU make to not export all variables.
540 # Otherwise a system limit (for SysV at least) may be exceeded.
541 .NOEXPORT:
0
1 /* hcal.c
2 * Example file for libhdate.
3 *
4 * compile:
5 * gcc `pkg-config --libs --cflags libhdate` hcal.c -o hcal
6 *
7 * Copyright: 2004 (c) Yaacov Zamir
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) 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., 59 Temple Place - Suite 330, Boston, MA
22 * 02111-1307, USA.
23 */
24
25 #include <stdio.h> /* For printf */
26 #include <hdate.h> /* For hebrew date */
27 #include <stdlib.h> /* For atoi */
28 #include <locale.h> /* For setlocale */
29 #include <unistd.h> /* For getopt */
30
31 #define FALSE 0
32 #define TRUE -1
33
34 /* print help */
35 int
36 print_help (char *program)
37 {
38 printf ("hcal - example program for libhdate\n\n");
39
40 printf ("USAGE: %s [-hid] ", program);
41 printf (" [[month] year]\n");
42
43 printf ("OPTIONS:\n");
44 printf (" -h : Print html format.\n");
45 printf (" -d : Use diaspora reading and holidays.\n");
46 printf (" -i : Use external css file \"./hcal.css\".\n");
47
48 return 0;
49 }
50
51 /* print html css part */
52 int
53 print_css (int opt_i)
54 {
55 if (opt_i)
56 {
57 printf ("\n\t@import \"hcal.css\";\n");
58
59 }
60 else
61 {
62 printf ("\n\
63 body {\n\
64 direction: rtl;\n\
65 }\n\
66 \n\
67 img { \n\
68 margin:0;\n\
69 padding: 0;\n\
70 vertical-align: middle;\n\
71 border: 0;\n\
72 }\n\
73 \n\
74 p {\n\
75 \n\
76 }\n\
77 \n\
78 table {\n\
79 width: 80%;\n\
80 table-layout: fixed;\n\
81 font-size: 14pt;\n\
82 border: solid #aaaaaa;\n\
83 }\n\
84 \n\
85 th {\n\
86 background-color: #aaaaaa;\n\
87 text-align: center;\n\
88 }\n\
89 \n\
90 td {\n\
91 text-align: center;\n\
92 }\n\
93 \n\
94 div.today {\n\
95 \n\
96 }\n\
97 \n\
98 div.gmonth {\n\
99 font-size: 16pt;\n\
100 }\n\
101 \n\
102 div.gyear {\n\
103 font-size: 24pt;\n\
104 font-weight: bold;\n\
105 }\n\
106 \n\
107 div.gday {\n\
108 \n\
109 }\n\
110 \n\
111 div.hmonth {\n\
112 font-size: 16pt;\n\
113 }\n\
114 \n\
115 div.hyear {\n\
116 font-size: 24pt;\n\
117 font-weight: bold;\n\
118 }\n\
119 \n\
120 div.hday {\n\
121 \n\
122 }\n\
123 \n\
124 div.holiday_name {\n\
125 \n\
126 }\n\
127 \n\
128 td.sat {\n\
129 border: solid #777777;\n\
130 }\n\
131 \n\
132 td.regular {\n\
133 border: solid #aaaaaa;\n\
134 }\n\
135 \n\
136 td.holiday {\n\
137 color: #990000;\n\
138 border: solid #888888;\n\
139 }\n\
140 \n\
141 td.out_of_month {\n\
142 color: #dddddd;\n\
143 border: solid #dddddd;\n\
144 }\n");
145 }
146
147 return 0;
148 }
149
150 /* print html header */
151 int
152 print_html_header (int opt_i)
153 {
154 printf ("\
155 <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n\
156 \"http://www.w3.org/TR/html4/strict.dtd\">\n\
157 <html>\n\
158 <head>\n\
159 <meta name=\"generator\" content=\"hcal (libhdate)\">\n\
160 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n\
161 <style title=\"Normal\" type=\"text/css\" media=\"all\">");
162
163 print_css (opt_i);
164
165 printf ("</style>\n");
166
167 /* some alternative css styles */
168 printf ("<link rel=\"alternate stylesheet\" title=\"High contrast\" \
169 type=\"text/css\" media=\"screen\" href=\"high_contrast.css\">");
170 printf ("</style>\n\
171 <link rel=\"alternate stylesheet\" title=\"Colorful\" \
172 type=\"text/css\" media=\"screen\" href=\"colorful.css\">");
173 printf ("</style>\n\
174 <link rel=\"alternate stylesheet\" title=\"Print\" \
175 type=\"text/css\" media=\"all\" href=\"print.css\">");
176
177 printf ("\
178 <title>Hebrew Calendar</title>\n\
179 </head>\n\
180 <body>\n");
181
182 return 0;
183 }
184
185 int
186 print_html_footer ()
187 {
188 printf ("<!-- <p>\n\
189 <a href=\"http://validator.w3.org/check/referer\">\n<img \
190 src=\"http://www.w3.org/Icons/valid-html401\"\n\
191 alt=\"Valid HTML 4.01!\" height=\"31\" width=\"88\" />\n</a>\n");
192 printf ("<a href=\"http://jigsaw.w3.org/css-validator\">\n\
193 <img src=\"http://www.w3.org/Icons/valid-css\" alt=\"Valid CSS!\">\n\
194 </a>\n</p> -->\n");
195
196 printf ("</body>\n</html>\n");
197
198 return 0;
199 }
200
201 /* print year and month part */
202 int
203 print_header (int month, int year, int opt_h, int opt_d)
204 {
205 hdate_struct h1, h2;
206 int j;
207
208 /* set dates for begining and end of calendar */
209 hdate_set_gdate (&h1, 1, month, year);
210 hdate_set_gdate (&h2, 1, month % 12 + 1, year);
211
212 /* Print Gregorian month and year */
213 if (opt_h)
214 {
215 printf ("<div class=\"gmonth\">\n");
216 printf ("%s\n", hdate_get_month_string (h1.gd_mon, FALSE));
217 printf ("</div>\n");
218
219 printf ("<div class=\"gyear\">\n");
220 printf ("%d\n", h1.gd_year);
221 printf ("</div>\n");
222 }
223 else
224 {
225 printf ("%s %d\n", hdate_get_month_string (h1.gd_mon, FALSE),
226 h1.gd_year);
227 }
228
229 /* Print Hebrew month and year */
230 if (opt_h)
231 {
232 printf ("<div class=\"hmonth\">\n");
233 }
234
235 if (h1.hd_mon != h2.hd_mon)
236 {
237 printf ("%s-",
238 hdate_get_hebrew_month_string (h1.hd_mon, FALSE));
239 }
240 printf ("%s ", hdate_get_hebrew_month_string (h2.hd_mon, FALSE));
241
242 if (opt_h)
243 {
244 printf ("\n</div>\n");
245
246 printf ("<div class=\"hyear\">\n");
247 }
248
249 printf ("%s\n", hdate_get_int_string (h1.hd_year));
250
251 if (opt_h)
252 {
253 printf ("</div>\n");
254
255 printf ("<div class=\"month_table\">\n");
256 printf ("<table>\n");
257 printf ("<tr>\n");
258 }
259
260 for (j = 1; j < 8; j++)
261 {
262 if (opt_h)
263 {
264 printf ("<th>");
265 printf ("%3s", hdate_get_day_string (j, FALSE));
266 printf ("</th>\n");
267 }
268 else
269 {
270 printf ("%3s", hdate_get_day_string (j, TRUE));
271
272 if (j != 7)
273 printf ("\t");
274 }
275 }
276
277 if (opt_h)
278 {
279 printf ("</tr>\n");
280 }
281 else
282 {
283 printf ("\n");
284 }
285
286 return 0;
287 }
288
289 /* print month table */
290 int
291 print_calendar (int month, int year, int opt_h, int opt_d)
292 {
293 hdate_struct h;
294 int jd;
295 int i, j;
296 char type_char[] = { '/', '+', '*', '-' };
297 int holyday_type;
298
299 /* Find day to start calendar with */
300 hdate_set_gdate (&h, 1, month, year);
301
302 /* return print head to sunday */
303 jd = h.hd_jd - h.hd_dw + 1;
304
305 /* Loop over all days in this month */
306 for (i = 0; i < 6; i++)
307 {
308 if (opt_h)
309 {
310 printf ("<tr>\n");
311 }
312
313 for (j = 0; j < 7; j++)
314 {
315 /* Get this day hebrew date */
316 hdate_set_jd (&h, jd);
317
318 /* Get this day holyday type ba harez (diaspora flag =
319 * 0) */
320 holyday_type =
321 hdate_get_holyday_type (hdate_get_holyday
322 (&h, opt_d));
323
324 if (opt_h)
325 {
326 if (h.gd_mon != month)
327 {
328 printf ("<td class=\"out_of_month\">\n");
329 }
330 else if (j == 6)
331 {
332 printf ("<td class=\"sat\">\n");
333 }
334 else if (holyday_type)
335 {
336 printf ("<td class=\"holiday\">\n");
337 }
338 else
339 {
340 printf ("<td class=\"regular\">\n");
341 }
342
343 /* Print a day */
344 printf ("<div class=\"gday\">%2d</div>\n<div class=\"hday\">%3s</div>\n", h.gd_day, hdate_get_int_string (h.hd_day));
345
346 if (holyday_type)
347 {
348 printf ("<div class=\"holiday_name\">%s</div>\n", hdate_get_holyday_string (hdate_get_holyday (&h, opt_d), FALSE));
349 }
350
351 printf ("</td>\n");
352 }
353 else
354 {
355 if (h.gd_mon == month)
356 {
357 /* Print a day */
358 printf ("%2d%c%3s", h.gd_day,
359 type_char[holyday_type],
360 hdate_get_int_string (h.
361 hd_day));
362 }
363 if (j != 6)
364 printf ("\t");
365 }
366 jd++;
367 }
368
369 if (opt_h)
370 {
371 printf ("</tr>\n");
372 }
373 else
374 {
375 printf ("\n");
376 }
377 }
378
379 if (opt_h)
380 {
381 printf ("</table>\n</div>");
382 }
383
384 return 0;
385 }
386
387 /* print month header and month table */
388 int
389 print_month (int month, int year, int opt_h, int opt_d)
390 {
391 hdate_struct h;
392
393 /* check if hebrew year (year > 3000) */
394 if (year > 3000)
395 hdate_set_hdate (&h, 1, month, year);
396 else
397 hdate_set_gdate (&h, 1, month, year);
398
399 /* Print calendar header */
400 print_header (h.gd_mon, h.gd_year, opt_h, opt_d);
401 print_calendar (h.gd_mon, h.gd_year, opt_h, opt_d);
402
403 printf ("\n");
404
405 return 0;
406 }
407
408 int
409 main (int argc, char *argv[])
410 {
411 /* date */
412 int month;
413 int year;
414
415 /* user opts */
416 int c;
417 int opt_h = 0; /* -h html format flag */
418 int opt_d = 0; /* -d Diaspora holidays */
419 int opt_i = 0; /* -i External css file */
420
421 /* hdate struct */
422 hdate_struct h;
423
424 /* init locale */
425 setlocale (LC_ALL, "");
426
427 /* command line parsing */
428 while ((c = getopt (argc, argv, "shdi")) != -1)
429 {
430 switch (c)
431 {
432 case 'h':
433 opt_h = 1;
434 break;
435 case 'd':
436 opt_d = 1;
437 break;
438 case 'i':
439 opt_i = 1;
440 break;
441 default:
442 print_help (argv[0]);
443 exit (0);
444 break;
445 }
446 }
447
448 /* Get date from user */
449 if (argc == (optind + 2))
450 {
451 month = atoi (argv[optind]);
452 year = atoi (argv[optind + 1]);
453 }
454 else if (argc == (optind + 1))
455 {
456 month = 0;
457 year = atoi (argv[optind]);
458
459 /* Check for valid years */
460 if (year < 1)
461 {
462 /* Print help for user and exit */
463 print_help (argv[0]);
464 exit (0);
465 }
466 }
467 else if (argc == (optind))
468 {
469 hdate_set_gdate (&h, 0, 0, 0); /* get today's year */
470 month = h.gd_mon;
471 year = h.gd_year;
472 }
473 else
474 {
475 /* Print help for user and exit */
476 print_help (argv[0]);
477 exit (0);
478 }
479
480 /* if html print html header */
481 if (opt_h)
482 print_html_header (opt_i);
483
484 /* print all year */
485 if (month == 0)
486 {
487 for (month = 1; month < 13; month++)
488 {
489 print_month (month, year, opt_h, opt_d);
490 }
491 }
492 else /* print only this month */
493 {
494 print_month (month, year, opt_h, opt_d);
495 }
496
497 /* if html print html header */
498 if (opt_h)
499 print_html_footer ();
500
501 return 0;
502 }
0 /* hdate.c
1 * Example file for libhdate.
2 *
3 * compile:
4 * gcc `pkg-config --libs --cflags libhdate` hdate.c -o hdate
5 *
6 * Copyright: 2004 (c) Yaacov Zamir
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) 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., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
24
25 #include <stdio.h> /* For printf */
26 #include <hdate.h> /* For hebrew date */
27 #include <stdlib.h> /* For atoi */
28 #include <locale.h> /* For setlocale */
29 #include <unistd.h> /* For getopt */
30
31 #define FALSE 0
32 #define TRUE -1
33
34 /* FIXME: global var - ugly ! */
35 int iCal_uid_counter = 0;
36
37 /* some useful time zones
38 * Eilat 29, -34, 2
39 * Haifa 32, -34, 2
40 * Jerusalem 31, -35, 2
41 * Tel Aviv 32, -34, 2
42 */
43
44 /* print help */
45 int
46 print_help (char *program)
47 {
48 printf ("hdate - example program for libhdate\n\n");
49
50 printf ("USAGE: %s [-sShdr]\n", program);
51 printf (" [-L longitude -l latitude]\n");
52 printf (" [-z timezone]\n");
53 printf (" [[[day] month] year]/[julian_day]\n");
54
55 printf ("OPTIONS:\n");
56 printf (" -s : Print sunrise/sunset times.\n");
57 printf (" -c : Print Shabat enter/leave times.\n");
58 printf (" Shabat starts 20 min before sunset,\n");
59 printf (" and exits when three stars are out.\n");
60 printf (" -t : Print day times -\n");
61 printf (" first light, talit, sunrise, midday, sunset,\n");
62 printf (" first stars, three stars.\n");
63 printf (" -S : Print using short format.\n");
64 printf (" -h : Print holidays.\n");
65 printf (" -H : Print just holidays.\n");
66 printf (" -r : Print weekly reading on saturday.\n");
67 printf (" -R : Print just weekly reading on saturday.\n");
68 printf (" -j : Print Julian day number.\n");
69
70 printf (" -d : Use diaspora reading and holidays.\n");
71 printf (" -i : Use iCal formated output.\n");
72 printf (" -l xx : Set the latitude for solar calculations to\n");
73 printf (" xx degrees. Negative values are south.\n");
74 printf (" -L xx : Set the longitude for solar calculations to\n");
75 printf (" xx degrees. *Negative values are EAST*.\n");
76 printf
77 (" The -l and -L switches must both be used, or not at all.\n");
78 printf (" -z : Use specified timezone,\n");
79
80 printf
81 (" ( default location for sunrise/set is Tel Aviv winter time ).\n");
82 printf (" some useful locations and time zones:\n");
83 printf (" Eilat : 29, -34, 2\n");
84 printf (" Haifa : 32, -34, 2\n");
85 printf (" Jerusalem : 31, -35, 2\n");
86 printf (" Tel Aviv : 32, -34, 2\n");
87 printf (" Ashdod : 31, -34, 2\n");
88 printf (" Beer Sheva : 31, -34, 2\n");
89 printf (" Tiberias : 32, -35, 2\n");
90 printf (" London : 51, 0, 0\n");
91 printf (" Paris : 48, -2, 1\n");
92 printf (" New York : 40, 74, -5\n");
93 printf (" Moscow : 55, -37, 3\n");
94
95 return 0;
96 }
97
98 /* print ical header */
99 int
100 print_ical_header ()
101 {
102 /* Print start of iCal format */
103 printf ("BEGIN:VCALENDAR\n");
104 printf ("VERSION:2.0\n");
105 printf ("CALSCALE:GREGORIAN\n");
106 printf ("METHOD:PUBLISH\n");
107
108 return 0;
109 }
110
111 /* print ical footer */
112 int
113 print_ical_footer ()
114 {
115 /* Print end of iCal format */
116 printf ("END:VCALENDAR\n");
117
118 return 0;
119 }
120
121 /* print one day - gregorian and hebrew date */
122 int
123 print_date (hdate_struct * h, int opt_S, int opt_i)
124 {
125 char *locale;
126 char *language;
127
128 /* Get the name of the current locale. */
129 #ifdef ENABLE_NLS
130 locale = setlocale (LC_MESSAGES, NULL);
131 language = getenv ("LANGUAGE");
132 #else
133 locale = NULL;
134 language = NULL;
135 #endif
136
137 if (opt_i)
138 {
139 printf ("%s %s ",
140 hdate_get_int_string (h->hd_day),
141 hdate_get_hebrew_month_string (h->hd_mon, opt_S));
142 printf ("%s", hdate_get_int_string (h->hd_year));
143 }
144 else if (opt_S)
145 {
146 printf ("%d.%d.%d ", h->gd_day, h->gd_mon, h->gd_year);
147
148 /* check for hebrew locale */
149 if (!((locale && (locale[0] == 'h') && (locale[1] == 'e')) ||
150 (language && (language[0] == 'h') && (language[1] == 'e'))))
151 { /* non hebrew numbers */
152
153 printf ("%d", h->hd_day);
154
155 /* FIXME: this only warks for english :-( */
156
157 /* check for english locale */
158 if ((!locale && !language) ||
159 (language && (language[0] == 'C')) ||
160 (!language && locale && (locale[0] == 'C')) ||
161 (language && (language[0] == 'e') && (language[1] == 'n'))
162 || (!language && locale && (locale[0] == 'e')
163 && (locale[1] == 'n')))
164 {
165 switch (h->hd_day)
166 {
167 case 1:
168 case 21:
169 case 31:
170 printf ("st of");
171 break;
172 case 2:
173 case 22:
174 printf ("nd of");
175 break;
176 case 3:
177 case 23:
178 printf ("rd of");
179 break;
180 default:
181 printf ("th of");
182 }
183 }
184
185 }
186 else
187 { /* hebrew numbers */
188 printf ("%s", hdate_get_int_string (h->hd_day));
189 }
190
191 printf (" %s, ", hdate_get_hebrew_month_string (h->hd_mon, opt_S));
192 printf ("%s\n", hdate_get_int_string (h->hd_year));
193 }
194 else
195 {
196 printf ("%s, %d %s %d, ",
197 hdate_get_day_string (h->hd_dw, opt_S),
198 h->gd_day,
199 hdate_get_month_string (h->gd_mon, opt_S), h->gd_year);
200 printf ("%s %s ",
201 hdate_get_int_string (h->hd_day),
202 hdate_get_hebrew_month_string (h->hd_mon, opt_S));
203 printf ("%s\n", hdate_get_int_string (h->hd_year));
204 }
205
206 return 0;
207 }
208
209 /* print one day - sunrise/set times */
210 int
211 print_sunrise (hdate_struct * h, double lat, double lon, int tz, int opt_i)
212 {
213 int sunrise, sunset;
214
215 /* get times */
216 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
217 &sunrise, &sunset);
218
219 sunset = sunset + tz * 60;
220 sunrise = sunrise + tz * 60;
221
222 /* print sunset/rise times */
223 printf ("%d:%d - %d:%d ",
224 sunrise / 60, sunrise % 60, sunset / 60, sunset % 60);
225
226 return 0;
227 }
228
229 /* print one day - day times */
230 int
231 print_times (hdate_struct * h, double lat, double lon, int tz, int opt_i)
232 {
233 int sun_hour, first_light, talit, sunrise;
234 int midday, sunset, first_stars, three_stars;
235
236 /* get times */
237 hdate_get_utc_sun_time_full (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
238 &sun_hour, &first_light, &talit, &sunrise,
239 &midday, &sunset, &first_stars, &three_stars);
240
241 first_light = first_light + tz * 60;
242 talit = talit + tz * 60;
243 sunrise = sunrise + tz * 60;
244 midday = midday + tz * 60;
245 sunset = sunset + tz * 60;
246 first_stars = first_stars + tz * 60;
247 three_stars = three_stars + tz * 60;
248
249 /* print sunset/rise times */
250 printf ("%d:%d - %d:%d - %d:%d - %d:%d - %d:%d - %d:%d - %d:%d ",
251 first_light / 60, first_light % 60, talit / 60, talit % 60,
252 sunrise / 60, sunrise % 60, midday / 60, midday % 60,
253 sunset / 60, sunset % 60, first_stars / 60, first_stars % 60,
254 three_stars / 60, three_stars % 60);
255
256 return 0;
257 }
258
259 /* print one day - holiday */
260 int
261 print_holiday (hdate_struct * h, int opt_d, int opt_S, int opt_i)
262 {
263 int holyday;
264
265 holyday = hdate_get_holyday (h, opt_d);
266
267 if (holyday)
268 {
269 /* print holyday */
270 printf ("%s ", hdate_get_holyday_string (holyday, opt_S));
271 }
272
273 return 0;
274 }
275
276 /* print one day - reading */
277 int
278 print_reading (hdate_struct * h, int opt_d, int opt_S, int opt_i)
279 {
280 int reading;
281
282 reading = hdate_get_parasha (h, opt_d);
283
284 if (reading)
285 {
286 /* print parash */
287 printf ("%s ", hdate_get_parasha_string (reading, opt_S));
288 }
289
290 return 0;
291 }
292
293 /* print one day - reading */
294 int
295 print_candales (hdate_struct * h, double lat, double lon, int tz, int opt_i)
296 {
297 int sun_hour, first_light, talit, sunrise;
298 int midday, sunset, first_stars, three_stars;
299
300 /* check for friday - print knisat shabat */
301 if (h->hd_dw == 6)
302 {
303 /* get times */
304 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year, lat, lon,
305 &sunrise, &sunset);
306
307 /* FIXME - knisar shabat 20 minutes before shkiaa ? */
308 sunset = sunset + tz * 60 - 20;
309
310 /* print sunset/rise times */
311 printf ("(%d:%d)", sunset / 60, sunset % 60);
312 }
313
314 /* check for saturday - print motzay shabat */
315 else if (h->hd_dw == 7)
316 {
317 /* get times */
318 hdate_get_utc_sun_time_full (h->gd_day, h->gd_mon, h->gd_year, lat,
319 lon, &sun_hour, &first_light, &talit,
320 &sunrise, &midday, &sunset,
321 &first_stars, &three_stars);
322
323 three_stars = three_stars + tz * 60;
324
325 /* print motzay shabat */
326 printf ("(%d:%d)", three_stars / 60, three_stars % 60);
327 }
328
329 return 0;
330 }
331
332 /* print one day - all */
333 int
334 print_day (hdate_struct * h,
335 int opt_d, int opt_S,
336 double lat, double lon, int tz, int opt_s, int opt_h, int opt_r,
337 int opt_R, int opt_j, int opt_H, int opt_i, int opt_c, int opt_t)
338 {
339 /* check for just parasha or holiday flag */
340 if (opt_R && opt_H &&
341 !hdate_get_parasha (h, opt_d) && !hdate_get_holyday (h, opt_d))
342 return 0;
343 if (opt_R && !opt_H && !hdate_get_parasha (h, opt_d))
344 return 0;
345 if (opt_H && !opt_R && !hdate_get_holyday (h, opt_d))
346 return 0;
347
348 /* check for iCal format */
349 if (opt_i)
350 {
351 /* FIXME: older versions of mozilla calendar and evulotion
352 * needed this hack */
353 /* print_ical_header (); */
354
355 printf ("BEGIN:VEVENT\n");
356 printf ("UID:%d\n", ++iCal_uid_counter);
357 printf ("DTSTART;VALUE=DATE:%04d%02d%02d\n", h->gd_year,
358 h->gd_mon, h->gd_day);
359 printf ("SUMMARY:");
360 }
361
362 /* print Julian day number */
363 if (opt_j)
364 {
365 printf ("JDN-%d ", h->hd_jd);
366 }
367
368 /* print the day */
369 print_date (h, opt_S, opt_i);
370
371 /* check for iCal format */
372 if (opt_i &&
373 (((opt_h && hdate_get_holyday (h, opt_d)) ||
374 ((opt_r && hdate_get_parasha (h, opt_d)) || opt_c)) || opt_s
375 || opt_t))
376 printf ("\\, ");
377
378 if (opt_s || opt_t)
379 {
380 if (opt_t)
381 print_times (h, lat, lon, tz, opt_i);
382 else if (opt_s)
383 print_sunrise (h, lat, lon, tz, opt_i);
384
385 if (!opt_i && ((opt_h && hdate_get_holyday (h, opt_d)) ||
386 ((opt_r && hdate_get_parasha (h, opt_d)) || opt_c)))
387 printf (", ");
388 if (opt_i && ((opt_h && hdate_get_holyday (h, opt_d)) ||
389 ((opt_r && hdate_get_parasha (h, opt_d)) || opt_c)))
390 printf ("\\, ");
391 }
392 if (opt_h)
393 {
394 print_holiday (h, opt_d, opt_S, opt_i);
395
396 if (!opt_i && ((opt_r && hdate_get_parasha (h, opt_d) || opt_c)
397 && hdate_get_holyday (h, opt_d)))
398 printf (", ");
399 if (opt_i && ((opt_r && hdate_get_parasha (h, opt_d) || opt_c)
400 && hdate_get_holyday (h, opt_d)))
401 printf ("\\, ");
402 }
403 if (opt_r)
404 {
405 print_reading (h, opt_d, opt_S, opt_i);
406 }
407 if (opt_c)
408 {
409 print_candales (h, lat, lon, tz, opt_i);
410 }
411
412 if (opt_r || opt_h || opt_s || opt_t || opt_i || opt_c)
413 {
414 printf ("\n");
415 }
416
417 /* check for iCal format */
418 if (opt_i)
419 {
420 printf ("CLASS:PUBLIC\n");
421 printf ("DTEND;VALUE=DATE:%04d%02d%02d\n", h->gd_year,
422 h->gd_mon, h->gd_day);
423 printf ("CATEGORIES:Holidays\n");
424 printf ("END:VEVENT\n");
425 /* FIXME: older versions of mozilla calendar and evulotion
426 * needed this hack */
427 /* print_ical_footer (); */
428 }
429
430 return 0;
431 }
432
433 /* print one month - all */
434 int
435 print_month (int opt_d, int opt_S,
436 double lat, double lon, int tz,
437 int opt_s, int opt_h, int opt_r, int opt_R, int opt_j,
438 int opt_H, int opt_i, int opt_c, int opt_t, int month, int year)
439 {
440 hdate_struct h;
441 int jd;
442
443 /* get date of month start */
444 hdate_set_gdate (&h, 1, month, year);
445 jd = h.hd_jd;
446
447 /* print month header */
448 if (!opt_i && !opt_S)
449 printf ("\n%s:\n", hdate_get_month_string (h.gd_mon, opt_S));
450
451 /* print month days */
452 while (h.gd_mon == month)
453 {
454 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
455 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
456
457 jd++;
458 hdate_set_jd (&h, jd);
459 }
460
461 return 0;
462 }
463
464 /* print one hebrew month - all */
465 int
466 print_hebrew_month (int opt_d, int opt_S,
467 double lat, double lon, int tz,
468 int opt_s, int opt_h, int opt_r, int opt_R, int opt_j,
469 int opt_H, int opt_i, int opt_c, int opt_t, int month,
470 int year)
471 {
472 hdate_struct h;
473 int jd;
474
475 /* get date of month start */
476 hdate_set_hdate (&h, 1, month, year);
477 jd = h.hd_jd;
478
479 if (h.hd_size_of_year > 365 && month == 6)
480 { /* adar of meoberet */
481 /* print Adar I and Adar II month days */
482 hdate_set_hdate (&h, 1, 13, year);
483 jd = h.hd_jd;
484
485 /* print month header */
486 if (!opt_i && !opt_S)
487 printf ("\n%s:\n", hdate_get_hebrew_month_string (h.hd_mon, opt_S));
488
489 /* print adar I days */
490 while (h.hd_mon == 13)
491 {
492 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s,
493 opt_h, opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
494
495 jd++;
496 hdate_set_jd (&h, jd);
497 }
498
499 hdate_set_hdate (&h, 1, 14, year);
500 jd = h.hd_jd;
501
502 /* print month header */
503 if (!opt_i && !opt_S)
504 printf ("\n%s:\n", hdate_get_hebrew_month_string (h.hd_mon, opt_S));
505
506 /* print adar II days */
507 while (h.hd_mon == 14)
508 {
509 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s,
510 opt_h, opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
511
512 jd++;
513 hdate_set_jd (&h, jd);
514 }
515 }
516 else
517 {
518 /* print month header */
519 if (!opt_i && !opt_S)
520 printf ("\n%s:\n", hdate_get_hebrew_month_string (h.hd_mon, opt_S));
521
522 /* print month days */
523 while (h.hd_mon == month)
524 {
525 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s,
526 opt_h, opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
527
528 jd++;
529 hdate_set_jd (&h, jd);
530 }
531 }
532
533 return 0;
534 }
535
536 /* print one gregorian year - all */
537 int
538 print_year (int opt_d, int opt_S,
539 double lat, double lon, int tz, int opt_s, int opt_h, int opt_r,
540 int opt_R, int opt_j, int opt_H, int opt_i, int opt_c,
541 int opt_t, int year)
542 {
543 int month = 1;
544
545 /* print year header */
546 if (!opt_i && !opt_S)
547 printf ("%d:\n", year);
548
549 /* print year months */
550 while (month < 13)
551 {
552 print_month (opt_d, opt_S, lat, lon, tz, opt_s, opt_h, opt_r,
553 opt_R, opt_j, opt_H, opt_i, opt_c, opt_t, month, year);
554 month++;
555 }
556
557 return 0;
558 }
559
560 /* print one hebrew year - all */
561 int
562 print_hebrew_year (int opt_d, int opt_S,
563 double lat, double lon, int tz,
564 int opt_s, int opt_h, int opt_r, int opt_R, int opt_j,
565 int opt_H, int opt_i, int opt_c, int opt_t, int year)
566 {
567 int month = 1;
568
569 /* print year header */
570 if (!opt_i && !opt_S)
571 printf ("%s:\n", hdate_get_int_string (year));
572
573 /* print year months */
574 while (month < 13)
575 {
576 print_hebrew_month (opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
577 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t,
578 month, year);
579 month++;
580 }
581
582 return 0;
583 }
584
585 int
586 main (int argc, char *argv[])
587 {
588 hdate_struct h; /* The Hebrew date */
589 int c;
590
591 int day; /* The Gregorian date */
592 int month;
593 int year;
594
595 /* hebcal style command line options */
596 char *progname = argv[0];
597 int opt_s = 0; /* -s option sunrise/set times */
598 int opt_c = 0; /* -c option shabat enter/leave times */
599 int opt_t = 0; /* -t option print times of day */
600 int opt_S = 0; /* -S Short format flag */
601 int opt_h = 0; /* -h option holidays */
602 int opt_H = 0; /* -H option just holidays */
603 int opt_r = 0; /* -r option reading */
604 int opt_R = 0; /* -R option just reading */
605 int opt_j = 0; /* -j option Julian day number */
606 int opt_d = 0; /* -d option diaspora */
607 int opt_i = 0; /* -i option iCal */
608
609 double lat = 32.0; /* -l option default to Tel aviv latitude */
610 double lon = -34.0; /* -L option default to Tel aviv longitude */
611 int tz = 2; /* -z option default to Tel aviv time zone */
612
613 /* init locale */
614 setlocale (LC_ALL, "");
615
616 /* command line parsing */
617 while ((c = getopt (argc, argv, "sctShHrRjdil:L:z:")) != -1)
618 {
619 switch (c)
620 {
621 case 's':
622 opt_s = 1;
623 break;
624 case 'c':
625 opt_c = 1;
626 break;
627 case 't':
628 opt_t = 1;
629 break;
630 case 'S':
631 opt_S = 1;
632 break;
633 case 'H':
634 opt_H = 1;
635 case 'h':
636 opt_h = 1;
637 break;
638 case 'R':
639 opt_R = 1;
640 case 'j':
641 opt_j = 1;
642 case 'r':
643 opt_r = 1;
644 break;
645 case 'd':
646 opt_d = 1;
647 break;
648 case 'i':
649 opt_i = 1;
650 break;
651 case 'l':
652 if (optarg)
653 lat = (double) atof (optarg);
654 break;
655 case 'L':
656 if (optarg)
657 lon = (double) atof (optarg);
658 break;
659 case 'z':
660 if (optarg)
661 tz = atoi (optarg);
662 break;
663 default:
664 print_help (argv[0]);
665 exit (0);
666 break;
667 }
668 }
669
670 /* Get calendar */
671 if (argc == optind)
672 { /* no date entered */
673 /* set date for today */
674 hdate_set_gdate (&h, 0, 0, 0);
675
676 if (opt_i)
677 print_ical_header ();
678
679 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
680 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
681
682 if (opt_i)
683 print_ical_footer ();
684
685 exit (0);
686 }
687 else if (argc == (optind + 1))
688 { /* only year or julian day number */
689 /* get year */
690 year = atoi (argv[optind]);
691
692 if (year <= 0)
693 { /* error */
694 print_help (argv[0]);
695 exit (0);
696 }
697 if (year > 100000)
698 { /* julian day number */
699 /* year is julian day number */
700 hdate_set_jd (&h, year);
701
702 if (opt_i)
703 print_ical_header ();
704
705 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
706 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
707
708 if (opt_i)
709 print_ical_footer ();
710
711 exit (0);
712 }
713 else if (year > 3000)
714 { /* hebrew year */
715 if (opt_i)
716 print_ical_header ();
717
718 print_hebrew_year (opt_d, opt_S, lat, lon, tz, opt_s,
719 opt_h, opt_r, opt_R, opt_j, opt_H, opt_i,
720 opt_c, opt_t, year);
721
722 if (opt_i)
723 print_ical_footer ();
724
725 exit (0);
726 }
727 else
728 {
729 if (opt_i)
730 print_ical_header ();
731
732 print_year (opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
733 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t, year);
734
735 if (opt_i)
736 print_ical_footer ();
737
738 exit (0);
739 }
740 }
741 else if (argc == (optind + 2))
742 { /*only month and year */
743 /* get year */
744 year = atoi (argv[optind + 1]);
745 month = atoi (argv[optind]);
746
747 if (year <= 0)
748 { /* error */
749 print_help (argv[0]);
750 exit (0);
751 }
752 if (year > 3000)
753 { /* hebrew year */
754 if (opt_i)
755 print_ical_header ();
756
757 print_hebrew_month (opt_d, opt_S, lat, lon, tz, opt_s,
758 opt_h, opt_r, opt_R, opt_j, opt_H, opt_i,
759 opt_c, opt_t, month, year);
760
761 if (opt_i)
762 print_ical_footer ();
763
764 exit (0);
765 }
766 else
767 {
768 if (opt_i)
769 print_ical_header ();
770
771 print_month (opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
772 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t,
773 month, year);
774
775 if (opt_i)
776 print_ical_footer ();
777
778 exit (0);
779 }
780 }
781 else if (argc == (optind + 3))
782 { /*day month and year */
783 /* get year */
784 year = atoi (argv[optind + 2]);
785 month = atoi (argv[optind + 1]);
786 day = atoi (argv[optind]);
787
788 if (year <= 0)
789 { /* error */
790 print_help (argv[0]);
791 exit (0);
792 }
793
794 /* set date */
795 if (year > 3000)
796 { /* hebrew year */
797 hdate_set_hdate (&h, day, month, year);
798 }
799 else
800 {
801 hdate_set_gdate (&h, day, month, year);
802 }
803
804 if (opt_i)
805 print_ical_header ();
806
807 print_day (&h, opt_d, opt_S, lat, lon, tz, opt_s, opt_h,
808 opt_r, opt_R, opt_j, opt_H, opt_i, opt_c, opt_t);
809
810 if (opt_i)
811 print_ical_footer ();
812
813 exit (0);
814 }
815 else
816 {
817 print_help (argv[0]);
818 exit (0);
819 }
820
821 return 0;
822 }
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2005-05-14.22
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. It can only install one file at a time, a restriction
42 # shared with many OS's install programs.
43
44 # set DOITPROG to echo to test this script
45
46 # Don't use :- since 4.3BSD and earlier shells don't like it.
47 doit="${DOITPROG-}"
48
49 # put in absolute paths if you don't have them in your path; or use env. vars.
50
51 mvprog="${MVPROG-mv}"
52 cpprog="${CPPROG-cp}"
53 chmodprog="${CHMODPROG-chmod}"
54 chownprog="${CHOWNPROG-chown}"
55 chgrpprog="${CHGRPPROG-chgrp}"
56 stripprog="${STRIPPROG-strip}"
57 rmprog="${RMPROG-rm}"
58 mkdirprog="${MKDIRPROG-mkdir}"
59
60 chmodcmd="$chmodprog 0755"
61 chowncmd=
62 chgrpcmd=
63 stripcmd=
64 rmcmd="$rmprog -f"
65 mvcmd="$mvprog"
66 src=
67 dst=
68 dir_arg=
69 dstarg=
70 no_target_directory=
71
72 usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
73 or: $0 [OPTION]... SRCFILES... DIRECTORY
74 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
75 or: $0 [OPTION]... -d DIRECTORIES...
76
77 In the 1st form, copy SRCFILE to DSTFILE.
78 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
79 In the 4th, create DIRECTORIES.
80
81 Options:
82 -c (ignored)
83 -d create directories instead of installing files.
84 -g GROUP $chgrpprog installed files to GROUP.
85 -m MODE $chmodprog installed files to MODE.
86 -o USER $chownprog installed files to USER.
87 -s $stripprog installed files.
88 -t DIRECTORY install into DIRECTORY.
89 -T report an error if DSTFILE is a directory.
90 --help display this help and exit.
91 --version display version info and exit.
92
93 Environment variables override the default commands:
94 CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
95 "
96
97 while test -n "$1"; do
98 case $1 in
99 -c) shift
100 continue;;
101
102 -d) dir_arg=true
103 shift
104 continue;;
105
106 -g) chgrpcmd="$chgrpprog $2"
107 shift
108 shift
109 continue;;
110
111 --help) echo "$usage"; exit $?;;
112
113 -m) chmodcmd="$chmodprog $2"
114 shift
115 shift
116 continue;;
117
118 -o) chowncmd="$chownprog $2"
119 shift
120 shift
121 continue;;
122
123 -s) stripcmd=$stripprog
124 shift
125 continue;;
126
127 -t) dstarg=$2
128 shift
129 shift
130 continue;;
131
132 -T) no_target_directory=true
133 shift
134 continue;;
135
136 --version) echo "$0 $scriptversion"; exit $?;;
137
138 *) # When -d is used, all remaining arguments are directories to create.
139 # When -t is used, the destination is already specified.
140 test -n "$dir_arg$dstarg" && break
141 # Otherwise, the last argument is the destination. Remove it from $@.
142 for arg
143 do
144 if test -n "$dstarg"; then
145 # $@ is not empty: it contains at least $arg.
146 set fnord "$@" "$dstarg"
147 shift # fnord
148 fi
149 shift # arg
150 dstarg=$arg
151 done
152 break;;
153 esac
154 done
155
156 if test -z "$1"; then
157 if test -z "$dir_arg"; then
158 echo "$0: no input file specified." >&2
159 exit 1
160 fi
161 # It's OK to call `install-sh -d' without argument.
162 # This can happen when creating conditional directories.
163 exit 0
164 fi
165
166 for src
167 do
168 # Protect names starting with `-'.
169 case $src in
170 -*) src=./$src ;;
171 esac
172
173 if test -n "$dir_arg"; then
174 dst=$src
175 src=
176
177 if test -d "$dst"; then
178 mkdircmd=:
179 chmodcmd=
180 else
181 mkdircmd=$mkdirprog
182 fi
183 else
184 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
185 # might cause directories to be created, which would be especially bad
186 # if $src (and thus $dsttmp) contains '*'.
187 if test ! -f "$src" && test ! -d "$src"; then
188 echo "$0: $src does not exist." >&2
189 exit 1
190 fi
191
192 if test -z "$dstarg"; then
193 echo "$0: no destination specified." >&2
194 exit 1
195 fi
196
197 dst=$dstarg
198 # Protect names starting with `-'.
199 case $dst in
200 -*) dst=./$dst ;;
201 esac
202
203 # If destination is a directory, append the input filename; won't work
204 # if double slashes aren't ignored.
205 if test -d "$dst"; then
206 if test -n "$no_target_directory"; then
207 echo "$0: $dstarg: Is a directory" >&2
208 exit 1
209 fi
210 dst=$dst/`basename "$src"`
211 fi
212 fi
213
214 # This sed command emulates the dirname command.
215 dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
216
217 # Make sure that the destination directory exists.
218
219 # Skip lots of stat calls in the usual case.
220 if test ! -d "$dstdir"; then
221 defaultIFS='
222 '
223 IFS="${IFS-$defaultIFS}"
224
225 oIFS=$IFS
226 # Some sh's can't handle IFS=/ for some reason.
227 IFS='%'
228 set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
229 shift
230 IFS=$oIFS
231
232 pathcomp=
233
234 while test $# -ne 0 ; do
235 pathcomp=$pathcomp$1
236 shift
237 if test ! -d "$pathcomp"; then
238 $mkdirprog "$pathcomp"
239 # mkdir can fail with a `File exist' error in case several
240 # install-sh are creating the directory concurrently. This
241 # is OK.
242 test -d "$pathcomp" || exit
243 fi
244 pathcomp=$pathcomp/
245 done
246 fi
247
248 if test -n "$dir_arg"; then
249 $doit $mkdircmd "$dst" \
250 && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
251 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
252 && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
253 && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
254
255 else
256 dstfile=`basename "$dst"`
257
258 # Make a couple of temp file names in the proper directory.
259 dsttmp=$dstdir/_inst.$$_
260 rmtmp=$dstdir/_rm.$$_
261
262 # Trap to clean up those temp files at exit.
263 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
264 trap '(exit $?); exit' 1 2 13 15
265
266 # Copy the file name to the temp name.
267 $doit $cpprog "$src" "$dsttmp" &&
268
269 # and set any options; do chmod last to preserve setuid bits.
270 #
271 # If any of these fail, we abort the whole thing. If we want to
272 # ignore errors from any of these, just make sure not to ignore
273 # errors from the above "$doit $cpprog $src $dsttmp" command.
274 #
275 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
276 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
277 && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
278 && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
279
280 # Now rename the file to the real destination.
281 { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
282 || {
283 # The rename failed, perhaps because mv can't rename something else
284 # to itself, or perhaps because mv is so ancient that it does not
285 # support -f.
286
287 # Now remove or move aside any old file at destination location.
288 # We try this two ways since rm can't unlink itself on some
289 # systems and the destination file might be busy for other
290 # reasons. In this case, the final cleanup might fail but the new
291 # file should still install successfully.
292 {
293 if test -f "$dstdir/$dstfile"; then
294 $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
295 || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
296 || {
297 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
298 (exit 1); exit 1
299 }
300 else
301 :
302 fi
303 } &&
304
305 # Now rename the file to the real destination.
306 $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
307 }
308 }
309 fi || { (exit 1); exit 1; }
310 done
311
312 # The final little trick to "correctly" pass the exit status to the exit trap.
313 {
314 (exit 0); exit 0
315 }
316
317 # Local variables:
318 # eval: (add-hook 'write-file-hooks 'time-stamp)
319 # time-stamp-start: "scriptversion="
320 # time-stamp-format: "%:y-%02m-%02d.%02H"
321 # time-stamp-end: "$"
322 # End:
0 prefix=/usr
1 exec_prefix=${prefix}
2 libdir=${exec_prefix}/lib
3 includedir=${prefix}/include
4
5 Name: libhdate
6 Description: A c/cpp library for hebrew dates
7 Version: @VERSION@
8 Libs: -L${libdir} -lm -lhdate
9 Cflags: -I${includedir}
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 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.24 Debian 1.5.24-2"
46 TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
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 for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
116 do
117 eval "if test \"\${$lt_var+set}\" = set; then
118 save_$lt_var=\$$lt_var
119 $lt_var=C
120 export $lt_var
121 fi"
122 done
123
124 # Make sure IFS has a sensible default
125 lt_nl='
126 '
127 IFS=" $lt_nl"
128
129 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
130 $echo "$modename: not configured to build any kind of library" 1>&2
131 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
132 exit $EXIT_FAILURE
133 fi
134
135 # Global variables.
136 mode=$default_mode
137 nonopt=
138 prev=
139 prevopt=
140 run=
141 show="$echo"
142 show_help=
143 execute_dlfiles=
144 duplicate_deps=no
145 preserve_args=
146 lo2o="s/\\.lo\$/.${objext}/"
147 o2lo="s/\\.${objext}\$/.lo/"
148 extracted_archives=
149 extracted_serial=0
150
151 #####################################
152 # Shell function definitions:
153 # This seems to be the best place for them
154
155 # func_mktempdir [string]
156 # Make a temporary directory that won't clash with other running
157 # libtool processes, and avoids race conditions if possible. If
158 # given, STRING is the basename for that directory.
159 func_mktempdir ()
160 {
161 my_template="${TMPDIR-/tmp}/${1-$progname}"
162
163 if test "$run" = ":"; then
164 # Return a directory name, but don't create it in dry-run mode
165 my_tmpdir="${my_template}-$$"
166 else
167
168 # If mktemp works, use that first and foremost
169 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
170
171 if test ! -d "$my_tmpdir"; then
172 # Failing that, at least try and use $RANDOM to avoid a race
173 my_tmpdir="${my_template}-${RANDOM-0}$$"
174
175 save_mktempdir_umask=`umask`
176 umask 0077
177 $mkdir "$my_tmpdir"
178 umask $save_mktempdir_umask
179 fi
180
181 # If we're not in dry-run mode, bomb out on failure
182 test -d "$my_tmpdir" || {
183 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
184 exit $EXIT_FAILURE
185 }
186 fi
187
188 $echo "X$my_tmpdir" | $Xsed
189 }
190
191
192 # func_win32_libid arg
193 # return the library type of file 'arg'
194 #
195 # Need a lot of goo to handle *both* DLLs and import libs
196 # Has to be a shell function in order to 'eat' the argument
197 # that is supplied when $file_magic_command is called.
198 func_win32_libid ()
199 {
200 win32_libid_type="unknown"
201 win32_fileres=`file -L $1 2>/dev/null`
202 case $win32_fileres in
203 *ar\ archive\ import\ library*) # definitely import
204 win32_libid_type="x86 archive import"
205 ;;
206 *ar\ archive*) # could be an import, or static
207 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
208 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
209 win32_nmres=`eval $NM -f posix -A $1 | \
210 $SED -n -e '1,100{
211 / I /{
212 s,.*,import,
213 p
214 q
215 }
216 }'`
217 case $win32_nmres in
218 import*) win32_libid_type="x86 archive import";;
219 *) win32_libid_type="x86 archive static";;
220 esac
221 fi
222 ;;
223 *DLL*)
224 win32_libid_type="x86 DLL"
225 ;;
226 *executable*) # but shell scripts are "executable" too...
227 case $win32_fileres in
228 *MS\ Windows\ PE\ Intel*)
229 win32_libid_type="x86 DLL"
230 ;;
231 esac
232 ;;
233 esac
234 $echo $win32_libid_type
235 }
236
237
238 # func_infer_tag arg
239 # Infer tagged configuration to use if any are available and
240 # if one wasn't chosen via the "--tag" command line option.
241 # Only attempt this if the compiler in the base compile
242 # command doesn't match the default compiler.
243 # arg is usually of the form 'gcc ...'
244 func_infer_tag ()
245 {
246 if test -n "$available_tags" && test -z "$tagname"; then
247 CC_quoted=
248 for arg in $CC; do
249 case $arg in
250 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
251 arg="\"$arg\""
252 ;;
253 esac
254 CC_quoted="$CC_quoted $arg"
255 done
256 case $@ in
257 # Blanks in the command may have been stripped by the calling shell,
258 # but not from the CC environment variable when configure was run.
259 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
260 # Blanks at the start of $base_compile will cause this to fail
261 # if we don't check for them as well.
262 *)
263 for z in $available_tags; do
264 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
265 # Evaluate the configuration.
266 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
267 CC_quoted=
268 for arg in $CC; do
269 # Double-quote args containing other shell metacharacters.
270 case $arg in
271 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
272 arg="\"$arg\""
273 ;;
274 esac
275 CC_quoted="$CC_quoted $arg"
276 done
277 case "$@ " in
278 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
279 # The compiler in the base compile command matches
280 # the one in the tagged configuration.
281 # Assume this is the tagged configuration we want.
282 tagname=$z
283 break
284 ;;
285 esac
286 fi
287 done
288 # If $tagname still isn't set, then no tagged configuration
289 # was found and let the user know that the "--tag" command
290 # line option must be used.
291 if test -z "$tagname"; then
292 $echo "$modename: unable to infer tagged configuration"
293 $echo "$modename: specify a tag with \`--tag'" 1>&2
294 exit $EXIT_FAILURE
295 # else
296 # $echo "$modename: using $tagname tagged configuration"
297 fi
298 ;;
299 esac
300 fi
301 }
302
303
304 # func_extract_an_archive dir oldlib
305 func_extract_an_archive ()
306 {
307 f_ex_an_ar_dir="$1"; shift
308 f_ex_an_ar_oldlib="$1"
309
310 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
311 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
312 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
313 :
314 else
315 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
316 exit $EXIT_FAILURE
317 fi
318 }
319
320 # func_extract_archives gentop oldlib ...
321 func_extract_archives ()
322 {
323 my_gentop="$1"; shift
324 my_oldlibs=${1+"$@"}
325 my_oldobjs=""
326 my_xlib=""
327 my_xabs=""
328 my_xdir=""
329 my_status=""
330
331 $show "${rm}r $my_gentop"
332 $run ${rm}r "$my_gentop"
333 $show "$mkdir $my_gentop"
334 $run $mkdir "$my_gentop"
335 my_status=$?
336 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
337 exit $my_status
338 fi
339
340 for my_xlib in $my_oldlibs; do
341 # Extract the objects.
342 case $my_xlib in
343 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
344 *) my_xabs=`pwd`"/$my_xlib" ;;
345 esac
346 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
347 my_xlib_u=$my_xlib
348 while :; do
349 case " $extracted_archives " in
350 *" $my_xlib_u "*)
351 extracted_serial=`expr $extracted_serial + 1`
352 my_xlib_u=lt$extracted_serial-$my_xlib ;;
353 *) break ;;
354 esac
355 done
356 extracted_archives="$extracted_archives $my_xlib_u"
357 my_xdir="$my_gentop/$my_xlib_u"
358
359 $show "${rm}r $my_xdir"
360 $run ${rm}r "$my_xdir"
361 $show "$mkdir $my_xdir"
362 $run $mkdir "$my_xdir"
363 exit_status=$?
364 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
365 exit $exit_status
366 fi
367 case $host in
368 *-darwin*)
369 $show "Extracting $my_xabs"
370 # Do not bother doing anything if just a dry run
371 if test -z "$run"; then
372 darwin_orig_dir=`pwd`
373 cd $my_xdir || exit $?
374 darwin_archive=$my_xabs
375 darwin_curdir=`pwd`
376 darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
377 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
378 if test -n "$darwin_arches"; then
379 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
380 darwin_arch=
381 $show "$darwin_base_archive has multiple architectures $darwin_arches"
382 for darwin_arch in $darwin_arches ; do
383 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
384 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
385 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
386 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
387 cd "$darwin_curdir"
388 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
389 done # $darwin_arches
390 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
391 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
392 darwin_file=
393 darwin_files=
394 for darwin_file in $darwin_filelist; do
395 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
396 lipo -create -output "$darwin_file" $darwin_files
397 done # $darwin_filelist
398 ${rm}r unfat-$$
399 cd "$darwin_orig_dir"
400 else
401 cd "$darwin_orig_dir"
402 func_extract_an_archive "$my_xdir" "$my_xabs"
403 fi # $darwin_arches
404 fi # $run
405 ;;
406 *)
407 func_extract_an_archive "$my_xdir" "$my_xabs"
408 ;;
409 esac
410 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
411 done
412 func_extract_archives_result="$my_oldobjs"
413 }
414 # End of Shell function definitions
415 #####################################
416
417 # Darwin sucks
418 eval std_shrext=\"$shrext_cmds\"
419
420 disable_libs=no
421
422 # Parse our command line options once, thoroughly.
423 while test "$#" -gt 0
424 do
425 arg="$1"
426 shift
427
428 case $arg in
429 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
430 *) optarg= ;;
431 esac
432
433 # If the previous option needs an argument, assign it.
434 if test -n "$prev"; then
435 case $prev in
436 execute_dlfiles)
437 execute_dlfiles="$execute_dlfiles $arg"
438 ;;
439 tag)
440 tagname="$arg"
441 preserve_args="${preserve_args}=$arg"
442
443 # Check whether tagname contains only valid characters
444 case $tagname in
445 *[!-_A-Za-z0-9,/]*)
446 $echo "$progname: invalid tag name: $tagname" 1>&2
447 exit $EXIT_FAILURE
448 ;;
449 esac
450
451 case $tagname in
452 CC)
453 # Don't test for the "default" C tag, as we know, it's there, but
454 # not specially marked.
455 ;;
456 *)
457 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
458 taglist="$taglist $tagname"
459 # Evaluate the configuration.
460 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
461 else
462 $echo "$progname: ignoring unknown tag $tagname" 1>&2
463 fi
464 ;;
465 esac
466 ;;
467 *)
468 eval "$prev=\$arg"
469 ;;
470 esac
471
472 prev=
473 prevopt=
474 continue
475 fi
476
477 # Have we seen a non-optional argument yet?
478 case $arg in
479 --help)
480 show_help=yes
481 ;;
482
483 --version)
484 echo "\
485 $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
486
487 Copyright (C) 2007 Free Software Foundation, Inc.
488 This is free software; see the source for copying conditions. There is NO
489 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
490 exit $?
491 ;;
492
493 --config)
494 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
495 # Now print the configurations for the tags.
496 for tagname in $taglist; do
497 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
498 done
499 exit $?
500 ;;
501
502 --debug)
503 $echo "$progname: enabling shell trace mode"
504 set -x
505 preserve_args="$preserve_args $arg"
506 ;;
507
508 --dry-run | -n)
509 run=:
510 ;;
511
512 --features)
513 $echo "host: $host"
514 if test "$build_libtool_libs" = yes; then
515 $echo "enable shared libraries"
516 else
517 $echo "disable shared libraries"
518 fi
519 if test "$build_old_libs" = yes; then
520 $echo "enable static libraries"
521 else
522 $echo "disable static libraries"
523 fi
524 exit $?
525 ;;
526
527 --finish) mode="finish" ;;
528
529 --mode) prevopt="--mode" prev=mode ;;
530 --mode=*) mode="$optarg" ;;
531
532 --preserve-dup-deps) duplicate_deps="yes" ;;
533
534 --quiet | --silent)
535 show=:
536 preserve_args="$preserve_args $arg"
537 ;;
538
539 --tag)
540 prevopt="--tag"
541 prev=tag
542 preserve_args="$preserve_args --tag"
543 ;;
544 --tag=*)
545 set tag "$optarg" ${1+"$@"}
546 shift
547 prev=tag
548 preserve_args="$preserve_args --tag"
549 ;;
550
551 -dlopen)
552 prevopt="-dlopen"
553 prev=execute_dlfiles
554 ;;
555
556 -*)
557 $echo "$modename: unrecognized option \`$arg'" 1>&2
558 $echo "$help" 1>&2
559 exit $EXIT_FAILURE
560 ;;
561
562 *)
563 nonopt="$arg"
564 break
565 ;;
566 esac
567 done
568
569 if test -n "$prevopt"; then
570 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
571 $echo "$help" 1>&2
572 exit $EXIT_FAILURE
573 fi
574
575 case $disable_libs in
576 no)
577 ;;
578 shared)
579 build_libtool_libs=no
580 build_old_libs=yes
581 ;;
582 static)
583 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
584 ;;
585 esac
586
587 # If this variable is set in any of the actions, the command in it
588 # will be execed at the end. This prevents here-documents from being
589 # left over by shells.
590 exec_cmd=
591
592 if test -z "$show_help"; then
593
594 # Infer the operation mode.
595 if test -z "$mode"; then
596 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
597 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
598 case $nonopt in
599 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
600 mode=link
601 for arg
602 do
603 case $arg in
604 -c)
605 mode=compile
606 break
607 ;;
608 esac
609 done
610 ;;
611 *db | *dbx | *strace | *truss)
612 mode=execute
613 ;;
614 *install*|cp|mv)
615 mode=install
616 ;;
617 *rm)
618 mode=uninstall
619 ;;
620 *)
621 # If we have no mode, but dlfiles were specified, then do execute mode.
622 test -n "$execute_dlfiles" && mode=execute
623
624 # Just use the default operation mode.
625 if test -z "$mode"; then
626 if test -n "$nonopt"; then
627 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
628 else
629 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
630 fi
631 fi
632 ;;
633 esac
634 fi
635
636 # Only execute mode is allowed to have -dlopen flags.
637 if test -n "$execute_dlfiles" && test "$mode" != execute; then
638 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
639 $echo "$help" 1>&2
640 exit $EXIT_FAILURE
641 fi
642
643 # Change the help message to a mode-specific one.
644 generic_help="$help"
645 help="Try \`$modename --help --mode=$mode' for more information."
646
647 # These modes are in order of execution frequency so that they run quickly.
648 case $mode in
649 # libtool compile mode
650 compile)
651 modename="$modename: compile"
652 # Get the compilation command and the source file.
653 base_compile=
654 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
655 suppress_opt=yes
656 suppress_output=
657 arg_mode=normal
658 libobj=
659 later=
660
661 for arg
662 do
663 case $arg_mode in
664 arg )
665 # do not "continue". Instead, add this to base_compile
666 lastarg="$arg"
667 arg_mode=normal
668 ;;
669
670 target )
671 libobj="$arg"
672 arg_mode=normal
673 continue
674 ;;
675
676 normal )
677 # Accept any command-line options.
678 case $arg in
679 -o)
680 if test -n "$libobj" ; then
681 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
682 exit $EXIT_FAILURE
683 fi
684 arg_mode=target
685 continue
686 ;;
687
688 -static | -prefer-pic | -prefer-non-pic)
689 later="$later $arg"
690 continue
691 ;;
692
693 -no-suppress)
694 suppress_opt=no
695 continue
696 ;;
697
698 -Xcompiler)
699 arg_mode=arg # the next one goes into the "base_compile" arg list
700 continue # The current "srcfile" will either be retained or
701 ;; # replaced later. I would guess that would be a bug.
702
703 -Wc,*)
704 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
705 lastarg=
706 save_ifs="$IFS"; IFS=','
707 for arg in $args; do
708 IFS="$save_ifs"
709
710 # Double-quote args containing other shell metacharacters.
711 # Many Bourne shells cannot handle close brackets correctly
712 # in scan sets, so we specify it separately.
713 case $arg in
714 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
715 arg="\"$arg\""
716 ;;
717 esac
718 lastarg="$lastarg $arg"
719 done
720 IFS="$save_ifs"
721 lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
722
723 # Add the arguments to base_compile.
724 base_compile="$base_compile $lastarg"
725 continue
726 ;;
727
728 * )
729 # Accept the current argument as the source file.
730 # The previous "srcfile" becomes the current argument.
731 #
732 lastarg="$srcfile"
733 srcfile="$arg"
734 ;;
735 esac # case $arg
736 ;;
737 esac # case $arg_mode
738
739 # Aesthetically quote the previous argument.
740 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
741
742 case $lastarg in
743 # Double-quote args containing other shell metacharacters.
744 # Many Bourne shells cannot handle close brackets correctly
745 # in scan sets, and some SunOS ksh mistreat backslash-escaping
746 # in scan sets (worked around with variable expansion),
747 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
748 # at all, so we specify them separately.
749 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
750 lastarg="\"$lastarg\""
751 ;;
752 esac
753
754 base_compile="$base_compile $lastarg"
755 done # for arg
756
757 case $arg_mode in
758 arg)
759 $echo "$modename: you must specify an argument for -Xcompile"
760 exit $EXIT_FAILURE
761 ;;
762 target)
763 $echo "$modename: you must specify a target with \`-o'" 1>&2
764 exit $EXIT_FAILURE
765 ;;
766 *)
767 # Get the name of the library object.
768 [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
769 ;;
770 esac
771
772 # Recognize several different file suffixes.
773 # If the user specifies -o file.o, it is replaced with file.lo
774 xform='[cCFSifmso]'
775 case $libobj in
776 *.ada) xform=ada ;;
777 *.adb) xform=adb ;;
778 *.ads) xform=ads ;;
779 *.asm) xform=asm ;;
780 *.c++) xform=c++ ;;
781 *.cc) xform=cc ;;
782 *.ii) xform=ii ;;
783 *.class) xform=class ;;
784 *.cpp) xform=cpp ;;
785 *.cxx) xform=cxx ;;
786 *.[fF][09]?) xform=[fF][09]. ;;
787 *.for) xform=for ;;
788 *.java) xform=java ;;
789 *.obj) xform=obj ;;
790 esac
791
792 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
793
794 case $libobj in
795 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
796 *)
797 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
798 exit $EXIT_FAILURE
799 ;;
800 esac
801
802 func_infer_tag $base_compile
803
804 for arg in $later; do
805 case $arg in
806 -static)
807 build_old_libs=yes
808 continue
809 ;;
810
811 -prefer-pic)
812 pic_mode=yes
813 continue
814 ;;
815
816 -prefer-non-pic)
817 pic_mode=no
818 continue
819 ;;
820 esac
821 done
822
823 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
824 case $qlibobj in
825 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
826 qlibobj="\"$qlibobj\"" ;;
827 esac
828 test "X$libobj" != "X$qlibobj" \
829 && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
830 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
831 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
832 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
833 if test "X$xdir" = "X$obj"; then
834 xdir=
835 else
836 xdir=$xdir/
837 fi
838 lobj=${xdir}$objdir/$objname
839
840 if test -z "$base_compile"; then
841 $echo "$modename: you must specify a compilation command" 1>&2
842 $echo "$help" 1>&2
843 exit $EXIT_FAILURE
844 fi
845
846 # Delete any leftover library objects.
847 if test "$build_old_libs" = yes; then
848 removelist="$obj $lobj $libobj ${libobj}T"
849 else
850 removelist="$lobj $libobj ${libobj}T"
851 fi
852
853 $run $rm $removelist
854 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
855
856 # On Cygwin there's no "real" PIC flag so we must build both object types
857 case $host_os in
858 cygwin* | mingw* | pw32* | os2*)
859 pic_mode=default
860 ;;
861 esac
862 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
863 # non-PIC code in shared libraries is not supported
864 pic_mode=default
865 fi
866
867 # Calculate the filename of the output object if compiler does
868 # not support -o with -c
869 if test "$compiler_c_o" = no; then
870 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
871 lockfile="$output_obj.lock"
872 removelist="$removelist $output_obj $lockfile"
873 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
874 else
875 output_obj=
876 need_locks=no
877 lockfile=
878 fi
879
880 # Lock this critical section if it is needed
881 # We use this script file to make the link, it avoids creating a new file
882 if test "$need_locks" = yes; then
883 until $run ln "$progpath" "$lockfile" 2>/dev/null; do
884 $show "Waiting for $lockfile to be removed"
885 sleep 2
886 done
887 elif test "$need_locks" = warn; then
888 if test -f "$lockfile"; then
889 $echo "\
890 *** ERROR, $lockfile exists and contains:
891 `cat $lockfile 2>/dev/null`
892
893 This indicates that another process is trying to use the same
894 temporary object file, and libtool could not work around it because
895 your compiler does not support \`-c' and \`-o' together. If you
896 repeat this compilation, it may succeed, by chance, but you had better
897 avoid parallel builds (make -j) in this platform, or get a better
898 compiler."
899
900 $run $rm $removelist
901 exit $EXIT_FAILURE
902 fi
903 $echo "$srcfile" > "$lockfile"
904 fi
905
906 if test -n "$fix_srcfile_path"; then
907 eval srcfile=\"$fix_srcfile_path\"
908 fi
909 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
910 case $qsrcfile in
911 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
912 qsrcfile="\"$qsrcfile\"" ;;
913 esac
914
915 $run $rm "$libobj" "${libobj}T"
916
917 # Create a libtool object file (analogous to a ".la" file),
918 # but don't create it if we're doing a dry run.
919 test -z "$run" && cat > ${libobj}T <<EOF
920 # $libobj - a libtool object file
921 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
922 #
923 # Please DO NOT delete this file!
924 # It is necessary for linking the library.
925
926 # Name of the PIC object.
927 EOF
928
929 # Only build a PIC object if we are building libtool libraries.
930 if test "$build_libtool_libs" = yes; then
931 # Without this assignment, base_compile gets emptied.
932 fbsd_hideous_sh_bug=$base_compile
933
934 if test "$pic_mode" != no; then
935 command="$base_compile $qsrcfile $pic_flag"
936 else
937 # Don't build PIC code
938 command="$base_compile $qsrcfile"
939 fi
940
941 if test ! -d "${xdir}$objdir"; then
942 $show "$mkdir ${xdir}$objdir"
943 $run $mkdir ${xdir}$objdir
944 exit_status=$?
945 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
946 exit $exit_status
947 fi
948 fi
949
950 if test -z "$output_obj"; then
951 # Place PIC objects in $objdir
952 command="$command -o $lobj"
953 fi
954
955 $run $rm "$lobj" "$output_obj"
956
957 $show "$command"
958 if $run eval "$command"; then :
959 else
960 test -n "$output_obj" && $run $rm $removelist
961 exit $EXIT_FAILURE
962 fi
963
964 if test "$need_locks" = warn &&
965 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
966 $echo "\
967 *** ERROR, $lockfile contains:
968 `cat $lockfile 2>/dev/null`
969
970 but it should contain:
971 $srcfile
972
973 This indicates that another process is trying to use the same
974 temporary object file, and libtool could not work around it because
975 your compiler does not support \`-c' and \`-o' together. If you
976 repeat this compilation, it may succeed, by chance, but you had better
977 avoid parallel builds (make -j) in this platform, or get a better
978 compiler."
979
980 $run $rm $removelist
981 exit $EXIT_FAILURE
982 fi
983
984 # Just move the object if needed, then go on to compile the next one
985 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
986 $show "$mv $output_obj $lobj"
987 if $run $mv $output_obj $lobj; then :
988 else
989 error=$?
990 $run $rm $removelist
991 exit $error
992 fi
993 fi
994
995 # Append the name of the PIC object to the libtool object file.
996 test -z "$run" && cat >> ${libobj}T <<EOF
997 pic_object='$objdir/$objname'
998
999 EOF
1000
1001 # Allow error messages only from the first compilation.
1002 if test "$suppress_opt" = yes; then
1003 suppress_output=' >/dev/null 2>&1'
1004 fi
1005 else
1006 # No PIC object so indicate it doesn't exist in the libtool
1007 # object file.
1008 test -z "$run" && cat >> ${libobj}T <<EOF
1009 pic_object=none
1010
1011 EOF
1012 fi
1013
1014 # Only build a position-dependent object if we build old libraries.
1015 if test "$build_old_libs" = yes; then
1016 if test "$pic_mode" != yes; then
1017 # Don't build PIC code
1018 command="$base_compile $qsrcfile"
1019 else
1020 command="$base_compile $qsrcfile $pic_flag"
1021 fi
1022 if test "$compiler_c_o" = yes; then
1023 command="$command -o $obj"
1024 fi
1025
1026 # Suppress compiler output if we already did a PIC compilation.
1027 command="$command$suppress_output"
1028 $run $rm "$obj" "$output_obj"
1029 $show "$command"
1030 if $run eval "$command"; then :
1031 else
1032 $run $rm $removelist
1033 exit $EXIT_FAILURE
1034 fi
1035
1036 if test "$need_locks" = warn &&
1037 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1038 $echo "\
1039 *** ERROR, $lockfile contains:
1040 `cat $lockfile 2>/dev/null`
1041
1042 but it should contain:
1043 $srcfile
1044
1045 This indicates that another process is trying to use the same
1046 temporary object file, and libtool could not work around it because
1047 your compiler does not support \`-c' and \`-o' together. If you
1048 repeat this compilation, it may succeed, by chance, but you had better
1049 avoid parallel builds (make -j) in this platform, or get a better
1050 compiler."
1051
1052 $run $rm $removelist
1053 exit $EXIT_FAILURE
1054 fi
1055
1056 # Just move the object if needed
1057 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1058 $show "$mv $output_obj $obj"
1059 if $run $mv $output_obj $obj; then :
1060 else
1061 error=$?
1062 $run $rm $removelist
1063 exit $error
1064 fi
1065 fi
1066
1067 # Append the name of the non-PIC object the libtool object file.
1068 # Only append if the libtool object file exists.
1069 test -z "$run" && cat >> ${libobj}T <<EOF
1070 # Name of the non-PIC object.
1071 non_pic_object='$objname'
1072
1073 EOF
1074 else
1075 # Append the name of the non-PIC object the libtool object file.
1076 # Only append if the libtool object file exists.
1077 test -z "$run" && cat >> ${libobj}T <<EOF
1078 # Name of the non-PIC object.
1079 non_pic_object=none
1080
1081 EOF
1082 fi
1083
1084 $run $mv "${libobj}T" "${libobj}"
1085
1086 # Unlock the critical section if it was locked
1087 if test "$need_locks" != no; then
1088 $run $rm "$lockfile"
1089 fi
1090
1091 exit $EXIT_SUCCESS
1092 ;;
1093
1094 # libtool link mode
1095 link | relink)
1096 modename="$modename: link"
1097 case $host in
1098 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1099 # It is impossible to link a dll without this setting, and
1100 # we shouldn't force the makefile maintainer to figure out
1101 # which system we are compiling for in order to pass an extra
1102 # flag for every libtool invocation.
1103 # allow_undefined=no
1104
1105 # FIXME: Unfortunately, there are problems with the above when trying
1106 # to make a dll which has undefined symbols, in which case not
1107 # even a static library is built. For now, we need to specify
1108 # -no-undefined on the libtool link line when we can be certain
1109 # that all symbols are satisfied, otherwise we get a static library.
1110 allow_undefined=yes
1111 ;;
1112 *)
1113 allow_undefined=yes
1114 ;;
1115 esac
1116 libtool_args="$nonopt"
1117 base_compile="$nonopt $@"
1118 compile_command="$nonopt"
1119 finalize_command="$nonopt"
1120
1121 compile_rpath=
1122 finalize_rpath=
1123 compile_shlibpath=
1124 finalize_shlibpath=
1125 convenience=
1126 old_convenience=
1127 deplibs=
1128 old_deplibs=
1129 compiler_flags=
1130 linker_flags=
1131 dllsearchpath=
1132 lib_search_path=`pwd`
1133 inst_prefix_dir=
1134
1135 avoid_version=no
1136 dlfiles=
1137 dlprefiles=
1138 dlself=no
1139 export_dynamic=no
1140 export_symbols=
1141 export_symbols_regex=
1142 generated=
1143 libobjs=
1144 ltlibs=
1145 module=no
1146 no_install=no
1147 objs=
1148 non_pic_objects=
1149 notinst_path= # paths that contain not-installed libtool libraries
1150 precious_files_regex=
1151 prefer_static_libs=no
1152 preload=no
1153 prev=
1154 prevarg=
1155 release=
1156 rpath=
1157 xrpath=
1158 perm_rpath=
1159 temp_rpath=
1160 thread_safe=no
1161 vinfo=
1162 vinfo_number=no
1163
1164 func_infer_tag $base_compile
1165
1166 # We need to know -static, to get the right output filenames.
1167 for arg
1168 do
1169 case $arg in
1170 -all-static | -static | -static-libtool-libs)
1171 case $arg in
1172 -all-static)
1173 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1174 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1175 fi
1176 if test -n "$link_static_flag"; then
1177 dlopen_self=$dlopen_self_static
1178 fi
1179 prefer_static_libs=yes
1180 ;;
1181 -static)
1182 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1183 dlopen_self=$dlopen_self_static
1184 fi
1185 prefer_static_libs=built
1186 ;;
1187 -static-libtool-libs)
1188 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1189 dlopen_self=$dlopen_self_static
1190 fi
1191 prefer_static_libs=yes
1192 ;;
1193 esac
1194 build_libtool_libs=no
1195 build_old_libs=yes
1196 break
1197 ;;
1198 esac
1199 done
1200
1201 # See if our shared archives depend on static archives.
1202 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
1203
1204 # Go through the arguments, transforming them on the way.
1205 while test "$#" -gt 0; do
1206 arg="$1"
1207 shift
1208 case $arg in
1209 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1210 qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1211 ;;
1212 *) qarg=$arg ;;
1213 esac
1214 libtool_args="$libtool_args $qarg"
1215
1216 # If the previous option needs an argument, assign it.
1217 if test -n "$prev"; then
1218 case $prev in
1219 output)
1220 compile_command="$compile_command @OUTPUT@"
1221 finalize_command="$finalize_command @OUTPUT@"
1222 ;;
1223 esac
1224
1225 case $prev in
1226 dlfiles|dlprefiles)
1227 if test "$preload" = no; then
1228 # Add the symbol object into the linking commands.
1229 compile_command="$compile_command @SYMFILE@"
1230 finalize_command="$finalize_command @SYMFILE@"
1231 preload=yes
1232 fi
1233 case $arg in
1234 *.la | *.lo) ;; # We handle these cases below.
1235 force)
1236 if test "$dlself" = no; then
1237 dlself=needless
1238 export_dynamic=yes
1239 fi
1240 prev=
1241 continue
1242 ;;
1243 self)
1244 if test "$prev" = dlprefiles; then
1245 dlself=yes
1246 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
1247 dlself=yes
1248 else
1249 dlself=needless
1250 export_dynamic=yes
1251 fi
1252 prev=
1253 continue
1254 ;;
1255 *)
1256 if test "$prev" = dlfiles; then
1257 dlfiles="$dlfiles $arg"
1258 else
1259 dlprefiles="$dlprefiles $arg"
1260 fi
1261 prev=
1262 continue
1263 ;;
1264 esac
1265 ;;
1266 expsyms)
1267 export_symbols="$arg"
1268 if test ! -f "$arg"; then
1269 $echo "$modename: symbol file \`$arg' does not exist"
1270 exit $EXIT_FAILURE
1271 fi
1272 prev=
1273 continue
1274 ;;
1275 expsyms_regex)
1276 export_symbols_regex="$arg"
1277 prev=
1278 continue
1279 ;;
1280 inst_prefix)
1281 inst_prefix_dir="$arg"
1282 prev=
1283 continue
1284 ;;
1285 precious_regex)
1286 precious_files_regex="$arg"
1287 prev=
1288 continue
1289 ;;
1290 release)
1291 release="-$arg"
1292 prev=
1293 continue
1294 ;;
1295 objectlist)
1296 if test -f "$arg"; then
1297 save_arg=$arg
1298 moreargs=
1299 for fil in `cat $save_arg`
1300 do
1301 # moreargs="$moreargs $fil"
1302 arg=$fil
1303 # A libtool-controlled object.
1304
1305 # Check to see that this really is a libtool object.
1306 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1307 pic_object=
1308 non_pic_object=
1309
1310 # Read the .lo file
1311 # If there is no directory component, then add one.
1312 case $arg in
1313 */* | *\\*) . $arg ;;
1314 *) . ./$arg ;;
1315 esac
1316
1317 if test -z "$pic_object" || \
1318 test -z "$non_pic_object" ||
1319 test "$pic_object" = none && \
1320 test "$non_pic_object" = none; then
1321 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1322 exit $EXIT_FAILURE
1323 fi
1324
1325 # Extract subdirectory from the argument.
1326 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1327 if test "X$xdir" = "X$arg"; then
1328 xdir=
1329 else
1330 xdir="$xdir/"
1331 fi
1332
1333 if test "$pic_object" != none; then
1334 # Prepend the subdirectory the object is found in.
1335 pic_object="$xdir$pic_object"
1336
1337 if test "$prev" = dlfiles; then
1338 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1339 dlfiles="$dlfiles $pic_object"
1340 prev=
1341 continue
1342 else
1343 # If libtool objects are unsupported, then we need to preload.
1344 prev=dlprefiles
1345 fi
1346 fi
1347
1348 # CHECK ME: I think I busted this. -Ossama
1349 if test "$prev" = dlprefiles; then
1350 # Preload the old-style object.
1351 dlprefiles="$dlprefiles $pic_object"
1352 prev=
1353 fi
1354
1355 # A PIC object.
1356 libobjs="$libobjs $pic_object"
1357 arg="$pic_object"
1358 fi
1359
1360 # Non-PIC object.
1361 if test "$non_pic_object" != none; then
1362 # Prepend the subdirectory the object is found in.
1363 non_pic_object="$xdir$non_pic_object"
1364
1365 # A standard non-PIC object
1366 non_pic_objects="$non_pic_objects $non_pic_object"
1367 if test -z "$pic_object" || test "$pic_object" = none ; then
1368 arg="$non_pic_object"
1369 fi
1370 else
1371 # If the PIC object exists, use it instead.
1372 # $xdir was prepended to $pic_object above.
1373 non_pic_object="$pic_object"
1374 non_pic_objects="$non_pic_objects $non_pic_object"
1375 fi
1376 else
1377 # Only an error if not doing a dry-run.
1378 if test -z "$run"; then
1379 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1380 exit $EXIT_FAILURE
1381 else
1382 # Dry-run case.
1383
1384 # Extract subdirectory from the argument.
1385 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1386 if test "X$xdir" = "X$arg"; then
1387 xdir=
1388 else
1389 xdir="$xdir/"
1390 fi
1391
1392 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1393 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1394 libobjs="$libobjs $pic_object"
1395 non_pic_objects="$non_pic_objects $non_pic_object"
1396 fi
1397 fi
1398 done
1399 else
1400 $echo "$modename: link input file \`$save_arg' does not exist"
1401 exit $EXIT_FAILURE
1402 fi
1403 arg=$save_arg
1404 prev=
1405 continue
1406 ;;
1407 rpath | xrpath)
1408 # We need an absolute path.
1409 case $arg in
1410 [\\/]* | [A-Za-z]:[\\/]*) ;;
1411 *)
1412 $echo "$modename: only absolute run-paths are allowed" 1>&2
1413 exit $EXIT_FAILURE
1414 ;;
1415 esac
1416 if test "$prev" = rpath; then
1417 case "$rpath " in
1418 *" $arg "*) ;;
1419 *) rpath="$rpath $arg" ;;
1420 esac
1421 else
1422 case "$xrpath " in
1423 *" $arg "*) ;;
1424 *) xrpath="$xrpath $arg" ;;
1425 esac
1426 fi
1427 prev=
1428 continue
1429 ;;
1430 xcompiler)
1431 compiler_flags="$compiler_flags $qarg"
1432 prev=
1433 compile_command="$compile_command $qarg"
1434 finalize_command="$finalize_command $qarg"
1435 continue
1436 ;;
1437 xlinker)
1438 linker_flags="$linker_flags $qarg"
1439 compiler_flags="$compiler_flags $wl$qarg"
1440 prev=
1441 compile_command="$compile_command $wl$qarg"
1442 finalize_command="$finalize_command $wl$qarg"
1443 continue
1444 ;;
1445 xcclinker)
1446 linker_flags="$linker_flags $qarg"
1447 compiler_flags="$compiler_flags $qarg"
1448 prev=
1449 compile_command="$compile_command $qarg"
1450 finalize_command="$finalize_command $qarg"
1451 continue
1452 ;;
1453 shrext)
1454 shrext_cmds="$arg"
1455 prev=
1456 continue
1457 ;;
1458 darwin_framework|darwin_framework_skip)
1459 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1460 compile_command="$compile_command $arg"
1461 finalize_command="$finalize_command $arg"
1462 prev=
1463 continue
1464 ;;
1465 *)
1466 eval "$prev=\"\$arg\""
1467 prev=
1468 continue
1469 ;;
1470 esac
1471 fi # test -n "$prev"
1472
1473 prevarg="$arg"
1474
1475 case $arg in
1476 -all-static)
1477 if test -n "$link_static_flag"; then
1478 compile_command="$compile_command $link_static_flag"
1479 finalize_command="$finalize_command $link_static_flag"
1480 fi
1481 continue
1482 ;;
1483
1484 -allow-undefined)
1485 # FIXME: remove this flag sometime in the future.
1486 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1487 continue
1488 ;;
1489
1490 -avoid-version)
1491 avoid_version=yes
1492 continue
1493 ;;
1494
1495 -dlopen)
1496 prev=dlfiles
1497 continue
1498 ;;
1499
1500 -dlpreopen)
1501 prev=dlprefiles
1502 continue
1503 ;;
1504
1505 -export-dynamic)
1506 export_dynamic=yes
1507 continue
1508 ;;
1509
1510 -export-symbols | -export-symbols-regex)
1511 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1512 $echo "$modename: more than one -exported-symbols argument is not allowed"
1513 exit $EXIT_FAILURE
1514 fi
1515 if test "X$arg" = "X-export-symbols"; then
1516 prev=expsyms
1517 else
1518 prev=expsyms_regex
1519 fi
1520 continue
1521 ;;
1522
1523 -framework|-arch|-isysroot)
1524 case " $CC " in
1525 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1526 prev=darwin_framework_skip ;;
1527 *) compiler_flags="$compiler_flags $arg"
1528 prev=darwin_framework ;;
1529 esac
1530 compile_command="$compile_command $arg"
1531 finalize_command="$finalize_command $arg"
1532 continue
1533 ;;
1534
1535 -inst-prefix-dir)
1536 prev=inst_prefix
1537 continue
1538 ;;
1539
1540 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
1541 # so, if we see these flags be careful not to treat them like -L
1542 -L[A-Z][A-Z]*:*)
1543 case $with_gcc/$host in
1544 no/*-*-irix* | /*-*-irix*)
1545 compile_command="$compile_command $arg"
1546 finalize_command="$finalize_command $arg"
1547 ;;
1548 esac
1549 continue
1550 ;;
1551
1552 -L*)
1553 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
1554 # We need an absolute path.
1555 case $dir in
1556 [\\/]* | [A-Za-z]:[\\/]*) ;;
1557 *)
1558 absdir=`cd "$dir" && pwd`
1559 if test -z "$absdir"; then
1560 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1561 absdir="$dir"
1562 notinst_path="$notinst_path $dir"
1563 fi
1564 dir="$absdir"
1565 ;;
1566 esac
1567 case "$deplibs " in
1568 *" -L$dir "*) ;;
1569 *)
1570 deplibs="$deplibs -L$dir"
1571 lib_search_path="$lib_search_path $dir"
1572 ;;
1573 esac
1574 case $host in
1575 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1576 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1577 case :$dllsearchpath: in
1578 *":$dir:"*) ;;
1579 *) dllsearchpath="$dllsearchpath:$dir";;
1580 esac
1581 case :$dllsearchpath: in
1582 *":$testbindir:"*) ;;
1583 *) dllsearchpath="$dllsearchpath:$testbindir";;
1584 esac
1585 ;;
1586 esac
1587 continue
1588 ;;
1589
1590 -l*)
1591 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1592 case $host in
1593 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1594 # These systems don't actually have a C or math library (as such)
1595 continue
1596 ;;
1597 *-*-os2*)
1598 # These systems don't actually have a C library (as such)
1599 test "X$arg" = "X-lc" && continue
1600 ;;
1601 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1602 # Do not include libc due to us having libc/libc_r.
1603 test "X$arg" = "X-lc" && continue
1604 ;;
1605 *-*-rhapsody* | *-*-darwin1.[012])
1606 # Rhapsody C and math libraries are in the System framework
1607 deplibs="$deplibs -framework System"
1608 continue
1609 ;;
1610 *-*-sco3.2v5* | *-*-sco5v6*)
1611 # Causes problems with __ctype
1612 test "X$arg" = "X-lc" && continue
1613 ;;
1614 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1615 # Compiler inserts libc in the correct place for threads to work
1616 test "X$arg" = "X-lc" && continue
1617 ;;
1618 esac
1619 elif test "X$arg" = "X-lc_r"; then
1620 case $host in
1621 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1622 # Do not include libc_r directly, use -pthread flag.
1623 continue
1624 ;;
1625 esac
1626 fi
1627 deplibs="$deplibs $arg"
1628 continue
1629 ;;
1630
1631 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1632 # classes, name mangling, and exception handling.
1633 -model)
1634 compile_command="$compile_command $arg"
1635 compiler_flags="$compiler_flags $arg"
1636 finalize_command="$finalize_command $arg"
1637 prev=xcompiler
1638 continue
1639 ;;
1640
1641 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1642 compiler_flags="$compiler_flags $arg"
1643 compile_command="$compile_command $arg"
1644 finalize_command="$finalize_command $arg"
1645 continue
1646 ;;
1647
1648 -module)
1649 module=yes
1650 continue
1651 ;;
1652
1653 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1654 # -r[0-9][0-9]* specifies the processor on the SGI compiler
1655 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1656 # +DA*, +DD* enable 64-bit mode on the HP compiler
1657 # -q* pass through compiler args for the IBM compiler
1658 # -m* pass through architecture-specific compiler args for GCC
1659 # -m*, -t[45]*, -txscale* pass through architecture-specific
1660 # compiler args for GCC
1661 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1662 # -F/path gives path to uninstalled frameworks, gcc on darwin
1663 # @file GCC response files
1664 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
1665 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1666
1667 # Unknown arguments in both finalize_command and compile_command need
1668 # to be aesthetically quoted because they are evaled later.
1669 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1670 case $arg in
1671 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1672 arg="\"$arg\""
1673 ;;
1674 esac
1675 compile_command="$compile_command $arg"
1676 finalize_command="$finalize_command $arg"
1677 compiler_flags="$compiler_flags $arg"
1678 continue
1679 ;;
1680
1681 -shrext)
1682 prev=shrext
1683 continue
1684 ;;
1685
1686 -no-fast-install)
1687 fast_install=no
1688 continue
1689 ;;
1690
1691 -no-install)
1692 case $host in
1693 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
1694 # The PATH hackery in wrapper scripts is required on Windows
1695 # and Darwin in order for the loader to find any dlls it needs.
1696 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1697 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1698 fast_install=no
1699 ;;
1700 *) no_install=yes ;;
1701 esac
1702 continue
1703 ;;
1704
1705 -no-undefined)
1706 allow_undefined=no
1707 continue
1708 ;;
1709
1710 -objectlist)
1711 prev=objectlist
1712 continue
1713 ;;
1714
1715 -o) prev=output ;;
1716
1717 -precious-files-regex)
1718 prev=precious_regex
1719 continue
1720 ;;
1721
1722 -release)
1723 prev=release
1724 continue
1725 ;;
1726
1727 -rpath)
1728 prev=rpath
1729 continue
1730 ;;
1731
1732 -R)
1733 prev=xrpath
1734 continue
1735 ;;
1736
1737 -R*)
1738 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
1739 # We need an absolute path.
1740 case $dir in
1741 [\\/]* | [A-Za-z]:[\\/]*) ;;
1742 *)
1743 $echo "$modename: only absolute run-paths are allowed" 1>&2
1744 exit $EXIT_FAILURE
1745 ;;
1746 esac
1747 case "$xrpath " in
1748 *" $dir "*) ;;
1749 *) xrpath="$xrpath $dir" ;;
1750 esac
1751 continue
1752 ;;
1753
1754 -static | -static-libtool-libs)
1755 # The effects of -static are defined in a previous loop.
1756 # We used to do the same as -all-static on platforms that
1757 # didn't have a PIC flag, but the assumption that the effects
1758 # would be equivalent was wrong. It would break on at least
1759 # Digital Unix and AIX.
1760 continue
1761 ;;
1762
1763 -thread-safe)
1764 thread_safe=yes
1765 continue
1766 ;;
1767
1768 -version-info)
1769 prev=vinfo
1770 continue
1771 ;;
1772 -version-number)
1773 prev=vinfo
1774 vinfo_number=yes
1775 continue
1776 ;;
1777
1778 -Wc,*)
1779 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
1780 arg=
1781 save_ifs="$IFS"; IFS=','
1782 for flag in $args; do
1783 IFS="$save_ifs"
1784 case $flag in
1785 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1786 flag="\"$flag\""
1787 ;;
1788 esac
1789 arg="$arg $wl$flag"
1790 compiler_flags="$compiler_flags $flag"
1791 done
1792 IFS="$save_ifs"
1793 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1794 ;;
1795
1796 -Wl,*)
1797 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
1798 arg=
1799 save_ifs="$IFS"; IFS=','
1800 for flag in $args; do
1801 IFS="$save_ifs"
1802 case $flag in
1803 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1804 flag="\"$flag\""
1805 ;;
1806 esac
1807 arg="$arg $wl$flag"
1808 compiler_flags="$compiler_flags $wl$flag"
1809 linker_flags="$linker_flags $flag"
1810 done
1811 IFS="$save_ifs"
1812 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1813 ;;
1814
1815 -Xcompiler)
1816 prev=xcompiler
1817 continue
1818 ;;
1819
1820 -Xlinker)
1821 prev=xlinker
1822 continue
1823 ;;
1824
1825 -XCClinker)
1826 prev=xcclinker
1827 continue
1828 ;;
1829
1830 # Some other compiler flag.
1831 -* | +*)
1832 # Unknown arguments in both finalize_command and compile_command need
1833 # to be aesthetically quoted because they are evaled later.
1834 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1835 case $arg in
1836 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1837 arg="\"$arg\""
1838 ;;
1839 esac
1840 ;;
1841
1842 *.$objext)
1843 # A standard object.
1844 objs="$objs $arg"
1845 ;;
1846
1847 *.lo)
1848 # A libtool-controlled object.
1849
1850 # Check to see that this really is a libtool object.
1851 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1852 pic_object=
1853 non_pic_object=
1854
1855 # Read the .lo file
1856 # If there is no directory component, then add one.
1857 case $arg in
1858 */* | *\\*) . $arg ;;
1859 *) . ./$arg ;;
1860 esac
1861
1862 if test -z "$pic_object" || \
1863 test -z "$non_pic_object" ||
1864 test "$pic_object" = none && \
1865 test "$non_pic_object" = none; then
1866 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1867 exit $EXIT_FAILURE
1868 fi
1869
1870 # Extract subdirectory from the argument.
1871 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1872 if test "X$xdir" = "X$arg"; then
1873 xdir=
1874 else
1875 xdir="$xdir/"
1876 fi
1877
1878 if test "$pic_object" != none; then
1879 # Prepend the subdirectory the object is found in.
1880 pic_object="$xdir$pic_object"
1881
1882 if test "$prev" = dlfiles; then
1883 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1884 dlfiles="$dlfiles $pic_object"
1885 prev=
1886 continue
1887 else
1888 # If libtool objects are unsupported, then we need to preload.
1889 prev=dlprefiles
1890 fi
1891 fi
1892
1893 # CHECK ME: I think I busted this. -Ossama
1894 if test "$prev" = dlprefiles; then
1895 # Preload the old-style object.
1896 dlprefiles="$dlprefiles $pic_object"
1897 prev=
1898 fi
1899
1900 # A PIC object.
1901 libobjs="$libobjs $pic_object"
1902 arg="$pic_object"
1903 fi
1904
1905 # Non-PIC object.
1906 if test "$non_pic_object" != none; then
1907 # Prepend the subdirectory the object is found in.
1908 non_pic_object="$xdir$non_pic_object"
1909
1910 # A standard non-PIC object
1911 non_pic_objects="$non_pic_objects $non_pic_object"
1912 if test -z "$pic_object" || test "$pic_object" = none ; then
1913 arg="$non_pic_object"
1914 fi
1915 else
1916 # If the PIC object exists, use it instead.
1917 # $xdir was prepended to $pic_object above.
1918 non_pic_object="$pic_object"
1919 non_pic_objects="$non_pic_objects $non_pic_object"
1920 fi
1921 else
1922 # Only an error if not doing a dry-run.
1923 if test -z "$run"; then
1924 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1925 exit $EXIT_FAILURE
1926 else
1927 # Dry-run case.
1928
1929 # Extract subdirectory from the argument.
1930 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1931 if test "X$xdir" = "X$arg"; then
1932 xdir=
1933 else
1934 xdir="$xdir/"
1935 fi
1936
1937 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1938 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1939 libobjs="$libobjs $pic_object"
1940 non_pic_objects="$non_pic_objects $non_pic_object"
1941 fi
1942 fi
1943 ;;
1944
1945 *.$libext)
1946 # An archive.
1947 deplibs="$deplibs $arg"
1948 old_deplibs="$old_deplibs $arg"
1949 continue
1950 ;;
1951
1952 *.la)
1953 # A libtool-controlled library.
1954
1955 if test "$prev" = dlfiles; then
1956 # This library was specified with -dlopen.
1957 dlfiles="$dlfiles $arg"
1958 prev=
1959 elif test "$prev" = dlprefiles; then
1960 # The library was specified with -dlpreopen.
1961 dlprefiles="$dlprefiles $arg"
1962 prev=
1963 else
1964 deplibs="$deplibs $arg"
1965 fi
1966 continue
1967 ;;
1968
1969 # Some other compiler argument.
1970 *)
1971 # Unknown arguments in both finalize_command and compile_command need
1972 # to be aesthetically quoted because they are evaled later.
1973 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1974 case $arg in
1975 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1976 arg="\"$arg\""
1977 ;;
1978 esac
1979 ;;
1980 esac # arg
1981
1982 # Now actually substitute the argument into the commands.
1983 if test -n "$arg"; then
1984 compile_command="$compile_command $arg"
1985 finalize_command="$finalize_command $arg"
1986 fi
1987 done # argument parsing loop
1988
1989 if test -n "$prev"; then
1990 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
1991 $echo "$help" 1>&2
1992 exit $EXIT_FAILURE
1993 fi
1994
1995 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
1996 eval arg=\"$export_dynamic_flag_spec\"
1997 compile_command="$compile_command $arg"
1998 finalize_command="$finalize_command $arg"
1999 fi
2000
2001 oldlibs=
2002 # calculate the name of the file, without its directory
2003 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
2004 libobjs_save="$libobjs"
2005
2006 if test -n "$shlibpath_var"; then
2007 # get the directories listed in $shlibpath_var
2008 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
2009 else
2010 shlib_search_path=
2011 fi
2012 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
2013 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
2014
2015 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
2016 if test "X$output_objdir" = "X$output"; then
2017 output_objdir="$objdir"
2018 else
2019 output_objdir="$output_objdir/$objdir"
2020 fi
2021 # Create the object directory.
2022 if test ! -d "$output_objdir"; then
2023 $show "$mkdir $output_objdir"
2024 $run $mkdir $output_objdir
2025 exit_status=$?
2026 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
2027 exit $exit_status
2028 fi
2029 fi
2030
2031 # Determine the type of output
2032 case $output in
2033 "")
2034 $echo "$modename: you must specify an output file" 1>&2
2035 $echo "$help" 1>&2
2036 exit $EXIT_FAILURE
2037 ;;
2038 *.$libext) linkmode=oldlib ;;
2039 *.lo | *.$objext) linkmode=obj ;;
2040 *.la) linkmode=lib ;;
2041 *) linkmode=prog ;; # Anything else should be a program.
2042 esac
2043
2044 case $host in
2045 *cygwin* | *mingw* | *pw32*)
2046 # don't eliminate duplications in $postdeps and $predeps
2047 duplicate_compiler_generated_deps=yes
2048 ;;
2049 *)
2050 duplicate_compiler_generated_deps=$duplicate_deps
2051 ;;
2052 esac
2053 specialdeplibs=
2054
2055 libs=
2056 # Find all interdependent deplibs by searching for libraries
2057 # that are linked more than once (e.g. -la -lb -la)
2058 for deplib in $deplibs; do
2059 if test "X$duplicate_deps" = "Xyes" ; then
2060 case "$libs " in
2061 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2062 esac
2063 fi
2064 libs="$libs $deplib"
2065 done
2066
2067 if test "$linkmode" = lib; then
2068 libs="$predeps $libs $compiler_lib_search_path $postdeps"
2069
2070 # Compute libraries that are listed more than once in $predeps
2071 # $postdeps and mark them as special (i.e., whose duplicates are
2072 # not to be eliminated).
2073 pre_post_deps=
2074 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
2075 for pre_post_dep in $predeps $postdeps; do
2076 case "$pre_post_deps " in
2077 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
2078 esac
2079 pre_post_deps="$pre_post_deps $pre_post_dep"
2080 done
2081 fi
2082 pre_post_deps=
2083 fi
2084
2085 deplibs=
2086 newdependency_libs=
2087 newlib_search_path=
2088 need_relink=no # whether we're linking any uninstalled libtool libraries
2089 notinst_deplibs= # not-installed libtool libraries
2090 case $linkmode in
2091 lib)
2092 passes="conv link"
2093 for file in $dlfiles $dlprefiles; do
2094 case $file in
2095 *.la) ;;
2096 *)
2097 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2098 exit $EXIT_FAILURE
2099 ;;
2100 esac
2101 done
2102 ;;
2103 prog)
2104 compile_deplibs=
2105 finalize_deplibs=
2106 alldeplibs=no
2107 newdlfiles=
2108 newdlprefiles=
2109 passes="conv scan dlopen dlpreopen link"
2110 ;;
2111 *) passes="conv"
2112 ;;
2113 esac
2114 for pass in $passes; do
2115 if test "$linkmode,$pass" = "lib,link" ||
2116 test "$linkmode,$pass" = "prog,scan"; then
2117 libs="$deplibs"
2118 deplibs=
2119 fi
2120 if test "$linkmode" = prog; then
2121 case $pass in
2122 dlopen) libs="$dlfiles" ;;
2123 dlpreopen) libs="$dlprefiles" ;;
2124 link)
2125 libs="$deplibs %DEPLIBS%"
2126 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
2127 ;;
2128 esac
2129 fi
2130 if test "$pass" = dlopen; then
2131 # Collect dlpreopened libraries
2132 save_deplibs="$deplibs"
2133 deplibs=
2134 fi
2135 for deplib in $libs; do
2136 lib=
2137 found=no
2138 case $deplib in
2139 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
2140 if test "$linkmode,$pass" = "prog,link"; then
2141 compile_deplibs="$deplib $compile_deplibs"
2142 finalize_deplibs="$deplib $finalize_deplibs"
2143 else
2144 compiler_flags="$compiler_flags $deplib"
2145 fi
2146 continue
2147 ;;
2148 -l*)
2149 if test "$linkmode" != lib && test "$linkmode" != prog; then
2150 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
2151 continue
2152 fi
2153 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2154 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
2155 for search_ext in .la $std_shrext .so .a; do
2156 # Search the libtool library
2157 lib="$searchdir/lib${name}${search_ext}"
2158 if test -f "$lib"; then
2159 if test "$search_ext" = ".la"; then
2160 found=yes
2161 else
2162 found=no
2163 fi
2164 break 2
2165 fi
2166 done
2167 done
2168 if test "$found" != yes; then
2169 # deplib doesn't seem to be a libtool library
2170 if test "$linkmode,$pass" = "prog,link"; then
2171 compile_deplibs="$deplib $compile_deplibs"
2172 finalize_deplibs="$deplib $finalize_deplibs"
2173 else
2174 deplibs="$deplib $deplibs"
2175 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2176 fi
2177 continue
2178 else # deplib is a libtool library
2179 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
2180 # We need to do some special things here, and not later.
2181 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
2182 case " $predeps $postdeps " in
2183 *" $deplib "*)
2184 if (${SED} -e '2q' $lib |
2185 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
2186 library_names=
2187 old_library=
2188 case $lib in
2189 */* | *\\*) . $lib ;;
2190 *) . ./$lib ;;
2191 esac
2192 for l in $old_library $library_names; do
2193 ll="$l"
2194 done
2195 if test "X$ll" = "X$old_library" ; then # only static version available
2196 found=no
2197 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2198 test "X$ladir" = "X$lib" && ladir="."
2199 lib=$ladir/$old_library
2200 if test "$linkmode,$pass" = "prog,link"; then
2201 compile_deplibs="$deplib $compile_deplibs"
2202 finalize_deplibs="$deplib $finalize_deplibs"
2203 else
2204 deplibs="$deplib $deplibs"
2205 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2206 fi
2207 continue
2208 fi
2209 fi
2210 ;;
2211 *) ;;
2212 esac
2213 fi
2214 fi
2215 ;; # -l
2216 -L*)
2217 case $linkmode in
2218 lib)
2219 deplibs="$deplib $deplibs"
2220 test "$pass" = conv && continue
2221 newdependency_libs="$deplib $newdependency_libs"
2222 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2223 ;;
2224 prog)
2225 if test "$pass" = conv; then
2226 deplibs="$deplib $deplibs"
2227 continue
2228 fi
2229 if test "$pass" = scan; then
2230 deplibs="$deplib $deplibs"
2231 else
2232 compile_deplibs="$deplib $compile_deplibs"
2233 finalize_deplibs="$deplib $finalize_deplibs"
2234 fi
2235 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2236 ;;
2237 *)
2238 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
2239 ;;
2240 esac # linkmode
2241 continue
2242 ;; # -L
2243 -R*)
2244 if test "$pass" = link; then
2245 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
2246 # Make sure the xrpath contains only unique directories.
2247 case "$xrpath " in
2248 *" $dir "*) ;;
2249 *) xrpath="$xrpath $dir" ;;
2250 esac
2251 fi
2252 deplibs="$deplib $deplibs"
2253 continue
2254 ;;
2255 *.la) lib="$deplib" ;;
2256 *.$libext)
2257 if test "$pass" = conv; then
2258 deplibs="$deplib $deplibs"
2259 continue
2260 fi
2261 case $linkmode in
2262 lib)
2263 valid_a_lib=no
2264 case $deplibs_check_method in
2265 match_pattern*)
2266 set dummy $deplibs_check_method
2267 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2268 if eval $echo \"$deplib\" 2>/dev/null \
2269 | $SED 10q \
2270 | $EGREP "$match_pattern_regex" > /dev/null; then
2271 valid_a_lib=yes
2272 fi
2273 ;;
2274 pass_all)
2275 valid_a_lib=yes
2276 ;;
2277 esac
2278 if test "$valid_a_lib" != yes; then
2279 $echo
2280 $echo "*** Warning: Trying to link with static lib archive $deplib."
2281 $echo "*** I have the capability to make that library automatically link in when"
2282 $echo "*** you link to this library. But I can only do this if you have a"
2283 $echo "*** shared version of the library, which you do not appear to have"
2284 $echo "*** because the file extensions .$libext of this argument makes me believe"
2285 $echo "*** that it is just a static archive that I should not used here."
2286 else
2287 $echo
2288 $echo "*** Warning: Linking the shared library $output against the"
2289 $echo "*** static library $deplib is not portable!"
2290 deplibs="$deplib $deplibs"
2291 fi
2292 continue
2293 ;;
2294 prog)
2295 if test "$pass" != link; then
2296 deplibs="$deplib $deplibs"
2297 else
2298 compile_deplibs="$deplib $compile_deplibs"
2299 finalize_deplibs="$deplib $finalize_deplibs"
2300 fi
2301 continue
2302 ;;
2303 esac # linkmode
2304 ;; # *.$libext
2305 *.lo | *.$objext)
2306 if test "$pass" = conv; then
2307 deplibs="$deplib $deplibs"
2308 elif test "$linkmode" = prog; then
2309 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
2310 # If there is no dlopen support or we're linking statically,
2311 # we need to preload.
2312 newdlprefiles="$newdlprefiles $deplib"
2313 compile_deplibs="$deplib $compile_deplibs"
2314 finalize_deplibs="$deplib $finalize_deplibs"
2315 else
2316 newdlfiles="$newdlfiles $deplib"
2317 fi
2318 fi
2319 continue
2320 ;;
2321 %DEPLIBS%)
2322 alldeplibs=yes
2323 continue
2324 ;;
2325 esac # case $deplib
2326 if test "$found" = yes || test -f "$lib"; then :
2327 else
2328 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2329 exit $EXIT_FAILURE
2330 fi
2331
2332 # Check to see that this really is a libtool archive.
2333 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2334 else
2335 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2336 exit $EXIT_FAILURE
2337 fi
2338
2339 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2340 test "X$ladir" = "X$lib" && ladir="."
2341
2342 dlname=
2343 dlopen=
2344 dlpreopen=
2345 libdir=
2346 library_names=
2347 old_library=
2348 # If the library was installed with an old release of libtool,
2349 # it will not redefine variables installed, or shouldnotlink
2350 installed=yes
2351 shouldnotlink=no
2352 avoidtemprpath=
2353
2354
2355 # Read the .la file
2356 case $lib in
2357 */* | *\\*) . $lib ;;
2358 *) . ./$lib ;;
2359 esac
2360
2361 if test "$linkmode,$pass" = "lib,link" ||
2362 test "$linkmode,$pass" = "prog,scan" ||
2363 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
2364 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
2365 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
2366 fi
2367
2368 if test "$pass" = conv; then
2369 # Only check for convenience libraries
2370 deplibs="$lib $deplibs"
2371 if test -z "$libdir"; then
2372 if test -z "$old_library"; then
2373 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2374 exit $EXIT_FAILURE
2375 fi
2376 # It is a libtool convenience library, so add in its objects.
2377 convenience="$convenience $ladir/$objdir/$old_library"
2378 old_convenience="$old_convenience $ladir/$objdir/$old_library"
2379 tmp_libs=
2380 for deplib in $dependency_libs; do
2381 deplibs="$deplib $deplibs"
2382 if test "X$duplicate_deps" = "Xyes" ; then
2383 case "$tmp_libs " in
2384 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2385 esac
2386 fi
2387 tmp_libs="$tmp_libs $deplib"
2388 done
2389 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2390 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2391 exit $EXIT_FAILURE
2392 fi
2393 continue
2394 fi # $pass = conv
2395
2396
2397 # Get the name of the library we link against.
2398 linklib=
2399 for l in $old_library $library_names; do
2400 linklib="$l"
2401 done
2402 if test -z "$linklib"; then
2403 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2404 exit $EXIT_FAILURE
2405 fi
2406
2407 # This library was specified with -dlopen.
2408 if test "$pass" = dlopen; then
2409 if test -z "$libdir"; then
2410 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2411 exit $EXIT_FAILURE
2412 fi
2413 if test -z "$dlname" ||
2414 test "$dlopen_support" != yes ||
2415 test "$build_libtool_libs" = no; then
2416 # If there is no dlname, no dlopen support or we're linking
2417 # statically, we need to preload. We also need to preload any
2418 # dependent libraries so libltdl's deplib preloader doesn't
2419 # bomb out in the load deplibs phase.
2420 dlprefiles="$dlprefiles $lib $dependency_libs"
2421 else
2422 newdlfiles="$newdlfiles $lib"
2423 fi
2424 continue
2425 fi # $pass = dlopen
2426
2427 # We need an absolute path.
2428 case $ladir in
2429 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
2430 *)
2431 abs_ladir=`cd "$ladir" && pwd`
2432 if test -z "$abs_ladir"; then
2433 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2434 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
2435 abs_ladir="$ladir"
2436 fi
2437 ;;
2438 esac
2439 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
2440
2441 # Find the relevant object directory and library name.
2442 if test "X$installed" = Xyes; then
2443 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2444 $echo "$modename: warning: library \`$lib' was moved." 1>&2
2445 dir="$ladir"
2446 absdir="$abs_ladir"
2447 libdir="$abs_ladir"
2448 else
2449 dir="$libdir"
2450 absdir="$libdir"
2451 fi
2452 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
2453 else
2454 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2455 dir="$ladir"
2456 absdir="$abs_ladir"
2457 # Remove this search path later
2458 notinst_path="$notinst_path $abs_ladir"
2459 else
2460 dir="$ladir/$objdir"
2461 absdir="$abs_ladir/$objdir"
2462 # Remove this search path later
2463 notinst_path="$notinst_path $abs_ladir"
2464 fi
2465 fi # $installed = yes
2466 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2467
2468 # This library was specified with -dlpreopen.
2469 if test "$pass" = dlpreopen; then
2470 if test -z "$libdir"; then
2471 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2472 exit $EXIT_FAILURE
2473 fi
2474 # Prefer using a static library (so that no silly _DYNAMIC symbols
2475 # are required to link).
2476 if test -n "$old_library"; then
2477 newdlprefiles="$newdlprefiles $dir/$old_library"
2478 # Otherwise, use the dlname, so that lt_dlopen finds it.
2479 elif test -n "$dlname"; then
2480 newdlprefiles="$newdlprefiles $dir/$dlname"
2481 else
2482 newdlprefiles="$newdlprefiles $dir/$linklib"
2483 fi
2484 fi # $pass = dlpreopen
2485
2486 if test -z "$libdir"; then
2487 # Link the convenience library
2488 if test "$linkmode" = lib; then
2489 deplibs="$dir/$old_library $deplibs"
2490 elif test "$linkmode,$pass" = "prog,link"; then
2491 compile_deplibs="$dir/$old_library $compile_deplibs"
2492 finalize_deplibs="$dir/$old_library $finalize_deplibs"
2493 else
2494 deplibs="$lib $deplibs" # used for prog,scan pass
2495 fi
2496 continue
2497 fi
2498
2499
2500 if test "$linkmode" = prog && test "$pass" != link; then
2501 newlib_search_path="$newlib_search_path $ladir"
2502 deplibs="$lib $deplibs"
2503
2504 linkalldeplibs=no
2505 if test "$link_all_deplibs" != no || test -z "$library_names" ||
2506 test "$build_libtool_libs" = no; then
2507 linkalldeplibs=yes
2508 fi
2509
2510 tmp_libs=
2511 for deplib in $dependency_libs; do
2512 case $deplib in
2513 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
2514 esac
2515 # Need to link against all dependency_libs?
2516 if test "$linkalldeplibs" = yes; then
2517 deplibs="$deplib $deplibs"
2518 else
2519 # Need to hardcode shared library paths
2520 # or/and link against static libraries
2521 newdependency_libs="$deplib $newdependency_libs"
2522 fi
2523 if test "X$duplicate_deps" = "Xyes" ; then
2524 case "$tmp_libs " in
2525 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2526 esac
2527 fi
2528 tmp_libs="$tmp_libs $deplib"
2529 done # for deplib
2530 continue
2531 fi # $linkmode = prog...
2532
2533 if test "$linkmode,$pass" = "prog,link"; then
2534 if test -n "$library_names" &&
2535 { { test "$prefer_static_libs" = no ||
2536 test "$prefer_static_libs,$installed" = "built,yes"; } ||
2537 test -z "$old_library"; }; then
2538 # We need to hardcode the library path
2539 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2540 # Make sure the rpath contains only unique directories.
2541 case "$temp_rpath " in
2542 *" $dir "*) ;;
2543 *" $absdir "*) ;;
2544 *) temp_rpath="$temp_rpath $absdir" ;;
2545 esac
2546 fi
2547
2548 # Hardcode the library path.
2549 # Skip directories that are in the system default run-time
2550 # search path.
2551 case " $sys_lib_dlsearch_path " in
2552 *" $absdir "*) ;;
2553 *)
2554 case "$compile_rpath " in
2555 *" $absdir "*) ;;
2556 *) compile_rpath="$compile_rpath $absdir"
2557 esac
2558 ;;
2559 esac
2560 case " $sys_lib_dlsearch_path " in
2561 *" $libdir "*) ;;
2562 *)
2563 case "$finalize_rpath " in
2564 *" $libdir "*) ;;
2565 *) finalize_rpath="$finalize_rpath $libdir"
2566 esac
2567 ;;
2568 esac
2569 fi # $linkmode,$pass = prog,link...
2570
2571 if test "$alldeplibs" = yes &&
2572 { test "$deplibs_check_method" = pass_all ||
2573 { test "$build_libtool_libs" = yes &&
2574 test -n "$library_names"; }; }; then
2575 # We only need to search for static libraries
2576 continue
2577 fi
2578 fi
2579
2580 link_static=no # Whether the deplib will be linked statically
2581 use_static_libs=$prefer_static_libs
2582 if test "$use_static_libs" = built && test "$installed" = yes ; then
2583 use_static_libs=no
2584 fi
2585 if test -n "$library_names" &&
2586 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2587 if test "$installed" = no; then
2588 notinst_deplibs="$notinst_deplibs $lib"
2589 need_relink=yes
2590 fi
2591 # This is a shared library
2592
2593 # Warn about portability, can't link against -module's on
2594 # some systems (darwin)
2595 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2596 $echo
2597 if test "$linkmode" = prog; then
2598 $echo "*** Warning: Linking the executable $output against the loadable module"
2599 else
2600 $echo "*** Warning: Linking the shared library $output against the loadable module"
2601 fi
2602 $echo "*** $linklib is not portable!"
2603 fi
2604 if test "$linkmode" = lib &&
2605 test "$hardcode_into_libs" = yes; then
2606 # Hardcode the library path.
2607 # Skip directories that are in the system default run-time
2608 # search path.
2609 case " $sys_lib_dlsearch_path " in
2610 *" $absdir "*) ;;
2611 *)
2612 case "$compile_rpath " in
2613 *" $absdir "*) ;;
2614 *) compile_rpath="$compile_rpath $absdir"
2615 esac
2616 ;;
2617 esac
2618 case " $sys_lib_dlsearch_path " in
2619 *" $libdir "*) ;;
2620 *)
2621 case "$finalize_rpath " in
2622 *" $libdir "*) ;;
2623 *) finalize_rpath="$finalize_rpath $libdir"
2624 esac
2625 ;;
2626 esac
2627 fi
2628
2629 if test -n "$old_archive_from_expsyms_cmds"; then
2630 # figure out the soname
2631 set dummy $library_names
2632 realname="$2"
2633 shift; shift
2634 libname=`eval \\$echo \"$libname_spec\"`
2635 # use dlname if we got it. it's perfectly good, no?
2636 if test -n "$dlname"; then
2637 soname="$dlname"
2638 elif test -n "$soname_spec"; then
2639 # bleh windows
2640 case $host in
2641 *cygwin* | mingw*)
2642 major=`expr $current - $age`
2643 versuffix="-$major"
2644 ;;
2645 esac
2646 eval soname=\"$soname_spec\"
2647 else
2648 soname="$realname"
2649 fi
2650
2651 # Make a new name for the extract_expsyms_cmds to use
2652 soroot="$soname"
2653 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2654 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
2655
2656 # If the library has no export list, then create one now
2657 if test -f "$output_objdir/$soname-def"; then :
2658 else
2659 $show "extracting exported symbol list from \`$soname'"
2660 save_ifs="$IFS"; IFS='~'
2661 cmds=$extract_expsyms_cmds
2662 for cmd in $cmds; do
2663 IFS="$save_ifs"
2664 eval cmd=\"$cmd\"
2665 $show "$cmd"
2666 $run eval "$cmd" || exit $?
2667 done
2668 IFS="$save_ifs"
2669 fi
2670
2671 # Create $newlib
2672 if test -f "$output_objdir/$newlib"; then :; else
2673 $show "generating import library for \`$soname'"
2674 save_ifs="$IFS"; IFS='~'
2675 cmds=$old_archive_from_expsyms_cmds
2676 for cmd in $cmds; do
2677 IFS="$save_ifs"
2678 eval cmd=\"$cmd\"
2679 $show "$cmd"
2680 $run eval "$cmd" || exit $?
2681 done
2682 IFS="$save_ifs"
2683 fi
2684 # make sure the library variables are pointing to the new library
2685 dir=$output_objdir
2686 linklib=$newlib
2687 fi # test -n "$old_archive_from_expsyms_cmds"
2688
2689 if test "$linkmode" = prog || test "$mode" != relink; then
2690 add_shlibpath=
2691 add_dir=
2692 add=
2693 lib_linked=yes
2694 case $hardcode_action in
2695 immediate | unsupported)
2696 if test "$hardcode_direct" = no; then
2697 add="$dir/$linklib"
2698 case $host in
2699 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2700 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2701 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2702 *-*-unixware7*) add_dir="-L$dir" ;;
2703 *-*-darwin* )
2704 # if the lib is a module then we can not link against
2705 # it, someone is ignoring the new warnings I added
2706 if /usr/bin/file -L $add 2> /dev/null |
2707 $EGREP ": [^:]* bundle" >/dev/null ; then
2708 $echo "** Warning, lib $linklib is a module, not a shared library"
2709 if test -z "$old_library" ; then
2710 $echo
2711 $echo "** And there doesn't seem to be a static archive available"
2712 $echo "** The link will probably fail, sorry"
2713 else
2714 add="$dir/$old_library"
2715 fi
2716 fi
2717 esac
2718 elif test "$hardcode_minus_L" = no; then
2719 case $host in
2720 *-*-sunos*) add_shlibpath="$dir" ;;
2721 esac
2722 add_dir="-L$dir"
2723 add="-l$name"
2724 elif test "$hardcode_shlibpath_var" = no; then
2725 add_shlibpath="$dir"
2726 add="-l$name"
2727 else
2728 lib_linked=no
2729 fi
2730 ;;
2731 relink)
2732 if test "$hardcode_direct" = yes; then
2733 add="$dir/$linklib"
2734 elif test "$hardcode_minus_L" = yes; then
2735 add_dir="-L$dir"
2736 # Try looking first in the location we're being installed to.
2737 if test -n "$inst_prefix_dir"; then
2738 case $libdir in
2739 [\\/]*)
2740 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2741 ;;
2742 esac
2743 fi
2744 add="-l$name"
2745 elif test "$hardcode_shlibpath_var" = yes; then
2746 add_shlibpath="$dir"
2747 add="-l$name"
2748 else
2749 lib_linked=no
2750 fi
2751 ;;
2752 *) lib_linked=no ;;
2753 esac
2754
2755 if test "$lib_linked" != yes; then
2756 $echo "$modename: configuration error: unsupported hardcode properties"
2757 exit $EXIT_FAILURE
2758 fi
2759
2760 if test -n "$add_shlibpath"; then
2761 case :$compile_shlibpath: in
2762 *":$add_shlibpath:"*) ;;
2763 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
2764 esac
2765 fi
2766 if test "$linkmode" = prog; then
2767 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
2768 test -n "$add" && compile_deplibs="$add $compile_deplibs"
2769 else
2770 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2771 test -n "$add" && deplibs="$add $deplibs"
2772 if test "$hardcode_direct" != yes && \
2773 test "$hardcode_minus_L" != yes && \
2774 test "$hardcode_shlibpath_var" = yes; then
2775 case :$finalize_shlibpath: in
2776 *":$libdir:"*) ;;
2777 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2778 esac
2779 fi
2780 fi
2781 fi
2782
2783 if test "$linkmode" = prog || test "$mode" = relink; then
2784 add_shlibpath=
2785 add_dir=
2786 add=
2787 # Finalize command for both is simple: just hardcode it.
2788 if test "$hardcode_direct" = yes; then
2789 add="$libdir/$linklib"
2790 elif test "$hardcode_minus_L" = yes; then
2791 add_dir="-L$libdir"
2792 add="-l$name"
2793 elif test "$hardcode_shlibpath_var" = yes; then
2794 case :$finalize_shlibpath: in
2795 *":$libdir:"*) ;;
2796 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2797 esac
2798 add="-l$name"
2799 elif test "$hardcode_automatic" = yes; then
2800 if test -n "$inst_prefix_dir" &&
2801 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2802 add="$inst_prefix_dir$libdir/$linklib"
2803 else
2804 add="$libdir/$linklib"
2805 fi
2806 else
2807 # We cannot seem to hardcode it, guess we'll fake it.
2808 add_dir="-L$libdir"
2809 # Try looking first in the location we're being installed to.
2810 if test -n "$inst_prefix_dir"; then
2811 case $libdir in
2812 [\\/]*)
2813 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2814 ;;
2815 esac
2816 fi
2817 add="-l$name"
2818 fi
2819
2820 if test "$linkmode" = prog; then
2821 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
2822 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
2823 else
2824 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2825 test -n "$add" && deplibs="$add $deplibs"
2826 fi
2827 fi
2828 elif test "$linkmode" = prog; then
2829 # Here we assume that one of hardcode_direct or hardcode_minus_L
2830 # is not unsupported. This is valid on all known static and
2831 # shared platforms.
2832 if test "$hardcode_direct" != unsupported; then
2833 test -n "$old_library" && linklib="$old_library"
2834 compile_deplibs="$dir/$linklib $compile_deplibs"
2835 finalize_deplibs="$dir/$linklib $finalize_deplibs"
2836 else
2837 compile_deplibs="-l$name -L$dir $compile_deplibs"
2838 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
2839 fi
2840 elif test "$build_libtool_libs" = yes; then
2841 # Not a shared library
2842 if test "$deplibs_check_method" != pass_all; then
2843 # We're trying link a shared library against a static one
2844 # but the system doesn't support it.
2845
2846 # Just print a warning and add the library to dependency_libs so
2847 # that the program can be linked against the static library.
2848 $echo
2849 $echo "*** Warning: This system can not link to static lib archive $lib."
2850 $echo "*** I have the capability to make that library automatically link in when"
2851 $echo "*** you link to this library. But I can only do this if you have a"
2852 $echo "*** shared version of the library, which you do not appear to have."
2853 if test "$module" = yes; then
2854 $echo "*** But as you try to build a module library, libtool will still create "
2855 $echo "*** a static module, that should work as long as the dlopening application"
2856 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
2857 if test -z "$global_symbol_pipe"; then
2858 $echo
2859 $echo "*** However, this would only work if libtool was able to extract symbol"
2860 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2861 $echo "*** not find such a program. So, this module is probably useless."
2862 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
2863 fi
2864 if test "$build_old_libs" = no; then
2865 build_libtool_libs=module
2866 build_old_libs=yes
2867 else
2868 build_libtool_libs=no
2869 fi
2870 fi
2871 else
2872 deplibs="$dir/$old_library $deplibs"
2873 link_static=yes
2874 fi
2875 fi # link shared/static library?
2876
2877 if test "$linkmode" = lib; then
2878 if test -n "$dependency_libs" &&
2879 { test "$hardcode_into_libs" != yes ||
2880 test "$build_old_libs" = yes ||
2881 test "$link_static" = yes; }; then
2882 # Extract -R from dependency_libs
2883 temp_deplibs=
2884 for libdir in $dependency_libs; do
2885 case $libdir in
2886 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
2887 case " $xrpath " in
2888 *" $temp_xrpath "*) ;;
2889 *) xrpath="$xrpath $temp_xrpath";;
2890 esac;;
2891 *) temp_deplibs="$temp_deplibs $libdir";;
2892 esac
2893 done
2894 dependency_libs="$temp_deplibs"
2895 fi
2896
2897 newlib_search_path="$newlib_search_path $absdir"
2898 # Link against this library
2899 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
2900 # ... and its dependency_libs
2901 tmp_libs=
2902 for deplib in $dependency_libs; do
2903 newdependency_libs="$deplib $newdependency_libs"
2904 if test "X$duplicate_deps" = "Xyes" ; then
2905 case "$tmp_libs " in
2906 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2907 esac
2908 fi
2909 tmp_libs="$tmp_libs $deplib"
2910 done
2911
2912 if test "$link_all_deplibs" != no; then
2913 # Add the search paths of all dependency libraries
2914 for deplib in $dependency_libs; do
2915 case $deplib in
2916 -L*) path="$deplib" ;;
2917 *.la)
2918 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2919 test "X$dir" = "X$deplib" && dir="."
2920 # We need an absolute path.
2921 case $dir in
2922 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
2923 *)
2924 absdir=`cd "$dir" && pwd`
2925 if test -z "$absdir"; then
2926 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
2927 absdir="$dir"
2928 fi
2929 ;;
2930 esac
2931 if grep "^installed=no" $deplib > /dev/null; then
2932 path="$absdir/$objdir"
2933 else
2934 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2935 if test -z "$libdir"; then
2936 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2937 exit $EXIT_FAILURE
2938 fi
2939 if test "$absdir" != "$libdir"; then
2940 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2941 fi
2942 path="$absdir"
2943 fi
2944 depdepl=
2945 case $host in
2946 *-*-darwin*)
2947 # we do not want to link against static libs,
2948 # but need to link against shared
2949 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2950 if test -n "$deplibrary_names" ; then
2951 for tmp in $deplibrary_names ; do
2952 depdepl=$tmp
2953 done
2954 if test -f "$path/$depdepl" ; then
2955 depdepl="$path/$depdepl"
2956 fi
2957 # do not add paths which are already there
2958 case " $newlib_search_path " in
2959 *" $path "*) ;;
2960 *) newlib_search_path="$newlib_search_path $path";;
2961 esac
2962 fi
2963 path=""
2964 ;;
2965 *)
2966 path="-L$path"
2967 ;;
2968 esac
2969 ;;
2970 -l*)
2971 case $host in
2972 *-*-darwin*)
2973 # Again, we only want to link against shared libraries
2974 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2975 for tmp in $newlib_search_path ; do
2976 if test -f "$tmp/lib$tmp_libs.dylib" ; then
2977 eval depdepl="$tmp/lib$tmp_libs.dylib"
2978 break
2979 fi
2980 done
2981 path=""
2982 ;;
2983 *) continue ;;
2984 esac
2985 ;;
2986 *) continue ;;
2987 esac
2988 case " $deplibs " in
2989 *" $path "*) ;;
2990 *) deplibs="$path $deplibs" ;;
2991 esac
2992 case " $deplibs " in
2993 *" $depdepl "*) ;;
2994 *) deplibs="$depdepl $deplibs" ;;
2995 esac
2996 done
2997 fi # link_all_deplibs != no
2998 fi # linkmode = lib
2999 done # for deplib in $libs
3000 dependency_libs="$newdependency_libs"
3001 if test "$pass" = dlpreopen; then
3002 # Link the dlpreopened libraries before other libraries
3003 for deplib in $save_deplibs; do
3004 deplibs="$deplib $deplibs"
3005 done
3006 fi
3007 if test "$pass" != dlopen; then
3008 if test "$pass" != conv; then
3009 # Make sure lib_search_path contains only unique directories.
3010 lib_search_path=
3011 for dir in $newlib_search_path; do
3012 case "$lib_search_path " in
3013 *" $dir "*) ;;
3014 *) lib_search_path="$lib_search_path $dir" ;;
3015 esac
3016 done
3017 newlib_search_path=
3018 fi
3019
3020 if test "$linkmode,$pass" != "prog,link"; then
3021 vars="deplibs"
3022 else
3023 vars="compile_deplibs finalize_deplibs"
3024 fi
3025 for var in $vars dependency_libs; do
3026 # Add libraries to $var in reverse order
3027 eval tmp_libs=\"\$$var\"
3028 new_libs=
3029 for deplib in $tmp_libs; do
3030 # FIXME: Pedantically, this is the right thing to do, so
3031 # that some nasty dependency loop isn't accidentally
3032 # broken:
3033 #new_libs="$deplib $new_libs"
3034 # Pragmatically, this seems to cause very few problems in
3035 # practice:
3036 case $deplib in
3037 -L*) new_libs="$deplib $new_libs" ;;
3038 -R*) ;;
3039 *)
3040 # And here is the reason: when a library appears more
3041 # than once as an explicit dependence of a library, or
3042 # is implicitly linked in more than once by the
3043 # compiler, it is considered special, and multiple
3044 # occurrences thereof are not removed. Compare this
3045 # with having the same library being listed as a
3046 # dependency of multiple other libraries: in this case,
3047 # we know (pedantically, we assume) the library does not
3048 # need to be listed more than once, so we keep only the
3049 # last copy. This is not always right, but it is rare
3050 # enough that we require users that really mean to play
3051 # such unportable linking tricks to link the library
3052 # using -Wl,-lname, so that libtool does not consider it
3053 # for duplicate removal.
3054 case " $specialdeplibs " in
3055 *" $deplib "*) new_libs="$deplib $new_libs" ;;
3056 *)
3057 case " $new_libs " in
3058 *" $deplib "*) ;;
3059 *) new_libs="$deplib $new_libs" ;;
3060 esac
3061 ;;
3062 esac
3063 ;;
3064 esac
3065 done
3066 tmp_libs=
3067 for deplib in $new_libs; do
3068 case $deplib in
3069 -L*)
3070 case " $tmp_libs " in
3071 *" $deplib "*) ;;
3072 *) tmp_libs="$tmp_libs $deplib" ;;
3073 esac
3074 ;;
3075 *) tmp_libs="$tmp_libs $deplib" ;;
3076 esac
3077 done
3078 eval $var=\"$tmp_libs\"
3079 done # for var
3080 fi
3081 # Last step: remove runtime libs from dependency_libs
3082 # (they stay in deplibs)
3083 tmp_libs=
3084 for i in $dependency_libs ; do
3085 case " $predeps $postdeps $compiler_lib_search_path " in
3086 *" $i "*)
3087 i=""
3088 ;;
3089 esac
3090 if test -n "$i" ; then
3091 tmp_libs="$tmp_libs $i"
3092 fi
3093 done
3094 dependency_libs=$tmp_libs
3095 done # for pass
3096 if test "$linkmode" = prog; then
3097 dlfiles="$newdlfiles"
3098 dlprefiles="$newdlprefiles"
3099 fi
3100
3101 case $linkmode in
3102 oldlib)
3103 if test -n "$deplibs"; then
3104 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
3105 fi
3106
3107 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3108 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3109 fi
3110
3111 if test -n "$rpath"; then
3112 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
3113 fi
3114
3115 if test -n "$xrpath"; then
3116 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
3117 fi
3118
3119 if test -n "$vinfo"; then
3120 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
3121 fi
3122
3123 if test -n "$release"; then
3124 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
3125 fi
3126
3127 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
3128 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
3129 fi
3130
3131 # Now set the variables for building old libraries.
3132 build_libtool_libs=no
3133 oldlibs="$output"
3134 objs="$objs$old_deplibs"
3135 ;;
3136
3137 lib)
3138 # Make sure we only generate libraries of the form `libNAME.la'.
3139 case $outputname in
3140 lib*)
3141 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
3142 eval shared_ext=\"$shrext_cmds\"
3143 eval libname=\"$libname_spec\"
3144 ;;
3145 *)
3146 if test "$module" = no; then
3147 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3148 $echo "$help" 1>&2
3149 exit $EXIT_FAILURE
3150 fi
3151 if test "$need_lib_prefix" != no; then
3152 # Add the "lib" prefix for modules if required
3153 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3154 eval shared_ext=\"$shrext_cmds\"
3155 eval libname=\"$libname_spec\"
3156 else
3157 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3158 fi
3159 ;;
3160 esac
3161
3162 if test -n "$objs"; then
3163 if test "$deplibs_check_method" != pass_all; then
3164 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3165 exit $EXIT_FAILURE
3166 else
3167 $echo
3168 $echo "*** Warning: Linking the shared library $output against the non-libtool"
3169 $echo "*** objects $objs is not portable!"
3170 libobjs="$libobjs $objs"
3171 fi
3172 fi
3173
3174 if test "$dlself" != no; then
3175 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
3176 fi
3177
3178 set dummy $rpath
3179 if test "$#" -gt 2; then
3180 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
3181 fi
3182 install_libdir="$2"
3183
3184 oldlibs=
3185 if test -z "$rpath"; then
3186 if test "$build_libtool_libs" = yes; then
3187 # Building a libtool convenience library.
3188 # Some compilers have problems with a `.al' extension so
3189 # convenience libraries should have the same extension an
3190 # archive normally would.
3191 oldlibs="$output_objdir/$libname.$libext $oldlibs"
3192 build_libtool_libs=convenience
3193 build_old_libs=yes
3194 fi
3195
3196 if test -n "$vinfo"; then
3197 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
3198 fi
3199
3200 if test -n "$release"; then
3201 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
3202 fi
3203 else
3204
3205 # Parse the version information argument.
3206 save_ifs="$IFS"; IFS=':'
3207 set dummy $vinfo 0 0 0
3208 IFS="$save_ifs"
3209
3210 if test -n "$8"; then
3211 $echo "$modename: too many parameters to \`-version-info'" 1>&2
3212 $echo "$help" 1>&2
3213 exit $EXIT_FAILURE
3214 fi
3215
3216 # convert absolute version numbers to libtool ages
3217 # this retains compatibility with .la files and attempts
3218 # to make the code below a bit more comprehensible
3219
3220 case $vinfo_number in
3221 yes)
3222 number_major="$2"
3223 number_minor="$3"
3224 number_revision="$4"
3225 #
3226 # There are really only two kinds -- those that
3227 # use the current revision as the major version
3228 # and those that subtract age and use age as
3229 # a minor version. But, then there is irix
3230 # which has an extra 1 added just for fun
3231 #
3232 case $version_type in
3233 darwin|linux|osf|windows|none)
3234 current=`expr $number_major + $number_minor`
3235 age="$number_minor"
3236 revision="$number_revision"
3237 ;;
3238 freebsd-aout|freebsd-elf|sunos)
3239 current="$number_major"
3240 revision="$number_minor"
3241 age="0"
3242 ;;
3243 irix|nonstopux)
3244 current=`expr $number_major + $number_minor`
3245 age="$number_minor"
3246 revision="$number_minor"
3247 lt_irix_increment=no
3248 ;;
3249 *)
3250 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3251 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3252 exit $EXIT_FAILURE
3253 ;;
3254 esac
3255 ;;
3256 no)
3257 current="$2"
3258 revision="$3"
3259 age="$4"
3260 ;;
3261 esac
3262
3263 # Check that each of the things are valid numbers.
3264 case $current in
3265 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]) ;;
3266 *)
3267 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
3268 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3269 exit $EXIT_FAILURE
3270 ;;
3271 esac
3272
3273 case $revision in
3274 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]) ;;
3275 *)
3276 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
3277 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3278 exit $EXIT_FAILURE
3279 ;;
3280 esac
3281
3282 case $age in
3283 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]) ;;
3284 *)
3285 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
3286 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3287 exit $EXIT_FAILURE
3288 ;;
3289 esac
3290
3291 if test "$age" -gt "$current"; then
3292 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3293 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3294 exit $EXIT_FAILURE
3295 fi
3296
3297 # Calculate the version variables.
3298 major=
3299 versuffix=
3300 verstring=
3301 case $version_type in
3302 none) ;;
3303
3304 darwin)
3305 # Like Linux, but with the current version available in
3306 # verstring for coding it into the library header
3307 major=.`expr $current - $age`
3308 versuffix="$major.$age.$revision"
3309 # Darwin ld doesn't like 0 for these options...
3310 minor_current=`expr $current + 1`
3311 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3312 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
3313 ;;
3314
3315 freebsd-aout)
3316 major=".$current"
3317 versuffix=".$current.$revision";
3318 ;;
3319
3320 freebsd-elf)
3321 major=".$current"
3322 versuffix=".$current";
3323 ;;
3324
3325 irix | nonstopux)
3326 if test "X$lt_irix_increment" = "Xno"; then
3327 major=`expr $current - $age`
3328 else
3329 major=`expr $current - $age + 1`
3330 fi
3331 case $version_type in
3332 nonstopux) verstring_prefix=nonstopux ;;
3333 *) verstring_prefix=sgi ;;
3334 esac
3335 verstring="$verstring_prefix$major.$revision"
3336
3337 # Add in all the interfaces that we are compatible with.
3338 loop=$revision
3339 while test "$loop" -ne 0; do
3340 iface=`expr $revision - $loop`
3341 loop=`expr $loop - 1`
3342 verstring="$verstring_prefix$major.$iface:$verstring"
3343 done
3344
3345 # Before this point, $major must not contain `.'.
3346 major=.$major
3347 versuffix="$major.$revision"
3348 ;;
3349
3350 linux)
3351 major=.`expr $current - $age`
3352 versuffix="$major.$age.$revision"
3353 ;;
3354
3355 osf)
3356 major=.`expr $current - $age`
3357 versuffix=".$current.$age.$revision"
3358 verstring="$current.$age.$revision"
3359
3360 # Add in all the interfaces that we are compatible with.
3361 loop=$age
3362 while test "$loop" -ne 0; do
3363 iface=`expr $current - $loop`
3364 loop=`expr $loop - 1`
3365 verstring="$verstring:${iface}.0"
3366 done
3367
3368 # Make executables depend on our current version.
3369 verstring="$verstring:${current}.0"
3370 ;;
3371
3372 sunos)
3373 major=".$current"
3374 versuffix=".$current.$revision"
3375 ;;
3376
3377 windows)
3378 # Use '-' rather than '.', since we only want one
3379 # extension on DOS 8.3 filesystems.
3380 major=`expr $current - $age`
3381 versuffix="-$major"
3382 ;;
3383
3384 *)
3385 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3386 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3387 exit $EXIT_FAILURE
3388 ;;
3389 esac
3390
3391 # Clear the version info if we defaulted, and they specified a release.
3392 if test -z "$vinfo" && test -n "$release"; then
3393 major=
3394 case $version_type in
3395 darwin)
3396 # we can't check for "0.0" in archive_cmds due to quoting
3397 # problems, so we reset it completely
3398 verstring=
3399 ;;
3400 *)
3401 verstring="0.0"
3402 ;;
3403 esac
3404 if test "$need_version" = no; then
3405 versuffix=
3406 else
3407 versuffix=".0.0"
3408 fi
3409 fi
3410
3411 # Remove version info from name if versioning should be avoided
3412 if test "$avoid_version" = yes && test "$need_version" = no; then
3413 major=
3414 versuffix=
3415 verstring=""
3416 fi
3417
3418 # Check to see if the archive will have undefined symbols.
3419 if test "$allow_undefined" = yes; then
3420 if test "$allow_undefined_flag" = unsupported; then
3421 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
3422 build_libtool_libs=no
3423 build_old_libs=yes
3424 fi
3425 else
3426 # Don't allow undefined symbols.
3427 allow_undefined_flag="$no_undefined_flag"
3428 fi
3429 fi
3430
3431 if test "$mode" != relink; then
3432 # Remove our outputs, but don't remove object files since they
3433 # may have been created when compiling PIC objects.
3434 removelist=
3435 tempremovelist=`$echo "$output_objdir/*"`
3436 for p in $tempremovelist; do
3437 case $p in
3438 *.$objext)
3439 ;;
3440 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3441 if test "X$precious_files_regex" != "X"; then
3442 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3443 then
3444 continue
3445 fi
3446 fi
3447 removelist="$removelist $p"
3448 ;;
3449 *) ;;
3450 esac
3451 done
3452 if test -n "$removelist"; then
3453 $show "${rm}r $removelist"
3454 $run ${rm}r $removelist
3455 fi
3456 fi
3457
3458 # Now set the variables for building old libraries.
3459 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
3460 oldlibs="$oldlibs $output_objdir/$libname.$libext"
3461
3462 # Transform .lo files to .o files.
3463 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
3464 fi
3465
3466 # Eliminate all temporary directories.
3467 #for path in $notinst_path; do
3468 # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3469 # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3470 # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3471 #done
3472
3473 if test -n "$xrpath"; then
3474 # If the user specified any rpath flags, then add them.
3475 temp_xrpath=
3476 for libdir in $xrpath; do
3477 temp_xrpath="$temp_xrpath -R$libdir"
3478 case "$finalize_rpath " in
3479 *" $libdir "*) ;;
3480 *) finalize_rpath="$finalize_rpath $libdir" ;;
3481 esac
3482 done
3483 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
3484 dependency_libs="$temp_xrpath $dependency_libs"
3485 fi
3486 fi
3487
3488 # Make sure dlfiles contains only unique files that won't be dlpreopened
3489 old_dlfiles="$dlfiles"
3490 dlfiles=
3491 for lib in $old_dlfiles; do
3492 case " $dlprefiles $dlfiles " in
3493 *" $lib "*) ;;
3494 *) dlfiles="$dlfiles $lib" ;;
3495 esac
3496 done
3497
3498 # Make sure dlprefiles contains only unique files
3499 old_dlprefiles="$dlprefiles"
3500 dlprefiles=
3501 for lib in $old_dlprefiles; do
3502 case "$dlprefiles " in
3503 *" $lib "*) ;;
3504 *) dlprefiles="$dlprefiles $lib" ;;
3505 esac
3506 done
3507
3508 if test "$build_libtool_libs" = yes; then
3509 if test -n "$rpath"; then
3510 case $host in
3511 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
3512 # these systems don't actually have a c library (as such)!
3513 ;;
3514 *-*-rhapsody* | *-*-darwin1.[012])
3515 # Rhapsody C library is in the System framework
3516 deplibs="$deplibs -framework System"
3517 ;;
3518 *-*-netbsd*)
3519 # Don't link with libc until the a.out ld.so is fixed.
3520 ;;
3521 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3522 # Do not include libc due to us having libc/libc_r.
3523 ;;
3524 *-*-sco3.2v5* | *-*-sco5v6*)
3525 # Causes problems with __ctype
3526 ;;
3527 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3528 # Compiler inserts libc in the correct place for threads to work
3529 ;;
3530 *)
3531 # Add libc to deplibs on all other systems if necessary.
3532 if test "$build_libtool_need_lc" = "yes"; then
3533 deplibs="$deplibs -lc"
3534 fi
3535 ;;
3536 esac
3537 fi
3538
3539 # Transform deplibs into only deplibs that can be linked in shared.
3540 name_save=$name
3541 libname_save=$libname
3542 release_save=$release
3543 versuffix_save=$versuffix
3544 major_save=$major
3545 # I'm not sure if I'm treating the release correctly. I think
3546 # release should show up in the -l (ie -lgmp5) so we don't want to
3547 # add it in twice. Is that correct?
3548 release=""
3549 versuffix=""
3550 major=""
3551 newdeplibs=
3552 droppeddeps=no
3553 case $deplibs_check_method in
3554 pass_all)
3555 # Don't check for shared/static. Everything works.
3556 # This might be a little naive. We might want to check
3557 # whether the library exists or not. But this is on
3558 # osf3 & osf4 and I'm not really sure... Just
3559 # implementing what was already the behavior.
3560 newdeplibs=$deplibs
3561 ;;
3562 test_compile)
3563 # This code stresses the "libraries are programs" paradigm to its
3564 # limits. Maybe even breaks it. We compile a program, linking it
3565 # against the deplibs as a proxy for the library. Then we can check
3566 # whether they linked in statically or dynamically with ldd.
3567 $rm conftest.c
3568 cat > conftest.c <<EOF
3569 int main() { return 0; }
3570 EOF
3571 $rm conftest
3572 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
3573 ldd_output=`ldd conftest`
3574 for i in $deplibs; do
3575 name=`expr $i : '-l\(.*\)'`
3576 # If $name is empty we are operating on a -L argument.
3577 if test "$name" != "" && test "$name" != "0"; then
3578 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3579 case " $predeps $postdeps " in
3580 *" $i "*)
3581 newdeplibs="$newdeplibs $i"
3582 i=""
3583 ;;
3584 esac
3585 fi
3586 if test -n "$i" ; then
3587 libname=`eval \\$echo \"$libname_spec\"`
3588 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3589 set dummy $deplib_matches
3590 deplib_match=$2
3591 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3592 newdeplibs="$newdeplibs $i"
3593 else
3594 droppeddeps=yes
3595 $echo
3596 $echo "*** Warning: dynamic linker does not accept needed library $i."
3597 $echo "*** I have the capability to make that library automatically link in when"
3598 $echo "*** you link to this library. But I can only do this if you have a"
3599 $echo "*** shared version of the library, which I believe you do not have"
3600 $echo "*** because a test_compile did reveal that the linker did not use it for"
3601 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
3602 fi
3603 fi
3604 else
3605 newdeplibs="$newdeplibs $i"
3606 fi
3607 done
3608 else
3609 # Error occurred in the first compile. Let's try to salvage
3610 # the situation: Compile a separate program for each library.
3611 for i in $deplibs; do
3612 name=`expr $i : '-l\(.*\)'`
3613 # If $name is empty we are operating on a -L argument.
3614 if test "$name" != "" && test "$name" != "0"; then
3615 $rm conftest
3616 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
3617 ldd_output=`ldd conftest`
3618 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3619 case " $predeps $postdeps " in
3620 *" $i "*)
3621 newdeplibs="$newdeplibs $i"
3622 i=""
3623 ;;
3624 esac
3625 fi
3626 if test -n "$i" ; then
3627 libname=`eval \\$echo \"$libname_spec\"`
3628 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3629 set dummy $deplib_matches
3630 deplib_match=$2
3631 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3632 newdeplibs="$newdeplibs $i"
3633 else
3634 droppeddeps=yes
3635 $echo
3636 $echo "*** Warning: dynamic linker does not accept needed library $i."
3637 $echo "*** I have the capability to make that library automatically link in when"
3638 $echo "*** you link to this library. But I can only do this if you have a"
3639 $echo "*** shared version of the library, which you do not appear to have"
3640 $echo "*** because a test_compile did reveal that the linker did not use this one"
3641 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
3642 fi
3643 fi
3644 else
3645 droppeddeps=yes
3646 $echo
3647 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3648 $echo "*** make it link in! You will probably need to install it or some"
3649 $echo "*** library that it depends on before this library will be fully"
3650 $echo "*** functional. Installing it before continuing would be even better."
3651 fi
3652 else
3653 newdeplibs="$newdeplibs $i"
3654 fi
3655 done
3656 fi
3657 ;;
3658 file_magic*)
3659 set dummy $deplibs_check_method
3660 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3661 for a_deplib in $deplibs; do
3662 name=`expr $a_deplib : '-l\(.*\)'`
3663 # If $name is empty we are operating on a -L argument.
3664 if test "$name" != "" && test "$name" != "0"; then
3665 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3666 case " $predeps $postdeps " in
3667 *" $a_deplib "*)
3668 newdeplibs="$newdeplibs $a_deplib"
3669 a_deplib=""
3670 ;;
3671 esac
3672 fi
3673 if test -n "$a_deplib" ; then
3674 libname=`eval \\$echo \"$libname_spec\"`
3675 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3676 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3677 for potent_lib in $potential_libs; do
3678 # Follow soft links.
3679 if ls -lLd "$potent_lib" 2>/dev/null \
3680 | grep " -> " >/dev/null; then
3681 continue
3682 fi
3683 # The statement above tries to avoid entering an
3684 # endless loop below, in case of cyclic links.
3685 # We might still enter an endless loop, since a link
3686 # loop can be closed while we follow links,
3687 # but so what?
3688 potlib="$potent_lib"
3689 while test -h "$potlib" 2>/dev/null; do
3690 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
3691 case $potliblink in
3692 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3693 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
3694 esac
3695 done
3696 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3697 | ${SED} 10q \
3698 | $EGREP "$file_magic_regex" > /dev/null; then
3699 newdeplibs="$newdeplibs $a_deplib"
3700 a_deplib=""
3701 break 2
3702 fi
3703 done
3704 done
3705 fi
3706 if test -n "$a_deplib" ; then
3707 droppeddeps=yes
3708 $echo
3709 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3710 $echo "*** I have the capability to make that library automatically link in when"
3711 $echo "*** you link to this library. But I can only do this if you have a"
3712 $echo "*** shared version of the library, which you do not appear to have"
3713 $echo "*** because I did check the linker path looking for a file starting"
3714 if test -z "$potlib" ; then
3715 $echo "*** with $libname but no candidates were found. (...for file magic test)"
3716 else
3717 $echo "*** with $libname and none of the candidates passed a file format test"
3718 $echo "*** using a file magic. Last file checked: $potlib"
3719 fi
3720 fi
3721 else
3722 # Add a -L argument.
3723 newdeplibs="$newdeplibs $a_deplib"
3724 fi
3725 done # Gone through all deplibs.
3726 ;;
3727 match_pattern*)
3728 set dummy $deplibs_check_method
3729 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3730 for a_deplib in $deplibs; do
3731 name=`expr $a_deplib : '-l\(.*\)'`
3732 # If $name is empty we are operating on a -L argument.
3733 if test -n "$name" && test "$name" != "0"; then
3734 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3735 case " $predeps $postdeps " in
3736 *" $a_deplib "*)
3737 newdeplibs="$newdeplibs $a_deplib"
3738 a_deplib=""
3739 ;;
3740 esac
3741 fi
3742 if test -n "$a_deplib" ; then
3743 libname=`eval \\$echo \"$libname_spec\"`
3744 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3745 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3746 for potent_lib in $potential_libs; do
3747 potlib="$potent_lib" # see symlink-check above in file_magic test
3748 if eval $echo \"$potent_lib\" 2>/dev/null \
3749 | ${SED} 10q \
3750 | $EGREP "$match_pattern_regex" > /dev/null; then
3751 newdeplibs="$newdeplibs $a_deplib"
3752 a_deplib=""
3753 break 2
3754 fi
3755 done
3756 done
3757 fi
3758 if test -n "$a_deplib" ; then
3759 droppeddeps=yes
3760 $echo
3761 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3762 $echo "*** I have the capability to make that library automatically link in when"
3763 $echo "*** you link to this library. But I can only do this if you have a"
3764 $echo "*** shared version of the library, which you do not appear to have"
3765 $echo "*** because I did check the linker path looking for a file starting"
3766 if test -z "$potlib" ; then
3767 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
3768 else
3769 $echo "*** with $libname and none of the candidates passed a file format test"
3770 $echo "*** using a regex pattern. Last file checked: $potlib"
3771 fi
3772 fi
3773 else
3774 # Add a -L argument.
3775 newdeplibs="$newdeplibs $a_deplib"
3776 fi
3777 done # Gone through all deplibs.
3778 ;;
3779 none | unknown | *)
3780 newdeplibs=""
3781 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3782 -e 's/ -[LR][^ ]*//g'`
3783 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3784 for i in $predeps $postdeps ; do
3785 # can't use Xsed below, because $i might contain '/'
3786 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
3787 done
3788 fi
3789 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3790 | grep . >/dev/null; then
3791 $echo
3792 if test "X$deplibs_check_method" = "Xnone"; then
3793 $echo "*** Warning: inter-library dependencies are not supported in this platform."
3794 else
3795 $echo "*** Warning: inter-library dependencies are not known to be supported."
3796 fi
3797 $echo "*** All declared inter-library dependencies are being dropped."
3798 droppeddeps=yes
3799 fi
3800 ;;
3801 esac
3802 versuffix=$versuffix_save
3803 major=$major_save
3804 release=$release_save
3805 libname=$libname_save
3806 name=$name_save
3807
3808 case $host in
3809 *-*-rhapsody* | *-*-darwin1.[012])
3810 # On Rhapsody replace the C library is the System framework
3811 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
3812 ;;
3813 esac
3814
3815 if test "$droppeddeps" = yes; then
3816 if test "$module" = yes; then
3817 $echo
3818 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3819 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3820 $echo "*** a static module, that should work as long as the dlopening"
3821 $echo "*** application is linked with the -dlopen flag."
3822 if test -z "$global_symbol_pipe"; then
3823 $echo
3824 $echo "*** However, this would only work if libtool was able to extract symbol"
3825 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3826 $echo "*** not find such a program. So, this module is probably useless."
3827 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
3828 fi
3829 if test "$build_old_libs" = no; then
3830 oldlibs="$output_objdir/$libname.$libext"
3831 build_libtool_libs=module
3832 build_old_libs=yes
3833 else
3834 build_libtool_libs=no
3835 fi
3836 else
3837 $echo "*** The inter-library dependencies that have been dropped here will be"
3838 $echo "*** automatically added whenever a program is linked with this library"
3839 $echo "*** or is declared to -dlopen it."
3840
3841 if test "$allow_undefined" = no; then
3842 $echo
3843 $echo "*** Since this library must not contain undefined symbols,"
3844 $echo "*** because either the platform does not support them or"
3845 $echo "*** it was explicitly requested with -no-undefined,"
3846 $echo "*** libtool will only create a static version of it."
3847 if test "$build_old_libs" = no; then
3848 oldlibs="$output_objdir/$libname.$libext"
3849 build_libtool_libs=module
3850 build_old_libs=yes
3851 else
3852 build_libtool_libs=no
3853 fi
3854 fi
3855 fi
3856 fi
3857 # Done checking deplibs!
3858 deplibs=$newdeplibs
3859 fi
3860
3861
3862 # move library search paths that coincide with paths to not yet
3863 # installed libraries to the beginning of the library search list
3864 new_libs=
3865 for path in $notinst_path; do
3866 case " $new_libs " in
3867 *" -L$path/$objdir "*) ;;
3868 *)
3869 case " $deplibs " in
3870 *" -L$path/$objdir "*)
3871 new_libs="$new_libs -L$path/$objdir" ;;
3872 esac
3873 ;;
3874 esac
3875 done
3876 for deplib in $deplibs; do
3877 case $deplib in
3878 -L*)
3879 case " $new_libs " in
3880 *" $deplib "*) ;;
3881 *) new_libs="$new_libs $deplib" ;;
3882 esac
3883 ;;
3884 *) new_libs="$new_libs $deplib" ;;
3885 esac
3886 done
3887 deplibs="$new_libs"
3888
3889
3890 # All the library-specific variables (install_libdir is set above).
3891 library_names=
3892 old_library=
3893 dlname=
3894
3895 # Test again, we may have decided not to build it any more
3896 if test "$build_libtool_libs" = yes; then
3897 if test "$hardcode_into_libs" = yes; then
3898 # Hardcode the library paths
3899 hardcode_libdirs=
3900 dep_rpath=
3901 rpath="$finalize_rpath"
3902 test "$mode" != relink && rpath="$compile_rpath$rpath"
3903 for libdir in $rpath; do
3904 if test -n "$hardcode_libdir_flag_spec"; then
3905 if test -n "$hardcode_libdir_separator"; then
3906 if test -z "$hardcode_libdirs"; then
3907 hardcode_libdirs="$libdir"
3908 else
3909 # Just accumulate the unique libdirs.
3910 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
3911 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
3912 ;;
3913 *)
3914 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
3915 ;;
3916 esac
3917 fi
3918 else
3919 eval flag=\"$hardcode_libdir_flag_spec\"
3920 dep_rpath="$dep_rpath $flag"
3921 fi
3922 elif test -n "$runpath_var"; then
3923 case "$perm_rpath " in
3924 *" $libdir "*) ;;
3925 *) perm_rpath="$perm_rpath $libdir" ;;
3926 esac
3927 fi
3928 done
3929 # Substitute the hardcoded libdirs into the rpath.
3930 if test -n "$hardcode_libdir_separator" &&
3931 test -n "$hardcode_libdirs"; then
3932 libdir="$hardcode_libdirs"
3933 if test -n "$hardcode_libdir_flag_spec_ld"; then
3934 case $archive_cmds in
3935 *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3936 *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3937 esac
3938 else
3939 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3940 fi
3941 fi
3942 if test -n "$runpath_var" && test -n "$perm_rpath"; then
3943 # We should set the runpath_var.
3944 rpath=
3945 for dir in $perm_rpath; do
3946 rpath="$rpath$dir:"
3947 done
3948 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
3949 fi
3950 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
3951 fi
3952
3953 shlibpath="$finalize_shlibpath"
3954 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
3955 if test -n "$shlibpath"; then
3956 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
3957 fi
3958
3959 # Get the real and link names of the library.
3960 eval shared_ext=\"$shrext_cmds\"
3961 eval library_names=\"$library_names_spec\"
3962 set dummy $library_names
3963 realname="$2"
3964 shift; shift
3965
3966 if test -n "$soname_spec"; then
3967 eval soname=\"$soname_spec\"
3968 else
3969 soname="$realname"
3970 fi
3971 if test -z "$dlname"; then
3972 dlname=$soname
3973 fi
3974
3975 lib="$output_objdir/$realname"
3976 linknames=
3977 for link
3978 do
3979 linknames="$linknames $link"
3980 done
3981
3982 # Use standard objects if they are pic
3983 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
3984
3985 # Prepare the list of exported symbols
3986 if test -z "$export_symbols"; then
3987 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
3988 $show "generating symbol list for \`$libname.la'"
3989 export_symbols="$output_objdir/$libname.exp"
3990 $run $rm $export_symbols
3991 cmds=$export_symbols_cmds
3992 save_ifs="$IFS"; IFS='~'
3993 for cmd in $cmds; do
3994 IFS="$save_ifs"
3995 eval cmd=\"$cmd\"
3996 if len=`expr "X$cmd" : ".*"` &&
3997 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3998 $show "$cmd"
3999 $run eval "$cmd" || exit $?
4000 skipped_export=false
4001 else
4002 # The command line is too long to execute in one step.
4003 $show "using reloadable object file for export list..."
4004 skipped_export=:
4005 # Break out early, otherwise skipped_export may be
4006 # set to false by a later but shorter cmd.
4007 break
4008 fi
4009 done
4010 IFS="$save_ifs"
4011 if test -n "$export_symbols_regex"; then
4012 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
4013 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
4014 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
4015 $run eval '$mv "${export_symbols}T" "$export_symbols"'
4016 fi
4017 fi
4018 fi
4019
4020 if test -n "$export_symbols" && test -n "$include_expsyms"; then
4021 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
4022 fi
4023
4024 tmp_deplibs=
4025 for test_deplib in $deplibs; do
4026 case " $convenience " in
4027 *" $test_deplib "*) ;;
4028 *)
4029 tmp_deplibs="$tmp_deplibs $test_deplib"
4030 ;;
4031 esac
4032 done
4033 deplibs="$tmp_deplibs"
4034
4035 if test -n "$convenience"; then
4036 if test -n "$whole_archive_flag_spec"; then
4037 save_libobjs=$libobjs
4038 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4039 else
4040 gentop="$output_objdir/${outputname}x"
4041 generated="$generated $gentop"
4042
4043 func_extract_archives $gentop $convenience
4044 libobjs="$libobjs $func_extract_archives_result"
4045 fi
4046 fi
4047
4048 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
4049 eval flag=\"$thread_safe_flag_spec\"
4050 linker_flags="$linker_flags $flag"
4051 fi
4052
4053 # Make a backup of the uninstalled library when relinking
4054 if test "$mode" = relink; then
4055 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
4056 fi
4057
4058 # Do each of the archive commands.
4059 if test "$module" = yes && test -n "$module_cmds" ; then
4060 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4061 eval test_cmds=\"$module_expsym_cmds\"
4062 cmds=$module_expsym_cmds
4063 else
4064 eval test_cmds=\"$module_cmds\"
4065 cmds=$module_cmds
4066 fi
4067 else
4068 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4069 eval test_cmds=\"$archive_expsym_cmds\"
4070 cmds=$archive_expsym_cmds
4071 else
4072 eval test_cmds=\"$archive_cmds\"
4073 cmds=$archive_cmds
4074 fi
4075 fi
4076
4077 if test "X$skipped_export" != "X:" &&
4078 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4079 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4080 :
4081 else
4082 # The command line is too long to link in one step, link piecewise.
4083 $echo "creating reloadable object files..."
4084
4085 # Save the value of $output and $libobjs because we want to
4086 # use them later. If we have whole_archive_flag_spec, we
4087 # want to use save_libobjs as it was before
4088 # whole_archive_flag_spec was expanded, because we can't
4089 # assume the linker understands whole_archive_flag_spec.
4090 # This may have to be revisited, in case too many
4091 # convenience libraries get linked in and end up exceeding
4092 # the spec.
4093 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
4094 save_libobjs=$libobjs
4095 fi
4096 save_output=$output
4097 output_la=`$echo "X$output" | $Xsed -e "$basename"`
4098
4099 # Clear the reloadable object creation command queue and
4100 # initialize k to one.
4101 test_cmds=
4102 concat_cmds=
4103 objlist=
4104 delfiles=
4105 last_robj=
4106 k=1
4107 output=$output_objdir/$output_la-${k}.$objext
4108 # Loop over the list of objects to be linked.
4109 for obj in $save_libobjs
4110 do
4111 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
4112 if test "X$objlist" = X ||
4113 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4114 test "$len" -le "$max_cmd_len"; }; then
4115 objlist="$objlist $obj"
4116 else
4117 # The command $test_cmds is almost too long, add a
4118 # command to the queue.
4119 if test "$k" -eq 1 ; then
4120 # The first file doesn't have a previous command to add.
4121 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
4122 else
4123 # All subsequent reloadable object files will link in
4124 # the last one created.
4125 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
4126 fi
4127 last_robj=$output_objdir/$output_la-${k}.$objext
4128 k=`expr $k + 1`
4129 output=$output_objdir/$output_la-${k}.$objext
4130 objlist=$obj
4131 len=1
4132 fi
4133 done
4134 # Handle the remaining objects by creating one last
4135 # reloadable object file. All subsequent reloadable object
4136 # files will link in the last one created.
4137 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
4138 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
4139
4140 if ${skipped_export-false}; then
4141 $show "generating symbol list for \`$libname.la'"
4142 export_symbols="$output_objdir/$libname.exp"
4143 $run $rm $export_symbols
4144 libobjs=$output
4145 # Append the command to create the export file.
4146 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
4147 fi
4148
4149 # Set up a command to remove the reloadable object files
4150 # after they are used.
4151 i=0
4152 while test "$i" -lt "$k"
4153 do
4154 i=`expr $i + 1`
4155 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
4156 done
4157
4158 $echo "creating a temporary reloadable object file: $output"
4159
4160 # Loop through the commands generated above and execute them.
4161 save_ifs="$IFS"; IFS='~'
4162 for cmd in $concat_cmds; do
4163 IFS="$save_ifs"
4164 $show "$cmd"
4165 $run eval "$cmd" || exit $?
4166 done
4167 IFS="$save_ifs"
4168
4169 libobjs=$output
4170 # Restore the value of output.
4171 output=$save_output
4172
4173 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
4174 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4175 fi
4176 # Expand the library linking commands again to reset the
4177 # value of $libobjs for piecewise linking.
4178
4179 # Do each of the archive commands.
4180 if test "$module" = yes && test -n "$module_cmds" ; then
4181 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4182 cmds=$module_expsym_cmds
4183 else
4184 cmds=$module_cmds
4185 fi
4186 else
4187 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4188 cmds=$archive_expsym_cmds
4189 else
4190 cmds=$archive_cmds
4191 fi
4192 fi
4193
4194 # Append the command to remove the reloadable object files
4195 # to the just-reset $cmds.
4196 eval cmds=\"\$cmds~\$rm $delfiles\"
4197 fi
4198 save_ifs="$IFS"; IFS='~'
4199 for cmd in $cmds; do
4200 IFS="$save_ifs"
4201 eval cmd=\"$cmd\"
4202 $show "$cmd"
4203 $run eval "$cmd" || {
4204 lt_exit=$?
4205
4206 # Restore the uninstalled library and exit
4207 if test "$mode" = relink; then
4208 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
4209 fi
4210
4211 exit $lt_exit
4212 }
4213 done
4214 IFS="$save_ifs"
4215
4216 # Restore the uninstalled library and exit
4217 if test "$mode" = relink; then
4218 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4219
4220 if test -n "$convenience"; then
4221 if test -z "$whole_archive_flag_spec"; then
4222 $show "${rm}r $gentop"
4223 $run ${rm}r "$gentop"
4224 fi
4225 fi
4226
4227 exit $EXIT_SUCCESS
4228 fi
4229
4230 # Create links to the real library.
4231 for linkname in $linknames; do
4232 if test "$realname" != "$linkname"; then
4233 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
4234 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
4235 fi
4236 done
4237
4238 # If -module or -export-dynamic was specified, set the dlname.
4239 if test "$module" = yes || test "$export_dynamic" = yes; then
4240 # On all known operating systems, these are identical.
4241 dlname="$soname"
4242 fi
4243 fi
4244 ;;
4245
4246 obj)
4247 if test -n "$deplibs"; then
4248 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
4249 fi
4250
4251 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4252 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4253 fi
4254
4255 if test -n "$rpath"; then
4256 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
4257 fi
4258
4259 if test -n "$xrpath"; then
4260 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
4261 fi
4262
4263 if test -n "$vinfo"; then
4264 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
4265 fi
4266
4267 if test -n "$release"; then
4268 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
4269 fi
4270
4271 case $output in
4272 *.lo)
4273 if test -n "$objs$old_deplibs"; then
4274 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4275 exit $EXIT_FAILURE
4276 fi
4277 libobj="$output"
4278 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
4279 ;;
4280 *)
4281 libobj=
4282 obj="$output"
4283 ;;
4284 esac
4285
4286 # Delete the old objects.
4287 $run $rm $obj $libobj
4288
4289 # Objects from convenience libraries. This assumes
4290 # single-version convenience libraries. Whenever we create
4291 # different ones for PIC/non-PIC, this we'll have to duplicate
4292 # the extraction.
4293 reload_conv_objs=
4294 gentop=
4295 # reload_cmds runs $LD directly, so let us get rid of
4296 # -Wl from whole_archive_flag_spec and hope we can get by with
4297 # turning comma into space..
4298 wl=
4299
4300 if test -n "$convenience"; then
4301 if test -n "$whole_archive_flag_spec"; then
4302 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4303 reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4304 else
4305 gentop="$output_objdir/${obj}x"
4306 generated="$generated $gentop"
4307
4308 func_extract_archives $gentop $convenience
4309 reload_conv_objs="$reload_objs $func_extract_archives_result"
4310 fi
4311 fi
4312
4313 # Create the old-style object.
4314 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
4315
4316 output="$obj"
4317 cmds=$reload_cmds
4318 save_ifs="$IFS"; IFS='~'
4319 for cmd in $cmds; do
4320 IFS="$save_ifs"
4321 eval cmd=\"$cmd\"
4322 $show "$cmd"
4323 $run eval "$cmd" || exit $?
4324 done
4325 IFS="$save_ifs"
4326
4327 # Exit if we aren't doing a library object file.
4328 if test -z "$libobj"; then
4329 if test -n "$gentop"; then
4330 $show "${rm}r $gentop"
4331 $run ${rm}r $gentop
4332 fi
4333
4334 exit $EXIT_SUCCESS
4335 fi
4336
4337 if test "$build_libtool_libs" != yes; then
4338 if test -n "$gentop"; then
4339 $show "${rm}r $gentop"
4340 $run ${rm}r $gentop
4341 fi
4342
4343 # Create an invalid libtool object if no PIC, so that we don't
4344 # accidentally link it into a program.
4345 # $show "echo timestamp > $libobj"
4346 # $run eval "echo timestamp > $libobj" || exit $?
4347 exit $EXIT_SUCCESS
4348 fi
4349
4350 if test -n "$pic_flag" || test "$pic_mode" != default; then
4351 # Only do commands if we really have different PIC objects.
4352 reload_objs="$libobjs $reload_conv_objs"
4353 output="$libobj"
4354 cmds=$reload_cmds
4355 save_ifs="$IFS"; IFS='~'
4356 for cmd in $cmds; do
4357 IFS="$save_ifs"
4358 eval cmd=\"$cmd\"
4359 $show "$cmd"
4360 $run eval "$cmd" || exit $?
4361 done
4362 IFS="$save_ifs"
4363 fi
4364
4365 if test -n "$gentop"; then
4366 $show "${rm}r $gentop"
4367 $run ${rm}r $gentop
4368 fi
4369
4370 exit $EXIT_SUCCESS
4371 ;;
4372
4373 prog)
4374 case $host in
4375 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
4376 esac
4377 if test -n "$vinfo"; then
4378 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4379 fi
4380
4381 if test -n "$release"; then
4382 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4383 fi
4384
4385 if test "$preload" = yes; then
4386 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4387 test "$dlopen_self_static" = unknown; then
4388 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4389 fi
4390 fi
4391
4392 case $host in
4393 *-*-rhapsody* | *-*-darwin1.[012])
4394 # On Rhapsody replace the C library is the System framework
4395 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4396 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4397 ;;
4398 esac
4399
4400 case $host in
4401 *darwin*)
4402 # Don't allow lazy linking, it breaks C++ global constructors
4403 if test "$tagname" = CXX ; then
4404 compile_command="$compile_command ${wl}-bind_at_load"
4405 finalize_command="$finalize_command ${wl}-bind_at_load"
4406 fi
4407 ;;
4408 esac
4409
4410
4411 # move library search paths that coincide with paths to not yet
4412 # installed libraries to the beginning of the library search list
4413 new_libs=
4414 for path in $notinst_path; do
4415 case " $new_libs " in
4416 *" -L$path/$objdir "*) ;;
4417 *)
4418 case " $compile_deplibs " in
4419 *" -L$path/$objdir "*)
4420 new_libs="$new_libs -L$path/$objdir" ;;
4421 esac
4422 ;;
4423 esac
4424 done
4425 for deplib in $compile_deplibs; do
4426 case $deplib in
4427 -L*)
4428 case " $new_libs " in
4429 *" $deplib "*) ;;
4430 *) new_libs="$new_libs $deplib" ;;
4431 esac
4432 ;;
4433 *) new_libs="$new_libs $deplib" ;;
4434 esac
4435 done
4436 compile_deplibs="$new_libs"
4437
4438
4439 compile_command="$compile_command $compile_deplibs"
4440 finalize_command="$finalize_command $finalize_deplibs"
4441
4442 if test -n "$rpath$xrpath"; then
4443 # If the user specified any rpath flags, then add them.
4444 for libdir in $rpath $xrpath; do
4445 # This is the magic to use -rpath.
4446 case "$finalize_rpath " in
4447 *" $libdir "*) ;;
4448 *) finalize_rpath="$finalize_rpath $libdir" ;;
4449 esac
4450 done
4451 fi
4452
4453 # Now hardcode the library paths
4454 rpath=
4455 hardcode_libdirs=
4456 for libdir in $compile_rpath $finalize_rpath; do
4457 if test -n "$hardcode_libdir_flag_spec"; then
4458 if test -n "$hardcode_libdir_separator"; then
4459 if test -z "$hardcode_libdirs"; then
4460 hardcode_libdirs="$libdir"
4461 else
4462 # Just accumulate the unique libdirs.
4463 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4464 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4465 ;;
4466 *)
4467 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4468 ;;
4469 esac
4470 fi
4471 else
4472 eval flag=\"$hardcode_libdir_flag_spec\"
4473 rpath="$rpath $flag"
4474 fi
4475 elif test -n "$runpath_var"; then
4476 case "$perm_rpath " in
4477 *" $libdir "*) ;;
4478 *) perm_rpath="$perm_rpath $libdir" ;;
4479 esac
4480 fi
4481 case $host in
4482 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4483 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4484 case :$dllsearchpath: in
4485 *":$libdir:"*) ;;
4486 *) dllsearchpath="$dllsearchpath:$libdir";;
4487 esac
4488 case :$dllsearchpath: in
4489 *":$testbindir:"*) ;;
4490 *) dllsearchpath="$dllsearchpath:$testbindir";;
4491 esac
4492 ;;
4493 esac
4494 done
4495 # Substitute the hardcoded libdirs into the rpath.
4496 if test -n "$hardcode_libdir_separator" &&
4497 test -n "$hardcode_libdirs"; then
4498 libdir="$hardcode_libdirs"
4499 eval rpath=\" $hardcode_libdir_flag_spec\"
4500 fi
4501 compile_rpath="$rpath"
4502
4503 rpath=
4504 hardcode_libdirs=
4505 for libdir in $finalize_rpath; do
4506 if test -n "$hardcode_libdir_flag_spec"; then
4507 if test -n "$hardcode_libdir_separator"; then
4508 if test -z "$hardcode_libdirs"; then
4509 hardcode_libdirs="$libdir"
4510 else
4511 # Just accumulate the unique libdirs.
4512 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4513 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4514 ;;
4515 *)
4516 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4517 ;;
4518 esac
4519 fi
4520 else
4521 eval flag=\"$hardcode_libdir_flag_spec\"
4522 rpath="$rpath $flag"
4523 fi
4524 elif test -n "$runpath_var"; then
4525 case "$finalize_perm_rpath " in
4526 *" $libdir "*) ;;
4527 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
4528 esac
4529 fi
4530 done
4531 # Substitute the hardcoded libdirs into the rpath.
4532 if test -n "$hardcode_libdir_separator" &&
4533 test -n "$hardcode_libdirs"; then
4534 libdir="$hardcode_libdirs"
4535 eval rpath=\" $hardcode_libdir_flag_spec\"
4536 fi
4537 finalize_rpath="$rpath"
4538
4539 if test -n "$libobjs" && test "$build_old_libs" = yes; then
4540 # Transform all the library objects into standard objects.
4541 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4542 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4543 fi
4544
4545 dlsyms=
4546 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4547 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4548 dlsyms="${outputname}S.c"
4549 else
4550 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
4551 fi
4552 fi
4553
4554 if test -n "$dlsyms"; then
4555 case $dlsyms in
4556 "") ;;
4557 *.c)
4558 # Discover the nlist of each of the dlfiles.
4559 nlist="$output_objdir/${outputname}.nm"
4560
4561 $show "$rm $nlist ${nlist}S ${nlist}T"
4562 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4563
4564 # Parse the name list into a source file.
4565 $show "creating $output_objdir/$dlsyms"
4566
4567 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4568 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4569 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4570
4571 #ifdef __cplusplus
4572 extern \"C\" {
4573 #endif
4574
4575 /* Prevent the only kind of declaration conflicts we can make. */
4576 #define lt_preloaded_symbols some_other_symbol
4577
4578 /* External symbol declarations for the compiler. */\
4579 "
4580
4581 if test "$dlself" = yes; then
4582 $show "generating symbol list for \`$output'"
4583
4584 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4585
4586 # Add our own program objects to the symbol list.
4587 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4588 for arg in $progfiles; do
4589 $show "extracting global C symbols from \`$arg'"
4590 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4591 done
4592
4593 if test -n "$exclude_expsyms"; then
4594 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4595 $run eval '$mv "$nlist"T "$nlist"'
4596 fi
4597
4598 if test -n "$export_symbols_regex"; then
4599 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4600 $run eval '$mv "$nlist"T "$nlist"'
4601 fi
4602
4603 # Prepare the list of exported symbols
4604 if test -z "$export_symbols"; then
4605 export_symbols="$output_objdir/$outputname.exp"
4606 $run $rm $export_symbols
4607 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4608 case $host in
4609 *cygwin* | *mingw* )
4610 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4611 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4612 ;;
4613 esac
4614 else
4615 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4616 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4617 $run eval 'mv "$nlist"T "$nlist"'
4618 case $host in
4619 *cygwin* | *mingw* )
4620 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4621 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4622 ;;
4623 esac
4624 fi
4625 fi
4626
4627 for arg in $dlprefiles; do
4628 $show "extracting global C symbols from \`$arg'"
4629 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4630 $run eval '$echo ": $name " >> "$nlist"'
4631 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4632 done
4633
4634 if test -z "$run"; then
4635 # Make sure we have at least an empty file.
4636 test -f "$nlist" || : > "$nlist"
4637
4638 if test -n "$exclude_expsyms"; then
4639 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4640 $mv "$nlist"T "$nlist"
4641 fi
4642
4643 # Try sorting and uniquifying the output.
4644 if grep -v "^: " < "$nlist" |
4645 if sort -k 3 </dev/null >/dev/null 2>&1; then
4646 sort -k 3
4647 else
4648 sort +2
4649 fi |
4650 uniq > "$nlist"S; then
4651 :
4652 else
4653 grep -v "^: " < "$nlist" > "$nlist"S
4654 fi
4655
4656 if test -f "$nlist"S; then
4657 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4658 else
4659 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4660 fi
4661
4662 $echo >> "$output_objdir/$dlsyms" "\
4663
4664 #undef lt_preloaded_symbols
4665
4666 #if defined (__STDC__) && __STDC__
4667 # define lt_ptr void *
4668 #else
4669 # define lt_ptr char *
4670 # define const
4671 #endif
4672
4673 /* The mapping between symbol names and symbols. */
4674 "
4675
4676 case $host in
4677 *cygwin* | *mingw* )
4678 $echo >> "$output_objdir/$dlsyms" "\
4679 /* DATA imports from DLLs on WIN32 can't be const, because
4680 runtime relocations are performed -- see ld's documentation
4681 on pseudo-relocs */
4682 struct {
4683 "
4684 ;;
4685 * )
4686 $echo >> "$output_objdir/$dlsyms" "\
4687 const struct {
4688 "
4689 ;;
4690 esac
4691
4692
4693 $echo >> "$output_objdir/$dlsyms" "\
4694 const char *name;
4695 lt_ptr address;
4696 }
4697 lt_preloaded_symbols[] =
4698 {\
4699 "
4700
4701 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4702
4703 $echo >> "$output_objdir/$dlsyms" "\
4704 {0, (lt_ptr) 0}
4705 };
4706
4707 /* This works around a problem in FreeBSD linker */
4708 #ifdef FREEBSD_WORKAROUND
4709 static const void *lt_preloaded_setup() {
4710 return lt_preloaded_symbols;
4711 }
4712 #endif
4713
4714 #ifdef __cplusplus
4715 }
4716 #endif\
4717 "
4718 fi
4719
4720 pic_flag_for_symtable=
4721 case $host in
4722 # compiling the symbol table file with pic_flag works around
4723 # a FreeBSD bug that causes programs to crash when -lm is
4724 # linked before any other PIC object. But we must not use
4725 # pic_flag when linking with -static. The problem exists in
4726 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4727 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4728 case "$compile_command " in
4729 *" -static "*) ;;
4730 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4731 esac;;
4732 *-*-hpux*)
4733 case "$compile_command " in
4734 *" -static "*) ;;
4735 *) pic_flag_for_symtable=" $pic_flag";;
4736 esac
4737 esac
4738
4739 # Now compile the dynamic symbol file.
4740 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4741 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4742
4743 # Clean up the generated files.
4744 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4745 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4746
4747 # Transform the symbol file into the correct name.
4748 case $host in
4749 *cygwin* | *mingw* )
4750 if test -f "$output_objdir/${outputname}.def" ; then
4751 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4752 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4753 else
4754 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4755 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4756 fi
4757 ;;
4758 * )
4759 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4760 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4761 ;;
4762 esac
4763 ;;
4764 *)
4765 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4766 exit $EXIT_FAILURE
4767 ;;
4768 esac
4769 else
4770 # We keep going just in case the user didn't refer to
4771 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4772 # really was required.
4773
4774 # Nullify the symbol file.
4775 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4776 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4777 fi
4778
4779 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4780 # Replace the output file specification.
4781 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4782 link_command="$compile_command$compile_rpath"
4783
4784 # We have no uninstalled library dependencies, so finalize right now.
4785 $show "$link_command"
4786 $run eval "$link_command"
4787 exit_status=$?
4788
4789 # Delete the generated files.
4790 if test -n "$dlsyms"; then
4791 $show "$rm $output_objdir/${outputname}S.${objext}"
4792 $run $rm "$output_objdir/${outputname}S.${objext}"
4793 fi
4794
4795 exit $exit_status
4796 fi
4797
4798 if test -n "$shlibpath_var"; then
4799 # We should set the shlibpath_var
4800 rpath=
4801 for dir in $temp_rpath; do
4802 case $dir in
4803 [\\/]* | [A-Za-z]:[\\/]*)
4804 # Absolute path.
4805 rpath="$rpath$dir:"
4806 ;;
4807 *)
4808 # Relative path: add a thisdir entry.
4809 rpath="$rpath\$thisdir/$dir:"
4810 ;;
4811 esac
4812 done
4813 temp_rpath="$rpath"
4814 fi
4815
4816 if test -n "$compile_shlibpath$finalize_shlibpath"; then
4817 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
4818 fi
4819 if test -n "$finalize_shlibpath"; then
4820 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
4821 fi
4822
4823 compile_var=
4824 finalize_var=
4825 if test -n "$runpath_var"; then
4826 if test -n "$perm_rpath"; then
4827 # We should set the runpath_var.
4828 rpath=
4829 for dir in $perm_rpath; do
4830 rpath="$rpath$dir:"
4831 done
4832 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
4833 fi
4834 if test -n "$finalize_perm_rpath"; then
4835 # We should set the runpath_var.
4836 rpath=
4837 for dir in $finalize_perm_rpath; do
4838 rpath="$rpath$dir:"
4839 done
4840 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
4841 fi
4842 fi
4843
4844 if test "$no_install" = yes; then
4845 # We don't need to create a wrapper script.
4846 link_command="$compile_var$compile_command$compile_rpath"
4847 # Replace the output file specification.
4848 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4849 # Delete the old output file.
4850 $run $rm $output
4851 # Link the executable and exit
4852 $show "$link_command"
4853 $run eval "$link_command" || exit $?
4854 exit $EXIT_SUCCESS
4855 fi
4856
4857 if test "$hardcode_action" = relink; then
4858 # Fast installation is not supported
4859 link_command="$compile_var$compile_command$compile_rpath"
4860 relink_command="$finalize_var$finalize_command$finalize_rpath"
4861
4862 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4863 $echo "$modename: \`$output' will be relinked during installation" 1>&2
4864 else
4865 if test "$fast_install" != no; then
4866 link_command="$finalize_var$compile_command$finalize_rpath"
4867 if test "$fast_install" = yes; then
4868 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4869 else
4870 # fast_install is set to needless
4871 relink_command=
4872 fi
4873 else
4874 link_command="$compile_var$compile_command$compile_rpath"
4875 relink_command="$finalize_var$finalize_command$finalize_rpath"
4876 fi
4877 fi
4878
4879 # Replace the output file specification.
4880 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
4881
4882 # Delete the old output files.
4883 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4884
4885 $show "$link_command"
4886 $run eval "$link_command" || exit $?
4887
4888 # Now create the wrapper script.
4889 $show "creating $output"
4890
4891 # Quote the relink command for shipping.
4892 if test -n "$relink_command"; then
4893 # Preserve any variables that may affect compiler behavior
4894 for var in $variables_saved_for_relink; do
4895 if eval test -z \"\${$var+set}\"; then
4896 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
4897 elif eval var_value=\$$var; test -z "$var_value"; then
4898 relink_command="$var=; export $var; $relink_command"
4899 else
4900 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4901 relink_command="$var=\"$var_value\"; export $var; $relink_command"
4902 fi
4903 done
4904 relink_command="(cd `pwd`; $relink_command)"
4905 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4906 fi
4907
4908 # Quote $echo for shipping.
4909 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
4910 case $progpath in
4911 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
4912 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
4913 esac
4914 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4915 else
4916 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
4917 fi
4918
4919 # Only actually do things if our run command is non-null.
4920 if test -z "$run"; then
4921 # win32 will think the script is a binary if it has
4922 # a .exe suffix, so we strip it off here.
4923 case $output in
4924 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
4925 esac
4926 # test for cygwin because mv fails w/o .exe extensions
4927 case $host in
4928 *cygwin*)
4929 exeext=.exe
4930 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
4931 *) exeext= ;;
4932 esac
4933 case $host in
4934 *cygwin* | *mingw* )
4935 output_name=`basename $output`
4936 output_path=`dirname $output`
4937 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4938 cwrapper="$output_path/$output_name.exe"
4939 $rm $cwrappersource $cwrapper
4940 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4941
4942 cat > $cwrappersource <<EOF
4943
4944 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4945 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4946
4947 The $output program cannot be directly executed until all the libtool
4948 libraries that it depends on are installed.
4949
4950 This wrapper executable should never be moved out of the build directory.
4951 If it is, it will not operate correctly.
4952
4953 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4954 but could eventually absorb all of the scripts functionality and
4955 exec $objdir/$outputname directly.
4956 */
4957 EOF
4958 cat >> $cwrappersource<<"EOF"
4959 #include <stdio.h>
4960 #include <stdlib.h>
4961 #include <unistd.h>
4962 #include <malloc.h>
4963 #include <stdarg.h>
4964 #include <assert.h>
4965 #include <string.h>
4966 #include <ctype.h>
4967 #include <sys/stat.h>
4968
4969 #if defined(PATH_MAX)
4970 # define LT_PATHMAX PATH_MAX
4971 #elif defined(MAXPATHLEN)
4972 # define LT_PATHMAX MAXPATHLEN
4973 #else
4974 # define LT_PATHMAX 1024
4975 #endif
4976
4977 #ifndef DIR_SEPARATOR
4978 # define DIR_SEPARATOR '/'
4979 # define PATH_SEPARATOR ':'
4980 #endif
4981
4982 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4983 defined (__OS2__)
4984 # define HAVE_DOS_BASED_FILE_SYSTEM
4985 # ifndef DIR_SEPARATOR_2
4986 # define DIR_SEPARATOR_2 '\\'
4987 # endif
4988 # ifndef PATH_SEPARATOR_2
4989 # define PATH_SEPARATOR_2 ';'
4990 # endif
4991 #endif
4992
4993 #ifndef DIR_SEPARATOR_2
4994 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4995 #else /* DIR_SEPARATOR_2 */
4996 # define IS_DIR_SEPARATOR(ch) \
4997 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4998 #endif /* DIR_SEPARATOR_2 */
4999
5000 #ifndef PATH_SEPARATOR_2
5001 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5002 #else /* PATH_SEPARATOR_2 */
5003 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5004 #endif /* PATH_SEPARATOR_2 */
5005
5006 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5007 #define XFREE(stale) do { \
5008 if (stale) { free ((void *) stale); stale = 0; } \
5009 } while (0)
5010
5011 /* -DDEBUG is fairly common in CFLAGS. */
5012 #undef DEBUG
5013 #if defined DEBUGWRAPPER
5014 # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5015 #else
5016 # define DEBUG(format, ...)
5017 #endif
5018
5019 const char *program_name = NULL;
5020
5021 void * xmalloc (size_t num);
5022 char * xstrdup (const char *string);
5023 const char * base_name (const char *name);
5024 char * find_executable(const char *wrapper);
5025 int check_executable(const char *path);
5026 char * strendzap(char *str, const char *pat);
5027 void lt_fatal (const char *message, ...);
5028
5029 int
5030 main (int argc, char *argv[])
5031 {
5032 char **newargz;
5033 int i;
5034
5035 program_name = (char *) xstrdup (base_name (argv[0]));
5036 DEBUG("(main) argv[0] : %s\n",argv[0]);
5037 DEBUG("(main) program_name : %s\n",program_name);
5038 newargz = XMALLOC(char *, argc+2);
5039 EOF
5040
5041 cat >> $cwrappersource <<EOF
5042 newargz[0] = (char *) xstrdup("$SHELL");
5043 EOF
5044
5045 cat >> $cwrappersource <<"EOF"
5046 newargz[1] = find_executable(argv[0]);
5047 if (newargz[1] == NULL)
5048 lt_fatal("Couldn't find %s", argv[0]);
5049 DEBUG("(main) found exe at : %s\n",newargz[1]);
5050 /* we know the script has the same name, without the .exe */
5051 /* so make sure newargz[1] doesn't end in .exe */
5052 strendzap(newargz[1],".exe");
5053 for (i = 1; i < argc; i++)
5054 newargz[i+1] = xstrdup(argv[i]);
5055 newargz[argc+1] = NULL;
5056
5057 for (i=0; i<argc+1; i++)
5058 {
5059 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5060 ;
5061 }
5062
5063 EOF
5064
5065 case $host_os in
5066 mingw*)
5067 cat >> $cwrappersource <<EOF
5068 execv("$SHELL",(char const **)newargz);
5069 EOF
5070 ;;
5071 *)
5072 cat >> $cwrappersource <<EOF
5073 execv("$SHELL",newargz);
5074 EOF
5075 ;;
5076 esac
5077
5078 cat >> $cwrappersource <<"EOF"
5079 return 127;
5080 }
5081
5082 void *
5083 xmalloc (size_t num)
5084 {
5085 void * p = (void *) malloc (num);
5086 if (!p)
5087 lt_fatal ("Memory exhausted");
5088
5089 return p;
5090 }
5091
5092 char *
5093 xstrdup (const char *string)
5094 {
5095 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5096 ;
5097 }
5098
5099 const char *
5100 base_name (const char *name)
5101 {
5102 const char *base;
5103
5104 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5105 /* Skip over the disk name in MSDOS pathnames. */
5106 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5107 name += 2;
5108 #endif
5109
5110 for (base = name; *name; name++)
5111 if (IS_DIR_SEPARATOR (*name))
5112 base = name + 1;
5113 return base;
5114 }
5115
5116 int
5117 check_executable(const char * path)
5118 {
5119 struct stat st;
5120
5121 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5122 if ((!path) || (!*path))
5123 return 0;
5124
5125 if ((stat (path, &st) >= 0) &&
5126 (
5127 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5128 #if defined (S_IXOTH)
5129 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5130 #endif
5131 #if defined (S_IXGRP)
5132 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5133 #endif
5134 ((st.st_mode & S_IXUSR) == S_IXUSR))
5135 )
5136 return 1;
5137 else
5138 return 0;
5139 }
5140
5141 /* Searches for the full path of the wrapper. Returns
5142 newly allocated full path name if found, NULL otherwise */
5143 char *
5144 find_executable (const char* wrapper)
5145 {
5146 int has_slash = 0;
5147 const char* p;
5148 const char* p_next;
5149 /* static buffer for getcwd */
5150 char tmp[LT_PATHMAX + 1];
5151 int tmp_len;
5152 char* concat_name;
5153
5154 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5155
5156 if ((wrapper == NULL) || (*wrapper == '\0'))
5157 return NULL;
5158
5159 /* Absolute path? */
5160 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5161 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5162 {
5163 concat_name = xstrdup (wrapper);
5164 if (check_executable(concat_name))
5165 return concat_name;
5166 XFREE(concat_name);
5167 }
5168 else
5169 {
5170 #endif
5171 if (IS_DIR_SEPARATOR (wrapper[0]))
5172 {
5173 concat_name = xstrdup (wrapper);
5174 if (check_executable(concat_name))
5175 return concat_name;
5176 XFREE(concat_name);
5177 }
5178 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5179 }
5180 #endif
5181
5182 for (p = wrapper; *p; p++)
5183 if (*p == '/')
5184 {
5185 has_slash = 1;
5186 break;
5187 }
5188 if (!has_slash)
5189 {
5190 /* no slashes; search PATH */
5191 const char* path = getenv ("PATH");
5192 if (path != NULL)
5193 {
5194 for (p = path; *p; p = p_next)
5195 {
5196 const char* q;
5197 size_t p_len;
5198 for (q = p; *q; q++)
5199 if (IS_PATH_SEPARATOR(*q))
5200 break;
5201 p_len = q - p;
5202 p_next = (*q == '\0' ? q : q + 1);
5203 if (p_len == 0)
5204 {
5205 /* empty path: current directory */
5206 if (getcwd (tmp, LT_PATHMAX) == NULL)
5207 lt_fatal ("getcwd failed");
5208 tmp_len = strlen(tmp);
5209 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5210 memcpy (concat_name, tmp, tmp_len);
5211 concat_name[tmp_len] = '/';
5212 strcpy (concat_name + tmp_len + 1, wrapper);
5213 }
5214 else
5215 {
5216 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5217 memcpy (concat_name, p, p_len);
5218 concat_name[p_len] = '/';
5219 strcpy (concat_name + p_len + 1, wrapper);
5220 }
5221 if (check_executable(concat_name))
5222 return concat_name;
5223 XFREE(concat_name);
5224 }
5225 }
5226 /* not found in PATH; assume curdir */
5227 }
5228 /* Relative path | not found in path: prepend cwd */
5229 if (getcwd (tmp, LT_PATHMAX) == NULL)
5230 lt_fatal ("getcwd failed");
5231 tmp_len = strlen(tmp);
5232 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5233 memcpy (concat_name, tmp, tmp_len);
5234 concat_name[tmp_len] = '/';
5235 strcpy (concat_name + tmp_len + 1, wrapper);
5236
5237 if (check_executable(concat_name))
5238 return concat_name;
5239 XFREE(concat_name);
5240 return NULL;
5241 }
5242
5243 char *
5244 strendzap(char *str, const char *pat)
5245 {
5246 size_t len, patlen;
5247
5248 assert(str != NULL);
5249 assert(pat != NULL);
5250
5251 len = strlen(str);
5252 patlen = strlen(pat);
5253
5254 if (patlen <= len)
5255 {
5256 str += len - patlen;
5257 if (strcmp(str, pat) == 0)
5258 *str = '\0';
5259 }
5260 return str;
5261 }
5262
5263 static void
5264 lt_error_core (int exit_status, const char * mode,
5265 const char * message, va_list ap)
5266 {
5267 fprintf (stderr, "%s: %s: ", program_name, mode);
5268 vfprintf (stderr, message, ap);
5269 fprintf (stderr, ".\n");
5270
5271 if (exit_status >= 0)
5272 exit (exit_status);
5273 }
5274
5275 void
5276 lt_fatal (const char *message, ...)
5277 {
5278 va_list ap;
5279 va_start (ap, message);
5280 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5281 va_end (ap);
5282 }
5283 EOF
5284 # we should really use a build-platform specific compiler
5285 # here, but OTOH, the wrappers (shell script and this C one)
5286 # are only useful if you want to execute the "real" binary.
5287 # Since the "real" binary is built for $host, then this
5288 # wrapper might as well be built for $host, too.
5289 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5290 ;;
5291 esac
5292 $rm $output
5293 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5294
5295 $echo > $output "\
5296 #! $SHELL
5297
5298 # $output - temporary wrapper script for $objdir/$outputname
5299 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5300 #
5301 # The $output program cannot be directly executed until all the libtool
5302 # libraries that it depends on are installed.
5303 #
5304 # This wrapper script should never be moved out of the build directory.
5305 # If it is, it will not operate correctly.
5306
5307 # Sed substitution that helps us do robust quoting. It backslashifies
5308 # metacharacters that are still active within double-quoted strings.
5309 Xsed='${SED} -e 1s/^X//'
5310 sed_quote_subst='$sed_quote_subst'
5311
5312 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5313 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5314 emulate sh
5315 NULLCMD=:
5316 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5317 # is contrary to our usage. Disable this feature.
5318 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5319 setopt NO_GLOB_SUBST
5320 else
5321 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5322 fi
5323 BIN_SH=xpg4; export BIN_SH # for Tru64
5324 DUALCASE=1; export DUALCASE # for MKS sh
5325
5326 # The HP-UX ksh and POSIX shell print the target directory to stdout
5327 # if CDPATH is set.
5328 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5329
5330 relink_command=\"$relink_command\"
5331
5332 # This environment variable determines our operation mode.
5333 if test \"\$libtool_install_magic\" = \"$magic\"; then
5334 # install mode needs the following variable:
5335 notinst_deplibs='$notinst_deplibs'
5336 else
5337 # When we are sourced in execute mode, \$file and \$echo are already set.
5338 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5339 echo=\"$qecho\"
5340 file=\"\$0\"
5341 # Make sure echo works.
5342 if test \"X\$1\" = X--no-reexec; then
5343 # Discard the --no-reexec flag, and continue.
5344 shift
5345 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
5346 # Yippee, \$echo works!
5347 :
5348 else
5349 # Restart under the correct shell, and then maybe \$echo will work.
5350 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5351 fi
5352 fi\
5353 "
5354 $echo >> $output "\
5355
5356 # Find the directory that this script lives in.
5357 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
5358 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5359
5360 # Follow symbolic links until we get to the real thisdir.
5361 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
5362 while test -n \"\$file\"; do
5363 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
5364
5365 # If there was a directory component, then change thisdir.
5366 if test \"x\$destdir\" != \"x\$file\"; then
5367 case \"\$destdir\" in
5368 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5369 *) thisdir=\"\$thisdir/\$destdir\" ;;
5370 esac
5371 fi
5372
5373 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
5374 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
5375 done
5376
5377 # Try to get the absolute directory name.
5378 absdir=\`cd \"\$thisdir\" && pwd\`
5379 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5380 "
5381
5382 if test "$fast_install" = yes; then
5383 $echo >> $output "\
5384 program=lt-'$outputname'$exeext
5385 progdir=\"\$thisdir/$objdir\"
5386
5387 if test ! -f \"\$progdir/\$program\" || \\
5388 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5389 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5390
5391 file=\"\$\$-\$program\"
5392
5393 if test ! -d \"\$progdir\"; then
5394 $mkdir \"\$progdir\"
5395 else
5396 $rm \"\$progdir/\$file\"
5397 fi"
5398
5399 $echo >> $output "\
5400
5401 # relink executable if necessary
5402 if test -n \"\$relink_command\"; then
5403 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5404 else
5405 $echo \"\$relink_command_output\" >&2
5406 $rm \"\$progdir/\$file\"
5407 exit $EXIT_FAILURE
5408 fi
5409 fi
5410
5411 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5412 { $rm \"\$progdir/\$program\";
5413 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5414 $rm \"\$progdir/\$file\"
5415 fi"
5416 else
5417 $echo >> $output "\
5418 program='$outputname'
5419 progdir=\"\$thisdir/$objdir\"
5420 "
5421 fi
5422
5423 $echo >> $output "\
5424
5425 if test -f \"\$progdir/\$program\"; then"
5426
5427 # Export our shlibpath_var if we have one.
5428 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5429 $echo >> $output "\
5430 # Add our own library path to $shlibpath_var
5431 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5432
5433 # Some systems cannot cope with colon-terminated $shlibpath_var
5434 # The second colon is a workaround for a bug in BeOS R4 sed
5435 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
5436
5437 export $shlibpath_var
5438 "
5439 fi
5440
5441 # fixup the dll searchpath if we need to.
5442 if test -n "$dllsearchpath"; then
5443 $echo >> $output "\
5444 # Add the dll search path components to the executable PATH
5445 PATH=$dllsearchpath:\$PATH
5446 "
5447 fi
5448
5449 $echo >> $output "\
5450 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5451 # Run the actual program with our arguments.
5452 "
5453 case $host in
5454 # Backslashes separate directories on plain windows
5455 *-*-mingw | *-*-os2*)
5456 $echo >> $output "\
5457 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5458 "
5459 ;;
5460
5461 *)
5462 $echo >> $output "\
5463 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5464 "
5465 ;;
5466 esac
5467 $echo >> $output "\
5468 \$echo \"\$0: cannot exec \$program \$*\"
5469 exit $EXIT_FAILURE
5470 fi
5471 else
5472 # The program doesn't exist.
5473 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5474 \$echo \"This script is just a wrapper for \$program.\" 1>&2
5475 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5476 exit $EXIT_FAILURE
5477 fi
5478 fi\
5479 "
5480 chmod +x $output
5481 fi
5482 exit $EXIT_SUCCESS
5483 ;;
5484 esac
5485
5486 # See if we need to build an old-fashioned archive.
5487 for oldlib in $oldlibs; do
5488
5489 if test "$build_libtool_libs" = convenience; then
5490 oldobjs="$libobjs_save"
5491 addlibs="$convenience"
5492 build_libtool_libs=no
5493 else
5494 if test "$build_libtool_libs" = module; then
5495 oldobjs="$libobjs_save"
5496 build_libtool_libs=no
5497 else
5498 oldobjs="$old_deplibs $non_pic_objects"
5499 fi
5500 addlibs="$old_convenience"
5501 fi
5502
5503 if test -n "$addlibs"; then
5504 gentop="$output_objdir/${outputname}x"
5505 generated="$generated $gentop"
5506
5507 func_extract_archives $gentop $addlibs
5508 oldobjs="$oldobjs $func_extract_archives_result"
5509 fi
5510
5511 # Do each command in the archive commands.
5512 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5513 cmds=$old_archive_from_new_cmds
5514 else
5515 # POSIX demands no paths to be encoded in archives. We have
5516 # to avoid creating archives with duplicate basenames if we
5517 # might have to extract them afterwards, e.g., when creating a
5518 # static archive out of a convenience library, or when linking
5519 # the entirety of a libtool archive into another (currently
5520 # not supported by libtool).
5521 if (for obj in $oldobjs
5522 do
5523 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5524 done | sort | sort -uc >/dev/null 2>&1); then
5525 :
5526 else
5527 $echo "copying selected object files to avoid basename conflicts..."
5528
5529 if test -z "$gentop"; then
5530 gentop="$output_objdir/${outputname}x"
5531 generated="$generated $gentop"
5532
5533 $show "${rm}r $gentop"
5534 $run ${rm}r "$gentop"
5535 $show "$mkdir $gentop"
5536 $run $mkdir "$gentop"
5537 exit_status=$?
5538 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5539 exit $exit_status
5540 fi
5541 fi
5542
5543 save_oldobjs=$oldobjs
5544 oldobjs=
5545 counter=1
5546 for obj in $save_oldobjs
5547 do
5548 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5549 case " $oldobjs " in
5550 " ") oldobjs=$obj ;;
5551 *[\ /]"$objbase "*)
5552 while :; do
5553 # Make sure we don't pick an alternate name that also
5554 # overlaps.
5555 newobj=lt$counter-$objbase
5556 counter=`expr $counter + 1`
5557 case " $oldobjs " in
5558 *[\ /]"$newobj "*) ;;
5559 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
5560 esac
5561 done
5562 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5563 $run ln "$obj" "$gentop/$newobj" ||
5564 $run cp "$obj" "$gentop/$newobj"
5565 oldobjs="$oldobjs $gentop/$newobj"
5566 ;;
5567 *) oldobjs="$oldobjs $obj" ;;
5568 esac
5569 done
5570 fi
5571
5572 eval cmds=\"$old_archive_cmds\"
5573
5574 if len=`expr "X$cmds" : ".*"` &&
5575 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5576 cmds=$old_archive_cmds
5577 else
5578 # the command line is too long to link in one step, link in parts
5579 $echo "using piecewise archive linking..."
5580 save_RANLIB=$RANLIB
5581 RANLIB=:
5582 objlist=
5583 concat_cmds=
5584 save_oldobjs=$oldobjs
5585
5586 # Is there a better way of finding the last object in the list?
5587 for obj in $save_oldobjs
5588 do
5589 last_oldobj=$obj
5590 done
5591 for obj in $save_oldobjs
5592 do
5593 oldobjs="$objlist $obj"
5594 objlist="$objlist $obj"
5595 eval test_cmds=\"$old_archive_cmds\"
5596 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5597 test "$len" -le "$max_cmd_len"; then
5598 :
5599 else
5600 # the above command should be used before it gets too long
5601 oldobjs=$objlist
5602 if test "$obj" = "$last_oldobj" ; then
5603 RANLIB=$save_RANLIB
5604 fi
5605 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5606 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5607 objlist=
5608 fi
5609 done
5610 RANLIB=$save_RANLIB
5611 oldobjs=$objlist
5612 if test "X$oldobjs" = "X" ; then
5613 eval cmds=\"\$concat_cmds\"
5614 else
5615 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
5616 fi
5617 fi
5618 fi
5619 save_ifs="$IFS"; IFS='~'
5620 for cmd in $cmds; do
5621 eval cmd=\"$cmd\"
5622 IFS="$save_ifs"
5623 $show "$cmd"
5624 $run eval "$cmd" || exit $?
5625 done
5626 IFS="$save_ifs"
5627 done
5628
5629 if test -n "$generated"; then
5630 $show "${rm}r$generated"
5631 $run ${rm}r$generated
5632 fi
5633
5634 # Now create the libtool archive.
5635 case $output in
5636 *.la)
5637 old_library=
5638 test "$build_old_libs" = yes && old_library="$libname.$libext"
5639 $show "creating $output"
5640
5641 # Preserve any variables that may affect compiler behavior
5642 for var in $variables_saved_for_relink; do
5643 if eval test -z \"\${$var+set}\"; then
5644 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
5645 elif eval var_value=\$$var; test -z "$var_value"; then
5646 relink_command="$var=; export $var; $relink_command"
5647 else
5648 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5649 relink_command="$var=\"$var_value\"; export $var; $relink_command"
5650 fi
5651 done
5652 # Quote the link command for shipping.
5653 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5654 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5655 if test "$hardcode_automatic" = yes ; then
5656 relink_command=
5657 fi
5658
5659
5660 # Only create the output if not a dry run.
5661 if test -z "$run"; then
5662 for installed in no yes; do
5663 if test "$installed" = yes; then
5664 if test -z "$install_libdir"; then
5665 break
5666 fi
5667 output="$output_objdir/$outputname"i
5668 # Replace all uninstalled libtool libraries with the installed ones
5669 newdependency_libs=
5670 for deplib in $dependency_libs; do
5671 case $deplib in
5672 *.la)
5673 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
5674 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5675 if test -z "$libdir"; then
5676 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5677 exit $EXIT_FAILURE
5678 fi
5679 newdependency_libs="$newdependency_libs $libdir/$name"
5680 ;;
5681 *) newdependency_libs="$newdependency_libs $deplib" ;;
5682 esac
5683 done
5684 dependency_libs="$newdependency_libs"
5685 newdlfiles=
5686 for lib in $dlfiles; do
5687 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5688 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5689 if test -z "$libdir"; then
5690 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5691 exit $EXIT_FAILURE
5692 fi
5693 newdlfiles="$newdlfiles $libdir/$name"
5694 done
5695 dlfiles="$newdlfiles"
5696 newdlprefiles=
5697 for lib in $dlprefiles; do
5698 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5699 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5700 if test -z "$libdir"; then
5701 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5702 exit $EXIT_FAILURE
5703 fi
5704 newdlprefiles="$newdlprefiles $libdir/$name"
5705 done
5706 dlprefiles="$newdlprefiles"
5707 else
5708 newdlfiles=
5709 for lib in $dlfiles; do
5710 case $lib in
5711 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5712 *) abs=`pwd`"/$lib" ;;
5713 esac
5714 newdlfiles="$newdlfiles $abs"
5715 done
5716 dlfiles="$newdlfiles"
5717 newdlprefiles=
5718 for lib in $dlprefiles; do
5719 case $lib in
5720 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5721 *) abs=`pwd`"/$lib" ;;
5722 esac
5723 newdlprefiles="$newdlprefiles $abs"
5724 done
5725 dlprefiles="$newdlprefiles"
5726 fi
5727 $rm $output
5728 # place dlname in correct position for cygwin
5729 tdlname=$dlname
5730 case $host,$output,$installed,$module,$dlname in
5731 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5732 esac
5733 $echo > $output "\
5734 # $outputname - a libtool library file
5735 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5736 #
5737 # Please DO NOT delete this file!
5738 # It is necessary for linking the library.
5739
5740 # The name that we can dlopen(3).
5741 dlname='$tdlname'
5742
5743 # Names of this library.
5744 library_names='$library_names'
5745
5746 # The name of the static archive.
5747 old_library='$old_library'
5748
5749 # Libraries that this one depends upon.
5750 dependency_libs='$dependency_libs'
5751
5752 # Version information for $libname.
5753 current=$current
5754 age=$age
5755 revision=$revision
5756
5757 # Is this an already installed library?
5758 installed=$installed
5759
5760 # Should we warn about portability when linking against -modules?
5761 shouldnotlink=$module
5762
5763 # Files to dlopen/dlpreopen
5764 dlopen='$dlfiles'
5765 dlpreopen='$dlprefiles'
5766
5767 # Directory that this library needs to be installed in:
5768 libdir='$install_libdir'"
5769 if test "$installed" = no && test "$need_relink" = yes; then
5770 $echo >> $output "\
5771 relink_command=\"$relink_command\""
5772 fi
5773 done
5774 fi
5775
5776 # Do a symbolic link so that the libtool archive can be found in
5777 # LD_LIBRARY_PATH before the program is installed.
5778 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5779 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
5780 ;;
5781 esac
5782 exit $EXIT_SUCCESS
5783 ;;
5784
5785 # libtool install mode
5786 install)
5787 modename="$modename: install"
5788
5789 # There may be an optional sh(1) argument at the beginning of
5790 # install_prog (especially on Windows NT).
5791 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5792 # Allow the use of GNU shtool's install command.
5793 $echo "X$nonopt" | grep shtool > /dev/null; then
5794 # Aesthetically quote it.
5795 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5796 case $arg in
5797 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5798 arg="\"$arg\""
5799 ;;
5800 esac
5801 install_prog="$arg "
5802 arg="$1"
5803 shift
5804 else
5805 install_prog=
5806 arg=$nonopt
5807 fi
5808
5809 # The real first argument should be the name of the installation program.
5810 # Aesthetically quote it.
5811 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5812 case $arg in
5813 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5814 arg="\"$arg\""
5815 ;;
5816 esac
5817 install_prog="$install_prog$arg"
5818
5819 # We need to accept at least all the BSD install flags.
5820 dest=
5821 files=
5822 opts=
5823 prev=
5824 install_type=
5825 isdir=no
5826 stripme=
5827 for arg
5828 do
5829 if test -n "$dest"; then
5830 files="$files $dest"
5831 dest=$arg
5832 continue
5833 fi
5834
5835 case $arg in
5836 -d) isdir=yes ;;
5837 -f)
5838 case " $install_prog " in
5839 *[\\\ /]cp\ *) ;;
5840 *) prev=$arg ;;
5841 esac
5842 ;;
5843 -g | -m | -o) prev=$arg ;;
5844 -s)
5845 stripme=" -s"
5846 continue
5847 ;;
5848 -*)
5849 ;;
5850 *)
5851 # If the previous option needed an argument, then skip it.
5852 if test -n "$prev"; then
5853 prev=
5854 else
5855 dest=$arg
5856 continue
5857 fi
5858 ;;
5859 esac
5860
5861 # Aesthetically quote the argument.
5862 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5863 case $arg in
5864 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5865 arg="\"$arg\""
5866 ;;
5867 esac
5868 install_prog="$install_prog $arg"
5869 done
5870
5871 if test -z "$install_prog"; then
5872 $echo "$modename: you must specify an install program" 1>&2
5873 $echo "$help" 1>&2
5874 exit $EXIT_FAILURE
5875 fi
5876
5877 if test -n "$prev"; then
5878 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5879 $echo "$help" 1>&2
5880 exit $EXIT_FAILURE
5881 fi
5882
5883 if test -z "$files"; then
5884 if test -z "$dest"; then
5885 $echo "$modename: no file or destination specified" 1>&2
5886 else
5887 $echo "$modename: you must specify a destination" 1>&2
5888 fi
5889 $echo "$help" 1>&2
5890 exit $EXIT_FAILURE
5891 fi
5892
5893 # Strip any trailing slash from the destination.
5894 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5895
5896 # Check to see that the destination is a directory.
5897 test -d "$dest" && isdir=yes
5898 if test "$isdir" = yes; then
5899 destdir="$dest"
5900 destname=
5901 else
5902 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5903 test "X$destdir" = "X$dest" && destdir=.
5904 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5905
5906 # Not a directory, so check to see that there is only one file specified.
5907 set dummy $files
5908 if test "$#" -gt 2; then
5909 $echo "$modename: \`$dest' is not a directory" 1>&2
5910 $echo "$help" 1>&2
5911 exit $EXIT_FAILURE
5912 fi
5913 fi
5914 case $destdir in
5915 [\\/]* | [A-Za-z]:[\\/]*) ;;
5916 *)
5917 for file in $files; do
5918 case $file in
5919 *.lo) ;;
5920 *)
5921 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5922 $echo "$help" 1>&2
5923 exit $EXIT_FAILURE
5924 ;;
5925 esac
5926 done
5927 ;;
5928 esac
5929
5930 # This variable tells wrapper scripts just to set variables rather
5931 # than running their programs.
5932 libtool_install_magic="$magic"
5933
5934 staticlibs=
5935 future_libdirs=
5936 current_libdirs=
5937 for file in $files; do
5938
5939 # Do each installation.
5940 case $file in
5941 *.$libext)
5942 # Do the static libraries later.
5943 staticlibs="$staticlibs $file"
5944 ;;
5945
5946 *.la)
5947 # Check to see that this really is a libtool archive.
5948 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5949 else
5950 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5951 $echo "$help" 1>&2
5952 exit $EXIT_FAILURE
5953 fi
5954
5955 library_names=
5956 old_library=
5957 relink_command=
5958 # If there is no directory component, then add one.
5959 case $file in
5960 */* | *\\*) . $file ;;
5961 *) . ./$file ;;
5962 esac
5963
5964 # Add the libdir to current_libdirs if it is the destination.
5965 if test "X$destdir" = "X$libdir"; then
5966 case "$current_libdirs " in
5967 *" $libdir "*) ;;
5968 *) current_libdirs="$current_libdirs $libdir" ;;
5969 esac
5970 else
5971 # Note the libdir as a future libdir.
5972 case "$future_libdirs " in
5973 *" $libdir "*) ;;
5974 *) future_libdirs="$future_libdirs $libdir" ;;
5975 esac
5976 fi
5977
5978 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
5979 test "X$dir" = "X$file/" && dir=
5980 dir="$dir$objdir"
5981
5982 if test -n "$relink_command"; then
5983 # Determine the prefix the user has applied to our future dir.
5984 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
5985
5986 # Don't allow the user to place us outside of our expected
5987 # location b/c this prevents finding dependent libraries that
5988 # are installed to the same prefix.
5989 # At present, this check doesn't affect windows .dll's that
5990 # are installed into $libdir/../bin (currently, that works fine)
5991 # but it's something to keep an eye on.
5992 if test "$inst_prefix_dir" = "$destdir"; then
5993 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
5994 exit $EXIT_FAILURE
5995 fi
5996
5997 if test -n "$inst_prefix_dir"; then
5998 # Stick the inst_prefix_dir data into the link command.
5999 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
6000 else
6001 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
6002 fi
6003
6004 $echo "$modename: warning: relinking \`$file'" 1>&2
6005 $show "$relink_command"
6006 if $run eval "$relink_command"; then :
6007 else
6008 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6009 exit $EXIT_FAILURE
6010 fi
6011 fi
6012
6013 # See the names of the shared library.
6014 set dummy $library_names
6015 if test -n "$2"; then
6016 realname="$2"
6017 shift
6018 shift
6019
6020 srcname="$realname"
6021 test -n "$relink_command" && srcname="$realname"T
6022
6023 # Install the shared library and build the symlinks.
6024 $show "$install_prog $dir/$srcname $destdir/$realname"
6025 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
6026 if test -n "$stripme" && test -n "$striplib"; then
6027 $show "$striplib $destdir/$realname"
6028 $run eval "$striplib $destdir/$realname" || exit $?
6029 fi
6030
6031 if test "$#" -gt 0; then
6032 # Delete the old symlinks, and create new ones.
6033 # Try `ln -sf' first, because the `ln' binary might depend on
6034 # the symlink we replace! Solaris /bin/ln does not understand -f,
6035 # so we also need to try rm && ln -s.
6036 for linkname
6037 do
6038 if test "$linkname" != "$realname"; then
6039 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6040 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6041 fi
6042 done
6043 fi
6044
6045 # Do each command in the postinstall commands.
6046 lib="$destdir/$realname"
6047 cmds=$postinstall_cmds
6048 save_ifs="$IFS"; IFS='~'
6049 for cmd in $cmds; do
6050 IFS="$save_ifs"
6051 eval cmd=\"$cmd\"
6052 $show "$cmd"
6053 $run eval "$cmd" || {
6054 lt_exit=$?
6055
6056 # Restore the uninstalled library and exit
6057 if test "$mode" = relink; then
6058 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
6059 fi
6060
6061 exit $lt_exit
6062 }
6063 done
6064 IFS="$save_ifs"
6065 fi
6066
6067 # Install the pseudo-library for information purposes.
6068 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6069 instname="$dir/$name"i
6070 $show "$install_prog $instname $destdir/$name"
6071 $run eval "$install_prog $instname $destdir/$name" || exit $?
6072
6073 # Maybe install the static library, too.
6074 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
6075 ;;
6076
6077 *.lo)
6078 # Install (i.e. copy) a libtool object.
6079
6080 # Figure out destination file name, if it wasn't already specified.
6081 if test -n "$destname"; then
6082 destfile="$destdir/$destname"
6083 else
6084 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6085 destfile="$destdir/$destfile"
6086 fi
6087
6088 # Deduce the name of the destination old-style object file.
6089 case $destfile in
6090 *.lo)
6091 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
6092 ;;
6093 *.$objext)
6094 staticdest="$destfile"
6095 destfile=
6096 ;;
6097 *)
6098 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
6099 $echo "$help" 1>&2
6100 exit $EXIT_FAILURE
6101 ;;
6102 esac
6103
6104 # Install the libtool object if requested.
6105 if test -n "$destfile"; then
6106 $show "$install_prog $file $destfile"
6107 $run eval "$install_prog $file $destfile" || exit $?
6108 fi
6109
6110 # Install the old object if enabled.
6111 if test "$build_old_libs" = yes; then
6112 # Deduce the name of the old-style object file.
6113 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
6114
6115 $show "$install_prog $staticobj $staticdest"
6116 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
6117 fi
6118 exit $EXIT_SUCCESS
6119 ;;
6120
6121 *)
6122 # Figure out destination file name, if it wasn't already specified.
6123 if test -n "$destname"; then
6124 destfile="$destdir/$destname"
6125 else
6126 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6127 destfile="$destdir/$destfile"
6128 fi
6129
6130 # If the file is missing, and there is a .exe on the end, strip it
6131 # because it is most likely a libtool script we actually want to
6132 # install
6133 stripped_ext=""
6134 case $file in
6135 *.exe)
6136 if test ! -f "$file"; then
6137 file=`$echo $file|${SED} 's,.exe$,,'`
6138 stripped_ext=".exe"
6139 fi
6140 ;;
6141 esac
6142
6143 # Do a test to see if this is really a libtool program.
6144 case $host in
6145 *cygwin*|*mingw*)
6146 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
6147 ;;
6148 *)
6149 wrapper=$file
6150 ;;
6151 esac
6152 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
6153 notinst_deplibs=
6154 relink_command=
6155
6156 # Note that it is not necessary on cygwin/mingw to append a dot to
6157 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6158 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6159 # `FILE.' does not work on cygwin managed mounts.
6160 #
6161 # If there is no directory component, then add one.
6162 case $wrapper in
6163 */* | *\\*) . ${wrapper} ;;
6164 *) . ./${wrapper} ;;
6165 esac
6166
6167 # Check the variables that should have been set.
6168 if test -z "$notinst_deplibs"; then
6169 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
6170 exit $EXIT_FAILURE
6171 fi
6172
6173 finalize=yes
6174 for lib in $notinst_deplibs; do
6175 # Check to see that each library is installed.
6176 libdir=
6177 if test -f "$lib"; then
6178 # If there is no directory component, then add one.
6179 case $lib in
6180 */* | *\\*) . $lib ;;
6181 *) . ./$lib ;;
6182 esac
6183 fi
6184 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6185 if test -n "$libdir" && test ! -f "$libfile"; then
6186 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
6187 finalize=no
6188 fi
6189 done
6190
6191 relink_command=
6192 # Note that it is not necessary on cygwin/mingw to append a dot to
6193 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6194 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6195 # `FILE.' does not work on cygwin managed mounts.
6196 #
6197 # If there is no directory component, then add one.
6198 case $wrapper in
6199 */* | *\\*) . ${wrapper} ;;
6200 *) . ./${wrapper} ;;
6201 esac
6202
6203 outputname=
6204 if test "$fast_install" = no && test -n "$relink_command"; then
6205 if test "$finalize" = yes && test -z "$run"; then
6206 tmpdir=`func_mktempdir`
6207 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6208 outputname="$tmpdir/$file"
6209 # Replace the output file specification.
6210 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6211
6212 $show "$relink_command"
6213 if $run eval "$relink_command"; then :
6214 else
6215 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6216 ${rm}r "$tmpdir"
6217 continue
6218 fi
6219 file="$outputname"
6220 else
6221 $echo "$modename: warning: cannot relink \`$file'" 1>&2
6222 fi
6223 else
6224 # Install the binary that we compiled earlier.
6225 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6226 fi
6227 fi
6228
6229 # remove .exe since cygwin /usr/bin/install will append another
6230 # one anyway
6231 case $install_prog,$host in
6232 */usr/bin/install*,*cygwin*)
6233 case $file:$destfile in
6234 *.exe:*.exe)
6235 # this is ok
6236 ;;
6237 *.exe:*)
6238 destfile=$destfile.exe
6239 ;;
6240 *:*.exe)
6241 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
6242 ;;
6243 esac
6244 ;;
6245 esac
6246 $show "$install_prog$stripme $file $destfile"
6247 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
6248 test -n "$outputname" && ${rm}r "$tmpdir"
6249 ;;
6250 esac
6251 done
6252
6253 for file in $staticlibs; do
6254 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6255
6256 # Set up the ranlib parameters.
6257 oldlib="$destdir/$name"
6258
6259 $show "$install_prog $file $oldlib"
6260 $run eval "$install_prog \$file \$oldlib" || exit $?
6261
6262 if test -n "$stripme" && test -n "$old_striplib"; then
6263 $show "$old_striplib $oldlib"
6264 $run eval "$old_striplib $oldlib" || exit $?
6265 fi
6266
6267 # Do each command in the postinstall commands.
6268 cmds=$old_postinstall_cmds
6269 save_ifs="$IFS"; IFS='~'
6270 for cmd in $cmds; do
6271 IFS="$save_ifs"
6272 eval cmd=\"$cmd\"
6273 $show "$cmd"
6274 $run eval "$cmd" || exit $?
6275 done
6276 IFS="$save_ifs"
6277 done
6278
6279 if test -n "$future_libdirs"; then
6280 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
6281 fi
6282
6283 if test -n "$current_libdirs"; then
6284 # Maybe just do a dry run.
6285 test -n "$run" && current_libdirs=" -n$current_libdirs"
6286 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
6287 else
6288 exit $EXIT_SUCCESS
6289 fi
6290 ;;
6291
6292 # libtool finish mode
6293 finish)
6294 modename="$modename: finish"
6295 libdirs="$nonopt"
6296 admincmds=
6297
6298 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
6299 for dir
6300 do
6301 libdirs="$libdirs $dir"
6302 done
6303
6304 for libdir in $libdirs; do
6305 if test -n "$finish_cmds"; then
6306 # Do each command in the finish commands.
6307 cmds=$finish_cmds
6308 save_ifs="$IFS"; IFS='~'
6309 for cmd in $cmds; do
6310 IFS="$save_ifs"
6311 eval cmd=\"$cmd\"
6312 $show "$cmd"
6313 $run eval "$cmd" || admincmds="$admincmds
6314 $cmd"
6315 done
6316 IFS="$save_ifs"
6317 fi
6318 if test -n "$finish_eval"; then
6319 # Do the single finish_eval.
6320 eval cmds=\"$finish_eval\"
6321 $run eval "$cmds" || admincmds="$admincmds
6322 $cmds"
6323 fi
6324 done
6325 fi
6326
6327 # Exit here if they wanted silent mode.
6328 test "$show" = : && exit $EXIT_SUCCESS
6329
6330 $echo "X----------------------------------------------------------------------" | $Xsed
6331 $echo "Libraries have been installed in:"
6332 for libdir in $libdirs; do
6333 $echo " $libdir"
6334 done
6335 $echo
6336 $echo "If you ever happen to want to link against installed libraries"
6337 $echo "in a given directory, LIBDIR, you must either use libtool, and"
6338 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6339 $echo "flag during linking and do at least one of the following:"
6340 if test -n "$shlibpath_var"; then
6341 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6342 $echo " during execution"
6343 fi
6344 if test -n "$runpath_var"; then
6345 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
6346 $echo " during linking"
6347 fi
6348 if test -n "$hardcode_libdir_flag_spec"; then
6349 libdir=LIBDIR
6350 eval flag=\"$hardcode_libdir_flag_spec\"
6351
6352 $echo " - use the \`$flag' linker flag"
6353 fi
6354 if test -n "$admincmds"; then
6355 $echo " - have your system administrator run these commands:$admincmds"
6356 fi
6357 if test -f /etc/ld.so.conf; then
6358 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6359 fi
6360 $echo
6361 $echo "See any operating system documentation about shared libraries for"
6362 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6363 $echo "X----------------------------------------------------------------------" | $Xsed
6364 exit $EXIT_SUCCESS
6365 ;;
6366
6367 # libtool execute mode
6368 execute)
6369 modename="$modename: execute"
6370
6371 # The first argument is the command name.
6372 cmd="$nonopt"
6373 if test -z "$cmd"; then
6374 $echo "$modename: you must specify a COMMAND" 1>&2
6375 $echo "$help"
6376 exit $EXIT_FAILURE
6377 fi
6378
6379 # Handle -dlopen flags immediately.
6380 for file in $execute_dlfiles; do
6381 if test ! -f "$file"; then
6382 $echo "$modename: \`$file' is not a file" 1>&2
6383 $echo "$help" 1>&2
6384 exit $EXIT_FAILURE
6385 fi
6386
6387 dir=
6388 case $file in
6389 *.la)
6390 # Check to see that this really is a libtool archive.
6391 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6392 else
6393 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6394 $echo "$help" 1>&2
6395 exit $EXIT_FAILURE
6396 fi
6397
6398 # Read the libtool library.
6399 dlname=
6400 library_names=
6401
6402 # If there is no directory component, then add one.
6403 case $file in
6404 */* | *\\*) . $file ;;
6405 *) . ./$file ;;
6406 esac
6407
6408 # Skip this library if it cannot be dlopened.
6409 if test -z "$dlname"; then
6410 # Warn if it was a shared library.
6411 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
6412 continue
6413 fi
6414
6415 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6416 test "X$dir" = "X$file" && dir=.
6417
6418 if test -f "$dir/$objdir/$dlname"; then
6419 dir="$dir/$objdir"
6420 else
6421 if test ! -f "$dir/$dlname"; then
6422 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6423 exit $EXIT_FAILURE
6424 fi
6425 fi
6426 ;;
6427
6428 *.lo)
6429 # Just add the directory containing the .lo file.
6430 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6431 test "X$dir" = "X$file" && dir=.
6432 ;;
6433
6434 *)
6435 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
6436 continue
6437 ;;
6438 esac
6439
6440 # Get the absolute pathname.
6441 absdir=`cd "$dir" && pwd`
6442 test -n "$absdir" && dir="$absdir"
6443
6444 # Now add the directory to shlibpath_var.
6445 if eval "test -z \"\$$shlibpath_var\""; then
6446 eval "$shlibpath_var=\"\$dir\""
6447 else
6448 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
6449 fi
6450 done
6451
6452 # This variable tells wrapper scripts just to set shlibpath_var
6453 # rather than running their programs.
6454 libtool_execute_magic="$magic"
6455
6456 # Check if any of the arguments is a wrapper script.
6457 args=
6458 for file
6459 do
6460 case $file in
6461 -*) ;;
6462 *)
6463 # Do a test to see if this is really a libtool program.
6464 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6465 # If there is no directory component, then add one.
6466 case $file in
6467 */* | *\\*) . $file ;;
6468 *) . ./$file ;;
6469 esac
6470
6471 # Transform arg to wrapped name.
6472 file="$progdir/$program"
6473 fi
6474 ;;
6475 esac
6476 # Quote arguments (to preserve shell metacharacters).
6477 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
6478 args="$args \"$file\""
6479 done
6480
6481 if test -z "$run"; then
6482 if test -n "$shlibpath_var"; then
6483 # Export the shlibpath_var.
6484 eval "export $shlibpath_var"
6485 fi
6486
6487 # Restore saved environment variables
6488 for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6489 do
6490 eval "if test \"\${save_$lt_var+set}\" = set; then
6491 $lt_var=\$save_$lt_var; export $lt_var
6492 fi"
6493 done
6494
6495 # Now prepare to actually exec the command.
6496 exec_cmd="\$cmd$args"
6497 else
6498 # Display what would be done.
6499 if test -n "$shlibpath_var"; then
6500 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6501 $echo "export $shlibpath_var"
6502 fi
6503 $echo "$cmd$args"
6504 exit $EXIT_SUCCESS
6505 fi
6506 ;;
6507
6508 # libtool clean and uninstall mode
6509 clean | uninstall)
6510 modename="$modename: $mode"
6511 rm="$nonopt"
6512 files=
6513 rmforce=
6514 exit_status=0
6515
6516 # This variable tells wrapper scripts just to set variables rather
6517 # than running their programs.
6518 libtool_install_magic="$magic"
6519
6520 for arg
6521 do
6522 case $arg in
6523 -f) rm="$rm $arg"; rmforce=yes ;;
6524 -*) rm="$rm $arg" ;;
6525 *) files="$files $arg" ;;
6526 esac
6527 done
6528
6529 if test -z "$rm"; then
6530 $echo "$modename: you must specify an RM program" 1>&2
6531 $echo "$help" 1>&2
6532 exit $EXIT_FAILURE
6533 fi
6534
6535 rmdirs=
6536
6537 origobjdir="$objdir"
6538 for file in $files; do
6539 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6540 if test "X$dir" = "X$file"; then
6541 dir=.
6542 objdir="$origobjdir"
6543 else
6544 objdir="$dir/$origobjdir"
6545 fi
6546 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6547 test "$mode" = uninstall && objdir="$dir"
6548
6549 # Remember objdir for removal later, being careful to avoid duplicates
6550 if test "$mode" = clean; then
6551 case " $rmdirs " in
6552 *" $objdir "*) ;;
6553 *) rmdirs="$rmdirs $objdir" ;;
6554 esac
6555 fi
6556
6557 # Don't error if the file doesn't exist and rm -f was used.
6558 if (test -L "$file") >/dev/null 2>&1 \
6559 || (test -h "$file") >/dev/null 2>&1 \
6560 || test -f "$file"; then
6561 :
6562 elif test -d "$file"; then
6563 exit_status=1
6564 continue
6565 elif test "$rmforce" = yes; then
6566 continue
6567 fi
6568
6569 rmfiles="$file"
6570
6571 case $name in
6572 *.la)
6573 # Possibly a libtool archive, so verify it.
6574 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6575 . $dir/$name
6576
6577 # Delete the libtool libraries and symlinks.
6578 for n in $library_names; do
6579 rmfiles="$rmfiles $objdir/$n"
6580 done
6581 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6582
6583 case "$mode" in
6584 clean)
6585 case " $library_names " in
6586 # " " in the beginning catches empty $dlname
6587 *" $dlname "*) ;;
6588 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6589 esac
6590 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6591 ;;
6592 uninstall)
6593 if test -n "$library_names"; then
6594 # Do each command in the postuninstall commands.
6595 cmds=$postuninstall_cmds
6596 save_ifs="$IFS"; IFS='~'
6597 for cmd in $cmds; do
6598 IFS="$save_ifs"
6599 eval cmd=\"$cmd\"
6600 $show "$cmd"
6601 $run eval "$cmd"
6602 if test "$?" -ne 0 && test "$rmforce" != yes; then
6603 exit_status=1
6604 fi
6605 done
6606 IFS="$save_ifs"
6607 fi
6608
6609 if test -n "$old_library"; then
6610 # Do each command in the old_postuninstall commands.
6611 cmds=$old_postuninstall_cmds
6612 save_ifs="$IFS"; IFS='~'
6613 for cmd in $cmds; do
6614 IFS="$save_ifs"
6615 eval cmd=\"$cmd\"
6616 $show "$cmd"
6617 $run eval "$cmd"
6618 if test "$?" -ne 0 && test "$rmforce" != yes; then
6619 exit_status=1
6620 fi
6621 done
6622 IFS="$save_ifs"
6623 fi
6624 # FIXME: should reinstall the best remaining shared library.
6625 ;;
6626 esac
6627 fi
6628 ;;
6629
6630 *.lo)
6631 # Possibly a libtool object, so verify it.
6632 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6633
6634 # Read the .lo file
6635 . $dir/$name
6636
6637 # Add PIC object to the list of files to remove.
6638 if test -n "$pic_object" \
6639 && test "$pic_object" != none; then
6640 rmfiles="$rmfiles $dir/$pic_object"
6641 fi
6642
6643 # Add non-PIC object to the list of files to remove.
6644 if test -n "$non_pic_object" \
6645 && test "$non_pic_object" != none; then
6646 rmfiles="$rmfiles $dir/$non_pic_object"
6647 fi
6648 fi
6649 ;;
6650
6651 *)
6652 if test "$mode" = clean ; then
6653 noexename=$name
6654 case $file in
6655 *.exe)
6656 file=`$echo $file|${SED} 's,.exe$,,'`
6657 noexename=`$echo $name|${SED} 's,.exe$,,'`
6658 # $file with .exe has already been added to rmfiles,
6659 # add $file without .exe
6660 rmfiles="$rmfiles $file"
6661 ;;
6662 esac
6663 # Do a test to see if this is a libtool program.
6664 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6665 relink_command=
6666 . $dir/$noexename
6667
6668 # note $name still contains .exe if it was in $file originally
6669 # as does the version of $file that was added into $rmfiles
6670 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
6671 if test "$fast_install" = yes && test -n "$relink_command"; then
6672 rmfiles="$rmfiles $objdir/lt-$name"
6673 fi
6674 if test "X$noexename" != "X$name" ; then
6675 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
6676 fi
6677 fi
6678 fi
6679 ;;
6680 esac
6681 $show "$rm $rmfiles"
6682 $run $rm $rmfiles || exit_status=1
6683 done
6684 objdir="$origobjdir"
6685
6686 # Try to remove the ${objdir}s in the directories where we deleted files
6687 for dir in $rmdirs; do
6688 if test -d "$dir"; then
6689 $show "rmdir $dir"
6690 $run rmdir $dir >/dev/null 2>&1
6691 fi
6692 done
6693
6694 exit $exit_status
6695 ;;
6696
6697 "")
6698 $echo "$modename: you must specify a MODE" 1>&2
6699 $echo "$generic_help" 1>&2
6700 exit $EXIT_FAILURE
6701 ;;
6702 esac
6703
6704 if test -z "$exec_cmd"; then
6705 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6706 $echo "$generic_help" 1>&2
6707 exit $EXIT_FAILURE
6708 fi
6709 fi # test -z "$show_help"
6710
6711 if test -n "$exec_cmd"; then
6712 eval exec $exec_cmd
6713 exit $EXIT_FAILURE
6714 fi
6715
6716 # We need to display help for each of the modes.
6717 case $mode in
6718 "") $echo \
6719 "Usage: $modename [OPTION]... [MODE-ARG]...
6720
6721 Provide generalized library-building support services.
6722
6723 --config show all configuration variables
6724 --debug enable verbose shell tracing
6725 -n, --dry-run display commands without modifying any files
6726 --features display basic configuration information and exit
6727 --finish same as \`--mode=finish'
6728 --help display this help message and exit
6729 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6730 --quiet same as \`--silent'
6731 --silent don't print informational messages
6732 --tag=TAG use configuration variables from tag TAG
6733 --version print version information
6734
6735 MODE must be one of the following:
6736
6737 clean remove files from the build directory
6738 compile compile a source file into a libtool object
6739 execute automatically set library path, then run a program
6740 finish complete the installation of libtool libraries
6741 install install libraries or executables
6742 link create a library or an executable
6743 uninstall remove libraries from an installed directory
6744
6745 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6746 a more detailed description of MODE.
6747
6748 Report bugs to <bug-libtool@gnu.org>."
6749 exit $EXIT_SUCCESS
6750 ;;
6751
6752 clean)
6753 $echo \
6754 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6755
6756 Remove files from the build directory.
6757
6758 RM is the name of the program to use to delete files associated with each FILE
6759 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6760 to RM.
6761
6762 If FILE is a libtool library, object or program, all the files associated
6763 with it are deleted. Otherwise, only FILE itself is deleted using RM."
6764 ;;
6765
6766 compile)
6767 $echo \
6768 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6769
6770 Compile a source file into a libtool library object.
6771
6772 This mode accepts the following additional options:
6773
6774 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6775 -prefer-pic try to building PIC objects only
6776 -prefer-non-pic try to building non-PIC objects only
6777 -static always build a \`.o' file suitable for static linking
6778
6779 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6780 from the given SOURCEFILE.
6781
6782 The output file name is determined by removing the directory component from
6783 SOURCEFILE, then substituting the C source code suffix \`.c' with the
6784 library object suffix, \`.lo'."
6785 ;;
6786
6787 execute)
6788 $echo \
6789 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6790
6791 Automatically set library path, then run a program.
6792
6793 This mode accepts the following additional options:
6794
6795 -dlopen FILE add the directory containing FILE to the library path
6796
6797 This mode sets the library path environment variable according to \`-dlopen'
6798 flags.
6799
6800 If any of the ARGS are libtool executable wrappers, then they are translated
6801 into their corresponding uninstalled binary, and any of their required library
6802 directories are added to the library path.
6803
6804 Then, COMMAND is executed, with ARGS as arguments."
6805 ;;
6806
6807 finish)
6808 $echo \
6809 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6810
6811 Complete the installation of libtool libraries.
6812
6813 Each LIBDIR is a directory that contains libtool libraries.
6814
6815 The commands that this mode executes may require superuser privileges. Use
6816 the \`--dry-run' option if you just want to see what would be executed."
6817 ;;
6818
6819 install)
6820 $echo \
6821 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6822
6823 Install executables or libraries.
6824
6825 INSTALL-COMMAND is the installation command. The first component should be
6826 either the \`install' or \`cp' program.
6827
6828 The rest of the components are interpreted as arguments to that command (only
6829 BSD-compatible install options are recognized)."
6830 ;;
6831
6832 link)
6833 $echo \
6834 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6835
6836 Link object files or libraries together to form another library, or to
6837 create an executable program.
6838
6839 LINK-COMMAND is a command using the C compiler that you would use to create
6840 a program from several object files.
6841
6842 The following components of LINK-COMMAND are treated specially:
6843
6844 -all-static do not do any dynamic linking at all
6845 -avoid-version do not add a version suffix if possible
6846 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6847 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6848 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6849 -export-symbols SYMFILE
6850 try to export only the symbols listed in SYMFILE
6851 -export-symbols-regex REGEX
6852 try to export only the symbols matching REGEX
6853 -LLIBDIR search LIBDIR for required installed libraries
6854 -lNAME OUTPUT-FILE requires the installed library libNAME
6855 -module build a library that can dlopened
6856 -no-fast-install disable the fast-install mode
6857 -no-install link a not-installable executable
6858 -no-undefined declare that a library does not refer to external symbols
6859 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6860 -objectlist FILE Use a list of object files found in FILE to specify objects
6861 -precious-files-regex REGEX
6862 don't remove output files matching REGEX
6863 -release RELEASE specify package release information
6864 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6865 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6866 -static do not do any dynamic linking of uninstalled libtool libraries
6867 -static-libtool-libs
6868 do not do any dynamic linking of libtool libraries
6869 -version-info CURRENT[:REVISION[:AGE]]
6870 specify library version info [each variable defaults to 0]
6871
6872 All other options (arguments beginning with \`-') are ignored.
6873
6874 Every other argument is treated as a filename. Files ending in \`.la' are
6875 treated as uninstalled libtool libraries, other files are standard or library
6876 object files.
6877
6878 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6879 only library objects (\`.lo' files) may be specified, and \`-rpath' is
6880 required, except when creating a convenience library.
6881
6882 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6883 using \`ar' and \`ranlib', or on Windows using \`lib'.
6884
6885 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6886 is created, otherwise an executable program is created."
6887 ;;
6888
6889 uninstall)
6890 $echo \
6891 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6892
6893 Remove libraries from an installation directory.
6894
6895 RM is the name of the program to use to delete files associated with each FILE
6896 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6897 to RM.
6898
6899 If FILE is a libtool library, all the files associated with it are deleted.
6900 Otherwise, only FILE itself is deleted using RM."
6901 ;;
6902
6903 *)
6904 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6905 $echo "$help" 1>&2
6906 exit $EXIT_FAILURE
6907 ;;
6908 esac
6909
6910 $echo
6911 $echo "Try \`$modename --help' for more information about other modes."
6912
6913 exit $?
6914
6915 # The TAGs below are defined such that we never get into a situation
6916 # in which we disable both kinds of libraries. Given conflicting
6917 # choices, we go for a static library, that is the most portable,
6918 # since we can't tell whether shared libraries were disabled because
6919 # the user asked for that or because the platform doesn't support
6920 # them. This is particularly important on AIX, because we don't
6921 # support having both static and shared libraries enabled at the same
6922 # time on that platform, so we default to a shared-only configuration.
6923 # If a disable-shared tag is given, we'll fallback to a static-only
6924 # configuration. But we'll never go from static-only to shared-only.
6925
6926 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6927 disable_libs=shared
6928 # ### END LIBTOOL TAG CONFIG: disable-shared
6929
6930 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
6931 disable_libs=static
6932 # ### END LIBTOOL TAG CONFIG: disable-static
6933
6934 # Local Variables:
6935 # mode:shell-script
6936 # sh-indentation:2
6937 # End:
0 # gettext.m4 serial 60 (gettext-0.17)
1 dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5 dnl
6 dnl This file can can be used in projects which are not available under
7 dnl the GNU General Public License or the GNU Library General Public
8 dnl License but which still want to provide support for the GNU gettext
9 dnl functionality.
10 dnl Please note that the actual code of the GNU gettext library is covered
11 dnl by the GNU Library General Public License, and the rest of the GNU
12 dnl gettext package package is covered by the GNU General Public License.
13 dnl They are *not* in the public domain.
14
15 dnl Authors:
16 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
17 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.
18
19 dnl Macro to add for using GNU gettext.
20
21 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
22 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
23 dnl default (if it is not specified or empty) is 'no-libtool'.
24 dnl INTLSYMBOL should be 'external' for packages with no intl directory,
25 dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
26 dnl If INTLSYMBOL is 'use-libtool', then a libtool library
27 dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
28 dnl depending on --{enable,disable}-{shared,static} and on the presence of
29 dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
30 dnl $(top_builddir)/intl/libintl.a will be created.
31 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
32 dnl implementations (in libc or libintl) without the ngettext() function
33 dnl will be ignored. If NEEDSYMBOL is specified and is
34 dnl 'need-formatstring-macros', then GNU gettext implementations that don't
35 dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
36 dnl INTLDIR is used to find the intl libraries. If empty,
37 dnl the value `$(top_builddir)/intl/' is used.
38 dnl
39 dnl The result of the configuration is one of three cases:
40 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
41 dnl and used.
42 dnl Catalog format: GNU --> install in $(datadir)
43 dnl Catalog extension: .mo after installation, .gmo in source tree
44 dnl 2) GNU gettext has been found in the system's C library.
45 dnl Catalog format: GNU --> install in $(datadir)
46 dnl Catalog extension: .mo after installation, .gmo in source tree
47 dnl 3) No internationalization, always use English msgid.
48 dnl Catalog format: none
49 dnl Catalog extension: none
50 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
51 dnl The use of .gmo is historical (it was needed to avoid overwriting the
52 dnl GNU format catalogs when building on a platform with an X/Open gettext),
53 dnl but we keep it in order not to force irrelevant filename changes on the
54 dnl maintainers.
55 dnl
56 AC_DEFUN([AM_GNU_GETTEXT],
57 [
58 dnl Argument checking.
59 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
60 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
61 ])])])])])
62 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
63 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
64 ])])])])
65 define([gt_included_intl],
66 ifelse([$1], [external],
67 ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
68 [yes]))
69 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
70 gt_NEEDS_INIT
71 AM_GNU_GETTEXT_NEED([$2])
72
73 AC_REQUIRE([AM_PO_SUBDIRS])dnl
74 ifelse(gt_included_intl, yes, [
75 AC_REQUIRE([AM_INTL_SUBDIR])dnl
76 ])
77
78 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
79 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
80 AC_REQUIRE([AC_LIB_RPATH])
81
82 dnl Sometimes libintl requires libiconv, so first search for libiconv.
83 dnl Ideally we would do this search only after the
84 dnl if test "$USE_NLS" = "yes"; then
85 dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
86 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
87 dnl the configure script would need to contain the same shell code
88 dnl again, outside any 'if'. There are two solutions:
89 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
90 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
91 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
92 dnl documented, we avoid it.
93 ifelse(gt_included_intl, yes, , [
94 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
95 ])
96
97 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
98 gt_INTL_MACOSX
99
100 dnl Set USE_NLS.
101 AC_REQUIRE([AM_NLS])
102
103 ifelse(gt_included_intl, yes, [
104 BUILD_INCLUDED_LIBINTL=no
105 USE_INCLUDED_LIBINTL=no
106 ])
107 LIBINTL=
108 LTLIBINTL=
109 POSUB=
110
111 dnl Add a version number to the cache macros.
112 case " $gt_needs " in
113 *" need-formatstring-macros "*) gt_api_version=3 ;;
114 *" need-ngettext "*) gt_api_version=2 ;;
115 *) gt_api_version=1 ;;
116 esac
117 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
118 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
119
120 dnl If we use NLS figure out what method
121 if test "$USE_NLS" = "yes"; then
122 gt_use_preinstalled_gnugettext=no
123 ifelse(gt_included_intl, yes, [
124 AC_MSG_CHECKING([whether included gettext is requested])
125 AC_ARG_WITH(included-gettext,
126 [ --with-included-gettext use the GNU gettext library included here],
127 nls_cv_force_use_gnu_gettext=$withval,
128 nls_cv_force_use_gnu_gettext=no)
129 AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
130
131 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
132 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
133 ])
134 dnl User does not insist on using GNU NLS library. Figure out what
135 dnl to use. If GNU gettext is available we use this. Else we have
136 dnl to fall back to GNU NLS library.
137
138 if test $gt_api_version -ge 3; then
139 gt_revision_test_code='
140 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
141 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
142 #endif
143 changequote(,)dnl
144 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
145 changequote([,])dnl
146 '
147 else
148 gt_revision_test_code=
149 fi
150 if test $gt_api_version -ge 2; then
151 gt_expression_test_code=' + * ngettext ("", "", 0)'
152 else
153 gt_expression_test_code=
154 fi
155
156 AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
157 [AC_TRY_LINK([#include <libintl.h>
158 $gt_revision_test_code
159 extern int _nl_msg_cat_cntr;
160 extern int *_nl_domain_bindings;],
161 [bindtextdomain ("", "");
162 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
163 [eval "$gt_func_gnugettext_libc=yes"],
164 [eval "$gt_func_gnugettext_libc=no"])])
165
166 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
167 dnl Sometimes libintl requires libiconv, so first search for libiconv.
168 ifelse(gt_included_intl, yes, , [
169 AM_ICONV_LINK
170 ])
171 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
172 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
173 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
174 dnl even if libiconv doesn't exist.
175 AC_LIB_LINKFLAGS_BODY([intl])
176 AC_CACHE_CHECK([for GNU gettext in libintl],
177 [$gt_func_gnugettext_libintl],
178 [gt_save_CPPFLAGS="$CPPFLAGS"
179 CPPFLAGS="$CPPFLAGS $INCINTL"
180 gt_save_LIBS="$LIBS"
181 LIBS="$LIBS $LIBINTL"
182 dnl Now see whether libintl exists and does not depend on libiconv.
183 AC_TRY_LINK([#include <libintl.h>
184 $gt_revision_test_code
185 extern int _nl_msg_cat_cntr;
186 extern
187 #ifdef __cplusplus
188 "C"
189 #endif
190 const char *_nl_expand_alias (const char *);],
191 [bindtextdomain ("", "");
192 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
193 [eval "$gt_func_gnugettext_libintl=yes"],
194 [eval "$gt_func_gnugettext_libintl=no"])
195 dnl Now see whether libintl exists and depends on libiconv.
196 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
197 LIBS="$LIBS $LIBICONV"
198 AC_TRY_LINK([#include <libintl.h>
199 $gt_revision_test_code
200 extern int _nl_msg_cat_cntr;
201 extern
202 #ifdef __cplusplus
203 "C"
204 #endif
205 const char *_nl_expand_alias (const char *);],
206 [bindtextdomain ("", "");
207 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
208 [LIBINTL="$LIBINTL $LIBICONV"
209 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
210 eval "$gt_func_gnugettext_libintl=yes"
211 ])
212 fi
213 CPPFLAGS="$gt_save_CPPFLAGS"
214 LIBS="$gt_save_LIBS"])
215 fi
216
217 dnl If an already present or preinstalled GNU gettext() is found,
218 dnl use it. But if this macro is used in GNU gettext, and GNU
219 dnl gettext is already preinstalled in libintl, we update this
220 dnl libintl. (Cf. the install rule in intl/Makefile.in.)
221 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
222 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
223 && test "$PACKAGE" != gettext-runtime \
224 && test "$PACKAGE" != gettext-tools; }; then
225 gt_use_preinstalled_gnugettext=yes
226 else
227 dnl Reset the values set by searching for libintl.
228 LIBINTL=
229 LTLIBINTL=
230 INCINTL=
231 fi
232
233 ifelse(gt_included_intl, yes, [
234 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
235 dnl GNU gettext is not found in the C library.
236 dnl Fall back on included GNU gettext library.
237 nls_cv_use_gnu_gettext=yes
238 fi
239 fi
240
241 if test "$nls_cv_use_gnu_gettext" = "yes"; then
242 dnl Mark actions used to generate GNU NLS library.
243 BUILD_INCLUDED_LIBINTL=yes
244 USE_INCLUDED_LIBINTL=yes
245 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
246 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
247 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
248 fi
249
250 CATOBJEXT=
251 if test "$gt_use_preinstalled_gnugettext" = "yes" \
252 || test "$nls_cv_use_gnu_gettext" = "yes"; then
253 dnl Mark actions to use GNU gettext tools.
254 CATOBJEXT=.gmo
255 fi
256 ])
257
258 if test -n "$INTL_MACOSX_LIBS"; then
259 if test "$gt_use_preinstalled_gnugettext" = "yes" \
260 || test "$nls_cv_use_gnu_gettext" = "yes"; then
261 dnl Some extra flags are needed during linking.
262 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
263 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
264 fi
265 fi
266
267 if test "$gt_use_preinstalled_gnugettext" = "yes" \
268 || test "$nls_cv_use_gnu_gettext" = "yes"; then
269 AC_DEFINE(ENABLE_NLS, 1,
270 [Define to 1 if translation of program messages to the user's native language
271 is requested.])
272 else
273 USE_NLS=no
274 fi
275 fi
276
277 AC_MSG_CHECKING([whether to use NLS])
278 AC_MSG_RESULT([$USE_NLS])
279 if test "$USE_NLS" = "yes"; then
280 AC_MSG_CHECKING([where the gettext function comes from])
281 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
282 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
283 gt_source="external libintl"
284 else
285 gt_source="libc"
286 fi
287 else
288 gt_source="included intl directory"
289 fi
290 AC_MSG_RESULT([$gt_source])
291 fi
292
293 if test "$USE_NLS" = "yes"; then
294
295 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
296 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
297 AC_MSG_CHECKING([how to link with libintl])
298 AC_MSG_RESULT([$LIBINTL])
299 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
300 fi
301
302 dnl For backward compatibility. Some packages may be using this.
303 AC_DEFINE(HAVE_GETTEXT, 1,
304 [Define if the GNU gettext() function is already present or preinstalled.])
305 AC_DEFINE(HAVE_DCGETTEXT, 1,
306 [Define if the GNU dcgettext() function is already present or preinstalled.])
307 fi
308
309 dnl We need to process the po/ directory.
310 POSUB=po
311 fi
312
313 ifelse(gt_included_intl, yes, [
314 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
315 dnl to 'yes' because some of the testsuite requires it.
316 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
317 BUILD_INCLUDED_LIBINTL=yes
318 fi
319
320 dnl Make all variables we use known to autoconf.
321 AC_SUBST(BUILD_INCLUDED_LIBINTL)
322 AC_SUBST(USE_INCLUDED_LIBINTL)
323 AC_SUBST(CATOBJEXT)
324
325 dnl For backward compatibility. Some configure.ins may be using this.
326 nls_cv_header_intl=
327 nls_cv_header_libgt=
328
329 dnl For backward compatibility. Some Makefiles may be using this.
330 DATADIRNAME=share
331 AC_SUBST(DATADIRNAME)
332
333 dnl For backward compatibility. Some Makefiles may be using this.
334 INSTOBJEXT=.mo
335 AC_SUBST(INSTOBJEXT)
336
337 dnl For backward compatibility. Some Makefiles may be using this.
338 GENCAT=gencat
339 AC_SUBST(GENCAT)
340
341 dnl For backward compatibility. Some Makefiles may be using this.
342 INTLOBJS=
343 if test "$USE_INCLUDED_LIBINTL" = yes; then
344 INTLOBJS="\$(GETTOBJS)"
345 fi
346 AC_SUBST(INTLOBJS)
347
348 dnl Enable libtool support if the surrounding package wishes it.
349 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
350 AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
351 ])
352
353 dnl For backward compatibility. Some Makefiles may be using this.
354 INTLLIBS="$LIBINTL"
355 AC_SUBST(INTLLIBS)
356
357 dnl Make all documented variables known to autoconf.
358 AC_SUBST(LIBINTL)
359 AC_SUBST(LTLIBINTL)
360 AC_SUBST(POSUB)
361 ])
362
363
364 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
365 m4_define([gt_NEEDS_INIT],
366 [
367 m4_divert_text([DEFAULTS], [gt_needs=])
368 m4_define([gt_NEEDS_INIT], [])
369 ])
370
371
372 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
373 AC_DEFUN([AM_GNU_GETTEXT_NEED],
374 [
375 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
376 ])
377
378
379 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
380 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
0 # iconv.m4 serial AM6 (gettext-0.17)
1 dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 dnl From Bruno Haible.
7
8 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
9 [
10 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
11 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
12 AC_REQUIRE([AC_LIB_RPATH])
13
14 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
15 dnl accordingly.
16 AC_LIB_LINKFLAGS_BODY([iconv])
17 ])
18
19 AC_DEFUN([AM_ICONV_LINK],
20 [
21 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
22 dnl those with the standalone portable GNU libiconv installed).
23 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
24
25 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
26 dnl accordingly.
27 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
28
29 dnl Add $INCICONV to CPPFLAGS before performing the following checks,
30 dnl because if the user has installed libiconv and not disabled its use
31 dnl via --without-libiconv-prefix, he wants to use it. The first
32 dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
33 am_save_CPPFLAGS="$CPPFLAGS"
34 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
35
36 AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [
37 am_cv_func_iconv="no, consider installing GNU libiconv"
38 am_cv_lib_iconv=no
39 AC_TRY_LINK([#include <stdlib.h>
40 #include <iconv.h>],
41 [iconv_t cd = iconv_open("","");
42 iconv(cd,NULL,NULL,NULL,NULL);
43 iconv_close(cd);],
44 am_cv_func_iconv=yes)
45 if test "$am_cv_func_iconv" != yes; then
46 am_save_LIBS="$LIBS"
47 LIBS="$LIBS $LIBICONV"
48 AC_TRY_LINK([#include <stdlib.h>
49 #include <iconv.h>],
50 [iconv_t cd = iconv_open("","");
51 iconv(cd,NULL,NULL,NULL,NULL);
52 iconv_close(cd);],
53 am_cv_lib_iconv=yes
54 am_cv_func_iconv=yes)
55 LIBS="$am_save_LIBS"
56 fi
57 ])
58 if test "$am_cv_func_iconv" = yes; then
59 AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [
60 dnl This tests against bugs in AIX 5.1 and HP-UX 11.11.
61 am_save_LIBS="$LIBS"
62 if test $am_cv_lib_iconv = yes; then
63 LIBS="$LIBS $LIBICONV"
64 fi
65 AC_TRY_RUN([
66 #include <iconv.h>
67 #include <string.h>
68 int main ()
69 {
70 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
71 returns. */
72 {
73 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
74 if (cd_utf8_to_88591 != (iconv_t)(-1))
75 {
76 static const char input[] = "\342\202\254"; /* EURO SIGN */
77 char buf[10];
78 const char *inptr = input;
79 size_t inbytesleft = strlen (input);
80 char *outptr = buf;
81 size_t outbytesleft = sizeof (buf);
82 size_t res = iconv (cd_utf8_to_88591,
83 (char **) &inptr, &inbytesleft,
84 &outptr, &outbytesleft);
85 if (res == 0)
86 return 1;
87 }
88 }
89 #if 0 /* This bug could be worked around by the caller. */
90 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
91 {
92 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
93 if (cd_88591_to_utf8 != (iconv_t)(-1))
94 {
95 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
96 char buf[50];
97 const char *inptr = input;
98 size_t inbytesleft = strlen (input);
99 char *outptr = buf;
100 size_t outbytesleft = sizeof (buf);
101 size_t res = iconv (cd_88591_to_utf8,
102 (char **) &inptr, &inbytesleft,
103 &outptr, &outbytesleft);
104 if ((int)res > 0)
105 return 1;
106 }
107 }
108 #endif
109 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
110 provided. */
111 if (/* Try standardized names. */
112 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
113 /* Try IRIX, OSF/1 names. */
114 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
115 /* Try AIX names. */
116 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
117 /* Try HP-UX names. */
118 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
119 return 1;
120 return 0;
121 }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
122 [case "$host_os" in
123 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
124 *) am_cv_func_iconv_works="guessing yes" ;;
125 esac])
126 LIBS="$am_save_LIBS"
127 ])
128 case "$am_cv_func_iconv_works" in
129 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
130 *) am_func_iconv=yes ;;
131 esac
132 else
133 am_func_iconv=no am_cv_lib_iconv=no
134 fi
135 if test "$am_func_iconv" = yes; then
136 AC_DEFINE(HAVE_ICONV, 1,
137 [Define if you have the iconv() function and it works.])
138 fi
139 if test "$am_cv_lib_iconv" = yes; then
140 AC_MSG_CHECKING([how to link with libiconv])
141 AC_MSG_RESULT([$LIBICONV])
142 else
143 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
144 dnl either.
145 CPPFLAGS="$am_save_CPPFLAGS"
146 LIBICONV=
147 LTLIBICONV=
148 fi
149 AC_SUBST(LIBICONV)
150 AC_SUBST(LTLIBICONV)
151 ])
152
153 AC_DEFUN([AM_ICONV],
154 [
155 AM_ICONV_LINK
156 if test "$am_cv_func_iconv" = yes; then
157 AC_MSG_CHECKING([for iconv declaration])
158 AC_CACHE_VAL(am_cv_proto_iconv, [
159 AC_TRY_COMPILE([
160 #include <stdlib.h>
161 #include <iconv.h>
162 extern
163 #ifdef __cplusplus
164 "C"
165 #endif
166 #if defined(__STDC__) || defined(__cplusplus)
167 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
168 #else
169 size_t iconv();
170 #endif
171 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
172 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
173 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
174 AC_MSG_RESULT([$]{ac_t:-
175 }[$]am_cv_proto_iconv)
176 AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
177 [Define as const if the declaration of iconv() needs const.])
178 fi
179 ])
0 # intlmacosx.m4 serial 1 (gettext-0.17)
1 dnl Copyright (C) 2004-2007 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5 dnl
6 dnl This file can can be used in projects which are not available under
7 dnl the GNU General Public License or the GNU Library General Public
8 dnl License but which still want to provide support for the GNU gettext
9 dnl functionality.
10 dnl Please note that the actual code of the GNU gettext library is covered
11 dnl by the GNU Library General Public License, and the rest of the GNU
12 dnl gettext package package is covered by the GNU General Public License.
13 dnl They are *not* in the public domain.
14
15 dnl Checks for special options needed on MacOS X.
16 dnl Defines INTL_MACOSX_LIBS.
17 AC_DEFUN([gt_INTL_MACOSX],
18 [
19 dnl Check for API introduced in MacOS X 10.2.
20 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
21 gt_cv_func_CFPreferencesCopyAppValue,
22 [gt_save_LIBS="$LIBS"
23 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24 AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
25 [CFPreferencesCopyAppValue(NULL, NULL)],
26 [gt_cv_func_CFPreferencesCopyAppValue=yes],
27 [gt_cv_func_CFPreferencesCopyAppValue=no])
28 LIBS="$gt_save_LIBS"])
29 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
30 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
31 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
32 fi
33 dnl Check for API introduced in MacOS X 10.3.
34 AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
35 [gt_save_LIBS="$LIBS"
36 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
37 AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
38 [gt_cv_func_CFLocaleCopyCurrent=yes],
39 [gt_cv_func_CFLocaleCopyCurrent=no])
40 LIBS="$gt_save_LIBS"])
41 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
42 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
43 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
44 fi
45 INTL_MACOSX_LIBS=
46 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
47 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
48 fi
49 AC_SUBST([INTL_MACOSX_LIBS])
50 ])
0 # lib-ld.m4 serial 3 (gettext-0.13)
1 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 dnl Subroutines of libtool.m4,
7 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
8 dnl with libtool.m4.
9
10 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
11 AC_DEFUN([AC_LIB_PROG_LD_GNU],
12 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
13 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
14 case `$LD -v 2>&1 </dev/null` in
15 *GNU* | *'with BFD'*)
16 acl_cv_prog_gnu_ld=yes ;;
17 *)
18 acl_cv_prog_gnu_ld=no ;;
19 esac])
20 with_gnu_ld=$acl_cv_prog_gnu_ld
21 ])
22
23 dnl From libtool-1.4. Sets the variable LD.
24 AC_DEFUN([AC_LIB_PROG_LD],
25 [AC_ARG_WITH(gnu-ld,
26 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
27 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
28 AC_REQUIRE([AC_PROG_CC])dnl
29 AC_REQUIRE([AC_CANONICAL_HOST])dnl
30 # Prepare PATH_SEPARATOR.
31 # The user is always right.
32 if test "${PATH_SEPARATOR+set}" != set; then
33 echo "#! /bin/sh" >conf$$.sh
34 echo "exit 0" >>conf$$.sh
35 chmod +x conf$$.sh
36 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37 PATH_SEPARATOR=';'
38 else
39 PATH_SEPARATOR=:
40 fi
41 rm -f conf$$.sh
42 fi
43 ac_prog=ld
44 if test "$GCC" = yes; then
45 # Check if gcc -print-prog-name=ld gives a path.
46 AC_MSG_CHECKING([for ld used by GCC])
47 case $host in
48 *-*-mingw*)
49 # gcc leaves a trailing carriage return which upsets mingw
50 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
51 *)
52 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
53 esac
54 case $ac_prog in
55 # Accept absolute paths.
56 [[\\/]* | [A-Za-z]:[\\/]*)]
57 [re_direlt='/[^/][^/]*/\.\./']
58 # Canonicalize the path of ld
59 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
60 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
61 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
62 done
63 test -z "$LD" && LD="$ac_prog"
64 ;;
65 "")
66 # If it fails, then pretend we aren't using GCC.
67 ac_prog=ld
68 ;;
69 *)
70 # If it is relative, then search for the first ld in PATH.
71 with_gnu_ld=unknown
72 ;;
73 esac
74 elif test "$with_gnu_ld" = yes; then
75 AC_MSG_CHECKING([for GNU ld])
76 else
77 AC_MSG_CHECKING([for non-GNU ld])
78 fi
79 AC_CACHE_VAL(acl_cv_path_LD,
80 [if test -z "$LD"; then
81 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
82 for ac_dir in $PATH; do
83 test -z "$ac_dir" && ac_dir=.
84 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
85 acl_cv_path_LD="$ac_dir/$ac_prog"
86 # Check to see if the program is GNU ld. I'd rather use --version,
87 # but apparently some GNU ld's only accept -v.
88 # Break only if it was the GNU/non-GNU ld that we prefer.
89 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
90 *GNU* | *'with BFD'*)
91 test "$with_gnu_ld" != no && break ;;
92 *)
93 test "$with_gnu_ld" != yes && break ;;
94 esac
95 fi
96 done
97 IFS="$ac_save_ifs"
98 else
99 acl_cv_path_LD="$LD" # Let the user override the test with a path.
100 fi])
101 LD="$acl_cv_path_LD"
102 if test -n "$LD"; then
103 AC_MSG_RESULT($LD)
104 else
105 AC_MSG_RESULT(no)
106 fi
107 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
108 AC_LIB_PROG_LD_GNU
109 ])
0 # lib-link.m4 serial 13 (gettext-0.17)
1 dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 dnl From Bruno Haible.
7
8 AC_PREREQ(2.54)
9
10 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
11 dnl the libraries corresponding to explicit and implicit dependencies.
12 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
13 dnl augments the CPPFLAGS variable.
14 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
15 dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
16 AC_DEFUN([AC_LIB_LINKFLAGS],
17 [
18 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
19 AC_REQUIRE([AC_LIB_RPATH])
20 define([Name],[translit([$1],[./-], [___])])
21 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
22 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
23 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
24 AC_LIB_LINKFLAGS_BODY([$1], [$2])
25 ac_cv_lib[]Name[]_libs="$LIB[]NAME"
26 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
27 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
28 ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
29 ])
30 LIB[]NAME="$ac_cv_lib[]Name[]_libs"
31 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
32 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
33 LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
34 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
35 AC_SUBST([LIB]NAME)
36 AC_SUBST([LTLIB]NAME)
37 AC_SUBST([LIB]NAME[_PREFIX])
38 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
39 dnl results of this search when this library appears as a dependency.
40 HAVE_LIB[]NAME=yes
41 undefine([Name])
42 undefine([NAME])
43 ])
44
45 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
46 dnl searches for libname and the libraries corresponding to explicit and
47 dnl implicit dependencies, together with the specified include files and
48 dnl the ability to compile and link the specified testcode. If found, it
49 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
50 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
51 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
52 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
53 dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
54 dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
55 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
56 [
57 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
58 AC_REQUIRE([AC_LIB_RPATH])
59 define([Name],[translit([$1],[./-], [___])])
60 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
61 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
62
63 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
64 dnl accordingly.
65 AC_LIB_LINKFLAGS_BODY([$1], [$2])
66
67 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
68 dnl because if the user has installed lib[]Name and not disabled its use
69 dnl via --without-lib[]Name-prefix, he wants to use it.
70 ac_save_CPPFLAGS="$CPPFLAGS"
71 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
72
73 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
74 ac_save_LIBS="$LIBS"
75 LIBS="$LIBS $LIB[]NAME"
76 AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
77 LIBS="$ac_save_LIBS"
78 ])
79 if test "$ac_cv_lib[]Name" = yes; then
80 HAVE_LIB[]NAME=yes
81 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
82 AC_MSG_CHECKING([how to link with lib[]$1])
83 AC_MSG_RESULT([$LIB[]NAME])
84 else
85 HAVE_LIB[]NAME=no
86 dnl If $LIB[]NAME didn't lead to a usable library, we don't need
87 dnl $INC[]NAME either.
88 CPPFLAGS="$ac_save_CPPFLAGS"
89 LIB[]NAME=
90 LTLIB[]NAME=
91 LIB[]NAME[]_PREFIX=
92 fi
93 AC_SUBST([HAVE_LIB]NAME)
94 AC_SUBST([LIB]NAME)
95 AC_SUBST([LTLIB]NAME)
96 AC_SUBST([LIB]NAME[_PREFIX])
97 undefine([Name])
98 undefine([NAME])
99 ])
100
101 dnl Determine the platform dependent parameters needed to use rpath:
102 dnl acl_libext,
103 dnl acl_shlibext,
104 dnl acl_hardcode_libdir_flag_spec,
105 dnl acl_hardcode_libdir_separator,
106 dnl acl_hardcode_direct,
107 dnl acl_hardcode_minus_L.
108 AC_DEFUN([AC_LIB_RPATH],
109 [
110 dnl Tell automake >= 1.10 to complain if config.rpath is missing.
111 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
112 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
113 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
114 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
115 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
116 AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
117 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
118 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
119 . ./conftest.sh
120 rm -f ./conftest.sh
121 acl_cv_rpath=done
122 ])
123 wl="$acl_cv_wl"
124 acl_libext="$acl_cv_libext"
125 acl_shlibext="$acl_cv_shlibext"
126 acl_libname_spec="$acl_cv_libname_spec"
127 acl_library_names_spec="$acl_cv_library_names_spec"
128 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
129 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
130 acl_hardcode_direct="$acl_cv_hardcode_direct"
131 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
132 dnl Determine whether the user wants rpath handling at all.
133 AC_ARG_ENABLE(rpath,
134 [ --disable-rpath do not hardcode runtime library paths],
135 :, enable_rpath=yes)
136 ])
137
138 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
139 dnl the libraries corresponding to explicit and implicit dependencies.
140 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
141 dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
142 dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
143 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
144 [
145 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
146 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
147 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
148 dnl Autoconf >= 2.61 supports dots in --with options.
149 define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])])
150 dnl By default, look in $includedir and $libdir.
151 use_additional=yes
152 AC_LIB_WITH_FINAL_PREFIX([
153 eval additional_includedir=\"$includedir\"
154 eval additional_libdir=\"$libdir\"
155 ])
156 AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix],
157 [ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
158 --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir],
159 [
160 if test "X$withval" = "Xno"; then
161 use_additional=no
162 else
163 if test "X$withval" = "X"; then
164 AC_LIB_WITH_FINAL_PREFIX([
165 eval additional_includedir=\"$includedir\"
166 eval additional_libdir=\"$libdir\"
167 ])
168 else
169 additional_includedir="$withval/include"
170 additional_libdir="$withval/$acl_libdirstem"
171 fi
172 fi
173 ])
174 dnl Search the library and its dependencies in $additional_libdir and
175 dnl $LDFLAGS. Using breadth-first-seach.
176 LIB[]NAME=
177 LTLIB[]NAME=
178 INC[]NAME=
179 LIB[]NAME[]_PREFIX=
180 rpathdirs=
181 ltrpathdirs=
182 names_already_handled=
183 names_next_round='$1 $2'
184 while test -n "$names_next_round"; do
185 names_this_round="$names_next_round"
186 names_next_round=
187 for name in $names_this_round; do
188 already_handled=
189 for n in $names_already_handled; do
190 if test "$n" = "$name"; then
191 already_handled=yes
192 break
193 fi
194 done
195 if test -z "$already_handled"; then
196 names_already_handled="$names_already_handled $name"
197 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
198 dnl or AC_LIB_HAVE_LINKFLAGS call.
199 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
200 eval value=\"\$HAVE_LIB$uppername\"
201 if test -n "$value"; then
202 if test "$value" = yes; then
203 eval value=\"\$LIB$uppername\"
204 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
205 eval value=\"\$LTLIB$uppername\"
206 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
207 else
208 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
209 dnl that this library doesn't exist. So just drop it.
210 :
211 fi
212 else
213 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
214 dnl and the already constructed $LIBNAME/$LTLIBNAME.
215 found_dir=
216 found_la=
217 found_so=
218 found_a=
219 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
220 if test -n "$acl_shlibext"; then
221 shrext=".$acl_shlibext" # typically: shrext=.so
222 else
223 shrext=
224 fi
225 if test $use_additional = yes; then
226 dir="$additional_libdir"
227 dnl The same code as in the loop below:
228 dnl First look for a shared library.
229 if test -n "$acl_shlibext"; then
230 if test -f "$dir/$libname$shrext"; then
231 found_dir="$dir"
232 found_so="$dir/$libname$shrext"
233 else
234 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
235 ver=`(cd "$dir" && \
236 for f in "$libname$shrext".*; do echo "$f"; done \
237 | sed -e "s,^$libname$shrext\\\\.,," \
238 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
239 | sed 1q ) 2>/dev/null`
240 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
241 found_dir="$dir"
242 found_so="$dir/$libname$shrext.$ver"
243 fi
244 else
245 eval library_names=\"$acl_library_names_spec\"
246 for f in $library_names; do
247 if test -f "$dir/$f"; then
248 found_dir="$dir"
249 found_so="$dir/$f"
250 break
251 fi
252 done
253 fi
254 fi
255 fi
256 dnl Then look for a static library.
257 if test "X$found_dir" = "X"; then
258 if test -f "$dir/$libname.$acl_libext"; then
259 found_dir="$dir"
260 found_a="$dir/$libname.$acl_libext"
261 fi
262 fi
263 if test "X$found_dir" != "X"; then
264 if test -f "$dir/$libname.la"; then
265 found_la="$dir/$libname.la"
266 fi
267 fi
268 fi
269 if test "X$found_dir" = "X"; then
270 for x in $LDFLAGS $LTLIB[]NAME; do
271 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
272 case "$x" in
273 -L*)
274 dir=`echo "X$x" | sed -e 's/^X-L//'`
275 dnl First look for a shared library.
276 if test -n "$acl_shlibext"; then
277 if test -f "$dir/$libname$shrext"; then
278 found_dir="$dir"
279 found_so="$dir/$libname$shrext"
280 else
281 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
282 ver=`(cd "$dir" && \
283 for f in "$libname$shrext".*; do echo "$f"; done \
284 | sed -e "s,^$libname$shrext\\\\.,," \
285 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
286 | sed 1q ) 2>/dev/null`
287 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
288 found_dir="$dir"
289 found_so="$dir/$libname$shrext.$ver"
290 fi
291 else
292 eval library_names=\"$acl_library_names_spec\"
293 for f in $library_names; do
294 if test -f "$dir/$f"; then
295 found_dir="$dir"
296 found_so="$dir/$f"
297 break
298 fi
299 done
300 fi
301 fi
302 fi
303 dnl Then look for a static library.
304 if test "X$found_dir" = "X"; then
305 if test -f "$dir/$libname.$acl_libext"; then
306 found_dir="$dir"
307 found_a="$dir/$libname.$acl_libext"
308 fi
309 fi
310 if test "X$found_dir" != "X"; then
311 if test -f "$dir/$libname.la"; then
312 found_la="$dir/$libname.la"
313 fi
314 fi
315 ;;
316 esac
317 if test "X$found_dir" != "X"; then
318 break
319 fi
320 done
321 fi
322 if test "X$found_dir" != "X"; then
323 dnl Found the library.
324 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
325 if test "X$found_so" != "X"; then
326 dnl Linking with a shared library. We attempt to hardcode its
327 dnl directory into the executable's runpath, unless it's the
328 dnl standard /usr/lib.
329 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
330 dnl No hardcoding is needed.
331 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
332 else
333 dnl Use an explicit option to hardcode DIR into the resulting
334 dnl binary.
335 dnl Potentially add DIR to ltrpathdirs.
336 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
337 haveit=
338 for x in $ltrpathdirs; do
339 if test "X$x" = "X$found_dir"; then
340 haveit=yes
341 break
342 fi
343 done
344 if test -z "$haveit"; then
345 ltrpathdirs="$ltrpathdirs $found_dir"
346 fi
347 dnl The hardcoding into $LIBNAME is system dependent.
348 if test "$acl_hardcode_direct" = yes; then
349 dnl Using DIR/libNAME.so during linking hardcodes DIR into the
350 dnl resulting binary.
351 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
352 else
353 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
354 dnl Use an explicit option to hardcode DIR into the resulting
355 dnl binary.
356 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
357 dnl Potentially add DIR to rpathdirs.
358 dnl The rpathdirs will be appended to $LIBNAME at the end.
359 haveit=
360 for x in $rpathdirs; do
361 if test "X$x" = "X$found_dir"; then
362 haveit=yes
363 break
364 fi
365 done
366 if test -z "$haveit"; then
367 rpathdirs="$rpathdirs $found_dir"
368 fi
369 else
370 dnl Rely on "-L$found_dir".
371 dnl But don't add it if it's already contained in the LDFLAGS
372 dnl or the already constructed $LIBNAME
373 haveit=
374 for x in $LDFLAGS $LIB[]NAME; do
375 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
376 if test "X$x" = "X-L$found_dir"; then
377 haveit=yes
378 break
379 fi
380 done
381 if test -z "$haveit"; then
382 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
383 fi
384 if test "$acl_hardcode_minus_L" != no; then
385 dnl FIXME: Not sure whether we should use
386 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
387 dnl here.
388 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
389 else
390 dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
391 dnl here, because this doesn't fit in flags passed to the
392 dnl compiler. So give up. No hardcoding. This affects only
393 dnl very old systems.
394 dnl FIXME: Not sure whether we should use
395 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
396 dnl here.
397 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
398 fi
399 fi
400 fi
401 fi
402 else
403 if test "X$found_a" != "X"; then
404 dnl Linking with a static library.
405 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
406 else
407 dnl We shouldn't come here, but anyway it's good to have a
408 dnl fallback.
409 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
410 fi
411 fi
412 dnl Assume the include files are nearby.
413 additional_includedir=
414 case "$found_dir" in
415 */$acl_libdirstem | */$acl_libdirstem/)
416 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
417 LIB[]NAME[]_PREFIX="$basedir"
418 additional_includedir="$basedir/include"
419 ;;
420 esac
421 if test "X$additional_includedir" != "X"; then
422 dnl Potentially add $additional_includedir to $INCNAME.
423 dnl But don't add it
424 dnl 1. if it's the standard /usr/include,
425 dnl 2. if it's /usr/local/include and we are using GCC on Linux,
426 dnl 3. if it's already present in $CPPFLAGS or the already
427 dnl constructed $INCNAME,
428 dnl 4. if it doesn't exist as a directory.
429 if test "X$additional_includedir" != "X/usr/include"; then
430 haveit=
431 if test "X$additional_includedir" = "X/usr/local/include"; then
432 if test -n "$GCC"; then
433 case $host_os in
434 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
435 esac
436 fi
437 fi
438 if test -z "$haveit"; then
439 for x in $CPPFLAGS $INC[]NAME; do
440 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
441 if test "X$x" = "X-I$additional_includedir"; then
442 haveit=yes
443 break
444 fi
445 done
446 if test -z "$haveit"; then
447 if test -d "$additional_includedir"; then
448 dnl Really add $additional_includedir to $INCNAME.
449 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
450 fi
451 fi
452 fi
453 fi
454 fi
455 dnl Look for dependencies.
456 if test -n "$found_la"; then
457 dnl Read the .la file. It defines the variables
458 dnl dlname, library_names, old_library, dependency_libs, current,
459 dnl age, revision, installed, dlopen, dlpreopen, libdir.
460 save_libdir="$libdir"
461 case "$found_la" in
462 */* | *\\*) . "$found_la" ;;
463 *) . "./$found_la" ;;
464 esac
465 libdir="$save_libdir"
466 dnl We use only dependency_libs.
467 for dep in $dependency_libs; do
468 case "$dep" in
469 -L*)
470 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
471 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
472 dnl But don't add it
473 dnl 1. if it's the standard /usr/lib,
474 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
475 dnl 3. if it's already present in $LDFLAGS or the already
476 dnl constructed $LIBNAME,
477 dnl 4. if it doesn't exist as a directory.
478 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
479 haveit=
480 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
481 if test -n "$GCC"; then
482 case $host_os in
483 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
484 esac
485 fi
486 fi
487 if test -z "$haveit"; then
488 haveit=
489 for x in $LDFLAGS $LIB[]NAME; do
490 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
491 if test "X$x" = "X-L$additional_libdir"; then
492 haveit=yes
493 break
494 fi
495 done
496 if test -z "$haveit"; then
497 if test -d "$additional_libdir"; then
498 dnl Really add $additional_libdir to $LIBNAME.
499 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
500 fi
501 fi
502 haveit=
503 for x in $LDFLAGS $LTLIB[]NAME; do
504 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
505 if test "X$x" = "X-L$additional_libdir"; then
506 haveit=yes
507 break
508 fi
509 done
510 if test -z "$haveit"; then
511 if test -d "$additional_libdir"; then
512 dnl Really add $additional_libdir to $LTLIBNAME.
513 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
514 fi
515 fi
516 fi
517 fi
518 ;;
519 -R*)
520 dir=`echo "X$dep" | sed -e 's/^X-R//'`
521 if test "$enable_rpath" != no; then
522 dnl Potentially add DIR to rpathdirs.
523 dnl The rpathdirs will be appended to $LIBNAME at the end.
524 haveit=
525 for x in $rpathdirs; do
526 if test "X$x" = "X$dir"; then
527 haveit=yes
528 break
529 fi
530 done
531 if test -z "$haveit"; then
532 rpathdirs="$rpathdirs $dir"
533 fi
534 dnl Potentially add DIR to ltrpathdirs.
535 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
536 haveit=
537 for x in $ltrpathdirs; do
538 if test "X$x" = "X$dir"; then
539 haveit=yes
540 break
541 fi
542 done
543 if test -z "$haveit"; then
544 ltrpathdirs="$ltrpathdirs $dir"
545 fi
546 fi
547 ;;
548 -l*)
549 dnl Handle this in the next round.
550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
551 ;;
552 *.la)
553 dnl Handle this in the next round. Throw away the .la's
554 dnl directory; it is already contained in a preceding -L
555 dnl option.
556 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
557 ;;
558 *)
559 dnl Most likely an immediate library name.
560 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
561 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
562 ;;
563 esac
564 done
565 fi
566 else
567 dnl Didn't find the library; assume it is in the system directories
568 dnl known to the linker and runtime loader. (All the system
569 dnl directories known to the linker should also be known to the
570 dnl runtime loader, otherwise the system is severely misconfigured.)
571 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
572 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
573 fi
574 fi
575 fi
576 done
577 done
578 if test "X$rpathdirs" != "X"; then
579 if test -n "$acl_hardcode_libdir_separator"; then
580 dnl Weird platform: only the last -rpath option counts, the user must
581 dnl pass all path elements in one option. We can arrange that for a
582 dnl single library, but not when more than one $LIBNAMEs are used.
583 alldirs=
584 for found_dir in $rpathdirs; do
585 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
586 done
587 dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
588 acl_save_libdir="$libdir"
589 libdir="$alldirs"
590 eval flag=\"$acl_hardcode_libdir_flag_spec\"
591 libdir="$acl_save_libdir"
592 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
593 else
594 dnl The -rpath options are cumulative.
595 for found_dir in $rpathdirs; do
596 acl_save_libdir="$libdir"
597 libdir="$found_dir"
598 eval flag=\"$acl_hardcode_libdir_flag_spec\"
599 libdir="$acl_save_libdir"
600 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
601 done
602 fi
603 fi
604 if test "X$ltrpathdirs" != "X"; then
605 dnl When using libtool, the option that works for both libraries and
606 dnl executables is -R. The -R options are cumulative.
607 for found_dir in $ltrpathdirs; do
608 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
609 done
610 fi
611 ])
612
613 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
614 dnl unless already present in VAR.
615 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
616 dnl contains two or three consecutive elements that belong together.
617 AC_DEFUN([AC_LIB_APPENDTOVAR],
618 [
619 for element in [$2]; do
620 haveit=
621 for x in $[$1]; do
622 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
623 if test "X$x" = "X$element"; then
624 haveit=yes
625 break
626 fi
627 done
628 if test -z "$haveit"; then
629 [$1]="${[$1]}${[$1]:+ }$element"
630 fi
631 done
632 ])
633
634 dnl For those cases where a variable contains several -L and -l options
635 dnl referring to unknown libraries and directories, this macro determines the
636 dnl necessary additional linker options for the runtime path.
637 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
638 dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
639 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
640 dnl otherwise linking without libtool is assumed.
641 AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
642 [
643 AC_REQUIRE([AC_LIB_RPATH])
644 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
645 $1=
646 if test "$enable_rpath" != no; then
647 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
648 dnl Use an explicit option to hardcode directories into the resulting
649 dnl binary.
650 rpathdirs=
651 next=
652 for opt in $2; do
653 if test -n "$next"; then
654 dir="$next"
655 dnl No need to hardcode the standard /usr/lib.
656 if test "X$dir" != "X/usr/$acl_libdirstem"; then
657 rpathdirs="$rpathdirs $dir"
658 fi
659 next=
660 else
661 case $opt in
662 -L) next=yes ;;
663 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
664 dnl No need to hardcode the standard /usr/lib.
665 if test "X$dir" != "X/usr/$acl_libdirstem"; then
666 rpathdirs="$rpathdirs $dir"
667 fi
668 next= ;;
669 *) next= ;;
670 esac
671 fi
672 done
673 if test "X$rpathdirs" != "X"; then
674 if test -n ""$3""; then
675 dnl libtool is used for linking. Use -R options.
676 for dir in $rpathdirs; do
677 $1="${$1}${$1:+ }-R$dir"
678 done
679 else
680 dnl The linker is used for linking directly.
681 if test -n "$acl_hardcode_libdir_separator"; then
682 dnl Weird platform: only the last -rpath option counts, the user
683 dnl must pass all path elements in one option.
684 alldirs=
685 for dir in $rpathdirs; do
686 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
687 done
688 acl_save_libdir="$libdir"
689 libdir="$alldirs"
690 eval flag=\"$acl_hardcode_libdir_flag_spec\"
691 libdir="$acl_save_libdir"
692 $1="$flag"
693 else
694 dnl The -rpath options are cumulative.
695 for dir in $rpathdirs; do
696 acl_save_libdir="$libdir"
697 libdir="$dir"
698 eval flag=\"$acl_hardcode_libdir_flag_spec\"
699 libdir="$acl_save_libdir"
700 $1="${$1}${$1:+ }$flag"
701 done
702 fi
703 fi
704 fi
705 fi
706 fi
707 AC_SUBST([$1])
708 ])
0 # lib-prefix.m4 serial 5 (gettext-0.15)
1 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 dnl From Bruno Haible.
7
8 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
9 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
10 dnl require excessive bracketing.
11 ifdef([AC_HELP_STRING],
12 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
13 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
14
15 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
16 dnl to access previously installed libraries. The basic assumption is that
17 dnl a user will want packages to use other packages he previously installed
18 dnl with the same --prefix option.
19 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
20 dnl libraries, but is otherwise very convenient.
21 AC_DEFUN([AC_LIB_PREFIX],
22 [
23 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
24 AC_REQUIRE([AC_PROG_CC])
25 AC_REQUIRE([AC_CANONICAL_HOST])
26 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
27 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
28 dnl By default, look in $includedir and $libdir.
29 use_additional=yes
30 AC_LIB_WITH_FINAL_PREFIX([
31 eval additional_includedir=\"$includedir\"
32 eval additional_libdir=\"$libdir\"
33 ])
34 AC_LIB_ARG_WITH([lib-prefix],
35 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
36 --without-lib-prefix don't search for libraries in includedir and libdir],
37 [
38 if test "X$withval" = "Xno"; then
39 use_additional=no
40 else
41 if test "X$withval" = "X"; then
42 AC_LIB_WITH_FINAL_PREFIX([
43 eval additional_includedir=\"$includedir\"
44 eval additional_libdir=\"$libdir\"
45 ])
46 else
47 additional_includedir="$withval/include"
48 additional_libdir="$withval/$acl_libdirstem"
49 fi
50 fi
51 ])
52 if test $use_additional = yes; then
53 dnl Potentially add $additional_includedir to $CPPFLAGS.
54 dnl But don't add it
55 dnl 1. if it's the standard /usr/include,
56 dnl 2. if it's already present in $CPPFLAGS,
57 dnl 3. if it's /usr/local/include and we are using GCC on Linux,
58 dnl 4. if it doesn't exist as a directory.
59 if test "X$additional_includedir" != "X/usr/include"; then
60 haveit=
61 for x in $CPPFLAGS; do
62 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
63 if test "X$x" = "X-I$additional_includedir"; then
64 haveit=yes
65 break
66 fi
67 done
68 if test -z "$haveit"; then
69 if test "X$additional_includedir" = "X/usr/local/include"; then
70 if test -n "$GCC"; then
71 case $host_os in
72 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
73 esac
74 fi
75 fi
76 if test -z "$haveit"; then
77 if test -d "$additional_includedir"; then
78 dnl Really add $additional_includedir to $CPPFLAGS.
79 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
80 fi
81 fi
82 fi
83 fi
84 dnl Potentially add $additional_libdir to $LDFLAGS.
85 dnl But don't add it
86 dnl 1. if it's the standard /usr/lib,
87 dnl 2. if it's already present in $LDFLAGS,
88 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
89 dnl 4. if it doesn't exist as a directory.
90 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
91 haveit=
92 for x in $LDFLAGS; do
93 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
94 if test "X$x" = "X-L$additional_libdir"; then
95 haveit=yes
96 break
97 fi
98 done
99 if test -z "$haveit"; then
100 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
101 if test -n "$GCC"; then
102 case $host_os in
103 linux*) haveit=yes;;
104 esac
105 fi
106 fi
107 if test -z "$haveit"; then
108 if test -d "$additional_libdir"; then
109 dnl Really add $additional_libdir to $LDFLAGS.
110 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
111 fi
112 fi
113 fi
114 fi
115 fi
116 ])
117
118 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
119 dnl acl_final_exec_prefix, containing the values to which $prefix and
120 dnl $exec_prefix will expand at the end of the configure script.
121 AC_DEFUN([AC_LIB_PREPARE_PREFIX],
122 [
123 dnl Unfortunately, prefix and exec_prefix get only finally determined
124 dnl at the end of configure.
125 if test "X$prefix" = "XNONE"; then
126 acl_final_prefix="$ac_default_prefix"
127 else
128 acl_final_prefix="$prefix"
129 fi
130 if test "X$exec_prefix" = "XNONE"; then
131 acl_final_exec_prefix='${prefix}'
132 else
133 acl_final_exec_prefix="$exec_prefix"
134 fi
135 acl_save_prefix="$prefix"
136 prefix="$acl_final_prefix"
137 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
138 prefix="$acl_save_prefix"
139 ])
140
141 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
142 dnl variables prefix and exec_prefix bound to the values they will have
143 dnl at the end of the configure script.
144 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
145 [
146 acl_save_prefix="$prefix"
147 prefix="$acl_final_prefix"
148 acl_save_exec_prefix="$exec_prefix"
149 exec_prefix="$acl_final_exec_prefix"
150 $1
151 exec_prefix="$acl_save_exec_prefix"
152 prefix="$acl_save_prefix"
153 ])
154
155 dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
156 dnl the basename of the libdir, either "lib" or "lib64".
157 AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
158 [
159 dnl There is no formal standard regarding lib and lib64. The current
160 dnl practice is that on a system supporting 32-bit and 64-bit instruction
161 dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
162 dnl libraries go under $prefix/lib. We determine the compiler's default
163 dnl mode by looking at the compiler's library search path. If at least
164 dnl of its elements ends in /lib64 or points to a directory whose absolute
165 dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
166 dnl default, namely "lib".
167 acl_libdirstem=lib
168 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
169 if test -n "$searchpath"; then
170 acl_save_IFS="${IFS= }"; IFS=":"
171 for searchdir in $searchpath; do
172 if test -d "$searchdir"; then
173 case "$searchdir" in
174 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
175 *) searchdir=`cd "$searchdir" && pwd`
176 case "$searchdir" in
177 */lib64 ) acl_libdirstem=lib64 ;;
178 esac ;;
179 esac
180 fi
181 done
182 IFS="$acl_save_IFS"
183 fi
184 ])
0 # nls.m4 serial 3 (gettext-0.15)
1 dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5 dnl
6 dnl This file can can be used in projects which are not available under
7 dnl the GNU General Public License or the GNU Library General Public
8 dnl License but which still want to provide support for the GNU gettext
9 dnl functionality.
10 dnl Please note that the actual code of the GNU gettext library is covered
11 dnl by the GNU Library General Public License, and the rest of the GNU
12 dnl gettext package package is covered by the GNU General Public License.
13 dnl They are *not* in the public domain.
14
15 dnl Authors:
16 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
17 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
18
19 AC_PREREQ(2.50)
20
21 AC_DEFUN([AM_NLS],
22 [
23 AC_MSG_CHECKING([whether NLS is requested])
24 dnl Default is enabled NLS
25 AC_ARG_ENABLE(nls,
26 [ --disable-nls do not use Native Language Support],
27 USE_NLS=$enableval, USE_NLS=yes)
28 AC_MSG_RESULT($USE_NLS)
29 AC_SUBST(USE_NLS)
30 ])
0 # po.m4 serial 15 (gettext-0.17)
1 dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5 dnl
6 dnl This file can can be used in projects which are not available under
7 dnl the GNU General Public License or the GNU Library General Public
8 dnl License but which still want to provide support for the GNU gettext
9 dnl functionality.
10 dnl Please note that the actual code of the GNU gettext library is covered
11 dnl by the GNU Library General Public License, and the rest of the GNU
12 dnl gettext package package is covered by the GNU General Public License.
13 dnl They are *not* in the public domain.
14
15 dnl Authors:
16 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
17 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
18
19 AC_PREREQ(2.50)
20
21 dnl Checks for all prerequisites of the po subdirectory.
22 AC_DEFUN([AM_PO_SUBDIRS],
23 [
24 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
25 AC_REQUIRE([AC_PROG_INSTALL])dnl
26 AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
27 AC_REQUIRE([AM_NLS])dnl
28
29 dnl Release version of the gettext macros. This is used to ensure that
30 dnl the gettext macros and po/Makefile.in.in are in sync.
31 AC_SUBST([GETTEXT_MACRO_VERSION], [0.17])
32
33 dnl Perform the following tests also if --disable-nls has been given,
34 dnl because they are needed for "make dist" to work.
35
36 dnl Search for GNU msgfmt in the PATH.
37 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
38 dnl The second test excludes FreeBSD msgfmt.
39 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
40 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
41 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
42 :)
43 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
44
45 dnl Test whether it is GNU msgfmt >= 0.15.
46 changequote(,)dnl
47 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
48 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
49 *) MSGFMT_015=$MSGFMT ;;
50 esac
51 changequote([,])dnl
52 AC_SUBST([MSGFMT_015])
53 changequote(,)dnl
54 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
55 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
56 *) GMSGFMT_015=$GMSGFMT ;;
57 esac
58 changequote([,])dnl
59 AC_SUBST([GMSGFMT_015])
60
61 dnl Search for GNU xgettext 0.12 or newer in the PATH.
62 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
63 dnl The second test excludes FreeBSD xgettext.
64 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
65 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
66 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
67 :)
68 dnl Remove leftover from FreeBSD xgettext call.
69 rm -f messages.po
70
71 dnl Test whether it is GNU xgettext >= 0.15.
72 changequote(,)dnl
73 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
74 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
75 *) XGETTEXT_015=$XGETTEXT ;;
76 esac
77 changequote([,])dnl
78 AC_SUBST([XGETTEXT_015])
79
80 dnl Search for GNU msgmerge 0.11 or newer in the PATH.
81 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
82 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
83
84 dnl Installation directories.
85 dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
86 dnl have to define it here, so that it can be used in po/Makefile.
87 test -n "$localedir" || localedir='${datadir}/locale'
88 AC_SUBST([localedir])
89
90 dnl Support for AM_XGETTEXT_OPTION.
91 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
92 AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
93
94 AC_CONFIG_COMMANDS([po-directories], [[
95 for ac_file in $CONFIG_FILES; do
96 # Support "outfile[:infile[:infile...]]"
97 case "$ac_file" in
98 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
99 esac
100 # PO directories have a Makefile.in generated from Makefile.in.in.
101 case "$ac_file" in */Makefile.in)
102 # Adjust a relative srcdir.
103 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
104 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
105 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
106 # In autoconf-2.13 it is called $ac_given_srcdir.
107 # In autoconf-2.50 it is called $srcdir.
108 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
109 case "$ac_given_srcdir" in
110 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
111 /*) top_srcdir="$ac_given_srcdir" ;;
112 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
113 esac
114 # Treat a directory as a PO directory if and only if it has a
115 # POTFILES.in file. This allows packages to have multiple PO
116 # directories under different names or in different locations.
117 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
118 rm -f "$ac_dir/POTFILES"
119 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
120 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
121 POMAKEFILEDEPS="POTFILES.in"
122 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
123 # on $ac_dir but don't depend on user-specified configuration
124 # parameters.
125 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
126 # The LINGUAS file contains the set of available languages.
127 if test -n "$OBSOLETE_ALL_LINGUAS"; then
128 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
129 fi
130 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
131 # Hide the ALL_LINGUAS assigment from automake < 1.5.
132 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
133 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
134 else
135 # The set of available languages was given in configure.in.
136 # Hide the ALL_LINGUAS assigment from automake < 1.5.
137 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
138 fi
139 # Compute POFILES
140 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
141 # Compute UPDATEPOFILES
142 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
143 # Compute DUMMYPOFILES
144 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
145 # Compute GMOFILES
146 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
147 case "$ac_given_srcdir" in
148 .) srcdirpre= ;;
149 *) srcdirpre='$(srcdir)/' ;;
150 esac
151 POFILES=
152 UPDATEPOFILES=
153 DUMMYPOFILES=
154 GMOFILES=
155 for lang in $ALL_LINGUAS; do
156 POFILES="$POFILES $srcdirpre$lang.po"
157 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
158 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
159 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
160 done
161 # CATALOGS depends on both $ac_dir and the user's LINGUAS
162 # environment variable.
163 INST_LINGUAS=
164 if test -n "$ALL_LINGUAS"; then
165 for presentlang in $ALL_LINGUAS; do
166 useit=no
167 if test "%UNSET%" != "$LINGUAS"; then
168 desiredlanguages="$LINGUAS"
169 else
170 desiredlanguages="$ALL_LINGUAS"
171 fi
172 for desiredlang in $desiredlanguages; do
173 # Use the presentlang catalog if desiredlang is
174 # a. equal to presentlang, or
175 # b. a variant of presentlang (because in this case,
176 # presentlang can be used as a fallback for messages
177 # which are not translated in the desiredlang catalog).
178 case "$desiredlang" in
179 "$presentlang"*) useit=yes;;
180 esac
181 done
182 if test $useit = yes; then
183 INST_LINGUAS="$INST_LINGUAS $presentlang"
184 fi
185 done
186 fi
187 CATALOGS=
188 if test -n "$INST_LINGUAS"; then
189 for lang in $INST_LINGUAS; do
190 CATALOGS="$CATALOGS $lang.gmo"
191 done
192 fi
193 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
194 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
195 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
196 if test -f "$f"; then
197 case "$f" in
198 *.orig | *.bak | *~) ;;
199 *) cat "$f" >> "$ac_dir/Makefile" ;;
200 esac
201 fi
202 done
203 fi
204 ;;
205 esac
206 done]],
207 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
208 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
209 # from automake < 1.5.
210 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
211 # Capture the value of LINGUAS because we need it to compute CATALOGS.
212 LINGUAS="${LINGUAS-%UNSET%}"
213 ])
214 ])
215
216 dnl Postprocesses a Makefile in a directory containing PO files.
217 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
218 [
219 # When this code is run, in config.status, two variables have already been
220 # set:
221 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
222 # - LINGUAS is the value of the environment variable LINGUAS at configure
223 # time.
224
225 changequote(,)dnl
226 # Adjust a relative srcdir.
227 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
228 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
229 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
230 # In autoconf-2.13 it is called $ac_given_srcdir.
231 # In autoconf-2.50 it is called $srcdir.
232 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
233 case "$ac_given_srcdir" in
234 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
235 /*) top_srcdir="$ac_given_srcdir" ;;
236 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
237 esac
238
239 # Find a way to echo strings without interpreting backslash.
240 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
241 gt_echo='echo'
242 else
243 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
244 gt_echo='printf %s\n'
245 else
246 echo_func () {
247 cat <<EOT
248 $*
249 EOT
250 }
251 gt_echo='echo_func'
252 fi
253 fi
254
255 # A sed script that extracts the value of VARIABLE from a Makefile.
256 sed_x_variable='
257 # Test if the hold space is empty.
258 x
259 s/P/P/
260 x
261 ta
262 # Yes it was empty. Look if we have the expected variable definition.
263 /^[ ]*VARIABLE[ ]*=/{
264 # Seen the first line of the variable definition.
265 s/^[ ]*VARIABLE[ ]*=//
266 ba
267 }
268 bd
269 :a
270 # Here we are processing a line from the variable definition.
271 # Remove comment, more precisely replace it with a space.
272 s/#.*$/ /
273 # See if the line ends in a backslash.
274 tb
275 :b
276 s/\\$//
277 # Print the line, without the trailing backslash.
278 p
279 tc
280 # There was no trailing backslash. The end of the variable definition is
281 # reached. Clear the hold space.
282 s/^.*$//
283 x
284 bd
285 :c
286 # A trailing backslash means that the variable definition continues in the
287 # next line. Put a nonempty string into the hold space to indicate this.
288 s/^.*$/P/
289 x
290 :d
291 '
292 changequote([,])dnl
293
294 # Set POTFILES to the value of the Makefile variable POTFILES.
295 sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
296 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
297 # Compute POTFILES_DEPS as
298 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
299 POTFILES_DEPS=
300 for file in $POTFILES; do
301 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
302 done
303 POMAKEFILEDEPS=""
304
305 if test -n "$OBSOLETE_ALL_LINGUAS"; then
306 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
307 fi
308 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
309 # The LINGUAS file contains the set of available languages.
310 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
311 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
312 else
313 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
314 sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
315 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
316 fi
317 # Hide the ALL_LINGUAS assigment from automake < 1.5.
318 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
319 # Compute POFILES
320 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
321 # Compute UPDATEPOFILES
322 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
323 # Compute DUMMYPOFILES
324 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
325 # Compute GMOFILES
326 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
327 # Compute PROPERTIESFILES
328 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
329 # Compute CLASSFILES
330 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
331 # Compute QMFILES
332 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
333 # Compute MSGFILES
334 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
335 # Compute RESOURCESDLLFILES
336 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
337 case "$ac_given_srcdir" in
338 .) srcdirpre= ;;
339 *) srcdirpre='$(srcdir)/' ;;
340 esac
341 POFILES=
342 UPDATEPOFILES=
343 DUMMYPOFILES=
344 GMOFILES=
345 PROPERTIESFILES=
346 CLASSFILES=
347 QMFILES=
348 MSGFILES=
349 RESOURCESDLLFILES=
350 for lang in $ALL_LINGUAS; do
351 POFILES="$POFILES $srcdirpre$lang.po"
352 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
353 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
354 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
355 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
356 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
357 QMFILES="$QMFILES $srcdirpre$lang.qm"
358 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
359 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
360 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
361 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
362 done
363 # CATALOGS depends on both $ac_dir and the user's LINGUAS
364 # environment variable.
365 INST_LINGUAS=
366 if test -n "$ALL_LINGUAS"; then
367 for presentlang in $ALL_LINGUAS; do
368 useit=no
369 if test "%UNSET%" != "$LINGUAS"; then
370 desiredlanguages="$LINGUAS"
371 else
372 desiredlanguages="$ALL_LINGUAS"
373 fi
374 for desiredlang in $desiredlanguages; do
375 # Use the presentlang catalog if desiredlang is
376 # a. equal to presentlang, or
377 # b. a variant of presentlang (because in this case,
378 # presentlang can be used as a fallback for messages
379 # which are not translated in the desiredlang catalog).
380 case "$desiredlang" in
381 "$presentlang"*) useit=yes;;
382 esac
383 done
384 if test $useit = yes; then
385 INST_LINGUAS="$INST_LINGUAS $presentlang"
386 fi
387 done
388 fi
389 CATALOGS=
390 JAVACATALOGS=
391 QTCATALOGS=
392 TCLCATALOGS=
393 CSHARPCATALOGS=
394 if test -n "$INST_LINGUAS"; then
395 for lang in $INST_LINGUAS; do
396 CATALOGS="$CATALOGS $lang.gmo"
397 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
398 QTCATALOGS="$QTCATALOGS $lang.qm"
399 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
400 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
401 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
402 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
403 done
404 fi
405
406 sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
407 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
408 # Add dependencies that cannot be formulated as a simple suffix rule.
409 for lang in $ALL_LINGUAS; do
410 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
411 cat >> "$ac_file.tmp" <<EOF
412 $frobbedlang.msg: $lang.po
413 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
414 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
415 EOF
416 done
417 fi
418 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
419 # Add dependencies that cannot be formulated as a simple suffix rule.
420 for lang in $ALL_LINGUAS; do
421 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
422 cat >> "$ac_file.tmp" <<EOF
423 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
424 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
425 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
426 EOF
427 done
428 fi
429 if test -n "$POMAKEFILEDEPS"; then
430 cat >> "$ac_file.tmp" <<EOF
431 Makefile: $POMAKEFILEDEPS
432 EOF
433 fi
434 mv "$ac_file.tmp" "$ac_file"
435 ])
436
437 dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
438 AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
439 [
440 XGETTEXT_EXTRA_OPTIONS=
441 ])
442
443 dnl Registers an option to be passed to xgettext in the po subdirectory.
444 AC_DEFUN([AM_XGETTEXT_OPTION],
445 [
446 AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
447 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
448 ])
0 # progtest.m4 serial 4 (gettext-0.14.2)
1 dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5 dnl
6 dnl This file can can be used in projects which are not available under
7 dnl the GNU General Public License or the GNU Library General Public
8 dnl License but which still want to provide support for the GNU gettext
9 dnl functionality.
10 dnl Please note that the actual code of the GNU gettext library is covered
11 dnl by the GNU Library General Public License, and the rest of the GNU
12 dnl gettext package package is covered by the GNU General Public License.
13 dnl They are *not* in the public domain.
14
15 dnl Authors:
16 dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
17
18 AC_PREREQ(2.50)
19
20 # Search path for a program which passes the given test.
21
22 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
23 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
24 AC_DEFUN([AM_PATH_PROG_WITH_TEST],
25 [
26 # Prepare PATH_SEPARATOR.
27 # The user is always right.
28 if test "${PATH_SEPARATOR+set}" != set; then
29 echo "#! /bin/sh" >conf$$.sh
30 echo "exit 0" >>conf$$.sh
31 chmod +x conf$$.sh
32 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33 PATH_SEPARATOR=';'
34 else
35 PATH_SEPARATOR=:
36 fi
37 rm -f conf$$.sh
38 fi
39
40 # Find out how to test for executable files. Don't use a zero-byte file,
41 # as systems may use methods other than mode bits to determine executability.
42 cat >conf$$.file <<_ASEOF
43 #! /bin/sh
44 exit 0
45 _ASEOF
46 chmod +x conf$$.file
47 if test -x conf$$.file >/dev/null 2>&1; then
48 ac_executable_p="test -x"
49 else
50 ac_executable_p="test -f"
51 fi
52 rm -f conf$$.file
53
54 # Extract the first word of "$2", so it can be a program name with args.
55 set dummy $2; ac_word=[$]2
56 AC_MSG_CHECKING([for $ac_word])
57 AC_CACHE_VAL(ac_cv_path_$1,
58 [case "[$]$1" in
59 [[\\/]]* | ?:[[\\/]]*)
60 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
61 ;;
62 *)
63 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
64 for ac_dir in ifelse([$5], , $PATH, [$5]); do
65 IFS="$ac_save_IFS"
66 test -z "$ac_dir" && ac_dir=.
67 for ac_exec_ext in '' $ac_executable_extensions; do
68 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
69 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
70 if [$3]; then
71 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
72 break 2
73 fi
74 fi
75 done
76 done
77 IFS="$ac_save_IFS"
78 dnl If no 4th arg is given, leave the cache variable unset,
79 dnl so AC_PATH_PROGS will keep looking.
80 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
81 ])dnl
82 ;;
83 esac])dnl
84 $1="$ac_cv_path_$1"
85 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
86 AC_MSG_RESULT([$]$1)
87 else
88 AC_MSG_RESULT(no)
89 fi
90 AC_SUBST($1)dnl
91 ])
0 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2005-06-08.21
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
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
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
46 case "$1" in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
62
63 -h|--h|--he|--hel|--help)
64 echo "\
65 $0 [OPTION]... PROGRAM [ARGUMENT]...
66
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
69
70 Options:
71 -h, --help display this help and exit
72 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
74
75 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 automake touch all \`Makefile.in' files
80 bison create \`y.tab.[ch]', if possible, from existing .[ch]
81 flex create \`lex.yy.c', if possible, from existing .c
82 help2man touch the output file
83 lex create \`lex.yy.c', if possible, from existing .c
84 makeinfo touch the output file
85 tar try tar, gnutar, gtar, then tar without non-portable flags
86 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
87
88 Send bug reports to <bug-automake@gnu.org>."
89 exit $?
90 ;;
91
92 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
93 echo "missing $scriptversion (GNU Automake)"
94 exit $?
95 ;;
96
97 -*)
98 echo 1>&2 "$0: Unknown \`$1' option"
99 echo 1>&2 "Try \`$0 --help' for more information"
100 exit 1
101 ;;
102
103 esac
104
105 # Now exit if we have it, but it failed. Also exit now if we
106 # don't have it and --version was passed (most likely to detect
107 # the program).
108 case "$1" in
109 lex|yacc)
110 # Not GNU programs, they don't have --version.
111 ;;
112
113 tar)
114 if test -n "$run"; then
115 echo 1>&2 "ERROR: \`tar' requires --run"
116 exit 1
117 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
118 exit 1
119 fi
120 ;;
121
122 *)
123 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
124 # We have it, but it failed.
125 exit 1
126 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
127 # Could not run --version or --help. This is probably someone
128 # running `$TOOL --version' or `$TOOL --help' to check whether
129 # $TOOL exists and not knowing $TOOL uses missing.
130 exit 1
131 fi
132 ;;
133 esac
134
135 # If it does not exist, or fails to run (possibly an outdated version),
136 # try to emulate it.
137 case "$1" in
138 aclocal*)
139 echo 1>&2 "\
140 WARNING: \`$1' is $msg. You should only need it if
141 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
142 to install the \`Automake' and \`Perl' packages. Grab them from
143 any GNU archive site."
144 touch aclocal.m4
145 ;;
146
147 autoconf)
148 echo 1>&2 "\
149 WARNING: \`$1' is $msg. You should only need it if
150 you modified \`${configure_ac}'. You might want to install the
151 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
152 archive site."
153 touch configure
154 ;;
155
156 autoheader)
157 echo 1>&2 "\
158 WARNING: \`$1' is $msg. You should only need it if
159 you modified \`acconfig.h' or \`${configure_ac}'. You might want
160 to install the \`Autoconf' and \`GNU m4' packages. Grab them
161 from any GNU archive site."
162 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
163 test -z "$files" && files="config.h"
164 touch_files=
165 for f in $files; do
166 case "$f" in
167 *:*) touch_files="$touch_files "`echo "$f" |
168 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169 *) touch_files="$touch_files $f.in";;
170 esac
171 done
172 touch $touch_files
173 ;;
174
175 automake*)
176 echo 1>&2 "\
177 WARNING: \`$1' is $msg. You should only need it if
178 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
179 You might want to install the \`Automake' and \`Perl' packages.
180 Grab them from any GNU archive site."
181 find . -type f -name Makefile.am -print |
182 sed 's/\.am$/.in/' |
183 while read f; do touch "$f"; done
184 ;;
185
186 autom4te)
187 echo 1>&2 "\
188 WARNING: \`$1' is needed, but is $msg.
189 You might have modified some files without having the
190 proper tools for further handling them.
191 You can get \`$1' as part of \`Autoconf' from any GNU
192 archive site."
193
194 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
195 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
196 if test -f "$file"; then
197 touch $file
198 else
199 test -z "$file" || exec >$file
200 echo "#! /bin/sh"
201 echo "# Created by GNU Automake missing as a replacement of"
202 echo "# $ $@"
203 echo "exit 0"
204 chmod +x $file
205 exit 1
206 fi
207 ;;
208
209 bison|yacc)
210 echo 1>&2 "\
211 WARNING: \`$1' $msg. You should only need it if
212 you modified a \`.y' file. You may need the \`Bison' package
213 in order for those modifications to take effect. You can get
214 \`Bison' from any GNU archive site."
215 rm -f y.tab.c y.tab.h
216 if [ $# -ne 1 ]; then
217 eval LASTARG="\${$#}"
218 case "$LASTARG" in
219 *.y)
220 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if [ -f "$SRCFILE" ]; then
222 cp "$SRCFILE" y.tab.c
223 fi
224 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if [ -f "$SRCFILE" ]; then
226 cp "$SRCFILE" y.tab.h
227 fi
228 ;;
229 esac
230 fi
231 if [ ! -f y.tab.h ]; then
232 echo >y.tab.h
233 fi
234 if [ ! -f y.tab.c ]; then
235 echo 'main() { return 0; }' >y.tab.c
236 fi
237 ;;
238
239 lex|flex)
240 echo 1>&2 "\
241 WARNING: \`$1' is $msg. You should only need it if
242 you modified a \`.l' file. You may need the \`Flex' package
243 in order for those modifications to take effect. You can get
244 \`Flex' from any GNU archive site."
245 rm -f lex.yy.c
246 if [ $# -ne 1 ]; then
247 eval LASTARG="\${$#}"
248 case "$LASTARG" in
249 *.l)
250 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if [ -f "$SRCFILE" ]; then
252 cp "$SRCFILE" lex.yy.c
253 fi
254 ;;
255 esac
256 fi
257 if [ ! -f lex.yy.c ]; then
258 echo 'main() { return 0; }' >lex.yy.c
259 fi
260 ;;
261
262 help2man)
263 echo 1>&2 "\
264 WARNING: \`$1' is $msg. You should only need it if
265 you modified a dependency of a manual page. You may need the
266 \`Help2man' package in order for those modifications to take
267 effect. You can get \`Help2man' from any GNU archive site."
268
269 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
270 if test -z "$file"; then
271 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
272 fi
273 if [ -f "$file" ]; then
274 touch $file
275 else
276 test -z "$file" || exec >$file
277 echo ".ab help2man is required to generate this page"
278 exit 1
279 fi
280 ;;
281
282 makeinfo)
283 echo 1>&2 "\
284 WARNING: \`$1' is $msg. You should only need it if
285 you modified a \`.texi' or \`.texinfo' file, or any other file
286 indirectly affecting the aspect of the manual. The spurious
287 call might also be the consequence of using a buggy \`make' (AIX,
288 DU, IRIX). You might want to install the \`Texinfo' package or
289 the \`GNU make' package. Grab either from any GNU archive site."
290 # The file to touch is that specified with -o ...
291 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292 if test -z "$file"; then
293 # ... or it is the one specified with @setfilename ...
294 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
296 # ... or it is derived from the source name (dir/f.texi becomes f.info)
297 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
298 fi
299 # If the file does not exist, the user really needs makeinfo;
300 # let's fail without touching anything.
301 test -f $file || exit 1
302 touch $file
303 ;;
304
305 tar)
306 shift
307
308 # We have already tried tar in the generic part.
309 # Look for gnutar/gtar before invocation to avoid ugly error
310 # messages.
311 if (gnutar --version > /dev/null 2>&1); then
312 gnutar "$@" && exit 0
313 fi
314 if (gtar --version > /dev/null 2>&1); then
315 gtar "$@" && exit 0
316 fi
317 firstarg="$1"
318 if shift; then
319 case "$firstarg" in
320 *o*)
321 firstarg=`echo "$firstarg" | sed s/o//`
322 tar "$firstarg" "$@" && exit 0
323 ;;
324 esac
325 case "$firstarg" in
326 *h*)
327 firstarg=`echo "$firstarg" | sed s/h//`
328 tar "$firstarg" "$@" && exit 0
329 ;;
330 esac
331 fi
332
333 echo 1>&2 "\
334 WARNING: I can't seem to be able to run \`tar' with the given arguments.
335 You may want to install GNU tar or Free paxutils, or check the
336 command line arguments."
337 exit 1
338 ;;
339
340 *)
341 echo 1>&2 "\
342 WARNING: \`$1' is needed, and is $msg.
343 You might have modified some files without having the
344 proper tools for further handling them. Check the \`README' file,
345 it often tells you about the needed prerequisites for installing
346 this package. You may also peek at any GNU archive site, in case
347 some other package would contain this missing \`$1' program."
348 exit 1
349 ;;
350 esac
351
352 exit 0
353
354 # Local variables:
355 # eval: (add-hook 'write-file-hooks 'time-stamp)
356 # time-stamp-start: "scriptversion="
357 # time-stamp-format: "%:y-%02m-%02d.%02H"
358 # time-stamp-end: "$"
359 # End:
(New empty file)
0 # Makefile for PO directory in any package using GNU gettext.
1 # Copyright (C) 1995-1997, 2000-2007 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
2 #
3 # This file can be copied and used freely without restrictions. It can
4 # be used in projects which are not available under the GNU General Public
5 # License but which still want to provide support for the GNU gettext
6 # functionality.
7 # Please note that the actual code of GNU gettext is covered by the GNU
8 # General Public License and is *not* in the public domain.
9 #
10 # Origin: gettext-0.17
11 GETTEXT_MACRO_VERSION = 0.17
12
13 PACKAGE = @PACKAGE@
14 VERSION = @VERSION@
15 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
16
17 SHELL = /bin/sh
18 @SET_MAKE@
19
20 srcdir = @srcdir@
21 top_srcdir = @top_srcdir@
22 VPATH = @srcdir@
23
24 prefix = @prefix@
25 exec_prefix = @exec_prefix@
26 datarootdir = @datarootdir@
27 datadir = @datadir@
28 localedir = @localedir@
29 gettextsrcdir = $(datadir)/gettext/po
30
31 INSTALL = @INSTALL@
32 INSTALL_DATA = @INSTALL_DATA@
33
34 # We use $(mkdir_p).
35 # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
36 # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
37 # @install_sh@ does not start with $(SHELL), so we add it.
38 # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
39 # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
40 # versions, $(mkinstalldirs) and $(install_sh) are unused.
41 mkinstalldirs = $(SHELL) @install_sh@ -d
42 install_sh = $(SHELL) @install_sh@
43 MKDIR_P = @MKDIR_P@
44 mkdir_p = @mkdir_p@
45
46 GMSGFMT_ = @GMSGFMT@
47 GMSGFMT_no = @GMSGFMT@
48 GMSGFMT_yes = @GMSGFMT_015@
49 GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
50 MSGFMT_ = @MSGFMT@
51 MSGFMT_no = @MSGFMT@
52 MSGFMT_yes = @MSGFMT_015@
53 MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
54 XGETTEXT_ = @XGETTEXT@
55 XGETTEXT_no = @XGETTEXT@
56 XGETTEXT_yes = @XGETTEXT_015@
57 XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
58 MSGMERGE = msgmerge
59 MSGMERGE_UPDATE = @MSGMERGE@ --update
60 MSGINIT = msginit
61 MSGCONV = msgconv
62 MSGFILTER = msgfilter
63
64 POFILES = @POFILES@
65 GMOFILES = @GMOFILES@
66 UPDATEPOFILES = @UPDATEPOFILES@
67 DUMMYPOFILES = @DUMMYPOFILES@
68 DISTFILES.common = Makefile.in.in remove-potcdate.sin \
69 $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
70 DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
71 $(POFILES) $(GMOFILES) \
72 $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
73
74 POTFILES = \
75
76 CATALOGS = @CATALOGS@
77
78 # Makevars gets inserted here. (Don't remove this line!)
79
80 .SUFFIXES:
81 .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
82
83 .po.mo:
84 @echo "$(MSGFMT) -c -o $@ $<"; \
85 $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
86
87 .po.gmo:
88 @lang=`echo $* | sed -e 's,.*/,,'`; \
89 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
90 echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
91 cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
92
93 .sin.sed:
94 sed -e '/^#/d' $< > t-$@
95 mv t-$@ $@
96
97
98 all: check-macro-version all-@USE_NLS@
99
100 all-yes: stamp-po
101 all-no:
102
103 # Ensure that the gettext macros and this Makefile.in.in are in sync.
104 check-macro-version:
105 @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
106 || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
107 exit 1; \
108 }
109
110 # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
111 # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
112 # we don't want to bother translators with empty POT files). We assume that
113 # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
114 # In this case, stamp-po is a nop (i.e. a phony target).
115
116 # stamp-po is a timestamp denoting the last time at which the CATALOGS have
117 # been loosely updated. Its purpose is that when a developer or translator
118 # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
119 # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
120 # invocations of "make" will do nothing. This timestamp would not be necessary
121 # if updating the $(CATALOGS) would always touch them; however, the rule for
122 # $(POFILES) has been designed to not touch files that don't need to be
123 # changed.
124 stamp-po: $(srcdir)/$(DOMAIN).pot
125 test ! -f $(srcdir)/$(DOMAIN).pot || \
126 test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
127 @test ! -f $(srcdir)/$(DOMAIN).pot || { \
128 echo "touch stamp-po" && \
129 echo timestamp > stamp-poT && \
130 mv stamp-poT stamp-po; \
131 }
132
133 # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
134 # otherwise packages like GCC can not be built if only parts of the source
135 # have been downloaded.
136
137 # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
138 # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
139 $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
140 if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \
141 package_gnu='GNU '; \
142 else \
143 package_gnu=''; \
144 fi; \
145 if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
146 msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
147 else \
148 msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
149 fi; \
150 case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
151 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
152 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
153 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
154 --files-from=$(srcdir)/POTFILES.in \
155 --copyright-holder='$(COPYRIGHT_HOLDER)' \
156 --msgid-bugs-address="$$msgid_bugs_address" \
157 ;; \
158 *) \
159 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
160 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
161 --files-from=$(srcdir)/POTFILES.in \
162 --copyright-holder='$(COPYRIGHT_HOLDER)' \
163 --package-name="$${package_gnu}@PACKAGE@" \
164 --package-version='@VERSION@' \
165 --msgid-bugs-address="$$msgid_bugs_address" \
166 ;; \
167 esac
168 test ! -f $(DOMAIN).po || { \
169 if test -f $(srcdir)/$(DOMAIN).pot; then \
170 sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
171 sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
172 if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
173 rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
174 else \
175 rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
176 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
177 fi; \
178 else \
179 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
180 fi; \
181 }
182
183 # This rule has no dependencies: we don't need to update $(DOMAIN).pot at
184 # every "make" invocation, only create it when it is missing.
185 # Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
186 $(srcdir)/$(DOMAIN).pot:
187 $(MAKE) $(DOMAIN).pot-update
188
189 # This target rebuilds a PO file if $(DOMAIN).pot has changed.
190 # Note that a PO file is not touched if it doesn't need to be changed.
191 $(POFILES): $(srcdir)/$(DOMAIN).pot
192 @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
193 if test -f "$(srcdir)/$${lang}.po"; then \
194 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
195 echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
196 cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \
197 else \
198 $(MAKE) $${lang}.po-create; \
199 fi
200
201
202 install: install-exec install-data
203 install-exec:
204 install-data: install-data-@USE_NLS@
205 if test "$(PACKAGE)" = "gettext-tools"; then \
206 $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
207 for file in $(DISTFILES.common) Makevars.template; do \
208 $(INSTALL_DATA) $(srcdir)/$$file \
209 $(DESTDIR)$(gettextsrcdir)/$$file; \
210 done; \
211 for file in Makevars; do \
212 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
213 done; \
214 else \
215 : ; \
216 fi
217 install-data-no: all
218 install-data-yes: all
219 $(mkdir_p) $(DESTDIR)$(datadir)
220 @catalogs='$(CATALOGS)'; \
221 for cat in $$catalogs; do \
222 cat=`basename $$cat`; \
223 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
224 dir=$(localedir)/$$lang/LC_MESSAGES; \
225 $(mkdir_p) $(DESTDIR)$$dir; \
226 if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
227 $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
228 echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
229 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
230 if test -n "$$lc"; then \
231 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
232 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
233 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
234 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
235 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
236 for file in *; do \
237 if test -f $$file; then \
238 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
239 fi; \
240 done); \
241 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
242 else \
243 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
244 :; \
245 else \
246 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
247 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
248 fi; \
249 fi; \
250 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
251 ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
252 ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
253 cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
254 echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
255 fi; \
256 done; \
257 done
258
259 install-strip: install
260
261 installdirs: installdirs-exec installdirs-data
262 installdirs-exec:
263 installdirs-data: installdirs-data-@USE_NLS@
264 if test "$(PACKAGE)" = "gettext-tools"; then \
265 $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
266 else \
267 : ; \
268 fi
269 installdirs-data-no:
270 installdirs-data-yes:
271 $(mkdir_p) $(DESTDIR)$(datadir)
272 @catalogs='$(CATALOGS)'; \
273 for cat in $$catalogs; do \
274 cat=`basename $$cat`; \
275 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
276 dir=$(localedir)/$$lang/LC_MESSAGES; \
277 $(mkdir_p) $(DESTDIR)$$dir; \
278 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
279 if test -n "$$lc"; then \
280 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
281 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
282 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
283 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
284 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
285 for file in *; do \
286 if test -f $$file; then \
287 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
288 fi; \
289 done); \
290 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
291 else \
292 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
293 :; \
294 else \
295 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
296 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
297 fi; \
298 fi; \
299 fi; \
300 done; \
301 done
302
303 # Define this as empty until I found a useful application.
304 installcheck:
305
306 uninstall: uninstall-exec uninstall-data
307 uninstall-exec:
308 uninstall-data: uninstall-data-@USE_NLS@
309 if test "$(PACKAGE)" = "gettext-tools"; then \
310 for file in $(DISTFILES.common) Makevars.template; do \
311 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
312 done; \
313 else \
314 : ; \
315 fi
316 uninstall-data-no:
317 uninstall-data-yes:
318 catalogs='$(CATALOGS)'; \
319 for cat in $$catalogs; do \
320 cat=`basename $$cat`; \
321 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
322 for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
323 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
324 done; \
325 done
326
327 check: all
328
329 info dvi ps pdf html tags TAGS ctags CTAGS ID:
330
331 mostlyclean:
332 rm -f remove-potcdate.sed
333 rm -f stamp-poT
334 rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
335 rm -fr *.o
336
337 clean: mostlyclean
338
339 distclean: clean
340 rm -f Makefile Makefile.in POTFILES *.mo
341
342 maintainer-clean: distclean
343 @echo "This command is intended for maintainers to use;"
344 @echo "it deletes files that may require special tools to rebuild."
345 rm -f stamp-po $(GMOFILES)
346
347 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
348 dist distdir:
349 $(MAKE) update-po
350 @$(MAKE) dist2
351 # This is a separate target because 'update-po' must be executed before.
352 dist2: stamp-po $(DISTFILES)
353 dists="$(DISTFILES)"; \
354 if test "$(PACKAGE)" = "gettext-tools"; then \
355 dists="$$dists Makevars.template"; \
356 fi; \
357 if test -f $(srcdir)/$(DOMAIN).pot; then \
358 dists="$$dists $(DOMAIN).pot stamp-po"; \
359 fi; \
360 if test -f $(srcdir)/ChangeLog; then \
361 dists="$$dists ChangeLog"; \
362 fi; \
363 for i in 0 1 2 3 4 5 6 7 8 9; do \
364 if test -f $(srcdir)/ChangeLog.$$i; then \
365 dists="$$dists ChangeLog.$$i"; \
366 fi; \
367 done; \
368 if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
369 for file in $$dists; do \
370 if test -f $$file; then \
371 cp -p $$file $(distdir) || exit 1; \
372 else \
373 cp -p $(srcdir)/$$file $(distdir) || exit 1; \
374 fi; \
375 done
376
377 update-po: Makefile
378 $(MAKE) $(DOMAIN).pot-update
379 test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
380 $(MAKE) update-gmo
381
382 # General rule for creating PO files.
383
384 .nop.po-create:
385 @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
386 echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
387 exit 1
388
389 # General rule for updating PO files.
390
391 .nop.po-update:
392 @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
393 if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
394 tmpdir=`pwd`; \
395 echo "$$lang:"; \
396 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
397 echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
398 cd $(srcdir); \
399 if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
400 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
401 rm -f $$tmpdir/$$lang.new.po; \
402 else \
403 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
404 :; \
405 else \
406 echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
407 exit 1; \
408 fi; \
409 fi; \
410 else \
411 echo "msgmerge for $$lang.po failed!" 1>&2; \
412 rm -f $$tmpdir/$$lang.new.po; \
413 fi
414
415 $(DUMMYPOFILES):
416
417 update-gmo: Makefile $(GMOFILES)
418 @:
419
420 Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
421 cd $(top_builddir) \
422 && $(SHELL) ./config.status $(subdir)/$@.in po-directories
423
424 force:
425
426 # Tell versions [3.59,3.63) of GNU make not to export all variables.
427 # Otherwise a system limit (for SysV at least) may be exceeded.
428 .NOEXPORT:
0 # Makefile variables for PO directory in any package using GNU gettext.
1
2 # Usually the message domain is the same as the package name.
3 DOMAIN = $(PACKAGE)
4
5 # These two variables depend on the location of this directory.
6 subdir = po
7 top_builddir = ..
8
9 # These options get passed to xgettext.
10 XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
11
12 # This is the copyright holder that gets inserted into the header of the
13 # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
14 # package. (Note that the msgstr strings, extracted from the package's
15 # sources, belong to the copyright holder of the package.) Translators are
16 # expected to transfer the copyright for their translations to this person
17 # or entity, or to disclaim their copyright. The empty string stands for
18 # the public domain; in this case the translators are expected to disclaim
19 # their copyright.
20 COPYRIGHT_HOLDER = Free Software Foundation, Inc.
21
22 # This is the email address or URL to which the translators shall report
23 # bugs in the untranslated strings:
24 # - Strings which are not entire sentences, see the maintainer guidelines
25 # in the GNU gettext documentation, section 'Preparing Strings'.
26 # - Strings which use unclear terms or require additional context to be
27 # understood.
28 # - Strings which make invalid assumptions about notation of date, time or
29 # money.
30 # - Pluralisation problems.
31 # - Incorrect English spelling.
32 # - Incorrect formatting.
33 # It can be your email address, or a mailing list address where translators
34 # can write to without being subscribed, or the URL of a web page through
35 # which the translators can contact you.
36 MSGID_BUGS_ADDRESS =
37
38 # This is the list of locale categories, beyond LC_MESSAGES, for which the
39 # message catalogs shall be used. It is usually empty.
40 EXTRA_LOCALE_CATEGORIES =
0 # List of source files containing translatable strings.
1
2 ## Created by Anjuta - will be overwritten
3 ## If you don't want it to overwrite it,
4 ## Please disable it in the Anjuta project configuration
5
6 # Source files
7 src/hdate_strings.c
0 # Special Makefile rules for English message catalogs with quotation marks.
1
2 DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
3
4 .SUFFIXES: .insert-header .po-update-en
5
6 en@quot.po-create:
7 $(MAKE) en@quot.po-update
8 en@boldquot.po-create:
9 $(MAKE) en@boldquot.po-update
10
11 en@quot.po-update: en@quot.po-update-en
12 en@boldquot.po-update: en@boldquot.po-update-en
13
14 .insert-header.po-update-en:
15 @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
16 if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
17 tmpdir=`pwd`; \
18 echo "$$lang:"; \
19 ll=`echo $$lang | sed -e 's/@.*//'`; \
20 LC_ALL=C; export LC_ALL; \
21 cd $(srcdir); \
22 if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \
23 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
24 rm -f $$tmpdir/$$lang.new.po; \
25 else \
26 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
27 :; \
28 else \
29 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
30 exit 1; \
31 fi; \
32 fi; \
33 else \
34 echo "creation of $$lang.po failed!" 1>&2; \
35 rm -f $$tmpdir/$$lang.new.po; \
36 fi
37
38 en@quot.insert-header: insert-header.sin
39 sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
40
41 en@boldquot.insert-header: insert-header.sin
42 sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
43
44 mostlyclean: mostlyclean-quot
45 mostlyclean-quot:
46 rm -f *.insert-header
0 s/"\([^"]*\)"/“\1”/g
1 s/`\([^`']*\)'/‘\1’/g
2 s/ '\([^`']*\)' / ‘\1’ /g
3 s/ '\([^`']*\)'$/ ‘\1’/g
4 s/^'\([^`']*\)' /‘\1’ /g
5 s/“”/""/g
6 s/“/“/g
7 s/”/”/g
8 s/‘/‘/g
9 s/’/’/g
0 # All this catalog "translates" are quotation characters.
1 # The msgids must be ASCII and therefore cannot contain real quotation
2 # characters, only substitutes like grave accent (0x60), apostrophe (0x27)
3 # and double quote (0x22). These substitutes look strange; see
4 # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
5 #
6 # This catalog translates grave accent (0x60) and apostrophe (0x27) to
7 # left single quotation mark (U+2018) and right single quotation mark (U+2019).
8 # It also translates pairs of apostrophe (0x27) to
9 # left single quotation mark (U+2018) and right single quotation mark (U+2019)
10 # and pairs of quotation mark (0x22) to
11 # left double quotation mark (U+201C) and right double quotation mark (U+201D).
12 #
13 # When output to an UTF-8 terminal, the quotation characters appear perfectly.
14 # When output to an ISO-8859-1 terminal, the single quotation marks are
15 # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
16 # grave/acute accent (by libiconv), and the double quotation marks are
17 # transliterated to 0x22.
18 # When output to an ASCII terminal, the single quotation marks are
19 # transliterated to apostrophes, and the double quotation marks are
20 # transliterated to 0x22.
21 #
22 # This catalog furthermore displays the text between the quotation marks in
23 # bold face, assuming the VT100/XTerm escape sequences.
24 #
0 # All this catalog "translates" are quotation characters.
1 # The msgids must be ASCII and therefore cannot contain real quotation
2 # characters, only substitutes like grave accent (0x60), apostrophe (0x27)
3 # and double quote (0x22). These substitutes look strange; see
4 # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
5 #
6 # This catalog translates grave accent (0x60) and apostrophe (0x27) to
7 # left single quotation mark (U+2018) and right single quotation mark (U+2019).
8 # It also translates pairs of apostrophe (0x27) to
9 # left single quotation mark (U+2018) and right single quotation mark (U+2019)
10 # and pairs of quotation mark (0x22) to
11 # left double quotation mark (U+201C) and right double quotation mark (U+201D).
12 #
13 # When output to an UTF-8 terminal, the quotation characters appear perfectly.
14 # When output to an ISO-8859-1 terminal, the single quotation marks are
15 # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
16 # grave/acute accent (by libiconv), and the double quotation marks are
17 # transliterated to 0x22.
18 # When output to an ASCII terminal, the single quotation marks are
19 # transliterated to apostrophes, and the double quotation marks are
20 # transliterated to 0x22.
21 #
Binary diff not shown
0 # translation of libhdate.po to Spanish
1 # This file is distributed under the same license as the libhdate package.
2 # Copyright (C) 2005 Yaacov Zamir, Peled Esti
3 # Peled Esti <esti@actcom.co.il>, 2005.
4 #
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: es_MX\n"
8 "Report-Msgid-Bugs-To: \n"
9 "POT-Creation-Date: 2008-01-05 10:30+0200\n"
10 "PO-Revision-Date: 2005-03-07 12:44+0200\n"
11 "Last-Translator: Peled Esti <esti@actcom.co.il>\n"
12 "Language-Team: Spanish\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16
17 #: src/hdate_strings.c:131
18 msgid "Sun"
19 msgstr "Dom"
20
21 #: src/hdate_strings.c:131
22 msgid "Mon"
23 msgstr "Lun"
24
25 #: src/hdate_strings.c:131
26 msgid "Tue"
27 msgstr "Mar"
28
29 #: src/hdate_strings.c:131
30 msgid "Wed"
31 msgstr "Mier"
32
33 #: src/hdate_strings.c:131
34 msgid "Thu"
35 msgstr "Jue"
36
37 #: src/hdate_strings.c:132
38 msgid "Fri"
39 msgstr "Vier"
40
41 #: src/hdate_strings.c:132
42 msgid "Sat"
43 msgstr "Sab"
44
45 #: src/hdate_strings.c:133
46 msgid "Sunday"
47 msgstr "Domingo"
48
49 #: src/hdate_strings.c:133
50 msgid "Monday"
51 msgstr "Lunes"
52
53 #: src/hdate_strings.c:133
54 msgid "Tuesday"
55 msgstr "Martes"
56
57 #: src/hdate_strings.c:133
58 msgid "Wednesday"
59 msgstr "Miercoles"
60
61 #: src/hdate_strings.c:134
62 msgid "Thursday"
63 msgstr "Jueves"
64
65 #: src/hdate_strings.c:134
66 msgid "Friday"
67 msgstr "Viernes"
68
69 #: src/hdate_strings.c:134
70 msgid "Saturday"
71 msgstr "Sabado"
72
73 #: src/hdate_strings.c:165
74 msgid "Jan"
75 msgstr "Ene"
76
77 #: src/hdate_strings.c:165
78 msgid "Feb"
79 msgstr "Feb"
80
81 #: src/hdate_strings.c:165
82 msgid "Mar"
83 msgstr "Mar"
84
85 #: src/hdate_strings.c:165
86 msgid "Apr"
87 msgstr "Abr"
88
89 #: src/hdate_strings.c:165 src/hdate_strings.c:169
90 msgid "May"
91 msgstr "May"
92
93 #: src/hdate_strings.c:166
94 msgid "Jun"
95 msgstr "Jun"
96
97 #: src/hdate_strings.c:166
98 msgid "Jul"
99 msgstr "Jul"
100
101 #: src/hdate_strings.c:166
102 msgid "Aug"
103 msgstr "Ago"
104
105 #: src/hdate_strings.c:166
106 msgid "Sep"
107 msgstr "Sep"
108
109 #: src/hdate_strings.c:166
110 msgid "Oct"
111 msgstr "Oct"
112
113 #: src/hdate_strings.c:167
114 msgid "Nov"
115 msgstr "Nov"
116
117 #: src/hdate_strings.c:167
118 msgid "Dec"
119 msgstr "Dic"
120
121 #: src/hdate_strings.c:168
122 msgid "January"
123 msgstr "Enero"
124
125 #: src/hdate_strings.c:168
126 msgid "February"
127 msgstr "Febrero"
128
129 #: src/hdate_strings.c:168
130 msgid "March"
131 msgstr "Marzo"
132
133 #: src/hdate_strings.c:169
134 msgid "April"
135 msgstr "Abril"
136
137 #: src/hdate_strings.c:169
138 msgid "June"
139 msgstr "Junio"
140
141 #: src/hdate_strings.c:170
142 msgid "July"
143 msgstr "Julio"
144
145 #: src/hdate_strings.c:170
146 msgid "August"
147 msgstr "Agosto"
148
149 #: src/hdate_strings.c:170
150 msgid "September"
151 msgstr "Septiembre"
152
153 #: src/hdate_strings.c:171
154 msgid "October"
155 msgstr "Octubre"
156
157 #: src/hdate_strings.c:171
158 msgid "November"
159 msgstr "Noviembre"
160
161 #: src/hdate_strings.c:171
162 msgid "December"
163 msgstr "Diciembre"
164
165 #: src/hdate_strings.c:202 src/hdate_strings.c:206
166 msgid "Tishrei"
167 msgstr "Tishrei"
168
169 #: src/hdate_strings.c:202 src/hdate_strings.c:206
170 msgid "Cheshvan"
171 msgstr "Jeshván"
172
173 #: src/hdate_strings.c:202 src/hdate_strings.c:206
174 msgid "Kislev"
175 msgstr "Kislev"
176
177 #: src/hdate_strings.c:202 src/hdate_strings.c:206
178 msgid "Tevet"
179 msgstr "Tevet"
180
181 #: src/hdate_strings.c:203 src/hdate_strings.c:207
182 #, fuzzy
183 msgid "Sh'vat"
184 msgstr "Sh'vat"
185
186 #: src/hdate_strings.c:203 src/hdate_strings.c:207
187 msgid "Adar"
188 msgstr "Adar"
189
190 #: src/hdate_strings.c:203 src/hdate_strings.c:207
191 msgid "Nisan"
192 msgstr "Nisan"
193
194 #: src/hdate_strings.c:203 src/hdate_strings.c:207
195 #, fuzzy
196 msgid "Iyyar"
197 msgstr "Iyyar"
198
199 #: src/hdate_strings.c:204 src/hdate_strings.c:208
200 msgid "Sivan"
201 msgstr "Siván"
202
203 #: src/hdate_strings.c:204 src/hdate_strings.c:208
204 msgid "Tamuz"
205 msgstr "Tamuz"
206
207 #: src/hdate_strings.c:204 src/hdate_strings.c:208
208 msgid "Av"
209 msgstr "Av"
210
211 #: src/hdate_strings.c:204 src/hdate_strings.c:208
212 msgid "Elul"
213 msgstr "Elul"
214
215 #: src/hdate_strings.c:204 src/hdate_strings.c:208
216 msgid "Adar I"
217 msgstr "Adar I"
218
219 #: src/hdate_strings.c:205 src/hdate_strings.c:209
220 msgid "Adar II"
221 msgstr "Adar II"
222
223 #: src/hdate_strings.c:241 src/hdate_strings.c:278
224 msgid "Rosh Hashana I"
225 msgstr "Rosh Hashana I"
226
227 #: src/hdate_strings.c:242 src/hdate_strings.c:279
228 msgid "Rosh Hashana II"
229 msgstr "Rosh Hashana II"
230
231 #: src/hdate_strings.c:243 src/hdate_strings.c:280
232 msgid "Tzom Gedaliah"
233 msgstr "Ayuno de Gedaliah"
234
235 #: src/hdate_strings.c:244 src/hdate_strings.c:281
236 msgid "Yom Kippur"
237 msgstr "Yom Kippur"
238
239 #: src/hdate_strings.c:245 src/hdate_strings.c:282
240 msgid "Sukkot"
241 msgstr "Sukkot"
242
243 #: src/hdate_strings.c:246 src/hdate_strings.c:283
244 msgid "Hol hamoed Sukkot"
245 msgstr "Hol hamoed Sukkot"
246
247 #: src/hdate_strings.c:247 src/hdate_strings.c:284
248 msgid "Hoshana raba"
249 msgstr "Hoshana raba"
250
251 #: src/hdate_strings.c:248 src/hdate_strings.c:285
252 msgid "Simchat Torah"
253 msgstr "Simjat Torah"
254
255 #: src/hdate_strings.c:249 src/hdate_strings.c:286
256 msgid "Chanukah"
257 msgstr "Januka"
258
259 #: src/hdate_strings.c:250 src/hdate_strings.c:287
260 #, fuzzy
261 msgid "Asara B'Tevet"
262 msgstr "Asara B'Tevet"
263
264 #: src/hdate_strings.c:251 src/hdate_strings.c:288
265 msgid "Tu B'Shvat"
266 msgstr "Tu B'Shvat"
267
268 #: src/hdate_strings.c:252 src/hdate_strings.c:289
269 #, fuzzy
270 msgid "Ta'anit Esther"
271 msgstr "Ta'anit Esther"
272
273 #: src/hdate_strings.c:253 src/hdate_strings.c:290
274 msgid "Purim"
275 msgstr "Purim"
276
277 #: src/hdate_strings.c:254 src/hdate_strings.c:291
278 msgid "Shushan Purim"
279 msgstr "Shushan Purim"
280
281 #: src/hdate_strings.c:255 src/hdate_strings.c:292
282 msgid "Pesach"
283 msgstr "Pesaj"
284
285 #: src/hdate_strings.c:256 src/hdate_strings.c:293
286 msgid "Hol hamoed Pesach"
287 msgstr "Jol hamoed Pesaj"
288
289 #: src/hdate_strings.c:257 src/hdate_strings.c:294
290 msgid "Yom HaAtzma'ut"
291 msgstr "Yom HaAtzma'ut"
292
293 #: src/hdate_strings.c:258 src/hdate_strings.c:295
294 msgid "Lag B'Omer"
295 msgstr "Lag B'Omer"
296
297 #: src/hdate_strings.c:259 src/hdate_strings.c:296
298 msgid "Erev Shavuot"
299 msgstr "Víspera de Shavuot"
300
301 #: src/hdate_strings.c:260 src/hdate_strings.c:297
302 msgid "Shavuot"
303 msgstr "Shavuot"
304
305 #: src/hdate_strings.c:261 src/hdate_strings.c:298
306 msgid "Tzom Tammuz"
307 msgstr "Ayuno de Tammuz"
308
309 #: src/hdate_strings.c:262 src/hdate_strings.c:299
310 msgid "Tish'a B'Av"
311 msgstr "Tish'a B'Av"
312
313 #: src/hdate_strings.c:263 src/hdate_strings.c:300
314 msgid "Tu B'Av"
315 msgstr "Tu B'Av"
316
317 #: src/hdate_strings.c:264 src/hdate_strings.c:301
318 msgid "Yom HaShoah"
319 msgstr "Día del Holocausto"
320
321 #: src/hdate_strings.c:265 src/hdate_strings.c:302
322 msgid "Yom HaZikaron"
323 msgstr "Día del Recuerdo"
324
325 #: src/hdate_strings.c:266 src/hdate_strings.c:303
326 #, fuzzy
327 msgid "Yom Yerushalayim"
328 msgstr "Yom Yerushalayim"
329
330 #: src/hdate_strings.c:267 src/hdate_strings.c:304
331 msgid "Shmini Atzeret"
332 msgstr "Shemini Atzeret"
333
334 #: src/hdate_strings.c:268 src/hdate_strings.c:305
335 msgid "Pesach VII"
336 msgstr "Pesaj VII"
337
338 #: src/hdate_strings.c:269 src/hdate_strings.c:306
339 msgid "Pesach VIII"
340 msgstr "Pesaj VIII"
341
342 #: src/hdate_strings.c:270 src/hdate_strings.c:307
343 msgid "Shavuot II"
344 msgstr "Shavuot II"
345
346 #: src/hdate_strings.c:271 src/hdate_strings.c:308
347 #, fuzzy
348 msgid "Sukkot II"
349 msgstr "Sukkot II"
350
351 #: src/hdate_strings.c:272 src/hdate_strings.c:309
352 #, fuzzy
353 msgid "Pesach II"
354 msgstr "Pesaj II"
355
356 #: src/hdate_strings.c:273 src/hdate_strings.c:310
357 msgid "Family Day"
358 msgstr ""
359
360 #: src/hdate_strings.c:274 src/hdate_strings.c:311
361 msgid "Memorial day for fallen whose place of burial is unknown"
362 msgstr ""
363
364 #: src/hdate_strings.c:275
365 msgid "Rabin memorial day"
366 msgstr ""
367
368 #: src/hdate_strings.c:276
369 msgid "Zhabotinsky day"
370 msgstr ""
371
372 #: src/hdate_strings.c:312
373 msgid "Yitzhak Rabin memorial day"
374 msgstr ""
375
376 #: src/hdate_strings.c:313
377 msgid "Zeev Zhabotinsky day"
378 msgstr ""
379
380 #: src/hdate_strings.c:346 src/hdate_strings.c:409
381 msgid "none"
382 msgstr "ninguno"
383
384 #: src/hdate_strings.c:347 src/hdate_strings.c:410
385 msgid "Bereshit"
386 msgstr "Bereshit"
387
388 #: src/hdate_strings.c:348 src/hdate_strings.c:411
389 msgid "Noach"
390 msgstr "Noaj"
391
392 #: src/hdate_strings.c:349 src/hdate_strings.c:412
393 msgid "Lech-Lecha"
394 msgstr "Lej-Lejá"
395
396 #: src/hdate_strings.c:350 src/hdate_strings.c:413
397 msgid "Vayera"
398 msgstr "Vaira"
399
400 #: src/hdate_strings.c:351 src/hdate_strings.c:414
401 msgid "Chayei Sara"
402 msgstr "Jayei Sará"
403
404 #: src/hdate_strings.c:352 src/hdate_strings.c:415
405 #, fuzzy
406 msgid "Toldot"
407 msgstr "Toldot"
408
409 #: src/hdate_strings.c:353 src/hdate_strings.c:416
410 #, fuzzy
411 msgid "Vayetzei"
412 msgstr "Vayetzei"
413
414 #: src/hdate_strings.c:354 src/hdate_strings.c:417
415 #, fuzzy
416 msgid "Vayishlach"
417 msgstr "Vayishalaj"
418
419 #: src/hdate_strings.c:355 src/hdate_strings.c:418
420 #, fuzzy
421 msgid "Vayeshev"
422 msgstr "Vayeshev"
423
424 #: src/hdate_strings.c:356 src/hdate_strings.c:419
425 #, fuzzy
426 msgid "Miketz"
427 msgstr "Miketz"
428
429 #: src/hdate_strings.c:357 src/hdate_strings.c:420
430 #, fuzzy
431 msgid "Vayigash"
432 msgstr "Vayigash"
433
434 #: src/hdate_strings.c:358 src/hdate_strings.c:421
435 #, fuzzy
436 msgid "Vayechi"
437 msgstr "Vayejí"
438
439 #: src/hdate_strings.c:359 src/hdate_strings.c:422
440 msgid "Shemot"
441 msgstr "Shemot"
442
443 #: src/hdate_strings.c:360 src/hdate_strings.c:423
444 msgid "Vaera"
445 msgstr "Vaerá"
446
447 #: src/hdate_strings.c:361 src/hdate_strings.c:424
448 msgid "Bo"
449 msgstr "Bo"
450
451 #: src/hdate_strings.c:362 src/hdate_strings.c:425
452 msgid "Beshalach"
453 msgstr "Beshalaj"
454
455 #: src/hdate_strings.c:363 src/hdate_strings.c:426
456 msgid "Yitro"
457 msgstr "Yitro"
458
459 #: src/hdate_strings.c:364 src/hdate_strings.c:427
460 msgid "Mishpatim"
461 msgstr "Mishpatim"
462
463 #: src/hdate_strings.c:365 src/hdate_strings.c:428
464 msgid "Terumah"
465 msgstr "Terumá"
466
467 #: src/hdate_strings.c:366 src/hdate_strings.c:429
468 msgid "Tetzaveh"
469 msgstr "Tetzavé"
470
471 #: src/hdate_strings.c:367 src/hdate_strings.c:430
472 msgid "Ki Tisa"
473 msgstr "Ki Tisá"
474
475 #: src/hdate_strings.c:368 src/hdate_strings.c:431
476 msgid "Vayakhel"
477 msgstr "Vayajel"
478
479 #: src/hdate_strings.c:369 src/hdate_strings.c:432
480 msgid "Pekudei"
481 msgstr "Pekudei"
482
483 #: src/hdate_strings.c:370 src/hdate_strings.c:433
484 msgid "Vayikra"
485 msgstr "Vayikrá"
486
487 #: src/hdate_strings.c:371 src/hdate_strings.c:434
488 msgid "Tzav"
489 msgstr "Tzav"
490
491 #: src/hdate_strings.c:372 src/hdate_strings.c:435
492 msgid "Shmini"
493 msgstr "Shemini"
494
495 #: src/hdate_strings.c:373 src/hdate_strings.c:436
496 msgid "Tazria"
497 msgstr "Tazría"
498
499 #: src/hdate_strings.c:374 src/hdate_strings.c:437
500 msgid "Metzora"
501 msgstr "Metzorá"
502
503 #: src/hdate_strings.c:375 src/hdate_strings.c:438
504 msgid "Achrei Mot"
505 msgstr "Ajrei Mot"
506
507 #: src/hdate_strings.c:376 src/hdate_strings.c:439
508 msgid "Kedoshim"
509 msgstr "Kedoshim"
510
511 #: src/hdate_strings.c:377 src/hdate_strings.c:440
512 msgid "Emor"
513 msgstr "Emor"
514
515 #: src/hdate_strings.c:378 src/hdate_strings.c:441
516 msgid "Behar"
517 msgstr "Bejar"
518
519 #: src/hdate_strings.c:379 src/hdate_strings.c:442
520 msgid "Bechukotai"
521 msgstr "Bejukotai"
522
523 #: src/hdate_strings.c:380 src/hdate_strings.c:443
524 msgid "Bamidbar"
525 msgstr "Bamidbar"
526
527 #: src/hdate_strings.c:381 src/hdate_strings.c:444
528 #, fuzzy
529 msgid "Nasso"
530 msgstr "Nasso"
531
532 #: src/hdate_strings.c:382 src/hdate_strings.c:445
533 msgid "Beha'alotcha"
534 msgstr "Beha'alotja"
535
536 #: src/hdate_strings.c:383 src/hdate_strings.c:446
537 msgid "Sh'lach"
538 msgstr "Shalaj"
539
540 #: src/hdate_strings.c:384 src/hdate_strings.c:447
541 msgid "Korach"
542 msgstr "Koraj"
543
544 #: src/hdate_strings.c:385 src/hdate_strings.c:448
545 msgid "Chukat"
546 msgstr "Jukat"
547
548 #: src/hdate_strings.c:386 src/hdate_strings.c:449
549 msgid "Balak"
550 msgstr "Balak"
551
552 #: src/hdate_strings.c:387 src/hdate_strings.c:450
553 msgid "Pinchas"
554 msgstr "Pinjas"
555
556 #: src/hdate_strings.c:388 src/hdate_strings.c:451
557 msgid "Matot"
558 msgstr "Matot"
559
560 #: src/hdate_strings.c:389 src/hdate_strings.c:452
561 msgid "Masei"
562 msgstr "Masei"
563
564 #: src/hdate_strings.c:390 src/hdate_strings.c:453
565 msgid "Devarim"
566 msgstr "Devarim"
567
568 #: src/hdate_strings.c:391 src/hdate_strings.c:454
569 msgid "Vaetchanan"
570 msgstr "Vaetjanan"
571
572 #: src/hdate_strings.c:392 src/hdate_strings.c:455
573 msgid "Eikev"
574 msgstr "Eikev"
575
576 #: src/hdate_strings.c:393 src/hdate_strings.c:456
577 msgid "Re'eh"
578 msgstr "Re'é"
579
580 #: src/hdate_strings.c:394 src/hdate_strings.c:457
581 msgid "Shoftim"
582 msgstr "Shoftim"
583
584 #: src/hdate_strings.c:395 src/hdate_strings.c:458
585 msgid "Ki Teitzei"
586 msgstr "Ki Teitzei"
587
588 #: src/hdate_strings.c:396 src/hdate_strings.c:459
589 msgid "Ki Tavo"
590 msgstr "Ki Tavó"
591
592 #: src/hdate_strings.c:397 src/hdate_strings.c:460
593 msgid "Nitzavim"
594 msgstr "Nitzavim"
595
596 #: src/hdate_strings.c:398 src/hdate_strings.c:461
597 msgid "Vayeilech"
598 msgstr "Vayeilej"
599
600 #: src/hdate_strings.c:399 src/hdate_strings.c:462
601 msgid "Ha'Azinu"
602 msgstr "Ha'Azinu"
603
604 #: src/hdate_strings.c:400 src/hdate_strings.c:463
605 msgid "Vezot Habracha"
606 msgstr "Vezot Haberaja"
607
608 #: src/hdate_strings.c:401 src/hdate_strings.c:464
609 #, fuzzy
610 msgid "Vayakhel-Pekudei"
611 msgstr "Vayakhel-Pekudei"
612
613 #: src/hdate_strings.c:402 src/hdate_strings.c:465
614 msgid "Tazria-Metzora"
615 msgstr "Tazría-Metzora"
616
617 #: src/hdate_strings.c:403 src/hdate_strings.c:466
618 msgid "Achrei Mot-Kedoshim"
619 msgstr "Ajrei Mot-Kedoshim"
620
621 #: src/hdate_strings.c:404 src/hdate_strings.c:467
622 msgid "Behar-Bechukotai"
623 msgstr "Bejar-Bejukotai"
624
625 #: src/hdate_strings.c:405 src/hdate_strings.c:468
626 msgid "Chukat-Balak"
627 msgstr "Jukat-Balak"
628
629 #: src/hdate_strings.c:406 src/hdate_strings.c:469
630 msgid "Matot-Masei"
631 msgstr "Matot-Masei"
632
633 #: src/hdate_strings.c:407 src/hdate_strings.c:470
634 #, fuzzy
635 msgid "Nitzavim-Vayeilech"
636 msgstr "Nitzavim-Vayeilej"
637
638 #: src/hdate_strings.c:568 src/hdate_strings.c:572
639 msgid "translator"
640 msgstr "Esther Peled <esti@actcom.co.il>"
Binary diff not shown
0 # translation of libhdate.po to French
1 # This file is distributed under the same license as the libhdate package.
2 # Copyright (C) 2005 Yaacov Zamir
3 # Yaacov Zamir, 2005.
4 #
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: fr\n"
8 "Report-Msgid-Bugs-To: \n"
9 "POT-Creation-Date: 2008-01-05 10:30+0200\n"
10 "PO-Revision-Date: 2005-03-07 12:44+0200\n"
11 "Last-Translator: Yaacov Zamir\n"
12 "Language-Team: Franch\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16
17 #: src/hdate_strings.c:131
18 msgid "Sun"
19 msgstr "Dim"
20
21 #: src/hdate_strings.c:131
22 msgid "Mon"
23 msgstr "Lun"
24
25 #: src/hdate_strings.c:131
26 msgid "Tue"
27 msgstr "Mar"
28
29 #: src/hdate_strings.c:131
30 msgid "Wed"
31 msgstr "Mer"
32
33 #: src/hdate_strings.c:131
34 msgid "Thu"
35 msgstr "Jeu"
36
37 #: src/hdate_strings.c:132
38 msgid "Fri"
39 msgstr "Ven"
40
41 #: src/hdate_strings.c:132
42 msgid "Sat"
43 msgstr "Sam"
44
45 #: src/hdate_strings.c:133
46 msgid "Sunday"
47 msgstr "Dimanche"
48
49 #: src/hdate_strings.c:133
50 msgid "Monday"
51 msgstr "Lundi"
52
53 #: src/hdate_strings.c:133
54 msgid "Tuesday"
55 msgstr "Mardi"
56
57 #: src/hdate_strings.c:133
58 msgid "Wednesday"
59 msgstr "Mercredi"
60
61 #: src/hdate_strings.c:134
62 msgid "Thursday"
63 msgstr "Jeudi"
64
65 #: src/hdate_strings.c:134
66 msgid "Friday"
67 msgstr "Vendredi"
68
69 #: src/hdate_strings.c:134
70 msgid "Saturday"
71 msgstr "Samedi"
72
73 #: src/hdate_strings.c:165
74 msgid "Jan"
75 msgstr "Jan"
76
77 #: src/hdate_strings.c:165
78 msgid "Feb"
79 msgstr "Fév"
80
81 #: src/hdate_strings.c:165
82 msgid "Mar"
83 msgstr "Mar"
84
85 #: src/hdate_strings.c:165
86 msgid "Apr"
87 msgstr "Avr"
88
89 #: src/hdate_strings.c:165 src/hdate_strings.c:169
90 msgid "May"
91 msgstr "mai"
92
93 #: src/hdate_strings.c:166
94 msgid "Jun"
95 msgstr "Juin"
96
97 #: src/hdate_strings.c:166
98 msgid "Jul"
99 msgstr "Juil"
100
101 #: src/hdate_strings.c:166
102 msgid "Aug"
103 msgstr "Août"
104
105 #: src/hdate_strings.c:166
106 msgid "Sep"
107 msgstr "Sep"
108
109 #: src/hdate_strings.c:166
110 msgid "Oct"
111 msgstr "Oct"
112
113 #: src/hdate_strings.c:167
114 msgid "Nov"
115 msgstr "Nov"
116
117 #: src/hdate_strings.c:167
118 msgid "Dec"
119 msgstr "Déc"
120
121 #: src/hdate_strings.c:168
122 msgid "January"
123 msgstr "Janvier"
124
125 #: src/hdate_strings.c:168
126 msgid "February"
127 msgstr "Février"
128
129 #: src/hdate_strings.c:168
130 msgid "March"
131 msgstr "Mars"
132
133 #: src/hdate_strings.c:169
134 msgid "April"
135 msgstr "Avril"
136
137 #: src/hdate_strings.c:169
138 msgid "June"
139 msgstr "Juin"
140
141 #: src/hdate_strings.c:170
142 msgid "July"
143 msgstr "Juillet"
144
145 #: src/hdate_strings.c:170
146 msgid "August"
147 msgstr "Août"
148
149 #: src/hdate_strings.c:170
150 msgid "September"
151 msgstr "Septembre"
152
153 #: src/hdate_strings.c:171
154 msgid "October"
155 msgstr "Octobre"
156
157 #: src/hdate_strings.c:171
158 msgid "November"
159 msgstr "Novembre"
160
161 #: src/hdate_strings.c:171
162 msgid "December"
163 msgstr "Décembre"
164
165 #: src/hdate_strings.c:202 src/hdate_strings.c:206
166 msgid "Tishrei"
167 msgstr "Tishrei"
168
169 #: src/hdate_strings.c:202 src/hdate_strings.c:206
170 msgid "Cheshvan"
171 msgstr "Cheshván"
172
173 #: src/hdate_strings.c:202 src/hdate_strings.c:206
174 msgid "Kislev"
175 msgstr "Kislev"
176
177 #: src/hdate_strings.c:202 src/hdate_strings.c:206
178 msgid "Tevet"
179 msgstr "Tevet"
180
181 #: src/hdate_strings.c:203 src/hdate_strings.c:207
182 msgid "Sh'vat"
183 msgstr "Sh'vat"
184
185 #: src/hdate_strings.c:203 src/hdate_strings.c:207
186 msgid "Adar"
187 msgstr "Adar"
188
189 #: src/hdate_strings.c:203 src/hdate_strings.c:207
190 msgid "Nisan"
191 msgstr "Nisan"
192
193 #: src/hdate_strings.c:203 src/hdate_strings.c:207
194 msgid "Iyyar"
195 msgstr "Iyyar"
196
197 #: src/hdate_strings.c:204 src/hdate_strings.c:208
198 msgid "Sivan"
199 msgstr "Siván"
200
201 #: src/hdate_strings.c:204 src/hdate_strings.c:208
202 msgid "Tamuz"
203 msgstr "Tamuz"
204
205 #: src/hdate_strings.c:204 src/hdate_strings.c:208
206 msgid "Av"
207 msgstr "Av"
208
209 #: src/hdate_strings.c:204 src/hdate_strings.c:208
210 msgid "Elul"
211 msgstr "Elul"
212
213 #: src/hdate_strings.c:204 src/hdate_strings.c:208
214 msgid "Adar I"
215 msgstr "Adar I"
216
217 #: src/hdate_strings.c:205 src/hdate_strings.c:209
218 msgid "Adar II"
219 msgstr "Adar II"
220
221 #: src/hdate_strings.c:241 src/hdate_strings.c:278
222 msgid "Rosh Hashana I"
223 msgstr "Rosh Hashana I"
224
225 #: src/hdate_strings.c:242 src/hdate_strings.c:279
226 msgid "Rosh Hashana II"
227 msgstr "Rosh Hashana II"
228
229 #: src/hdate_strings.c:243 src/hdate_strings.c:280
230 msgid "Tzom Gedaliah"
231 msgstr "Tzom Gedaliah"
232
233 #: src/hdate_strings.c:244 src/hdate_strings.c:281
234 msgid "Yom Kippur"
235 msgstr "Yom Kippur"
236
237 #: src/hdate_strings.c:245 src/hdate_strings.c:282
238 msgid "Sukkot"
239 msgstr "Sukkot"
240
241 #: src/hdate_strings.c:246 src/hdate_strings.c:283
242 msgid "Hol hamoed Sukkot"
243 msgstr "Hol hamoed Sukkot"
244
245 #: src/hdate_strings.c:247 src/hdate_strings.c:284
246 msgid "Hoshana raba"
247 msgstr "Hoshana raba"
248
249 #: src/hdate_strings.c:248 src/hdate_strings.c:285
250 msgid "Simchat Torah"
251 msgstr "Simchat Torah"
252
253 #: src/hdate_strings.c:249 src/hdate_strings.c:286
254 msgid "Chanukah"
255 msgstr "Chanuka"
256
257 #: src/hdate_strings.c:250 src/hdate_strings.c:287
258 msgid "Asara B'Tevet"
259 msgstr "Asara B'Tevet"
260
261 #: src/hdate_strings.c:251 src/hdate_strings.c:288
262 msgid "Tu B'Shvat"
263 msgstr "Tu B'Shvat"
264
265 #: src/hdate_strings.c:252 src/hdate_strings.c:289
266 msgid "Ta'anit Esther"
267 msgstr "Ta'anit Esther"
268
269 #: src/hdate_strings.c:253 src/hdate_strings.c:290
270 msgid "Purim"
271 msgstr "Purim"
272
273 #: src/hdate_strings.c:254 src/hdate_strings.c:291
274 msgid "Shushan Purim"
275 msgstr "Shushan Purim"
276
277 #: src/hdate_strings.c:255 src/hdate_strings.c:292
278 msgid "Pesach"
279 msgstr "Pesach"
280
281 #: src/hdate_strings.c:256 src/hdate_strings.c:293
282 msgid "Hol hamoed Pesach"
283 msgstr "Chol hamoed Pesach"
284
285 #: src/hdate_strings.c:257 src/hdate_strings.c:294
286 msgid "Yom HaAtzma'ut"
287 msgstr "Yom HaAtzma'ut"
288
289 #: src/hdate_strings.c:258 src/hdate_strings.c:295
290 msgid "Lag B'Omer"
291 msgstr "Lag B'Omer"
292
293 #: src/hdate_strings.c:259 src/hdate_strings.c:296
294 msgid "Erev Shavuot"
295 msgstr "veille de Shavuot"
296
297 #: src/hdate_strings.c:260 src/hdate_strings.c:297
298 msgid "Shavuot"
299 msgstr "Shavuot"
300
301 #: src/hdate_strings.c:261 src/hdate_strings.c:298
302 msgid "Tzom Tammuz"
303 msgstr "Tzom Tammuz"
304
305 #: src/hdate_strings.c:262 src/hdate_strings.c:299
306 msgid "Tish'a B'Av"
307 msgstr "Tish'a B'Av"
308
309 #: src/hdate_strings.c:263 src/hdate_strings.c:300
310 msgid "Tu B'Av"
311 msgstr "Tu B'Av"
312
313 #: src/hdate_strings.c:264 src/hdate_strings.c:301
314 msgid "Yom HaShoah"
315 msgstr "Jour des Holocausto"
316
317 #: src/hdate_strings.c:265 src/hdate_strings.c:302
318 msgid "Yom HaZikaron"
319 msgstr "Jour des Recuerdo"
320
321 #: src/hdate_strings.c:266 src/hdate_strings.c:303
322 #, fuzzy
323 msgid "Yom Yerushalayim"
324 msgstr "Jour des Yerushalayim"
325
326 #: src/hdate_strings.c:267 src/hdate_strings.c:304
327 msgid "Shmini Atzeret"
328 msgstr "Shemini Atzeret"
329
330 #: src/hdate_strings.c:268 src/hdate_strings.c:305
331 msgid "Pesach VII"
332 msgstr "Pesach VII"
333
334 #: src/hdate_strings.c:269 src/hdate_strings.c:306
335 msgid "Pesach VIII"
336 msgstr "Pesach VIII"
337
338 #: src/hdate_strings.c:270 src/hdate_strings.c:307
339 msgid "Shavuot II"
340 msgstr "Shavuot II"
341
342 #: src/hdate_strings.c:271 src/hdate_strings.c:308
343 msgid "Sukkot II"
344 msgstr "Sukkot II"
345
346 #: src/hdate_strings.c:272 src/hdate_strings.c:309
347 msgid "Pesach II"
348 msgstr "Pesach II"
349
350 #: src/hdate_strings.c:273 src/hdate_strings.c:310
351 msgid "Family Day"
352 msgstr "Jour de famille"
353
354 #: src/hdate_strings.c:274 src/hdate_strings.c:311
355 msgid "Memorial day for fallen whose place of burial is unknown"
356 msgstr ""
357
358 #: src/hdate_strings.c:275
359 msgid "Rabin memorial day"
360 msgstr "Jour commémoratif de Rabin"
361
362 #: src/hdate_strings.c:276
363 msgid "Zhabotinsky day"
364 msgstr "Jour commémoratif de Zhabotinsky"
365
366 #: src/hdate_strings.c:312
367 msgid "Yitzhak Rabin memorial day"
368 msgstr "Jour commémoratif de Yitzhak Rabin"
369
370 #: src/hdate_strings.c:313
371 msgid "Zeev Zhabotinsky day"
372 msgstr "Jour commémoratif de Zeev Zhabotinsky"
373
374 #: src/hdate_strings.c:346 src/hdate_strings.c:409
375 msgid "none"
376 msgstr "nulle"
377
378 #: src/hdate_strings.c:347 src/hdate_strings.c:410
379 msgid "Bereshit"
380 msgstr "Bereshit"
381
382 #: src/hdate_strings.c:348 src/hdate_strings.c:411
383 msgid "Noach"
384 msgstr "Noach"
385
386 #: src/hdate_strings.c:349 src/hdate_strings.c:412
387 msgid "Lech-Lecha"
388 msgstr "Lech-Lecha"
389
390 #: src/hdate_strings.c:350 src/hdate_strings.c:413
391 msgid "Vayera"
392 msgstr "Vaira"
393
394 #: src/hdate_strings.c:351 src/hdate_strings.c:414
395 msgid "Chayei Sara"
396 msgstr "Chayei Sará"
397
398 #: src/hdate_strings.c:352 src/hdate_strings.c:415
399 msgid "Toldot"
400 msgstr "Toldot"
401
402 #: src/hdate_strings.c:353 src/hdate_strings.c:416
403 msgid "Vayetzei"
404 msgstr "Vayetzei"
405
406 #: src/hdate_strings.c:354 src/hdate_strings.c:417
407 msgid "Vayishlach"
408 msgstr "Vayishlach"
409
410 #: src/hdate_strings.c:355 src/hdate_strings.c:418
411 msgid "Vayeshev"
412 msgstr "Vayeshev"
413
414 #: src/hdate_strings.c:356 src/hdate_strings.c:419
415 msgid "Miketz"
416 msgstr "Miketz"
417
418 #: src/hdate_strings.c:357 src/hdate_strings.c:420
419 msgid "Vayigash"
420 msgstr "Vayigash"
421
422 #: src/hdate_strings.c:358 src/hdate_strings.c:421
423 msgid "Vayechi"
424 msgstr "Vayechí"
425
426 #: src/hdate_strings.c:359 src/hdate_strings.c:422
427 msgid "Shemot"
428 msgstr "Shemot"
429
430 #: src/hdate_strings.c:360 src/hdate_strings.c:423
431 msgid "Vaera"
432 msgstr "Vaerá"
433
434 #: src/hdate_strings.c:361 src/hdate_strings.c:424
435 msgid "Bo"
436 msgstr "Bo"
437
438 #: src/hdate_strings.c:362 src/hdate_strings.c:425
439 msgid "Beshalach"
440 msgstr "Beshalach"
441
442 #: src/hdate_strings.c:363 src/hdate_strings.c:426
443 msgid "Yitro"
444 msgstr "Yitro"
445
446 #: src/hdate_strings.c:364 src/hdate_strings.c:427
447 msgid "Mishpatim"
448 msgstr "Mishpatim"
449
450 #: src/hdate_strings.c:365 src/hdate_strings.c:428
451 msgid "Terumah"
452 msgstr "Terumá"
453
454 #: src/hdate_strings.c:366 src/hdate_strings.c:429
455 msgid "Tetzaveh"
456 msgstr "Tetzavé"
457
458 #: src/hdate_strings.c:367 src/hdate_strings.c:430
459 msgid "Ki Tisa"
460 msgstr "Ki Tisá"
461
462 #: src/hdate_strings.c:368 src/hdate_strings.c:431
463 msgid "Vayakhel"
464 msgstr "Vayakhel"
465
466 #: src/hdate_strings.c:369 src/hdate_strings.c:432
467 msgid "Pekudei"
468 msgstr "Pekudei"
469
470 #: src/hdate_strings.c:370 src/hdate_strings.c:433
471 msgid "Vayikra"
472 msgstr "Vayikrá"
473
474 #: src/hdate_strings.c:371 src/hdate_strings.c:434
475 msgid "Tzav"
476 msgstr "Tzav"
477
478 #: src/hdate_strings.c:372 src/hdate_strings.c:435
479 msgid "Shmini"
480 msgstr "Shemini"
481
482 #: src/hdate_strings.c:373 src/hdate_strings.c:436
483 msgid "Tazria"
484 msgstr "Tazría"
485
486 #: src/hdate_strings.c:374 src/hdate_strings.c:437
487 msgid "Metzora"
488 msgstr "Metzorá"
489
490 #: src/hdate_strings.c:375 src/hdate_strings.c:438
491 msgid "Achrei Mot"
492 msgstr "Achrei Mot"
493
494 #: src/hdate_strings.c:376 src/hdate_strings.c:439
495 msgid "Kedoshim"
496 msgstr "Kedoshim"
497
498 #: src/hdate_strings.c:377 src/hdate_strings.c:440
499 msgid "Emor"
500 msgstr "Emor"
501
502 #: src/hdate_strings.c:378 src/hdate_strings.c:441
503 msgid "Behar"
504 msgstr "Bechar"
505
506 #: src/hdate_strings.c:379 src/hdate_strings.c:442
507 msgid "Bechukotai"
508 msgstr "Bechukotai"
509
510 #: src/hdate_strings.c:380 src/hdate_strings.c:443
511 msgid "Bamidbar"
512 msgstr "Bamidbar"
513
514 #: src/hdate_strings.c:381 src/hdate_strings.c:444
515 msgid "Nasso"
516 msgstr "Nasso"
517
518 #: src/hdate_strings.c:382 src/hdate_strings.c:445
519 msgid "Beha'alotcha"
520 msgstr "Beha'alotcha"
521
522 #: src/hdate_strings.c:383 src/hdate_strings.c:446
523 msgid "Sh'lach"
524 msgstr "Shalach"
525
526 #: src/hdate_strings.c:384 src/hdate_strings.c:447
527 msgid "Korach"
528 msgstr "Korach"
529
530 #: src/hdate_strings.c:385 src/hdate_strings.c:448
531 msgid "Chukat"
532 msgstr "Chukat"
533
534 #: src/hdate_strings.c:386 src/hdate_strings.c:449
535 msgid "Balak"
536 msgstr "Balak"
537
538 #: src/hdate_strings.c:387 src/hdate_strings.c:450
539 msgid "Pinchas"
540 msgstr "Pinchas"
541
542 #: src/hdate_strings.c:388 src/hdate_strings.c:451
543 msgid "Matot"
544 msgstr "Matot"
545
546 #: src/hdate_strings.c:389 src/hdate_strings.c:452
547 msgid "Masei"
548 msgstr "Masei"
549
550 #: src/hdate_strings.c:390 src/hdate_strings.c:453
551 msgid "Devarim"
552 msgstr "Devarim"
553
554 #: src/hdate_strings.c:391 src/hdate_strings.c:454
555 msgid "Vaetchanan"
556 msgstr "Vaetchanan"
557
558 #: src/hdate_strings.c:392 src/hdate_strings.c:455
559 msgid "Eikev"
560 msgstr "Eikev"
561
562 #: src/hdate_strings.c:393 src/hdate_strings.c:456
563 msgid "Re'eh"
564 msgstr "Re'é"
565
566 #: src/hdate_strings.c:394 src/hdate_strings.c:457
567 msgid "Shoftim"
568 msgstr "Shoftim"
569
570 #: src/hdate_strings.c:395 src/hdate_strings.c:458
571 msgid "Ki Teitzei"
572 msgstr "Ki Teitzei"
573
574 #: src/hdate_strings.c:396 src/hdate_strings.c:459
575 msgid "Ki Tavo"
576 msgstr "Ki Tavó"
577
578 #: src/hdate_strings.c:397 src/hdate_strings.c:460
579 msgid "Nitzavim"
580 msgstr "Nitzavim"
581
582 #: src/hdate_strings.c:398 src/hdate_strings.c:461
583 msgid "Vayeilech"
584 msgstr "Vayeilech"
585
586 #: src/hdate_strings.c:399 src/hdate_strings.c:462
587 msgid "Ha'Azinu"
588 msgstr "Ha'Azinu"
589
590 #: src/hdate_strings.c:400 src/hdate_strings.c:463
591 msgid "Vezot Habracha"
592 msgstr "Vezot Haberacha"
593
594 #: src/hdate_strings.c:401 src/hdate_strings.c:464
595 msgid "Vayakhel-Pekudei"
596 msgstr "Vayakhel-Pekudei"
597
598 #: src/hdate_strings.c:402 src/hdate_strings.c:465
599 msgid "Tazria-Metzora"
600 msgstr "Tazría-Metzora"
601
602 #: src/hdate_strings.c:403 src/hdate_strings.c:466
603 msgid "Achrei Mot-Kedoshim"
604 msgstr "Achrei Mot-Kedoshim"
605
606 #: src/hdate_strings.c:404 src/hdate_strings.c:467
607 msgid "Behar-Bechukotai"
608 msgstr "Bechar-Bechukotai"
609
610 #: src/hdate_strings.c:405 src/hdate_strings.c:468
611 msgid "Chukat-Balak"
612 msgstr "Chukat-Balak"
613
614 #: src/hdate_strings.c:406 src/hdate_strings.c:469
615 msgid "Matot-Masei"
616 msgstr "Matot-Masei"
617
618 #: src/hdate_strings.c:407 src/hdate_strings.c:470
619 msgid "Nitzavim-Vayeilech"
620 msgstr "Nitzavim-Vayeilech"
621
622 #: src/hdate_strings.c:568 src/hdate_strings.c:572
623 msgid "translator"
624 msgstr "Yaacov Zamir"
Binary diff not shown
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: 2008-01-05 10:30+0200\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=utf-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #: src/hdate_strings.c:131
19 msgid "Sun"
20 msgstr "א"
21
22 #: src/hdate_strings.c:131
23 msgid "Mon"
24 msgstr "ב"
25
26 #: src/hdate_strings.c:131
27 msgid "Tue"
28 msgstr "ג"
29
30 #: src/hdate_strings.c:131
31 msgid "Wed"
32 msgstr "ד"
33
34 #: src/hdate_strings.c:131
35 msgid "Thu"
36 msgstr "ה"
37
38 #: src/hdate_strings.c:132
39 msgid "Fri"
40 msgstr "ו"
41
42 #: src/hdate_strings.c:132
43 msgid "Sat"
44 msgstr "ש"
45
46 #: src/hdate_strings.c:133
47 msgid "Sunday"
48 msgstr "ראשון"
49
50 #: src/hdate_strings.c:133
51 msgid "Monday"
52 msgstr "שני"
53
54 #: src/hdate_strings.c:133
55 msgid "Tuesday"
56 msgstr "שלישי"
57
58 #: src/hdate_strings.c:133
59 msgid "Wednesday"
60 msgstr "רביעי"
61
62 #: src/hdate_strings.c:134
63 msgid "Thursday"
64 msgstr "חמישי"
65
66 #: src/hdate_strings.c:134
67 msgid "Friday"
68 msgstr "שישי"
69
70 #: src/hdate_strings.c:134
71 msgid "Saturday"
72 msgstr "שבת"
73
74 #: src/hdate_strings.c:165
75 msgid "Jan"
76 msgstr "ינו"
77
78 #: src/hdate_strings.c:165
79 msgid "Feb"
80 msgstr "פבר"
81
82 #: src/hdate_strings.c:165
83 msgid "Mar"
84 msgstr "מרץ"
85
86 #: src/hdate_strings.c:165
87 msgid "Apr"
88 msgstr "אפר"
89
90 #: src/hdate_strings.c:165 src/hdate_strings.c:169
91 msgid "May"
92 msgstr "מאי"
93
94 #: src/hdate_strings.c:166
95 msgid "Jun"
96 msgstr "יוני"
97
98 #: src/hdate_strings.c:166
99 msgid "Jul"
100 msgstr "יולי"
101
102 #: src/hdate_strings.c:166
103 msgid "Aug"
104 msgstr "אוג"
105
106 #: src/hdate_strings.c:166
107 msgid "Sep"
108 msgstr "ספט"
109
110 #: src/hdate_strings.c:166
111 msgid "Oct"
112 msgstr "אוקט"
113
114 #: src/hdate_strings.c:167
115 msgid "Nov"
116 msgstr "נוב"
117
118 #: src/hdate_strings.c:167
119 msgid "Dec"
120 msgstr "דצמ"
121
122 #: src/hdate_strings.c:168
123 msgid "January"
124 msgstr "ינואר"
125
126 #: src/hdate_strings.c:168
127 msgid "February"
128 msgstr "פברואר"
129
130 #: src/hdate_strings.c:168
131 msgid "March"
132 msgstr "מרץ"
133
134 #: src/hdate_strings.c:169
135 msgid "April"
136 msgstr "אפריל"
137
138 #: src/hdate_strings.c:169
139 msgid "June"
140 msgstr "יוני"
141
142 #: src/hdate_strings.c:170
143 msgid "July"
144 msgstr "יולי"
145
146 #: src/hdate_strings.c:170
147 msgid "August"
148 msgstr "אוגוסט"
149
150 #: src/hdate_strings.c:170
151 msgid "September"
152 msgstr "ספטמבר"
153
154 #: src/hdate_strings.c:171
155 msgid "October"
156 msgstr "אוקטובר"
157
158 #: src/hdate_strings.c:171
159 msgid "November"
160 msgstr "נובמבר"
161
162 #: src/hdate_strings.c:171
163 msgid "December"
164 msgstr "דצמבר"
165
166 #: src/hdate_strings.c:202 src/hdate_strings.c:206
167 msgid "Tishrei"
168 msgstr "תשרי"
169
170 #: src/hdate_strings.c:202 src/hdate_strings.c:206
171 msgid "Cheshvan"
172 msgstr "חשון"
173
174 #: src/hdate_strings.c:202 src/hdate_strings.c:206
175 msgid "Kislev"
176 msgstr "כסלו"
177
178 #: src/hdate_strings.c:202 src/hdate_strings.c:206
179 msgid "Tevet"
180 msgstr "טבת"
181
182 #: src/hdate_strings.c:203 src/hdate_strings.c:207
183 msgid "Sh'vat"
184 msgstr "שבט"
185
186 #: src/hdate_strings.c:203 src/hdate_strings.c:207
187 msgid "Adar"
188 msgstr "אדר"
189
190 #: src/hdate_strings.c:203 src/hdate_strings.c:207
191 msgid "Nisan"
192 msgstr "ניסן"
193
194 #: src/hdate_strings.c:203 src/hdate_strings.c:207
195 msgid "Iyyar"
196 msgstr "אייר"
197
198 #: src/hdate_strings.c:204 src/hdate_strings.c:208
199 msgid "Sivan"
200 msgstr "סיון"
201
202 #: src/hdate_strings.c:204 src/hdate_strings.c:208
203 msgid "Tamuz"
204 msgstr "תמוז"
205
206 #: src/hdate_strings.c:204 src/hdate_strings.c:208
207 msgid "Av"
208 msgstr "אב"
209
210 #: src/hdate_strings.c:204 src/hdate_strings.c:208
211 msgid "Elul"
212 msgstr "אלול"
213
214 #: src/hdate_strings.c:204 src/hdate_strings.c:208
215 msgid "Adar I"
216 msgstr "אדר א"
217
218 #: src/hdate_strings.c:205 src/hdate_strings.c:209
219 msgid "Adar II"
220 msgstr "אדר ב"
221
222 #: src/hdate_strings.c:241 src/hdate_strings.c:278
223 msgid "Rosh Hashana I"
224 msgstr "א ראש השנה"
225
226 #: src/hdate_strings.c:242 src/hdate_strings.c:279
227 msgid "Rosh Hashana II"
228 msgstr "ב ראש השנה"
229
230 #: src/hdate_strings.c:243 src/hdate_strings.c:280
231 msgid "Tzom Gedaliah"
232 msgstr "צום גדליה"
233
234 #: src/hdate_strings.c:244 src/hdate_strings.c:281
235 msgid "Yom Kippur"
236 msgstr "יום כיפור"
237
238 #: src/hdate_strings.c:245 src/hdate_strings.c:282
239 msgid "Sukkot"
240 msgstr "סוכות"
241
242 #: src/hdate_strings.c:246 src/hdate_strings.c:283
243 msgid "Hol hamoed Sukkot"
244 msgstr "חול המועד סוכות"
245
246 #: src/hdate_strings.c:247 src/hdate_strings.c:284
247 msgid "Hoshana raba"
248 msgstr "הושענה רבה"
249
250 #: src/hdate_strings.c:248 src/hdate_strings.c:285
251 msgid "Simchat Torah"
252 msgstr "שמחת תורה"
253
254 #: src/hdate_strings.c:249 src/hdate_strings.c:286
255 msgid "Chanukah"
256 msgstr "חנוכה"
257
258 #: src/hdate_strings.c:250 src/hdate_strings.c:287
259 msgid "Asara B'Tevet"
260 msgstr "עשרה בטבת"
261
262 #: src/hdate_strings.c:251 src/hdate_strings.c:288
263 msgid "Tu B'Shvat"
264 msgstr "טו בשבט"
265
266 #: src/hdate_strings.c:252 src/hdate_strings.c:289
267 msgid "Ta'anit Esther"
268 msgstr "תענית אסתר"
269
270 #: src/hdate_strings.c:253 src/hdate_strings.c:290
271 msgid "Purim"
272 msgstr "פורים"
273
274 #: src/hdate_strings.c:254 src/hdate_strings.c:291
275 msgid "Shushan Purim"
276 msgstr "שושן פורים"
277
278 #: src/hdate_strings.c:255 src/hdate_strings.c:292
279 msgid "Pesach"
280 msgstr "פסח"
281
282 #: src/hdate_strings.c:256 src/hdate_strings.c:293
283 msgid "Hol hamoed Pesach"
284 msgstr "חול המועד פסח"
285
286 #: src/hdate_strings.c:257 src/hdate_strings.c:294
287 msgid "Yom HaAtzma'ut"
288 msgstr "יום העצמאות"
289
290 #: src/hdate_strings.c:258 src/hdate_strings.c:295
291 msgid "Lag B'Omer"
292 msgstr "לג בעומר"
293
294 #: src/hdate_strings.c:259 src/hdate_strings.c:296
295 msgid "Erev Shavuot"
296 msgstr "ערב שבועות"
297
298 #: src/hdate_strings.c:260 src/hdate_strings.c:297
299 msgid "Shavuot"
300 msgstr "שבועות"
301
302 #: src/hdate_strings.c:261 src/hdate_strings.c:298
303 msgid "Tzom Tammuz"
304 msgstr "יז תמוז"
305
306 #: src/hdate_strings.c:262 src/hdate_strings.c:299
307 msgid "Tish'a B'Av"
308 msgstr "תשעה באב"
309
310 #: src/hdate_strings.c:263 src/hdate_strings.c:300
311 msgid "Tu B'Av"
312 msgstr "טו באב"
313
314 #: src/hdate_strings.c:264 src/hdate_strings.c:301
315 msgid "Yom HaShoah"
316 msgstr "יום השואה"
317
318 #: src/hdate_strings.c:265 src/hdate_strings.c:302
319 msgid "Yom HaZikaron"
320 msgstr "יום הזיכרון"
321
322 #: src/hdate_strings.c:266 src/hdate_strings.c:303
323 msgid "Yom Yerushalayim"
324 msgstr "יום ירושלים"
325
326 #: src/hdate_strings.c:267 src/hdate_strings.c:304
327 msgid "Shmini Atzeret"
328 msgstr "שמיני עצרת"
329
330 #: src/hdate_strings.c:268 src/hdate_strings.c:305
331 msgid "Pesach VII"
332 msgstr "שביעי של פסח"
333
334 #: src/hdate_strings.c:269 src/hdate_strings.c:306
335 msgid "Pesach VIII"
336 msgstr "שמיני של פסח"
337
338 #: src/hdate_strings.c:270 src/hdate_strings.c:307
339 msgid "Shavuot II"
340 msgstr "שני של שבועות"
341
342 #: src/hdate_strings.c:271 src/hdate_strings.c:308
343 msgid "Sukkot II"
344 msgstr "סוכות שני"
345
346 #: src/hdate_strings.c:272 src/hdate_strings.c:309
347 msgid "Pesach II"
348 msgstr "שני של פסח"
349
350 #: src/hdate_strings.c:273 src/hdate_strings.c:310
351 msgid "Family Day"
352 msgstr "יום המשפחה"
353
354 #: src/hdate_strings.c:274 src/hdate_strings.c:311
355 msgid "Memorial day for fallen whose place of burial is unknown"
356 msgstr "יום הזכרון לחללי מלחמות ישראל שמקום קבורתם לא נודע"
357
358 #: src/hdate_strings.c:275
359 msgid "Rabin memorial day"
360 msgstr "יום הזכון ליצחק רבין"
361
362 #: src/hdate_strings.c:276
363 msgid "Zhabotinsky day"
364 msgstr "יום זבוטינסקי"
365
366 #: src/hdate_strings.c:312
367 msgid "Yitzhak Rabin memorial day"
368 msgstr "יום הזכרון ליצחק רבין"
369
370 #: src/hdate_strings.c:313
371 msgid "Zeev Zhabotinsky day"
372 msgstr "יום זאב זבוטינסקי"
373
374 #: src/hdate_strings.c:346 src/hdate_strings.c:409
375 msgid "none"
376 msgstr "חסר"
377
378 #: src/hdate_strings.c:347 src/hdate_strings.c:410
379 msgid "Bereshit"
380 msgstr "בראשית"
381
382 #: src/hdate_strings.c:348 src/hdate_strings.c:411
383 msgid "Noach"
384 msgstr "נח"
385
386 #: src/hdate_strings.c:349 src/hdate_strings.c:412
387 msgid "Lech-Lecha"
388 msgstr "לך לך"
389
390 #: src/hdate_strings.c:350 src/hdate_strings.c:413
391 msgid "Vayera"
392 msgstr "וירא"
393
394 #: src/hdate_strings.c:351 src/hdate_strings.c:414
395 msgid "Chayei Sara"
396 msgstr "חיי שרה"
397
398 #: src/hdate_strings.c:352 src/hdate_strings.c:415
399 msgid "Toldot"
400 msgstr "תולדות"
401
402 #: src/hdate_strings.c:353 src/hdate_strings.c:416
403 msgid "Vayetzei"
404 msgstr "ויצא"
405
406 #: src/hdate_strings.c:354 src/hdate_strings.c:417
407 msgid "Vayishlach"
408 msgstr "וישלח"
409
410 #: src/hdate_strings.c:355 src/hdate_strings.c:418
411 msgid "Vayeshev"
412 msgstr "וישב"
413
414 #: src/hdate_strings.c:356 src/hdate_strings.c:419
415 msgid "Miketz"
416 msgstr "מקץ"
417
418 #: src/hdate_strings.c:357 src/hdate_strings.c:420
419 msgid "Vayigash"
420 msgstr "ויגש"
421
422 #: src/hdate_strings.c:358 src/hdate_strings.c:421
423 msgid "Vayechi"
424 msgstr "ויחי"
425
426 #: src/hdate_strings.c:359 src/hdate_strings.c:422
427 msgid "Shemot"
428 msgstr "שמות"
429
430 #: src/hdate_strings.c:360 src/hdate_strings.c:423
431 msgid "Vaera"
432 msgstr "וארא"
433
434 #: src/hdate_strings.c:361 src/hdate_strings.c:424
435 msgid "Bo"
436 msgstr "בא"
437
438 #: src/hdate_strings.c:362 src/hdate_strings.c:425
439 msgid "Beshalach"
440 msgstr "בשלח"
441
442 #: src/hdate_strings.c:363 src/hdate_strings.c:426
443 msgid "Yitro"
444 msgstr "יתרו"
445
446 #: src/hdate_strings.c:364 src/hdate_strings.c:427
447 msgid "Mishpatim"
448 msgstr "משפטים"
449
450 #: src/hdate_strings.c:365 src/hdate_strings.c:428
451 msgid "Terumah"
452 msgstr "תרומה"
453
454 #: src/hdate_strings.c:366 src/hdate_strings.c:429
455 msgid "Tetzaveh"
456 msgstr "תצווה"
457
458 #: src/hdate_strings.c:367 src/hdate_strings.c:430
459 msgid "Ki Tisa"
460 msgstr "כי תשא"
461
462 #: src/hdate_strings.c:368 src/hdate_strings.c:431
463 msgid "Vayakhel"
464 msgstr "ויקהל"
465
466 #: src/hdate_strings.c:369 src/hdate_strings.c:432
467 msgid "Pekudei"
468 msgstr "פקודי"
469
470 #: src/hdate_strings.c:370 src/hdate_strings.c:433
471 msgid "Vayikra"
472 msgstr "ויקרא"
473
474 #: src/hdate_strings.c:371 src/hdate_strings.c:434
475 msgid "Tzav"
476 msgstr "צו"
477
478 #: src/hdate_strings.c:372 src/hdate_strings.c:435
479 msgid "Shmini"
480 msgstr "שמיני"
481
482 #: src/hdate_strings.c:373 src/hdate_strings.c:436
483 msgid "Tazria"
484 msgstr "תזריע"
485
486 #: src/hdate_strings.c:374 src/hdate_strings.c:437
487 msgid "Metzora"
488 msgstr "מצורע"
489
490 #: src/hdate_strings.c:375 src/hdate_strings.c:438
491 msgid "Achrei Mot"
492 msgstr "אחרי מות"
493
494 #: src/hdate_strings.c:376 src/hdate_strings.c:439
495 msgid "Kedoshim"
496 msgstr "קדושים"
497
498 #: src/hdate_strings.c:377 src/hdate_strings.c:440
499 msgid "Emor"
500 msgstr "אמור"
501
502 #: src/hdate_strings.c:378 src/hdate_strings.c:441
503 msgid "Behar"
504 msgstr "בהר"
505
506 #: src/hdate_strings.c:379 src/hdate_strings.c:442
507 msgid "Bechukotai"
508 msgstr "בחוקותי"
509
510 #: src/hdate_strings.c:380 src/hdate_strings.c:443
511 msgid "Bamidbar"
512 msgstr "במדבר"
513
514 #: src/hdate_strings.c:381 src/hdate_strings.c:444
515 msgid "Nasso"
516 msgstr "נשא"
517
518 #: src/hdate_strings.c:382 src/hdate_strings.c:445
519 msgid "Beha'alotcha"
520 msgstr "בהעלותך"
521
522 #: src/hdate_strings.c:383 src/hdate_strings.c:446
523 msgid "Sh'lach"
524 msgstr "שלח"
525
526 #: src/hdate_strings.c:384 src/hdate_strings.c:447
527 msgid "Korach"
528 msgstr "קרח"
529
530 #: src/hdate_strings.c:385 src/hdate_strings.c:448
531 msgid "Chukat"
532 msgstr "חוקת"
533
534 #: src/hdate_strings.c:386 src/hdate_strings.c:449
535 msgid "Balak"
536 msgstr "בלק"
537
538 #: src/hdate_strings.c:387 src/hdate_strings.c:450
539 msgid "Pinchas"
540 msgstr "פינחס"
541
542 #: src/hdate_strings.c:388 src/hdate_strings.c:451
543 msgid "Matot"
544 msgstr "מטות"
545
546 #: src/hdate_strings.c:389 src/hdate_strings.c:452
547 msgid "Masei"
548 msgstr "מסעי"
549
550 #: src/hdate_strings.c:390 src/hdate_strings.c:453
551 msgid "Devarim"
552 msgstr "דברים"
553
554 #: src/hdate_strings.c:391 src/hdate_strings.c:454
555 msgid "Vaetchanan"
556 msgstr "ואתחנן"
557
558 #: src/hdate_strings.c:392 src/hdate_strings.c:455
559 msgid "Eikev"
560 msgstr "עקב"
561
562 #: src/hdate_strings.c:393 src/hdate_strings.c:456
563 msgid "Re'eh"
564 msgstr "ראה"
565
566 #: src/hdate_strings.c:394 src/hdate_strings.c:457
567 msgid "Shoftim"
568 msgstr "שופטים"
569
570 #: src/hdate_strings.c:395 src/hdate_strings.c:458
571 msgid "Ki Teitzei"
572 msgstr "כי תצא"
573
574 #: src/hdate_strings.c:396 src/hdate_strings.c:459
575 msgid "Ki Tavo"
576 msgstr "כי תבוא"
577
578 #: src/hdate_strings.c:397 src/hdate_strings.c:460
579 msgid "Nitzavim"
580 msgstr "נצבים"
581
582 #: src/hdate_strings.c:398 src/hdate_strings.c:461
583 msgid "Vayeilech"
584 msgstr "וילך"
585
586 #: src/hdate_strings.c:399 src/hdate_strings.c:462
587 msgid "Ha'Azinu"
588 msgstr "האזינו"
589
590 #: src/hdate_strings.c:400 src/hdate_strings.c:463
591 msgid "Vezot Habracha"
592 msgstr "וזאת הברכה"
593
594 #: src/hdate_strings.c:401 src/hdate_strings.c:464
595 msgid "Vayakhel-Pekudei"
596 msgstr "ויקהל פקודי"
597
598 #: src/hdate_strings.c:402 src/hdate_strings.c:465
599 msgid "Tazria-Metzora"
600 msgstr "תזריע מצורע"
601
602 #: src/hdate_strings.c:403 src/hdate_strings.c:466
603 msgid "Achrei Mot-Kedoshim"
604 msgstr "אחרי מות קדושים"
605
606 #: src/hdate_strings.c:404 src/hdate_strings.c:467
607 msgid "Behar-Bechukotai"
608 msgstr "בהר בחוקותי"
609
610 #: src/hdate_strings.c:405 src/hdate_strings.c:468
611 msgid "Chukat-Balak"
612 msgstr "חוקת בלק"
613
614 #: src/hdate_strings.c:406 src/hdate_strings.c:469
615 msgid "Matot-Masei"
616 msgstr "מטות מסעי"
617
618 #: src/hdate_strings.c:407 src/hdate_strings.c:470
619 msgid "Nitzavim-Vayeilech"
620 msgstr "נצבים וילך"
621
622 #: src/hdate_strings.c:568 src/hdate_strings.c:572
623 msgid "translator"
624 msgstr "יעקב זמיר"
0 # Sed script that inserts the file called HEADER before the header entry.
1 #
2 # At each occurrence of a line starting with "msgid ", we execute the following
3 # commands. At the first occurrence, insert the file. At the following
4 # occurrences, do nothing. The distinction between the first and the following
5 # occurrences is achieved by looking at the hold space.
6 /^msgid /{
7 x
8 # Test if the hold space is empty.
9 s/m/m/
10 ta
11 # Yes it was empty. First occurrence. Read the file.
12 r HEADER
13 # Output the file's contents by reading the next line. But don't lose the
14 # current line while doing this.
15 g
16 N
17 bb
18 :a
19 # The hold space was nonempty. Following occurrences. Do nothing.
20 x
21 :b
22 }
0 # SOME DESCRIPTIVE TITLE.
1 # Copyright (C) YEAR Free Software Foundation, Inc.
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: libhdate 1.4.10\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2008-01-05 10:30+0200\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
18 #: src/hdate_strings.c:131
19 msgid "Sun"
20 msgstr ""
21
22 #: src/hdate_strings.c:131
23 msgid "Mon"
24 msgstr ""
25
26 #: src/hdate_strings.c:131
27 msgid "Tue"
28 msgstr ""
29
30 #: src/hdate_strings.c:131
31 msgid "Wed"
32 msgstr ""
33
34 #: src/hdate_strings.c:131
35 msgid "Thu"
36 msgstr ""
37
38 #: src/hdate_strings.c:132
39 msgid "Fri"
40 msgstr ""
41
42 #: src/hdate_strings.c:132
43 msgid "Sat"
44 msgstr ""
45
46 #: src/hdate_strings.c:133
47 msgid "Sunday"
48 msgstr ""
49
50 #: src/hdate_strings.c:133
51 msgid "Monday"
52 msgstr ""
53
54 #: src/hdate_strings.c:133
55 msgid "Tuesday"
56 msgstr ""
57
58 #: src/hdate_strings.c:133
59 msgid "Wednesday"
60 msgstr ""
61
62 #: src/hdate_strings.c:134
63 msgid "Thursday"
64 msgstr ""
65
66 #: src/hdate_strings.c:134
67 msgid "Friday"
68 msgstr ""
69
70 #: src/hdate_strings.c:134
71 msgid "Saturday"
72 msgstr ""
73
74 #: src/hdate_strings.c:165
75 msgid "Jan"
76 msgstr ""
77
78 #: src/hdate_strings.c:165
79 msgid "Feb"
80 msgstr ""
81
82 #: src/hdate_strings.c:165
83 msgid "Mar"
84 msgstr ""
85
86 #: src/hdate_strings.c:165
87 msgid "Apr"
88 msgstr ""
89
90 #: src/hdate_strings.c:165 src/hdate_strings.c:169
91 msgid "May"
92 msgstr ""
93
94 #: src/hdate_strings.c:166
95 msgid "Jun"
96 msgstr ""
97
98 #: src/hdate_strings.c:166
99 msgid "Jul"
100 msgstr ""
101
102 #: src/hdate_strings.c:166
103 msgid "Aug"
104 msgstr ""
105
106 #: src/hdate_strings.c:166
107 msgid "Sep"
108 msgstr ""
109
110 #: src/hdate_strings.c:166
111 msgid "Oct"
112 msgstr ""
113
114 #: src/hdate_strings.c:167
115 msgid "Nov"
116 msgstr ""
117
118 #: src/hdate_strings.c:167
119 msgid "Dec"
120 msgstr ""
121
122 #: src/hdate_strings.c:168
123 msgid "January"
124 msgstr ""
125
126 #: src/hdate_strings.c:168
127 msgid "February"
128 msgstr ""
129
130 #: src/hdate_strings.c:168
131 msgid "March"
132 msgstr ""
133
134 #: src/hdate_strings.c:169
135 msgid "April"
136 msgstr ""
137
138 #: src/hdate_strings.c:169
139 msgid "June"
140 msgstr ""
141
142 #: src/hdate_strings.c:170
143 msgid "July"
144 msgstr ""
145
146 #: src/hdate_strings.c:170
147 msgid "August"
148 msgstr ""
149
150 #: src/hdate_strings.c:170
151 msgid "September"
152 msgstr ""
153
154 #: src/hdate_strings.c:171
155 msgid "October"
156 msgstr ""
157
158 #: src/hdate_strings.c:171
159 msgid "November"
160 msgstr ""
161
162 #: src/hdate_strings.c:171
163 msgid "December"
164 msgstr ""
165
166 #: src/hdate_strings.c:202 src/hdate_strings.c:206
167 msgid "Tishrei"
168 msgstr ""
169
170 #: src/hdate_strings.c:202 src/hdate_strings.c:206
171 msgid "Cheshvan"
172 msgstr ""
173
174 #: src/hdate_strings.c:202 src/hdate_strings.c:206
175 msgid "Kislev"
176 msgstr ""
177
178 #: src/hdate_strings.c:202 src/hdate_strings.c:206
179 msgid "Tevet"
180 msgstr ""
181
182 #: src/hdate_strings.c:203 src/hdate_strings.c:207
183 msgid "Sh'vat"
184 msgstr ""
185
186 #: src/hdate_strings.c:203 src/hdate_strings.c:207
187 msgid "Adar"
188 msgstr ""
189
190 #: src/hdate_strings.c:203 src/hdate_strings.c:207
191 msgid "Nisan"
192 msgstr ""
193
194 #: src/hdate_strings.c:203 src/hdate_strings.c:207
195 msgid "Iyyar"
196 msgstr ""
197
198 #: src/hdate_strings.c:204 src/hdate_strings.c:208
199 msgid "Sivan"
200 msgstr ""
201
202 #: src/hdate_strings.c:204 src/hdate_strings.c:208
203 msgid "Tamuz"
204 msgstr ""
205
206 #: src/hdate_strings.c:204 src/hdate_strings.c:208
207 msgid "Av"
208 msgstr ""
209
210 #: src/hdate_strings.c:204 src/hdate_strings.c:208
211 msgid "Elul"
212 msgstr ""
213
214 #: src/hdate_strings.c:204 src/hdate_strings.c:208
215 msgid "Adar I"
216 msgstr ""
217
218 #: src/hdate_strings.c:205 src/hdate_strings.c:209
219 msgid "Adar II"
220 msgstr ""
221
222 #: src/hdate_strings.c:241 src/hdate_strings.c:278
223 msgid "Rosh Hashana I"
224 msgstr ""
225
226 #: src/hdate_strings.c:242 src/hdate_strings.c:279
227 msgid "Rosh Hashana II"
228 msgstr ""
229
230 #: src/hdate_strings.c:243 src/hdate_strings.c:280
231 msgid "Tzom Gedaliah"
232 msgstr ""
233
234 #: src/hdate_strings.c:244 src/hdate_strings.c:281
235 msgid "Yom Kippur"
236 msgstr ""
237
238 #: src/hdate_strings.c:245 src/hdate_strings.c:282
239 msgid "Sukkot"
240 msgstr ""
241
242 #: src/hdate_strings.c:246 src/hdate_strings.c:283
243 msgid "Hol hamoed Sukkot"
244 msgstr ""
245
246 #: src/hdate_strings.c:247 src/hdate_strings.c:284
247 msgid "Hoshana raba"
248 msgstr ""
249
250 #: src/hdate_strings.c:248 src/hdate_strings.c:285
251 msgid "Simchat Torah"
252 msgstr ""
253
254 #: src/hdate_strings.c:249 src/hdate_strings.c:286
255 msgid "Chanukah"
256 msgstr ""
257
258 #: src/hdate_strings.c:250 src/hdate_strings.c:287
259 msgid "Asara B'Tevet"
260 msgstr ""
261
262 #: src/hdate_strings.c:251 src/hdate_strings.c:288
263 msgid "Tu B'Shvat"
264 msgstr ""
265
266 #: src/hdate_strings.c:252 src/hdate_strings.c:289
267 msgid "Ta'anit Esther"
268 msgstr ""
269
270 #: src/hdate_strings.c:253 src/hdate_strings.c:290
271 msgid "Purim"
272 msgstr ""
273
274 #: src/hdate_strings.c:254 src/hdate_strings.c:291
275 msgid "Shushan Purim"
276 msgstr ""
277
278 #: src/hdate_strings.c:255 src/hdate_strings.c:292
279 msgid "Pesach"
280 msgstr ""
281
282 #: src/hdate_strings.c:256 src/hdate_strings.c:293
283 msgid "Hol hamoed Pesach"
284 msgstr ""
285
286 #: src/hdate_strings.c:257 src/hdate_strings.c:294
287 msgid "Yom HaAtzma'ut"
288 msgstr ""
289
290 #: src/hdate_strings.c:258 src/hdate_strings.c:295
291 msgid "Lag B'Omer"
292 msgstr ""
293
294 #: src/hdate_strings.c:259 src/hdate_strings.c:296
295 msgid "Erev Shavuot"
296 msgstr ""
297
298 #: src/hdate_strings.c:260 src/hdate_strings.c:297
299 msgid "Shavuot"
300 msgstr ""
301
302 #: src/hdate_strings.c:261 src/hdate_strings.c:298
303 msgid "Tzom Tammuz"
304 msgstr ""
305
306 #: src/hdate_strings.c:262 src/hdate_strings.c:299
307 msgid "Tish'a B'Av"
308 msgstr ""
309
310 #: src/hdate_strings.c:263 src/hdate_strings.c:300
311 msgid "Tu B'Av"
312 msgstr ""
313
314 #: src/hdate_strings.c:264 src/hdate_strings.c:301
315 msgid "Yom HaShoah"
316 msgstr ""
317
318 #: src/hdate_strings.c:265 src/hdate_strings.c:302
319 msgid "Yom HaZikaron"
320 msgstr ""
321
322 #: src/hdate_strings.c:266 src/hdate_strings.c:303
323 msgid "Yom Yerushalayim"
324 msgstr ""
325
326 #: src/hdate_strings.c:267 src/hdate_strings.c:304
327 msgid "Shmini Atzeret"
328 msgstr ""
329
330 #: src/hdate_strings.c:268 src/hdate_strings.c:305
331 msgid "Pesach VII"
332 msgstr ""
333
334 #: src/hdate_strings.c:269 src/hdate_strings.c:306
335 msgid "Pesach VIII"
336 msgstr ""
337
338 #: src/hdate_strings.c:270 src/hdate_strings.c:307
339 msgid "Shavuot II"
340 msgstr ""
341
342 #: src/hdate_strings.c:271 src/hdate_strings.c:308
343 msgid "Sukkot II"
344 msgstr ""
345
346 #: src/hdate_strings.c:272 src/hdate_strings.c:309
347 msgid "Pesach II"
348 msgstr ""
349
350 #: src/hdate_strings.c:273 src/hdate_strings.c:310
351 msgid "Family Day"
352 msgstr ""
353
354 #: src/hdate_strings.c:274 src/hdate_strings.c:311
355 msgid "Memorial day for fallen whose place of burial is unknown"
356 msgstr ""
357
358 #: src/hdate_strings.c:275
359 msgid "Rabin memorial day"
360 msgstr ""
361
362 #: src/hdate_strings.c:276
363 msgid "Zhabotinsky day"
364 msgstr ""
365
366 #: src/hdate_strings.c:312
367 msgid "Yitzhak Rabin memorial day"
368 msgstr ""
369
370 #: src/hdate_strings.c:313
371 msgid "Zeev Zhabotinsky day"
372 msgstr ""
373
374 #: src/hdate_strings.c:346 src/hdate_strings.c:409
375 msgid "none"
376 msgstr ""
377
378 #: src/hdate_strings.c:347 src/hdate_strings.c:410
379 msgid "Bereshit"
380 msgstr ""
381
382 #: src/hdate_strings.c:348 src/hdate_strings.c:411
383 msgid "Noach"
384 msgstr ""
385
386 #: src/hdate_strings.c:349 src/hdate_strings.c:412
387 msgid "Lech-Lecha"
388 msgstr ""
389
390 #: src/hdate_strings.c:350 src/hdate_strings.c:413
391 msgid "Vayera"
392 msgstr ""
393
394 #: src/hdate_strings.c:351 src/hdate_strings.c:414
395 msgid "Chayei Sara"
396 msgstr ""
397
398 #: src/hdate_strings.c:352 src/hdate_strings.c:415
399 msgid "Toldot"
400 msgstr ""
401
402 #: src/hdate_strings.c:353 src/hdate_strings.c:416
403 msgid "Vayetzei"
404 msgstr ""
405
406 #: src/hdate_strings.c:354 src/hdate_strings.c:417
407 msgid "Vayishlach"
408 msgstr ""
409
410 #: src/hdate_strings.c:355 src/hdate_strings.c:418
411 msgid "Vayeshev"
412 msgstr ""
413
414 #: src/hdate_strings.c:356 src/hdate_strings.c:419
415 msgid "Miketz"
416 msgstr ""
417
418 #: src/hdate_strings.c:357 src/hdate_strings.c:420
419 msgid "Vayigash"
420 msgstr ""
421
422 #: src/hdate_strings.c:358 src/hdate_strings.c:421
423 msgid "Vayechi"
424 msgstr ""
425
426 #: src/hdate_strings.c:359 src/hdate_strings.c:422
427 msgid "Shemot"
428 msgstr ""
429
430 #: src/hdate_strings.c:360 src/hdate_strings.c:423
431 msgid "Vaera"
432 msgstr ""
433
434 #: src/hdate_strings.c:361 src/hdate_strings.c:424
435 msgid "Bo"
436 msgstr ""
437
438 #: src/hdate_strings.c:362 src/hdate_strings.c:425
439 msgid "Beshalach"
440 msgstr ""
441
442 #: src/hdate_strings.c:363 src/hdate_strings.c:426
443 msgid "Yitro"
444 msgstr ""
445
446 #: src/hdate_strings.c:364 src/hdate_strings.c:427
447 msgid "Mishpatim"
448 msgstr ""
449
450 #: src/hdate_strings.c:365 src/hdate_strings.c:428
451 msgid "Terumah"
452 msgstr ""
453
454 #: src/hdate_strings.c:366 src/hdate_strings.c:429
455 msgid "Tetzaveh"
456 msgstr ""
457
458 #: src/hdate_strings.c:367 src/hdate_strings.c:430
459 msgid "Ki Tisa"
460 msgstr ""
461
462 #: src/hdate_strings.c:368 src/hdate_strings.c:431
463 msgid "Vayakhel"
464 msgstr ""
465
466 #: src/hdate_strings.c:369 src/hdate_strings.c:432
467 msgid "Pekudei"
468 msgstr ""
469
470 #: src/hdate_strings.c:370 src/hdate_strings.c:433
471 msgid "Vayikra"
472 msgstr ""
473
474 #: src/hdate_strings.c:371 src/hdate_strings.c:434
475 msgid "Tzav"
476 msgstr ""
477
478 #: src/hdate_strings.c:372 src/hdate_strings.c:435
479 msgid "Shmini"
480 msgstr ""
481
482 #: src/hdate_strings.c:373 src/hdate_strings.c:436
483 msgid "Tazria"
484 msgstr ""
485
486 #: src/hdate_strings.c:374 src/hdate_strings.c:437
487 msgid "Metzora"
488 msgstr ""
489
490 #: src/hdate_strings.c:375 src/hdate_strings.c:438
491 msgid "Achrei Mot"
492 msgstr ""
493
494 #: src/hdate_strings.c:376 src/hdate_strings.c:439
495 msgid "Kedoshim"
496 msgstr ""
497
498 #: src/hdate_strings.c:377 src/hdate_strings.c:440
499 msgid "Emor"
500 msgstr ""
501
502 #: src/hdate_strings.c:378 src/hdate_strings.c:441
503 msgid "Behar"
504 msgstr ""
505
506 #: src/hdate_strings.c:379 src/hdate_strings.c:442
507 msgid "Bechukotai"
508 msgstr ""
509
510 #: src/hdate_strings.c:380 src/hdate_strings.c:443
511 msgid "Bamidbar"
512 msgstr ""
513
514 #: src/hdate_strings.c:381 src/hdate_strings.c:444
515 msgid "Nasso"
516 msgstr ""
517
518 #: src/hdate_strings.c:382 src/hdate_strings.c:445
519 msgid "Beha'alotcha"
520 msgstr ""
521
522 #: src/hdate_strings.c:383 src/hdate_strings.c:446
523 msgid "Sh'lach"
524 msgstr ""
525
526 #: src/hdate_strings.c:384 src/hdate_strings.c:447
527 msgid "Korach"
528 msgstr ""
529
530 #: src/hdate_strings.c:385 src/hdate_strings.c:448
531 msgid "Chukat"
532 msgstr ""
533
534 #: src/hdate_strings.c:386 src/hdate_strings.c:449
535 msgid "Balak"
536 msgstr ""
537
538 #: src/hdate_strings.c:387 src/hdate_strings.c:450
539 msgid "Pinchas"
540 msgstr ""
541
542 #: src/hdate_strings.c:388 src/hdate_strings.c:451
543 msgid "Matot"
544 msgstr ""
545
546 #: src/hdate_strings.c:389 src/hdate_strings.c:452
547 msgid "Masei"
548 msgstr ""
549
550 #: src/hdate_strings.c:390 src/hdate_strings.c:453
551 msgid "Devarim"
552 msgstr ""
553
554 #: src/hdate_strings.c:391 src/hdate_strings.c:454
555 msgid "Vaetchanan"
556 msgstr ""
557
558 #: src/hdate_strings.c:392 src/hdate_strings.c:455
559 msgid "Eikev"
560 msgstr ""
561
562 #: src/hdate_strings.c:393 src/hdate_strings.c:456
563 msgid "Re'eh"
564 msgstr ""
565
566 #: src/hdate_strings.c:394 src/hdate_strings.c:457
567 msgid "Shoftim"
568 msgstr ""
569
570 #: src/hdate_strings.c:395 src/hdate_strings.c:458
571 msgid "Ki Teitzei"
572 msgstr ""
573
574 #: src/hdate_strings.c:396 src/hdate_strings.c:459
575 msgid "Ki Tavo"
576 msgstr ""
577
578 #: src/hdate_strings.c:397 src/hdate_strings.c:460
579 msgid "Nitzavim"
580 msgstr ""
581
582 #: src/hdate_strings.c:398 src/hdate_strings.c:461
583 msgid "Vayeilech"
584 msgstr ""
585
586 #: src/hdate_strings.c:399 src/hdate_strings.c:462
587 msgid "Ha'Azinu"
588 msgstr ""
589
590 #: src/hdate_strings.c:400 src/hdate_strings.c:463
591 msgid "Vezot Habracha"
592 msgstr ""
593
594 #: src/hdate_strings.c:401 src/hdate_strings.c:464
595 msgid "Vayakhel-Pekudei"
596 msgstr ""
597
598 #: src/hdate_strings.c:402 src/hdate_strings.c:465
599 msgid "Tazria-Metzora"
600 msgstr ""
601
602 #: src/hdate_strings.c:403 src/hdate_strings.c:466
603 msgid "Achrei Mot-Kedoshim"
604 msgstr ""
605
606 #: src/hdate_strings.c:404 src/hdate_strings.c:467
607 msgid "Behar-Bechukotai"
608 msgstr ""
609
610 #: src/hdate_strings.c:405 src/hdate_strings.c:468
611 msgid "Chukat-Balak"
612 msgstr ""
613
614 #: src/hdate_strings.c:406 src/hdate_strings.c:469
615 msgid "Matot-Masei"
616 msgstr ""
617
618 #: src/hdate_strings.c:407 src/hdate_strings.c:470
619 msgid "Nitzavim-Vayeilech"
620 msgstr ""
621
622 #: src/hdate_strings.c:568 src/hdate_strings.c:572
623 msgid "translator"
624 msgstr ""
0 s/"\([^"]*\)"/“\1”/g
1 s/`\([^`']*\)'/‘\1’/g
2 s/ '\([^`']*\)' / ‘\1’ /g
3 s/ '\([^`']*\)'$/ ‘\1’/g
4 s/^'\([^`']*\)' /‘\1’ /g
5 s/“”/""/g
0 # Sed script that remove the POT-Creation-Date line in the header entry
1 # from a POT file.
2 #
3 # The distinction between the first and the following occurrences of the
4 # pattern is achieved by looking at the hold space.
5 /^"POT-Creation-Date: .*"$/{
6 x
7 # Test if the hold space is empty.
8 s/P/P/
9 ta
10 # Yes it was empty. First occurrence. Remove the line.
11 g
12 d
13 bb
14 :a
15 # The hold space was nonempty. Following occurrences. Do nothing.
16 x
17 :b
18 }
Binary diff not shown
0 # translation of libhdate.pot to Russian
1 # This file is distributed under the same license as the libhdate package.
2 # Copyright (C) 2005 Boris Peterberg.
3 # Boris Peterberg, 2005.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: ru\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2008-01-05 10:30+0200\n"
11 "PO-Revision-Date: 2005-03-08 22:44-0200\n"
12 "Last-Translator: Boeis Peterberg\n"
13 "Language-Team: Russian\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #: src/hdate_strings.c:131
19 msgid "Sun"
20 msgstr "Вс."
21
22 #: src/hdate_strings.c:131
23 msgid "Mon"
24 msgstr "Пн."
25
26 #: src/hdate_strings.c:131
27 msgid "Tue"
28 msgstr "Вт."
29
30 #: src/hdate_strings.c:131
31 msgid "Wed"
32 msgstr "Ср."
33
34 #: src/hdate_strings.c:131
35 msgid "Thu"
36 msgstr "Чт."
37
38 #: src/hdate_strings.c:132
39 msgid "Fri"
40 msgstr "Пт."
41
42 #: src/hdate_strings.c:132
43 msgid "Sat"
44 msgstr "Сб."
45
46 #: src/hdate_strings.c:133
47 msgid "Sunday"
48 msgstr "Воскресенье"
49
50 #: src/hdate_strings.c:133
51 msgid "Monday"
52 msgstr "Понедельник"
53
54 #: src/hdate_strings.c:133
55 msgid "Tuesday"
56 msgstr "Вторник"
57
58 #: src/hdate_strings.c:133
59 msgid "Wednesday"
60 msgstr "Среда"
61
62 #: src/hdate_strings.c:134
63 msgid "Thursday"
64 msgstr "Четверг"
65
66 #: src/hdate_strings.c:134
67 msgid "Friday"
68 msgstr "Пятница"
69
70 #: src/hdate_strings.c:134
71 msgid "Saturday"
72 msgstr "Суботта"
73
74 #: src/hdate_strings.c:165
75 msgid "Jan"
76 msgstr "Янв"
77
78 #: src/hdate_strings.c:165
79 msgid "Feb"
80 msgstr "Фев"
81
82 #: src/hdate_strings.c:165
83 msgid "Mar"
84 msgstr "Мар"
85
86 #: src/hdate_strings.c:165
87 msgid "Apr"
88 msgstr "Апр"
89
90 #: src/hdate_strings.c:165 src/hdate_strings.c:169
91 msgid "May"
92 msgstr "Май"
93
94 #: src/hdate_strings.c:166
95 msgid "Jun"
96 msgstr "Июнь"
97
98 #: src/hdate_strings.c:166
99 msgid "Jul"
100 msgstr "Июль"
101
102 #: src/hdate_strings.c:166
103 msgid "Aug"
104 msgstr "Авг"
105
106 #: src/hdate_strings.c:166
107 msgid "Sep"
108 msgstr "Сен"
109
110 #: src/hdate_strings.c:166
111 msgid "Oct"
112 msgstr "Окт"
113
114 #: src/hdate_strings.c:167
115 msgid "Nov"
116 msgstr "Но"
117
118 #: src/hdate_strings.c:167
119 msgid "Dec"
120 msgstr "Дек"
121
122 #: src/hdate_strings.c:168
123 msgid "January"
124 msgstr "Январь"
125
126 #: src/hdate_strings.c:168
127 msgid "February"
128 msgstr "Февраль"
129
130 #: src/hdate_strings.c:168
131 msgid "March"
132 msgstr "Март"
133
134 #: src/hdate_strings.c:169
135 msgid "April"
136 msgstr "Апрель"
137
138 #: src/hdate_strings.c:169
139 msgid "June"
140 msgstr "Июнь"
141
142 #: src/hdate_strings.c:170
143 msgid "July"
144 msgstr "Июль"
145
146 #: src/hdate_strings.c:170
147 msgid "August"
148 msgstr "Август"
149
150 #: src/hdate_strings.c:170
151 msgid "September"
152 msgstr "Сентябрь"
153
154 #: src/hdate_strings.c:171
155 msgid "October"
156 msgstr "Октябрь"
157
158 #: src/hdate_strings.c:171
159 msgid "November"
160 msgstr "Ноябрь"
161
162 #: src/hdate_strings.c:171
163 msgid "December"
164 msgstr "Декабрь"
165
166 #: src/hdate_strings.c:202 src/hdate_strings.c:206
167 msgid "Tishrei"
168 msgstr "Тишрэй"
169
170 #: src/hdate_strings.c:202 src/hdate_strings.c:206
171 msgid "Cheshvan"
172 msgstr "Хешван"
173
174 #: src/hdate_strings.c:202 src/hdate_strings.c:206
175 msgid "Kislev"
176 msgstr "Кислэв"
177
178 #: src/hdate_strings.c:202 src/hdate_strings.c:206
179 msgid "Tevet"
180 msgstr "Тэвэт"
181
182 #: src/hdate_strings.c:203 src/hdate_strings.c:207
183 msgid "Sh'vat"
184 msgstr "Шват"
185
186 #: src/hdate_strings.c:203 src/hdate_strings.c:207
187 msgid "Adar"
188 msgstr "Адар"
189
190 #: src/hdate_strings.c:203 src/hdate_strings.c:207
191 msgid "Nisan"
192 msgstr "Нисан"
193
194 #: src/hdate_strings.c:203 src/hdate_strings.c:207
195 msgid "Iyyar"
196 msgstr "Ийар"
197
198 #: src/hdate_strings.c:204 src/hdate_strings.c:208
199 msgid "Sivan"
200 msgstr "Сиван"
201
202 #: src/hdate_strings.c:204 src/hdate_strings.c:208
203 msgid "Tamuz"
204 msgstr "Тамуз"
205
206 #: src/hdate_strings.c:204 src/hdate_strings.c:208
207 msgid "Av"
208 msgstr "Ав"
209
210 #: src/hdate_strings.c:204 src/hdate_strings.c:208
211 msgid "Elul"
212 msgstr "Элул"
213
214 #: src/hdate_strings.c:204 src/hdate_strings.c:208
215 msgid "Adar I"
216 msgstr "Адар 1"
217
218 #: src/hdate_strings.c:205 src/hdate_strings.c:209
219 msgid "Adar II"
220 msgstr "Адар 2"
221
222 #: src/hdate_strings.c:241 src/hdate_strings.c:278
223 msgid "Rosh Hashana I"
224 msgstr "Рош-а-Шана I"
225
226 #: src/hdate_strings.c:242 src/hdate_strings.c:279
227 msgid "Rosh Hashana II"
228 msgstr "Рош-а-Шана II"
229
230 #: src/hdate_strings.c:243 src/hdate_strings.c:280
231 msgid "Tzom Gedaliah"
232 msgstr "Цом гдаляа"
233
234 #: src/hdate_strings.c:244 src/hdate_strings.c:281
235 msgid "Yom Kippur"
236 msgstr "Йом Кипур"
237
238 #: src/hdate_strings.c:245 src/hdate_strings.c:282
239 msgid "Sukkot"
240 msgstr "Суккот I"
241
242 #: src/hdate_strings.c:246 src/hdate_strings.c:283
243 msgid "Hol hamoed Sukkot"
244 msgstr "Суккот"
245
246 #: src/hdate_strings.c:247 src/hdate_strings.c:284
247 msgid "Hoshana raba"
248 msgstr "hoшана Раба"
249
250 #: src/hdate_strings.c:248 src/hdate_strings.c:285
251 msgid "Simchat Torah"
252 msgstr "Симхат-Тора"
253
254 #: src/hdate_strings.c:249 src/hdate_strings.c:286
255 msgid "Chanukah"
256 msgstr "Ханука"
257
258 #: src/hdate_strings.c:250 src/hdate_strings.c:287
259 msgid "Asara B'Tevet"
260 msgstr "Десятое Тевета"
261
262 #: src/hdate_strings.c:251 src/hdate_strings.c:288
263 msgid "Tu B'Shvat"
264 msgstr "Ту би-Шват"
265
266 #: src/hdate_strings.c:252 src/hdate_strings.c:289
267 msgid "Ta'anit Esther"
268 msgstr "Танйт зстер"
269
270 #: src/hdate_strings.c:253 src/hdate_strings.c:290
271 msgid "Purim"
272 msgstr "Пурим"
273
274 #: src/hdate_strings.c:254 src/hdate_strings.c:291
275 msgid "Shushan Purim"
276 msgstr "Ш. Пурим"
277
278 #: src/hdate_strings.c:255 src/hdate_strings.c:292
279 msgid "Pesach"
280 msgstr "Пэсах I"
281
282 #: src/hdate_strings.c:256 src/hdate_strings.c:293
283 msgid "Hol hamoed Pesach"
284 msgstr "Песах"
285
286 #: src/hdate_strings.c:257 src/hdate_strings.c:294
287 msgid "Yom HaAtzma'ut"
288 msgstr "День Независимости"
289
290 #: src/hdate_strings.c:258 src/hdate_strings.c:295
291 msgid "Lag B'Omer"
292 msgstr "Лаг ба-Омер"
293
294 #: src/hdate_strings.c:259 src/hdate_strings.c:296
295 msgid "Erev Shavuot"
296 msgstr "Шавуот"
297
298 #: src/hdate_strings.c:260 src/hdate_strings.c:297
299 msgid "Shavuot"
300 msgstr "Шавуот"
301
302 #: src/hdate_strings.c:261 src/hdate_strings.c:298
303 msgid "Tzom Tammuz"
304 msgstr "17 Тамуза"
305
306 #: src/hdate_strings.c:262 src/hdate_strings.c:299
307 msgid "Tish'a B'Av"
308 msgstr "9 Ава"
309
310 #: src/hdate_strings.c:263 src/hdate_strings.c:300
311 msgid "Tu B'Av"
312 msgstr "15-ое Ава"
313
314 #: src/hdate_strings.c:264 src/hdate_strings.c:301
315 msgid "Yom HaShoah"
316 msgstr "День Холокоста"
317
318 #: src/hdate_strings.c:265 src/hdate_strings.c:302
319 msgid "Yom HaZikaron"
320 msgstr "День Памяти"
321
322 #: src/hdate_strings.c:266 src/hdate_strings.c:303
323 msgid "Yom Yerushalayim"
324 msgstr "День Йерусалима"
325
326 #: src/hdate_strings.c:267 src/hdate_strings.c:304
327 msgid "Shmini Atzeret"
328 msgstr "Шмини-Ацерет"
329
330 #: src/hdate_strings.c:268 src/hdate_strings.c:305
331 msgid "Pesach VII"
332 msgstr "Песах VII"
333
334 #: src/hdate_strings.c:269 src/hdate_strings.c:306
335 msgid "Pesach VIII"
336 msgstr "Песах VIII"
337
338 #: src/hdate_strings.c:270 src/hdate_strings.c:307
339 msgid "Shavuot II"
340 msgstr "Шавуот II"
341
342 #: src/hdate_strings.c:271 src/hdate_strings.c:308
343 #, fuzzy
344 msgid "Sukkot II"
345 msgstr "Суккот II"
346
347 #: src/hdate_strings.c:272 src/hdate_strings.c:309
348 #, fuzzy
349 msgid "Pesach II"
350 msgstr "Песах II"
351
352 #: src/hdate_strings.c:273 src/hdate_strings.c:310
353 msgid "Family Day"
354 msgstr ""
355
356 #: src/hdate_strings.c:274 src/hdate_strings.c:311
357 msgid "Memorial day for fallen whose place of burial is unknown"
358 msgstr ""
359
360 #: src/hdate_strings.c:275
361 msgid "Rabin memorial day"
362 msgstr ""
363
364 #: src/hdate_strings.c:276
365 msgid "Zhabotinsky day"
366 msgstr ""
367
368 #: src/hdate_strings.c:312
369 msgid "Yitzhak Rabin memorial day"
370 msgstr ""
371
372 #: src/hdate_strings.c:313
373 msgid "Zeev Zhabotinsky day"
374 msgstr ""
375
376 #: src/hdate_strings.c:346 src/hdate_strings.c:409
377 msgid "none"
378 msgstr "Нет"
379
380 #: src/hdate_strings.c:347 src/hdate_strings.c:410
381 msgid "Bereshit"
382 msgstr ""
383
384 #: src/hdate_strings.c:348 src/hdate_strings.c:411
385 msgid "Noach"
386 msgstr "Ноах"
387
388 #: src/hdate_strings.c:349 src/hdate_strings.c:412
389 msgid "Lech-Lecha"
390 msgstr ""
391
392 #: src/hdate_strings.c:350 src/hdate_strings.c:413
393 msgid "Vayera"
394 msgstr ""
395
396 #: src/hdate_strings.c:351 src/hdate_strings.c:414
397 msgid "Chayei Sara"
398 msgstr "Жизнь Сары"
399
400 #: src/hdate_strings.c:352 src/hdate_strings.c:415
401 msgid "Toldot"
402 msgstr ""
403
404 #: src/hdate_strings.c:353 src/hdate_strings.c:416
405 msgid "Vayetzei"
406 msgstr ""
407
408 #: src/hdate_strings.c:354 src/hdate_strings.c:417
409 msgid "Vayishlach"
410 msgstr ""
411
412 #: src/hdate_strings.c:355 src/hdate_strings.c:418
413 msgid "Vayeshev"
414 msgstr ""
415
416 #: src/hdate_strings.c:356 src/hdate_strings.c:419
417 msgid "Miketz"
418 msgstr ""
419
420 #: src/hdate_strings.c:357 src/hdate_strings.c:420
421 msgid "Vayigash"
422 msgstr ""
423
424 #: src/hdate_strings.c:358 src/hdate_strings.c:421
425 msgid "Vayechi"
426 msgstr ""
427
428 #: src/hdate_strings.c:359 src/hdate_strings.c:422
429 msgid "Shemot"
430 msgstr ""
431
432 #: src/hdate_strings.c:360 src/hdate_strings.c:423
433 msgid "Vaera"
434 msgstr ""
435
436 #: src/hdate_strings.c:361 src/hdate_strings.c:424
437 msgid "Bo"
438 msgstr ""
439
440 #: src/hdate_strings.c:362 src/hdate_strings.c:425
441 msgid "Beshalach"
442 msgstr ""
443
444 #: src/hdate_strings.c:363 src/hdate_strings.c:426
445 msgid "Yitro"
446 msgstr ""
447
448 #: src/hdate_strings.c:364 src/hdate_strings.c:427
449 msgid "Mishpatim"
450 msgstr ""
451
452 #: src/hdate_strings.c:365 src/hdate_strings.c:428
453 msgid "Terumah"
454 msgstr ""
455
456 #: src/hdate_strings.c:366 src/hdate_strings.c:429
457 msgid "Tetzaveh"
458 msgstr ""
459
460 #: src/hdate_strings.c:367 src/hdate_strings.c:430
461 msgid "Ki Tisa"
462 msgstr ""
463
464 #: src/hdate_strings.c:368 src/hdate_strings.c:431
465 msgid "Vayakhel"
466 msgstr ""
467
468 #: src/hdate_strings.c:369 src/hdate_strings.c:432
469 msgid "Pekudei"
470 msgstr ""
471
472 #: src/hdate_strings.c:370 src/hdate_strings.c:433
473 msgid "Vayikra"
474 msgstr ""
475
476 #: src/hdate_strings.c:371 src/hdate_strings.c:434
477 msgid "Tzav"
478 msgstr ""
479
480 #: src/hdate_strings.c:372 src/hdate_strings.c:435
481 msgid "Shmini"
482 msgstr ""
483
484 #: src/hdate_strings.c:373 src/hdate_strings.c:436
485 msgid "Tazria"
486 msgstr ""
487
488 #: src/hdate_strings.c:374 src/hdate_strings.c:437
489 msgid "Metzora"
490 msgstr ""
491
492 #: src/hdate_strings.c:375 src/hdate_strings.c:438
493 msgid "Achrei Mot"
494 msgstr ""
495
496 #: src/hdate_strings.c:376 src/hdate_strings.c:439
497 msgid "Kedoshim"
498 msgstr ""
499
500 #: src/hdate_strings.c:377 src/hdate_strings.c:440
501 msgid "Emor"
502 msgstr ""
503
504 #: src/hdate_strings.c:378 src/hdate_strings.c:441
505 msgid "Behar"
506 msgstr ""
507
508 #: src/hdate_strings.c:379 src/hdate_strings.c:442
509 msgid "Bechukotai"
510 msgstr ""
511
512 #: src/hdate_strings.c:380 src/hdate_strings.c:443
513 msgid "Bamidbar"
514 msgstr ""
515
516 #: src/hdate_strings.c:381 src/hdate_strings.c:444
517 msgid "Nasso"
518 msgstr ""
519
520 #: src/hdate_strings.c:382 src/hdate_strings.c:445
521 msgid "Beha'alotcha"
522 msgstr ""
523
524 #: src/hdate_strings.c:383 src/hdate_strings.c:446
525 msgid "Sh'lach"
526 msgstr ""
527
528 #: src/hdate_strings.c:384 src/hdate_strings.c:447
529 msgid "Korach"
530 msgstr ""
531
532 #: src/hdate_strings.c:385 src/hdate_strings.c:448
533 msgid "Chukat"
534 msgstr ""
535
536 #: src/hdate_strings.c:386 src/hdate_strings.c:449
537 msgid "Balak"
538 msgstr ""
539
540 #: src/hdate_strings.c:387 src/hdate_strings.c:450
541 msgid "Pinchas"
542 msgstr ""
543
544 #: src/hdate_strings.c:388 src/hdate_strings.c:451
545 msgid "Matot"
546 msgstr ""
547
548 #: src/hdate_strings.c:389 src/hdate_strings.c:452
549 msgid "Masei"
550 msgstr ""
551
552 #: src/hdate_strings.c:390 src/hdate_strings.c:453
553 msgid "Devarim"
554 msgstr ""
555
556 #: src/hdate_strings.c:391 src/hdate_strings.c:454
557 msgid "Vaetchanan"
558 msgstr ""
559
560 #: src/hdate_strings.c:392 src/hdate_strings.c:455
561 msgid "Eikev"
562 msgstr ""
563
564 #: src/hdate_strings.c:393 src/hdate_strings.c:456
565 msgid "Re'eh"
566 msgstr ""
567
568 #: src/hdate_strings.c:394 src/hdate_strings.c:457
569 msgid "Shoftim"
570 msgstr ""
571
572 #: src/hdate_strings.c:395 src/hdate_strings.c:458
573 msgid "Ki Teitzei"
574 msgstr ""
575
576 #: src/hdate_strings.c:396 src/hdate_strings.c:459
577 msgid "Ki Tavo"
578 msgstr ""
579
580 #: src/hdate_strings.c:397 src/hdate_strings.c:460
581 msgid "Nitzavim"
582 msgstr ""
583
584 #: src/hdate_strings.c:398 src/hdate_strings.c:461
585 msgid "Vayeilech"
586 msgstr ""
587
588 #: src/hdate_strings.c:399 src/hdate_strings.c:462
589 msgid "Ha'Azinu"
590 msgstr ""
591
592 #: src/hdate_strings.c:400 src/hdate_strings.c:463
593 msgid "Vezot Habracha"
594 msgstr ""
595
596 #: src/hdate_strings.c:401 src/hdate_strings.c:464
597 msgid "Vayakhel-Pekudei"
598 msgstr ""
599
600 #: src/hdate_strings.c:402 src/hdate_strings.c:465
601 msgid "Tazria-Metzora"
602 msgstr ""
603
604 #: src/hdate_strings.c:403 src/hdate_strings.c:466
605 msgid "Achrei Mot-Kedoshim"
606 msgstr ""
607
608 #: src/hdate_strings.c:404 src/hdate_strings.c:467
609 msgid "Behar-Bechukotai"
610 msgstr ""
611
612 #: src/hdate_strings.c:405 src/hdate_strings.c:468
613 msgid "Chukat-Balak"
614 msgstr ""
615
616 #: src/hdate_strings.c:406 src/hdate_strings.c:469
617 msgid "Matot-Masei"
618 msgstr ""
619
620 #: src/hdate_strings.c:407 src/hdate_strings.c:470
621 msgid "Nitzavim-Vayeilech"
622 msgstr ""
623
624 #: src/hdate_strings.c:568 src/hdate_strings.c:572
625 msgid "translator"
626 msgstr "Борис Петербарг"
Binary diff not shown
0 # Swedish translation of libhdate.
1 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
2 # This file is distributed under the same license as the libhdate package.
3 # Daniel Nylander <po@danielnylander.se>, 2006.
4 #
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: libhdate\n"
8 "Report-Msgid-Bugs-To: \n"
9 "POT-Creation-Date: 2008-01-05 10:30+0200\n"
10 "PO-Revision-Date: 2006-03-19 16:53+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
17 #: src/hdate_strings.c:131
18 msgid "Sun"
19 msgstr "Sön"
20
21 #: src/hdate_strings.c:131
22 msgid "Mon"
23 msgstr "Mån"
24
25 #: src/hdate_strings.c:131
26 msgid "Tue"
27 msgstr "Tis"
28
29 #: src/hdate_strings.c:131
30 msgid "Wed"
31 msgstr "Ons"
32
33 #: src/hdate_strings.c:131
34 msgid "Thu"
35 msgstr "Tor"
36
37 #: src/hdate_strings.c:132
38 msgid "Fri"
39 msgstr "Fre"
40
41 #: src/hdate_strings.c:132
42 msgid "Sat"
43 msgstr "Lör"
44
45 #: src/hdate_strings.c:133
46 msgid "Sunday"
47 msgstr "Söndag"
48
49 #: src/hdate_strings.c:133
50 msgid "Monday"
51 msgstr "Måndag"
52
53 #: src/hdate_strings.c:133
54 msgid "Tuesday"
55 msgstr "Tisdag"
56
57 #: src/hdate_strings.c:133
58 msgid "Wednesday"
59 msgstr "Onsdag"
60
61 #: src/hdate_strings.c:134
62 msgid "Thursday"
63 msgstr "Torsdag"
64
65 #: src/hdate_strings.c:134
66 msgid "Friday"
67 msgstr "Fredag"
68
69 #: src/hdate_strings.c:134
70 msgid "Saturday"
71 msgstr "Lördag"
72
73 #: src/hdate_strings.c:165
74 msgid "Jan"
75 msgstr "Jan"
76
77 #: src/hdate_strings.c:165
78 msgid "Feb"
79 msgstr "Feb"
80
81 #: src/hdate_strings.c:165
82 msgid "Mar"
83 msgstr "Mar"
84
85 #: src/hdate_strings.c:165
86 msgid "Apr"
87 msgstr "Apr"
88
89 #: src/hdate_strings.c:165 src/hdate_strings.c:169
90 msgid "May"
91 msgstr "Maj"
92
93 #: src/hdate_strings.c:166
94 msgid "Jun"
95 msgstr "Jun"
96
97 #: src/hdate_strings.c:166
98 msgid "Jul"
99 msgstr "Jul"
100
101 #: src/hdate_strings.c:166
102 msgid "Aug"
103 msgstr "Aug"
104
105 #: src/hdate_strings.c:166
106 msgid "Sep"
107 msgstr "Sep"
108
109 #: src/hdate_strings.c:166
110 msgid "Oct"
111 msgstr "Okt"
112
113 #: src/hdate_strings.c:167
114 msgid "Nov"
115 msgstr "Nov"
116
117 #: src/hdate_strings.c:167
118 msgid "Dec"
119 msgstr "Dec"
120
121 #: src/hdate_strings.c:168
122 msgid "January"
123 msgstr "Januari"
124
125 #: src/hdate_strings.c:168
126 msgid "February"
127 msgstr "Februari"
128
129 #: src/hdate_strings.c:168
130 msgid "March"
131 msgstr "Mars"
132
133 #: src/hdate_strings.c:169
134 msgid "April"
135 msgstr "April"
136
137 #: src/hdate_strings.c:169
138 msgid "June"
139 msgstr "Juni"
140
141 #: src/hdate_strings.c:170
142 msgid "July"
143 msgstr "Juli"
144
145 #: src/hdate_strings.c:170
146 msgid "August"
147 msgstr "Augusti"
148
149 #: src/hdate_strings.c:170
150 msgid "September"
151 msgstr "September"
152
153 #: src/hdate_strings.c:171
154 msgid "October"
155 msgstr "Oktober"
156
157 #: src/hdate_strings.c:171
158 msgid "November"
159 msgstr "November"
160
161 #: src/hdate_strings.c:171
162 msgid "December"
163 msgstr "December"
164
165 #: src/hdate_strings.c:202 src/hdate_strings.c:206
166 msgid "Tishrei"
167 msgstr "Tishrei"
168
169 #: src/hdate_strings.c:202 src/hdate_strings.c:206
170 msgid "Cheshvan"
171 msgstr "Cheshvan"
172
173 #: src/hdate_strings.c:202 src/hdate_strings.c:206
174 msgid "Kislev"
175 msgstr "Kislev"
176
177 #: src/hdate_strings.c:202 src/hdate_strings.c:206
178 msgid "Tevet"
179 msgstr "Tevet"
180
181 #: src/hdate_strings.c:203 src/hdate_strings.c:207
182 msgid "Sh'vat"
183 msgstr "Sh'vat"
184
185 #: src/hdate_strings.c:203 src/hdate_strings.c:207
186 msgid "Adar"
187 msgstr "Adar"
188
189 #: src/hdate_strings.c:203 src/hdate_strings.c:207
190 msgid "Nisan"
191 msgstr "Nisan"
192
193 #: src/hdate_strings.c:203 src/hdate_strings.c:207
194 msgid "Iyyar"
195 msgstr "Iyyar"
196
197 #: src/hdate_strings.c:204 src/hdate_strings.c:208
198 msgid "Sivan"
199 msgstr "Sivan"
200
201 #: src/hdate_strings.c:204 src/hdate_strings.c:208
202 msgid "Tamuz"
203 msgstr "Tamuz"
204
205 #: src/hdate_strings.c:204 src/hdate_strings.c:208
206 msgid "Av"
207 msgstr "Av"
208
209 #: src/hdate_strings.c:204 src/hdate_strings.c:208
210 msgid "Elul"
211 msgstr "Elul"
212
213 #: src/hdate_strings.c:204 src/hdate_strings.c:208
214 msgid "Adar I"
215 msgstr "Adar I"
216
217 #: src/hdate_strings.c:205 src/hdate_strings.c:209
218 msgid "Adar II"
219 msgstr "Adar II"
220
221 #: src/hdate_strings.c:241 src/hdate_strings.c:278
222 msgid "Rosh Hashana I"
223 msgstr "Rosh Hashana I"
224
225 #: src/hdate_strings.c:242 src/hdate_strings.c:279
226 msgid "Rosh Hashana II"
227 msgstr "Rosh Hashana II"
228
229 #: src/hdate_strings.c:243 src/hdate_strings.c:280
230 msgid "Tzom Gedaliah"
231 msgstr "Tzom Gedaliah"
232
233 #: src/hdate_strings.c:244 src/hdate_strings.c:281
234 msgid "Yom Kippur"
235 msgstr "Yom Kippur"
236
237 #: src/hdate_strings.c:245 src/hdate_strings.c:282
238 msgid "Sukkot"
239 msgstr "Sukkot"
240
241 #: src/hdate_strings.c:246 src/hdate_strings.c:283
242 msgid "Hol hamoed Sukkot"
243 msgstr "Hol hamoed Sukkot"
244
245 #: src/hdate_strings.c:247 src/hdate_strings.c:284
246 msgid "Hoshana raba"
247 msgstr "Hoshana raba"
248
249 #: src/hdate_strings.c:248 src/hdate_strings.c:285
250 msgid "Simchat Torah"
251 msgstr "Simchat Torah"
252
253 #: src/hdate_strings.c:249 src/hdate_strings.c:286
254 msgid "Chanukah"
255 msgstr "Chanukah"
256
257 #: src/hdate_strings.c:250 src/hdate_strings.c:287
258 msgid "Asara B'Tevet"
259 msgstr "Asara B'Tevet"
260
261 #: src/hdate_strings.c:251 src/hdate_strings.c:288
262 msgid "Tu B'Shvat"
263 msgstr "Tu B'Shvat"
264
265 #: src/hdate_strings.c:252 src/hdate_strings.c:289
266 msgid "Ta'anit Esther"
267 msgstr "Ta'anit Esther"
268
269 #: src/hdate_strings.c:253 src/hdate_strings.c:290
270 msgid "Purim"
271 msgstr "Purim"
272
273 #: src/hdate_strings.c:254 src/hdate_strings.c:291
274 msgid "Shushan Purim"
275 msgstr "Shushan Purim"
276
277 #: src/hdate_strings.c:255 src/hdate_strings.c:292
278 msgid "Pesach"
279 msgstr "Pesach"
280
281 #: src/hdate_strings.c:256 src/hdate_strings.c:293
282 msgid "Hol hamoed Pesach"
283 msgstr "Hol hamoed Pesach"
284
285 #: src/hdate_strings.c:257 src/hdate_strings.c:294
286 msgid "Yom HaAtzma'ut"
287 msgstr "Yom HaAtzma'ut"
288
289 #: src/hdate_strings.c:258 src/hdate_strings.c:295
290 msgid "Lag B'Omer"
291 msgstr "Lag B'Omer"
292
293 #: src/hdate_strings.c:259 src/hdate_strings.c:296
294 msgid "Erev Shavuot"
295 msgstr "Erev Shavuot"
296
297 #: src/hdate_strings.c:260 src/hdate_strings.c:297
298 msgid "Shavuot"
299 msgstr "Shavuot"
300
301 #: src/hdate_strings.c:261 src/hdate_strings.c:298
302 msgid "Tzom Tammuz"
303 msgstr "Tzom Tammuz"
304
305 #: src/hdate_strings.c:262 src/hdate_strings.c:299
306 msgid "Tish'a B'Av"
307 msgstr "Tish'a B'Av"
308
309 #: src/hdate_strings.c:263 src/hdate_strings.c:300
310 msgid "Tu B'Av"
311 msgstr "Tu B'Av"
312
313 #: src/hdate_strings.c:264 src/hdate_strings.c:301
314 msgid "Yom HaShoah"
315 msgstr "Yom HaShoah"
316
317 #: src/hdate_strings.c:265 src/hdate_strings.c:302
318 msgid "Yom HaZikaron"
319 msgstr "Yom HaZikaron"
320
321 #: src/hdate_strings.c:266 src/hdate_strings.c:303
322 msgid "Yom Yerushalayim"
323 msgstr "Yom Yerushalayim"
324
325 #: src/hdate_strings.c:267 src/hdate_strings.c:304
326 msgid "Shmini Atzeret"
327 msgstr "Shmini Atzeret"
328
329 #: src/hdate_strings.c:268 src/hdate_strings.c:305
330 msgid "Pesach VII"
331 msgstr "Pesach VII"
332
333 #: src/hdate_strings.c:269 src/hdate_strings.c:306
334 msgid "Pesach VIII"
335 msgstr "Pesach VIII"
336
337 #: src/hdate_strings.c:270 src/hdate_strings.c:307
338 msgid "Shavuot II"
339 msgstr "Shavuot II"
340
341 #: src/hdate_strings.c:271 src/hdate_strings.c:308
342 msgid "Sukkot II"
343 msgstr "Sukkot II"
344
345 #: src/hdate_strings.c:272 src/hdate_strings.c:309
346 msgid "Pesach II"
347 msgstr "Pesach II"
348
349 #: src/hdate_strings.c:273 src/hdate_strings.c:310
350 msgid "Family Day"
351 msgstr ""
352
353 #: src/hdate_strings.c:274 src/hdate_strings.c:311
354 msgid "Memorial day for fallen whose place of burial is unknown"
355 msgstr ""
356
357 #: src/hdate_strings.c:275
358 msgid "Rabin memorial day"
359 msgstr ""
360
361 #: src/hdate_strings.c:276
362 msgid "Zhabotinsky day"
363 msgstr ""
364
365 #: src/hdate_strings.c:312
366 msgid "Yitzhak Rabin memorial day"
367 msgstr ""
368
369 #: src/hdate_strings.c:313
370 msgid "Zeev Zhabotinsky day"
371 msgstr ""
372
373 #: src/hdate_strings.c:346 src/hdate_strings.c:409
374 msgid "none"
375 msgstr "ingen"
376
377 #: src/hdate_strings.c:347 src/hdate_strings.c:410
378 msgid "Bereshit"
379 msgstr "Bereshit"
380
381 #: src/hdate_strings.c:348 src/hdate_strings.c:411
382 msgid "Noach"
383 msgstr "Noach"
384
385 #: src/hdate_strings.c:349 src/hdate_strings.c:412
386 msgid "Lech-Lecha"
387 msgstr "Lech-Lecha"
388
389 #: src/hdate_strings.c:350 src/hdate_strings.c:413
390 msgid "Vayera"
391 msgstr "Vayera"
392
393 #: src/hdate_strings.c:351 src/hdate_strings.c:414
394 msgid "Chayei Sara"
395 msgstr "Chayei Sara"
396
397 #: src/hdate_strings.c:352 src/hdate_strings.c:415
398 msgid "Toldot"
399 msgstr "Toldot"
400
401 #: src/hdate_strings.c:353 src/hdate_strings.c:416
402 msgid "Vayetzei"
403 msgstr "Vayetzei"
404
405 #: src/hdate_strings.c:354 src/hdate_strings.c:417
406 msgid "Vayishlach"
407 msgstr "Vayishlach"
408
409 #: src/hdate_strings.c:355 src/hdate_strings.c:418
410 msgid "Vayeshev"
411 msgstr "Vayeshev"
412
413 #: src/hdate_strings.c:356 src/hdate_strings.c:419
414 msgid "Miketz"
415 msgstr "Miketz"
416
417 #: src/hdate_strings.c:357 src/hdate_strings.c:420
418 msgid "Vayigash"
419 msgstr "Vayigash"
420
421 #: src/hdate_strings.c:358 src/hdate_strings.c:421
422 msgid "Vayechi"
423 msgstr "Vayechi"
424
425 #: src/hdate_strings.c:359 src/hdate_strings.c:422
426 msgid "Shemot"
427 msgstr "Shemot"
428
429 #: src/hdate_strings.c:360 src/hdate_strings.c:423
430 msgid "Vaera"
431 msgstr "Vaera"
432
433 #: src/hdate_strings.c:361 src/hdate_strings.c:424
434 msgid "Bo"
435 msgstr "Bo"
436
437 #: src/hdate_strings.c:362 src/hdate_strings.c:425
438 msgid "Beshalach"
439 msgstr "Beshalach"
440
441 #: src/hdate_strings.c:363 src/hdate_strings.c:426
442 msgid "Yitro"
443 msgstr "Yitro"
444
445 #: src/hdate_strings.c:364 src/hdate_strings.c:427
446 msgid "Mishpatim"
447 msgstr "Mishpatim"
448
449 #: src/hdate_strings.c:365 src/hdate_strings.c:428
450 msgid "Terumah"
451 msgstr "Terumah"
452
453 #: src/hdate_strings.c:366 src/hdate_strings.c:429
454 msgid "Tetzaveh"
455 msgstr "Tetzaveh"
456
457 #: src/hdate_strings.c:367 src/hdate_strings.c:430
458 msgid "Ki Tisa"
459 msgstr "Ki Tisa"
460
461 #: src/hdate_strings.c:368 src/hdate_strings.c:431
462 msgid "Vayakhel"
463 msgstr "Vayakhel"
464
465 #: src/hdate_strings.c:369 src/hdate_strings.c:432
466 msgid "Pekudei"
467 msgstr "Pekudei"
468
469 #: src/hdate_strings.c:370 src/hdate_strings.c:433
470 msgid "Vayikra"
471 msgstr "Vayikra"
472
473 #: src/hdate_strings.c:371 src/hdate_strings.c:434
474 msgid "Tzav"
475 msgstr "Tzav"
476
477 #: src/hdate_strings.c:372 src/hdate_strings.c:435
478 msgid "Shmini"
479 msgstr "Shmini"
480
481 #: src/hdate_strings.c:373 src/hdate_strings.c:436
482 msgid "Tazria"
483 msgstr "Tazria"
484
485 #: src/hdate_strings.c:374 src/hdate_strings.c:437
486 msgid "Metzora"
487 msgstr "Metzora"
488
489 #: src/hdate_strings.c:375 src/hdate_strings.c:438
490 msgid "Achrei Mot"
491 msgstr "Achrei Mot"
492
493 #: src/hdate_strings.c:376 src/hdate_strings.c:439
494 msgid "Kedoshim"
495 msgstr "Kedoshim"
496
497 #: src/hdate_strings.c:377 src/hdate_strings.c:440
498 msgid "Emor"
499 msgstr "Emor"
500
501 #: src/hdate_strings.c:378 src/hdate_strings.c:441
502 msgid "Behar"
503 msgstr "Behar"
504
505 #: src/hdate_strings.c:379 src/hdate_strings.c:442
506 msgid "Bechukotai"
507 msgstr "Bechukotai"
508
509 #: src/hdate_strings.c:380 src/hdate_strings.c:443
510 msgid "Bamidbar"
511 msgstr "Bamidbar"
512
513 #: src/hdate_strings.c:381 src/hdate_strings.c:444
514 msgid "Nasso"
515 msgstr "Nasso"
516
517 #: src/hdate_strings.c:382 src/hdate_strings.c:445
518 msgid "Beha'alotcha"
519 msgstr "Beha'alotcha"
520
521 #: src/hdate_strings.c:383 src/hdate_strings.c:446
522 msgid "Sh'lach"
523 msgstr "Sh'lach"
524
525 #: src/hdate_strings.c:384 src/hdate_strings.c:447
526 msgid "Korach"
527 msgstr "Korach"
528
529 #: src/hdate_strings.c:385 src/hdate_strings.c:448
530 msgid "Chukat"
531 msgstr "Chukat"
532
533 #: src/hdate_strings.c:386 src/hdate_strings.c:449
534 msgid "Balak"
535 msgstr "Balak"
536
537 #: src/hdate_strings.c:387 src/hdate_strings.c:450
538 msgid "Pinchas"
539 msgstr "Pinchas"
540
541 #: src/hdate_strings.c:388 src/hdate_strings.c:451
542 msgid "Matot"
543 msgstr "Matot"
544
545 #: src/hdate_strings.c:389 src/hdate_strings.c:452
546 msgid "Masei"
547 msgstr "Masei"
548
549 #: src/hdate_strings.c:390 src/hdate_strings.c:453
550 msgid "Devarim"
551 msgstr "Devarim"
552
553 #: src/hdate_strings.c:391 src/hdate_strings.c:454
554 msgid "Vaetchanan"
555 msgstr "Vaetchanan"
556
557 #: src/hdate_strings.c:392 src/hdate_strings.c:455
558 msgid "Eikev"
559 msgstr "Eikev"
560
561 #: src/hdate_strings.c:393 src/hdate_strings.c:456
562 msgid "Re'eh"
563 msgstr "Re'eh"
564
565 #: src/hdate_strings.c:394 src/hdate_strings.c:457
566 msgid "Shoftim"
567 msgstr "Shoftim"
568
569 #: src/hdate_strings.c:395 src/hdate_strings.c:458
570 msgid "Ki Teitzei"
571 msgstr "Ki Teitzei"
572
573 #: src/hdate_strings.c:396 src/hdate_strings.c:459
574 msgid "Ki Tavo"
575 msgstr "Ki Tavo"
576
577 #: src/hdate_strings.c:397 src/hdate_strings.c:460
578 msgid "Nitzavim"
579 msgstr "Nitzavim"
580
581 #: src/hdate_strings.c:398 src/hdate_strings.c:461
582 msgid "Vayeilech"
583 msgstr "Vayeilech"
584
585 #: src/hdate_strings.c:399 src/hdate_strings.c:462
586 msgid "Ha'Azinu"
587 msgstr "Ha'Azinu"
588
589 #: src/hdate_strings.c:400 src/hdate_strings.c:463
590 msgid "Vezot Habracha"
591 msgstr "Vezot Habracha"
592
593 #: src/hdate_strings.c:401 src/hdate_strings.c:464
594 msgid "Vayakhel-Pekudei"
595 msgstr "Vayakhel-Pekudei"
596
597 #: src/hdate_strings.c:402 src/hdate_strings.c:465
598 msgid "Tazria-Metzora"
599 msgstr "Tazria-Metzora"
600
601 #: src/hdate_strings.c:403 src/hdate_strings.c:466
602 msgid "Achrei Mot-Kedoshim"
603 msgstr "Achrei Mot-Kedoshim"
604
605 #: src/hdate_strings.c:404 src/hdate_strings.c:467
606 msgid "Behar-Bechukotai"
607 msgstr "Behar-Bechukotai"
608
609 #: src/hdate_strings.c:405 src/hdate_strings.c:468
610 msgid "Chukat-Balak"
611 msgstr "Chukat-Balak"
612
613 #: src/hdate_strings.c:406 src/hdate_strings.c:469
614 msgid "Matot-Masei"
615 msgstr "Matot-Masei"
616
617 #: src/hdate_strings.c:407 src/hdate_strings.c:470
618 msgid "Nitzavim-Vayeilech"
619 msgstr "Nitzavim-Vayeilech"
620
621 #: src/hdate_strings.c:568 src/hdate_strings.c:572
622 msgid "translator"
623 msgstr "Daniel Nylander"
0 libhdate_la_CFLAGS =\
1 -Wall\
2 -g
3
4 lib_LTLIBRARIES = libhdate.la
5
6 libhdate_la_SOURCES = \
7 hdate_strings.c\
8 hdate_julian.c\
9 hdate_holyday.c\
10 hdate_parasha.c\
11 hdate_sun_time.c\
12 hdate.h\
13 support.h
14
15 libhdate_la_LDFLAGS = -version-info $(VERSION_INFO)
16
17 libhdate_la_LIBADD =
18
19 include_HEADERS = hdate.h hdatepp.h
20
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 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 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkgincludedir = $(includedir)/@PACKAGE@
23 top_builddir = ..
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 build_triplet = @build@
38 host_triplet = @host@
39 subdir = src
40 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
41 $(srcdir)/Makefile.in
42 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
44 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
45 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
46 $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \
47 $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
48 $(top_srcdir)/configure.in
49 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
50 $(ACLOCAL_M4)
51 mkinstalldirs = $(install_sh) -d
52 CONFIG_CLEAN_FILES =
53 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
54 am__vpath_adj = case $$p in \
55 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
56 *) f=$$p;; \
57 esac;
58 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
59 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
60 libLTLIBRARIES_INSTALL = $(INSTALL)
61 LTLIBRARIES = $(lib_LTLIBRARIES)
62 libhdate_la_DEPENDENCIES =
63 am_libhdate_la_OBJECTS = libhdate_la-hdate_strings.lo \
64 libhdate_la-hdate_julian.lo libhdate_la-hdate_holyday.lo \
65 libhdate_la-hdate_parasha.lo libhdate_la-hdate_sun_time.lo
66 libhdate_la_OBJECTS = $(am_libhdate_la_OBJECTS)
67 DEFAULT_INCLUDES = -I. -I$(srcdir)
68 depcomp = $(SHELL) $(top_srcdir)/depcomp
69 am__depfiles_maybe = depfiles
70 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
71 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
72 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
73 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
74 $(AM_CFLAGS) $(CFLAGS)
75 CCLD = $(CC)
76 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
77 $(AM_LDFLAGS) $(LDFLAGS) -o $@
78 SOURCES = $(libhdate_la_SOURCES)
79 DIST_SOURCES = $(libhdate_la_SOURCES)
80 includeHEADERS_INSTALL = $(INSTALL_HEADER)
81 HEADERS = $(include_HEADERS)
82 ETAGS = etags
83 CTAGS = ctags
84 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
85 ACLOCAL = @ACLOCAL@
86 AMDEP_FALSE = @AMDEP_FALSE@
87 AMDEP_TRUE = @AMDEP_TRUE@
88 AMTAR = @AMTAR@
89 AR = @AR@
90 AUTOCONF = @AUTOCONF@
91 AUTOHEADER = @AUTOHEADER@
92 AUTOMAKE = @AUTOMAKE@
93 AWK = @AWK@
94 CC = @CC@
95 CCDEPMODE = @CCDEPMODE@
96 CFLAGS = @CFLAGS@
97 CPP = @CPP@
98 CPPFLAGS = @CPPFLAGS@
99 CXX = @CXX@
100 CXXCPP = @CXXCPP@
101 CXXDEPMODE = @CXXDEPMODE@
102 CXXFLAGS = @CXXFLAGS@
103 CYGPATH_W = @CYGPATH_W@
104 DATADIRNAME = @DATADIRNAME@
105 DEFS = @DEFS@
106 DEPDIR = @DEPDIR@
107 ECHO = @ECHO@
108 ECHO_C = @ECHO_C@
109 ECHO_N = @ECHO_N@
110 ECHO_T = @ECHO_T@
111 EGREP = @EGREP@
112 EXEEXT = @EXEEXT@
113 F77 = @F77@
114 FFLAGS = @FFLAGS@
115 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
116 GMSGFMT = @GMSGFMT@
117 GMSGFMT_015 = @GMSGFMT_015@
118 GREP = @GREP@
119 INSTALL_DATA = @INSTALL_DATA@
120 INSTALL_PROGRAM = @INSTALL_PROGRAM@
121 INSTALL_SCRIPT = @INSTALL_SCRIPT@
122 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
123 INTLLIBS = @INTLLIBS@
124 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
125 LDFLAGS = @LDFLAGS@
126 LIBICONV = @LIBICONV@
127 LIBINTL = @LIBINTL@
128 LIBOBJS = @LIBOBJS@
129 LIBS = @LIBS@
130 LIBTOOL = @LIBTOOL@
131 LN_S = @LN_S@
132 LTLIBICONV = @LTLIBICONV@
133 LTLIBINTL = @LTLIBINTL@
134 LTLIBOBJS = @LTLIBOBJS@
135 MAINT = @MAINT@
136 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
137 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
138 MAKEINFO = @MAKEINFO@
139 MSGFMT = @MSGFMT@
140 MSGFMT_015 = @MSGFMT_015@
141 MSGMERGE = @MSGMERGE@
142 OBJEXT = @OBJEXT@
143 PACKAGE = @PACKAGE@
144 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
145 PACKAGE_NAME = @PACKAGE_NAME@
146 PACKAGE_STRING = @PACKAGE_STRING@
147 PACKAGE_TARNAME = @PACKAGE_TARNAME@
148 PACKAGE_VERSION = @PACKAGE_VERSION@
149 PATH_SEPARATOR = @PATH_SEPARATOR@
150 PA_MODULES_PATH = @PA_MODULES_PATH@
151 PA_VERSION = @PA_VERSION@
152 PE_CFLAGS = @PE_CFLAGS@
153 PE_MODULES_PATH = @PE_MODULES_PATH@
154 PKG_CONFIG = @PKG_CONFIG@
155 POSUB = @POSUB@
156 PY_CFLAGS = @PY_CFLAGS@
157 PY_MODULES_PATH = @PY_MODULES_PATH@
158 PY_VERSION = @PY_VERSION@
159 RANLIB = @RANLIB@
160 SED = @SED@
161 SET_MAKE = @SET_MAKE@
162 SHELL = @SHELL@
163 STRIP = @STRIP@
164 USE_NLS = @USE_NLS@
165 VERSION = @VERSION@
166 VERSION_INFO = @VERSION_INFO@
167 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
168 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
169 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
170 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
171 WITH_PERL_FALSE = @WITH_PERL_FALSE@
172 WITH_PERL_TRUE = @WITH_PERL_TRUE@
173 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
174 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
175 XGETTEXT = @XGETTEXT@
176 XGETTEXT_015 = @XGETTEXT_015@
177 XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
178 ac_ct_CC = @ac_ct_CC@
179 ac_ct_CXX = @ac_ct_CXX@
180 ac_ct_F77 = @ac_ct_F77@
181 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
182 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
183 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
184 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
185 am__include = @am__include@
186 am__leading_dot = @am__leading_dot@
187 am__quote = @am__quote@
188 am__tar = @am__tar@
189 am__untar = @am__untar@
190 bindir = @bindir@
191 build = @build@
192 build_alias = @build_alias@
193 build_cpu = @build_cpu@
194 build_os = @build_os@
195 build_vendor = @build_vendor@
196 datadir = @datadir@
197 datarootdir = @datarootdir@
198 docdir = @docdir@
199 dvidir = @dvidir@
200 exec_prefix = @exec_prefix@
201 have_pascal = @have_pascal@
202 have_perl = @have_perl@
203 have_python = @have_python@
204 have_swig = @have_swig@
205 host = @host@
206 host_alias = @host_alias@
207 host_cpu = @host_cpu@
208 host_os = @host_os@
209 host_vendor = @host_vendor@
210 htmldir = @htmldir@
211 includedir = @includedir@
212 infodir = @infodir@
213 install_sh = @install_sh@
214 libdir = @libdir@
215 libexecdir = @libexecdir@
216 localedir = @localedir@
217 localstatedir = @localstatedir@
218 mandir = @mandir@
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 sysconfdir = @sysconfdir@
228 target_alias = @target_alias@
229 libhdate_la_CFLAGS = \
230 -Wall\
231 -g
232
233 lib_LTLIBRARIES = libhdate.la
234 libhdate_la_SOURCES = \
235 hdate_strings.c\
236 hdate_julian.c\
237 hdate_holyday.c\
238 hdate_parasha.c\
239 hdate_sun_time.c\
240 hdate.h\
241 support.h
242
243 libhdate_la_LDFLAGS = -version-info $(VERSION_INFO)
244 libhdate_la_LIBADD =
245 include_HEADERS = hdate.h hdatepp.h
246 all: all-am
247
248 .SUFFIXES:
249 .SUFFIXES: .c .lo .o .obj
250 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
251 @for dep in $?; do \
252 case '$(am__configure_deps)' in \
253 *$$dep*) \
254 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
255 && exit 0; \
256 exit 1;; \
257 esac; \
258 done; \
259 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
260 cd $(top_srcdir) && \
261 $(AUTOMAKE) --gnu src/Makefile
262 .PRECIOUS: Makefile
263 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
264 @case '$?' in \
265 *config.status*) \
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
267 *) \
268 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
269 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
270 esac;
271
272 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
273 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
274
275 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
276 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
277 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
278 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
279 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
280 @$(NORMAL_INSTALL)
281 test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
282 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
283 if test -f $$p; then \
284 f=$(am__strip_dir) \
285 echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
286 $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
287 else :; fi; \
288 done
289
290 uninstall-libLTLIBRARIES:
291 @$(NORMAL_UNINSTALL)
292 @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
293 p=$(am__strip_dir) \
294 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
295 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
296 done
297
298 clean-libLTLIBRARIES:
299 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
300 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
301 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
302 test "$$dir" != "$$p" || dir=.; \
303 echo "rm -f \"$${dir}/so_locations\""; \
304 rm -f "$${dir}/so_locations"; \
305 done
306 libhdate.la: $(libhdate_la_OBJECTS) $(libhdate_la_DEPENDENCIES)
307 $(LINK) -rpath $(libdir) $(libhdate_la_LDFLAGS) $(libhdate_la_OBJECTS) $(libhdate_la_LIBADD) $(LIBS)
308
309 mostlyclean-compile:
310 -rm -f *.$(OBJEXT)
311
312 distclean-compile:
313 -rm -f *.tab.c
314
315 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_holyday.Plo@am__quote@
316 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_julian.Plo@am__quote@
317 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_parasha.Plo@am__quote@
318 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_strings.Plo@am__quote@
319 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhdate_la-hdate_sun_time.Plo@am__quote@
320
321 .c.o:
322 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
323 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
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@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
330 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
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@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
337 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
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 libhdate_la-hdate_strings.lo: hdate_strings.c
343 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_strings.lo -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_strings.Tpo" -c -o libhdate_la-hdate_strings.lo `test -f 'hdate_strings.c' || echo '$(srcdir)/'`hdate_strings.c; \
344 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_strings.Tpo" "$(DEPDIR)/libhdate_la-hdate_strings.Plo"; else rm -f "$(DEPDIR)/libhdate_la-hdate_strings.Tpo"; exit 1; fi
345 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_strings.c' object='libhdate_la-hdate_strings.lo' libtool=yes @AMDEPBACKSLASH@
346 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
347 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_strings.lo `test -f 'hdate_strings.c' || echo '$(srcdir)/'`hdate_strings.c
348
349 libhdate_la-hdate_julian.lo: hdate_julian.c
350 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_julian.lo -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_julian.Tpo" -c -o libhdate_la-hdate_julian.lo `test -f 'hdate_julian.c' || echo '$(srcdir)/'`hdate_julian.c; \
351 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_julian.Tpo" "$(DEPDIR)/libhdate_la-hdate_julian.Plo"; else rm -f "$(DEPDIR)/libhdate_la-hdate_julian.Tpo"; exit 1; fi
352 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_julian.c' object='libhdate_la-hdate_julian.lo' libtool=yes @AMDEPBACKSLASH@
353 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
354 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_julian.lo `test -f 'hdate_julian.c' || echo '$(srcdir)/'`hdate_julian.c
355
356 libhdate_la-hdate_holyday.lo: hdate_holyday.c
357 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_holyday.lo -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo" -c -o libhdate_la-hdate_holyday.lo `test -f 'hdate_holyday.c' || echo '$(srcdir)/'`hdate_holyday.c; \
358 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo" "$(DEPDIR)/libhdate_la-hdate_holyday.Plo"; else rm -f "$(DEPDIR)/libhdate_la-hdate_holyday.Tpo"; exit 1; fi
359 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_holyday.c' object='libhdate_la-hdate_holyday.lo' libtool=yes @AMDEPBACKSLASH@
360 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
361 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_holyday.lo `test -f 'hdate_holyday.c' || echo '$(srcdir)/'`hdate_holyday.c
362
363 libhdate_la-hdate_parasha.lo: hdate_parasha.c
364 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_parasha.lo -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo" -c -o libhdate_la-hdate_parasha.lo `test -f 'hdate_parasha.c' || echo '$(srcdir)/'`hdate_parasha.c; \
365 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo" "$(DEPDIR)/libhdate_la-hdate_parasha.Plo"; else rm -f "$(DEPDIR)/libhdate_la-hdate_parasha.Tpo"; exit 1; fi
366 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_parasha.c' object='libhdate_la-hdate_parasha.lo' libtool=yes @AMDEPBACKSLASH@
367 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
368 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_parasha.lo `test -f 'hdate_parasha.c' || echo '$(srcdir)/'`hdate_parasha.c
369
370 libhdate_la-hdate_sun_time.lo: hdate_sun_time.c
371 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -MT libhdate_la-hdate_sun_time.lo -MD -MP -MF "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo" -c -o libhdate_la-hdate_sun_time.lo `test -f 'hdate_sun_time.c' || echo '$(srcdir)/'`hdate_sun_time.c; \
372 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo" "$(DEPDIR)/libhdate_la-hdate_sun_time.Plo"; else rm -f "$(DEPDIR)/libhdate_la-hdate_sun_time.Tpo"; exit 1; fi
373 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hdate_sun_time.c' object='libhdate_la-hdate_sun_time.lo' libtool=yes @AMDEPBACKSLASH@
374 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
375 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhdate_la_CFLAGS) $(CFLAGS) -c -o libhdate_la-hdate_sun_time.lo `test -f 'hdate_sun_time.c' || echo '$(srcdir)/'`hdate_sun_time.c
376
377 mostlyclean-libtool:
378 -rm -f *.lo
379
380 clean-libtool:
381 -rm -rf .libs _libs
382
383 distclean-libtool:
384 -rm -f libtool
385 uninstall-info-am:
386 install-includeHEADERS: $(include_HEADERS)
387 @$(NORMAL_INSTALL)
388 test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
389 @list='$(include_HEADERS)'; for p in $$list; do \
390 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
391 f=$(am__strip_dir) \
392 echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
393 $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
394 done
395
396 uninstall-includeHEADERS:
397 @$(NORMAL_UNINSTALL)
398 @list='$(include_HEADERS)'; for p in $$list; do \
399 f=$(am__strip_dir) \
400 echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
401 rm -f "$(DESTDIR)$(includedir)/$$f"; \
402 done
403
404 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
405 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
406 unique=`for i in $$list; do \
407 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
408 done | \
409 $(AWK) ' { files[$$0] = 1; } \
410 END { for (i in files) print i; }'`; \
411 mkid -fID $$unique
412 tags: TAGS
413
414 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
415 $(TAGS_FILES) $(LISP)
416 tags=; \
417 here=`pwd`; \
418 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
419 unique=`for i in $$list; do \
420 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
421 done | \
422 $(AWK) ' { files[$$0] = 1; } \
423 END { 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: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
431 $(TAGS_FILES) $(LISP)
432 tags=; \
433 here=`pwd`; \
434 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
435 unique=`for i in $$list; do \
436 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
437 done | \
438 $(AWK) ' { files[$$0] = 1; } \
439 END { for (i in files) print i; }'`; \
440 test -z "$(CTAGS_ARGS)$$tags$$unique" \
441 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
442 $$tags $$unique
443
444 GTAGS:
445 here=`$(am__cd) $(top_builddir) && pwd` \
446 && cd $(top_srcdir) \
447 && gtags -i $(GTAGS_ARGS) $$here
448
449 distclean-tags:
450 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
451
452 distdir: $(DISTFILES)
453 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
454 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
455 list='$(DISTFILES)'; for file in $$list; do \
456 case $$file in \
457 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
458 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
459 esac; \
460 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
461 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
462 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
463 dir="/$$dir"; \
464 $(mkdir_p) "$(distdir)$$dir"; \
465 else \
466 dir=''; \
467 fi; \
468 if test -d $$d/$$file; then \
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 check-am: all-am
480 check: check-am
481 all-am: Makefile $(LTLIBRARIES) $(HEADERS)
482 installdirs:
483 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
484 test -z "$$dir" || $(mkdir_p) "$$dir"; \
485 done
486 install: install-am
487 install-exec: install-exec-am
488 install-data: install-data-am
489 uninstall: uninstall-am
490
491 install-am: all-am
492 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
493
494 installcheck: installcheck-am
495 install-strip:
496 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
497 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
498 `test -z '$(STRIP)' || \
499 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
500 mostlyclean-generic:
501
502 clean-generic:
503
504 distclean-generic:
505 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
506
507 maintainer-clean-generic:
508 @echo "This command is intended for maintainers to use"
509 @echo "it deletes files that may require special tools to rebuild."
510 clean: clean-am
511
512 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
513 mostlyclean-am
514
515 distclean: distclean-am
516 -rm -rf ./$(DEPDIR)
517 -rm -f Makefile
518 distclean-am: clean-am distclean-compile distclean-generic \
519 distclean-libtool distclean-tags
520
521 dvi: dvi-am
522
523 dvi-am:
524
525 html: html-am
526
527 info: info-am
528
529 info-am:
530
531 install-data-am: install-includeHEADERS
532
533 install-exec-am: install-libLTLIBRARIES
534
535 install-info: install-info-am
536
537 install-man:
538
539 installcheck-am:
540
541 maintainer-clean: maintainer-clean-am
542 -rm -rf ./$(DEPDIR)
543 -rm -f Makefile
544 maintainer-clean-am: distclean-am maintainer-clean-generic
545
546 mostlyclean: mostlyclean-am
547
548 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
549 mostlyclean-libtool
550
551 pdf: pdf-am
552
553 pdf-am:
554
555 ps: ps-am
556
557 ps-am:
558
559 uninstall-am: uninstall-includeHEADERS uninstall-info-am \
560 uninstall-libLTLIBRARIES
561
562 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
563 clean-libLTLIBRARIES clean-libtool ctags distclean \
564 distclean-compile distclean-generic distclean-libtool \
565 distclean-tags distdir dvi dvi-am html html-am info info-am \
566 install install-am install-data install-data-am install-exec \
567 install-exec-am install-includeHEADERS install-info \
568 install-info-am install-libLTLIBRARIES install-man \
569 install-strip installcheck installcheck-am installdirs \
570 maintainer-clean maintainer-clean-generic mostlyclean \
571 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
572 pdf pdf-am ps ps-am tags uninstall uninstall-am \
573 uninstall-includeHEADERS uninstall-info-am \
574 uninstall-libLTLIBRARIES
575
576 # Tell versions [3.59,3.63) of GNU make to not export all variables.
577 # Otherwise a system limit (for SysV at least) may be exceeded.
578 .NOEXPORT:
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef __HDATE_H__
19 #define __HDATE_H__
20
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif
25
26 /** @def HDATE_DIASPORA_FLAG
27 @brief use diaspora dates and holydays flag
28 */
29 #define HDATE_DIASPORA_FLAG -1
30
31 /** @def HDATE_ISRAEL_FLAG
32 @brief use israel dates and holydays flag
33 */
34 #define HDATE_ISRAEL_FLAG 0
35
36 /** @def HDATE_SHORT_FLAG
37 @brief use short strings flag
38 */
39 #define HDATE_SHORT_FLAG -1
40
41 /** @def HDATE_LONG_FLAG
42 @brief use long strings flag
43 */
44 #define HDATE_LONG_FLAG 0
45
46 /** Base structore for hebrew dates
47
48 */
49 typedef struct
50 {
51 /** The number of day in the hebrew month (1..31). */
52 int hd_day;
53 /** The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2). */
54 int hd_mon;
55 /** The number of the hebrew year. */
56 int hd_year;
57 /** The number of the day in the month. (1..31) */
58 int gd_day;
59 /** The number of the month 1..12 (1 - jan). */
60 int gd_mon;
61 /** The number of the year. */
62 int gd_year;
63 /** The day of the week 1..7 (1 - sunday). */
64 int hd_dw;
65 /** The length of the year in days. */
66 int hd_size_of_year;
67 /** The week day of Hebrew new year. */
68 int hd_new_year_dw;
69 /** The number type of year. */
70 int hd_year_type;
71 /** The Julian day number */
72 int hd_jd;
73 /** The number of days passed since 1 tishrey */
74 int hd_days;
75 /** The number of weeks passed since 1 tishrey */
76 int hd_weeks;
77 } hdate_struct;
78
79 /*************************************************************/
80 /*************************************************************/
81
82 /**
83 @brief compute date structure from the Gregorian date
84
85 @param h pointer this hdate struct.
86 @param d Day of month 1..31
87 @param m Month 1..12
88 if m or d is 0 return current date.
89 @param y Year in 4 digits e.g. 2001
90 @return pointer to this hdate struct
91 */
92 hdate_struct *
93 hdate_set_gdate (hdate_struct *h, int d, int m, int y);
94
95 /**
96 @brief compute date structure from the Hebrew date
97
98 @param h pointer this hdate struct.
99 @param d Day of month 1..31
100 @param m Month 1..14 ,(13 - Adar 1, 14 - Adar 2)
101 if m or d is 0 return current date.
102 @param y Year in 4 digits e.g. 5731
103 @return pointer to this hdate struct
104 */
105 hdate_struct *
106 hdate_set_hdate (hdate_struct *h, int d, int m, int y);
107
108 /**
109 @brief compute date structure from the Julian day
110
111 @param h pointer this hdate struct.
112 @param jd the julian day number.
113 @return pointer to this hdate struct
114 */
115 hdate_struct *
116 hdate_set_jd (hdate_struct *h, int jd);
117
118 /*************************************************************/
119 /*************************************************************/
120
121 /**
122 @brief get formated hebrew date.
123
124 return the short ( e.g. "1 Tishrey" ) or
125 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
126
127 @param h pointer this hdate struct.
128 @param diaspora if true give diaspora holydays.
129 @param s short flag.
130 @return a static string of foramted date
131 */
132 char *
133 hdate_get_format_date (hdate_struct const * h, int diaspora, int s);
134
135 /**
136 @brief get the number of hebrew parasha.
137
138 @param h pointer this hdate struct.
139 @param diaspora if true give diaspora readings
140 @return the number of parasha 1. Bereshit etc..
141 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
142 */
143 int
144 hdate_get_parasha (hdate_struct const * h, int diaspora);
145
146 /**
147 @brief get the number of hebrew holyday.
148
149 @param h pointer this hdate struct.
150 @param diaspora if true give diaspora holydays
151 @return the number of holyday.
152 */
153 int
154 hdate_get_holyday (hdate_struct const * h, int diaspora);
155
156 /*************************************************************/
157 /*************************************************************/
158
159 /**
160 @brief convert an integer to hebrew string.
161
162 @param n The int to convert
163 @return a static string of the hebrew number UTF-8 (logical)
164 @attention ( 0 < n < 10000)
165 */
166 char *
167 hdate_get_int_string (int n);
168
169 /**
170 @brief get name of week day.
171
172 @param day The number of the day 1..7 (1 - sun).
173 @param s short flag
174 true - returns a short string: sun, false returns: sunday.
175 @return a static string of the day of the week
176 */
177 char *
178 hdate_get_day_string (int day, int s);
179
180 /**
181 @brief name of month.
182
183 @param month the number of the month 1..12 (1 - jan).
184 @param s short flag.
185 @return a static string of month name
186 */
187 char *
188 hdate_get_month_string (int month, int s);
189
190 /**
191 @brief name of hebrew month.
192
193 @param month the number of the month 1..14
194 (1 - tishre, 13 - adar 1, 14 - adar 2).
195 @param s short flag.
196 @return a static string of month name
197 */
198 char *
199 hdate_get_hebrew_month_string (int month, int s);
200
201 /**
202 @brief name of hebrew holyday.
203
204 @param holyday the holyday number.
205 @param s short flag.
206 @return a static string of holyday name
207 */
208 char *
209 hdate_get_holyday_string (int holyday, int s);
210
211 /**
212 @brief name of parasha
213
214 @param parasha the number of parasha 1-Bereshit
215 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
216 @param s short flag.
217 @return a static string of parasha name
218 */
219 char *
220 hdate_get_parasha_string (int parasha, int s);
221
222 /*************************************************************/
223 /*************************************************************/
224
225 /**
226 @brief get the hebrew holyday type.
227
228 @param holyday the holyday number.
229 @return the number of holyday type.
230 */
231 int
232 hdate_get_holyday_type (int holyday);
233
234 /**
235 @brief size of hebrew year in days.
236
237 @param hebrew_year the hebrew year.
238 @return size of Hebrew year
239 */
240 int
241 hdate_get_size_of_hebrew_year (int hebrew_year);
242
243 /*************************************************************/
244 /*************************************************************/
245
246 /**
247 @brief Days since Tishrey 3744
248
249 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
250
251 @param hebrew_year The Hebrew year
252 @return Number of days since 3,1,3744
253 */
254 int
255 hdate_days_from_3744 (int hebrew_year);
256
257 /**
258 @brief Return Hebrew year type based on size and first week day of year.
259
260 @param size_of_year Length of year in days
261 @param new_year_dw First week day of year
262 @return the number for year type (1..14)
263 */
264 int
265 hdate_get_year_type (int size_of_year, int new_year_dw);
266
267 /**
268 @brief Compute Julian day from Gregorian date
269
270 @author Yaacov Zamir (algorithm from Henry F. Fliegel and Thomas C. Van Flandern ,1968)
271
272 @param day Day of month 1..31
273 @param month Month 1..12
274 @param year Year in 4 digits e.g. 2001
275 @return the julian day number
276 */
277 int
278 hdate_gdate_to_jd (int day, int month, int year);
279
280 /**
281 @brief Compute Julian day from Hebrew day, month and year
282
283 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
284
285 @param day Day of month 1..31
286 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
287 @param year Hebrew year in 4 digits e.g. 5753
288 @param jd_tishrey1 return the julian number of 1 Tishrey this year
289 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
290 @return the julian day number
291 */
292 int
293 hdate_hdate_to_jd (int day, int month, int year, int *jd_tishrey1, int *jd_tishrey1_next_year);
294
295 /**
296 @brief Converting from the Julian day to the Gregorian date
297
298 @author Yaacov Zamir (Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
299
300 @param jd Julian day
301 @param day return Day of month 1..31
302 @param month return Month 1..12
303 @param year return Year in 4 digits e.g. 2001
304 */
305 void
306 hdate_jd_to_gdate (int jd, int *day, int *month, int *year);
307
308 /**
309 @brief Converting from the Julian day to the Hebrew day
310
311 @author Yaacov Zamir 2005
312
313 @param jd Julian day
314 @param day return Day of month 1..31
315 @param month return Month 1..14 (13 - Adar 1, 14 - Adar 2)
316 @param year return Year in 4 digits e.g. 2001
317 @param jd_tishrey1 return the julian number of 1 Tishrey this year
318 @param jd_tishrey1_next_year return the julian number of 1 Tishrey next year
319 */
320 void
321 hdate_jd_to_hdate (int jd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year);
322
323 /*************************************************************/
324 /*************************************************************/
325
326 /**
327 @brief days from 1 january
328
329 @param day this day of month
330 @param month this month
331 @param year this year
332 @return the days from 1 jan
333 */
334 int
335 hdate_get_day_of_year (int day, int month, int year);
336
337 /**
338 @brief utc sun times for altitude at a gregorian date
339
340 @parm day this day of month
341 @parm month this month
342 @parm year this year
343 @parm longitude longitude to use in calculations
344 @parm latitude latitude to use in calculations
345 @parm deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon)
346 @parm sunrise return the utc sunrise in minutes
347 @parm sunset return the utc sunset in minutes
348 */
349 void
350 hdate_get_utc_sun_time_deg (int day, int month, int year,
351 double latitude, double longitude, double deg, int *sunrise, int *sunset);
352
353 /**
354 @brief utc sunrise/set time for a gregorian date
355
356 @param day this day of month
357 @param month this month
358 @param year this year
359 @param longitude longitude to use in calculations
360 degrees, negative values are east
361 @param latitude latitude to use in calculations
362 degrees, negative values are south
363 @param sunrise return the utc sunrise in minutes after midnight (00:00)
364 @param sunset return the utc sunset in minutes after midnight (00:00)
365 */
366 void
367 hdate_get_utc_sun_time (int day, int month, int year,
368 double latitude, double longitude, int *sunrise, int *sunset);
369
370 /**
371 @brief utc sunrise/set time for a gregorian date
372
373 @parm day this day of month
374 @parm month this month
375 @parm year this year
376 @parm longitude longitude to use in calculations
377 @parm latitude latitude to use in calculations
378 @parm sun_hour return the length of shaa zaminit in minutes
379 @parm first_light return the utc alut ha-shachar in minutes
380 @parm talit return the utc tphilin and talit in minutes
381 @parm sunrise return the utc sunrise in minutes
382 @parm midday return the utc midday in minutes
383 @parm sunset return the utc sunset in minutes
384 @parm first_stars return the utc tzeit hacochavim in minutes
385 @parm three_stars return the utc shlosha cochavim in minutes
386 */
387 void
388 hdate_get_utc_sun_time_full (int day, int month, int year, double latitude, double longitude,
389 int *sun_hour, int *first_light, int *talit, int *sunrise,
390 int *midday, int *sunset, int *first_stars, int *three_stars);
391
392 /*************************************************************/
393 /*************************************************************/
394
395 /**
396 @brief get the Gregorian day of the month
397
398 @param h pointer this hdate struct.
399 @return the Gregorian day of the month, 1..31.
400 */
401 int
402 hdate_get_gday (hdate_struct const * h);
403
404 /**
405 @brief get the Gregorian month
406
407 @param h pointer this hdate struct.
408 @return the Gregorian month, jan = 1.
409 */
410 int
411 hdate_get_gmonth (hdate_struct const * h);
412
413 /**
414 @brief get the Gregorian year
415
416 @param h pointer this hdate struct.
417 @return the Gregorian year.
418 */
419 int
420 hdate_get_gyear (hdate_struct const * h);
421
422 /**
423 @brief get the Hebrew day of the month
424
425 @param h pointer this hdate struct.
426 @return the Hebrew day of the month, 1..30.
427 */
428 int
429 hdate_get_hday (hdate_struct const * h);
430
431 /**
432 @brief get the Hebrew month
433
434 @param h pointer this hdate struct.
435 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
436 */
437 int
438 hdate_get_hmonth (hdate_struct const * h);
439
440 /**
441 @brief get the Hebrew year
442
443 @param h pointer this hdate struct.
444 @return the Hebrew year.
445 */
446 int
447 hdate_get_hyear (hdate_struct const * h);
448
449 /**
450 @brief get the day of the week
451
452 @param h pointer this hdate struct.
453 @return the the day of the week.
454 */
455 int
456 hdate_get_day_of_the_week (hdate_struct const * h);
457
458 /**
459 @brief get the size of the hebrew year
460
461 @param h pointer this hdate struct.
462 @return the the size of the hebrew year.
463 */
464 int
465 hdate_get_size_of_year (hdate_struct const * h);
466
467 /**
468 @brief get the new year day of the week
469
470 @param h pointer this hdate struct.
471 @return the the new year day of the week.
472 */
473 int
474 hdate_get_new_year_day_of_the_week (hdate_struct const * h);
475
476 /**
477 @brief get the Julian day number
478
479 @param h pointer this hdate struct.
480 @return the Julian day number.
481 */
482 int
483 hdate_get_julian (hdate_struct const * h);
484
485 /**
486 @brief get the number of days passed since 1 tishrey
487
488 @param h pointer this hdate struct.
489 @return the number of days passed since 1 tishrey.
490 */
491 int
492 hdate_get_days (hdate_struct const * h);
493
494 /**
495 @brief get the number of weeks passed since 1 tishrey
496
497 @param h pointer this hdate struct.
498 @return the number of weeks passed since 1 tishrey.
499 */
500 int
501 hdate_get_weeks (hdate_struct const * h);
502
503 /*************************************************************/
504 /*************************************************************/
505
506 /**
507 @brief creat a new hdate struct object, must be deleted using delete_hdate.
508
509 @return a new hdate object
510 */
511 hdate_struct *
512 new_hdate ();
513
514 /**
515 @brief delete an hdate struct object.
516
517 @param h pointer this hdate struct.
518 */
519 hdate_struct *
520 delete_hdate (hdate_struct *h);
521
522 /*************************************************************/
523 /*************************************************************/
524
525 /**
526 @brief Return a static string, with the package name and version
527
528 @return a static string, with the package name and version
529 */
530 char *
531 hdate_get_version_string ();
532
533 /**
534 @brief name of translator
535
536 @return a static string with name of translator, or NULL if none.
537 */
538 char *
539 hdate_get_translator_string ();
540
541 #ifdef __cplusplus
542 }
543 #endif
544
545 #endif
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2008 Yaacov Zamir <kzamir@walla.co.il>
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 3 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include "hdate.h"
19 #include "support.h"
20
21 /**
22 @brief Return number of hebrew holyday.
23
24 @param h The hdate_struct of the date to use.
25 @param diaspora if True give diaspora holydays
26 @return the number of holyday.
27 */
28 int
29 hdate_get_holyday (hdate_struct const * h, int diaspora)
30 {
31 int holyday;
32
33 /* holydays table */
34 static int holydays_table[14][30] =
35 {
36 { /* Tishrey */
37 1, 2, 3, 3, 0, 0, 0, 0, 0, 4,
38 0, 0, 0, 0, 5, 31, 6, 6, 6, 6,
39 7, 27, 8, 0, 0, 0, 0, 0, 0, 0},
40 { /* Heshvan */
41 0, 0, 0, 0, 0, 0, 0, 0, 0, 35,
42 35, 35, 0, 0, 0, 0, 0, 0, 0, 0,
43 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
44 { /* Kislev */
45 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
46 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
47 0, 0, 0, 0, 9, 9, 9, 9, 9, 9},
48 { /* Tevet */
49 9, 9, 9, 0, 0, 0, 0, 0, 0, 10,
50 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
51 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
52 { /* Shvat */
53 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
54 0, 0, 0, 0, 11, 0, 0, 0, 0, 0,
55 0, 0, 0, 0, 0, 0, 0, 0, 0, 33},
56 { /* Adar */
57 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
58 12, 0, 12, 13, 14, 0, 0, 0, 0, 0,
59 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
60 { /* Nisan */
61 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
62 0, 0, 0, 0, 15, 32, 16, 16, 16, 16,
63 28, 29, 0, 0, 0, 24, 24, 24, 0, 0},
64 { /* Iyar */
65 0, 17, 17, 17, 17, 17, 0, 0, 0, 0,
66 0, 0, 0, 0, 0, 0, 0, 18, 0, 0,
67 0, 0, 0, 0, 0, 0, 0, 26, 0, 0},
68 { /* Sivan */
69 0, 0, 0, 0, 19, 20, 30, 0, 0, 0,
70 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
71 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
72 { /* Tamuz */
73 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
74 0, 0, 0, 0, 0, 0, 21, 21, 0, 0,
75 0, 0, 0, 0, 0, 0, 0, 0, 36, 36},
76 { /* Av */
77 0, 0, 0, 0, 0, 0, 0, 0, 22, 22,
78 0, 0, 0, 0, 23, 0, 0, 0, 0, 0,
79 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
80 { /* Elul */
81 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
82 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
83 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
84 { /* Adar 1 */
85 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
86 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
87 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
88 { /* Adar 2 */
89 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
90 12, 0, 12, 13, 14, 0, 0, 0, 0, 0,
91 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
92 };
93
94 /* sanity check */
95 if (h->hd_mon < 1 || h->hd_mon > 14 || h->hd_day < 1 || h->hd_day > 31)
96 return 0;
97
98 holyday = holydays_table[h->hd_mon - 1][h->hd_day - 1];
99
100 /* if tzom on sat delay one day */
101 /* yom cipur on sat */
102 if ((holyday == 3) && (h->hd_dw == 7 || (h->hd_day == 4 && h->hd_dw !=1)))
103 holyday = 0;
104 /* 17 of Tanuz on sat */
105 if ((holyday == 21) && ((h->hd_dw == 7) || (h->hd_day == 18 && h->hd_dw != 1)))
106 holyday = 0;
107 /* 9 of Av on sat */
108 if ((holyday == 22) && ((h->hd_dw == 7) || (h->hd_day == 10 && h->hd_dw != 1)))
109 holyday = 0;
110
111 /* Hanukah in a long year */
112 if ((holyday == 9) && (h->hd_size_of_year % 10 != 3) && (h->hd_day == 3))
113 holyday = 0;
114
115 /* if tanit ester on sat mov to Thu */
116 if ((holyday == 12) && ((h->hd_dw == 7) || (h->hd_day == 11 && h->hd_dw != 5)))
117 holyday = 0;
118
119 /* yom yerushalym after 68 */
120 if (holyday == 26)
121 {
122 if (h->gd_year < 1968)
123 holyday = 0;
124 }
125
126 /* yom ha azmaot and yom ha zicaron */
127 if (holyday == 17)
128 {
129 if (h->gd_year < 1948)
130 holyday = 0;
131 else if (h->gd_year < 2004)
132 {
133 if ((h->hd_day == 3) && (h->hd_dw == 5))
134 holyday = 17;
135 else if ((h->hd_day == 4) && (h->hd_dw == 5))
136 holyday = 17;
137 else if ((h->hd_day == 5) && (h->hd_dw != 6 && h->hd_dw != 7))
138 holyday = 17;
139 else if ((h->hd_day == 2) && (h->hd_dw == 4))
140 holyday = 25;
141 else if ((h->hd_day == 3) && (h->hd_dw == 4))
142 holyday = 25;
143 else if ((h->hd_day == 4) && (h->hd_dw != 5 && h->hd_dw != 6))
144 holyday = 25;
145 else
146 holyday = 0;
147 }
148 else
149 {
150 if ((h->hd_day == 3) && (h->hd_dw == 5))
151 holyday = 17;
152 else if ((h->hd_day == 4) && (h->hd_dw == 5))
153 holyday = 17;
154 else if ((h->hd_day == 6) && (h->hd_dw == 3))
155 holyday = 17;
156 else if ((h->hd_day == 5) && (h->hd_dw != 6 && h->hd_dw != 7 && h->hd_dw != 2))
157 holyday = 17;
158 else if ((h->hd_day == 2) && (h->hd_dw == 4))
159 holyday = 25;
160 else if ((h->hd_day == 3) && (h->hd_dw == 4))
161 holyday = 25;
162 else if ((h->hd_day == 5) && (h->hd_dw == 2))
163 holyday = 25;
164 else if ((h->hd_day == 4) && (h->hd_dw != 5 && h->hd_dw != 6 && h->hd_dw != 1))
165 holyday = 25;
166 else
167 holyday = 0;
168 }
169 }
170
171 /* yom ha shoaa, on years after 1958 */
172 if (holyday == 24)
173 {
174 if (h->gd_year < 1958)
175 holyday = 0;
176 else
177 {
178 if ((h->hd_day == 26) && (h->hd_dw != 5))
179 holyday = 0;
180 if ((h->hd_day == 28) && (h->hd_dw != 2))
181 holyday = 0;
182 if ((h->hd_day == 27) && (h->hd_dw == 6 || h->hd_dw == 1))
183 holyday = 0;
184 }
185 }
186
187 /* Rabin day, on years after 1997 */
188 if (holyday == 35)
189 {
190 if (h->gd_year < 1997)
191 holyday = 0;
192 else
193 {
194 if ((h->hd_day == 10 || h->hd_day == 11) && (h->hd_dw != 5))
195 holyday = 0;
196 if ((h->hd_day == 12) && (h->hd_dw == 6 || h->hd_dw == 7))
197 holyday = 0;
198 }
199 }
200
201 /* Zhabotinsky day, on years after 2005 */
202 if (holyday == 36)
203 {
204 if (h->gd_year < 2005)
205 holyday = 0;
206 else
207 {
208 if ((h->hd_day == 30) && (h->hd_dw != 1))
209 holyday = 0;
210 if ((h->hd_day == 29) && (h->hd_dw == 7))
211 holyday = 0;
212 }
213 }
214
215 /* diaspora holidays */
216
217 /* simchat tora only in diaspora in israel just one day shmini+simchat tora */
218 if (holyday == 8 && !diaspora)
219 holyday = 0;
220
221 /* sukkot II holiday only in diaspora */
222 if (holyday == 31 && !diaspora)
223 holyday = 6;
224
225 /* pesach II holiday only in diaspora */
226 if (holyday == 32 && !diaspora)
227 holyday = 16;
228
229 /* shavot II holiday only in diaspora */
230 if (holyday == 30 && !diaspora)
231 holyday = 0;
232
233 /* pesach VIII holiday only in diaspora */
234 if (holyday == 29 && !diaspora)
235 holyday = 0;
236
237 return holyday;
238 }
239
240 /**
241 @brief Return number of hebrew holyday type.
242
243 @param holyday the holyday number
244 @return the number of holyday type.
245 */
246 int
247 hdate_get_holyday_type (int holyday)
248 {
249 int holyday_type;
250
251 switch (holyday)
252 {
253 case 0: /* regular day */
254 holyday_type = 0;
255 break;
256 case 5:
257 case 15:
258 case 20: /* 3 regels */
259 holyday_type = 2;
260 break;
261 case 3:
262 case 4:
263 case 10:
264 case 12:
265 case 21:
266 case 22: /* tzom */
267 holyday_type = 3;
268 break;
269 default: /* regular holyday */
270 holyday_type = 1;
271 break;
272 }
273
274 return holyday_type;
275 }
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include <time.h>
19 #include <stdio.h>
20 #include <stdlib.h>
21
22 #include "hdate.h"
23 #include "support.h"
24
25 #define HOUR 1080
26 #define DAY (24*HOUR)
27 #define WEEK (7*DAY)
28 #define M(h,p) ((h)*HOUR+p)
29 #define MONTH (DAY+M(12,793)) /* Tikun for regular month */
30
31 /**
32 @brief Days since bet (?) Tishrey 3744
33
34 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
35
36 @param hebrew_year The Hebrew year
37 @return Number of days since 3,1,3744
38 */
39 int
40 hdate_days_from_3744 (int hebrew_year)
41 {
42 int years_from_3744;
43 int molad_3744;
44 int leap_months;
45 int leap_left;
46 int months;
47 int parts;
48 int days;
49 int parts_left_in_week;
50 int parts_left_in_day;
51 int week_day;
52
53 /* Start point for calculation is Molad new year 3744 (16BC) */
54 years_from_3744 = hebrew_year - 3744;
55 molad_3744 = M (1 + 6, 779); /* Molad 3744 + 6 hours in parts */
56
57 /* Time in months */
58 leap_months = (years_from_3744 * 7 + 1) / 19; /* Number of leap months */
59 leap_left = (years_from_3744 * 7 + 1) % 19; /* Months left of leap cycle */
60 months = years_from_3744 * 12 + leap_months; /* Total Number of months */
61
62 /* Time in parts and days */
63 parts = months * MONTH + molad_3744; /* Molad This year + Molad 3744 - corections */
64 days = months * 28 + parts / DAY - 2; /* 28 days in month + corections */
65
66 /* Time left for round date in corections */
67 parts_left_in_week = parts % WEEK; /* 28 % 7 = 0 so only corections counts */
68 parts_left_in_day = parts % DAY;
69 week_day = parts_left_in_week / DAY;
70
71 /* Special cases of Molad Zaken */
72 if ((leap_left < 12 && week_day == 3
73 && parts_left_in_day >= M (9 + 6, 204)) ||
74 (leap_left < 7 && week_day == 2
75 && parts_left_in_day >= M (15 + 6, 589)))
76 {
77 days++, week_day++;
78 }
79
80 /* ADU */
81 if (week_day == 1 || week_day == 4 || week_day == 6)
82 {
83 days++;
84 }
85
86 return days;
87 }
88
89 /**
90 @brief Size of Hebrew year in days
91
92 @param hebrew_year The Hebrew year
93 @return Size of Hebrew year
94 */
95 int
96 hdate_get_size_of_hebrew_year (int hebrew_year)
97 {
98 return hdate_days_from_3744 (hebrew_year + 1) -
99 hdate_days_from_3744 (hebrew_year);
100 }
101
102 /**
103 @brief Return Hebrew year type based on size and first week day of year.
104
105 year type | year length | Tishery 1 day of week
106 | 1 | 353 | 2
107 | 2 | 353 | 7
108 | 3 | 354 | 3
109 | 4 | 354 | 5
110 | 5 | 355 | 2
111 | 6 | 355 | 5
112 | 7 | 355 | 7
113 | 8 | 383 | 2
114 | 9 | 383 | 5
115 |10 | 383 | 7
116 |11 | 384 | 3
117 |12 | 385 | 2
118 |13 | 385 | 5
119 |14 | 385 | 7
120
121 @param size_of_year Length of year in days
122 @param new_year_dw First week day of year
123 @return A number for year type (1..14)
124 */
125 int
126 hdate_get_year_type (int size_of_year, int new_year_dw)
127 {
128 /* Only 14 combinations of size and week day are posible */
129 static int year_types[24] =
130 {1, 0, 0, 2, 0, 3, 4, 0, 5, 0, 6, 7,
131 8, 0, 9, 10, 0, 11, 0, 0, 12, 0, 13, 14};
132
133 int offset;
134
135 /* convert size and first day to 1..24 number */
136 /* 2,3,5,7 -> 1,2,3,4 */
137 /* 353, 354, 355, 383, 384, 385 -> 0, 1, 2, 3, 4, 5 */
138 offset = (new_year_dw + 1) / 2;
139 offset = offset + 4 * ((size_of_year % 10 - 3) + (size_of_year / 10 - 35));
140
141 /* some combinations are imposible */
142 return year_types[offset - 1];
143 }
144
145 /**
146 @brief Compute Julian day from Gregorian day, month and year
147 Algorithm from the wikipedia's julian_day
148
149 @author Yaacov Zamir
150
151 @param day Day of month 1..31
152 @param month Month 1..12
153 @param year Year in 4 digits e.g. 2001
154 @return The julian day number
155 */
156 int
157 hdate_gdate_to_jd (int day, int month, int year)
158 {
159 int a;
160 int y;
161 int m;
162 int jdn;
163
164 a = (14 - month) / 12;
165 y = year + 4800 - a;
166 m = month + 12 * a - 3;
167
168 jdn = day + (153 * m + 2) / 5 + 365 * y + y / 4 - y / 100 + y / 400 - 32045;
169
170 return jdn;
171 }
172
173 /**
174 @brief Compute Julian day from Hebrew day, month and year
175
176 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2005
177
178 @param day Day of month 1..31
179 @param month Month 1..14 (13 - Adar 1, 14 - Adar 2)
180 @param year Hebrew year in 4 digits e.g. 5753
181 @return The julian day number
182 */
183 int
184 hdate_hdate_to_jd (int day, int month, int year, int *jd_tishrey1, int *jd_tishrey1_next_year)
185 {
186 int length_of_year;
187 int jd;
188 int days_from_3744;
189
190 /* Adjust for leap year */
191 if (month == 13)
192 {
193 month = 6;
194 }
195 if (month == 14)
196 {
197 month = 6;
198 day += 30;
199 }
200
201 /* Calculate days since 1,1,3744 */
202 days_from_3744 = hdate_days_from_3744 (year);
203 day = days_from_3744 + (59 * (month - 1) + 1) / 2 + day;
204
205 /* length of year */
206 length_of_year = hdate_days_from_3744 (year + 1) - days_from_3744;
207
208 /* Special cases for this year */
209 if (length_of_year % 10 > 4 && month > 2) /* long Heshvan */
210 day++;
211 if (length_of_year % 10 < 4 && month > 3) /* short Kislev */
212 day--;
213 if (length_of_year > 365 && month > 6) /* leap year */
214 day += 30;
215
216 /* adjust to julian */
217 jd = day + 1715118;
218
219 /* return the 1 of tishrey julians */
220 if (jd_tishrey1 && jd_tishrey1_next_year)
221 {
222 *jd_tishrey1 = days_from_3744 + 1715119;
223 *jd_tishrey1_next_year = *jd_tishrey1 + length_of_year;
224 }
225
226 return jd;
227 }
228
229 /**
230 @brief Converting from the Julian day to the Gregorian day
231 Algorithm from 'Julian and Gregorian Day Numbers' by Peter Meyer
232
233 @author Yaacov Zamir ( Algorithm, Henry F. Fliegel and Thomas C. Van Flandern ,1968)
234
235 @param jd Julian day
236 @param d Return Day of month 1..31
237 @param m Return Month 1..12
238 @param y Return Year in 4 digits e.g. 2001
239 */
240 void
241 hdate_jd_to_gdate (int jd, int *d, int *m, int *y)
242 {
243 int l, n, i, j;
244 l = jd + 68569;
245 n = (4 * l) / 146097;
246 l = l - (146097 * n + 3) / 4;
247 i = (4000 * (l + 1)) / 1461001; /* that's 1,461,001 */
248 l = l - (1461 * i) / 4 + 31;
249 j = (80 * l) / 2447;
250 *d = l - (2447 * j) / 80;
251 l = j / 11;
252 *m = j + 2 - (12 * l);
253 *y = 100 * (n - 49) + i + l; /* that's a lower-case L */
254
255 return;
256 }
257
258 /**
259 @brief Converting from the Julian day to the Hebrew day
260
261 @author Amos Shapir 1984 (rev. 1985, 1992) Yaacov Zamir 2003-2008
262
263 @param jd Julian day
264 @param day Return Day of month 1..31
265 @param month Return Month 1..14 (13 - Adar 1, 14 - Adar 2)
266 @param year Return Year in 4 digits e.g. 2001
267 */
268 void
269 hdate_jd_to_hdate (int jd, int *day, int *month, int *year, int *jd_tishrey1, int *jd_tishrey1_next_year)
270 {
271 int days;
272 int size_of_year;
273 int internal_jd_tishrey1, internal_jd_tishrey1_next_year;
274
275 /* calculate Gregorian date */
276 hdate_jd_to_gdate (jd, day, month, year);
277
278 /* Guess Hebrew year is Gregorian year + 3760 */
279 *year = *year + 3760;
280
281 internal_jd_tishrey1 = hdate_days_from_3744 (*year) + 1715119;
282 internal_jd_tishrey1_next_year = hdate_days_from_3744 (*year + 1) + 1715119;
283
284 /* Check if computed year was underestimated */
285 if (internal_jd_tishrey1_next_year <= jd)
286 {
287 *year = *year + 1;
288 internal_jd_tishrey1 = internal_jd_tishrey1_next_year;
289 internal_jd_tishrey1_next_year = hdate_days_from_3744 (*year + 1) + 1715119;
290 }
291
292 size_of_year = internal_jd_tishrey1_next_year - internal_jd_tishrey1;
293
294 /* days into this year, first month 0..29 */
295 days = jd - internal_jd_tishrey1;
296
297 /* last 8 months allways have 236 days */
298 if (days >= (size_of_year - 236)) /* in last 8 months */
299 {
300 days = days - (size_of_year - 236);
301 *month = days * 2 / 59;
302 *day = days - (*month * 59 + 1) / 2 + 1;
303
304 *month = *month + 4 + 1;
305
306 /* if leap */
307 if (size_of_year > 355 && *month <=6)
308 *month = *month + 8;
309 }
310 else /* in 4-5 first months */
311 {
312 /* Special cases for this year */
313 if (size_of_year % 10 > 4 && days == 59) /* long Heshvan (day 30 of Heshvan) */
314 {
315 *month = 1;
316 *day = 30;
317 }
318 else if (size_of_year % 10 > 4 && days > 59) /* long Heshvan */
319 {
320 *month = (days - 1) * 2 / 59;
321 *day = days - (*month * 59 + 1) / 2;
322 }
323 else if (size_of_year % 10 < 4 && days > 87) /* short kislev */
324 {
325 *month = (days + 1) * 2 / 59;
326 *day = days - (*month * 59 + 1) / 2 + 2;
327 }
328 else /* regular months */
329 {
330 *month = days * 2 / 59;
331 *day = days - (*month * 59 + 1) / 2 + 1;
332 }
333
334 *month = *month + 1;
335 }
336
337 /* return the 1 of tishrey julians */
338 if (jd_tishrey1 && jd_tishrey1_next_year)
339 {
340 *jd_tishrey1 = internal_jd_tishrey1;
341 *jd_tishrey1_next_year = internal_jd_tishrey1_next_year;
342 }
343
344 return;
345 }
346
347 /********************************************************************************/
348 /********************************************************************************/
349
350 /**
351 @brief compute date structure from the Gregorian date
352
353 @param d Day of month 1..31
354 @param m Month 1..12 , if m or d is 0 return current date.
355 @param y Year in 4 digits e.g. 2001
356 */
357 hdate_struct *
358 hdate_set_gdate (hdate_struct * h, int d, int m, int y)
359 {
360 int jd;
361 int jd_tishrey1, jd_tishrey1_next_year;
362
363 if (!h) return NULL;
364
365 /* check for null dates (kobi) */
366 if ((d == 0) || (m == 0))
367 {
368 struct tm *tm;
369 long t;
370 /* FIXME: day start at 6:00 or 12:00 like in Gregorian cal. ? */
371 t = time (0);
372 tm = localtime (&t);
373 d = tm->tm_mday;
374 m = tm->tm_mon + 1;
375 y = tm->tm_year + 1900;
376 }
377
378 h->gd_day = d;
379 h->gd_mon = m;
380 h->gd_year = y;
381
382 jd = hdate_gdate_to_jd (d, m, y);
383 hdate_jd_to_hdate (jd, &(h->hd_day), &(h->hd_mon), &(h->hd_year), &jd_tishrey1, &jd_tishrey1_next_year);
384
385 h->hd_dw = (jd + 1) % 7 + 1;
386 h->hd_size_of_year = jd_tishrey1_next_year - jd_tishrey1;
387 h->hd_new_year_dw = (jd_tishrey1 + 1) % 7 + 1;
388 h->hd_year_type = hdate_get_year_type (h->hd_size_of_year , h->hd_new_year_dw);
389 h->hd_jd = jd;
390 h->hd_days = jd - jd_tishrey1 + 1;
391 h->hd_weeks = ((h->hd_days - 1) + (h->hd_new_year_dw - 1)) / 7 + 1;
392
393 return (h);
394 }
395
396 /**
397 @brief compute date structure from the Hebrew date
398
399 @param d Day of month 1..31
400 @param m Month 1..14 , if m or d is 0 return current date.
401 @param y Year in 4 digits e.g. 5731
402 */
403 hdate_struct *
404 hdate_set_hdate (hdate_struct * h, int d, int m, int y)
405 {
406 int jd;
407 int jd_tishrey1, jd_tishrey1_next_year;
408
409 if (!h) return NULL;
410
411 h->hd_day = d;
412 h->hd_mon = m;
413 h->hd_year = y;
414
415 jd = hdate_hdate_to_jd (d, m, y, &jd_tishrey1, &jd_tishrey1_next_year);
416 hdate_jd_to_gdate (jd, &(h->gd_day), &(h->gd_mon), &(h->gd_year));
417
418 h->hd_dw = (jd + 1) % 7 + 1;
419 h->hd_size_of_year = jd_tishrey1_next_year - jd_tishrey1;
420 h->hd_new_year_dw = (jd_tishrey1 + 1) % 7 + 1;
421 h->hd_year_type = hdate_get_year_type (h->hd_size_of_year , h->hd_new_year_dw);
422 h->hd_jd = jd;
423 h->hd_days = jd - jd_tishrey1 + 1;
424 h->hd_weeks = ((h->hd_days - 1) + (h->hd_new_year_dw - 1)) / 7 + 1;
425
426 return (h);
427 }
428
429 /**
430 @brief compute date structure from julian day
431
432 @param jd the julian day number.
433 */
434 hdate_struct *
435 hdate_set_jd (hdate_struct * h, int jd)
436 {
437 int jd_tishrey1, jd_tishrey1_next_year;
438
439 if (!h) return NULL;
440
441 hdate_jd_to_gdate (jd, &(h->gd_day), &(h->gd_mon), &(h->gd_year));
442 hdate_jd_to_hdate (jd, &(h->hd_day), &(h->hd_mon), &(h->hd_year), &jd_tishrey1, &jd_tishrey1_next_year);
443
444 h->hd_dw = (jd + 1) % 7 + 1;
445 h->hd_size_of_year = jd_tishrey1_next_year - jd_tishrey1;
446 h->hd_new_year_dw = (jd_tishrey1 + 1) % 7 + 1;
447 h->hd_year_type = hdate_get_year_type (h->hd_size_of_year , h->hd_new_year_dw);
448 h->hd_jd = jd;
449 h->hd_days = jd - jd_tishrey1 + 1;
450 h->hd_weeks = ((h->hd_days - 1) + (h->hd_new_year_dw - 1)) / 7 + 1;
451
452 return (h);
453 }
454
455 /********************************************************************************/
456 /********************************************************************************/
457
458 /**
459 @brief get the Gregorian day of the month
460
461 @param h pointer this hdate struct.
462 @return the Gregorian day of the month, 1..31.
463 */
464 int
465 hdate_get_gday (hdate_struct const * h)
466 {
467 return h->gd_day;
468 }
469
470 /**
471 @brief get the Gregorian month
472
473 @param h pointer this hdate struct.
474 @return the Gregorian month, jan = 1.
475 */
476 int
477 hdate_get_gmonth (hdate_struct const * h)
478 {
479 return h->gd_mon;
480 }
481
482 /**
483 @brief get the Gregorian year
484
485 @param h pointer this hdate struct.
486 @return the Gregorian year.
487 */
488 int
489 hdate_get_gyear (hdate_struct const * h)
490 {
491 return h->gd_year;
492 }
493
494 /**
495 @brief get the Hebrew day of the month
496
497 @param h pointer this hdate struct.
498 @return the Hebrew day of the month, 1..30.
499 */
500 int
501 hdate_get_hday (hdate_struct const * h)
502 {
503 return h->hd_day;
504 }
505
506 /**
507 @brief get the Hebrew month
508
509 @param h pointer this hdate struct.
510 @return the Hebrew month, Tishery = 1 .. Adar I =13, Adar II = 14.
511 */
512 int
513 hdate_get_hmonth (hdate_struct const * h)
514 {
515 return h->hd_mon;
516 }
517
518 /**
519 @brief get the Hebrew year
520
521 @param h pointer this hdate struct.
522 @return the Hebrew year.
523 */
524 int
525 hdate_get_hyear (hdate_struct const * h)
526 {
527 return h->hd_year;
528 }
529
530 /**
531 @brief get the day of the week
532
533 @param h pointer this hdate struct.
534 @return the the day of the week.
535 */
536 int
537 hdate_get_day_of_the_week (hdate_struct const * h)
538 {
539 return h->hd_dw;
540 }
541
542 /**
543 @brief get the size of the hebrew year
544
545 @param h pointer this hdate struct.
546 @return the the size of the hebrew year.
547 */
548 int
549 hdate_get_size_of_year (hdate_struct const * h)
550 {
551 return h->hd_size_of_year;
552 }
553
554 /**
555 @brief get the new year day of the week
556
557 @param h pointer this hdate struct.
558 @return the the new year day of the week.
559 */
560 int
561 hdate_get_new_year_day_of_the_week (hdate_struct const * h)
562 {
563 return h->hd_new_year_dw;
564 }
565
566 /**
567 @brief get the Julian day number
568
569 @param h pointer this hdate struct.
570 @return the Julian day number.
571 */
572 int
573 hdate_get_julian (hdate_struct const * h)
574 {
575 return h->hd_jd;
576 }
577
578 /**
579 @brief get the number of days passed since 1 tishrey
580
581 @param h pointer this hdate struct.
582 @return the number of days passed since 1 tishrey.
583 */
584 int
585 hdate_get_days (hdate_struct const * h)
586 {
587 return h->hd_days;
588 }
589
590 /**
591 @brief get the number of weeks passed since 1 tishrey
592
593 @param h pointer this hdate struct.
594 @return the number of weeks passed since 1 tishrey.
595 */
596 int
597 hdate_get_weeks (hdate_struct const * h)
598 {
599 return h->hd_weeks;
600 }
601
602 /********************************************************************************/
603 /********************************************************************************/
604
605 /**
606 @brief creat a new hdate struct object, must be deleted using delete_hdate.
607
608 @return a new hdate object
609 */
610 hdate_struct *
611 new_hdate ()
612 {
613 /* allocate memory for a new hdate object */
614 hdate_struct *h = (hdate_struct *) malloc (sizeof (hdate_struct));
615
616 /* check for out of memory */
617 if (!h)
618 return NULL;
619
620 /* get todays date */
621 hdate_set_gdate (h, 0, 0, 0);
622
623 return h;
624 }
625
626 /**
627 @brief delete an hdate struct object.
628
629 @param h pointer this hdate struct.
630 */
631 hdate_struct *
632 delete_hdate (hdate_struct *h)
633 {
634 /* if h exist delete it */
635 if (h)
636 {
637 free (h);
638 h = NULL;
639 }
640
641 return h;
642 }
643
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include "hdate.h"
19 #include "support.h"
20
21 /**
22 @brief Return number of hebrew parasha.
23
24 @author Yaacov Zamir 2003-2005, Reading tables by Zvi Har'El
25
26 @param hebdate The hdate_struct of the date to use.
27 @param diaspora if True give diaspora readings
28 @return the name of parasha 1. Bereshit etc..
29 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
30 */
31 int
32 hdate_get_parasha (hdate_struct const * h, int diaspora)
33 {
34 static int join_flags[2][14][7] =
35 {
36 {
37 {1, 1, 1, 1, 0, 1, 1}, /* 1 be erez israel */
38 {1, 1, 1, 1, 0, 1, 0}, /* 2 */
39 {1, 1, 1, 1, 0, 1, 1}, /* 3 */
40 {1, 1, 1, 0, 0, 1, 0}, /* 4 */
41 {1, 1, 1, 1, 0, 1, 1}, /* 5 */
42 {0, 1, 1, 1, 0, 1, 0}, /* 6 */
43 {1, 1, 1, 1, 0, 1, 1}, /* 7 */
44 {0, 0, 0, 0, 0, 1, 1}, /* 8 */
45 {0, 0, 0, 0, 0, 0, 0}, /* 9 */
46 {0, 0, 0, 0, 0, 1, 1}, /* 10 */
47 {0, 0, 0, 0, 0, 0, 0}, /* 11 */
48 {0, 0, 0, 0, 0, 0, 0}, /* 12 */
49 {0, 0, 0, 0, 0, 0, 1}, /* 13 */
50 {0, 0, 0, 0, 0, 1, 1} /* 14 */
51 },
52 {
53 {1, 1, 1, 1, 0, 1, 1}, /* 1 in diaspora */
54 {1, 1, 1, 1, 0, 1, 0}, /* 2 */
55 {1, 1, 1, 1, 1, 1, 1}, /* 3 */
56 {1, 1, 1, 1, 0, 1, 0}, /* 4 */
57 {1, 1, 1, 1, 1, 1, 1}, /* 5 */
58 {0, 1, 1, 1, 0, 1, 0}, /* 6 */
59 {1, 1, 1, 1, 0, 1, 1}, /* 7 */
60 {0, 0, 0, 0, 1, 1, 1}, /* 8 */
61 {0, 0, 0, 0, 0, 0, 0}, /* 9 */
62 {0, 0, 0, 0, 0, 1, 1}, /* 10 */
63 {0, 0, 0, 0, 0, 1, 0}, /* 11 */
64 {0, 0, 0, 0, 0, 1, 0}, /* 12 */
65 {0, 0, 0, 0, 0, 0, 1}, /* 13 */
66 {0, 0, 0, 0, 1, 1, 1} /* 14 */
67 }
68 };
69
70 int reading;
71
72
73 /* if simhat tora return vezot habracha */
74 if (h->hd_mon == 1 && h->hd_day == 22)
75 {
76 return 54;
77 }
78
79 /* if not shabat return none */
80 if (h->hd_dw != 7)
81 {
82 return 0;
83 }
84
85 /* check for diaspora readings */
86 diaspora = diaspora?1:0;
87
88 switch (h->hd_weeks)
89 {
90 case 1:
91 if (h->hd_new_year_dw == 7)
92 {
93 return 0;
94 }
95 else if ((h->hd_new_year_dw == 2) || (h->hd_new_year_dw == 3))
96 {
97 return 52;
98 }
99 else /* if (h->hd_new_year_dw == 5) */
100 {
101 return 53;
102 }
103 break;
104 case 2:
105 if (h->hd_new_year_dw == 5)
106 {
107 return 0;
108 }
109 else
110 {
111 return 53;
112 }
113 break;
114 case 3:
115 return 0;
116 break;
117 case 4:
118 if (h->hd_new_year_dw == 7)
119 {
120 return 54;
121 }
122 else
123 {
124 return 1;
125 }
126 break;
127 default:
128 /* simhat tora on week 4 bereshit too */
129 reading = h->hd_weeks - 3;
130
131 /* was simhat tora on shabat ? */
132 if (h->hd_new_year_dw == 7)
133 reading = reading - 1;
134
135 /* no joining */
136 if (reading < 22)
137 {
138 return reading;
139 }
140
141 /* pesach */
142 if ((h->hd_mon == 7) && (h->hd_day > 14) && (h->hd_day < 22))
143 {
144 return 0;
145 }
146 if (((h->hd_mon == 7) && (h->hd_day > 21)) || (h->hd_mon > 7 && h->hd_mon < 13))
147 {
148 reading--;
149 }
150 /* on diaspora, shavot may fall on shabat if next new year is on shabat */
151 if (diaspora &&
152 (h->hd_mon < 13) &&
153 ((h->hd_mon > 9) || (h->hd_mon == 9 && h->hd_day >= 7)) &&
154 ((h->hd_new_year_dw + h->hd_size_of_year) % 7) == 0)
155 {
156 if (h->hd_mon == 9 && h->hd_day == 7)
157 {
158 return 0;
159 }
160 else
161 {
162 reading--;
163 }
164 }
165
166 /* joining */
167 if (join_flags[diaspora][h->hd_year_type - 1][0] && (reading >= 22))
168 {
169 if (reading == 22)
170 {
171 return 55;
172 }
173 else
174 {
175 reading++;
176 }
177 }
178 if (join_flags[diaspora][h->hd_year_type - 1][1] && (reading >= 27))
179 {
180 if (reading == 27)
181 {
182 return 56;
183 }
184 else
185 {
186 reading++;
187 }
188 }
189 if (join_flags[diaspora][h->hd_year_type - 1][2] && (reading >= 29))
190 {
191 if (reading == 29)
192 {
193 return 57;
194 }
195 else
196 {
197 reading++;
198 }
199 }
200 if (join_flags[diaspora][h->hd_year_type - 1][3] && (reading >= 32))
201 {
202 if (reading == 32)
203 {
204 return 58;
205 }
206 else
207 {
208 reading++;
209 }
210 }
211
212 if (join_flags[diaspora][h->hd_year_type - 1][4] && (reading >= 39))
213 {
214 if (reading == 39)
215 {
216 return 59;
217 }
218 else
219 {
220 reading++;
221 }
222 }
223 if (join_flags[diaspora][h->hd_year_type - 1][5] && (reading >= 42))
224 {
225 if (reading == 42)
226 {
227 return 60;
228 }
229 else
230 {
231 reading++;
232 }
233 }
234 if (join_flags[diaspora][h->hd_year_type - 1][6] && (reading >= 51))
235 {
236 if (reading == 51)
237 {
238 return 61;
239 }
240 else
241 {
242 reading++;
243 }
244 }
245 break;
246 }
247
248 return reading;
249 }
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include <stdio.h>
19 #include <stdlib.h>
20 #include <string.h>
21
22 #ifdef ENABLE_NLS
23 #include <locale.h>
24 #endif
25
26 #include "hdate.h"
27 #include "support.h"
28
29 /**
30 @brief convert an integer to hebrew string UTF-8 (logical)
31
32 @param n The int to convert
33
34 @attention ( 0 < n < 10000)
35 @warning uses a static string, so output should be copied away.
36 */
37 char *
38 hdate_get_int_string (int n)
39 {
40 int length;
41 static char h_number[100];
42 static char *digits[3][10] = {
43 {" ", "א", "ב", "ג", "ד", "ה", "ו", "ז", "ח", "ט"},
44 {"ט", "י", "כ", "ל", "מ", "נ", "ס", "ע", "פ", "צ"},
45 {" ", "ק", "ר", "ש", "ת"}
46 };
47
48 char *locale;
49 char *language;
50
51 /* Get the name of the current locale. */
52 #ifdef ENABLE_NLS
53 locale = setlocale (LC_MESSAGES, NULL);
54 language = getenv ("LANGUAGE");
55 #else
56 locale = NULL;
57 language = NULL;
58 #endif
59
60 if (!((locale && (locale[0] == 'h') && (locale[1] == 'e')) ||
61 (language && (language[0] == 'h') && (language[1] == 'e'))))
62 {
63 /* not hebrew locale return the number in decimal form */
64 snprintf (h_number, 100, "%d", n);
65 return h_number;
66 }
67
68 /* sanity checks */
69 if (n < 1 || n > 10000)
70 {
71 return NULL;
72 }
73
74 strncpy (h_number, "", 100);
75
76 if (n >= 1000)
77 {
78 strncat (h_number, digits[0][n / 1000], 100);
79 n %= 1000;
80 }
81 while (n >= 400)
82 {
83 strncat (h_number, digits[2][4], 100);
84 n -= 400;
85 }
86 if (n >= 100)
87 {
88 strncat (h_number, digits[2][n / 100], 100);
89 n %= 100;
90 }
91 if (n >= 10)
92 {
93 if (n == 15 || n == 16)
94 n -= 9;
95 strncat (h_number, digits[1][n / 10], 100);
96 n %= 10;
97 }
98 if (n > 0)
99 strncat (h_number, digits[0][n], 16);
100
101 length = strlen (h_number);
102
103 /* add the ' and " to hebrew numbers */
104 if (length <= 2)
105 {
106 strncat (h_number, "'", 100);
107 }
108 else
109 {
110 h_number[length + 1] = h_number[length];
111 h_number[length] = h_number[length - 1];
112 h_number[length - 1] = h_number[length - 2];
113 h_number[length - 2] = '\"';
114 }
115
116 return h_number;
117 }
118
119 /**
120 @brief Return a static string, with name of wek day.
121
122 @param day The number of the day 0..6 (0 - sun).
123 @param s A short flag (true - returns a short string: sun, .., false returns: sunday, .. ).
124 */
125 char *
126 hdate_get_day_string (int day, int s)
127 {
128 /* create a static days array */
129 static char *days[2][7] = {
130 {N_("Sun"), N_("Mon"), N_("Tue"), N_("Wed"), N_("Thu"),
131 N_("Fri"), N_("Sat")},
132 {N_("Sunday"), N_("Monday"), N_("Tuesday"), N_("Wednesday"),
133 N_("Thursday"), N_("Friday"), N_("Saturday")}
134 };
135
136 #ifdef ENABLE_NLS
137 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
138 bind_textdomain_codeset (PACKAGE, "UTF-8");
139 #endif
140
141 /* make sure s is 0 or 1 */
142 s = s ? 0 : 1;
143
144 if (day >= 1 && day <= 7)
145 {
146 return _(days[s][day - 1]);
147 }
148
149 /* if not a valid day return NULL */
150 return NULL;
151 }
152
153 /**
154 @brief Return a static string, with name of month.
155
156 @param month The number of the month 1..12 (1 - jan).
157 @param s A short flag.
158 */
159 char *
160 hdate_get_month_string (int month, int s)
161 {
162
163 static char *months[2][12] = {
164 {N_("Jan"), N_("Feb"), N_("Mar"), N_("Apr"), N_("May"),
165 N_("Jun"), N_("Jul"), N_("Aug"), N_("Sep"), N_("Oct"),
166 N_("Nov"), N_("Dec")},
167 {N_("January"), N_("February"), N_("March"),
168 N_("April"), N_("May"), N_("June"),
169 N_("July"), N_("August"), N_("September"),
170 N_("October"), N_("November"), N_("December")}
171 };
172
173 #ifdef ENABLE_NLS
174 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
175 bind_textdomain_codeset (PACKAGE, "UTF-8");
176 #endif
177
178 /* make sure s is 0 or 1 */
179 s = s ? 0 : 1;
180
181 if (month >= 1 && month <= 12)
182 {
183 return _(months[s][month - 1]);
184 }
185
186 /* if not a valid month return NULL */
187 return NULL;
188 }
189
190 /**
191 @brief Return a static string, with name of hebrew month.
192
193 @param month The number of the month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
194 @param s A short flag.
195 */
196 char *
197 hdate_get_hebrew_month_string (int month, int s)
198 {
199 /* FIXME: abbrev of Hebrew months */
200 static char *months[2][14] = {
201 {N_("Tishrei"), N_("Cheshvan"), N_("Kislev"), N_("Tevet"),
202 N_("Sh'vat"), N_("Adar"), N_("Nisan"), N_("Iyyar"),
203 N_("Sivan"), N_("Tamuz"), N_("Av"), N_("Elul"), N_("Adar I"),
204 N_("Adar II")},
205 {N_("Tishrei"), N_("Cheshvan"), N_("Kislev"), N_("Tevet"),
206 N_("Sh'vat"), N_("Adar"), N_("Nisan"), N_("Iyyar"),
207 N_("Sivan"), N_("Tamuz"), N_("Av"), N_("Elul"), N_("Adar I"),
208 N_("Adar II")}
209 };
210
211 #ifdef ENABLE_NLS
212 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
213 bind_textdomain_codeset (PACKAGE, "UTF-8");
214 #endif
215
216 /* make sure s is 0 or 1 */
217 s = s ? 0 : 1;
218
219 if (month >= 1 && month <= 14)
220 {
221 return _(months[s][month - 1]);
222 }
223
224 /* if not a valid month return NULL */
225 return NULL;
226 }
227
228 /**
229 @brief Name of hebrew holyday.
230
231 @param holyday The holyday number.
232 @param s A short flag.
233 */
234 char *
235 hdate_get_holyday_string (int holyday, int s)
236 {
237 /* holyday strings */
238 static char *holydays[2][36] = {
239 {
240 N_("Rosh Hashana I"), /* 1 */
241 N_("Rosh Hashana II"),
242 N_("Tzom Gedaliah"),
243 N_("Yom Kippur"),
244 N_("Sukkot"),
245 N_("Hol hamoed Sukkot"),
246 N_("Hoshana raba"),
247 N_("Simchat Torah"),
248 N_("Chanukah"),
249 N_("Asara B'Tevet"), /* 10 */
250 N_("Tu B'Shvat"),
251 N_("Ta'anit Esther"),
252 N_("Purim"),
253 N_("Shushan Purim"),
254 N_("Pesach"),
255 N_("Hol hamoed Pesach"),
256 N_("Yom HaAtzma'ut"),
257 N_("Lag B'Omer"),
258 N_("Erev Shavuot"),
259 N_("Shavuot"), /* 20 */
260 N_("Tzom Tammuz"),
261 N_("Tish'a B'Av"),
262 N_("Tu B'Av"),
263 N_("Yom HaShoah"),
264 N_("Yom HaZikaron"), /* 25 */
265 N_("Yom Yerushalayim"),
266 N_("Shmini Atzeret"),
267 N_("Pesach VII"),
268 N_("Pesach VIII"),
269 N_("Shavuot II"), /* 30 */
270 N_("Sukkot II"),
271 N_("Pesach II"),
272 N_("Family Day"),
273 N_("Memorial day for fallen whose place of burial is unknown"),
274 N_("Rabin memorial day"), /* 35 */
275 N_("Zhabotinsky day")},
276 {
277 N_("Rosh Hashana I"),
278 N_("Rosh Hashana II"),
279 N_("Tzom Gedaliah"),
280 N_("Yom Kippur"),
281 N_("Sukkot"),
282 N_("Hol hamoed Sukkot"),
283 N_("Hoshana raba"),
284 N_("Simchat Torah"),
285 N_("Chanukah"),
286 N_("Asara B'Tevet"),
287 N_("Tu B'Shvat"),
288 N_("Ta'anit Esther"),
289 N_("Purim"),
290 N_("Shushan Purim"),
291 N_("Pesach"),
292 N_("Hol hamoed Pesach"),
293 N_("Yom HaAtzma'ut"),
294 N_("Lag B'Omer"),
295 N_("Erev Shavuot"),
296 N_("Shavuot"),
297 N_("Tzom Tammuz"),
298 N_("Tish'a B'Av"),
299 N_("Tu B'Av"),
300 N_("Yom HaShoah"),
301 N_("Yom HaZikaron"),
302 N_("Yom Yerushalayim"),
303 N_("Shmini Atzeret"),
304 N_("Pesach VII"),
305 N_("Pesach VIII"),
306 N_("Shavuot II"),
307 N_("Sukkot II"),
308 N_("Pesach II"),
309 N_("Family Day"),
310 N_("Memorial day for fallen whose place of burial is unknown"),
311 N_("Yitzhak Rabin memorial day"), /* 35 */
312 N_("Zeev Zhabotinsky day")}
313 };
314
315 #ifdef ENABLE_NLS
316 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
317 bind_textdomain_codeset (PACKAGE, "UTF-8");
318 #endif
319
320 /* make sure s is 0 or 1 */
321 s = s ? 0 : 1;
322
323 if (holyday >= 1 && holyday <= 36)
324 {
325 return _(holydays[s][holyday - 1]);
326 }
327
328 /* if not a valid holyday return NULL */
329 return NULL;
330 }
331
332 /**
333 @brief Name of Parasha
334
335 @param parasha The Number of Parasha 1-Bereshit
336 (55 trow 61 are joined strings e.g. Vayakhel Pekudei)
337 @param s A short flag.
338 */
339 char *
340 hdate_get_parasha_string (int parasha, int s)
341 {
342 /* FIXME: abbrev of parasha */
343 static char *parashaot[2][62] = {
344 {
345 N_("none"),
346 N_("Bereshit"), /* 1 */
347 N_("Noach"),
348 N_("Lech-Lecha"),
349 N_("Vayera"),
350 N_("Chayei Sara"),
351 N_("Toldot"),
352 N_("Vayetzei"),
353 N_("Vayishlach"),
354 N_("Vayeshev"),
355 N_("Miketz"), /* 10 */
356 N_("Vayigash"),
357 N_("Vayechi"),
358 N_("Shemot"),
359 N_("Vaera"),
360 N_("Bo"),
361 N_("Beshalach"),
362 N_("Yitro"),
363 N_("Mishpatim"),
364 N_("Terumah"),
365 N_("Tetzaveh"), /* 20 */
366 N_("Ki Tisa"),
367 N_("Vayakhel"),
368 N_("Pekudei"),
369 N_("Vayikra"),
370 N_("Tzav"),
371 N_("Shmini"),
372 N_("Tazria"),
373 N_("Metzora"),
374 N_("Achrei Mot"),
375 N_("Kedoshim"), /* 30 */
376 N_("Emor"),
377 N_("Behar"),
378 N_("Bechukotai"),
379 N_("Bamidbar"),
380 N_("Nasso"),
381 N_("Beha'alotcha"),
382 N_("Sh'lach"),
383 N_("Korach"),
384 N_("Chukat"),
385 N_("Balak"), /* 40 */
386 N_("Pinchas"),
387 N_("Matot"),
388 N_("Masei"),
389 N_("Devarim"),
390 N_("Vaetchanan"),
391 N_("Eikev"),
392 N_("Re'eh"),
393 N_("Shoftim"),
394 N_("Ki Teitzei"),
395 N_("Ki Tavo"), /* 50 */
396 N_("Nitzavim"),
397 N_("Vayeilech"),
398 N_("Ha'Azinu"),
399 N_("Vezot Habracha"), /* 54 */
400 N_("Vayakhel-Pekudei"),
401 N_("Tazria-Metzora"),
402 N_("Achrei Mot-Kedoshim"),
403 N_("Behar-Bechukotai"),
404 N_("Chukat-Balak"),
405 N_("Matot-Masei"),
406 N_("Nitzavim-Vayeilech")},
407 {
408 N_("none"),
409 N_("Bereshit"), /* 1 */
410 N_("Noach"),
411 N_("Lech-Lecha"),
412 N_("Vayera"),
413 N_("Chayei Sara"),
414 N_("Toldot"),
415 N_("Vayetzei"),
416 N_("Vayishlach"),
417 N_("Vayeshev"),
418 N_("Miketz"), /* 10 */
419 N_("Vayigash"),
420 N_("Vayechi"),
421 N_("Shemot"),
422 N_("Vaera"),
423 N_("Bo"),
424 N_("Beshalach"),
425 N_("Yitro"),
426 N_("Mishpatim"),
427 N_("Terumah"),
428 N_("Tetzaveh"), /* 20 */
429 N_("Ki Tisa"),
430 N_("Vayakhel"),
431 N_("Pekudei"),
432 N_("Vayikra"),
433 N_("Tzav"),
434 N_("Shmini"),
435 N_("Tazria"),
436 N_("Metzora"),
437 N_("Achrei Mot"),
438 N_("Kedoshim"), /* 30 */
439 N_("Emor"),
440 N_("Behar"),
441 N_("Bechukotai"),
442 N_("Bamidbar"),
443 N_("Nasso"),
444 N_("Beha'alotcha"),
445 N_("Sh'lach"),
446 N_("Korach"),
447 N_("Chukat"),
448 N_("Balak"), /* 40 */
449 N_("Pinchas"),
450 N_("Matot"),
451 N_("Masei"),
452 N_("Devarim"),
453 N_("Vaetchanan"),
454 N_("Eikev"),
455 N_("Re'eh"),
456 N_("Shoftim"),
457 N_("Ki Teitzei"),
458 N_("Ki Tavo"), /* 50 */
459 N_("Nitzavim"),
460 N_("Vayeilech"),
461 N_("Ha'Azinu"),
462 N_("Vezot Habracha"), /* 54 */
463 N_("Vayakhel-Pekudei"),
464 N_("Tazria-Metzora"),
465 N_("Achrei Mot-Kedoshim"),
466 N_("Behar-Bechukotai"),
467 N_("Chukat-Balak"),
468 N_("Matot-Masei"),
469 N_("Nitzavim-Vayeilech")}
470 };
471
472 #ifdef ENABLE_NLS
473 bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
474 bind_textdomain_codeset (PACKAGE, "UTF-8");
475 #endif
476
477 /* make sure s is 0 or 1 */
478 s = s ? 0 : 1;
479
480 if (parasha >= 0 && parasha <= 61)
481 {
482 return _(parashaot[s][parasha]);
483 }
484
485 /* if not a valid parasha return NULL */
486 return NULL;
487 }
488
489 /**
490 @brief Return a static string, with the hebrew date.
491
492 return the short ( e.g. "1 Tishrey" ) or
493 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
494
495 @param h The hdate_struct of the date to print.
496 @param diaspora if true give diaspora holydays
497 @param s A short flag (true - returns a short string, false returns a long string. ).
498 */
499 char *
500 hdate_get_format_date (hdate_struct const *h, int diaspora, int s)
501 {
502 static char format_date[500];
503 static char temp[500];
504 int holyday;
505
506 if (h)
507 {
508 if (s)
509 { /* short format */
510 snprintf (format_date, 500, "%s %s",
511 hdate_get_int_string (h->hd_day),
512 hdate_get_hebrew_month_string (h->hd_mon, s));
513 return (format_date);
514 }
515 else
516 {
517 snprintf (temp, 500, "%s, %s %s",
518 hdate_get_day_string (h->hd_dw, s),
519 hdate_get_int_string (h->hd_day),
520 hdate_get_hebrew_month_string (h->hd_mon, s));
521 snprintf (format_date, 500, "%s %s",
522 temp, hdate_get_int_string (h->hd_year));
523
524 /* if holyday print it */
525 holyday = hdate_get_holyday (h, diaspora);
526
527 if (holyday != 0)
528 {
529 snprintf (temp, 500, "%s, %s",
530 format_date, hdate_get_holyday_string (holyday, 0));
531
532 return (temp);
533 }
534 else
535 return (format_date);
536 }
537 }
538
539 return NULL;
540 }
541
542 /**
543 @brief Return a static string, with the package name and version
544
545 @return a a static string, with the package name and version
546 */
547 char *
548 hdate_get_version_string ()
549 {
550 static char version[500];
551
552 /* make a "packge version" string */
553 snprintf (version, 500, "%s %s", PACKAGE, VERSION);
554
555 return (version);
556 }
557
558 /**
559 @brief Return a static string, with the name of translator
560
561 @return a a static string, with the name of translator
562 */
563 char *
564 hdate_get_translator_string ()
565 {
566 /* if untranslated return null */
567 if (strcmp (_("translator"), "translator") == 0)
568 return NULL;
569
570 /* return the translator name */
571 return _("translator");
572 }
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 /*
19 * Algorithm from http://www.srrb.noaa.gov/highlights/sunrise/calcdetails.html
20 * The low accuracy solar position equations are used.
21 * These routines are based on Jean Meeus's book Astronomical Algorithms.
22 */
23
24 #include <time.h>
25 #include <stdio.h>
26 #include <math.h>
27
28 #include "hdate.h"
29 #include "support.h"
30
31 /**
32 @brief days from 1 january
33
34 @parm day this day of month
35 @parm month this month
36 @parm year this year
37 @return the days from 1 jan
38 */
39 int
40 hdate_get_day_of_year (int day, int month, int year)
41 {
42 int jd;
43
44 /* get todays julian day number */
45 jd = (1461 * (year + 4800 + (month - 14) / 12)) / 4 +
46 (367 * (month - 2 - 12 * ((month - 14) / 12))) / 12 -
47 (3 * ((year + 4900 + (month - 14) / 12) / 100)) / 4 + day;
48
49 /* substruct the julian day of 1/1/year and add one */
50 jd = jd - ((1461 * (year + 4799)) / 4 +
51 367 * 11 / 12 - (3 * ((year + 4899) / 100)) / 4);
52
53 return jd;
54 }
55
56 /**
57 @brief utc sun times for altitude at a gregorian date
58
59 @parm day this day of month
60 @parm month this month
61 @parm year this year
62 @parm longitude longitude to use in calculations
63 @parm latitude latitude to use in calculations
64 @parm deg degrees of sun's altitude (0 - Zenith .. 90 - Horizon)
65 @parm sunrise return the utc sunrise in minutes
66 @parm sunset return the utc sunset in minutes
67 */
68 void
69 hdate_get_utc_sun_time_deg (int day, int month, int year, double latitude, double longitude, double deg, int *sunrise, int *sunset)
70 {
71 double gama; /* location of sun in yearly cycle in radians */
72 double eqtime; /* diffference betwen sun noon and clock noon */
73 double decl; /* sun declanation */
74 double ha; /* solar hour engle */
75 double sunrise_angle = M_PI * deg / 180.0; /* sun angle at sunrise/set */
76
77 int day_of_year;
78
79 /* get the day of year */
80 day_of_year = hdate_get_day_of_year (day, month, year);
81
82 /* get radians of sun orbit around erth =) */
83 gama = 2.0 * M_PI * ((double)(day_of_year - 1) / 365.0);
84
85 /* get the diff betwen suns clock and wall clock in minutes */
86 eqtime = 229.18 * (0.000075 + 0.001868 * cos (gama)
87 - 0.032077 * sin (gama) - 0.014615 * cos (2.0 * gama)
88 - 0.040849 * sin (2.0 * gama));
89
90 /* calculate suns declanation at the equater in radians */
91 decl = 0.006918 - 0.399912 * cos (gama) + 0.070257 * sin (gama)
92 - 0.006758 * cos (2.0 * gama) + 0.000907 * sin (2.0 * gama)
93 - 0.002697 * cos (3.0 * gama) + 0.00148 * sin (3.0 * gama);
94
95 /* we use radians, ratio is 2pi/360 */
96 latitude = M_PI * latitude / 180.0;
97
98 /* the sun real time diff from noon at sunset/rise in radians */
99 ha = acos (cos (sunrise_angle) / (cos (latitude) * cos (decl)) - tan (latitude) * tan (decl));
100
101 /* we use minutes, ratio is 1440min/2pi */
102 ha = 720.0 * ha / M_PI;
103
104 /* get sunset/rise times in utc wall clock in minutes from 00:00 time */
105 *sunrise = (int)(720.0 + 4.0 * longitude - ha - eqtime);
106 *sunset = (int)(720.0 + 4.0 * longitude + ha - eqtime);
107
108 return;
109 }
110
111 /**
112 @brief utc sunrise/set time for a gregorian date
113
114 @parm day this day of month
115 @parm month this month
116 @parm year this year
117 @parm longitude longitude to use in calculations
118 @parm latitude latitude to use in calculations
119 @parm sunrise return the utc sunrise in minutes
120 @parm sunset return the utc sunset in minutes
121 */
122 void
123 hdate_get_utc_sun_time (int day, int month, int year, double latitude, double longitude, int *sunrise, int *sunset)
124 {
125 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 90.833, sunrise, sunset);
126
127 return;
128 }
129
130 /**
131 @brief utc sunrise/set time for a gregorian date
132
133 @parm day this day of month
134 @parm month this month
135 @parm year this year
136 @parm longitude longitude to use in calculations
137 @parm latitude latitude to use in calculations
138 @parm sun_hour return the length of shaa zaminit in minutes
139 @parm first_light return the utc alut ha-shachar in minutes
140 @parm talit return the utc tphilin and talit in minutes
141 @parm sunrise return the utc sunrise in minutes
142 @parm midday return the utc midday in minutes
143 @parm sunset return the utc sunset in minutes
144 @parm first_stars return the utc tzeit hacochavim in minutes
145 @parm three_stars return the utc shlosha cochavim in minutes
146 */
147 void
148 hdate_get_utc_sun_time_full (int day, int month, int year, double latitude, double longitude,
149 int *sun_hour, int *first_light, int *talit, int *sunrise,
150 int *midday, int *sunset, int *first_stars, int *three_stars)
151 {
152 int place_holder;
153
154 /* sunset and rise time */
155 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 90.833, sunrise, sunset);
156
157 /* shaa zmanit by gara, 1/12 of light time */
158 *sun_hour = (*sunset - *sunrise) / 12;
159 *midday = (*sunset + *sunrise) / 2;
160
161 /* get times of the different sun angles */
162 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 106.01, first_light, &place_holder);
163 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 101.0, talit, &place_holder);
164 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 96.0, &place_holder, first_stars);
165 hdate_get_utc_sun_time_deg (day, month, year, latitude, longitude, 98.5, &place_holder, three_stars);
166
167 return;
168 }
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef __HDATE_PP_H__
19 #define __HDATE_PP_H__
20
21 #include <hdate.h>
22
23 /**
24 @brief the libhdate namespace.
25 */
26 namespace hdate
27 {
28 /**
29 @brief Hdate class.
30
31 class for Hebrew/Gregorian date conversions
32 */
33 class Hdate;
34
35 /**
36 @brief Hdate class.
37
38 class for Hebrew/Gregorian date conversions
39 */
40 class Hdate
41 {
42
43 public:
44 ////////////////////////////////////////
45 ////////////////////////////////////////
46
47 /**
48 @brief Hdate constructor.
49 */
50 Hdate()
51 {
52 /* default is this day */
53 h = new_hdate();
54
55 /* default is in israel */
56 diaspora = HDATE_ISRAEL_FLAG;
57
58 /* default localeconv is Tel-Aviv winter time */
59 latitude = 32.0;
60 longitude = -34.0;
61 tz = 2;
62 }
63
64 /**
65 @brief Hdate destructor.
66 */
67 ~Hdate()
68 {
69 delete_hdate(h);
70 }
71
72 ////////////////////////////////////////
73 ////////////////////////////////////////
74
75 /**
76 @brief compute date structure from the Gregorian date
77
78 @param d Day of month 1..31
79 @param m Month 1..12 , if m or d is 0 return current date.
80 @param y Year in 4 digits e.g. 2001
81 */
82 void
83 set_gdate (int d, int m, int y)
84 {
85 hdate_set_gdate (h, d, m, y);
86 }
87
88 /**
89 @brief compute date structure from the Hebrew date
90
91 @param d Day of month 1..31
92 @param m Month 1..14 , if m or d is 0 return current date.
93 @param y Year in 4 digits e.g. 5731
94 */
95 void
96 set_hdate (int d, int m, int y)
97 {
98 hdate_set_hdate (h, d, m, y);
99 }
100
101 /**
102 @brief compute date structure from the Julian day
103
104 @param jd the julian day number.
105 */
106 void
107 set_jd (int jd)
108 {
109 hdate_set_jd (h, jd);
110 }
111
112 ////////////////////////////////////////
113 ////////////////////////////////////////
114
115 /**
116 @brief get formated hebrew date.
117
118 return the short ( e.g. "1 Tishrey" ) or
119 long (e.g. "Tuesday 18 Tishrey 5763 Hol hamoed Sukot" ) formated date.
120
121 @param s short flag.
122 @return a static string of foramted date
123 */
124 char *
125 get_format_date (int s)
126 {
127 return hdate_get_format_date (h, diaspora, s);
128 }
129
130 /**
131 @brief get name of week day.
132
133 @param s short flag
134 true - returns a short string: sun, false returns: sunday.
135 @return a static string of the day of the week
136 */
137 char *
138 get_day_of_week_string (int s)
139 {
140 return hdate_get_day_string (h->hd_dw, s);
141 }
142
143 /**
144 @brief get name month.
145
146 @param s short flag
147 true - returns a short string: Mar, false returns: March.
148 @return a static string of month name
149 */
150 char *
151 get_month_string (int s)
152 {
153 return hdate_get_month_string (h->gd_mon, s);
154 }
155
156 /**
157 @brief get name hebrew month.
158
159 @param s short flag
160 true - returns a short string.
161 @return a static string of hebrew month name
162 */
163 char *
164 get_hebrew_month_string (int s)
165 {
166 return hdate_get_hebrew_month_string (h->hd_mon, s);
167 }
168
169 /**
170 @brief get name hebrew holiday.
171
172 @param s short flag
173 true - returns a short string.
174 @return a static string of hebrew holiday name
175 */
176 char *
177 get_holyday_string (int s)
178 {
179 int holyday;
180
181 holyday = hdate_get_holyday (h, diaspora);
182 return hdate_get_holyday_string (holyday, s);
183 }
184
185 /**
186 @brief get the hebrew holiday type.
187
188 @return the holiday type
189 (1- regular holyday, 2- three regels, 3- tzom, 0- no holiday)
190 */
191 int
192 get_holyday_type ()
193 {
194 int holyday;
195
196 holyday = hdate_get_holyday (h, diaspora);
197 return hdate_get_holyday_type (holyday);
198 }
199
200 /**
201 @brief get name hebrew parasha.
202
203 @param s short flag
204 true - returns a short string.
205 @return a static string of hebrew parash name
206 */
207 char *
208 get_parasha_string (int s)
209 {
210 int parasha;
211
212 parasha = hdate_get_parasha (h, diaspora);
213 return hdate_get_parasha_string (parasha, s);
214 }
215
216 /**
217 @brief get name hebrew year.
218
219 @return a static string of hebrew year
220 */
221 char *
222 get_hebrew_year_string ()
223 {
224 return hdate_get_int_string (h->hd_year);
225 }
226
227 /**
228 @brief get name hebrew hebrew day of the month
229
230 @return a static string of hebrew day of the month
231 */
232 char *
233 get_hebrew_day_string ()
234 {
235 return hdate_get_int_string (h->hd_day);
236 }
237
238 ////////////////////////////////////////
239 ////////////////////////////////////////
240
241 /**
242 @brief get parash number
243
244 @return the hebrew parasha number
245 */
246 int
247 get_parasha ()
248 {
249 return hdate_get_parasha (h, diaspora);
250 }
251
252 /**
253 @brief get holiday number
254 @return the hebrew holiday number
255 */
256 int
257 get_holyday ()
258 {
259 return hdate_get_holyday (h, diaspora);
260 }
261
262 /**
263 @brief get Gregorian day of the month
264
265 @return the Gregorian day of the month
266 */
267 int
268 get_gday ()
269 {
270 return hdate_get_gday (h);
271 }
272
273 /**
274 @brief get Gregorian month
275
276 @return the Gregorian month
277 */
278 int
279 get_gmonth ()
280 {
281 return hdate_get_gmonth (h);
282 }
283
284 /**
285 @brief get Gregorian year
286
287 @return the Gregorian year
288 */
289 int
290 get_gyear ()
291 {
292 return hdate_get_gyear (h);
293 }
294
295 /**
296 @brief get Hebrew day of the month
297
298 @return the Hebrew day of the month
299 */
300 int
301 get_hday ()
302 {
303 return hdate_get_hday (h);
304 }
305
306 /**
307 @brief get Hebrew month
308
309 @return the Hebrew month
310 */
311 int
312 get_hmonth ()
313 {
314 return hdate_get_hmonth (h);
315 }
316
317 /**
318 @brief get Hebrew year
319
320 @return the Hebrew year
321 */
322 int
323 get_hyear ()
324 {
325 return hdate_get_hyear (h);
326 }
327
328 /**
329 @brief get the day of the week
330
331 @return the day of the week
332 */
333 int
334 get_day_of_the_week ()
335 {
336 return hdate_get_day_of_the_week (h);
337 }
338
339 /**
340 @brief get the size of the Hebrew year in days
341
342 @return the size of the Hebrew year in days
343 */
344 int
345 get_size_of_year ()
346 {
347 return hdate_get_size_of_year (h);
348 }
349
350 /**
351 @brief get the day of the week of hebrew new years
352
353 @return the day of the week of hebrew new years
354 */
355 int
356 get_new_year_day_of_the_week ()
357 {
358 return hdate_get_new_year_day_of_the_week (h);
359 }
360
361 /**
362 @brief get the Julian day number
363
364 @return the Julian day number
365 */
366 int
367 get_julian ()
368 {
369 return hdate_get_julian (h);
370 }
371
372 /**
373 @brief get the number of days sice Tishrey I
374
375 @return the the number of days sice Tishrey I
376 */
377 int
378 get_days ()
379 {
380 return hdate_get_days (h);
381 }
382
383 /**
384 @brief get the number of weeks sice Tishrey I
385
386 @return the the number of weeks sice Tishrey I
387 */
388 int
389 get_weeks ()
390 {
391 return hdate_get_weeks (h);
392 }
393
394 ////////////////////////////////////////
395 ////////////////////////////////////////
396
397 /**
398 @brief set location
399
400 @param in_longitude longitude to use in calculations
401 degrees, negative values are east
402 @param in_latitude latitude to use in calculations
403 degrees, negative values are south
404 @param in_tz time zone
405 */
406 void
407 set_location (double in_latitude, double in_longitude, int in_tz)
408 {
409 latitude = in_latitude;
410 longitude = in_longitude;
411 tz = in_tz;
412 }
413
414 /**
415 @brief sunrise time
416
417 @return sunrise in minutes after midnight (00:00)
418 */
419 int
420 get_sunrise ()
421 {
422 int sunrise;
423 int sunset;
424
425 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
426 latitude, longitude,
427 &sunrise, &sunset);
428
429 return sunrise + tz * 60;
430 }
431
432 /**
433 @brief sunset time
434
435 @return sunset in minutes after midnight (00:00)
436 */
437 int
438 get_sunset ()
439 {
440 int sunrise;
441 int sunset;
442
443 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
444 latitude, longitude,
445 &sunrise, &sunset);
446
447 return sunset + tz * 60;
448 }
449
450 /**
451 @brief first light time
452
453 @return first light in minutes after midnight (00:00)
454 */
455 int
456 get_first_light ()
457 {
458 int sunrise;
459 int sunset;
460
461 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
462 latitude, longitude, 106.01,
463 &sunrise, &sunset);
464
465 return sunrise + tz * 60;
466 }
467
468 /**
469 @brief talit time
470
471 @return talit time in minutes after midnight (00:00)
472 */
473 int
474 get_talit ()
475 {
476 int sunrise;
477 int sunset;
478
479 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
480 latitude, longitude, 101.0,
481 &sunrise, &sunset);
482
483 return sunrise + tz * 60;
484 }
485
486 /**
487 @brief first stars time
488
489 @return first stars in minutes after midnight (00:00)
490 */
491 int
492 get_first_stars ()
493 {
494 int sunrise;
495 int sunset;
496
497 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
498 latitude, longitude, 96.0,
499 &sunrise, &sunset);
500
501 return sunset + tz * 60;
502 }
503
504 /**
505 @brief three stars time
506
507 @return three stars in minutes after midnight (00:00)
508 */
509 int
510 get_three_stars ()
511 {
512 int sunrise;
513 int sunset;
514
515 hdate_get_utc_sun_time_deg (h->gd_day, h->gd_mon, h->gd_year,
516 latitude, longitude, 98.5,
517 &sunrise, &sunset);
518
519 return sunset + tz * 60;
520 }
521
522 /**
523 @brief sun light hour time
524
525 @return sun light hour in minutes
526 */
527 int
528 get_sun_hour ()
529 {
530 int sunrise;
531 int sunset;
532
533 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
534 latitude, longitude,
535 &sunrise, &sunset);
536
537 return (sunset - sunrise) / 12;
538 }
539
540 /**
541 @brief midday hour time
542
543 @return midday hour in minutes
544 */
545 int
546 get_midday ()
547 {
548 int sunrise;
549 int sunset;
550
551 hdate_get_utc_sun_time (h->gd_day, h->gd_mon, h->gd_year,
552 latitude, longitude,
553 &sunrise, &sunset);
554
555 return (sunset + sunrise) / 2;
556 }
557
558 ////////////////////////////////////////
559 ////////////////////////////////////////
560
561 /**
562 @brief name of translator
563
564 @return a static string with name of translator, or NULL if none
565 */
566 char *
567 get_translator_string ()
568 {
569 return hdate_get_translator_string ();
570 }
571
572 /**
573 @brief set this hdate object to use diaspora holidays and dates
574 */
575 void
576 set_diaspora ()
577 {
578 diaspora = HDATE_DIASPORA_FLAG;
579 }
580
581 /**
582 @brief set this hdate object to use israel holidays and dates
583 */
584 void
585 set_israel ()
586 {
587 diaspora = HDATE_ISRAEL_FLAG;
588 }
589
590 private:
591
592 int diaspora;
593 double latitude;
594 double longitude;
595 int tz;
596 hdate_struct *h;
597
598 };
599
600 } // name space
601
602 #endif
0 /* libhdate - Hebrew calendar library
1 *
2 * Copyright (C) 1984-2003 Amos Shapir, 2004-2007 Yaacov Zamir <kzamir@walla.co.il>
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 3 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 /*
19 * macros.
20 */
21
22 /*
23 * define TRUE/FLASE if not defined
24 */
25 #ifndef FALSE
26 #define FALSE 0
27 #endif
28
29 #ifndef TRUE
30 #define TRUE -1
31 #endif
32
33 /*
34 * Standard gettext macros.
35 */
36 #ifdef ENABLE_NLS
37 # include <libintl.h>
38 # undef _
39 # define _(String) dgettext (PACKAGE, String)
40 # ifdef gettext_noop
41 # define N_(String) gettext_noop (String)
42 # else
43 # define N_(String) (String)
44 # endif
45 #else
46 # define textdomain(String) (String)
47 # define gettext(String) (String)
48 # define dgettext(Domain,Message) (Message)
49 # define dcgettext(Domain,Message,Type) (Message)
50 # define bindtextdomain(Domain,Directory) (Domain)
51 # define _(String) (String)
52 # define N_(String) (String)
53 #endif